CCSModuleSW30Web.elf: file format elf32-littlearm Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001e8 08008000 08008000 00001000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .text 0000e7c0 080081e8 080081e8 000011e8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .rodata 00000c3c 080169a8 080169a8 0000f9a8 2**3 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .ARM.extab 00000000 080175e4 080175e4 00011258 2**0 CONTENTS 4 .ARM 00000008 080175e4 080175e4 000105e4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 .preinit_array 00000000 080175ec 080175ec 00011258 2**0 CONTENTS, ALLOC, LOAD, DATA 6 .init_array 00000004 080175ec 080175ec 000105ec 2**2 CONTENTS, ALLOC, LOAD, DATA 7 .fini_array 00000004 080175f0 080175f0 000105f0 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .data 00000258 20000000 080175f4 00011000 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .bss 0000116c 20000258 0801784c 00011258 2**3 ALLOC 10 ._user_heap_stack 00000604 200013c4 0801784c 000113c4 2**0 ALLOC 11 .ARM.attributes 00000029 00000000 00000000 00011258 2**0 CONTENTS, READONLY 12 .debug_info 0001d49f 00000000 00000000 00011281 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 13 .debug_abbrev 00005797 00000000 00000000 0002e720 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 14 .debug_loclists 00000f0c 00000000 00000000 00033eb7 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 15 .debug_aranges 00001708 00000000 00000000 00034dc8 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_rnglists 00001215 00000000 00000000 000364d0 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 17 .debug_macro 00026524 00000000 00000000 000376e5 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 18 .debug_line 00021513 00000000 00000000 0005dc09 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 19 .debug_str 000c996d 00000000 00000000 0007f11c 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 20 .comment 00000043 00000000 00000000 00148a89 2**0 CONTENTS, READONLY 21 .debug_frame 00006d8c 00000000 00000000 00148acc 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS 22 .debug_line_str 00000073 00000000 00000000 0014f858 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: 080081e8 <__do_global_dtors_aux>: 80081e8: b510 push {r4, lr} 80081ea: 4c05 ldr r4, [pc, #20] @ (8008200 <__do_global_dtors_aux+0x18>) 80081ec: 7823 ldrb r3, [r4, #0] 80081ee: b933 cbnz r3, 80081fe <__do_global_dtors_aux+0x16> 80081f0: 4b04 ldr r3, [pc, #16] @ (8008204 <__do_global_dtors_aux+0x1c>) 80081f2: b113 cbz r3, 80081fa <__do_global_dtors_aux+0x12> 80081f4: 4804 ldr r0, [pc, #16] @ (8008208 <__do_global_dtors_aux+0x20>) 80081f6: f3af 8000 nop.w 80081fa: 2301 movs r3, #1 80081fc: 7023 strb r3, [r4, #0] 80081fe: bd10 pop {r4, pc} 8008200: 20000258 .word 0x20000258 8008204: 00000000 .word 0x00000000 8008208: 08016990 .word 0x08016990 0800820c : 800820c: b508 push {r3, lr} 800820e: 4b03 ldr r3, [pc, #12] @ (800821c ) 8008210: b11b cbz r3, 800821a 8008212: 4903 ldr r1, [pc, #12] @ (8008220 ) 8008214: 4803 ldr r0, [pc, #12] @ (8008224 ) 8008216: f3af 8000 nop.w 800821a: bd08 pop {r3, pc} 800821c: 00000000 .word 0x00000000 8008220: 2000025c .word 0x2000025c 8008224: 08016990 .word 0x08016990 08008228 : 8008228: 4603 mov r3, r0 800822a: f813 2b01 ldrb.w r2, [r3], #1 800822e: 2a00 cmp r2, #0 8008230: d1fb bne.n 800822a 8008232: 1a18 subs r0, r3, r0 8008234: 3801 subs r0, #1 8008236: 4770 bx lr 08008238 <__aeabi_drsub>: 8008238: f081 4100 eor.w r1, r1, #2147483648 @ 0x80000000 800823c: e002 b.n 8008244 <__adddf3> 800823e: bf00 nop 08008240 <__aeabi_dsub>: 8008240: f083 4300 eor.w r3, r3, #2147483648 @ 0x80000000 08008244 <__adddf3>: 8008244: b530 push {r4, r5, lr} 8008246: ea4f 0441 mov.w r4, r1, lsl #1 800824a: ea4f 0543 mov.w r5, r3, lsl #1 800824e: ea94 0f05 teq r4, r5 8008252: bf08 it eq 8008254: ea90 0f02 teqeq r0, r2 8008258: bf1f itttt ne 800825a: ea54 0c00 orrsne.w ip, r4, r0 800825e: ea55 0c02 orrsne.w ip, r5, r2 8008262: ea7f 5c64 mvnsne.w ip, r4, asr #21 8008266: ea7f 5c65 mvnsne.w ip, r5, asr #21 800826a: f000 80e2 beq.w 8008432 <__adddf3+0x1ee> 800826e: ea4f 5454 mov.w r4, r4, lsr #21 8008272: ebd4 5555 rsbs r5, r4, r5, lsr #21 8008276: bfb8 it lt 8008278: 426d neglt r5, r5 800827a: dd0c ble.n 8008296 <__adddf3+0x52> 800827c: 442c add r4, r5 800827e: ea80 0202 eor.w r2, r0, r2 8008282: ea81 0303 eor.w r3, r1, r3 8008286: ea82 0000 eor.w r0, r2, r0 800828a: ea83 0101 eor.w r1, r3, r1 800828e: ea80 0202 eor.w r2, r0, r2 8008292: ea81 0303 eor.w r3, r1, r3 8008296: 2d36 cmp r5, #54 @ 0x36 8008298: bf88 it hi 800829a: bd30 pophi {r4, r5, pc} 800829c: f011 4f00 tst.w r1, #2147483648 @ 0x80000000 80082a0: ea4f 3101 mov.w r1, r1, lsl #12 80082a4: f44f 1c80 mov.w ip, #1048576 @ 0x100000 80082a8: ea4c 3111 orr.w r1, ip, r1, lsr #12 80082ac: d002 beq.n 80082b4 <__adddf3+0x70> 80082ae: 4240 negs r0, r0 80082b0: eb61 0141 sbc.w r1, r1, r1, lsl #1 80082b4: f013 4f00 tst.w r3, #2147483648 @ 0x80000000 80082b8: ea4f 3303 mov.w r3, r3, lsl #12 80082bc: ea4c 3313 orr.w r3, ip, r3, lsr #12 80082c0: d002 beq.n 80082c8 <__adddf3+0x84> 80082c2: 4252 negs r2, r2 80082c4: eb63 0343 sbc.w r3, r3, r3, lsl #1 80082c8: ea94 0f05 teq r4, r5 80082cc: f000 80a7 beq.w 800841e <__adddf3+0x1da> 80082d0: f1a4 0401 sub.w r4, r4, #1 80082d4: f1d5 0e20 rsbs lr, r5, #32 80082d8: db0d blt.n 80082f6 <__adddf3+0xb2> 80082da: fa02 fc0e lsl.w ip, r2, lr 80082de: fa22 f205 lsr.w r2, r2, r5 80082e2: 1880 adds r0, r0, r2 80082e4: f141 0100 adc.w r1, r1, #0 80082e8: fa03 f20e lsl.w r2, r3, lr 80082ec: 1880 adds r0, r0, r2 80082ee: fa43 f305 asr.w r3, r3, r5 80082f2: 4159 adcs r1, r3 80082f4: e00e b.n 8008314 <__adddf3+0xd0> 80082f6: f1a5 0520 sub.w r5, r5, #32 80082fa: f10e 0e20 add.w lr, lr, #32 80082fe: 2a01 cmp r2, #1 8008300: fa03 fc0e lsl.w ip, r3, lr 8008304: bf28 it cs 8008306: f04c 0c02 orrcs.w ip, ip, #2 800830a: fa43 f305 asr.w r3, r3, r5 800830e: 18c0 adds r0, r0, r3 8008310: eb51 71e3 adcs.w r1, r1, r3, asr #31 8008314: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000 8008318: d507 bpl.n 800832a <__adddf3+0xe6> 800831a: f04f 0e00 mov.w lr, #0 800831e: f1dc 0c00 rsbs ip, ip, #0 8008322: eb7e 0000 sbcs.w r0, lr, r0 8008326: eb6e 0101 sbc.w r1, lr, r1 800832a: f5b1 1f80 cmp.w r1, #1048576 @ 0x100000 800832e: d31b bcc.n 8008368 <__adddf3+0x124> 8008330: f5b1 1f00 cmp.w r1, #2097152 @ 0x200000 8008334: d30c bcc.n 8008350 <__adddf3+0x10c> 8008336: 0849 lsrs r1, r1, #1 8008338: ea5f 0030 movs.w r0, r0, rrx 800833c: ea4f 0c3c mov.w ip, ip, rrx 8008340: f104 0401 add.w r4, r4, #1 8008344: ea4f 5244 mov.w r2, r4, lsl #21 8008348: f512 0f80 cmn.w r2, #4194304 @ 0x400000 800834c: f080 809a bcs.w 8008484 <__adddf3+0x240> 8008350: f1bc 4f00 cmp.w ip, #2147483648 @ 0x80000000 8008354: bf08 it eq 8008356: ea5f 0c50 movseq.w ip, r0, lsr #1 800835a: f150 0000 adcs.w r0, r0, #0 800835e: eb41 5104 adc.w r1, r1, r4, lsl #20 8008362: ea41 0105 orr.w r1, r1, r5 8008366: bd30 pop {r4, r5, pc} 8008368: ea5f 0c4c movs.w ip, ip, lsl #1 800836c: 4140 adcs r0, r0 800836e: eb41 0101 adc.w r1, r1, r1 8008372: 3c01 subs r4, #1 8008374: bf28 it cs 8008376: f5b1 1f80 cmpcs.w r1, #1048576 @ 0x100000 800837a: d2e9 bcs.n 8008350 <__adddf3+0x10c> 800837c: f091 0f00 teq r1, #0 8008380: bf04 itt eq 8008382: 4601 moveq r1, r0 8008384: 2000 moveq r0, #0 8008386: fab1 f381 clz r3, r1 800838a: bf08 it eq 800838c: 3320 addeq r3, #32 800838e: f1a3 030b sub.w r3, r3, #11 8008392: f1b3 0220 subs.w r2, r3, #32 8008396: da0c bge.n 80083b2 <__adddf3+0x16e> 8008398: 320c adds r2, #12 800839a: dd08 ble.n 80083ae <__adddf3+0x16a> 800839c: f102 0c14 add.w ip, r2, #20 80083a0: f1c2 020c rsb r2, r2, #12 80083a4: fa01 f00c lsl.w r0, r1, ip 80083a8: fa21 f102 lsr.w r1, r1, r2 80083ac: e00c b.n 80083c8 <__adddf3+0x184> 80083ae: f102 0214 add.w r2, r2, #20 80083b2: bfd8 it le 80083b4: f1c2 0c20 rsble ip, r2, #32 80083b8: fa01 f102 lsl.w r1, r1, r2 80083bc: fa20 fc0c lsr.w ip, r0, ip 80083c0: bfdc itt le 80083c2: ea41 010c orrle.w r1, r1, ip 80083c6: 4090 lslle r0, r2 80083c8: 1ae4 subs r4, r4, r3 80083ca: bfa2 ittt ge 80083cc: eb01 5104 addge.w r1, r1, r4, lsl #20 80083d0: 4329 orrge r1, r5 80083d2: bd30 popge {r4, r5, pc} 80083d4: ea6f 0404 mvn.w r4, r4 80083d8: 3c1f subs r4, #31 80083da: da1c bge.n 8008416 <__adddf3+0x1d2> 80083dc: 340c adds r4, #12 80083de: dc0e bgt.n 80083fe <__adddf3+0x1ba> 80083e0: f104 0414 add.w r4, r4, #20 80083e4: f1c4 0220 rsb r2, r4, #32 80083e8: fa20 f004 lsr.w r0, r0, r4 80083ec: fa01 f302 lsl.w r3, r1, r2 80083f0: ea40 0003 orr.w r0, r0, r3 80083f4: fa21 f304 lsr.w r3, r1, r4 80083f8: ea45 0103 orr.w r1, r5, r3 80083fc: bd30 pop {r4, r5, pc} 80083fe: f1c4 040c rsb r4, r4, #12 8008402: f1c4 0220 rsb r2, r4, #32 8008406: fa20 f002 lsr.w r0, r0, r2 800840a: fa01 f304 lsl.w r3, r1, r4 800840e: ea40 0003 orr.w r0, r0, r3 8008412: 4629 mov r1, r5 8008414: bd30 pop {r4, r5, pc} 8008416: fa21 f004 lsr.w r0, r1, r4 800841a: 4629 mov r1, r5 800841c: bd30 pop {r4, r5, pc} 800841e: f094 0f00 teq r4, #0 8008422: f483 1380 eor.w r3, r3, #1048576 @ 0x100000 8008426: bf06 itte eq 8008428: f481 1180 eoreq.w r1, r1, #1048576 @ 0x100000 800842c: 3401 addeq r4, #1 800842e: 3d01 subne r5, #1 8008430: e74e b.n 80082d0 <__adddf3+0x8c> 8008432: ea7f 5c64 mvns.w ip, r4, asr #21 8008436: bf18 it ne 8008438: ea7f 5c65 mvnsne.w ip, r5, asr #21 800843c: d029 beq.n 8008492 <__adddf3+0x24e> 800843e: ea94 0f05 teq r4, r5 8008442: bf08 it eq 8008444: ea90 0f02 teqeq r0, r2 8008448: d005 beq.n 8008456 <__adddf3+0x212> 800844a: ea54 0c00 orrs.w ip, r4, r0 800844e: bf04 itt eq 8008450: 4619 moveq r1, r3 8008452: 4610 moveq r0, r2 8008454: bd30 pop {r4, r5, pc} 8008456: ea91 0f03 teq r1, r3 800845a: bf1e ittt ne 800845c: 2100 movne r1, #0 800845e: 2000 movne r0, #0 8008460: bd30 popne {r4, r5, pc} 8008462: ea5f 5c54 movs.w ip, r4, lsr #21 8008466: d105 bne.n 8008474 <__adddf3+0x230> 8008468: 0040 lsls r0, r0, #1 800846a: 4149 adcs r1, r1 800846c: bf28 it cs 800846e: f041 4100 orrcs.w r1, r1, #2147483648 @ 0x80000000 8008472: bd30 pop {r4, r5, pc} 8008474: f514 0480 adds.w r4, r4, #4194304 @ 0x400000 8008478: bf3c itt cc 800847a: f501 1180 addcc.w r1, r1, #1048576 @ 0x100000 800847e: bd30 popcc {r4, r5, pc} 8008480: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000 8008484: f045 41fe orr.w r1, r5, #2130706432 @ 0x7f000000 8008488: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000 800848c: f04f 0000 mov.w r0, #0 8008490: bd30 pop {r4, r5, pc} 8008492: ea7f 5c64 mvns.w ip, r4, asr #21 8008496: bf1a itte ne 8008498: 4619 movne r1, r3 800849a: 4610 movne r0, r2 800849c: ea7f 5c65 mvnseq.w ip, r5, asr #21 80084a0: bf1c itt ne 80084a2: 460b movne r3, r1 80084a4: 4602 movne r2, r0 80084a6: ea50 3401 orrs.w r4, r0, r1, lsl #12 80084aa: bf06 itte eq 80084ac: ea52 3503 orrseq.w r5, r2, r3, lsl #12 80084b0: ea91 0f03 teqeq r1, r3 80084b4: f441 2100 orrne.w r1, r1, #524288 @ 0x80000 80084b8: bd30 pop {r4, r5, pc} 80084ba: bf00 nop 080084bc <__aeabi_ui2d>: 80084bc: f090 0f00 teq r0, #0 80084c0: bf04 itt eq 80084c2: 2100 moveq r1, #0 80084c4: 4770 bxeq lr 80084c6: b530 push {r4, r5, lr} 80084c8: f44f 6480 mov.w r4, #1024 @ 0x400 80084cc: f104 0432 add.w r4, r4, #50 @ 0x32 80084d0: f04f 0500 mov.w r5, #0 80084d4: f04f 0100 mov.w r1, #0 80084d8: e750 b.n 800837c <__adddf3+0x138> 80084da: bf00 nop 080084dc <__aeabi_i2d>: 80084dc: f090 0f00 teq r0, #0 80084e0: bf04 itt eq 80084e2: 2100 moveq r1, #0 80084e4: 4770 bxeq lr 80084e6: b530 push {r4, r5, lr} 80084e8: f44f 6480 mov.w r4, #1024 @ 0x400 80084ec: f104 0432 add.w r4, r4, #50 @ 0x32 80084f0: f010 4500 ands.w r5, r0, #2147483648 @ 0x80000000 80084f4: bf48 it mi 80084f6: 4240 negmi r0, r0 80084f8: f04f 0100 mov.w r1, #0 80084fc: e73e b.n 800837c <__adddf3+0x138> 80084fe: bf00 nop 08008500 <__aeabi_f2d>: 8008500: 0042 lsls r2, r0, #1 8008502: ea4f 01e2 mov.w r1, r2, asr #3 8008506: ea4f 0131 mov.w r1, r1, rrx 800850a: ea4f 7002 mov.w r0, r2, lsl #28 800850e: bf1f itttt ne 8008510: f012 437f andsne.w r3, r2, #4278190080 @ 0xff000000 8008514: f093 4f7f teqne r3, #4278190080 @ 0xff000000 8008518: f081 5160 eorne.w r1, r1, #939524096 @ 0x38000000 800851c: 4770 bxne lr 800851e: f032 427f bics.w r2, r2, #4278190080 @ 0xff000000 8008522: bf08 it eq 8008524: 4770 bxeq lr 8008526: f093 4f7f teq r3, #4278190080 @ 0xff000000 800852a: bf04 itt eq 800852c: f441 2100 orreq.w r1, r1, #524288 @ 0x80000 8008530: 4770 bxeq lr 8008532: b530 push {r4, r5, lr} 8008534: f44f 7460 mov.w r4, #896 @ 0x380 8008538: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000 800853c: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000 8008540: e71c b.n 800837c <__adddf3+0x138> 8008542: bf00 nop 08008544 <__aeabi_ul2d>: 8008544: ea50 0201 orrs.w r2, r0, r1 8008548: bf08 it eq 800854a: 4770 bxeq lr 800854c: b530 push {r4, r5, lr} 800854e: f04f 0500 mov.w r5, #0 8008552: e00a b.n 800856a <__aeabi_l2d+0x16> 08008554 <__aeabi_l2d>: 8008554: ea50 0201 orrs.w r2, r0, r1 8008558: bf08 it eq 800855a: 4770 bxeq lr 800855c: b530 push {r4, r5, lr} 800855e: f011 4500 ands.w r5, r1, #2147483648 @ 0x80000000 8008562: d502 bpl.n 800856a <__aeabi_l2d+0x16> 8008564: 4240 negs r0, r0 8008566: eb61 0141 sbc.w r1, r1, r1, lsl #1 800856a: f44f 6480 mov.w r4, #1024 @ 0x400 800856e: f104 0432 add.w r4, r4, #50 @ 0x32 8008572: ea5f 5c91 movs.w ip, r1, lsr #22 8008576: f43f aed8 beq.w 800832a <__adddf3+0xe6> 800857a: f04f 0203 mov.w r2, #3 800857e: ea5f 0cdc movs.w ip, ip, lsr #3 8008582: bf18 it ne 8008584: 3203 addne r2, #3 8008586: ea5f 0cdc movs.w ip, ip, lsr #3 800858a: bf18 it ne 800858c: 3203 addne r2, #3 800858e: eb02 02dc add.w r2, r2, ip, lsr #3 8008592: f1c2 0320 rsb r3, r2, #32 8008596: fa00 fc03 lsl.w ip, r0, r3 800859a: fa20 f002 lsr.w r0, r0, r2 800859e: fa01 fe03 lsl.w lr, r1, r3 80085a2: ea40 000e orr.w r0, r0, lr 80085a6: fa21 f102 lsr.w r1, r1, r2 80085aa: 4414 add r4, r2 80085ac: e6bd b.n 800832a <__adddf3+0xe6> 80085ae: bf00 nop 080085b0 <__aeabi_dmul>: 80085b0: b570 push {r4, r5, r6, lr} 80085b2: f04f 0cff mov.w ip, #255 @ 0xff 80085b6: f44c 6ce0 orr.w ip, ip, #1792 @ 0x700 80085ba: ea1c 5411 ands.w r4, ip, r1, lsr #20 80085be: bf1d ittte ne 80085c0: ea1c 5513 andsne.w r5, ip, r3, lsr #20 80085c4: ea94 0f0c teqne r4, ip 80085c8: ea95 0f0c teqne r5, ip 80085cc: f000 f8de bleq 800878c <__aeabi_dmul+0x1dc> 80085d0: 442c add r4, r5 80085d2: ea81 0603 eor.w r6, r1, r3 80085d6: ea21 514c bic.w r1, r1, ip, lsl #21 80085da: ea23 534c bic.w r3, r3, ip, lsl #21 80085de: ea50 3501 orrs.w r5, r0, r1, lsl #12 80085e2: bf18 it ne 80085e4: ea52 3503 orrsne.w r5, r2, r3, lsl #12 80085e8: f441 1180 orr.w r1, r1, #1048576 @ 0x100000 80085ec: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 80085f0: d038 beq.n 8008664 <__aeabi_dmul+0xb4> 80085f2: fba0 ce02 umull ip, lr, r0, r2 80085f6: f04f 0500 mov.w r5, #0 80085fa: fbe1 e502 umlal lr, r5, r1, r2 80085fe: f006 4200 and.w r2, r6, #2147483648 @ 0x80000000 8008602: fbe0 e503 umlal lr, r5, r0, r3 8008606: f04f 0600 mov.w r6, #0 800860a: fbe1 5603 umlal r5, r6, r1, r3 800860e: f09c 0f00 teq ip, #0 8008612: bf18 it ne 8008614: f04e 0e01 orrne.w lr, lr, #1 8008618: f1a4 04ff sub.w r4, r4, #255 @ 0xff 800861c: f5b6 7f00 cmp.w r6, #512 @ 0x200 8008620: f564 7440 sbc.w r4, r4, #768 @ 0x300 8008624: d204 bcs.n 8008630 <__aeabi_dmul+0x80> 8008626: ea5f 0e4e movs.w lr, lr, lsl #1 800862a: 416d adcs r5, r5 800862c: eb46 0606 adc.w r6, r6, r6 8008630: ea42 21c6 orr.w r1, r2, r6, lsl #11 8008634: ea41 5155 orr.w r1, r1, r5, lsr #21 8008638: ea4f 20c5 mov.w r0, r5, lsl #11 800863c: ea40 505e orr.w r0, r0, lr, lsr #21 8008640: ea4f 2ece mov.w lr, lr, lsl #11 8008644: f1b4 0cfd subs.w ip, r4, #253 @ 0xfd 8008648: bf88 it hi 800864a: f5bc 6fe0 cmphi.w ip, #1792 @ 0x700 800864e: d81e bhi.n 800868e <__aeabi_dmul+0xde> 8008650: f1be 4f00 cmp.w lr, #2147483648 @ 0x80000000 8008654: bf08 it eq 8008656: ea5f 0e50 movseq.w lr, r0, lsr #1 800865a: f150 0000 adcs.w r0, r0, #0 800865e: eb41 5104 adc.w r1, r1, r4, lsl #20 8008662: bd70 pop {r4, r5, r6, pc} 8008664: f006 4600 and.w r6, r6, #2147483648 @ 0x80000000 8008668: ea46 0101 orr.w r1, r6, r1 800866c: ea40 0002 orr.w r0, r0, r2 8008670: ea81 0103 eor.w r1, r1, r3 8008674: ebb4 045c subs.w r4, r4, ip, lsr #1 8008678: bfc2 ittt gt 800867a: ebd4 050c rsbsgt r5, r4, ip 800867e: ea41 5104 orrgt.w r1, r1, r4, lsl #20 8008682: bd70 popgt {r4, r5, r6, pc} 8008684: f441 1180 orr.w r1, r1, #1048576 @ 0x100000 8008688: f04f 0e00 mov.w lr, #0 800868c: 3c01 subs r4, #1 800868e: f300 80ab bgt.w 80087e8 <__aeabi_dmul+0x238> 8008692: f114 0f36 cmn.w r4, #54 @ 0x36 8008696: bfde ittt le 8008698: 2000 movle r0, #0 800869a: f001 4100 andle.w r1, r1, #2147483648 @ 0x80000000 800869e: bd70 pople {r4, r5, r6, pc} 80086a0: f1c4 0400 rsb r4, r4, #0 80086a4: 3c20 subs r4, #32 80086a6: da35 bge.n 8008714 <__aeabi_dmul+0x164> 80086a8: 340c adds r4, #12 80086aa: dc1b bgt.n 80086e4 <__aeabi_dmul+0x134> 80086ac: f104 0414 add.w r4, r4, #20 80086b0: f1c4 0520 rsb r5, r4, #32 80086b4: fa00 f305 lsl.w r3, r0, r5 80086b8: fa20 f004 lsr.w r0, r0, r4 80086bc: fa01 f205 lsl.w r2, r1, r5 80086c0: ea40 0002 orr.w r0, r0, r2 80086c4: f001 4200 and.w r2, r1, #2147483648 @ 0x80000000 80086c8: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000 80086cc: eb10 70d3 adds.w r0, r0, r3, lsr #31 80086d0: fa21 f604 lsr.w r6, r1, r4 80086d4: eb42 0106 adc.w r1, r2, r6 80086d8: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 80086dc: bf08 it eq 80086de: ea20 70d3 biceq.w r0, r0, r3, lsr #31 80086e2: bd70 pop {r4, r5, r6, pc} 80086e4: f1c4 040c rsb r4, r4, #12 80086e8: f1c4 0520 rsb r5, r4, #32 80086ec: fa00 f304 lsl.w r3, r0, r4 80086f0: fa20 f005 lsr.w r0, r0, r5 80086f4: fa01 f204 lsl.w r2, r1, r4 80086f8: ea40 0002 orr.w r0, r0, r2 80086fc: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 8008700: eb10 70d3 adds.w r0, r0, r3, lsr #31 8008704: f141 0100 adc.w r1, r1, #0 8008708: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 800870c: bf08 it eq 800870e: ea20 70d3 biceq.w r0, r0, r3, lsr #31 8008712: bd70 pop {r4, r5, r6, pc} 8008714: f1c4 0520 rsb r5, r4, #32 8008718: fa00 f205 lsl.w r2, r0, r5 800871c: ea4e 0e02 orr.w lr, lr, r2 8008720: fa20 f304 lsr.w r3, r0, r4 8008724: fa01 f205 lsl.w r2, r1, r5 8008728: ea43 0302 orr.w r3, r3, r2 800872c: fa21 f004 lsr.w r0, r1, r4 8008730: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 8008734: fa21 f204 lsr.w r2, r1, r4 8008738: ea20 0002 bic.w r0, r0, r2 800873c: eb00 70d3 add.w r0, r0, r3, lsr #31 8008740: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 8008744: bf08 it eq 8008746: ea20 70d3 biceq.w r0, r0, r3, lsr #31 800874a: bd70 pop {r4, r5, r6, pc} 800874c: f094 0f00 teq r4, #0 8008750: d10f bne.n 8008772 <__aeabi_dmul+0x1c2> 8008752: f001 4600 and.w r6, r1, #2147483648 @ 0x80000000 8008756: 0040 lsls r0, r0, #1 8008758: eb41 0101 adc.w r1, r1, r1 800875c: f411 1f80 tst.w r1, #1048576 @ 0x100000 8008760: bf08 it eq 8008762: 3c01 subeq r4, #1 8008764: d0f7 beq.n 8008756 <__aeabi_dmul+0x1a6> 8008766: ea41 0106 orr.w r1, r1, r6 800876a: f095 0f00 teq r5, #0 800876e: bf18 it ne 8008770: 4770 bxne lr 8008772: f003 4600 and.w r6, r3, #2147483648 @ 0x80000000 8008776: 0052 lsls r2, r2, #1 8008778: eb43 0303 adc.w r3, r3, r3 800877c: f413 1f80 tst.w r3, #1048576 @ 0x100000 8008780: bf08 it eq 8008782: 3d01 subeq r5, #1 8008784: d0f7 beq.n 8008776 <__aeabi_dmul+0x1c6> 8008786: ea43 0306 orr.w r3, r3, r6 800878a: 4770 bx lr 800878c: ea94 0f0c teq r4, ip 8008790: ea0c 5513 and.w r5, ip, r3, lsr #20 8008794: bf18 it ne 8008796: ea95 0f0c teqne r5, ip 800879a: d00c beq.n 80087b6 <__aeabi_dmul+0x206> 800879c: ea50 0641 orrs.w r6, r0, r1, lsl #1 80087a0: bf18 it ne 80087a2: ea52 0643 orrsne.w r6, r2, r3, lsl #1 80087a6: d1d1 bne.n 800874c <__aeabi_dmul+0x19c> 80087a8: ea81 0103 eor.w r1, r1, r3 80087ac: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 80087b0: f04f 0000 mov.w r0, #0 80087b4: bd70 pop {r4, r5, r6, pc} 80087b6: ea50 0641 orrs.w r6, r0, r1, lsl #1 80087ba: bf06 itte eq 80087bc: 4610 moveq r0, r2 80087be: 4619 moveq r1, r3 80087c0: ea52 0643 orrsne.w r6, r2, r3, lsl #1 80087c4: d019 beq.n 80087fa <__aeabi_dmul+0x24a> 80087c6: ea94 0f0c teq r4, ip 80087ca: d102 bne.n 80087d2 <__aeabi_dmul+0x222> 80087cc: ea50 3601 orrs.w r6, r0, r1, lsl #12 80087d0: d113 bne.n 80087fa <__aeabi_dmul+0x24a> 80087d2: ea95 0f0c teq r5, ip 80087d6: d105 bne.n 80087e4 <__aeabi_dmul+0x234> 80087d8: ea52 3603 orrs.w r6, r2, r3, lsl #12 80087dc: bf1c itt ne 80087de: 4610 movne r0, r2 80087e0: 4619 movne r1, r3 80087e2: d10a bne.n 80087fa <__aeabi_dmul+0x24a> 80087e4: ea81 0103 eor.w r1, r1, r3 80087e8: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 80087ec: f041 41fe orr.w r1, r1, #2130706432 @ 0x7f000000 80087f0: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000 80087f4: f04f 0000 mov.w r0, #0 80087f8: bd70 pop {r4, r5, r6, pc} 80087fa: f041 41fe orr.w r1, r1, #2130706432 @ 0x7f000000 80087fe: f441 0178 orr.w r1, r1, #16252928 @ 0xf80000 8008802: bd70 pop {r4, r5, r6, pc} 08008804 <__aeabi_ddiv>: 8008804: b570 push {r4, r5, r6, lr} 8008806: f04f 0cff mov.w ip, #255 @ 0xff 800880a: f44c 6ce0 orr.w ip, ip, #1792 @ 0x700 800880e: ea1c 5411 ands.w r4, ip, r1, lsr #20 8008812: bf1d ittte ne 8008814: ea1c 5513 andsne.w r5, ip, r3, lsr #20 8008818: ea94 0f0c teqne r4, ip 800881c: ea95 0f0c teqne r5, ip 8008820: f000 f8a7 bleq 8008972 <__aeabi_ddiv+0x16e> 8008824: eba4 0405 sub.w r4, r4, r5 8008828: ea81 0e03 eor.w lr, r1, r3 800882c: ea52 3503 orrs.w r5, r2, r3, lsl #12 8008830: ea4f 3101 mov.w r1, r1, lsl #12 8008834: f000 8088 beq.w 8008948 <__aeabi_ddiv+0x144> 8008838: ea4f 3303 mov.w r3, r3, lsl #12 800883c: f04f 5580 mov.w r5, #268435456 @ 0x10000000 8008840: ea45 1313 orr.w r3, r5, r3, lsr #4 8008844: ea43 6312 orr.w r3, r3, r2, lsr #24 8008848: ea4f 2202 mov.w r2, r2, lsl #8 800884c: ea45 1511 orr.w r5, r5, r1, lsr #4 8008850: ea45 6510 orr.w r5, r5, r0, lsr #24 8008854: ea4f 2600 mov.w r6, r0, lsl #8 8008858: f00e 4100 and.w r1, lr, #2147483648 @ 0x80000000 800885c: 429d cmp r5, r3 800885e: bf08 it eq 8008860: 4296 cmpeq r6, r2 8008862: f144 04fd adc.w r4, r4, #253 @ 0xfd 8008866: f504 7440 add.w r4, r4, #768 @ 0x300 800886a: d202 bcs.n 8008872 <__aeabi_ddiv+0x6e> 800886c: 085b lsrs r3, r3, #1 800886e: ea4f 0232 mov.w r2, r2, rrx 8008872: 1ab6 subs r6, r6, r2 8008874: eb65 0503 sbc.w r5, r5, r3 8008878: 085b lsrs r3, r3, #1 800887a: ea4f 0232 mov.w r2, r2, rrx 800887e: f44f 1080 mov.w r0, #1048576 @ 0x100000 8008882: f44f 2c00 mov.w ip, #524288 @ 0x80000 8008886: ebb6 0e02 subs.w lr, r6, r2 800888a: eb75 0e03 sbcs.w lr, r5, r3 800888e: bf22 ittt cs 8008890: 1ab6 subcs r6, r6, r2 8008892: 4675 movcs r5, lr 8008894: ea40 000c orrcs.w r0, r0, ip 8008898: 085b lsrs r3, r3, #1 800889a: ea4f 0232 mov.w r2, r2, rrx 800889e: ebb6 0e02 subs.w lr, r6, r2 80088a2: eb75 0e03 sbcs.w lr, r5, r3 80088a6: bf22 ittt cs 80088a8: 1ab6 subcs r6, r6, r2 80088aa: 4675 movcs r5, lr 80088ac: ea40 005c orrcs.w r0, r0, ip, lsr #1 80088b0: 085b lsrs r3, r3, #1 80088b2: ea4f 0232 mov.w r2, r2, rrx 80088b6: ebb6 0e02 subs.w lr, r6, r2 80088ba: eb75 0e03 sbcs.w lr, r5, r3 80088be: bf22 ittt cs 80088c0: 1ab6 subcs r6, r6, r2 80088c2: 4675 movcs r5, lr 80088c4: ea40 009c orrcs.w r0, r0, ip, lsr #2 80088c8: 085b lsrs r3, r3, #1 80088ca: ea4f 0232 mov.w r2, r2, rrx 80088ce: ebb6 0e02 subs.w lr, r6, r2 80088d2: eb75 0e03 sbcs.w lr, r5, r3 80088d6: bf22 ittt cs 80088d8: 1ab6 subcs r6, r6, r2 80088da: 4675 movcs r5, lr 80088dc: ea40 00dc orrcs.w r0, r0, ip, lsr #3 80088e0: ea55 0e06 orrs.w lr, r5, r6 80088e4: d018 beq.n 8008918 <__aeabi_ddiv+0x114> 80088e6: ea4f 1505 mov.w r5, r5, lsl #4 80088ea: ea45 7516 orr.w r5, r5, r6, lsr #28 80088ee: ea4f 1606 mov.w r6, r6, lsl #4 80088f2: ea4f 03c3 mov.w r3, r3, lsl #3 80088f6: ea43 7352 orr.w r3, r3, r2, lsr #29 80088fa: ea4f 02c2 mov.w r2, r2, lsl #3 80088fe: ea5f 1c1c movs.w ip, ip, lsr #4 8008902: d1c0 bne.n 8008886 <__aeabi_ddiv+0x82> 8008904: f411 1f80 tst.w r1, #1048576 @ 0x100000 8008908: d10b bne.n 8008922 <__aeabi_ddiv+0x11e> 800890a: ea41 0100 orr.w r1, r1, r0 800890e: f04f 0000 mov.w r0, #0 8008912: f04f 4c00 mov.w ip, #2147483648 @ 0x80000000 8008916: e7b6 b.n 8008886 <__aeabi_ddiv+0x82> 8008918: f411 1f80 tst.w r1, #1048576 @ 0x100000 800891c: bf04 itt eq 800891e: 4301 orreq r1, r0 8008920: 2000 moveq r0, #0 8008922: f1b4 0cfd subs.w ip, r4, #253 @ 0xfd 8008926: bf88 it hi 8008928: f5bc 6fe0 cmphi.w ip, #1792 @ 0x700 800892c: f63f aeaf bhi.w 800868e <__aeabi_dmul+0xde> 8008930: ebb5 0c03 subs.w ip, r5, r3 8008934: bf04 itt eq 8008936: ebb6 0c02 subseq.w ip, r6, r2 800893a: ea5f 0c50 movseq.w ip, r0, lsr #1 800893e: f150 0000 adcs.w r0, r0, #0 8008942: eb41 5104 adc.w r1, r1, r4, lsl #20 8008946: bd70 pop {r4, r5, r6, pc} 8008948: f00e 4e00 and.w lr, lr, #2147483648 @ 0x80000000 800894c: ea4e 3111 orr.w r1, lr, r1, lsr #12 8008950: eb14 045c adds.w r4, r4, ip, lsr #1 8008954: bfc2 ittt gt 8008956: ebd4 050c rsbsgt r5, r4, ip 800895a: ea41 5104 orrgt.w r1, r1, r4, lsl #20 800895e: bd70 popgt {r4, r5, r6, pc} 8008960: f441 1180 orr.w r1, r1, #1048576 @ 0x100000 8008964: f04f 0e00 mov.w lr, #0 8008968: 3c01 subs r4, #1 800896a: e690 b.n 800868e <__aeabi_dmul+0xde> 800896c: ea45 0e06 orr.w lr, r5, r6 8008970: e68d b.n 800868e <__aeabi_dmul+0xde> 8008972: ea0c 5513 and.w r5, ip, r3, lsr #20 8008976: ea94 0f0c teq r4, ip 800897a: bf08 it eq 800897c: ea95 0f0c teqeq r5, ip 8008980: f43f af3b beq.w 80087fa <__aeabi_dmul+0x24a> 8008984: ea94 0f0c teq r4, ip 8008988: d10a bne.n 80089a0 <__aeabi_ddiv+0x19c> 800898a: ea50 3401 orrs.w r4, r0, r1, lsl #12 800898e: f47f af34 bne.w 80087fa <__aeabi_dmul+0x24a> 8008992: ea95 0f0c teq r5, ip 8008996: f47f af25 bne.w 80087e4 <__aeabi_dmul+0x234> 800899a: 4610 mov r0, r2 800899c: 4619 mov r1, r3 800899e: e72c b.n 80087fa <__aeabi_dmul+0x24a> 80089a0: ea95 0f0c teq r5, ip 80089a4: d106 bne.n 80089b4 <__aeabi_ddiv+0x1b0> 80089a6: ea52 3503 orrs.w r5, r2, r3, lsl #12 80089aa: f43f aefd beq.w 80087a8 <__aeabi_dmul+0x1f8> 80089ae: 4610 mov r0, r2 80089b0: 4619 mov r1, r3 80089b2: e722 b.n 80087fa <__aeabi_dmul+0x24a> 80089b4: ea50 0641 orrs.w r6, r0, r1, lsl #1 80089b8: bf18 it ne 80089ba: ea52 0643 orrsne.w r6, r2, r3, lsl #1 80089be: f47f aec5 bne.w 800874c <__aeabi_dmul+0x19c> 80089c2: ea50 0441 orrs.w r4, r0, r1, lsl #1 80089c6: f47f af0d bne.w 80087e4 <__aeabi_dmul+0x234> 80089ca: ea52 0543 orrs.w r5, r2, r3, lsl #1 80089ce: f47f aeeb bne.w 80087a8 <__aeabi_dmul+0x1f8> 80089d2: e712 b.n 80087fa <__aeabi_dmul+0x24a> 080089d4 <__gedf2>: 80089d4: f04f 3cff mov.w ip, #4294967295 @ 0xffffffff 80089d8: e006 b.n 80089e8 <__cmpdf2+0x4> 80089da: bf00 nop 080089dc <__ledf2>: 80089dc: f04f 0c01 mov.w ip, #1 80089e0: e002 b.n 80089e8 <__cmpdf2+0x4> 80089e2: bf00 nop 080089e4 <__cmpdf2>: 80089e4: f04f 0c01 mov.w ip, #1 80089e8: f84d cd04 str.w ip, [sp, #-4]! 80089ec: ea4f 0c41 mov.w ip, r1, lsl #1 80089f0: ea7f 5c6c mvns.w ip, ip, asr #21 80089f4: ea4f 0c43 mov.w ip, r3, lsl #1 80089f8: bf18 it ne 80089fa: ea7f 5c6c mvnsne.w ip, ip, asr #21 80089fe: d01b beq.n 8008a38 <__cmpdf2+0x54> 8008a00: b001 add sp, #4 8008a02: ea50 0c41 orrs.w ip, r0, r1, lsl #1 8008a06: bf0c ite eq 8008a08: ea52 0c43 orrseq.w ip, r2, r3, lsl #1 8008a0c: ea91 0f03 teqne r1, r3 8008a10: bf02 ittt eq 8008a12: ea90 0f02 teqeq r0, r2 8008a16: 2000 moveq r0, #0 8008a18: 4770 bxeq lr 8008a1a: f110 0f00 cmn.w r0, #0 8008a1e: ea91 0f03 teq r1, r3 8008a22: bf58 it pl 8008a24: 4299 cmppl r1, r3 8008a26: bf08 it eq 8008a28: 4290 cmpeq r0, r2 8008a2a: bf2c ite cs 8008a2c: 17d8 asrcs r0, r3, #31 8008a2e: ea6f 70e3 mvncc.w r0, r3, asr #31 8008a32: f040 0001 orr.w r0, r0, #1 8008a36: 4770 bx lr 8008a38: ea4f 0c41 mov.w ip, r1, lsl #1 8008a3c: ea7f 5c6c mvns.w ip, ip, asr #21 8008a40: d102 bne.n 8008a48 <__cmpdf2+0x64> 8008a42: ea50 3c01 orrs.w ip, r0, r1, lsl #12 8008a46: d107 bne.n 8008a58 <__cmpdf2+0x74> 8008a48: ea4f 0c43 mov.w ip, r3, lsl #1 8008a4c: ea7f 5c6c mvns.w ip, ip, asr #21 8008a50: d1d6 bne.n 8008a00 <__cmpdf2+0x1c> 8008a52: ea52 3c03 orrs.w ip, r2, r3, lsl #12 8008a56: d0d3 beq.n 8008a00 <__cmpdf2+0x1c> 8008a58: f85d 0b04 ldr.w r0, [sp], #4 8008a5c: 4770 bx lr 8008a5e: bf00 nop 08008a60 <__aeabi_cdrcmple>: 8008a60: 4684 mov ip, r0 8008a62: 4610 mov r0, r2 8008a64: 4662 mov r2, ip 8008a66: 468c mov ip, r1 8008a68: 4619 mov r1, r3 8008a6a: 4663 mov r3, ip 8008a6c: e000 b.n 8008a70 <__aeabi_cdcmpeq> 8008a6e: bf00 nop 08008a70 <__aeabi_cdcmpeq>: 8008a70: b501 push {r0, lr} 8008a72: f7ff ffb7 bl 80089e4 <__cmpdf2> 8008a76: 2800 cmp r0, #0 8008a78: bf48 it mi 8008a7a: f110 0f00 cmnmi.w r0, #0 8008a7e: bd01 pop {r0, pc} 08008a80 <__aeabi_dcmpeq>: 8008a80: f84d ed08 str.w lr, [sp, #-8]! 8008a84: f7ff fff4 bl 8008a70 <__aeabi_cdcmpeq> 8008a88: bf0c ite eq 8008a8a: 2001 moveq r0, #1 8008a8c: 2000 movne r0, #0 8008a8e: f85d fb08 ldr.w pc, [sp], #8 8008a92: bf00 nop 08008a94 <__aeabi_dcmplt>: 8008a94: f84d ed08 str.w lr, [sp, #-8]! 8008a98: f7ff ffea bl 8008a70 <__aeabi_cdcmpeq> 8008a9c: bf34 ite cc 8008a9e: 2001 movcc r0, #1 8008aa0: 2000 movcs r0, #0 8008aa2: f85d fb08 ldr.w pc, [sp], #8 8008aa6: bf00 nop 08008aa8 <__aeabi_dcmple>: 8008aa8: f84d ed08 str.w lr, [sp, #-8]! 8008aac: f7ff ffe0 bl 8008a70 <__aeabi_cdcmpeq> 8008ab0: bf94 ite ls 8008ab2: 2001 movls r0, #1 8008ab4: 2000 movhi r0, #0 8008ab6: f85d fb08 ldr.w pc, [sp], #8 8008aba: bf00 nop 08008abc <__aeabi_dcmpge>: 8008abc: f84d ed08 str.w lr, [sp, #-8]! 8008ac0: f7ff ffce bl 8008a60 <__aeabi_cdrcmple> 8008ac4: bf94 ite ls 8008ac6: 2001 movls r0, #1 8008ac8: 2000 movhi r0, #0 8008aca: f85d fb08 ldr.w pc, [sp], #8 8008ace: bf00 nop 08008ad0 <__aeabi_dcmpgt>: 8008ad0: f84d ed08 str.w lr, [sp, #-8]! 8008ad4: f7ff ffc4 bl 8008a60 <__aeabi_cdrcmple> 8008ad8: bf34 ite cc 8008ada: 2001 movcc r0, #1 8008adc: 2000 movcs r0, #0 8008ade: f85d fb08 ldr.w pc, [sp], #8 8008ae2: bf00 nop 08008ae4 <__aeabi_dcmpun>: 8008ae4: ea4f 0c41 mov.w ip, r1, lsl #1 8008ae8: ea7f 5c6c mvns.w ip, ip, asr #21 8008aec: d102 bne.n 8008af4 <__aeabi_dcmpun+0x10> 8008aee: ea50 3c01 orrs.w ip, r0, r1, lsl #12 8008af2: d10a bne.n 8008b0a <__aeabi_dcmpun+0x26> 8008af4: ea4f 0c43 mov.w ip, r3, lsl #1 8008af8: ea7f 5c6c mvns.w ip, ip, asr #21 8008afc: d102 bne.n 8008b04 <__aeabi_dcmpun+0x20> 8008afe: ea52 3c03 orrs.w ip, r2, r3, lsl #12 8008b02: d102 bne.n 8008b0a <__aeabi_dcmpun+0x26> 8008b04: f04f 0000 mov.w r0, #0 8008b08: 4770 bx lr 8008b0a: f04f 0001 mov.w r0, #1 8008b0e: 4770 bx lr 08008b10 <__aeabi_d2iz>: 8008b10: ea4f 0241 mov.w r2, r1, lsl #1 8008b14: f512 1200 adds.w r2, r2, #2097152 @ 0x200000 8008b18: d215 bcs.n 8008b46 <__aeabi_d2iz+0x36> 8008b1a: d511 bpl.n 8008b40 <__aeabi_d2iz+0x30> 8008b1c: f46f 7378 mvn.w r3, #992 @ 0x3e0 8008b20: ebb3 5262 subs.w r2, r3, r2, asr #21 8008b24: d912 bls.n 8008b4c <__aeabi_d2iz+0x3c> 8008b26: ea4f 23c1 mov.w r3, r1, lsl #11 8008b2a: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000 8008b2e: ea43 5350 orr.w r3, r3, r0, lsr #21 8008b32: f011 4f00 tst.w r1, #2147483648 @ 0x80000000 8008b36: fa23 f002 lsr.w r0, r3, r2 8008b3a: bf18 it ne 8008b3c: 4240 negne r0, r0 8008b3e: 4770 bx lr 8008b40: f04f 0000 mov.w r0, #0 8008b44: 4770 bx lr 8008b46: ea50 3001 orrs.w r0, r0, r1, lsl #12 8008b4a: d105 bne.n 8008b58 <__aeabi_d2iz+0x48> 8008b4c: f011 4000 ands.w r0, r1, #2147483648 @ 0x80000000 8008b50: bf08 it eq 8008b52: f06f 4000 mvneq.w r0, #2147483648 @ 0x80000000 8008b56: 4770 bx lr 8008b58: f04f 0000 mov.w r0, #0 8008b5c: 4770 bx lr 8008b5e: bf00 nop 08008b60 <__aeabi_d2f>: 8008b60: ea4f 0241 mov.w r2, r1, lsl #1 8008b64: f1b2 43e0 subs.w r3, r2, #1879048192 @ 0x70000000 8008b68: bf24 itt cs 8008b6a: f5b3 1c00 subscs.w ip, r3, #2097152 @ 0x200000 8008b6e: f1dc 5cfe rsbscs ip, ip, #532676608 @ 0x1fc00000 8008b72: d90d bls.n 8008b90 <__aeabi_d2f+0x30> 8008b74: f001 4c00 and.w ip, r1, #2147483648 @ 0x80000000 8008b78: ea4f 02c0 mov.w r2, r0, lsl #3 8008b7c: ea4c 7050 orr.w r0, ip, r0, lsr #29 8008b80: f1b2 4f00 cmp.w r2, #2147483648 @ 0x80000000 8008b84: eb40 0083 adc.w r0, r0, r3, lsl #2 8008b88: bf08 it eq 8008b8a: f020 0001 biceq.w r0, r0, #1 8008b8e: 4770 bx lr 8008b90: f011 4f80 tst.w r1, #1073741824 @ 0x40000000 8008b94: d121 bne.n 8008bda <__aeabi_d2f+0x7a> 8008b96: f113 7238 adds.w r2, r3, #48234496 @ 0x2e00000 8008b9a: bfbc itt lt 8008b9c: f001 4000 andlt.w r0, r1, #2147483648 @ 0x80000000 8008ba0: 4770 bxlt lr 8008ba2: f441 1180 orr.w r1, r1, #1048576 @ 0x100000 8008ba6: ea4f 5252 mov.w r2, r2, lsr #21 8008baa: f1c2 0218 rsb r2, r2, #24 8008bae: f1c2 0c20 rsb ip, r2, #32 8008bb2: fa10 f30c lsls.w r3, r0, ip 8008bb6: fa20 f002 lsr.w r0, r0, r2 8008bba: bf18 it ne 8008bbc: f040 0001 orrne.w r0, r0, #1 8008bc0: ea4f 23c1 mov.w r3, r1, lsl #11 8008bc4: ea4f 23d3 mov.w r3, r3, lsr #11 8008bc8: fa03 fc0c lsl.w ip, r3, ip 8008bcc: ea40 000c orr.w r0, r0, ip 8008bd0: fa23 f302 lsr.w r3, r3, r2 8008bd4: ea4f 0343 mov.w r3, r3, lsl #1 8008bd8: e7cc b.n 8008b74 <__aeabi_d2f+0x14> 8008bda: ea7f 5362 mvns.w r3, r2, asr #21 8008bde: d107 bne.n 8008bf0 <__aeabi_d2f+0x90> 8008be0: ea50 3301 orrs.w r3, r0, r1, lsl #12 8008be4: bf1e ittt ne 8008be6: f04f 40fe movne.w r0, #2130706432 @ 0x7f000000 8008bea: f440 0040 orrne.w r0, r0, #12582912 @ 0xc00000 8008bee: 4770 bxne lr 8008bf0: f001 4000 and.w r0, r1, #2147483648 @ 0x80000000 8008bf4: f040 40fe orr.w r0, r0, #2130706432 @ 0x7f000000 8008bf8: f440 0000 orr.w r0, r0, #8388608 @ 0x800000 8008bfc: 4770 bx lr 8008bfe: bf00 nop 08008c00 <__aeabi_frsub>: 8008c00: f080 4000 eor.w r0, r0, #2147483648 @ 0x80000000 8008c04: e002 b.n 8008c0c <__addsf3> 8008c06: bf00 nop 08008c08 <__aeabi_fsub>: 8008c08: f081 4100 eor.w r1, r1, #2147483648 @ 0x80000000 08008c0c <__addsf3>: 8008c0c: 0042 lsls r2, r0, #1 8008c0e: bf1f itttt ne 8008c10: ea5f 0341 movsne.w r3, r1, lsl #1 8008c14: ea92 0f03 teqne r2, r3 8008c18: ea7f 6c22 mvnsne.w ip, r2, asr #24 8008c1c: ea7f 6c23 mvnsne.w ip, r3, asr #24 8008c20: d06a beq.n 8008cf8 <__addsf3+0xec> 8008c22: ea4f 6212 mov.w r2, r2, lsr #24 8008c26: ebd2 6313 rsbs r3, r2, r3, lsr #24 8008c2a: bfc1 itttt gt 8008c2c: 18d2 addgt r2, r2, r3 8008c2e: 4041 eorgt r1, r0 8008c30: 4048 eorgt r0, r1 8008c32: 4041 eorgt r1, r0 8008c34: bfb8 it lt 8008c36: 425b neglt r3, r3 8008c38: 2b19 cmp r3, #25 8008c3a: bf88 it hi 8008c3c: 4770 bxhi lr 8008c3e: f010 4f00 tst.w r0, #2147483648 @ 0x80000000 8008c42: f440 0000 orr.w r0, r0, #8388608 @ 0x800000 8008c46: f020 407f bic.w r0, r0, #4278190080 @ 0xff000000 8008c4a: bf18 it ne 8008c4c: 4240 negne r0, r0 8008c4e: f011 4f00 tst.w r1, #2147483648 @ 0x80000000 8008c52: f441 0100 orr.w r1, r1, #8388608 @ 0x800000 8008c56: f021 417f bic.w r1, r1, #4278190080 @ 0xff000000 8008c5a: bf18 it ne 8008c5c: 4249 negne r1, r1 8008c5e: ea92 0f03 teq r2, r3 8008c62: d03f beq.n 8008ce4 <__addsf3+0xd8> 8008c64: f1a2 0201 sub.w r2, r2, #1 8008c68: fa41 fc03 asr.w ip, r1, r3 8008c6c: eb10 000c adds.w r0, r0, ip 8008c70: f1c3 0320 rsb r3, r3, #32 8008c74: fa01 f103 lsl.w r1, r1, r3 8008c78: f000 4300 and.w r3, r0, #2147483648 @ 0x80000000 8008c7c: d502 bpl.n 8008c84 <__addsf3+0x78> 8008c7e: 4249 negs r1, r1 8008c80: eb60 0040 sbc.w r0, r0, r0, lsl #1 8008c84: f5b0 0f00 cmp.w r0, #8388608 @ 0x800000 8008c88: d313 bcc.n 8008cb2 <__addsf3+0xa6> 8008c8a: f1b0 7f80 cmp.w r0, #16777216 @ 0x1000000 8008c8e: d306 bcc.n 8008c9e <__addsf3+0x92> 8008c90: 0840 lsrs r0, r0, #1 8008c92: ea4f 0131 mov.w r1, r1, rrx 8008c96: f102 0201 add.w r2, r2, #1 8008c9a: 2afe cmp r2, #254 @ 0xfe 8008c9c: d251 bcs.n 8008d42 <__addsf3+0x136> 8008c9e: f1b1 4f00 cmp.w r1, #2147483648 @ 0x80000000 8008ca2: eb40 50c2 adc.w r0, r0, r2, lsl #23 8008ca6: bf08 it eq 8008ca8: f020 0001 biceq.w r0, r0, #1 8008cac: ea40 0003 orr.w r0, r0, r3 8008cb0: 4770 bx lr 8008cb2: 0049 lsls r1, r1, #1 8008cb4: eb40 0000 adc.w r0, r0, r0 8008cb8: 3a01 subs r2, #1 8008cba: bf28 it cs 8008cbc: f5b0 0f00 cmpcs.w r0, #8388608 @ 0x800000 8008cc0: d2ed bcs.n 8008c9e <__addsf3+0x92> 8008cc2: fab0 fc80 clz ip, r0 8008cc6: f1ac 0c08 sub.w ip, ip, #8 8008cca: ebb2 020c subs.w r2, r2, ip 8008cce: fa00 f00c lsl.w r0, r0, ip 8008cd2: bfaa itet ge 8008cd4: eb00 50c2 addge.w r0, r0, r2, lsl #23 8008cd8: 4252 neglt r2, r2 8008cda: 4318 orrge r0, r3 8008cdc: bfbc itt lt 8008cde: 40d0 lsrlt r0, r2 8008ce0: 4318 orrlt r0, r3 8008ce2: 4770 bx lr 8008ce4: f092 0f00 teq r2, #0 8008ce8: f481 0100 eor.w r1, r1, #8388608 @ 0x800000 8008cec: bf06 itte eq 8008cee: f480 0000 eoreq.w r0, r0, #8388608 @ 0x800000 8008cf2: 3201 addeq r2, #1 8008cf4: 3b01 subne r3, #1 8008cf6: e7b5 b.n 8008c64 <__addsf3+0x58> 8008cf8: ea4f 0341 mov.w r3, r1, lsl #1 8008cfc: ea7f 6c22 mvns.w ip, r2, asr #24 8008d00: bf18 it ne 8008d02: ea7f 6c23 mvnsne.w ip, r3, asr #24 8008d06: d021 beq.n 8008d4c <__addsf3+0x140> 8008d08: ea92 0f03 teq r2, r3 8008d0c: d004 beq.n 8008d18 <__addsf3+0x10c> 8008d0e: f092 0f00 teq r2, #0 8008d12: bf08 it eq 8008d14: 4608 moveq r0, r1 8008d16: 4770 bx lr 8008d18: ea90 0f01 teq r0, r1 8008d1c: bf1c itt ne 8008d1e: 2000 movne r0, #0 8008d20: 4770 bxne lr 8008d22: f012 4f7f tst.w r2, #4278190080 @ 0xff000000 8008d26: d104 bne.n 8008d32 <__addsf3+0x126> 8008d28: 0040 lsls r0, r0, #1 8008d2a: bf28 it cs 8008d2c: f040 4000 orrcs.w r0, r0, #2147483648 @ 0x80000000 8008d30: 4770 bx lr 8008d32: f112 7200 adds.w r2, r2, #33554432 @ 0x2000000 8008d36: bf3c itt cc 8008d38: f500 0000 addcc.w r0, r0, #8388608 @ 0x800000 8008d3c: 4770 bxcc lr 8008d3e: f000 4300 and.w r3, r0, #2147483648 @ 0x80000000 8008d42: f043 40fe orr.w r0, r3, #2130706432 @ 0x7f000000 8008d46: f440 0000 orr.w r0, r0, #8388608 @ 0x800000 8008d4a: 4770 bx lr 8008d4c: ea7f 6222 mvns.w r2, r2, asr #24 8008d50: bf16 itet ne 8008d52: 4608 movne r0, r1 8008d54: ea7f 6323 mvnseq.w r3, r3, asr #24 8008d58: 4601 movne r1, r0 8008d5a: 0242 lsls r2, r0, #9 8008d5c: bf06 itte eq 8008d5e: ea5f 2341 movseq.w r3, r1, lsl #9 8008d62: ea90 0f01 teqeq r0, r1 8008d66: f440 0080 orrne.w r0, r0, #4194304 @ 0x400000 8008d6a: 4770 bx lr 08008d6c <__aeabi_ui2f>: 8008d6c: f04f 0300 mov.w r3, #0 8008d70: e004 b.n 8008d7c <__aeabi_i2f+0x8> 8008d72: bf00 nop 08008d74 <__aeabi_i2f>: 8008d74: f010 4300 ands.w r3, r0, #2147483648 @ 0x80000000 8008d78: bf48 it mi 8008d7a: 4240 negmi r0, r0 8008d7c: ea5f 0c00 movs.w ip, r0 8008d80: bf08 it eq 8008d82: 4770 bxeq lr 8008d84: f043 4396 orr.w r3, r3, #1258291200 @ 0x4b000000 8008d88: 4601 mov r1, r0 8008d8a: f04f 0000 mov.w r0, #0 8008d8e: e01c b.n 8008dca <__aeabi_l2f+0x2a> 08008d90 <__aeabi_ul2f>: 8008d90: ea50 0201 orrs.w r2, r0, r1 8008d94: bf08 it eq 8008d96: 4770 bxeq lr 8008d98: f04f 0300 mov.w r3, #0 8008d9c: e00a b.n 8008db4 <__aeabi_l2f+0x14> 8008d9e: bf00 nop 08008da0 <__aeabi_l2f>: 8008da0: ea50 0201 orrs.w r2, r0, r1 8008da4: bf08 it eq 8008da6: 4770 bxeq lr 8008da8: f011 4300 ands.w r3, r1, #2147483648 @ 0x80000000 8008dac: d502 bpl.n 8008db4 <__aeabi_l2f+0x14> 8008dae: 4240 negs r0, r0 8008db0: eb61 0141 sbc.w r1, r1, r1, lsl #1 8008db4: ea5f 0c01 movs.w ip, r1 8008db8: bf02 ittt eq 8008dba: 4684 moveq ip, r0 8008dbc: 4601 moveq r1, r0 8008dbe: 2000 moveq r0, #0 8008dc0: f043 43b6 orr.w r3, r3, #1526726656 @ 0x5b000000 8008dc4: bf08 it eq 8008dc6: f1a3 5380 subeq.w r3, r3, #268435456 @ 0x10000000 8008dca: f5a3 0300 sub.w r3, r3, #8388608 @ 0x800000 8008dce: fabc f28c clz r2, ip 8008dd2: 3a08 subs r2, #8 8008dd4: eba3 53c2 sub.w r3, r3, r2, lsl #23 8008dd8: db10 blt.n 8008dfc <__aeabi_l2f+0x5c> 8008dda: fa01 fc02 lsl.w ip, r1, r2 8008dde: 4463 add r3, ip 8008de0: fa00 fc02 lsl.w ip, r0, r2 8008de4: f1c2 0220 rsb r2, r2, #32 8008de8: f1bc 4f00 cmp.w ip, #2147483648 @ 0x80000000 8008dec: fa20 f202 lsr.w r2, r0, r2 8008df0: eb43 0002 adc.w r0, r3, r2 8008df4: bf08 it eq 8008df6: f020 0001 biceq.w r0, r0, #1 8008dfa: 4770 bx lr 8008dfc: f102 0220 add.w r2, r2, #32 8008e00: fa01 fc02 lsl.w ip, r1, r2 8008e04: f1c2 0220 rsb r2, r2, #32 8008e08: ea50 004c orrs.w r0, r0, ip, lsl #1 8008e0c: fa21 f202 lsr.w r2, r1, r2 8008e10: eb43 0002 adc.w r0, r3, r2 8008e14: bf08 it eq 8008e16: ea20 70dc biceq.w r0, r0, ip, lsr #31 8008e1a: 4770 bx lr 08008e1c <__aeabi_fmul>: 8008e1c: f04f 0cff mov.w ip, #255 @ 0xff 8008e20: ea1c 52d0 ands.w r2, ip, r0, lsr #23 8008e24: bf1e ittt ne 8008e26: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 8008e2a: ea92 0f0c teqne r2, ip 8008e2e: ea93 0f0c teqne r3, ip 8008e32: d06f beq.n 8008f14 <__aeabi_fmul+0xf8> 8008e34: 441a add r2, r3 8008e36: ea80 0c01 eor.w ip, r0, r1 8008e3a: 0240 lsls r0, r0, #9 8008e3c: bf18 it ne 8008e3e: ea5f 2141 movsne.w r1, r1, lsl #9 8008e42: d01e beq.n 8008e82 <__aeabi_fmul+0x66> 8008e44: f04f 6300 mov.w r3, #134217728 @ 0x8000000 8008e48: ea43 1050 orr.w r0, r3, r0, lsr #5 8008e4c: ea43 1151 orr.w r1, r3, r1, lsr #5 8008e50: fba0 3101 umull r3, r1, r0, r1 8008e54: f00c 4000 and.w r0, ip, #2147483648 @ 0x80000000 8008e58: f5b1 0f00 cmp.w r1, #8388608 @ 0x800000 8008e5c: bf3e ittt cc 8008e5e: 0049 lslcc r1, r1, #1 8008e60: ea41 71d3 orrcc.w r1, r1, r3, lsr #31 8008e64: 005b lslcc r3, r3, #1 8008e66: ea40 0001 orr.w r0, r0, r1 8008e6a: f162 027f sbc.w r2, r2, #127 @ 0x7f 8008e6e: 2afd cmp r2, #253 @ 0xfd 8008e70: d81d bhi.n 8008eae <__aeabi_fmul+0x92> 8008e72: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 8008e76: eb40 50c2 adc.w r0, r0, r2, lsl #23 8008e7a: bf08 it eq 8008e7c: f020 0001 biceq.w r0, r0, #1 8008e80: 4770 bx lr 8008e82: f090 0f00 teq r0, #0 8008e86: f00c 4c00 and.w ip, ip, #2147483648 @ 0x80000000 8008e8a: bf08 it eq 8008e8c: 0249 lsleq r1, r1, #9 8008e8e: ea4c 2050 orr.w r0, ip, r0, lsr #9 8008e92: ea40 2051 orr.w r0, r0, r1, lsr #9 8008e96: 3a7f subs r2, #127 @ 0x7f 8008e98: bfc2 ittt gt 8008e9a: f1d2 03ff rsbsgt r3, r2, #255 @ 0xff 8008e9e: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 8008ea2: 4770 bxgt lr 8008ea4: f440 0000 orr.w r0, r0, #8388608 @ 0x800000 8008ea8: f04f 0300 mov.w r3, #0 8008eac: 3a01 subs r2, #1 8008eae: dc5d bgt.n 8008f6c <__aeabi_fmul+0x150> 8008eb0: f112 0f19 cmn.w r2, #25 8008eb4: bfdc itt le 8008eb6: f000 4000 andle.w r0, r0, #2147483648 @ 0x80000000 8008eba: 4770 bxle lr 8008ebc: f1c2 0200 rsb r2, r2, #0 8008ec0: 0041 lsls r1, r0, #1 8008ec2: fa21 f102 lsr.w r1, r1, r2 8008ec6: f1c2 0220 rsb r2, r2, #32 8008eca: fa00 fc02 lsl.w ip, r0, r2 8008ece: ea5f 0031 movs.w r0, r1, rrx 8008ed2: f140 0000 adc.w r0, r0, #0 8008ed6: ea53 034c orrs.w r3, r3, ip, lsl #1 8008eda: bf08 it eq 8008edc: ea20 70dc biceq.w r0, r0, ip, lsr #31 8008ee0: 4770 bx lr 8008ee2: f092 0f00 teq r2, #0 8008ee6: f000 4c00 and.w ip, r0, #2147483648 @ 0x80000000 8008eea: bf02 ittt eq 8008eec: 0040 lsleq r0, r0, #1 8008eee: f410 0f00 tsteq.w r0, #8388608 @ 0x800000 8008ef2: 3a01 subeq r2, #1 8008ef4: d0f9 beq.n 8008eea <__aeabi_fmul+0xce> 8008ef6: ea40 000c orr.w r0, r0, ip 8008efa: f093 0f00 teq r3, #0 8008efe: f001 4c00 and.w ip, r1, #2147483648 @ 0x80000000 8008f02: bf02 ittt eq 8008f04: 0049 lsleq r1, r1, #1 8008f06: f411 0f00 tsteq.w r1, #8388608 @ 0x800000 8008f0a: 3b01 subeq r3, #1 8008f0c: d0f9 beq.n 8008f02 <__aeabi_fmul+0xe6> 8008f0e: ea41 010c orr.w r1, r1, ip 8008f12: e78f b.n 8008e34 <__aeabi_fmul+0x18> 8008f14: ea0c 53d1 and.w r3, ip, r1, lsr #23 8008f18: ea92 0f0c teq r2, ip 8008f1c: bf18 it ne 8008f1e: ea93 0f0c teqne r3, ip 8008f22: d00a beq.n 8008f3a <__aeabi_fmul+0x11e> 8008f24: f030 4c00 bics.w ip, r0, #2147483648 @ 0x80000000 8008f28: bf18 it ne 8008f2a: f031 4c00 bicsne.w ip, r1, #2147483648 @ 0x80000000 8008f2e: d1d8 bne.n 8008ee2 <__aeabi_fmul+0xc6> 8008f30: ea80 0001 eor.w r0, r0, r1 8008f34: f000 4000 and.w r0, r0, #2147483648 @ 0x80000000 8008f38: 4770 bx lr 8008f3a: f090 0f00 teq r0, #0 8008f3e: bf17 itett ne 8008f40: f090 4f00 teqne r0, #2147483648 @ 0x80000000 8008f44: 4608 moveq r0, r1 8008f46: f091 0f00 teqne r1, #0 8008f4a: f091 4f00 teqne r1, #2147483648 @ 0x80000000 8008f4e: d014 beq.n 8008f7a <__aeabi_fmul+0x15e> 8008f50: ea92 0f0c teq r2, ip 8008f54: d101 bne.n 8008f5a <__aeabi_fmul+0x13e> 8008f56: 0242 lsls r2, r0, #9 8008f58: d10f bne.n 8008f7a <__aeabi_fmul+0x15e> 8008f5a: ea93 0f0c teq r3, ip 8008f5e: d103 bne.n 8008f68 <__aeabi_fmul+0x14c> 8008f60: 024b lsls r3, r1, #9 8008f62: bf18 it ne 8008f64: 4608 movne r0, r1 8008f66: d108 bne.n 8008f7a <__aeabi_fmul+0x15e> 8008f68: ea80 0001 eor.w r0, r0, r1 8008f6c: f000 4000 and.w r0, r0, #2147483648 @ 0x80000000 8008f70: f040 40fe orr.w r0, r0, #2130706432 @ 0x7f000000 8008f74: f440 0000 orr.w r0, r0, #8388608 @ 0x800000 8008f78: 4770 bx lr 8008f7a: f040 40fe orr.w r0, r0, #2130706432 @ 0x7f000000 8008f7e: f440 0040 orr.w r0, r0, #12582912 @ 0xc00000 8008f82: 4770 bx lr 08008f84 <__aeabi_fdiv>: 8008f84: f04f 0cff mov.w ip, #255 @ 0xff 8008f88: ea1c 52d0 ands.w r2, ip, r0, lsr #23 8008f8c: bf1e ittt ne 8008f8e: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 8008f92: ea92 0f0c teqne r2, ip 8008f96: ea93 0f0c teqne r3, ip 8008f9a: d069 beq.n 8009070 <__aeabi_fdiv+0xec> 8008f9c: eba2 0203 sub.w r2, r2, r3 8008fa0: ea80 0c01 eor.w ip, r0, r1 8008fa4: 0249 lsls r1, r1, #9 8008fa6: ea4f 2040 mov.w r0, r0, lsl #9 8008faa: d037 beq.n 800901c <__aeabi_fdiv+0x98> 8008fac: f04f 5380 mov.w r3, #268435456 @ 0x10000000 8008fb0: ea43 1111 orr.w r1, r3, r1, lsr #4 8008fb4: ea43 1310 orr.w r3, r3, r0, lsr #4 8008fb8: f00c 4000 and.w r0, ip, #2147483648 @ 0x80000000 8008fbc: 428b cmp r3, r1 8008fbe: bf38 it cc 8008fc0: 005b lslcc r3, r3, #1 8008fc2: f142 027d adc.w r2, r2, #125 @ 0x7d 8008fc6: f44f 0c00 mov.w ip, #8388608 @ 0x800000 8008fca: 428b cmp r3, r1 8008fcc: bf24 itt cs 8008fce: 1a5b subcs r3, r3, r1 8008fd0: ea40 000c orrcs.w r0, r0, ip 8008fd4: ebb3 0f51 cmp.w r3, r1, lsr #1 8008fd8: bf24 itt cs 8008fda: eba3 0351 subcs.w r3, r3, r1, lsr #1 8008fde: ea40 005c orrcs.w r0, r0, ip, lsr #1 8008fe2: ebb3 0f91 cmp.w r3, r1, lsr #2 8008fe6: bf24 itt cs 8008fe8: eba3 0391 subcs.w r3, r3, r1, lsr #2 8008fec: ea40 009c orrcs.w r0, r0, ip, lsr #2 8008ff0: ebb3 0fd1 cmp.w r3, r1, lsr #3 8008ff4: bf24 itt cs 8008ff6: eba3 03d1 subcs.w r3, r3, r1, lsr #3 8008ffa: ea40 00dc orrcs.w r0, r0, ip, lsr #3 8008ffe: 011b lsls r3, r3, #4 8009000: bf18 it ne 8009002: ea5f 1c1c movsne.w ip, ip, lsr #4 8009006: d1e0 bne.n 8008fca <__aeabi_fdiv+0x46> 8009008: 2afd cmp r2, #253 @ 0xfd 800900a: f63f af50 bhi.w 8008eae <__aeabi_fmul+0x92> 800900e: 428b cmp r3, r1 8009010: eb40 50c2 adc.w r0, r0, r2, lsl #23 8009014: bf08 it eq 8009016: f020 0001 biceq.w r0, r0, #1 800901a: 4770 bx lr 800901c: f00c 4c00 and.w ip, ip, #2147483648 @ 0x80000000 8009020: ea4c 2050 orr.w r0, ip, r0, lsr #9 8009024: 327f adds r2, #127 @ 0x7f 8009026: bfc2 ittt gt 8009028: f1d2 03ff rsbsgt r3, r2, #255 @ 0xff 800902c: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 8009030: 4770 bxgt lr 8009032: f440 0000 orr.w r0, r0, #8388608 @ 0x800000 8009036: f04f 0300 mov.w r3, #0 800903a: 3a01 subs r2, #1 800903c: e737 b.n 8008eae <__aeabi_fmul+0x92> 800903e: f092 0f00 teq r2, #0 8009042: f000 4c00 and.w ip, r0, #2147483648 @ 0x80000000 8009046: bf02 ittt eq 8009048: 0040 lsleq r0, r0, #1 800904a: f410 0f00 tsteq.w r0, #8388608 @ 0x800000 800904e: 3a01 subeq r2, #1 8009050: d0f9 beq.n 8009046 <__aeabi_fdiv+0xc2> 8009052: ea40 000c orr.w r0, r0, ip 8009056: f093 0f00 teq r3, #0 800905a: f001 4c00 and.w ip, r1, #2147483648 @ 0x80000000 800905e: bf02 ittt eq 8009060: 0049 lsleq r1, r1, #1 8009062: f411 0f00 tsteq.w r1, #8388608 @ 0x800000 8009066: 3b01 subeq r3, #1 8009068: d0f9 beq.n 800905e <__aeabi_fdiv+0xda> 800906a: ea41 010c orr.w r1, r1, ip 800906e: e795 b.n 8008f9c <__aeabi_fdiv+0x18> 8009070: ea0c 53d1 and.w r3, ip, r1, lsr #23 8009074: ea92 0f0c teq r2, ip 8009078: d108 bne.n 800908c <__aeabi_fdiv+0x108> 800907a: 0242 lsls r2, r0, #9 800907c: f47f af7d bne.w 8008f7a <__aeabi_fmul+0x15e> 8009080: ea93 0f0c teq r3, ip 8009084: f47f af70 bne.w 8008f68 <__aeabi_fmul+0x14c> 8009088: 4608 mov r0, r1 800908a: e776 b.n 8008f7a <__aeabi_fmul+0x15e> 800908c: ea93 0f0c teq r3, ip 8009090: d104 bne.n 800909c <__aeabi_fdiv+0x118> 8009092: 024b lsls r3, r1, #9 8009094: f43f af4c beq.w 8008f30 <__aeabi_fmul+0x114> 8009098: 4608 mov r0, r1 800909a: e76e b.n 8008f7a <__aeabi_fmul+0x15e> 800909c: f030 4c00 bics.w ip, r0, #2147483648 @ 0x80000000 80090a0: bf18 it ne 80090a2: f031 4c00 bicsne.w ip, r1, #2147483648 @ 0x80000000 80090a6: d1ca bne.n 800903e <__aeabi_fdiv+0xba> 80090a8: f030 4200 bics.w r2, r0, #2147483648 @ 0x80000000 80090ac: f47f af5c bne.w 8008f68 <__aeabi_fmul+0x14c> 80090b0: f031 4300 bics.w r3, r1, #2147483648 @ 0x80000000 80090b4: f47f af3c bne.w 8008f30 <__aeabi_fmul+0x114> 80090b8: e75f b.n 8008f7a <__aeabi_fmul+0x15e> 80090ba: bf00 nop 080090bc <__gesf2>: 80090bc: f04f 3cff mov.w ip, #4294967295 @ 0xffffffff 80090c0: e006 b.n 80090d0 <__cmpsf2+0x4> 80090c2: bf00 nop 080090c4 <__lesf2>: 80090c4: f04f 0c01 mov.w ip, #1 80090c8: e002 b.n 80090d0 <__cmpsf2+0x4> 80090ca: bf00 nop 080090cc <__cmpsf2>: 80090cc: f04f 0c01 mov.w ip, #1 80090d0: f84d cd04 str.w ip, [sp, #-4]! 80090d4: ea4f 0240 mov.w r2, r0, lsl #1 80090d8: ea4f 0341 mov.w r3, r1, lsl #1 80090dc: ea7f 6c22 mvns.w ip, r2, asr #24 80090e0: bf18 it ne 80090e2: ea7f 6c23 mvnsne.w ip, r3, asr #24 80090e6: d011 beq.n 800910c <__cmpsf2+0x40> 80090e8: b001 add sp, #4 80090ea: ea52 0c53 orrs.w ip, r2, r3, lsr #1 80090ee: bf18 it ne 80090f0: ea90 0f01 teqne r0, r1 80090f4: bf58 it pl 80090f6: ebb2 0003 subspl.w r0, r2, r3 80090fa: bf88 it hi 80090fc: 17c8 asrhi r0, r1, #31 80090fe: bf38 it cc 8009100: ea6f 70e1 mvncc.w r0, r1, asr #31 8009104: bf18 it ne 8009106: f040 0001 orrne.w r0, r0, #1 800910a: 4770 bx lr 800910c: ea7f 6c22 mvns.w ip, r2, asr #24 8009110: d102 bne.n 8009118 <__cmpsf2+0x4c> 8009112: ea5f 2c40 movs.w ip, r0, lsl #9 8009116: d105 bne.n 8009124 <__cmpsf2+0x58> 8009118: ea7f 6c23 mvns.w ip, r3, asr #24 800911c: d1e4 bne.n 80090e8 <__cmpsf2+0x1c> 800911e: ea5f 2c41 movs.w ip, r1, lsl #9 8009122: d0e1 beq.n 80090e8 <__cmpsf2+0x1c> 8009124: f85d 0b04 ldr.w r0, [sp], #4 8009128: 4770 bx lr 800912a: bf00 nop 0800912c <__aeabi_cfrcmple>: 800912c: 4684 mov ip, r0 800912e: 4608 mov r0, r1 8009130: 4661 mov r1, ip 8009132: e7ff b.n 8009134 <__aeabi_cfcmpeq> 08009134 <__aeabi_cfcmpeq>: 8009134: b50f push {r0, r1, r2, r3, lr} 8009136: f7ff ffc9 bl 80090cc <__cmpsf2> 800913a: 2800 cmp r0, #0 800913c: bf48 it mi 800913e: f110 0f00 cmnmi.w r0, #0 8009142: bd0f pop {r0, r1, r2, r3, pc} 08009144 <__aeabi_fcmpeq>: 8009144: f84d ed08 str.w lr, [sp, #-8]! 8009148: f7ff fff4 bl 8009134 <__aeabi_cfcmpeq> 800914c: bf0c ite eq 800914e: 2001 moveq r0, #1 8009150: 2000 movne r0, #0 8009152: f85d fb08 ldr.w pc, [sp], #8 8009156: bf00 nop 08009158 <__aeabi_fcmplt>: 8009158: f84d ed08 str.w lr, [sp, #-8]! 800915c: f7ff ffea bl 8009134 <__aeabi_cfcmpeq> 8009160: bf34 ite cc 8009162: 2001 movcc r0, #1 8009164: 2000 movcs r0, #0 8009166: f85d fb08 ldr.w pc, [sp], #8 800916a: bf00 nop 0800916c <__aeabi_fcmple>: 800916c: f84d ed08 str.w lr, [sp, #-8]! 8009170: f7ff ffe0 bl 8009134 <__aeabi_cfcmpeq> 8009174: bf94 ite ls 8009176: 2001 movls r0, #1 8009178: 2000 movhi r0, #0 800917a: f85d fb08 ldr.w pc, [sp], #8 800917e: bf00 nop 08009180 <__aeabi_fcmpge>: 8009180: f84d ed08 str.w lr, [sp, #-8]! 8009184: f7ff ffd2 bl 800912c <__aeabi_cfrcmple> 8009188: bf94 ite ls 800918a: 2001 movls r0, #1 800918c: 2000 movhi r0, #0 800918e: f85d fb08 ldr.w pc, [sp], #8 8009192: bf00 nop 08009194 <__aeabi_fcmpgt>: 8009194: f84d ed08 str.w lr, [sp, #-8]! 8009198: f7ff ffc8 bl 800912c <__aeabi_cfrcmple> 800919c: bf34 ite cc 800919e: 2001 movcc r0, #1 80091a0: 2000 movcs r0, #0 80091a2: f85d fb08 ldr.w pc, [sp], #8 80091a6: bf00 nop 080091a8 <__aeabi_f2iz>: 80091a8: ea4f 0240 mov.w r2, r0, lsl #1 80091ac: f1b2 4ffe cmp.w r2, #2130706432 @ 0x7f000000 80091b0: d30f bcc.n 80091d2 <__aeabi_f2iz+0x2a> 80091b2: f04f 039e mov.w r3, #158 @ 0x9e 80091b6: ebb3 6212 subs.w r2, r3, r2, lsr #24 80091ba: d90d bls.n 80091d8 <__aeabi_f2iz+0x30> 80091bc: ea4f 2300 mov.w r3, r0, lsl #8 80091c0: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000 80091c4: f010 4f00 tst.w r0, #2147483648 @ 0x80000000 80091c8: fa23 f002 lsr.w r0, r3, r2 80091cc: bf18 it ne 80091ce: 4240 negne r0, r0 80091d0: 4770 bx lr 80091d2: f04f 0000 mov.w r0, #0 80091d6: 4770 bx lr 80091d8: f112 0f61 cmn.w r2, #97 @ 0x61 80091dc: d101 bne.n 80091e2 <__aeabi_f2iz+0x3a> 80091de: 0242 lsls r2, r0, #9 80091e0: d105 bne.n 80091ee <__aeabi_f2iz+0x46> 80091e2: f010 4000 ands.w r0, r0, #2147483648 @ 0x80000000 80091e6: bf08 it eq 80091e8: f06f 4000 mvneq.w r0, #2147483648 @ 0x80000000 80091ec: 4770 bx lr 80091ee: f04f 0000 mov.w r0, #0 80091f2: 4770 bx lr 080091f4 <__aeabi_uldivmod>: 80091f4: b953 cbnz r3, 800920c <__aeabi_uldivmod+0x18> 80091f6: b94a cbnz r2, 800920c <__aeabi_uldivmod+0x18> 80091f8: 2900 cmp r1, #0 80091fa: bf08 it eq 80091fc: 2800 cmpeq r0, #0 80091fe: bf1c itt ne 8009200: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff 8009204: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff 8009208: f000 b98c b.w 8009524 <__aeabi_idiv0> 800920c: f1ad 0c08 sub.w ip, sp, #8 8009210: e96d ce04 strd ip, lr, [sp, #-16]! 8009214: f000 f806 bl 8009224 <__udivmoddi4> 8009218: f8dd e004 ldr.w lr, [sp, #4] 800921c: e9dd 2302 ldrd r2, r3, [sp, #8] 8009220: b004 add sp, #16 8009222: 4770 bx lr 08009224 <__udivmoddi4>: 8009224: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8009228: 9d08 ldr r5, [sp, #32] 800922a: 468e mov lr, r1 800922c: 4604 mov r4, r0 800922e: 4688 mov r8, r1 8009230: 2b00 cmp r3, #0 8009232: d14a bne.n 80092ca <__udivmoddi4+0xa6> 8009234: 428a cmp r2, r1 8009236: 4617 mov r7, r2 8009238: d962 bls.n 8009300 <__udivmoddi4+0xdc> 800923a: fab2 f682 clz r6, r2 800923e: b14e cbz r6, 8009254 <__udivmoddi4+0x30> 8009240: f1c6 0320 rsb r3, r6, #32 8009244: fa01 f806 lsl.w r8, r1, r6 8009248: fa20 f303 lsr.w r3, r0, r3 800924c: 40b7 lsls r7, r6 800924e: ea43 0808 orr.w r8, r3, r8 8009252: 40b4 lsls r4, r6 8009254: ea4f 4e17 mov.w lr, r7, lsr #16 8009258: fbb8 f1fe udiv r1, r8, lr 800925c: fa1f fc87 uxth.w ip, r7 8009260: fb0e 8811 mls r8, lr, r1, r8 8009264: fb01 f20c mul.w r2, r1, ip 8009268: 0c23 lsrs r3, r4, #16 800926a: ea43 4308 orr.w r3, r3, r8, lsl #16 800926e: 429a cmp r2, r3 8009270: d909 bls.n 8009286 <__udivmoddi4+0x62> 8009272: 18fb adds r3, r7, r3 8009274: f101 30ff add.w r0, r1, #4294967295 @ 0xffffffff 8009278: f080 80eb bcs.w 8009452 <__udivmoddi4+0x22e> 800927c: 429a cmp r2, r3 800927e: f240 80e8 bls.w 8009452 <__udivmoddi4+0x22e> 8009282: 3902 subs r1, #2 8009284: 443b add r3, r7 8009286: 1a9a subs r2, r3, r2 8009288: fbb2 f0fe udiv r0, r2, lr 800928c: fb0e 2210 mls r2, lr, r0, r2 8009290: fb00 fc0c mul.w ip, r0, ip 8009294: b2a3 uxth r3, r4 8009296: ea43 4302 orr.w r3, r3, r2, lsl #16 800929a: 459c cmp ip, r3 800929c: d909 bls.n 80092b2 <__udivmoddi4+0x8e> 800929e: 18fb adds r3, r7, r3 80092a0: f100 32ff add.w r2, r0, #4294967295 @ 0xffffffff 80092a4: f080 80d7 bcs.w 8009456 <__udivmoddi4+0x232> 80092a8: 459c cmp ip, r3 80092aa: f240 80d4 bls.w 8009456 <__udivmoddi4+0x232> 80092ae: 443b add r3, r7 80092b0: 3802 subs r0, #2 80092b2: ea40 4001 orr.w r0, r0, r1, lsl #16 80092b6: 2100 movs r1, #0 80092b8: eba3 030c sub.w r3, r3, ip 80092bc: b11d cbz r5, 80092c6 <__udivmoddi4+0xa2> 80092be: 2200 movs r2, #0 80092c0: 40f3 lsrs r3, r6 80092c2: e9c5 3200 strd r3, r2, [r5] 80092c6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 80092ca: 428b cmp r3, r1 80092cc: d905 bls.n 80092da <__udivmoddi4+0xb6> 80092ce: b10d cbz r5, 80092d4 <__udivmoddi4+0xb0> 80092d0: e9c5 0100 strd r0, r1, [r5] 80092d4: 2100 movs r1, #0 80092d6: 4608 mov r0, r1 80092d8: e7f5 b.n 80092c6 <__udivmoddi4+0xa2> 80092da: fab3 f183 clz r1, r3 80092de: 2900 cmp r1, #0 80092e0: d146 bne.n 8009370 <__udivmoddi4+0x14c> 80092e2: 4573 cmp r3, lr 80092e4: d302 bcc.n 80092ec <__udivmoddi4+0xc8> 80092e6: 4282 cmp r2, r0 80092e8: f200 8108 bhi.w 80094fc <__udivmoddi4+0x2d8> 80092ec: 1a84 subs r4, r0, r2 80092ee: eb6e 0203 sbc.w r2, lr, r3 80092f2: 2001 movs r0, #1 80092f4: 4690 mov r8, r2 80092f6: 2d00 cmp r5, #0 80092f8: d0e5 beq.n 80092c6 <__udivmoddi4+0xa2> 80092fa: e9c5 4800 strd r4, r8, [r5] 80092fe: e7e2 b.n 80092c6 <__udivmoddi4+0xa2> 8009300: 2a00 cmp r2, #0 8009302: f000 8091 beq.w 8009428 <__udivmoddi4+0x204> 8009306: fab2 f682 clz r6, r2 800930a: 2e00 cmp r6, #0 800930c: f040 80a5 bne.w 800945a <__udivmoddi4+0x236> 8009310: 1a8a subs r2, r1, r2 8009312: 2101 movs r1, #1 8009314: 0c03 lsrs r3, r0, #16 8009316: ea4f 4e17 mov.w lr, r7, lsr #16 800931a: b280 uxth r0, r0 800931c: b2bc uxth r4, r7 800931e: fbb2 fcfe udiv ip, r2, lr 8009322: fb0e 221c mls r2, lr, ip, r2 8009326: ea43 4302 orr.w r3, r3, r2, lsl #16 800932a: fb04 f20c mul.w r2, r4, ip 800932e: 429a cmp r2, r3 8009330: d907 bls.n 8009342 <__udivmoddi4+0x11e> 8009332: 18fb adds r3, r7, r3 8009334: f10c 38ff add.w r8, ip, #4294967295 @ 0xffffffff 8009338: d202 bcs.n 8009340 <__udivmoddi4+0x11c> 800933a: 429a cmp r2, r3 800933c: f200 80e3 bhi.w 8009506 <__udivmoddi4+0x2e2> 8009340: 46c4 mov ip, r8 8009342: 1a9b subs r3, r3, r2 8009344: fbb3 f2fe udiv r2, r3, lr 8009348: fb0e 3312 mls r3, lr, r2, r3 800934c: fb02 f404 mul.w r4, r2, r4 8009350: ea40 4303 orr.w r3, r0, r3, lsl #16 8009354: 429c cmp r4, r3 8009356: d907 bls.n 8009368 <__udivmoddi4+0x144> 8009358: 18fb adds r3, r7, r3 800935a: f102 30ff add.w r0, r2, #4294967295 @ 0xffffffff 800935e: d202 bcs.n 8009366 <__udivmoddi4+0x142> 8009360: 429c cmp r4, r3 8009362: f200 80cd bhi.w 8009500 <__udivmoddi4+0x2dc> 8009366: 4602 mov r2, r0 8009368: 1b1b subs r3, r3, r4 800936a: ea42 400c orr.w r0, r2, ip, lsl #16 800936e: e7a5 b.n 80092bc <__udivmoddi4+0x98> 8009370: f1c1 0620 rsb r6, r1, #32 8009374: 408b lsls r3, r1 8009376: fa22 f706 lsr.w r7, r2, r6 800937a: 431f orrs r7, r3 800937c: fa2e fa06 lsr.w sl, lr, r6 8009380: ea4f 4917 mov.w r9, r7, lsr #16 8009384: fbba f8f9 udiv r8, sl, r9 8009388: fa0e fe01 lsl.w lr, lr, r1 800938c: fa20 f306 lsr.w r3, r0, r6 8009390: fb09 aa18 mls sl, r9, r8, sl 8009394: fa1f fc87 uxth.w ip, r7 8009398: ea43 030e orr.w r3, r3, lr 800939c: fa00 fe01 lsl.w lr, r0, r1 80093a0: fb08 f00c mul.w r0, r8, ip 80093a4: 0c1c lsrs r4, r3, #16 80093a6: ea44 440a orr.w r4, r4, sl, lsl #16 80093aa: 42a0 cmp r0, r4 80093ac: fa02 f201 lsl.w r2, r2, r1 80093b0: d90a bls.n 80093c8 <__udivmoddi4+0x1a4> 80093b2: 193c adds r4, r7, r4 80093b4: f108 3aff add.w sl, r8, #4294967295 @ 0xffffffff 80093b8: f080 809e bcs.w 80094f8 <__udivmoddi4+0x2d4> 80093bc: 42a0 cmp r0, r4 80093be: f240 809b bls.w 80094f8 <__udivmoddi4+0x2d4> 80093c2: f1a8 0802 sub.w r8, r8, #2 80093c6: 443c add r4, r7 80093c8: 1a24 subs r4, r4, r0 80093ca: b298 uxth r0, r3 80093cc: fbb4 f3f9 udiv r3, r4, r9 80093d0: fb09 4413 mls r4, r9, r3, r4 80093d4: fb03 fc0c mul.w ip, r3, ip 80093d8: ea40 4404 orr.w r4, r0, r4, lsl #16 80093dc: 45a4 cmp ip, r4 80093de: d909 bls.n 80093f4 <__udivmoddi4+0x1d0> 80093e0: 193c adds r4, r7, r4 80093e2: f103 30ff add.w r0, r3, #4294967295 @ 0xffffffff 80093e6: f080 8085 bcs.w 80094f4 <__udivmoddi4+0x2d0> 80093ea: 45a4 cmp ip, r4 80093ec: f240 8082 bls.w 80094f4 <__udivmoddi4+0x2d0> 80093f0: 3b02 subs r3, #2 80093f2: 443c add r4, r7 80093f4: ea43 4008 orr.w r0, r3, r8, lsl #16 80093f8: eba4 040c sub.w r4, r4, ip 80093fc: fba0 8c02 umull r8, ip, r0, r2 8009400: 4564 cmp r4, ip 8009402: 4643 mov r3, r8 8009404: 46e1 mov r9, ip 8009406: d364 bcc.n 80094d2 <__udivmoddi4+0x2ae> 8009408: d061 beq.n 80094ce <__udivmoddi4+0x2aa> 800940a: b15d cbz r5, 8009424 <__udivmoddi4+0x200> 800940c: ebbe 0203 subs.w r2, lr, r3 8009410: eb64 0409 sbc.w r4, r4, r9 8009414: fa04 f606 lsl.w r6, r4, r6 8009418: fa22 f301 lsr.w r3, r2, r1 800941c: 431e orrs r6, r3 800941e: 40cc lsrs r4, r1 8009420: e9c5 6400 strd r6, r4, [r5] 8009424: 2100 movs r1, #0 8009426: e74e b.n 80092c6 <__udivmoddi4+0xa2> 8009428: fbb1 fcf2 udiv ip, r1, r2 800942c: 0c01 lsrs r1, r0, #16 800942e: ea41 410e orr.w r1, r1, lr, lsl #16 8009432: b280 uxth r0, r0 8009434: ea40 4201 orr.w r2, r0, r1, lsl #16 8009438: 463b mov r3, r7 800943a: fbb1 f1f7 udiv r1, r1, r7 800943e: 4638 mov r0, r7 8009440: 463c mov r4, r7 8009442: 46b8 mov r8, r7 8009444: 46be mov lr, r7 8009446: 2620 movs r6, #32 8009448: eba2 0208 sub.w r2, r2, r8 800944c: ea41 410c orr.w r1, r1, ip, lsl #16 8009450: e765 b.n 800931e <__udivmoddi4+0xfa> 8009452: 4601 mov r1, r0 8009454: e717 b.n 8009286 <__udivmoddi4+0x62> 8009456: 4610 mov r0, r2 8009458: e72b b.n 80092b2 <__udivmoddi4+0x8e> 800945a: f1c6 0120 rsb r1, r6, #32 800945e: fa2e fc01 lsr.w ip, lr, r1 8009462: 40b7 lsls r7, r6 8009464: fa0e fe06 lsl.w lr, lr, r6 8009468: fa20 f101 lsr.w r1, r0, r1 800946c: ea41 010e orr.w r1, r1, lr 8009470: ea4f 4e17 mov.w lr, r7, lsr #16 8009474: fbbc f8fe udiv r8, ip, lr 8009478: b2bc uxth r4, r7 800947a: fb0e cc18 mls ip, lr, r8, ip 800947e: fb08 f904 mul.w r9, r8, r4 8009482: 0c0a lsrs r2, r1, #16 8009484: ea42 420c orr.w r2, r2, ip, lsl #16 8009488: 40b0 lsls r0, r6 800948a: 4591 cmp r9, r2 800948c: ea4f 4310 mov.w r3, r0, lsr #16 8009490: b280 uxth r0, r0 8009492: d93e bls.n 8009512 <__udivmoddi4+0x2ee> 8009494: 18ba adds r2, r7, r2 8009496: f108 3cff add.w ip, r8, #4294967295 @ 0xffffffff 800949a: d201 bcs.n 80094a0 <__udivmoddi4+0x27c> 800949c: 4591 cmp r9, r2 800949e: d81f bhi.n 80094e0 <__udivmoddi4+0x2bc> 80094a0: eba2 0209 sub.w r2, r2, r9 80094a4: fbb2 f9fe udiv r9, r2, lr 80094a8: fb09 f804 mul.w r8, r9, r4 80094ac: fb0e 2a19 mls sl, lr, r9, r2 80094b0: b28a uxth r2, r1 80094b2: ea42 420a orr.w r2, r2, sl, lsl #16 80094b6: 4542 cmp r2, r8 80094b8: d229 bcs.n 800950e <__udivmoddi4+0x2ea> 80094ba: 18ba adds r2, r7, r2 80094bc: f109 31ff add.w r1, r9, #4294967295 @ 0xffffffff 80094c0: d2c2 bcs.n 8009448 <__udivmoddi4+0x224> 80094c2: 4542 cmp r2, r8 80094c4: d2c0 bcs.n 8009448 <__udivmoddi4+0x224> 80094c6: f1a9 0102 sub.w r1, r9, #2 80094ca: 443a add r2, r7 80094cc: e7bc b.n 8009448 <__udivmoddi4+0x224> 80094ce: 45c6 cmp lr, r8 80094d0: d29b bcs.n 800940a <__udivmoddi4+0x1e6> 80094d2: ebb8 0302 subs.w r3, r8, r2 80094d6: eb6c 0c07 sbc.w ip, ip, r7 80094da: 3801 subs r0, #1 80094dc: 46e1 mov r9, ip 80094de: e794 b.n 800940a <__udivmoddi4+0x1e6> 80094e0: eba7 0909 sub.w r9, r7, r9 80094e4: 444a add r2, r9 80094e6: fbb2 f9fe udiv r9, r2, lr 80094ea: f1a8 0c02 sub.w ip, r8, #2 80094ee: fb09 f804 mul.w r8, r9, r4 80094f2: e7db b.n 80094ac <__udivmoddi4+0x288> 80094f4: 4603 mov r3, r0 80094f6: e77d b.n 80093f4 <__udivmoddi4+0x1d0> 80094f8: 46d0 mov r8, sl 80094fa: e765 b.n 80093c8 <__udivmoddi4+0x1a4> 80094fc: 4608 mov r0, r1 80094fe: e6fa b.n 80092f6 <__udivmoddi4+0xd2> 8009500: 443b add r3, r7 8009502: 3a02 subs r2, #2 8009504: e730 b.n 8009368 <__udivmoddi4+0x144> 8009506: f1ac 0c02 sub.w ip, ip, #2 800950a: 443b add r3, r7 800950c: e719 b.n 8009342 <__udivmoddi4+0x11e> 800950e: 4649 mov r1, r9 8009510: e79a b.n 8009448 <__udivmoddi4+0x224> 8009512: eba2 0209 sub.w r2, r2, r9 8009516: fbb2 f9fe udiv r9, r2, lr 800951a: 46c4 mov ip, r8 800951c: fb09 f804 mul.w r8, r9, r4 8009520: e7c4 b.n 80094ac <__udivmoddi4+0x288> 8009522: bf00 nop 08009524 <__aeabi_idiv0>: 8009524: 4770 bx lr 8009526: bf00 nop 08009528 : static volatile uint16_t adc_dma_raw[6]; volatile ADC_ScanData_t adc_data = {0}; static volatile uint8_t adc_scan_data_ready = 0u; void ADC_ScanStart(void) { 8009528: b580 push {r7, lr} 800952a: af00 add r7, sp, #0 if (HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc_dma_raw, 6u) != HAL_OK) 800952c: 2206 movs r2, #6 800952e: 4905 ldr r1, [pc, #20] @ (8009544 ) 8009530: 4805 ldr r0, [pc, #20] @ (8009548 ) 8009532: f004 fe83 bl 800e23c 8009536: 4603 mov r3, r0 8009538: 2b00 cmp r3, #0 800953a: d001 beq.n 8009540 { Error_Handler(); 800953c: f001 fb48 bl 800abd0 } } 8009540: bf00 nop 8009542: bd80 pop {r7, pc} 8009544: 20000274 .word 0x20000274 8009548: 20000290 .word 0x20000290 0800954c : ISR_FAST void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) { if (hadc->Instance != ADC1) 800954c: 4b0e ldr r3, [pc, #56] @ (8009588 ) 800954e: 6802 ldr r2, [r0, #0] 8009550: 429a cmp r2, r3 8009552: d118 bne.n 8009586 adc_data.cp_raw = adc_dma_raw[1]; adc_data.ntc1_raw = adc_dma_raw[2]; adc_data.ntc2_raw = adc_dma_raw[3]; adc_data.temp_sensor_raw = adc_dma_raw[4]; adc_data.vrefint_raw = adc_dma_raw[5]; adc_scan_data_ready = 1u; 8009554: f04f 0c01 mov.w ip, #1 adc_data.in3_raw = adc_dma_raw[0]; 8009558: 4a0c ldr r2, [pc, #48] @ (800958c ) 800955a: 4b0d ldr r3, [pc, #52] @ (8009590 ) 800955c: 8811 ldrh r1, [r2, #0] adc_scan_data_ready = 1u; 800955e: 480d ldr r0, [pc, #52] @ (8009594 ) adc_data.in3_raw = adc_dma_raw[0]; 8009560: b289 uxth r1, r1 8009562: 8019 strh r1, [r3, #0] adc_data.cp_raw = adc_dma_raw[1]; 8009564: 8851 ldrh r1, [r2, #2] 8009566: b289 uxth r1, r1 8009568: 8059 strh r1, [r3, #2] adc_data.ntc1_raw = adc_dma_raw[2]; 800956a: 8891 ldrh r1, [r2, #4] 800956c: b289 uxth r1, r1 800956e: 8099 strh r1, [r3, #4] adc_data.ntc2_raw = adc_dma_raw[3]; 8009570: 88d1 ldrh r1, [r2, #6] 8009572: b289 uxth r1, r1 8009574: 80d9 strh r1, [r3, #6] adc_data.temp_sensor_raw = adc_dma_raw[4]; 8009576: 8911 ldrh r1, [r2, #8] 8009578: b289 uxth r1, r1 800957a: 8119 strh r1, [r3, #8] adc_data.vrefint_raw = adc_dma_raw[5]; 800957c: 8952 ldrh r2, [r2, #10] 800957e: b292 uxth r2, r2 8009580: 815a strh r2, [r3, #10] adc_scan_data_ready = 1u; 8009582: f880 c000 strb.w ip, [r0] } 8009586: 4770 bx lr 8009588: 40012400 .word 0x40012400 800958c: 20000274 .word 0x20000274 8009590: 20000280 .word 0x20000280 8009594: 2000028c .word 0x2000028c 08009598 : ADC_HandleTypeDef hadc1; DMA_HandleTypeDef hdma_adc1; /* ADC1 init function */ void MX_ADC1_Init(void) { 8009598: b580 push {r7, lr} 800959a: b084 sub sp, #16 800959c: af00 add r7, sp, #0 /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; 800959e: 1d3b adds r3, r7, #4 80095a0: 2200 movs r2, #0 80095a2: 601a str r2, [r3, #0] 80095a4: 605a str r2, [r3, #4] 80095a6: 609a str r2, [r3, #8] /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; 80095a8: 4b3c ldr r3, [pc, #240] @ (800969c ) 80095aa: 4a3d ldr r2, [pc, #244] @ (80096a0 ) 80095ac: 601a str r2, [r3, #0] hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE; 80095ae: 4b3b ldr r3, [pc, #236] @ (800969c ) 80095b0: f44f 7280 mov.w r2, #256 @ 0x100 80095b4: 609a str r2, [r3, #8] hadc1.Init.ContinuousConvMode = DISABLE; 80095b6: 4b39 ldr r3, [pc, #228] @ (800969c ) 80095b8: 2200 movs r2, #0 80095ba: 731a strb r2, [r3, #12] hadc1.Init.DiscontinuousConvMode = DISABLE; 80095bc: 4b37 ldr r3, [pc, #220] @ (800969c ) 80095be: 2200 movs r2, #0 80095c0: 751a strb r2, [r3, #20] hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIGCONV_T3_TRGO; 80095c2: 4b36 ldr r3, [pc, #216] @ (800969c ) 80095c4: f44f 2200 mov.w r2, #524288 @ 0x80000 80095c8: 61da str r2, [r3, #28] hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; 80095ca: 4b34 ldr r3, [pc, #208] @ (800969c ) 80095cc: 2200 movs r2, #0 80095ce: 605a str r2, [r3, #4] hadc1.Init.NbrOfConversion = 6; 80095d0: 4b32 ldr r3, [pc, #200] @ (800969c ) 80095d2: 2206 movs r2, #6 80095d4: 611a str r2, [r3, #16] if (HAL_ADC_Init(&hadc1) != HAL_OK) 80095d6: 4831 ldr r0, [pc, #196] @ (800969c ) 80095d8: f004 fd58 bl 800e08c 80095dc: 4603 mov r3, r0 80095de: 2b00 cmp r3, #0 80095e0: d001 beq.n 80095e6 { Error_Handler(); 80095e2: f001 faf5 bl 800abd0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_3; 80095e6: 2303 movs r3, #3 80095e8: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_1; 80095ea: 2301 movs r3, #1 80095ec: 60bb str r3, [r7, #8] sConfig.SamplingTime = ADC_SAMPLETIME_41CYCLES_5; 80095ee: 2304 movs r3, #4 80095f0: 60fb str r3, [r7, #12] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) 80095f2: 1d3b adds r3, r7, #4 80095f4: 4619 mov r1, r3 80095f6: 4829 ldr r0, [pc, #164] @ (800969c ) 80095f8: f004 ffd8 bl 800e5ac 80095fc: 4603 mov r3, r0 80095fe: 2b00 cmp r3, #0 8009600: d001 beq.n 8009606 { Error_Handler(); 8009602: f001 fae5 bl 800abd0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_4; 8009606: 2304 movs r3, #4 8009608: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_2; 800960a: 2302 movs r3, #2 800960c: 60bb str r3, [r7, #8] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) 800960e: 1d3b adds r3, r7, #4 8009610: 4619 mov r1, r3 8009612: 4822 ldr r0, [pc, #136] @ (800969c ) 8009614: f004 ffca bl 800e5ac 8009618: 4603 mov r3, r0 800961a: 2b00 cmp r3, #0 800961c: d001 beq.n 8009622 { Error_Handler(); 800961e: f001 fad7 bl 800abd0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_8; 8009622: 2308 movs r3, #8 8009624: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_3; 8009626: 2303 movs r3, #3 8009628: 60bb str r3, [r7, #8] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) 800962a: 1d3b adds r3, r7, #4 800962c: 4619 mov r1, r3 800962e: 481b ldr r0, [pc, #108] @ (800969c ) 8009630: f004 ffbc bl 800e5ac 8009634: 4603 mov r3, r0 8009636: 2b00 cmp r3, #0 8009638: d001 beq.n 800963e { Error_Handler(); 800963a: f001 fac9 bl 800abd0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_9; 800963e: 2309 movs r3, #9 8009640: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_4; 8009642: 2304 movs r3, #4 8009644: 60bb str r3, [r7, #8] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) 8009646: 1d3b adds r3, r7, #4 8009648: 4619 mov r1, r3 800964a: 4814 ldr r0, [pc, #80] @ (800969c ) 800964c: f004 ffae bl 800e5ac 8009650: 4603 mov r3, r0 8009652: 2b00 cmp r3, #0 8009654: d001 beq.n 800965a { Error_Handler(); 8009656: f001 fabb bl 800abd0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_TEMPSENSOR; 800965a: 2310 movs r3, #16 800965c: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_5; 800965e: 2305 movs r3, #5 8009660: 60bb str r3, [r7, #8] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) 8009662: 1d3b adds r3, r7, #4 8009664: 4619 mov r1, r3 8009666: 480d ldr r0, [pc, #52] @ (800969c ) 8009668: f004 ffa0 bl 800e5ac 800966c: 4603 mov r3, r0 800966e: 2b00 cmp r3, #0 8009670: d001 beq.n 8009676 { Error_Handler(); 8009672: f001 faad bl 800abd0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_VREFINT; 8009676: 2311 movs r3, #17 8009678: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_6; 800967a: 2306 movs r3, #6 800967c: 60bb str r3, [r7, #8] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) 800967e: 1d3b adds r3, r7, #4 8009680: 4619 mov r1, r3 8009682: 4806 ldr r0, [pc, #24] @ (800969c ) 8009684: f004 ff92 bl 800e5ac 8009688: 4603 mov r3, r0 800968a: 2b00 cmp r3, #0 800968c: d001 beq.n 8009692 { Error_Handler(); 800968e: f001 fa9f bl 800abd0 } /* USER CODE BEGIN ADC1_Init 2 */ /* USER CODE END ADC1_Init 2 */ } 8009692: bf00 nop 8009694: 3710 adds r7, #16 8009696: 46bd mov sp, r7 8009698: bd80 pop {r7, pc} 800969a: bf00 nop 800969c: 20000290 .word 0x20000290 80096a0: 40012400 .word 0x40012400 080096a4 : void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) { 80096a4: b580 push {r7, lr} 80096a6: b08a sub sp, #40 @ 0x28 80096a8: af00 add r7, sp, #0 80096aa: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 80096ac: f107 0318 add.w r3, r7, #24 80096b0: 2200 movs r2, #0 80096b2: 601a str r2, [r3, #0] 80096b4: 605a str r2, [r3, #4] 80096b6: 609a str r2, [r3, #8] 80096b8: 60da str r2, [r3, #12] if(adcHandle->Instance==ADC1) 80096ba: 687b ldr r3, [r7, #4] 80096bc: 681b ldr r3, [r3, #0] 80096be: 4a38 ldr r2, [pc, #224] @ (80097a0 ) 80096c0: 4293 cmp r3, r2 80096c2: d168 bne.n 8009796 { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* ADC1 clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); 80096c4: 4b37 ldr r3, [pc, #220] @ (80097a4 ) 80096c6: 699b ldr r3, [r3, #24] 80096c8: 4a36 ldr r2, [pc, #216] @ (80097a4 ) 80096ca: f443 7300 orr.w r3, r3, #512 @ 0x200 80096ce: 6193 str r3, [r2, #24] 80096d0: 4b34 ldr r3, [pc, #208] @ (80097a4 ) 80096d2: 699b ldr r3, [r3, #24] 80096d4: f403 7300 and.w r3, r3, #512 @ 0x200 80096d8: 617b str r3, [r7, #20] 80096da: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); 80096dc: 4b31 ldr r3, [pc, #196] @ (80097a4 ) 80096de: 699b ldr r3, [r3, #24] 80096e0: 4a30 ldr r2, [pc, #192] @ (80097a4 ) 80096e2: f043 0304 orr.w r3, r3, #4 80096e6: 6193 str r3, [r2, #24] 80096e8: 4b2e ldr r3, [pc, #184] @ (80097a4 ) 80096ea: 699b ldr r3, [r3, #24] 80096ec: f003 0304 and.w r3, r3, #4 80096f0: 613b str r3, [r7, #16] 80096f2: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); 80096f4: 4b2b ldr r3, [pc, #172] @ (80097a4 ) 80096f6: 699b ldr r3, [r3, #24] 80096f8: 4a2a ldr r2, [pc, #168] @ (80097a4 ) 80096fa: f043 0308 orr.w r3, r3, #8 80096fe: 6193 str r3, [r2, #24] 8009700: 4b28 ldr r3, [pc, #160] @ (80097a4 ) 8009702: 699b ldr r3, [r3, #24] 8009704: f003 0308 and.w r3, r3, #8 8009708: 60fb str r3, [r7, #12] 800970a: 68fb ldr r3, [r7, #12] PA3 ------> ADC1_IN3 PA4 ------> ADC1_IN4 PB0 ------> ADC1_IN8 PB1 ------> ADC1_IN9 */ GPIO_InitStruct.Pin = GPIO_PIN_3|CP_ADC_Pin; 800970c: 2318 movs r3, #24 800970e: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; 8009710: 2303 movs r3, #3 8009712: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 8009714: f107 0318 add.w r3, r7, #24 8009718: 4619 mov r1, r3 800971a: 4823 ldr r0, [pc, #140] @ (80097a8 ) 800971c: f006 feac bl 8010478 GPIO_InitStruct.Pin = ADC_NTC1_Pin|ADC_NTC2_Pin; 8009720: 2303 movs r3, #3 8009722: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; 8009724: 2303 movs r3, #3 8009726: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 8009728: f107 0318 add.w r3, r7, #24 800972c: 4619 mov r1, r3 800972e: 481f ldr r0, [pc, #124] @ (80097ac ) 8009730: f006 fea2 bl 8010478 /* ADC1 DMA Init */ /* ADC1 Init */ hdma_adc1.Instance = DMA1_Channel1; 8009734: 4b1e ldr r3, [pc, #120] @ (80097b0 ) 8009736: 4a1f ldr r2, [pc, #124] @ (80097b4 ) 8009738: 601a str r2, [r3, #0] hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY; 800973a: 4b1d ldr r3, [pc, #116] @ (80097b0 ) 800973c: 2200 movs r2, #0 800973e: 605a str r2, [r3, #4] hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE; 8009740: 4b1b ldr r3, [pc, #108] @ (80097b0 ) 8009742: 2200 movs r2, #0 8009744: 609a str r2, [r3, #8] hdma_adc1.Init.MemInc = DMA_MINC_ENABLE; 8009746: 4b1a ldr r3, [pc, #104] @ (80097b0 ) 8009748: 2280 movs r2, #128 @ 0x80 800974a: 60da str r2, [r3, #12] hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD; 800974c: 4b18 ldr r3, [pc, #96] @ (80097b0 ) 800974e: f44f 7280 mov.w r2, #256 @ 0x100 8009752: 611a str r2, [r3, #16] hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD; 8009754: 4b16 ldr r3, [pc, #88] @ (80097b0 ) 8009756: f44f 6280 mov.w r2, #1024 @ 0x400 800975a: 615a str r2, [r3, #20] hdma_adc1.Init.Mode = DMA_CIRCULAR; 800975c: 4b14 ldr r3, [pc, #80] @ (80097b0 ) 800975e: 2220 movs r2, #32 8009760: 619a str r2, [r3, #24] hdma_adc1.Init.Priority = DMA_PRIORITY_HIGH; 8009762: 4b13 ldr r3, [pc, #76] @ (80097b0 ) 8009764: f44f 5200 mov.w r2, #8192 @ 0x2000 8009768: 61da str r2, [r3, #28] if (HAL_DMA_Init(&hdma_adc1) != HAL_OK) 800976a: 4811 ldr r0, [pc, #68] @ (80097b0 ) 800976c: f006 fa00 bl 800fb70 8009770: 4603 mov r3, r0 8009772: 2b00 cmp r3, #0 8009774: d001 beq.n 800977a { Error_Handler(); 8009776: f001 fa2b bl 800abd0 } __HAL_LINKDMA(adcHandle,DMA_Handle,hdma_adc1); 800977a: 687b ldr r3, [r7, #4] 800977c: 4a0c ldr r2, [pc, #48] @ (80097b0 ) 800977e: 621a str r2, [r3, #32] 8009780: 4a0b ldr r2, [pc, #44] @ (80097b0 ) 8009782: 687b ldr r3, [r7, #4] 8009784: 6253 str r3, [r2, #36] @ 0x24 /* ADC1 interrupt Init */ HAL_NVIC_SetPriority(ADC1_2_IRQn, 0, 0); 8009786: 2200 movs r2, #0 8009788: 2100 movs r1, #0 800978a: 2012 movs r0, #18 800978c: f006 f98f bl 800faae HAL_NVIC_EnableIRQ(ADC1_2_IRQn); 8009790: 2012 movs r0, #18 8009792: f006 f9a8 bl 800fae6 /* USER CODE BEGIN ADC1_MspInit 1 */ /* USER CODE END ADC1_MspInit 1 */ } } 8009796: bf00 nop 8009798: 3728 adds r7, #40 @ 0x28 800979a: 46bd mov sp, r7 800979c: bd80 pop {r7, pc} 800979e: bf00 nop 80097a0: 40012400 .word 0x40012400 80097a4: 40021000 .word 0x40021000 80097a8: 40010800 .word 0x40010800 80097ac: 40010c00 .word 0x40010c00 80097b0: 200002c0 .word 0x200002c0 80097b4: 40020008 .word 0x40020008 080097b8 : uint8_t RELAY_State[RELAY_COUNT]; static volatile uint8_t adc_lock = 0; static SMAFilter_t conn_temp_adc_filter[2]; void RELAY_Write(relay_t num, uint8_t state){ 80097b8: b580 push {r7, lr} 80097ba: b082 sub sp, #8 80097bc: af00 add r7, sp, #0 80097be: 4603 mov r3, r0 80097c0: 460a mov r2, r1 80097c2: 71fb strb r3, [r7, #7] 80097c4: 4613 mov r3, r2 80097c6: 71bb strb r3, [r7, #6] switch (num) { 80097c8: 79fb ldrb r3, [r7, #7] 80097ca: 2b07 cmp r3, #7 80097cc: d850 bhi.n 8009870 80097ce: a201 add r2, pc, #4 @ (adr r2, 80097d4 ) 80097d0: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80097d4: 080097f5 .word 0x080097f5 80097d8: 08009805 .word 0x08009805 80097dc: 08009815 .word 0x08009815 80097e0: 08009825 .word 0x08009825 80097e4: 08009835 .word 0x08009835 80097e8: 08009845 .word 0x08009845 80097ec: 08009853 .word 0x08009853 80097f0: 08009863 .word 0x08009863 case RELAY_AUX0: HAL_GPIO_WritePin(RELAY1_GPIO_Port, RELAY1_Pin, state); 80097f4: 79bb ldrb r3, [r7, #6] 80097f6: 461a mov r2, r3 80097f8: f44f 7180 mov.w r1, #256 @ 0x100 80097fc: 4821 ldr r0, [pc, #132] @ (8009884 ) 80097fe: f007 f892 bl 8010926 break; 8009802: e036 b.n 8009872 case RELAY_AUX1: HAL_GPIO_WritePin(RELAY2_GPIO_Port, RELAY2_Pin, state); 8009804: 79bb ldrb r3, [r7, #6] 8009806: 461a mov r2, r3 8009808: f44f 7100 mov.w r1, #512 @ 0x200 800980c: 481d ldr r0, [pc, #116] @ (8009884 ) 800980e: f007 f88a bl 8010926 break; 8009812: e02e b.n 8009872 case RELAY3: HAL_GPIO_WritePin(RELAY3_GPIO_Port, RELAY3_Pin, state); 8009814: 79bb ldrb r3, [r7, #6] 8009816: 461a mov r2, r3 8009818: f44f 6180 mov.w r1, #1024 @ 0x400 800981c: 4819 ldr r0, [pc, #100] @ (8009884 ) 800981e: f007 f882 bl 8010926 break; 8009822: e026 b.n 8009872 case RELAY_DC: HAL_GPIO_WritePin(RELAY4_GPIO_Port, RELAY4_Pin, state); 8009824: 79bb ldrb r3, [r7, #6] 8009826: 461a mov r2, r3 8009828: f44f 6100 mov.w r1, #2048 @ 0x800 800982c: 4815 ldr r0, [pc, #84] @ (8009884 ) 800982e: f007 f87a bl 8010926 break; 8009832: e01e b.n 8009872 case RELAY_AC: HAL_GPIO_WritePin(RELAY5_GPIO_Port, RELAY5_Pin, state); 8009834: 79bb ldrb r3, [r7, #6] 8009836: 461a mov r2, r3 8009838: f44f 5180 mov.w r1, #4096 @ 0x1000 800983c: 4811 ldr r0, [pc, #68] @ (8009884 ) 800983e: f007 f872 bl 8010926 break; 8009842: e016 b.n 8009872 case RELAY_CP: HAL_GPIO_WritePin(RELAY_CP_GPIO_Port, RELAY_CP_Pin, state); 8009844: 79bb ldrb r3, [r7, #6] 8009846: 461a mov r2, r3 8009848: 2108 movs r1, #8 800984a: 480f ldr r0, [pc, #60] @ (8009888 ) 800984c: f007 f86b bl 8010926 break; 8009850: e00f b.n 8009872 case RELAY_CC: HAL_GPIO_WritePin(RELAY_CC_GPIO_Port, RELAY_CC_Pin, state); 8009852: 79bb ldrb r3, [r7, #6] 8009854: 461a mov r2, r3 8009856: f44f 4100 mov.w r1, #32768 @ 0x8000 800985a: 480c ldr r0, [pc, #48] @ (800988c ) 800985c: f007 f863 bl 8010926 break; 8009860: e007 b.n 8009872 case RELAY_DC1: HAL_GPIO_WritePin(RELAY_DC_GPIO_Port, RELAY_DC_Pin, state); 8009862: 79bb ldrb r3, [r7, #6] 8009864: 461a mov r2, r3 8009866: 2108 movs r1, #8 8009868: 4809 ldr r0, [pc, #36] @ (8009890 ) 800986a: f007 f85c bl 8010926 break; 800986e: e000 b.n 8009872 default: break; 8009870: bf00 nop } RELAY_State[num] = state; 8009872: 79fb ldrb r3, [r7, #7] 8009874: 4907 ldr r1, [pc, #28] @ (8009894 ) 8009876: 79ba ldrb r2, [r7, #6] 8009878: 54ca strb r2, [r1, r3] } 800987a: bf00 nop 800987c: 3708 adds r7, #8 800987e: 46bd mov sp, r7 8009880: bd80 pop {r7, pc} 8009882: bf00 nop 8009884: 40011800 .word 0x40011800 8009888: 40011000 .word 0x40011000 800988c: 40010800 .word 0x40010800 8009890: 40011400 .word 0x40011400 8009894: 20000304 .word 0x20000304 08009898 : uint8_t RELAY_Read(relay_t num){ 8009898: b480 push {r7} 800989a: b083 sub sp, #12 800989c: af00 add r7, sp, #0 800989e: 4603 mov r3, r0 80098a0: 71fb strb r3, [r7, #7] return RELAY_State[num]; 80098a2: 79fb ldrb r3, [r7, #7] 80098a4: 4a03 ldr r2, [pc, #12] @ (80098b4 ) 80098a6: 5cd3 ldrb r3, [r2, r3] } 80098a8: 4618 mov r0, r3 80098aa: 370c adds r7, #12 80098ac: 46bd mov sp, r7 80098ae: bc80 pop {r7} 80098b0: 4770 bx lr 80098b2: bf00 nop 80098b4: 20000304 .word 0x20000304 080098b8 : uint8_t IN_ReadInput(inputNum_t input_n){ 80098b8: b580 push {r7, lr} 80098ba: b082 sub sp, #8 80098bc: af00 add r7, sp, #0 80098be: 4603 mov r3, r0 80098c0: 71fb strb r3, [r7, #7] switch(input_n){ 80098c2: 79fb ldrb r3, [r7, #7] 80098c4: 2b06 cmp r3, #6 80098c6: d83b bhi.n 8009940 80098c8: a201 add r2, pc, #4 @ (adr r2, 80098d0 ) 80098ca: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80098ce: bf00 nop 80098d0: 080098ed .word 0x080098ed 80098d4: 080098f9 .word 0x080098f9 80098d8: 08009905 .word 0x08009905 80098dc: 08009911 .word 0x08009911 80098e0: 0800991d .word 0x0800991d 80098e4: 08009929 .word 0x08009929 80098e8: 08009935 .word 0x08009935 case IN_SW0: return HAL_GPIO_ReadPin(IN_SW0_GPIO_Port, IN_SW0_Pin); 80098ec: 2102 movs r1, #2 80098ee: 4817 ldr r0, [pc, #92] @ (800994c ) 80098f0: f007 f802 bl 80108f8 80098f4: 4603 mov r3, r0 80098f6: e024 b.n 8009942 case IN_SW1: return HAL_GPIO_ReadPin(IN_SW1_GPIO_Port, IN_SW1_Pin); 80098f8: 2104 movs r1, #4 80098fa: 4814 ldr r0, [pc, #80] @ (800994c ) 80098fc: f006 fffc bl 80108f8 8009900: 4603 mov r3, r0 8009902: e01e b.n 8009942 case IN0: return HAL_GPIO_ReadPin(IN0_GPIO_Port, IN0_Pin); 8009904: 2180 movs r1, #128 @ 0x80 8009906: 4812 ldr r0, [pc, #72] @ (8009950 ) 8009908: f006 fff6 bl 80108f8 800990c: 4603 mov r3, r0 800990e: e018 b.n 8009942 case IN_ESTOP: return HAL_GPIO_ReadPin(IN_ESTOP_GPIO_Port, IN_ESTOP_Pin); 8009910: 2180 movs r1, #128 @ 0x80 8009912: 4810 ldr r0, [pc, #64] @ (8009954 ) 8009914: f006 fff0 bl 80108f8 8009918: 4603 mov r3, r0 800991a: e012 b.n 8009942 case IN_FB1: return HAL_GPIO_ReadPin(IN_FB1_GPIO_Port, IN_FB1_Pin); 800991c: 2110 movs r1, #16 800991e: 480e ldr r0, [pc, #56] @ (8009958 ) 8009920: f006 ffea bl 80108f8 8009924: 4603 mov r3, r0 8009926: e00c b.n 8009942 case IN_CONT_FB_DC: return HAL_GPIO_ReadPin(IN_FB2_GPIO_Port, IN_FB2_Pin); 8009928: 2108 movs r1, #8 800992a: 480b ldr r0, [pc, #44] @ (8009958 ) 800992c: f006 ffe4 bl 80108f8 8009930: 4603 mov r3, r0 8009932: e006 b.n 8009942 case ISO_IN: return HAL_GPIO_ReadPin(ISO_IN_GPIO_Port, ISO_IN_Pin); 8009934: 2102 movs r1, #2 8009936: 4806 ldr r0, [pc, #24] @ (8009950 ) 8009938: f006 ffde bl 80108f8 800993c: 4603 mov r3, r0 800993e: e000 b.n 8009942 default: return 0; 8009940: 2300 movs r3, #0 } } 8009942: 4618 mov r0, r3 8009944: 3708 adds r7, #8 8009946: 46bd mov sp, r7 8009948: bd80 pop {r7, pc} 800994a: bf00 nop 800994c: 40010800 .word 0x40010800 8009950: 40011800 .word 0x40011800 8009954: 40011400 .word 0x40011400 8009958: 40010c00 .word 0x40010c00 0800995c : // // HAL_ADC_Stop(&hadc1); // stop adc return 0; } void Init_Peripheral(){ 800995c: b580 push {r7, lr} 800995e: af00 add r7, sp, #0 HAL_ADCEx_Calibration_Start(&hadc1); 8009960: 4816 ldr r0, [pc, #88] @ (80099bc ) 8009962: f005 f81d bl 800e9a0 ADC_ScanStart(); 8009966: f7ff fddf bl 8009528 RELAY_Write(RELAY_AUX0, 0); 800996a: 2100 movs r1, #0 800996c: 2000 movs r0, #0 800996e: f7ff ff23 bl 80097b8 RELAY_Write(RELAY_AUX1, 0); 8009972: 2100 movs r1, #0 8009974: 2001 movs r0, #1 8009976: f7ff ff1f bl 80097b8 RELAY_Write(RELAY3, 0); 800997a: 2100 movs r1, #0 800997c: 2002 movs r0, #2 800997e: f7ff ff1b bl 80097b8 RELAY_Write(RELAY_DC, 0); 8009982: 2100 movs r1, #0 8009984: 2003 movs r0, #3 8009986: f7ff ff17 bl 80097b8 RELAY_Write(RELAY_AC, 0); 800998a: 2100 movs r1, #0 800998c: 2004 movs r0, #4 800998e: f7ff ff13 bl 80097b8 RELAY_Write(RELAY_CP, 0); 8009992: 2100 movs r1, #0 8009994: 2005 movs r0, #5 8009996: f7ff ff0f bl 80097b8 RELAY_Write(RELAY_CC, 0); 800999a: 2100 movs r1, #0 800999c: 2006 movs r0, #6 800999e: f7ff ff0b bl 80097b8 RELAY_Write(RELAY_DC1, 0); 80099a2: 2100 movs r1, #0 80099a4: 2007 movs r0, #7 80099a6: f7ff ff07 bl 80097b8 SMAFilter_Init(&conn_temp_adc_filter[0]); 80099aa: 4805 ldr r0, [pc, #20] @ (80099c0 ) 80099ac: f003 fc58 bl 800d260 SMAFilter_Init(&conn_temp_adc_filter[1]); 80099b0: 4804 ldr r0, [pc, #16] @ (80099c4 ) 80099b2: f003 fc55 bl 800d260 } 80099b6: bf00 nop 80099b8: bd80 pop {r7, pc} 80099ba: bf00 nop 80099bc: 20000290 .word 0x20000290 80099c0: 2000030c .word 0x2000030c 80099c4: 20000334 .word 0x20000334 080099c8 : float pt1000_to_temperature(float resistance) { 80099c8: b590 push {r4, r7, lr} 80099ca: b087 sub sp, #28 80099cc: af00 add r7, sp, #0 80099ce: 6078 str r0, [r7, #4] // Константы для PT1000 const float R0 = 1000.0; // Сопротивление при 0 °C 80099d0: 4b0c ldr r3, [pc, #48] @ (8009a04 ) 80099d2: 617b str r3, [r7, #20] const float C_A = 3.9083E-3f; 80099d4: 4b0c ldr r3, [pc, #48] @ (8009a08 ) 80099d6: 613b str r3, [r7, #16] float temperature = (resistance-R0) / ( R0 * C_A); 80099d8: 6979 ldr r1, [r7, #20] 80099da: 6878 ldr r0, [r7, #4] 80099dc: f7ff f914 bl 8008c08 <__aeabi_fsub> 80099e0: 4603 mov r3, r0 80099e2: 461c mov r4, r3 80099e4: 6939 ldr r1, [r7, #16] 80099e6: 6978 ldr r0, [r7, #20] 80099e8: f7ff fa18 bl 8008e1c <__aeabi_fmul> 80099ec: 4603 mov r3, r0 80099ee: 4619 mov r1, r3 80099f0: 4620 mov r0, r4 80099f2: f7ff fac7 bl 8008f84 <__aeabi_fdiv> 80099f6: 4603 mov r3, r0 80099f8: 60fb str r3, [r7, #12] return temperature; 80099fa: 68fb ldr r3, [r7, #12] } 80099fc: 4618 mov r0, r3 80099fe: 371c adds r7, #28 8009a00: 46bd mov sp, r7 8009a02: bd90 pop {r4, r7, pc} 8009a04: 447a0000 .word 0x447a0000 8009a08: 3b801132 .word 0x3b801132 8009a0c: 00000000 .word 0x00000000 08009a10 : float calculate_NTC_resistance(int adc_value, float Vref, float Vin, float R) { 8009a10: b5b0 push {r4, r5, r7, lr} 8009a12: b086 sub sp, #24 8009a14: af00 add r7, sp, #0 8009a16: 60f8 str r0, [r7, #12] 8009a18: 60b9 str r1, [r7, #8] 8009a1a: 607a str r2, [r7, #4] 8009a1c: 603b str r3, [r7, #0] // Преобразуем значение АЦП в выходное напряжение float Vout = (adc_value / 4095.0) * Vref; 8009a1e: 68f8 ldr r0, [r7, #12] 8009a20: f7fe fd5c bl 80084dc <__aeabi_i2d> 8009a24: a31c add r3, pc, #112 @ (adr r3, 8009a98 ) 8009a26: e9d3 2300 ldrd r2, r3, [r3] 8009a2a: f7fe feeb bl 8008804 <__aeabi_ddiv> 8009a2e: 4602 mov r2, r0 8009a30: 460b mov r3, r1 8009a32: 4614 mov r4, r2 8009a34: 461d mov r5, r3 8009a36: 68b8 ldr r0, [r7, #8] 8009a38: f7fe fd62 bl 8008500 <__aeabi_f2d> 8009a3c: 4602 mov r2, r0 8009a3e: 460b mov r3, r1 8009a40: 4620 mov r0, r4 8009a42: 4629 mov r1, r5 8009a44: f7fe fdb4 bl 80085b0 <__aeabi_dmul> 8009a48: 4602 mov r2, r0 8009a4a: 460b mov r3, r1 8009a4c: 4610 mov r0, r2 8009a4e: 4619 mov r1, r3 8009a50: f7ff f886 bl 8008b60 <__aeabi_d2f> 8009a54: 4603 mov r3, r0 8009a56: 617b str r3, [r7, #20] // Проверяем, чтобы Vout не было равно Vin if (Vout >= Vin) { 8009a58: 6879 ldr r1, [r7, #4] 8009a5a: 6978 ldr r0, [r7, #20] 8009a5c: f7ff fb90 bl 8009180 <__aeabi_fcmpge> 8009a60: 4603 mov r3, r0 8009a62: 2b00 cmp r3, #0 8009a64: d001 beq.n 8009a6a return -1; // Ошибка: Vout не может быть больше или равно Vin 8009a66: 4b0e ldr r3, [pc, #56] @ (8009aa0 ) 8009a68: e010 b.n 8009a8c } // Вычисляем сопротивление термистора float R_NTC = R * (Vout / (Vin - Vout)); 8009a6a: 6979 ldr r1, [r7, #20] 8009a6c: 6878 ldr r0, [r7, #4] 8009a6e: f7ff f8cb bl 8008c08 <__aeabi_fsub> 8009a72: 4603 mov r3, r0 8009a74: 4619 mov r1, r3 8009a76: 6978 ldr r0, [r7, #20] 8009a78: f7ff fa84 bl 8008f84 <__aeabi_fdiv> 8009a7c: 4603 mov r3, r0 8009a7e: 4619 mov r1, r3 8009a80: 6838 ldr r0, [r7, #0] 8009a82: f7ff f9cb bl 8008e1c <__aeabi_fmul> 8009a86: 4603 mov r3, r0 8009a88: 613b str r3, [r7, #16] return R_NTC; 8009a8a: 693b ldr r3, [r7, #16] } 8009a8c: 4618 mov r0, r3 8009a8e: 3718 adds r7, #24 8009a90: 46bd mov sp, r7 8009a92: bdb0 pop {r4, r5, r7, pc} 8009a94: f3af 8000 nop.w 8009a98: 00000000 .word 0x00000000 8009a9c: 40affe00 .word 0x40affe00 8009aa0: bf800000 .word 0xbf800000 08009aa4 : int16_t CONN_ReadTemp(uint8_t ch){ 8009aa4: b580 push {r7, lr} 8009aa6: b088 sub sp, #32 8009aa8: af00 add r7, sp, #0 8009aaa: 4603 mov r3, r0 8009aac: 71fb strb r3, [r7, #7] uint32_t adcValue = 0u; 8009aae: 2300 movs r3, #0 8009ab0: 61fb str r3, [r7, #28] adcValue = ch ? adc_data.ntc2_raw : adc_data.ntc1_raw; 8009ab2: 79fb ldrb r3, [r7, #7] 8009ab4: 2b00 cmp r3, #0 8009ab6: d003 beq.n 8009ac0 8009ab8: 4b1c ldr r3, [pc, #112] @ (8009b2c ) 8009aba: 88db ldrh r3, [r3, #6] 8009abc: b29b uxth r3, r3 8009abe: e002 b.n 8009ac6 8009ac0: 4b1a ldr r3, [pc, #104] @ (8009b2c ) 8009ac2: 889b ldrh r3, [r3, #4] 8009ac4: b29b uxth r3, r3 8009ac6: 61fb str r3, [r7, #28] int32_t adc_filtered = SMAFilter_Update(&conn_temp_adc_filter[ch ? 1u : 0u], (int32_t)adcValue); 8009ac8: 79fb ldrb r3, [r7, #7] 8009aca: 2b00 cmp r3, #0 8009acc: d001 beq.n 8009ad2 8009ace: 2201 movs r2, #1 8009ad0: e000 b.n 8009ad4 8009ad2: 2200 movs r2, #0 8009ad4: 4613 mov r3, r2 8009ad6: 009b lsls r3, r3, #2 8009ad8: 4413 add r3, r2 8009ada: 00db lsls r3, r3, #3 8009adc: 4a14 ldr r2, [pc, #80] @ (8009b30 ) 8009ade: 4413 add r3, r2 8009ae0: 69fa ldr r2, [r7, #28] 8009ae2: 4611 mov r1, r2 8009ae4: 4618 mov r0, r3 8009ae6: f003 fbe0 bl 800d2aa 8009aea: 61b8 str r0, [r7, #24] if((uint32_t)adc_filtered > 4000u) { 8009aec: 69bb ldr r3, [r7, #24] 8009aee: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 8009af2: d901 bls.n 8009af8 return 20; //Термодатчик не подключен 8009af4: 2314 movs r3, #20 8009af6: e015 b.n 8009b24 } // int adc_value = 2048; // Пример значения АЦП float Vref = 3.3; // Напряжение опорное 8009af8: 4b0e ldr r3, [pc, #56] @ (8009b34 ) 8009afa: 617b str r3, [r7, #20] float Vin = 5.0; // Входное напряжение 8009afc: 4b0e ldr r3, [pc, #56] @ (8009b38 ) 8009afe: 613b str r3, [r7, #16] float R = 1000; // Сопротивление резистора в Омах 8009b00: 4b0e ldr r3, [pc, #56] @ (8009b3c ) 8009b02: 60fb str r3, [r7, #12] float temp = pt1000_to_temperature(calculate_NTC_resistance((int)adc_filtered, Vref, Vin, R)); 8009b04: 68fb ldr r3, [r7, #12] 8009b06: 693a ldr r2, [r7, #16] 8009b08: 6979 ldr r1, [r7, #20] 8009b0a: 69b8 ldr r0, [r7, #24] 8009b0c: f7ff ff80 bl 8009a10 8009b10: 4603 mov r3, r0 8009b12: 4618 mov r0, r3 8009b14: f7ff ff58 bl 80099c8 8009b18: 60b8 str r0, [r7, #8] return (int16_t)temp; 8009b1a: 68b8 ldr r0, [r7, #8] 8009b1c: f7ff fb44 bl 80091a8 <__aeabi_f2iz> 8009b20: 4603 mov r3, r0 8009b22: b21b sxth r3, r3 } 8009b24: 4618 mov r0, r3 8009b26: 3720 adds r7, #32 8009b28: 46bd mov sp, r7 8009b2a: bd80 pop {r7, pc} 8009b2c: 20000280 .word 0x20000280 8009b30: 2000030c .word 0x2000030c 8009b34: 40533333 .word 0x40533333 8009b38: 40a00000 .word 0x40a00000 8009b3c: 447a0000 .word 0x447a0000 08009b40 : CAN_HandleTypeDef hcan1; CAN_HandleTypeDef hcan2; /* CAN1 init function */ void MX_CAN1_Init(void) { 8009b40: b580 push {r7, lr} 8009b42: af00 add r7, sp, #0 /* USER CODE END CAN1_Init 0 */ /* USER CODE BEGIN CAN1_Init 1 */ /* USER CODE END CAN1_Init 1 */ hcan1.Instance = CAN1; 8009b44: 4b17 ldr r3, [pc, #92] @ (8009ba4 ) 8009b46: 4a18 ldr r2, [pc, #96] @ (8009ba8 ) 8009b48: 601a str r2, [r3, #0] hcan1.Init.Prescaler = 8; 8009b4a: 4b16 ldr r3, [pc, #88] @ (8009ba4 ) 8009b4c: 2208 movs r2, #8 8009b4e: 605a str r2, [r3, #4] hcan1.Init.Mode = CAN_MODE_NORMAL; 8009b50: 4b14 ldr r3, [pc, #80] @ (8009ba4 ) 8009b52: 2200 movs r2, #0 8009b54: 609a str r2, [r3, #8] hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ; 8009b56: 4b13 ldr r3, [pc, #76] @ (8009ba4 ) 8009b58: 2200 movs r2, #0 8009b5a: 60da str r2, [r3, #12] hcan1.Init.TimeSeg1 = CAN_BS1_15TQ; 8009b5c: 4b11 ldr r3, [pc, #68] @ (8009ba4 ) 8009b5e: f44f 2260 mov.w r2, #917504 @ 0xe0000 8009b62: 611a str r2, [r3, #16] hcan1.Init.TimeSeg2 = CAN_BS2_2TQ; 8009b64: 4b0f ldr r3, [pc, #60] @ (8009ba4 ) 8009b66: f44f 1280 mov.w r2, #1048576 @ 0x100000 8009b6a: 615a str r2, [r3, #20] hcan1.Init.TimeTriggeredMode = DISABLE; 8009b6c: 4b0d ldr r3, [pc, #52] @ (8009ba4 ) 8009b6e: 2200 movs r2, #0 8009b70: 761a strb r2, [r3, #24] hcan1.Init.AutoBusOff = ENABLE; 8009b72: 4b0c ldr r3, [pc, #48] @ (8009ba4 ) 8009b74: 2201 movs r2, #1 8009b76: 765a strb r2, [r3, #25] hcan1.Init.AutoWakeUp = ENABLE; 8009b78: 4b0a ldr r3, [pc, #40] @ (8009ba4 ) 8009b7a: 2201 movs r2, #1 8009b7c: 769a strb r2, [r3, #26] hcan1.Init.AutoRetransmission = ENABLE; 8009b7e: 4b09 ldr r3, [pc, #36] @ (8009ba4 ) 8009b80: 2201 movs r2, #1 8009b82: 76da strb r2, [r3, #27] hcan1.Init.ReceiveFifoLocked = DISABLE; 8009b84: 4b07 ldr r3, [pc, #28] @ (8009ba4 ) 8009b86: 2200 movs r2, #0 8009b88: 771a strb r2, [r3, #28] hcan1.Init.TransmitFifoPriority = ENABLE; 8009b8a: 4b06 ldr r3, [pc, #24] @ (8009ba4 ) 8009b8c: 2201 movs r2, #1 8009b8e: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan1) != HAL_OK) 8009b90: 4804 ldr r0, [pc, #16] @ (8009ba4 ) 8009b92: f004 ffbc bl 800eb0e 8009b96: 4603 mov r3, r0 8009b98: 2b00 cmp r3, #0 8009b9a: d001 beq.n 8009ba0 { Error_Handler(); 8009b9c: f001 f818 bl 800abd0 } /* USER CODE BEGIN CAN1_Init 2 */ /* USER CODE END CAN1_Init 2 */ } 8009ba0: bf00 nop 8009ba2: bd80 pop {r7, pc} 8009ba4: 2000035c .word 0x2000035c 8009ba8: 40006400 .word 0x40006400 08009bac : /* CAN2 init function */ void MX_CAN2_Init(void) { 8009bac: b580 push {r7, lr} 8009bae: af00 add r7, sp, #0 /* USER CODE END CAN2_Init 0 */ /* USER CODE BEGIN CAN2_Init 1 */ /* USER CODE END CAN2_Init 1 */ hcan2.Instance = CAN2; 8009bb0: 4b17 ldr r3, [pc, #92] @ (8009c10 ) 8009bb2: 4a18 ldr r2, [pc, #96] @ (8009c14 ) 8009bb4: 601a str r2, [r3, #0] hcan2.Init.Prescaler = 16; 8009bb6: 4b16 ldr r3, [pc, #88] @ (8009c10 ) 8009bb8: 2210 movs r2, #16 8009bba: 605a str r2, [r3, #4] hcan2.Init.Mode = CAN_MODE_NORMAL; 8009bbc: 4b14 ldr r3, [pc, #80] @ (8009c10 ) 8009bbe: 2200 movs r2, #0 8009bc0: 609a str r2, [r3, #8] hcan2.Init.SyncJumpWidth = CAN_SJW_1TQ; 8009bc2: 4b13 ldr r3, [pc, #76] @ (8009c10 ) 8009bc4: 2200 movs r2, #0 8009bc6: 60da str r2, [r3, #12] hcan2.Init.TimeSeg1 = CAN_BS1_15TQ; 8009bc8: 4b11 ldr r3, [pc, #68] @ (8009c10 ) 8009bca: f44f 2260 mov.w r2, #917504 @ 0xe0000 8009bce: 611a str r2, [r3, #16] hcan2.Init.TimeSeg2 = CAN_BS2_2TQ; 8009bd0: 4b0f ldr r3, [pc, #60] @ (8009c10 ) 8009bd2: f44f 1280 mov.w r2, #1048576 @ 0x100000 8009bd6: 615a str r2, [r3, #20] hcan2.Init.TimeTriggeredMode = DISABLE; 8009bd8: 4b0d ldr r3, [pc, #52] @ (8009c10 ) 8009bda: 2200 movs r2, #0 8009bdc: 761a strb r2, [r3, #24] hcan2.Init.AutoBusOff = ENABLE; 8009bde: 4b0c ldr r3, [pc, #48] @ (8009c10 ) 8009be0: 2201 movs r2, #1 8009be2: 765a strb r2, [r3, #25] hcan2.Init.AutoWakeUp = ENABLE; 8009be4: 4b0a ldr r3, [pc, #40] @ (8009c10 ) 8009be6: 2201 movs r2, #1 8009be8: 769a strb r2, [r3, #26] hcan2.Init.AutoRetransmission = ENABLE; 8009bea: 4b09 ldr r3, [pc, #36] @ (8009c10 ) 8009bec: 2201 movs r2, #1 8009bee: 76da strb r2, [r3, #27] hcan2.Init.ReceiveFifoLocked = DISABLE; 8009bf0: 4b07 ldr r3, [pc, #28] @ (8009c10 ) 8009bf2: 2200 movs r2, #0 8009bf4: 771a strb r2, [r3, #28] hcan2.Init.TransmitFifoPriority = ENABLE; 8009bf6: 4b06 ldr r3, [pc, #24] @ (8009c10 ) 8009bf8: 2201 movs r2, #1 8009bfa: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan2) != HAL_OK) 8009bfc: 4804 ldr r0, [pc, #16] @ (8009c10 ) 8009bfe: f004 ff86 bl 800eb0e 8009c02: 4603 mov r3, r0 8009c04: 2b00 cmp r3, #0 8009c06: d001 beq.n 8009c0c { Error_Handler(); 8009c08: f000 ffe2 bl 800abd0 } /* USER CODE BEGIN CAN2_Init 2 */ /* USER CODE END CAN2_Init 2 */ } 8009c0c: bf00 nop 8009c0e: bd80 pop {r7, pc} 8009c10: 20000384 .word 0x20000384 8009c14: 40006800 .word 0x40006800 08009c18 : static uint32_t HAL_RCC_CAN1_CLK_ENABLED=0; void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) { 8009c18: b580 push {r7, lr} 8009c1a: b08e sub sp, #56 @ 0x38 8009c1c: af00 add r7, sp, #0 8009c1e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 8009c20: f107 0320 add.w r3, r7, #32 8009c24: 2200 movs r2, #0 8009c26: 601a str r2, [r3, #0] 8009c28: 605a str r2, [r3, #4] 8009c2a: 609a str r2, [r3, #8] 8009c2c: 60da str r2, [r3, #12] if(canHandle->Instance==CAN1) 8009c2e: 687b ldr r3, [r7, #4] 8009c30: 681b ldr r3, [r3, #0] 8009c32: 4a61 ldr r2, [pc, #388] @ (8009db8 ) 8009c34: 4293 cmp r3, r2 8009c36: d153 bne.n 8009ce0 { /* USER CODE BEGIN CAN1_MspInit 0 */ /* USER CODE END CAN1_MspInit 0 */ /* CAN1 clock enable */ HAL_RCC_CAN1_CLK_ENABLED++; 8009c38: 4b60 ldr r3, [pc, #384] @ (8009dbc ) 8009c3a: 681b ldr r3, [r3, #0] 8009c3c: 3301 adds r3, #1 8009c3e: 4a5f ldr r2, [pc, #380] @ (8009dbc ) 8009c40: 6013 str r3, [r2, #0] if(HAL_RCC_CAN1_CLK_ENABLED==1){ 8009c42: 4b5e ldr r3, [pc, #376] @ (8009dbc ) 8009c44: 681b ldr r3, [r3, #0] 8009c46: 2b01 cmp r3, #1 8009c48: d10b bne.n 8009c62 __HAL_RCC_CAN1_CLK_ENABLE(); 8009c4a: 4b5d ldr r3, [pc, #372] @ (8009dc0 ) 8009c4c: 69db ldr r3, [r3, #28] 8009c4e: 4a5c ldr r2, [pc, #368] @ (8009dc0 ) 8009c50: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 8009c54: 61d3 str r3, [r2, #28] 8009c56: 4b5a ldr r3, [pc, #360] @ (8009dc0 ) 8009c58: 69db ldr r3, [r3, #28] 8009c5a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8009c5e: 61fb str r3, [r7, #28] 8009c60: 69fb ldr r3, [r7, #28] } __HAL_RCC_GPIOD_CLK_ENABLE(); 8009c62: 4b57 ldr r3, [pc, #348] @ (8009dc0 ) 8009c64: 699b ldr r3, [r3, #24] 8009c66: 4a56 ldr r2, [pc, #344] @ (8009dc0 ) 8009c68: f043 0320 orr.w r3, r3, #32 8009c6c: 6193 str r3, [r2, #24] 8009c6e: 4b54 ldr r3, [pc, #336] @ (8009dc0 ) 8009c70: 699b ldr r3, [r3, #24] 8009c72: f003 0320 and.w r3, r3, #32 8009c76: 61bb str r3, [r7, #24] 8009c78: 69bb ldr r3, [r7, #24] /**CAN1 GPIO Configuration PD0 ------> CAN1_RX PD1 ------> CAN1_TX */ GPIO_InitStruct.Pin = GPIO_PIN_0; 8009c7a: 2301 movs r3, #1 8009c7c: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 8009c7e: 2300 movs r3, #0 8009c80: 627b str r3, [r7, #36] @ 0x24 GPIO_InitStruct.Pull = GPIO_NOPULL; 8009c82: 2300 movs r3, #0 8009c84: 62bb str r3, [r7, #40] @ 0x28 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 8009c86: f107 0320 add.w r3, r7, #32 8009c8a: 4619 mov r1, r3 8009c8c: 484d ldr r0, [pc, #308] @ (8009dc4 ) 8009c8e: f006 fbf3 bl 8010478 GPIO_InitStruct.Pin = GPIO_PIN_1; 8009c92: 2302 movs r3, #2 8009c94: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 8009c96: 2302 movs r3, #2 8009c98: 627b str r3, [r7, #36] @ 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8009c9a: 2303 movs r3, #3 8009c9c: 62fb str r3, [r7, #44] @ 0x2c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 8009c9e: f107 0320 add.w r3, r7, #32 8009ca2: 4619 mov r1, r3 8009ca4: 4847 ldr r0, [pc, #284] @ (8009dc4 ) 8009ca6: f006 fbe7 bl 8010478 __HAL_AFIO_REMAP_CAN1_3(); 8009caa: 4b47 ldr r3, [pc, #284] @ (8009dc8 ) 8009cac: 685b ldr r3, [r3, #4] 8009cae: 633b str r3, [r7, #48] @ 0x30 8009cb0: 6b3b ldr r3, [r7, #48] @ 0x30 8009cb2: f423 43c0 bic.w r3, r3, #24576 @ 0x6000 8009cb6: 633b str r3, [r7, #48] @ 0x30 8009cb8: 6b3b ldr r3, [r7, #48] @ 0x30 8009cba: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 8009cbe: 633b str r3, [r7, #48] @ 0x30 8009cc0: 6b3b ldr r3, [r7, #48] @ 0x30 8009cc2: f443 43c0 orr.w r3, r3, #24576 @ 0x6000 8009cc6: 633b str r3, [r7, #48] @ 0x30 8009cc8: 4a3f ldr r2, [pc, #252] @ (8009dc8 ) 8009cca: 6b3b ldr r3, [r7, #48] @ 0x30 8009ccc: 6053 str r3, [r2, #4] /* CAN1 interrupt Init */ HAL_NVIC_SetPriority(CAN1_RX0_IRQn, 0, 0); 8009cce: 2200 movs r2, #0 8009cd0: 2100 movs r1, #0 8009cd2: 2014 movs r0, #20 8009cd4: f005 feeb bl 800faae HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn); 8009cd8: 2014 movs r0, #20 8009cda: f005 ff04 bl 800fae6 HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); /* USER CODE BEGIN CAN2_MspInit 1 */ /* USER CODE END CAN2_MspInit 1 */ } } 8009cde: e067 b.n 8009db0 else if(canHandle->Instance==CAN2) 8009ce0: 687b ldr r3, [r7, #4] 8009ce2: 681b ldr r3, [r3, #0] 8009ce4: 4a39 ldr r2, [pc, #228] @ (8009dcc ) 8009ce6: 4293 cmp r3, r2 8009ce8: d162 bne.n 8009db0 __HAL_RCC_CAN2_CLK_ENABLE(); 8009cea: 4b35 ldr r3, [pc, #212] @ (8009dc0 ) 8009cec: 69db ldr r3, [r3, #28] 8009cee: 4a34 ldr r2, [pc, #208] @ (8009dc0 ) 8009cf0: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000 8009cf4: 61d3 str r3, [r2, #28] 8009cf6: 4b32 ldr r3, [pc, #200] @ (8009dc0 ) 8009cf8: 69db ldr r3, [r3, #28] 8009cfa: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 8009cfe: 617b str r3, [r7, #20] 8009d00: 697b ldr r3, [r7, #20] HAL_RCC_CAN1_CLK_ENABLED++; 8009d02: 4b2e ldr r3, [pc, #184] @ (8009dbc ) 8009d04: 681b ldr r3, [r3, #0] 8009d06: 3301 adds r3, #1 8009d08: 4a2c ldr r2, [pc, #176] @ (8009dbc ) 8009d0a: 6013 str r3, [r2, #0] if(HAL_RCC_CAN1_CLK_ENABLED==1){ 8009d0c: 4b2b ldr r3, [pc, #172] @ (8009dbc ) 8009d0e: 681b ldr r3, [r3, #0] 8009d10: 2b01 cmp r3, #1 8009d12: d10b bne.n 8009d2c __HAL_RCC_CAN1_CLK_ENABLE(); 8009d14: 4b2a ldr r3, [pc, #168] @ (8009dc0 ) 8009d16: 69db ldr r3, [r3, #28] 8009d18: 4a29 ldr r2, [pc, #164] @ (8009dc0 ) 8009d1a: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 8009d1e: 61d3 str r3, [r2, #28] 8009d20: 4b27 ldr r3, [pc, #156] @ (8009dc0 ) 8009d22: 69db ldr r3, [r3, #28] 8009d24: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8009d28: 613b str r3, [r7, #16] 8009d2a: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); 8009d2c: 4b24 ldr r3, [pc, #144] @ (8009dc0 ) 8009d2e: 699b ldr r3, [r3, #24] 8009d30: 4a23 ldr r2, [pc, #140] @ (8009dc0 ) 8009d32: f043 0308 orr.w r3, r3, #8 8009d36: 6193 str r3, [r2, #24] 8009d38: 4b21 ldr r3, [pc, #132] @ (8009dc0 ) 8009d3a: 699b ldr r3, [r3, #24] 8009d3c: f003 0308 and.w r3, r3, #8 8009d40: 60fb str r3, [r7, #12] 8009d42: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_5; 8009d44: 2320 movs r3, #32 8009d46: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 8009d48: 2300 movs r3, #0 8009d4a: 627b str r3, [r7, #36] @ 0x24 GPIO_InitStruct.Pull = GPIO_NOPULL; 8009d4c: 2300 movs r3, #0 8009d4e: 62bb str r3, [r7, #40] @ 0x28 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 8009d50: f107 0320 add.w r3, r7, #32 8009d54: 4619 mov r1, r3 8009d56: 481e ldr r0, [pc, #120] @ (8009dd0 ) 8009d58: f006 fb8e bl 8010478 GPIO_InitStruct.Pin = GPIO_PIN_6; 8009d5c: 2340 movs r3, #64 @ 0x40 8009d5e: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 8009d60: 2302 movs r3, #2 8009d62: 627b str r3, [r7, #36] @ 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8009d64: 2303 movs r3, #3 8009d66: 62fb str r3, [r7, #44] @ 0x2c HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 8009d68: f107 0320 add.w r3, r7, #32 8009d6c: 4619 mov r1, r3 8009d6e: 4818 ldr r0, [pc, #96] @ (8009dd0 ) 8009d70: f006 fb82 bl 8010478 __HAL_AFIO_REMAP_CAN2_ENABLE(); 8009d74: 4b14 ldr r3, [pc, #80] @ (8009dc8 ) 8009d76: 685b ldr r3, [r3, #4] 8009d78: 637b str r3, [r7, #52] @ 0x34 8009d7a: 6b7b ldr r3, [r7, #52] @ 0x34 8009d7c: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 8009d80: 637b str r3, [r7, #52] @ 0x34 8009d82: 6b7b ldr r3, [r7, #52] @ 0x34 8009d84: f443 0380 orr.w r3, r3, #4194304 @ 0x400000 8009d88: 637b str r3, [r7, #52] @ 0x34 8009d8a: 4a0f ldr r2, [pc, #60] @ (8009dc8 ) 8009d8c: 6b7b ldr r3, [r7, #52] @ 0x34 8009d8e: 6053 str r3, [r2, #4] HAL_NVIC_SetPriority(CAN2_TX_IRQn, 0, 0); 8009d90: 2200 movs r2, #0 8009d92: 2100 movs r1, #0 8009d94: 203f movs r0, #63 @ 0x3f 8009d96: f005 fe8a bl 800faae HAL_NVIC_EnableIRQ(CAN2_TX_IRQn); 8009d9a: 203f movs r0, #63 @ 0x3f 8009d9c: f005 fea3 bl 800fae6 HAL_NVIC_SetPriority(CAN2_RX1_IRQn, 0, 0); 8009da0: 2200 movs r2, #0 8009da2: 2100 movs r1, #0 8009da4: 2041 movs r0, #65 @ 0x41 8009da6: f005 fe82 bl 800faae HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); 8009daa: 2041 movs r0, #65 @ 0x41 8009dac: f005 fe9b bl 800fae6 } 8009db0: bf00 nop 8009db2: 3738 adds r7, #56 @ 0x38 8009db4: 46bd mov sp, r7 8009db6: bd80 pop {r7, pc} 8009db8: 40006400 .word 0x40006400 8009dbc: 200003ac .word 0x200003ac 8009dc0: 40021000 .word 0x40021000 8009dc4: 40011400 .word 0x40011400 8009dc8: 40010000 .word 0x40010000 8009dcc: 40006800 .word 0x40006800 8009dd0: 40010c00 .word 0x40010c00 08009dd4 : ChargingConnector_t CONN; CONN_State_t connectorState; extern uint8_t config_initialized; void CONN_Init(){ 8009dd4: b480 push {r7} 8009dd6: af00 add r7, sp, #0 CONN.connControl = CMD_NONE; 8009dd8: 4b08 ldr r3, [pc, #32] @ (8009dfc ) 8009dda: 2200 movs r2, #0 8009ddc: 701a strb r2, [r3, #0] CONN.connState = Unknown; 8009dde: 4b07 ldr r3, [pc, #28] @ (8009dfc ) 8009de0: 2200 movs r2, #0 8009de2: 705a strb r2, [r3, #1] CONN.RequestedVoltage = PSU_MIN_VOLTAGE; 8009de4: 4b05 ldr r3, [pc, #20] @ (8009dfc ) 8009de6: 2200 movs r2, #0 8009de8: f062 0269 orn r2, r2, #105 @ 0x69 8009dec: 73da strb r2, [r3, #15] 8009dee: 2200 movs r2, #0 8009df0: 741a strb r2, [r3, #16] } 8009df2: bf00 nop 8009df4: 46bd mov sp, r7 8009df6: bc80 pop {r7} 8009df8: 4770 bx lr 8009dfa: bf00 nop 8009dfc: 200003b0 .word 0x200003b0 08009e00 : void CONN_Loop(){ 8009e00: b580 push {r7, lr} 8009e02: af00 add r7, sp, #0 static CONN_State_t last_connState = Unknown; if(last_connState != CONN.connState){ 8009e04: 4b1a ldr r3, [pc, #104] @ (8009e70 ) 8009e06: 785a ldrb r2, [r3, #1] 8009e08: 4b1a ldr r3, [pc, #104] @ (8009e74 ) 8009e0a: 781b ldrb r3, [r3, #0] 8009e0c: 429a cmp r2, r3 8009e0e: d006 beq.n 8009e1e last_connState = CONN.connState; 8009e10: 4b17 ldr r3, [pc, #92] @ (8009e70 ) 8009e12: 785a ldrb r2, [r3, #1] 8009e14: 4b17 ldr r3, [pc, #92] @ (8009e74 ) 8009e16: 701a strb r2, [r3, #0] CONN.connControl = CMD_NONE; 8009e18: 4b15 ldr r3, [pc, #84] @ (8009e70 ) 8009e1a: 2200 movs r2, #0 8009e1c: 701a strb r2, [r3, #0] } if(PSU0.cont_fault){ 8009e1e: 4b16 ldr r3, [pc, #88] @ (8009e78 ) 8009e20: 7b1b ldrb r3, [r3, #12] 8009e22: 2b00 cmp r3, #0 8009e24: d003 beq.n 8009e2e CONN.chargingError = CONN_ERR_CONTACTOR; 8009e26: 4b12 ldr r3, [pc, #72] @ (8009e70 ) 8009e28: 2207 movs r2, #7 8009e2a: 775a strb r2, [r3, #29] 8009e2c: e00e b.n 8009e4c } else if(PSU0.psu_fault){ 8009e2e: 4b12 ldr r3, [pc, #72] @ (8009e78 ) 8009e30: 7b5b ldrb r3, [r3, #13] 8009e32: 2b00 cmp r3, #0 8009e34: d003 beq.n 8009e3e CONN.chargingError = CONN_ERR_PSU_FAULT; 8009e36: 4b0e ldr r3, [pc, #56] @ (8009e70 ) 8009e38: 220a movs r2, #10 8009e3a: 775a strb r2, [r3, #29] 8009e3c: e006 b.n 8009e4c // } else if(!CTRL.ac_ok) { // CONN.chargingError = CONN_ERR_AC_FAULT; // } else }else if (CONN.EvConnected == 0){ 8009e3e: 4b0c ldr r3, [pc, #48] @ (8009e70 ) 8009e40: 7f9b ldrb r3, [r3, #30] 8009e42: 2b00 cmp r3, #0 8009e44: d102 bne.n 8009e4c CONN.chargingError = CONN_NO_ERROR; 8009e46: 4b0a ldr r3, [pc, #40] @ (8009e70 ) 8009e48: 2200 movs r2, #0 8009e4a: 775a strb r2, [r3, #29] } if(ED_TraceWarning(CONN.chargingError, 0)) printf("CONN%d Error: %d\n", 0, CONN.chargingError); 8009e4c: 4b08 ldr r3, [pc, #32] @ (8009e70 ) 8009e4e: 7f5b ldrb r3, [r3, #29] 8009e50: 2100 movs r1, #0 8009e52: 4618 mov r0, r3 8009e54: f000 fcfc bl 800a850 8009e58: 4603 mov r3, r0 8009e5a: 2b00 cmp r3, #0 8009e5c: d006 beq.n 8009e6c 8009e5e: 4b04 ldr r3, [pc, #16] @ (8009e70 ) 8009e60: 7f5b ldrb r3, [r3, #29] 8009e62: 461a mov r2, r3 8009e64: 2100 movs r1, #0 8009e66: 4805 ldr r0, [pc, #20] @ (8009e7c ) 8009e68: f00a fc64 bl 8014734 } 8009e6c: bf00 nop 8009e6e: bd80 pop {r7, pc} 8009e70: 200003b0 .word 0x200003b0 8009e74: 200003d0 .word 0x200003d0 8009e78: 20000904 .word 0x20000904 8009e7c: 080169a8 .word 0x080169a8 08009e80 : void CONN_Task(){ 8009e80: b480 push {r7} 8009e82: af00 add r7, sp, #0 /* CCS state machine is handled in serial.c. * Keep this task lightweight for scheduler compatibility. */ return; 8009e84: bf00 nop } 8009e86: 46bd mov sp, r7 8009e88: bc80 pop {r7} 8009e8a: 4770 bx lr 08009e8c : void CONN_SetState(CONN_State_t state){ 8009e8c: b580 push {r7, lr} 8009e8e: b082 sub sp, #8 8009e90: af00 add r7, sp, #0 8009e92: 4603 mov r3, r0 8009e94: 71fb strb r3, [r7, #7] if (connectorState == state) { 8009e96: 4b41 ldr r3, [pc, #260] @ (8009f9c ) 8009e98: 781b ldrb r3, [r3, #0] 8009e9a: 79fa ldrb r2, [r7, #7] 8009e9c: 429a cmp r2, r3 8009e9e: d103 bne.n 8009ea8 CONN.connState = state; 8009ea0: 4a3f ldr r2, [pc, #252] @ (8009fa0 ) 8009ea2: 79fb ldrb r3, [r7, #7] 8009ea4: 7053 strb r3, [r2, #1] return; 8009ea6: e075 b.n 8009f94 } connectorState = state; 8009ea8: 4a3c ldr r2, [pc, #240] @ (8009f9c ) 8009eaa: 79fb ldrb r3, [r7, #7] 8009eac: 7013 strb r3, [r2, #0] if(connectorState == Unknown) log_printf(LOG_INFO, "Connector: Unknown\n"); 8009eae: 4b3b ldr r3, [pc, #236] @ (8009f9c ) 8009eb0: 781b ldrb r3, [r3, #0] 8009eb2: 2b00 cmp r3, #0 8009eb4: d103 bne.n 8009ebe 8009eb6: 493b ldr r1, [pc, #236] @ (8009fa4 ) 8009eb8: 2007 movs r0, #7 8009eba: f000 fb11 bl 800a4e0 if(connectorState == Unplugged) log_printf(LOG_INFO, "Connector: Unplugged\n"); 8009ebe: 4b37 ldr r3, [pc, #220] @ (8009f9c ) 8009ec0: 781b ldrb r3, [r3, #0] 8009ec2: 2b01 cmp r3, #1 8009ec4: d103 bne.n 8009ece 8009ec6: 4938 ldr r1, [pc, #224] @ (8009fa8 ) 8009ec8: 2007 movs r0, #7 8009eca: f000 fb09 bl 800a4e0 if(connectorState == Disabled) log_printf(LOG_INFO, "Connector: Disabled\n"); 8009ece: 4b33 ldr r3, [pc, #204] @ (8009f9c ) 8009ed0: 781b ldrb r3, [r3, #0] 8009ed2: 2b02 cmp r3, #2 8009ed4: d103 bne.n 8009ede 8009ed6: 4935 ldr r1, [pc, #212] @ (8009fac ) 8009ed8: 2007 movs r0, #7 8009eda: f000 fb01 bl 800a4e0 if(connectorState == Preparing) log_printf(LOG_INFO, "Connector: Preparing\n"); 8009ede: 4b2f ldr r3, [pc, #188] @ (8009f9c ) 8009ee0: 781b ldrb r3, [r3, #0] 8009ee2: 2b03 cmp r3, #3 8009ee4: d103 bne.n 8009eee 8009ee6: 4932 ldr r1, [pc, #200] @ (8009fb0 ) 8009ee8: 2007 movs r0, #7 8009eea: f000 faf9 bl 800a4e0 if(connectorState == AuthRequired) log_printf(LOG_INFO, "Connector: AuthRequired\n"); 8009eee: 4b2b ldr r3, [pc, #172] @ (8009f9c ) 8009ef0: 781b ldrb r3, [r3, #0] 8009ef2: 2b04 cmp r3, #4 8009ef4: d103 bne.n 8009efe 8009ef6: 492f ldr r1, [pc, #188] @ (8009fb4 ) 8009ef8: 2007 movs r0, #7 8009efa: f000 faf1 bl 800a4e0 if(connectorState == WaitingForEnergy) log_printf(LOG_INFO, "Connector: WaitingForEnergy\n"); 8009efe: 4b27 ldr r3, [pc, #156] @ (8009f9c ) 8009f00: 781b ldrb r3, [r3, #0] 8009f02: 2b05 cmp r3, #5 8009f04: d103 bne.n 8009f0e 8009f06: 492c ldr r1, [pc, #176] @ (8009fb8 ) 8009f08: 2007 movs r0, #7 8009f0a: f000 fae9 bl 800a4e0 if(connectorState == ChargingPausedEV) log_printf(LOG_INFO, "Connector: ChargingPausedEV\n"); 8009f0e: 4b23 ldr r3, [pc, #140] @ (8009f9c ) 8009f10: 781b ldrb r3, [r3, #0] 8009f12: 2b06 cmp r3, #6 8009f14: d103 bne.n 8009f1e 8009f16: 4929 ldr r1, [pc, #164] @ (8009fbc ) 8009f18: 2007 movs r0, #7 8009f1a: f000 fae1 bl 800a4e0 if(connectorState == ChargingPausedEVSE) log_printf(LOG_INFO, "Connector: ChargingPausedEVSE\n"); 8009f1e: 4b1f ldr r3, [pc, #124] @ (8009f9c ) 8009f20: 781b ldrb r3, [r3, #0] 8009f22: 2b07 cmp r3, #7 8009f24: d103 bne.n 8009f2e 8009f26: 4926 ldr r1, [pc, #152] @ (8009fc0 ) 8009f28: 2007 movs r0, #7 8009f2a: f000 fad9 bl 800a4e0 if(connectorState == Charging) log_printf(LOG_INFO, "Connector: Charging\n"); 8009f2e: 4b1b ldr r3, [pc, #108] @ (8009f9c ) 8009f30: 781b ldrb r3, [r3, #0] 8009f32: 2b08 cmp r3, #8 8009f34: d103 bne.n 8009f3e 8009f36: 4923 ldr r1, [pc, #140] @ (8009fc4 ) 8009f38: 2007 movs r0, #7 8009f3a: f000 fad1 bl 800a4e0 if(connectorState == AuthTimeout) log_printf(LOG_INFO, "Connector: AuthTimeout\n"); 8009f3e: 4b17 ldr r3, [pc, #92] @ (8009f9c ) 8009f40: 781b ldrb r3, [r3, #0] 8009f42: 2b09 cmp r3, #9 8009f44: d103 bne.n 8009f4e 8009f46: 4920 ldr r1, [pc, #128] @ (8009fc8 ) 8009f48: 2007 movs r0, #7 8009f4a: f000 fac9 bl 800a4e0 if(connectorState == Finished) log_printf(LOG_INFO, "Connector: Finished\n"); 8009f4e: 4b13 ldr r3, [pc, #76] @ (8009f9c ) 8009f50: 781b ldrb r3, [r3, #0] 8009f52: 2b0a cmp r3, #10 8009f54: d103 bne.n 8009f5e 8009f56: 491d ldr r1, [pc, #116] @ (8009fcc ) 8009f58: 2007 movs r0, #7 8009f5a: f000 fac1 bl 800a4e0 if(connectorState == FinishedEVSE) log_printf(LOG_INFO, "Connector: FinishedEVSE\n"); 8009f5e: 4b0f ldr r3, [pc, #60] @ (8009f9c ) 8009f60: 781b ldrb r3, [r3, #0] 8009f62: 2b0b cmp r3, #11 8009f64: d103 bne.n 8009f6e 8009f66: 491a ldr r1, [pc, #104] @ (8009fd0 ) 8009f68: 2007 movs r0, #7 8009f6a: f000 fab9 bl 800a4e0 if(connectorState == FinishedEV) log_printf(LOG_INFO, "Connector: FinishedEV\n"); 8009f6e: 4b0b ldr r3, [pc, #44] @ (8009f9c ) 8009f70: 781b ldrb r3, [r3, #0] 8009f72: 2b0c cmp r3, #12 8009f74: d103 bne.n 8009f7e 8009f76: 4917 ldr r1, [pc, #92] @ (8009fd4 ) 8009f78: 2007 movs r0, #7 8009f7a: f000 fab1 bl 800a4e0 if(connectorState == Replugging) log_printf(LOG_INFO, "Connector: Replugging\n"); 8009f7e: 4b07 ldr r3, [pc, #28] @ (8009f9c ) 8009f80: 781b ldrb r3, [r3, #0] 8009f82: 2b0d cmp r3, #13 8009f84: d103 bne.n 8009f8e 8009f86: 4914 ldr r1, [pc, #80] @ (8009fd8 ) 8009f88: 2007 movs r0, #7 8009f8a: f000 faa9 bl 800a4e0 CONN.connState = state; 8009f8e: 4a04 ldr r2, [pc, #16] @ (8009fa0 ) 8009f90: 79fb ldrb r3, [r7, #7] 8009f92: 7053 strb r3, [r2, #1] } 8009f94: 3708 adds r7, #8 8009f96: 46bd mov sp, r7 8009f98: bd80 pop {r7, pc} 8009f9a: bf00 nop 8009f9c: 200003cf .word 0x200003cf 8009fa0: 200003b0 .word 0x200003b0 8009fa4: 080169bc .word 0x080169bc 8009fa8: 080169d0 .word 0x080169d0 8009fac: 080169e8 .word 0x080169e8 8009fb0: 08016a00 .word 0x08016a00 8009fb4: 08016a18 .word 0x08016a18 8009fb8: 08016a34 .word 0x08016a34 8009fbc: 08016a54 .word 0x08016a54 8009fc0: 08016a74 .word 0x08016a74 8009fc4: 08016a94 .word 0x08016a94 8009fc8: 08016aac .word 0x08016aac 8009fcc: 08016ac4 .word 0x08016ac4 8009fd0: 08016adc .word 0x08016adc 8009fd4: 08016af8 .word 0x08016af8 8009fd8: 08016b10 .word 0x08016b10 08009fdc : CP_State_t cp_state_buffer = EV_STATE_ACQUIRING; #define VREFINT_CAL_ADDR ((uint16_t*)0x1FFFF7BA) // для STM32F1! static int32_t CP_ReadVoltageMv(void) { 8009fdc: b480 push {r7} 8009fde: b087 sub sp, #28 8009fe0: af00 add r7, sp, #0 uint32_t adc_cp = adc_data.cp_raw; 8009fe2: 4b13 ldr r3, [pc, #76] @ (800a030 ) 8009fe4: 885b ldrh r3, [r3, #2] 8009fe6: b29b uxth r3, r3 8009fe8: 617b str r3, [r7, #20] uint32_t adc_vref = adc_data.vrefint_raw; // нужно измерять! 8009fea: 4b11 ldr r3, [pc, #68] @ (800a030 ) 8009fec: 895b ldrh r3, [r3, #10] 8009fee: b29b uxth r3, r3 8009ff0: 613b str r3, [r7, #16] // VREFINT в мВ (берётся из даташита или калибровки MCU) const int32_t VREFINT_MV = 1210; 8009ff2: f240 43ba movw r3, #1210 @ 0x4ba 8009ff6: 60fb str r3, [r7, #12] // напряжение на входе АЦП int32_t v_adc_mv = (adc_cp * VREFINT_MV) / adc_vref; 8009ff8: 68fb ldr r3, [r7, #12] 8009ffa: 697a ldr r2, [r7, #20] 8009ffc: fb03 f202 mul.w r2, r3, r2 800a000: 693b ldr r3, [r7, #16] 800a002: fbb2 f3f3 udiv r3, r2, r3 800a006: 60bb str r3, [r7, #8] // дальше твоя формула int32_t v_out_mv = ((v_adc_mv - 1723) * 7704) / 1000; 800a008: 68bb ldr r3, [r7, #8] 800a00a: f2a3 63bb subw r3, r3, #1723 @ 0x6bb 800a00e: f641 6218 movw r2, #7704 @ 0x1e18 800a012: fb02 f303 mul.w r3, r2, r3 800a016: 4a07 ldr r2, [pc, #28] @ (800a034 ) 800a018: fb82 1203 smull r1, r2, r2, r3 800a01c: 1192 asrs r2, r2, #6 800a01e: 17db asrs r3, r3, #31 800a020: 1ad3 subs r3, r2, r3 800a022: 607b str r3, [r7, #4] return v_out_mv; 800a024: 687b ldr r3, [r7, #4] } 800a026: 4618 mov r0, r3 800a028: 371c adds r7, #28 800a02a: 46bd mov sp, r7 800a02c: bc80 pop {r7} 800a02e: 4770 bx lr 800a030: 20000280 .word 0x20000280 800a034: 10624dd3 .word 0x10624dd3 0800a038 : void CP_Init(void) { 800a038: b580 push {r7, lr} 800a03a: af00 add r7, sp, #0 /* TIM3_CH2 (PA7): set 1kHz PWM like original CCS logic. */ htim3.Instance->PSC = 160 - 1; 800a03c: 4b0e ldr r3, [pc, #56] @ (800a078 ) 800a03e: 681b ldr r3, [r3, #0] 800a040: 229f movs r2, #159 @ 0x9f 800a042: 629a str r2, [r3, #40] @ 0x28 htim3.Instance->ARR = MAX_DUTY - 1; 800a044: 4b0c ldr r3, [pc, #48] @ (800a078 ) 800a046: 681b ldr r3, [r3, #0] 800a048: f240 12c1 movw r2, #449 @ 0x1c1 800a04c: 62da str r2, [r3, #44] @ 0x2c #if DUTY_INVERT == 0 htim3.Instance->CCR2 = MAX_DUTY; 800a04e: 4b0a ldr r3, [pc, #40] @ (800a078 ) 800a050: 681b ldr r3, [r3, #0] 800a052: f44f 72e1 mov.w r2, #450 @ 0x1c2 800a056: 639a str r2, [r3, #56] @ 0x38 htim3.Instance->CCR1 = MAX_DUTY + 5; 800a058: 4b07 ldr r3, [pc, #28] @ (800a078 ) 800a05a: 681b ldr r3, [r3, #0] 800a05c: f240 12c7 movw r2, #455 @ 0x1c7 800a060: 635a str r2, [r3, #52] @ 0x34 #else htim3.Instance->CCR2 = 0; htim3.Instance->CCR1 = 0; #endif HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_2); 800a062: 2104 movs r1, #4 800a064: 4804 ldr r0, [pc, #16] @ (800a078 ) 800a066: f007 ff95 bl 8011f94 HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_1); 800a06a: 2100 movs r1, #0 800a06c: 4802 ldr r0, [pc, #8] @ (800a078 ) 800a06e: f007 fe8f bl 8011d90 } 800a072: bf00 nop 800a074: bd80 pop {r7, pc} 800a076: bf00 nop 800a078: 200010c4 .word 0x200010c4 0800a07c : void CP_SetDuty(uint8_t percentage) { 800a07c: b480 push {r7} 800a07e: b085 sub sp, #20 800a080: af00 add r7, sp, #0 800a082: 4603 mov r3, r0 800a084: 71fb strb r3, [r7, #7] uint32_t pwmduty = MAX_DUTY * percentage / 100; 800a086: 79fb ldrb r3, [r7, #7] 800a088: f44f 72e1 mov.w r2, #450 @ 0x1c2 800a08c: fb02 f303 mul.w r3, r2, r3 800a090: 4a0b ldr r2, [pc, #44] @ (800a0c0 ) 800a092: fb82 1203 smull r1, r2, r2, r3 800a096: 1152 asrs r2, r2, #5 800a098: 17db asrs r3, r3, #31 800a09a: 1ad3 subs r3, r2, r3 800a09c: 60fb str r3, [r7, #12] cp_duty = percentage; 800a09e: 4a09 ldr r2, [pc, #36] @ (800a0c4 ) 800a0a0: 79fb ldrb r3, [r7, #7] 800a0a2: 7013 strb r3, [r2, #0] #if DUTY_INVERT == 0 htim3.Instance->CCR2 = pwmduty; 800a0a4: 4b08 ldr r3, [pc, #32] @ (800a0c8 ) 800a0a6: 681b ldr r3, [r3, #0] 800a0a8: 68fa ldr r2, [r7, #12] 800a0aa: 639a str r2, [r3, #56] @ 0x38 htim3.Instance->CCR1 = 0 + 1; 800a0ac: 4b06 ldr r3, [pc, #24] @ (800a0c8 ) 800a0ae: 681b ldr r3, [r3, #0] 800a0b0: 2201 movs r2, #1 800a0b2: 635a str r2, [r3, #52] @ 0x34 #else htim3.Instance->CCR2 = MAX_DUTY - pwmduty; htim3.Instance->CCR1 = MAX_DUTY - pwmduty + 5; #endif } 800a0b4: bf00 nop 800a0b6: 3714 adds r7, #20 800a0b8: 46bd mov sp, r7 800a0ba: bc80 pop {r7} 800a0bc: 4770 bx lr 800a0be: bf00 nop 800a0c0: 51eb851f .word 0x51eb851f 800a0c4: 200003d8 .word 0x200003d8 800a0c8: 200010c4 .word 0x200010c4 0800a0cc : uint8_t CP_GetDuty(void) { 800a0cc: b480 push {r7} 800a0ce: af00 add r7, sp, #0 return cp_duty; 800a0d0: 4b02 ldr r3, [pc, #8] @ (800a0dc ) 800a0d2: 781b ldrb r3, [r3, #0] } 800a0d4: 4618 mov r0, r3 800a0d6: 46bd mov sp, r7 800a0d8: bc80 pop {r7} 800a0da: 4770 bx lr 800a0dc: 200003d8 .word 0x200003d8 0800a0e0 : int32_t CP_GetVoltage(void) { 800a0e0: b580 push {r7, lr} 800a0e2: af00 add r7, sp, #0 cp_voltage_mv = CP_ReadVoltageMv(); 800a0e4: f7ff ff7a bl 8009fdc 800a0e8: 4603 mov r3, r0 800a0ea: 4a03 ldr r2, [pc, #12] @ (800a0f8 ) 800a0ec: 6013 str r3, [r2, #0] return cp_voltage_mv; 800a0ee: 4b02 ldr r3, [pc, #8] @ (800a0f8 ) 800a0f0: 681b ldr r3, [r3, #0] } 800a0f2: 4618 mov r0, r3 800a0f4: bd80 pop {r7, pc} 800a0f6: bf00 nop 800a0f8: 200003d4 .word 0x200003d4 0800a0fc : CP_State_t CP_GetState(void) { 800a0fc: b580 push {r7, lr} 800a0fe: b082 sub sp, #8 800a100: af00 add r7, sp, #0 int32_t voltage_real = CP_GetVoltage(); 800a102: f7ff ffed bl 800a0e0 800a106: 6078 str r0, [r7, #4] if(fake_cp_state != EV_STATE_ACQUIRING) { 800a108: 4b21 ldr r3, [pc, #132] @ (800a190 ) 800a10a: 781b ldrb r3, [r3, #0] 800a10c: 2b06 cmp r3, #6 800a10e: d002 beq.n 800a116 return fake_cp_state; 800a110: 4b1f ldr r3, [pc, #124] @ (800a190 ) 800a112: 781b ldrb r3, [r3, #0] 800a114: e038 b.n 800a188 } if (voltage_real >= (12000-1000)) { 800a116: 687b ldr r3, [r7, #4] 800a118: f642 22f7 movw r2, #10999 @ 0x2af7 800a11c: 4293 cmp r3, r2 800a11e: dd01 ble.n 800a124 return EV_STATE_A_IDLE; 800a120: 2300 movs r3, #0 800a122: e031 b.n 800a188 } else if (voltage_real >= (9000-1000) && voltage_real <= (9000+1000)) { 800a124: 687b ldr r3, [r7, #4] 800a126: f5b3 5ffa cmp.w r3, #8000 @ 0x1f40 800a12a: db06 blt.n 800a13a 800a12c: 687b ldr r3, [r7, #4] 800a12e: f242 7210 movw r2, #10000 @ 0x2710 800a132: 4293 cmp r3, r2 800a134: dc01 bgt.n 800a13a return EV_STATE_B_CONN_PREP; 800a136: 2301 movs r3, #1 800a138: e026 b.n 800a188 } else if (voltage_real >= (6000-1000) && voltage_real <= (6000+1000)) { 800a13a: 687b ldr r3, [r7, #4] 800a13c: f241 3287 movw r2, #4999 @ 0x1387 800a140: 4293 cmp r3, r2 800a142: dd06 ble.n 800a152 800a144: 687b ldr r3, [r7, #4] 800a146: f641 3258 movw r2, #7000 @ 0x1b58 800a14a: 4293 cmp r3, r2 800a14c: dc01 bgt.n 800a152 return EV_STATE_C_CONN_ACTIVE; 800a14e: 2302 movs r3, #2 800a150: e01a b.n 800a188 } else if (voltage_real >= (3000-1000) && voltage_real <= (3000 + 1000)) { 800a152: 687b ldr r3, [r7, #4] 800a154: f5b3 6ffa cmp.w r3, #2000 @ 0x7d0 800a158: db05 blt.n 800a166 800a15a: 687b ldr r3, [r7, #4] 800a15c: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800a160: dc01 bgt.n 800a166 return EV_STATE_D_CONN_ACT_VENT; 800a162: 2303 movs r3, #3 800a164: e010 b.n 800a188 } else if (voltage_real >= (0-1000) && voltage_real <= (0+2000)){ 800a166: 687b ldr r3, [r7, #4] 800a168: f513 7f7a cmn.w r3, #1000 @ 0x3e8 800a16c: db05 blt.n 800a17a 800a16e: 687b ldr r3, [r7, #4] 800a170: f5b3 6ffa cmp.w r3, #2000 @ 0x7d0 800a174: dc01 bgt.n 800a17a return EV_STATE_E_NO_POWER; 800a176: 2304 movs r3, #4 800a178: e006 b.n 800a188 } else if (voltage_real <= (-12000+1000)) { 800a17a: 687b ldr r3, [r7, #4] 800a17c: 4a05 ldr r2, [pc, #20] @ (800a194 ) 800a17e: 4293 cmp r3, r2 800a180: da01 bge.n 800a186 return EV_STATE_F_ERROR; 800a182: 2305 movs r3, #5 800a184: e000 b.n 800a188 } else { return EV_STATE_ACQUIRING; 800a186: 2306 movs r3, #6 } } 800a188: 4618 mov r0, r3 800a18a: 3708 adds r7, #8 800a18c: 46bd mov sp, r7 800a18e: bd80 pop {r7, pc} 800a190: 20000004 .word 0x20000004 800a194: ffffd509 .word 0xffffd509 0800a198 : CP_State_t CP_GetFilteredState(void) { 800a198: b480 push {r7} 800a19a: af00 add r7, sp, #0 return cp_state_buffer; 800a19c: 4b02 ldr r3, [pc, #8] @ (800a1a8 ) 800a19e: 781b ldrb r3, [r3, #0] } 800a1a0: 4618 mov r0, r3 800a1a2: 46bd mov sp, r7 800a1a4: bc80 pop {r7} 800a1a6: 4770 bx lr 800a1a8: 20000005 .word 0x20000005 0800a1ac : void CP_FilterState(void) { 800a1ac: b580 push {r7, lr} 800a1ae: b082 sub sp, #8 800a1b0: af00 add r7, sp, #0 static CP_State_t pending_state = EV_STATE_ACQUIRING; static uint8_t stable_count = 0u; CP_State_t current_state = CP_GetState(); 800a1b2: f7ff ffa3 bl 800a0fc 800a1b6: 4603 mov r3, r0 800a1b8: 71fb strb r3, [r7, #7] /* Keep last accepted state while CP is still acquiring. */ if (current_state == EV_STATE_ACQUIRING) { 800a1ba: 79fb ldrb r3, [r7, #7] 800a1bc: 2b06 cmp r3, #6 800a1be: d106 bne.n 800a1ce pending_state = EV_STATE_ACQUIRING; 800a1c0: 4b13 ldr r3, [pc, #76] @ (800a210 ) 800a1c2: 2206 movs r2, #6 800a1c4: 701a strb r2, [r3, #0] stable_count = 0u; 800a1c6: 4b13 ldr r3, [pc, #76] @ (800a214 ) 800a1c8: 2200 movs r2, #0 800a1ca: 701a strb r2, [r3, #0] return; 800a1cc: e01d b.n 800a20a } if (current_state != pending_state) { 800a1ce: 4b10 ldr r3, [pc, #64] @ (800a210 ) 800a1d0: 781b ldrb r3, [r3, #0] 800a1d2: 79fa ldrb r2, [r7, #7] 800a1d4: 429a cmp r2, r3 800a1d6: d006 beq.n 800a1e6 pending_state = current_state; 800a1d8: 4a0d ldr r2, [pc, #52] @ (800a210 ) 800a1da: 79fb ldrb r3, [r7, #7] 800a1dc: 7013 strb r3, [r2, #0] stable_count = 1u; 800a1de: 4b0d ldr r3, [pc, #52] @ (800a214 ) 800a1e0: 2201 movs r2, #1 800a1e2: 701a strb r2, [r3, #0] return; 800a1e4: e011 b.n 800a20a } if (stable_count < FILTER_ORDER) { 800a1e6: 4b0b ldr r3, [pc, #44] @ (800a214 ) 800a1e8: 781b ldrb r3, [r3, #0] 800a1ea: 2b63 cmp r3, #99 @ 0x63 800a1ec: d805 bhi.n 800a1fa stable_count++; 800a1ee: 4b09 ldr r3, [pc, #36] @ (800a214 ) 800a1f0: 781b ldrb r3, [r3, #0] 800a1f2: 3301 adds r3, #1 800a1f4: b2da uxtb r2, r3 800a1f6: 4b07 ldr r3, [pc, #28] @ (800a214 ) 800a1f8: 701a strb r2, [r3, #0] } if (stable_count >= FILTER_ORDER) { 800a1fa: 4b06 ldr r3, [pc, #24] @ (800a214 ) 800a1fc: 781b ldrb r3, [r3, #0] 800a1fe: 2b63 cmp r3, #99 @ 0x63 800a200: d903 bls.n 800a20a cp_state_buffer = pending_state; 800a202: 4b03 ldr r3, [pc, #12] @ (800a210 ) 800a204: 781a ldrb r2, [r3, #0] 800a206: 4b04 ldr r3, [pc, #16] @ (800a218 ) 800a208: 701a strb r2, [r3, #0] } } 800a20a: 3708 adds r7, #8 800a20c: 46bd mov sp, r7 800a20e: bd80 pop {r7, pc} 800a210: 20000006 .word 0x20000006 800a214: 200003d9 .word 0x200003d9 800a218: 20000005 .word 0x20000005 0800a21c : void CP_Loop(void) { 800a21c: b580 push {r7, lr} 800a21e: b082 sub sp, #8 800a220: af00 add r7, sp, #0 static uint8_t initialized = 0; static CP_State_t prev_state = EV_STATE_ACQUIRING; static uint8_t prev_duty = 0; CP_FilterState(); 800a222: f7ff ffc3 bl 800a1ac CP_State_t current_state = CP_GetFilteredState(); 800a226: f7ff ffb7 bl 800a198 800a22a: 4603 mov r3, r0 800a22c: 71fb strb r3, [r7, #7] uint8_t current_duty = cp_duty; 800a22e: 4b1a ldr r3, [pc, #104] @ (800a298 ) 800a230: 781b ldrb r3, [r3, #0] 800a232: 71bb strb r3, [r7, #6] if (!initialized) { 800a234: 4b19 ldr r3, [pc, #100] @ (800a29c ) 800a236: 781b ldrb r3, [r3, #0] 800a238: 2b00 cmp r3, #0 800a23a: d109 bne.n 800a250 prev_state = current_state; 800a23c: 4a18 ldr r2, [pc, #96] @ (800a2a0 ) 800a23e: 79fb ldrb r3, [r7, #7] 800a240: 7013 strb r3, [r2, #0] prev_duty = current_duty; 800a242: 4a18 ldr r2, [pc, #96] @ (800a2a4 ) 800a244: 79bb ldrb r3, [r7, #6] 800a246: 7013 strb r3, [r2, #0] initialized = 1; 800a248: 4b14 ldr r3, [pc, #80] @ (800a29c ) 800a24a: 2201 movs r2, #1 800a24c: 701a strb r2, [r3, #0] return; 800a24e: e01f b.n 800a290 } if (current_state != prev_state) { 800a250: 4b13 ldr r3, [pc, #76] @ (800a2a0 ) 800a252: 781b ldrb r3, [r3, #0] 800a254: 79fa ldrb r2, [r7, #7] 800a256: 429a cmp r2, r3 800a258: d00a beq.n 800a270 log_printf(LOG_INFO, "CP state changed: %d -> %d\n", prev_state, current_state); 800a25a: 4b11 ldr r3, [pc, #68] @ (800a2a0 ) 800a25c: 781b ldrb r3, [r3, #0] 800a25e: 461a mov r2, r3 800a260: 79fb ldrb r3, [r7, #7] 800a262: 4911 ldr r1, [pc, #68] @ (800a2a8 ) 800a264: 2007 movs r0, #7 800a266: f000 f93b bl 800a4e0 prev_state = current_state; 800a26a: 4a0d ldr r2, [pc, #52] @ (800a2a0 ) 800a26c: 79fb ldrb r3, [r7, #7] 800a26e: 7013 strb r3, [r2, #0] } if (current_duty != prev_duty) { 800a270: 4b0c ldr r3, [pc, #48] @ (800a2a4 ) 800a272: 781b ldrb r3, [r3, #0] 800a274: 79ba ldrb r2, [r7, #6] 800a276: 429a cmp r2, r3 800a278: d00a beq.n 800a290 log_printf(LOG_INFO, "CP duty changed: %u -> %u\n", prev_duty, current_duty); 800a27a: 4b0a ldr r3, [pc, #40] @ (800a2a4 ) 800a27c: 781b ldrb r3, [r3, #0] 800a27e: 461a mov r2, r3 800a280: 79bb ldrb r3, [r7, #6] 800a282: 490a ldr r1, [pc, #40] @ (800a2ac ) 800a284: 2007 movs r0, #7 800a286: f000 f92b bl 800a4e0 prev_duty = current_duty; 800a28a: 4a06 ldr r2, [pc, #24] @ (800a2a4 ) 800a28c: 79bb ldrb r3, [r7, #6] 800a28e: 7013 strb r3, [r2, #0] } } 800a290: 3708 adds r7, #8 800a292: 46bd mov sp, r7 800a294: bd80 pop {r7, pc} 800a296: bf00 nop 800a298: 200003d8 .word 0x200003d8 800a29c: 200003da .word 0x200003da 800a2a0: 20000007 .word 0x20000007 800a2a4: 200003db .word 0x200003db 800a2a8: 08016b5c .word 0x08016b5c 800a2ac: 08016b78 .word 0x08016b78 0800a2b0 : CRC_HandleTypeDef hcrc; /* CRC init function */ void MX_CRC_Init(void) { 800a2b0: b580 push {r7, lr} 800a2b2: af00 add r7, sp, #0 /* USER CODE END CRC_Init 0 */ /* USER CODE BEGIN CRC_Init 1 */ /* USER CODE END CRC_Init 1 */ hcrc.Instance = CRC; 800a2b4: 4b06 ldr r3, [pc, #24] @ (800a2d0 ) 800a2b6: 4a07 ldr r2, [pc, #28] @ (800a2d4 ) 800a2b8: 601a str r2, [r3, #0] if (HAL_CRC_Init(&hcrc) != HAL_OK) 800a2ba: 4805 ldr r0, [pc, #20] @ (800a2d0 ) 800a2bc: f005 fc3b bl 800fb36 800a2c0: 4603 mov r3, r0 800a2c2: 2b00 cmp r3, #0 800a2c4: d001 beq.n 800a2ca { Error_Handler(); 800a2c6: f000 fc83 bl 800abd0 } /* USER CODE BEGIN CRC_Init 2 */ /* USER CODE END CRC_Init 2 */ } 800a2ca: bf00 nop 800a2cc: bd80 pop {r7, pc} 800a2ce: bf00 nop 800a2d0: 200003dc .word 0x200003dc 800a2d4: 40023000 .word 0x40023000 0800a2d8 : void HAL_CRC_MspInit(CRC_HandleTypeDef* crcHandle) { 800a2d8: b480 push {r7} 800a2da: b085 sub sp, #20 800a2dc: af00 add r7, sp, #0 800a2de: 6078 str r0, [r7, #4] if(crcHandle->Instance==CRC) 800a2e0: 687b ldr r3, [r7, #4] 800a2e2: 681b ldr r3, [r3, #0] 800a2e4: 4a09 ldr r2, [pc, #36] @ (800a30c ) 800a2e6: 4293 cmp r3, r2 800a2e8: d10b bne.n 800a302 { /* USER CODE BEGIN CRC_MspInit 0 */ /* USER CODE END CRC_MspInit 0 */ /* CRC clock enable */ __HAL_RCC_CRC_CLK_ENABLE(); 800a2ea: 4b09 ldr r3, [pc, #36] @ (800a310 ) 800a2ec: 695b ldr r3, [r3, #20] 800a2ee: 4a08 ldr r2, [pc, #32] @ (800a310 ) 800a2f0: f043 0340 orr.w r3, r3, #64 @ 0x40 800a2f4: 6153 str r3, [r2, #20] 800a2f6: 4b06 ldr r3, [pc, #24] @ (800a310 ) 800a2f8: 695b ldr r3, [r3, #20] 800a2fa: f003 0340 and.w r3, r3, #64 @ 0x40 800a2fe: 60fb str r3, [r7, #12] 800a300: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN CRC_MspInit 1 */ /* USER CODE END CRC_MspInit 1 */ } } 800a302: bf00 nop 800a304: 3714 adds r7, #20 800a306: 46bd mov sp, r7 800a308: bc80 pop {r7} 800a30a: 4770 bx lr 800a30c: 40023000 .word 0x40023000 800a310: 40021000 .word 0x40021000 0800a314 <_write>: #if defined(__GNUC__) int _write(int fd, char * ptr, int len) { 800a314: b580 push {r7, lr} 800a316: b084 sub sp, #16 800a318: af00 add r7, sp, #0 800a31a: 60f8 str r0, [r7, #12] 800a31c: 60b9 str r1, [r7, #8] 800a31e: 607a str r2, [r7, #4] debug_buffer_add((const uint8_t*)ptr, len); 800a320: 687b ldr r3, [r7, #4] 800a322: b29b uxth r3, r3 800a324: 4619 mov r1, r3 800a326: 68b8 ldr r0, [r7, #8] 800a328: f000 f806 bl 800a338 return len; 800a32c: 687b ldr r3, [r7, #4] } 800a32e: 4618 mov r0, r3 800a330: 3710 adds r7, #16 800a332: 46bd mov sp, r7 800a334: bd80 pop {r7, pc} ... 0800a338 : #endif // Добавляет данные в кольцевой буфер void debug_buffer_add(const uint8_t* data, uint16_t len) { 800a338: b480 push {r7} 800a33a: b085 sub sp, #20 800a33c: af00 add r7, sp, #0 800a33e: 6078 str r0, [r7, #4] 800a340: 460b mov r3, r1 800a342: 807b strh r3, [r7, #2] \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"); 800a344: b672 cpsid i } 800a346: bf00 nop __disable_irq(); for (uint16_t i = 0; i < len; i++) { 800a348: 2300 movs r3, #0 800a34a: 81fb strh r3, [r7, #14] 800a34c: e045 b.n 800a3da // Если буфер полон, перезаписываем старые данные if (debug_buffer.count >= DEBUG_BUFFER_SIZE) { 800a34e: 4b28 ldr r3, [pc, #160] @ (800a3f0 ) 800a350: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a354: b29b uxth r3, r3 800a356: f5b3 6f80 cmp.w r3, #1024 @ 0x400 800a35a: d318 bcc.n 800a38e debug_buffer.read_index = (debug_buffer.read_index + 1) % DEBUG_BUFFER_SIZE; 800a35c: 4b24 ldr r3, [pc, #144] @ (800a3f0 ) 800a35e: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a362: b29b uxth r3, r3 800a364: 3301 adds r3, #1 800a366: 425a negs r2, r3 800a368: f3c3 0309 ubfx r3, r3, #0, #10 800a36c: f3c2 0209 ubfx r2, r2, #0, #10 800a370: bf58 it pl 800a372: 4253 negpl r3, r2 800a374: b29a uxth r2, r3 800a376: 4b1e ldr r3, [pc, #120] @ (800a3f0 ) 800a378: f8a3 2402 strh.w r2, [r3, #1026] @ 0x402 debug_buffer.count--; 800a37c: 4b1c ldr r3, [pc, #112] @ (800a3f0 ) 800a37e: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a382: b29b uxth r3, r3 800a384: 3b01 subs r3, #1 800a386: b29a uxth r2, r3 800a388: 4b19 ldr r3, [pc, #100] @ (800a3f0 ) 800a38a: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 } debug_buffer.buffer[debug_buffer.write_index] = data[i]; 800a38e: 89fb ldrh r3, [r7, #14] 800a390: 687a ldr r2, [r7, #4] 800a392: 4413 add r3, r2 800a394: 4a16 ldr r2, [pc, #88] @ (800a3f0 ) 800a396: f8b2 2400 ldrh.w r2, [r2, #1024] @ 0x400 800a39a: b292 uxth r2, r2 800a39c: 7819 ldrb r1, [r3, #0] 800a39e: 4b14 ldr r3, [pc, #80] @ (800a3f0 ) 800a3a0: 5499 strb r1, [r3, r2] debug_buffer.write_index = (debug_buffer.write_index + 1) % DEBUG_BUFFER_SIZE; 800a3a2: 4b13 ldr r3, [pc, #76] @ (800a3f0 ) 800a3a4: f8b3 3400 ldrh.w r3, [r3, #1024] @ 0x400 800a3a8: b29b uxth r3, r3 800a3aa: 3301 adds r3, #1 800a3ac: 425a negs r2, r3 800a3ae: f3c3 0309 ubfx r3, r3, #0, #10 800a3b2: f3c2 0209 ubfx r2, r2, #0, #10 800a3b6: bf58 it pl 800a3b8: 4253 negpl r3, r2 800a3ba: b29a uxth r2, r3 800a3bc: 4b0c ldr r3, [pc, #48] @ (800a3f0 ) 800a3be: f8a3 2400 strh.w r2, [r3, #1024] @ 0x400 debug_buffer.count++; 800a3c2: 4b0b ldr r3, [pc, #44] @ (800a3f0 ) 800a3c4: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a3c8: b29b uxth r3, r3 800a3ca: 3301 adds r3, #1 800a3cc: b29a uxth r2, r3 800a3ce: 4b08 ldr r3, [pc, #32] @ (800a3f0 ) 800a3d0: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 for (uint16_t i = 0; i < len; i++) { 800a3d4: 89fb ldrh r3, [r7, #14] 800a3d6: 3301 adds r3, #1 800a3d8: 81fb strh r3, [r7, #14] 800a3da: 89fa ldrh r2, [r7, #14] 800a3dc: 887b ldrh r3, [r7, #2] 800a3de: 429a cmp r2, r3 800a3e0: d3b5 bcc.n 800a34e __ASM volatile ("cpsie i" : : : "memory"); 800a3e2: b662 cpsie i } 800a3e4: bf00 nop } __enable_irq(); } 800a3e6: bf00 nop 800a3e8: 3714 adds r7, #20 800a3ea: 46bd mov sp, r7 800a3ec: bc80 pop {r7} 800a3ee: 4770 bx lr 800a3f0: 200003e4 .word 0x200003e4 0800a3f4 : // Возвращает количество доступных данных в буфере uint16_t debug_buffer_available(void) { 800a3f4: b480 push {r7} 800a3f6: b083 sub sp, #12 800a3f8: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800a3fa: b672 cpsid i } 800a3fc: bf00 nop __disable_irq(); uint16_t count = debug_buffer.count; 800a3fe: 4b06 ldr r3, [pc, #24] @ (800a418 ) 800a400: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a404: 80fb strh r3, [r7, #6] __ASM volatile ("cpsie i" : : : "memory"); 800a406: b662 cpsie i } 800a408: bf00 nop __enable_irq(); return count; 800a40a: 88fb ldrh r3, [r7, #6] } 800a40c: 4618 mov r0, r3 800a40e: 370c adds r7, #12 800a410: 46bd mov sp, r7 800a412: bc80 pop {r7} 800a414: 4770 bx lr 800a416: bf00 nop 800a418: 200003e4 .word 0x200003e4 0800a41c : // Отправляет один пакет данных из буфера через SC_SendPacket (не более 250 байт) void debug_buffer_send(void) { 800a41c: b580 push {r7, lr} 800a41e: b082 sub sp, #8 800a420: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800a422: b672 cpsid i } 800a424: bf00 nop __disable_irq(); // Если буфер пуст, ничего не делаем if (debug_buffer.count == 0) { 800a426: 4b2d ldr r3, [pc, #180] @ (800a4dc ) 800a428: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a42c: b29b uxth r3, r3 800a42e: 2b00 cmp r3, #0 800a430: d102 bne.n 800a438 __ASM volatile ("cpsie i" : : : "memory"); 800a432: b662 cpsie i } 800a434: bf00 nop __enable_irq(); return; 800a436: e04e b.n 800a4d6 } // Определяем сколько байт можно отправить (не более 250) uint16_t bytes_to_send = debug_buffer.count; 800a438: 4b28 ldr r3, [pc, #160] @ (800a4dc ) 800a43a: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a43e: 80fb strh r3, [r7, #6] if (bytes_to_send > DEBUG_BUFFER_MAX_COUNT) { 800a440: 88fb ldrh r3, [r7, #6] 800a442: 2b80 cmp r3, #128 @ 0x80 800a444: d901 bls.n 800a44a bytes_to_send = DEBUG_BUFFER_MAX_COUNT; 800a446: 2380 movs r3, #128 @ 0x80 800a448: 80fb strh r3, [r7, #6] } // Вычисляем сколько байт до конца буфера uint16_t bytes_to_end = DEBUG_BUFFER_SIZE - debug_buffer.read_index; 800a44a: 4b24 ldr r3, [pc, #144] @ (800a4dc ) 800a44c: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a450: b29b uxth r3, r3 800a452: f5c3 6380 rsb r3, r3, #1024 @ 0x400 800a456: 80bb strh r3, [r7, #4] // Отправляем только непрерывный блок (до конца буфера или до bytes_to_send) if (bytes_to_send > bytes_to_end) { 800a458: 88fa ldrh r2, [r7, #6] 800a45a: 88bb ldrh r3, [r7, #4] 800a45c: 429a cmp r2, r3 800a45e: d901 bls.n 800a464 bytes_to_send = bytes_to_end; 800a460: 88bb ldrh r3, [r7, #4] 800a462: 80fb strh r3, [r7, #6] } // Отправляем данные напрямую из буфера if(bytes_to_send == debug_buffer.count){ 800a464: 4b1d ldr r3, [pc, #116] @ (800a4dc ) 800a466: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a46a: b29b uxth r3, r3 800a46c: 88fa ldrh r2, [r7, #6] 800a46e: 429a cmp r2, r3 800a470: d10c bne.n 800a48c SC_SendPacket(&debug_buffer.buffer[debug_buffer.read_index], bytes_to_send, CMD_GET_LOG); 800a472: 4b1a ldr r3, [pc, #104] @ (800a4dc ) 800a474: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a478: b29b uxth r3, r3 800a47a: 461a mov r2, r3 800a47c: 4b17 ldr r3, [pc, #92] @ (800a4dc ) 800a47e: 4413 add r3, r2 800a480: 88f9 ldrh r1, [r7, #6] 800a482: 2250 movs r2, #80 @ 0x50 800a484: 4618 mov r0, r3 800a486: f002 fbb5 bl 800cbf4 800a48a: e00b b.n 800a4a4 }else{ SC_SendPacket(&debug_buffer.buffer[debug_buffer.read_index], bytes_to_send, CMD_GET_LOG_CONTINUE); 800a48c: 4b13 ldr r3, [pc, #76] @ (800a4dc ) 800a48e: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a492: b29b uxth r3, r3 800a494: 461a mov r2, r3 800a496: 4b11 ldr r3, [pc, #68] @ (800a4dc ) 800a498: 4413 add r3, r2 800a49a: 88f9 ldrh r1, [r7, #6] 800a49c: 2251 movs r2, #81 @ 0x51 800a49e: 4618 mov r0, r3 800a4a0: f002 fba8 bl 800cbf4 } debug_buffer.read_index = (debug_buffer.read_index + bytes_to_send) % DEBUG_BUFFER_SIZE; 800a4a4: 4b0d ldr r3, [pc, #52] @ (800a4dc ) 800a4a6: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a4aa: b29a uxth r2, r3 800a4ac: 88fb ldrh r3, [r7, #6] 800a4ae: 4413 add r3, r2 800a4b0: b29b uxth r3, r3 800a4b2: f3c3 0309 ubfx r3, r3, #0, #10 800a4b6: b29a uxth r2, r3 800a4b8: 4b08 ldr r3, [pc, #32] @ (800a4dc ) 800a4ba: f8a3 2402 strh.w r2, [r3, #1026] @ 0x402 debug_buffer.count -= bytes_to_send; 800a4be: 4b07 ldr r3, [pc, #28] @ (800a4dc ) 800a4c0: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a4c4: b29a uxth r2, r3 800a4c6: 88fb ldrh r3, [r7, #6] 800a4c8: 1ad3 subs r3, r2, r3 800a4ca: b29a uxth r2, r3 800a4cc: 4b03 ldr r3, [pc, #12] @ (800a4dc ) 800a4ce: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 __ASM volatile ("cpsie i" : : : "memory"); 800a4d2: b662 cpsie i } 800a4d4: bf00 nop __enable_irq(); } 800a4d6: 3708 adds r7, #8 800a4d8: 46bd mov sp, r7 800a4da: bd80 pop {r7, pc} 800a4dc: 200003e4 .word 0x200003e4 0800a4e0 : #define LOG_BUFFER_SIZE 128 uint8_t log_buffer[LOG_BUFFER_SIZE]; // Кастомный printf с приоритетом лога int log_printf(LogLevel_t level, const char *format, ...) { 800a4e0: b40e push {r1, r2, r3} 800a4e2: b580 push {r7, lr} 800a4e4: b085 sub sp, #20 800a4e6: af00 add r7, sp, #0 800a4e8: 4603 mov r3, r0 800a4ea: 71fb strb r3, [r7, #7] va_list args; int result; // Добавляем приоритет первым байтом log_buffer[0] = (uint8_t)level; 800a4ec: 4a15 ldr r2, [pc, #84] @ (800a544 ) 800a4ee: 79fb ldrb r3, [r7, #7] 800a4f0: 7013 strb r3, [r2, #0] // Форматируем строку начиная со второго байта va_start(args, format); 800a4f2: f107 0320 add.w r3, r7, #32 800a4f6: 60bb str r3, [r7, #8] result = vsnprintf((char*)&log_buffer[1], LOG_BUFFER_SIZE - 2, format, args); 800a4f8: 68bb ldr r3, [r7, #8] 800a4fa: 69fa ldr r2, [r7, #28] 800a4fc: 217e movs r1, #126 @ 0x7e 800a4fe: 4812 ldr r0, [pc, #72] @ (800a548 ) 800a500: f00a f8ec bl 80146dc 800a504: 60f8 str r0, [r7, #12] va_end(args); // Проверяем, не переполнился ли буфер if (result < 0) { 800a506: 68fb ldr r3, [r7, #12] 800a508: 2b00 cmp r3, #0 800a50a: da01 bge.n 800a510 return result; 800a50c: 68fb ldr r3, [r7, #12] 800a50e: e012 b.n 800a536 } // Ограничиваем размер, чтобы оставить место для нуль-терминатора if (result >= (LOG_BUFFER_SIZE - 2)) { 800a510: 68fb ldr r3, [r7, #12] 800a512: 2b7d cmp r3, #125 @ 0x7d 800a514: dd01 ble.n 800a51a result = LOG_BUFFER_SIZE - 2; 800a516: 237e movs r3, #126 @ 0x7e 800a518: 60fb str r3, [r7, #12] } // Добавляем нуль-терминатор в конец log_buffer[result + 1] = '\0'; 800a51a: 68fb ldr r3, [r7, #12] 800a51c: 3301 adds r3, #1 800a51e: 4a09 ldr r2, [pc, #36] @ (800a544 ) 800a520: 2100 movs r1, #0 800a522: 54d1 strb r1, [r2, r3] // Отправляем в буфер (приоритет + строка + нуль-терминатор) debug_buffer_add(log_buffer, result + 2); 800a524: 68fb ldr r3, [r7, #12] 800a526: b29b uxth r3, r3 800a528: 3302 adds r3, #2 800a52a: b29b uxth r3, r3 800a52c: 4619 mov r1, r3 800a52e: 4805 ldr r0, [pc, #20] @ (800a544 ) 800a530: f7ff ff02 bl 800a338 return result; 800a534: 68fb ldr r3, [r7, #12] } 800a536: 4618 mov r0, r3 800a538: 3714 adds r7, #20 800a53a: 46bd mov sp, r7 800a53c: e8bd 4080 ldmia.w sp!, {r7, lr} 800a540: b003 add sp, #12 800a542: 4770 bx lr 800a544: 200007ec .word 0x200007ec 800a548: 200007ed .word 0x200007ed 0800a54c : /** * Enable DMA controller clock */ void MX_DMA_Init(void) { 800a54c: b580 push {r7, lr} 800a54e: b082 sub sp, #8 800a550: af00 add r7, sp, #0 /* DMA controller clock enable */ __HAL_RCC_DMA1_CLK_ENABLE(); 800a552: 4b0c ldr r3, [pc, #48] @ (800a584 ) 800a554: 695b ldr r3, [r3, #20] 800a556: 4a0b ldr r2, [pc, #44] @ (800a584 ) 800a558: f043 0301 orr.w r3, r3, #1 800a55c: 6153 str r3, [r2, #20] 800a55e: 4b09 ldr r3, [pc, #36] @ (800a584 ) 800a560: 695b ldr r3, [r3, #20] 800a562: f003 0301 and.w r3, r3, #1 800a566: 607b str r3, [r7, #4] 800a568: 687b ldr r3, [r7, #4] /* DMA interrupt init */ /* DMA1_Channel1_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0); 800a56a: 2200 movs r2, #0 800a56c: 2100 movs r1, #0 800a56e: 200b movs r0, #11 800a570: f005 fa9d bl 800faae HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn); 800a574: 200b movs r0, #11 800a576: f005 fab6 bl 800fae6 } 800a57a: bf00 nop 800a57c: 3708 adds r7, #8 800a57e: 46bd mov sp, r7 800a580: bd80 pop {r7, pc} 800a582: bf00 nop 800a584: 40021000 .word 0x40021000 0800a588 : * EXTI PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA */ void MX_GPIO_Init(void) { 800a588: b580 push {r7, lr} 800a58a: b08a sub sp, #40 @ 0x28 800a58c: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; 800a58e: f107 0314 add.w r3, r7, #20 800a592: 2200 movs r2, #0 800a594: 601a str r2, [r3, #0] 800a596: 605a str r2, [r3, #4] 800a598: 609a str r2, [r3, #8] 800a59a: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); 800a59c: 4b93 ldr r3, [pc, #588] @ (800a7ec ) 800a59e: 699b ldr r3, [r3, #24] 800a5a0: 4a92 ldr r2, [pc, #584] @ (800a7ec ) 800a5a2: f043 0310 orr.w r3, r3, #16 800a5a6: 6193 str r3, [r2, #24] 800a5a8: 4b90 ldr r3, [pc, #576] @ (800a7ec ) 800a5aa: 699b ldr r3, [r3, #24] 800a5ac: f003 0310 and.w r3, r3, #16 800a5b0: 613b str r3, [r7, #16] 800a5b2: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); 800a5b4: 4b8d ldr r3, [pc, #564] @ (800a7ec ) 800a5b6: 699b ldr r3, [r3, #24] 800a5b8: 4a8c ldr r2, [pc, #560] @ (800a7ec ) 800a5ba: f043 0304 orr.w r3, r3, #4 800a5be: 6193 str r3, [r2, #24] 800a5c0: 4b8a ldr r3, [pc, #552] @ (800a7ec ) 800a5c2: 699b ldr r3, [r3, #24] 800a5c4: f003 0304 and.w r3, r3, #4 800a5c8: 60fb str r3, [r7, #12] 800a5ca: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOB_CLK_ENABLE(); 800a5cc: 4b87 ldr r3, [pc, #540] @ (800a7ec ) 800a5ce: 699b ldr r3, [r3, #24] 800a5d0: 4a86 ldr r2, [pc, #536] @ (800a7ec ) 800a5d2: f043 0308 orr.w r3, r3, #8 800a5d6: 6193 str r3, [r2, #24] 800a5d8: 4b84 ldr r3, [pc, #528] @ (800a7ec ) 800a5da: 699b ldr r3, [r3, #24] 800a5dc: f003 0308 and.w r3, r3, #8 800a5e0: 60bb str r3, [r7, #8] 800a5e2: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOE_CLK_ENABLE(); 800a5e4: 4b81 ldr r3, [pc, #516] @ (800a7ec ) 800a5e6: 699b ldr r3, [r3, #24] 800a5e8: 4a80 ldr r2, [pc, #512] @ (800a7ec ) 800a5ea: f043 0340 orr.w r3, r3, #64 @ 0x40 800a5ee: 6193 str r3, [r2, #24] 800a5f0: 4b7e ldr r3, [pc, #504] @ (800a7ec ) 800a5f2: 699b ldr r3, [r3, #24] 800a5f4: f003 0340 and.w r3, r3, #64 @ 0x40 800a5f8: 607b str r3, [r7, #4] 800a5fa: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOD_CLK_ENABLE(); 800a5fc: 4b7b ldr r3, [pc, #492] @ (800a7ec ) 800a5fe: 699b ldr r3, [r3, #24] 800a600: 4a7a ldr r2, [pc, #488] @ (800a7ec ) 800a602: f043 0320 orr.w r3, r3, #32 800a606: 6193 str r3, [r2, #24] 800a608: 4b78 ldr r3, [pc, #480] @ (800a7ec ) 800a60a: 699b ldr r3, [r3, #24] 800a60c: f003 0320 and.w r3, r3, #32 800a610: 603b str r3, [r7, #0] 800a612: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOC, DBG1_Pin|RELAY_CP_Pin|LOCK_A_Pin|LOCK_B_Pin, GPIO_PIN_RESET); 800a614: 2200 movs r2, #0 800a616: 213c movs r1, #60 @ 0x3c 800a618: 4875 ldr r0, [pc, #468] @ (800a7f0 ) 800a61a: f006 f984 bl 8010926 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, DBG2_Pin|DBG3_Pin|RELAY_CC_Pin, GPIO_PIN_RESET); 800a61e: 2200 movs r2, #0 800a620: f248 0160 movw r1, #32864 @ 0x8060 800a624: 4873 ldr r0, [pc, #460] @ (800a7f4 ) 800a626: f006 f97e bl 8010926 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOE, RELAY1_Pin|RELAY2_Pin|RELAY3_Pin|RELAY4_Pin 800a62a: 2200 movs r2, #0 800a62c: f44f 51f8 mov.w r1, #7936 @ 0x1f00 800a630: 4871 ldr r0, [pc, #452] @ (800a7f8 ) 800a632: f006 f978 bl 8010926 |RELAY5_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, DBG5_Pin|DBG4_Pin|EE_WP_Pin, GPIO_PIN_RESET); 800a636: 2200 movs r2, #0 800a638: f44f 6148 mov.w r1, #3200 @ 0xc80 800a63c: 486f ldr r0, [pc, #444] @ (800a7fc ) 800a63e: f006 f972 bl 8010926 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOD, RELAY_DC_Pin|USART2_DIR_Pin, GPIO_PIN_RESET); 800a642: 2200 movs r2, #0 800a644: 2118 movs r1, #24 800a646: 486e ldr r0, [pc, #440] @ (800a800 ) 800a648: f006 f96d bl 8010926 /*Configure GPIO pin : DBG1_Pin */ GPIO_InitStruct.Pin = DBG1_Pin; 800a64c: 2304 movs r3, #4 800a64e: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a650: 2301 movs r3, #1 800a652: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a654: 2300 movs r3, #0 800a656: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a658: 2303 movs r3, #3 800a65a: 623b str r3, [r7, #32] HAL_GPIO_Init(DBG1_GPIO_Port, &GPIO_InitStruct); 800a65c: f107 0314 add.w r3, r7, #20 800a660: 4619 mov r1, r3 800a662: 4863 ldr r0, [pc, #396] @ (800a7f0 ) 800a664: f005 ff08 bl 8010478 /*Configure GPIO pins : RELAY_CP_Pin LOCK_A_Pin LOCK_B_Pin */ GPIO_InitStruct.Pin = RELAY_CP_Pin|LOCK_A_Pin|LOCK_B_Pin; 800a668: 2338 movs r3, #56 @ 0x38 800a66a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a66c: 2301 movs r3, #1 800a66e: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a670: 2300 movs r3, #0 800a672: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a674: 2302 movs r3, #2 800a676: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800a678: f107 0314 add.w r3, r7, #20 800a67c: 4619 mov r1, r3 800a67e: 485c ldr r0, [pc, #368] @ (800a7f0 ) 800a680: f005 fefa bl 8010478 /*Configure GPIO pin : IN_SW0_Pin */ GPIO_InitStruct.Pin = IN_SW0_Pin; 800a684: 2302 movs r3, #2 800a686: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a688: 2300 movs r3, #0 800a68a: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a68c: 2300 movs r3, #0 800a68e: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_SW0_GPIO_Port, &GPIO_InitStruct); 800a690: f107 0314 add.w r3, r7, #20 800a694: 4619 mov r1, r3 800a696: 4857 ldr r0, [pc, #348] @ (800a7f4 ) 800a698: f005 feee bl 8010478 /*Configure GPIO pin : IN_SW1_Pin */ GPIO_InitStruct.Pin = IN_SW1_Pin; 800a69c: 2304 movs r3, #4 800a69e: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a6a0: 2300 movs r3, #0 800a6a2: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_PULLDOWN; 800a6a4: 2302 movs r3, #2 800a6a6: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_SW1_GPIO_Port, &GPIO_InitStruct); 800a6a8: f107 0314 add.w r3, r7, #20 800a6ac: 4619 mov r1, r3 800a6ae: 4851 ldr r0, [pc, #324] @ (800a7f4 ) 800a6b0: f005 fee2 bl 8010478 /*Configure GPIO pins : DBG2_Pin DBG3_Pin */ GPIO_InitStruct.Pin = DBG2_Pin|DBG3_Pin; 800a6b4: 2360 movs r3, #96 @ 0x60 800a6b6: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a6b8: 2301 movs r3, #1 800a6ba: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6bc: 2300 movs r3, #0 800a6be: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a6c0: 2303 movs r3, #3 800a6c2: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800a6c4: f107 0314 add.w r3, r7, #20 800a6c8: 4619 mov r1, r3 800a6ca: 484a ldr r0, [pc, #296] @ (800a7f4 ) 800a6cc: f005 fed4 bl 8010478 /*Configure GPIO pins : IN0_Pin AC_OK_Pin ISO_IN_Pin */ GPIO_InitStruct.Pin = IN0_Pin|AC_OK_Pin|ISO_IN_Pin; 800a6d0: f244 0382 movw r3, #16514 @ 0x4082 800a6d4: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a6d6: 2300 movs r3, #0 800a6d8: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6da: 2300 movs r3, #0 800a6dc: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 800a6de: f107 0314 add.w r3, r7, #20 800a6e2: 4619 mov r1, r3 800a6e4: 4844 ldr r0, [pc, #272] @ (800a7f8 ) 800a6e6: f005 fec7 bl 8010478 /*Configure GPIO pins : RELAY1_Pin RELAY2_Pin RELAY3_Pin RELAY4_Pin RELAY5_Pin */ GPIO_InitStruct.Pin = RELAY1_Pin|RELAY2_Pin|RELAY3_Pin|RELAY4_Pin 800a6ea: f44f 53f8 mov.w r3, #7936 @ 0x1f00 800a6ee: 617b str r3, [r7, #20] |RELAY5_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a6f0: 2301 movs r3, #1 800a6f2: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6f4: 2300 movs r3, #0 800a6f6: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a6f8: 2302 movs r3, #2 800a6fa: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 800a6fc: f107 0314 add.w r3, r7, #20 800a700: 4619 mov r1, r3 800a702: 483d ldr r0, [pc, #244] @ (800a7f8 ) 800a704: f005 feb8 bl 8010478 /*Configure GPIO pins : DBG5_Pin DBG4_Pin */ GPIO_InitStruct.Pin = DBG5_Pin|DBG4_Pin; 800a708: f44f 6340 mov.w r3, #3072 @ 0xc00 800a70c: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a70e: 2301 movs r3, #1 800a710: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a712: 2300 movs r3, #0 800a714: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a716: 2303 movs r3, #3 800a718: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a71a: f107 0314 add.w r3, r7, #20 800a71e: 4619 mov r1, r3 800a720: 4836 ldr r0, [pc, #216] @ (800a7fc ) 800a722: f005 fea9 bl 8010478 /*Configure GPIO pin : RELAY_CC_Pin */ GPIO_InitStruct.Pin = RELAY_CC_Pin; 800a726: f44f 4300 mov.w r3, #32768 @ 0x8000 800a72a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a72c: 2301 movs r3, #1 800a72e: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a730: 2300 movs r3, #0 800a732: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a734: 2302 movs r3, #2 800a736: 623b str r3, [r7, #32] HAL_GPIO_Init(RELAY_CC_GPIO_Port, &GPIO_InitStruct); 800a738: f107 0314 add.w r3, r7, #20 800a73c: 4619 mov r1, r3 800a73e: 482d ldr r0, [pc, #180] @ (800a7f4 ) 800a740: f005 fe9a bl 8010478 /*Configure GPIO pins : RELAY_DC_Pin USART2_DIR_Pin */ GPIO_InitStruct.Pin = RELAY_DC_Pin|USART2_DIR_Pin; 800a744: 2318 movs r3, #24 800a746: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a748: 2301 movs r3, #1 800a74a: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a74c: 2300 movs r3, #0 800a74e: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a750: 2302 movs r3, #2 800a752: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800a754: f107 0314 add.w r3, r7, #20 800a758: 4619 mov r1, r3 800a75a: 4829 ldr r0, [pc, #164] @ (800a800 ) 800a75c: f005 fe8c bl 8010478 /*Configure GPIO pin : IN_ESTOP_Pin */ GPIO_InitStruct.Pin = IN_ESTOP_Pin; 800a760: 2380 movs r3, #128 @ 0x80 800a762: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a764: 2300 movs r3, #0 800a766: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a768: 2300 movs r3, #0 800a76a: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_ESTOP_GPIO_Port, &GPIO_InitStruct); 800a76c: f107 0314 add.w r3, r7, #20 800a770: 4619 mov r1, r3 800a772: 4823 ldr r0, [pc, #140] @ (800a800 ) 800a774: f005 fe80 bl 8010478 /*Configure GPIO pins : IN_FB2_Pin IN_FB1_Pin */ GPIO_InitStruct.Pin = IN_FB2_Pin|IN_FB1_Pin; 800a778: 2318 movs r3, #24 800a77a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a77c: 2300 movs r3, #0 800a77e: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a780: 2300 movs r3, #0 800a782: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a784: f107 0314 add.w r3, r7, #20 800a788: 4619 mov r1, r3 800a78a: 481c ldr r0, [pc, #112] @ (800a7fc ) 800a78c: f005 fe74 bl 8010478 /*Configure GPIO pin : EE_WP_Pin */ GPIO_InitStruct.Pin = EE_WP_Pin; 800a790: 2380 movs r3, #128 @ 0x80 800a792: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a794: 2301 movs r3, #1 800a796: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a798: 2300 movs r3, #0 800a79a: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a79c: 2302 movs r3, #2 800a79e: 623b str r3, [r7, #32] HAL_GPIO_Init(EE_WP_GPIO_Port, &GPIO_InitStruct); 800a7a0: f107 0314 add.w r3, r7, #20 800a7a4: 4619 mov r1, r3 800a7a6: 4815 ldr r0, [pc, #84] @ (800a7fc ) 800a7a8: f005 fe66 bl 8010478 /*Configure GPIO pins : PB8 PB9 */ GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9; 800a7ac: f44f 7340 mov.w r3, #768 @ 0x300 800a7b0: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; 800a7b2: 2312 movs r3, #18 800a7b4: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a7b6: 2303 movs r3, #3 800a7b8: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a7ba: f107 0314 add.w r3, r7, #20 800a7be: 4619 mov r1, r3 800a7c0: 480e ldr r0, [pc, #56] @ (800a7fc ) 800a7c2: f005 fe59 bl 8010478 /*Configure peripheral I/O remapping */ __HAL_AFIO_REMAP_I2C1_ENABLE(); 800a7c6: 4b0f ldr r3, [pc, #60] @ (800a804 ) 800a7c8: 685b ldr r3, [r3, #4] 800a7ca: 627b str r3, [r7, #36] @ 0x24 800a7cc: 6a7b ldr r3, [r7, #36] @ 0x24 800a7ce: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800a7d2: 627b str r3, [r7, #36] @ 0x24 800a7d4: 6a7b ldr r3, [r7, #36] @ 0x24 800a7d6: f043 0302 orr.w r3, r3, #2 800a7da: 627b str r3, [r7, #36] @ 0x24 800a7dc: 4a09 ldr r2, [pc, #36] @ (800a804 ) 800a7de: 6a7b ldr r3, [r7, #36] @ 0x24 800a7e0: 6053 str r3, [r2, #4] } 800a7e2: bf00 nop 800a7e4: 3728 adds r7, #40 @ 0x28 800a7e6: 46bd mov sp, r7 800a7e8: bd80 pop {r7, pc} 800a7ea: bf00 nop 800a7ec: 40021000 .word 0x40021000 800a7f0: 40011000 .word 0x40011000 800a7f4: 40010800 .word 0x40010800 800a7f8: 40011800 .word 0x40011800 800a7fc: 40010c00 .word 0x40010c00 800a800: 40011400 .word 0x40011400 800a804: 40010000 .word 0x40010000 0800a808 <__NVIC_SystemReset>: /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { 800a808: b480 push {r7} 800a80a: af00 add r7, sp, #0 \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ __STATIC_FORCEINLINE void __DSB(void) { __ASM volatile ("dsb 0xF":::"memory"); 800a80c: f3bf 8f4f dsb sy } 800a810: bf00 nop __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | 800a812: 4b06 ldr r3, [pc, #24] @ (800a82c <__NVIC_SystemReset+0x24>) 800a814: 68db ldr r3, [r3, #12] 800a816: f403 62e0 and.w r2, r3, #1792 @ 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800a81a: 4904 ldr r1, [pc, #16] @ (800a82c <__NVIC_SystemReset+0x24>) 800a81c: 4b04 ldr r3, [pc, #16] @ (800a830 <__NVIC_SystemReset+0x28>) 800a81e: 4313 orrs r3, r2 800a820: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); 800a822: f3bf 8f4f dsb sy } 800a826: bf00 nop SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); 800a828: bf00 nop 800a82a: e7fd b.n 800a828 <__NVIC_SystemReset+0x20> 800a82c: e000ed00 .word 0xe000ed00 800a830: 05fa0004 .word 0x05fa0004 0800a834 : * bootloader before starting this program. Unfortunately, function * SystemInit() overwrites this change again. * @return none. */ static void VectorBase_Config(void) { 800a834: b480 push {r7} 800a836: af00 add r7, sp, #0 * c-startup code. */ extern const unsigned long g_pfnVectors[]; /* Remap the vector table to where the vector table is located for this program. */ SCB->VTOR = (unsigned long)&g_pfnVectors[0]; 800a838: 4b03 ldr r3, [pc, #12] @ (800a848 ) 800a83a: 4a04 ldr r2, [pc, #16] @ (800a84c ) 800a83c: 609a str r2, [r3, #8] } 800a83e: bf00 nop 800a840: 46bd mov sp, r7 800a842: bc80 pop {r7} 800a844: 4770 bx lr 800a846: bf00 nop 800a848: e000ed00 .word 0xe000ed00 800a84c: 08008000 .word 0x08008000 0800a850 : uint8_t ED_TraceWarning(uint8_t flag, uint8_t id){ 800a850: b480 push {r7} 800a852: b085 sub sp, #20 800a854: af00 add r7, sp, #0 800a856: 4603 mov r3, r0 800a858: 460a mov r2, r1 800a85a: 71fb strb r3, [r7, #7] 800a85c: 4613 mov r3, r2 800a85e: 71bb strb r3, [r7, #6] static uint8_t memory[32]; if(id > 31) return 0; 800a860: 79bb ldrb r3, [r7, #6] 800a862: 2b1f cmp r3, #31 800a864: d901 bls.n 800a86a 800a866: 2300 movs r3, #0 800a868: e00e b.n 800a888 uint8_t result = 0; 800a86a: 2300 movs r3, #0 800a86c: 73fb strb r3, [r7, #15] if(memory[id] != flag){ 800a86e: 79bb ldrb r3, [r7, #6] 800a870: 4a08 ldr r2, [pc, #32] @ (800a894 ) 800a872: 5cd3 ldrb r3, [r2, r3] 800a874: 79fa ldrb r2, [r7, #7] 800a876: 429a cmp r2, r3 800a878: d001 beq.n 800a87e result = 1; 800a87a: 2301 movs r3, #1 800a87c: 73fb strb r3, [r7, #15] } memory[id] = flag; 800a87e: 79bb ldrb r3, [r7, #6] 800a880: 4904 ldr r1, [pc, #16] @ (800a894 ) 800a882: 79fa ldrb r2, [r7, #7] 800a884: 54ca strb r2, [r1, r3] return result; 800a886: 7bfb ldrb r3, [r7, #15] } 800a888: 4618 mov r0, r3 800a88a: 3714 adds r7, #20 800a88c: 46bd mov sp, r7 800a88e: bc80 pop {r7} 800a890: 4770 bx lr 800a892: bf00 nop 800a894: 2000086c .word 0x2000086c 0800a898 : void ED_Delay(uint32_t Delay) { 800a898: b580 push {r7, lr} 800a89a: b084 sub sp, #16 800a89c: af00 add r7, sp, #0 800a89e: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 800a8a0: f003 fbc6 bl 800e030 800a8a4: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 800a8a6: 687b ldr r3, [r7, #4] 800a8a8: 60fb str r3, [r7, #12] if (wait < HAL_MAX_DELAY) 800a8aa: 68fb ldr r3, [r7, #12] 800a8ac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 800a8b0: d012 beq.n 800a8d8 { wait += (uint32_t)(uwTickFreq); 800a8b2: 4b10 ldr r3, [pc, #64] @ (800a8f4 ) 800a8b4: 781b ldrb r3, [r3, #0] 800a8b6: 461a mov r2, r3 800a8b8: 68fb ldr r3, [r7, #12] 800a8ba: 4413 add r3, r2 800a8bc: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait){ 800a8be: e00b b.n 800a8d8 CCS_SerialLoop(); 800a8c0: f001 f9fc bl 800bcbc StopButtonControl(); 800a8c4: f000 f818 bl 800a8f8 CP_Loop(); 800a8c8: f7ff fca8 bl 800a21c CONN_Task(); 800a8cc: f7ff fad8 bl 8009e80 LED_Task(); 800a8d0: f001 f814 bl 800b8fc SC_Task(); 800a8d4: f002 f80a bl 800c8ec while ((HAL_GetTick() - tickstart) < wait){ 800a8d8: f003 fbaa bl 800e030 800a8dc: 4602 mov r2, r0 800a8de: 68bb ldr r3, [r7, #8] 800a8e0: 1ad3 subs r3, r2, r3 800a8e2: 68fa ldr r2, [r7, #12] 800a8e4: 429a cmp r2, r3 800a8e6: d8eb bhi.n 800a8c0 } } 800a8e8: bf00 nop 800a8ea: bf00 nop 800a8ec: 3710 adds r7, #16 800a8ee: 46bd mov sp, r7 800a8f0: bd80 pop {r7, pc} 800a8f2: bf00 nop 800a8f4: 2000008c .word 0x2000008c 0800a8f8 : void StopButtonControl(){ 800a8f8: b580 push {r7, lr} 800a8fa: b082 sub sp, #8 800a8fc: af00 add r7, sp, #0 static uint32_t tick; static uint32_t hold_time; static uint8_t stop_btn_fault = 1; uint32_t now = HAL_GetTick(); 800a8fe: f003 fb97 bl 800e030 800a902: 6078 str r0, [r7, #4] /* Run no faster than once per 10 ms. */ if((now - tick) < 10){ 800a904: 4b2a ldr r3, [pc, #168] @ (800a9b0 ) 800a906: 681b ldr r3, [r3, #0] 800a908: 687a ldr r2, [r7, #4] 800a90a: 1ad3 subs r3, r2, r3 800a90c: 2b09 cmp r3, #9 800a90e: d949 bls.n 800a9a4 return; } tick = now; 800a910: 4a27 ldr r2, [pc, #156] @ (800a9b0 ) 800a912: 687b ldr r3, [r7, #4] 800a914: 6013 str r3, [r2, #0] uint8_t pressed = !IN_ReadInput(IN_ESTOP); 800a916: 2003 movs r0, #3 800a918: f7fe ffce bl 80098b8 800a91c: 4603 mov r3, r0 800a91e: 2b00 cmp r3, #0 800a920: bf0c ite eq 800a922: 2301 moveq r3, #1 800a924: 2300 movne r3, #0 800a926: b2db uxtb r3, r3 800a928: 70fb strb r3, [r7, #3] if(!pressed){ 800a92a: 78fb ldrb r3, [r7, #3] 800a92c: 2b00 cmp r3, #0 800a92e: d102 bne.n 800a936 stop_btn_fault = 0; 800a930: 4b20 ldr r3, [pc, #128] @ (800a9b4 ) 800a932: 2200 movs r2, #0 800a934: 701a strb r2, [r3, #0] } if(stop_btn_fault){ 800a936: 4b1f ldr r3, [pc, #124] @ (800a9b4 ) 800a938: 781b ldrb r3, [r3, #0] 800a93a: 2b00 cmp r3, #0 800a93c: d134 bne.n 800a9a8 return; } if(pressed){ 800a93e: 78fb ldrb r3, [r7, #3] 800a940: 2b00 cmp r3, #0 800a942: d02b beq.n 800a99c if(hold_time == 0){ 800a944: 4b1c ldr r3, [pc, #112] @ (800a9b8 ) 800a946: 681b ldr r3, [r3, #0] 800a948: 2b00 cmp r3, #0 800a94a: d102 bne.n 800a952 CONN.connControl = CMD_STOP; 800a94c: 4b1b ldr r3, [pc, #108] @ (800a9bc ) 800a94e: 2201 movs r2, #1 800a950: 701a strb r2, [r3, #0] } hold_time += 10; 800a952: 4b19 ldr r3, [pc, #100] @ (800a9b8 ) 800a954: 681b ldr r3, [r3, #0] 800a956: 330a adds r3, #10 800a958: 4a17 ldr r2, [pc, #92] @ (800a9b8 ) 800a95a: 6013 str r3, [r2, #0] if(hold_time == 5000){ 800a95c: 4b16 ldr r3, [pc, #88] @ (800a9b8 ) 800a95e: 681b ldr r3, [r3, #0] 800a960: f241 3288 movw r2, #5000 @ 0x1388 800a964: 4293 cmp r3, r2 800a966: d102 bne.n 800a96e CONN.connControl = CMD_FORCE_UNLOCK; 800a968: 4b14 ldr r3, [pc, #80] @ (800a9bc ) 800a96a: 2203 movs r2, #3 800a96c: 701a strb r2, [r3, #0] } if(hold_time > 40000){ 800a96e: 4b12 ldr r3, [pc, #72] @ (800a9b8 ) 800a970: 681b ldr r3, [r3, #0] 800a972: f649 4240 movw r2, #40000 @ 0x9c40 800a976: 4293 cmp r3, r2 800a978: d917 bls.n 800a9aa SC_SendPacket(NULL, 0, RESP_SUCCESS); 800a97a: 2212 movs r2, #18 800a97c: 2100 movs r1, #0 800a97e: 2000 movs r0, #0 800a980: f002 f938 bl 800cbf4 while(huart2.gState == HAL_UART_STATE_BUSY_TX); 800a984: bf00 nop 800a986: 4b0e ldr r3, [pc, #56] @ (800a9c0 ) 800a988: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800a98c: b2db uxtb r3, r3 800a98e: 2b21 cmp r3, #33 @ 0x21 800a990: d0f9 beq.n 800a986 HAL_Delay(10); 800a992: 200a movs r0, #10 800a994: f003 fb56 bl 800e044 NVIC_SystemReset(); 800a998: f7ff ff36 bl 800a808 <__NVIC_SystemReset> } } else{ hold_time = 0; 800a99c: 4b06 ldr r3, [pc, #24] @ (800a9b8 ) 800a99e: 2200 movs r2, #0 800a9a0: 601a str r2, [r3, #0] 800a9a2: e002 b.n 800a9aa return; 800a9a4: bf00 nop 800a9a6: e000 b.n 800a9aa return; 800a9a8: bf00 nop } } 800a9aa: 3708 adds r7, #8 800a9ac: 46bd mov sp, r7 800a9ae: bd80 pop {r7, pc} 800a9b0: 2000088c .word 0x2000088c 800a9b4: 20000008 .word 0x20000008 800a9b8: 20000890 .word 0x20000890 800a9bc: 200003b0 .word 0x200003b0 800a9c0: 200011e4 .word 0x200011e4 0800a9c4 : uint8_t temp0, temp1; static void CAN1_MinimalReInit(void) { 800a9c4: b580 push {r7, lr} 800a9c6: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan1); 800a9c8: 480b ldr r0, [pc, #44] @ (800a9f8 ) 800a9ca: f004 fabf bl 800ef4c MX_CAN1_Init(); 800a9ce: f7ff f8b7 bl 8009b40 if (HAL_CAN_Start(&hcan1) != HAL_OK) { 800a9d2: 4809 ldr r0, [pc, #36] @ (800a9f8 ) 800a9d4: f004 fa76 bl 800eec4 800a9d8: 4603 mov r3, r0 800a9da: 2b00 cmp r3, #0 800a9dc: d001 beq.n 800a9e2 Error_Handler(); 800a9de: f000 f8f7 bl 800abd0 } if (HAL_CAN_ActivateNotification(&hcan1, CAN_IT_RX_FIFO0_MSG_PENDING) != HAL_OK) { 800a9e2: 2102 movs r1, #2 800a9e4: 4804 ldr r0, [pc, #16] @ (800a9f8 ) 800a9e6: f004 fd1e bl 800f426 800a9ea: 4603 mov r3, r0 800a9ec: 2b00 cmp r3, #0 800a9ee: d001 beq.n 800a9f4 Error_Handler(); 800a9f0: f000 f8ee bl 800abd0 } } 800a9f4: bf00 nop 800a9f6: bd80 pop {r7, pc} 800a9f8: 2000035c .word 0x2000035c 0800a9fc
: /** * @brief The application entry point. * @retval int */ int main(void) { 800a9fc: b580 push {r7, lr} 800a9fe: b082 sub sp, #8 800aa00: af02 add r7, sp, #8 /* USER CODE BEGIN 1 */ VectorBase_Config(); 800aa02: f7ff ff17 bl 800a834 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); 800aa06: f003 fabb bl 800df80 /* USER CODE BEGIN Init */ HAL_RCC_DeInit(); 800aa0a: f005 ffb1 bl 8010970 /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); 800aa0e: f000 f86f bl 800aaf0 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); 800aa12: f7ff fdb9 bl 800a588 MX_DMA_Init(); 800aa16: f7ff fd99 bl 800a54c MX_ADC1_Init(); 800aa1a: f7fe fdbd bl 8009598 MX_CAN1_Init(); 800aa1e: f7ff f88f bl 8009b40 MX_CAN2_Init(); 800aa22: f7ff f8c3 bl 8009bac MX_RTC_Init(); 800aa26: f001 f807 bl 800ba38 MX_TIM4_Init(); 800aa2a: f002 fefb bl 800d824 MX_USART2_UART_Init(); 800aa2e: f003 f879 bl 800db24 MX_CRC_Init(); 800aa32: f7ff fc3d bl 800a2b0 MX_UART5_Init(); 800aa36: f003 f821 bl 800da7c MX_USART1_UART_Init(); 800aa3a: f003 f849 bl 800dad0 MX_USART3_UART_Init(); 800aa3e: f003 f89b bl 800db78 MX_TIM3_Init(); 800aa42: f002 fe61 bl 800d708 /* USER CODE BEGIN 2 */ Init_Peripheral(); 800aa46: f7fe ff89 bl 800995c LED_Init(); 800aa4a: f000 ff37 bl 800b8bc HAL_Delay(300); 800aa4e: f44f 7096 mov.w r0, #300 @ 0x12c 800aa52: f003 faf7 bl 800e044 CCS_Init(); 800aa56: f001 fbd5 bl 800c204 SC_Init(); 800aa5a: f001 ff1b bl 800c894 log_printf(LOG_INFO, "CCS module start\n"); 800aa5e: 491f ldr r1, [pc, #124] @ (800aadc ) 800aa60: 2007 movs r0, #7 800aa62: f7ff fd3d bl 800a4e0 ReadVersion(); 800aa66: f001 fef1 bl 800c84c log_printf(LOG_INFO, "Serial number: %d\n", infoPacket.serialNumber); 800aa6a: 4b1d ldr r3, [pc, #116] @ (800aae0 ) 800aa6c: 881b ldrh r3, [r3, #0] 800aa6e: b29b uxth r3, r3 800aa70: 461a mov r2, r3 800aa72: 491c ldr r1, [pc, #112] @ (800aae4 ) 800aa74: 2007 movs r0, #7 800aa76: f7ff fd33 bl 800a4e0 log_printf(LOG_INFO, "Board revision: %d\n", infoPacket.boardVersion); 800aa7a: 4b19 ldr r3, [pc, #100] @ (800aae0 ) 800aa7c: 789b ldrb r3, [r3, #2] 800aa7e: 461a mov r2, r3 800aa80: 4919 ldr r1, [pc, #100] @ (800aae8 ) 800aa82: 2007 movs r0, #7 800aa84: f7ff fd2c bl 800a4e0 log_printf(LOG_INFO, "FW version: %d.%d.%d\n", infoPacket.fw_version_major, infoPacket.fw_version_minor, infoPacket.fw_version_patch); 800aa88: 4b15 ldr r3, [pc, #84] @ (800aae0 ) 800aa8a: 889b ldrh r3, [r3, #4] 800aa8c: b29b uxth r3, r3 800aa8e: 461a mov r2, r3 800aa90: 4b13 ldr r3, [pc, #76] @ (800aae0 ) 800aa92: 88db ldrh r3, [r3, #6] 800aa94: b29b uxth r3, r3 800aa96: 4619 mov r1, r3 800aa98: 4b11 ldr r3, [pc, #68] @ (800aae0 ) 800aa9a: 891b ldrh r3, [r3, #8] 800aa9c: b29b uxth r3, r3 800aa9e: 9300 str r3, [sp, #0] 800aaa0: 460b mov r3, r1 800aaa2: 4912 ldr r1, [pc, #72] @ (800aaec ) 800aaa4: 2007 movs r0, #7 800aaa6: f7ff fd1b bl 800a4e0 CAN1_MinimalReInit(); 800aaaa: f7ff ff8b bl 800a9c4 PSU_Init(); 800aaae: f000 f9e9 bl 800ae84 CONN_Init(); 800aab2: f7ff f98f bl 8009dd4 /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ PSU_ReadWrite(); 800aab6: f000 faf7 bl 800b0a8 PSU_Task(); 800aaba: f000 fbbb bl 800b234 ED_Delay(10); 800aabe: 200a movs r0, #10 800aac0: f7ff feea bl 800a898 METER_CalculateEnergy(); 800aac4: f000 f88a bl 800abdc CONN_Loop(); 800aac8: f7ff f99a bl 8009e00 LED_Write(); 800aacc: f000 fda8 bl 800b620 ED_Delay(10); 800aad0: 200a movs r0, #10 800aad2: f7ff fee1 bl 800a898 { 800aad6: bf00 nop 800aad8: e7ed b.n 800aab6 800aada: bf00 nop 800aadc: 08016b94 .word 0x08016b94 800aae0: 200010b4 .word 0x200010b4 800aae4: 08016ba8 .word 0x08016ba8 800aae8: 08016bbc .word 0x08016bbc 800aaec: 08016bd0 .word 0x08016bd0 0800aaf0 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { 800aaf0: b580 push {r7, lr} 800aaf2: b09c sub sp, #112 @ 0x70 800aaf4: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; 800aaf6: f107 0338 add.w r3, r7, #56 @ 0x38 800aafa: 2238 movs r2, #56 @ 0x38 800aafc: 2100 movs r1, #0 800aafe: 4618 mov r0, r3 800ab00: f009 fe2a bl 8014758 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 800ab04: f107 0324 add.w r3, r7, #36 @ 0x24 800ab08: 2200 movs r2, #0 800ab0a: 601a str r2, [r3, #0] 800ab0c: 605a str r2, [r3, #4] 800ab0e: 609a str r2, [r3, #8] 800ab10: 60da str r2, [r3, #12] 800ab12: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; 800ab14: 1d3b adds r3, r7, #4 800ab16: 2220 movs r2, #32 800ab18: 2100 movs r1, #0 800ab1a: 4618 mov r0, r3 800ab1c: f009 fe1c bl 8014758 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE|RCC_OSCILLATORTYPE_LSE; 800ab20: 2305 movs r3, #5 800ab22: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.HSEState = RCC_HSE_ON; 800ab24: f44f 3380 mov.w r3, #65536 @ 0x10000 800ab28: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV5; 800ab2a: 2304 movs r3, #4 800ab2c: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.LSEState = RCC_LSE_ON; 800ab2e: 2301 movs r3, #1 800ab30: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.HSIState = RCC_HSI_ON; 800ab32: 2301 movs r3, #1 800ab34: 64fb str r3, [r7, #76] @ 0x4c RCC_OscInitStruct.Prediv1Source = RCC_PREDIV1_SOURCE_PLL2; 800ab36: f44f 3380 mov.w r3, #65536 @ 0x10000 800ab3a: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; 800ab3c: 2302 movs r3, #2 800ab3e: 65bb str r3, [r7, #88] @ 0x58 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; 800ab40: f44f 3380 mov.w r3, #65536 @ 0x10000 800ab44: 65fb str r3, [r7, #92] @ 0x5c RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; 800ab46: f44f 13e0 mov.w r3, #1835008 @ 0x1c0000 800ab4a: 663b str r3, [r7, #96] @ 0x60 RCC_OscInitStruct.PLL2.PLL2State = RCC_PLL2_ON; 800ab4c: 2302 movs r3, #2 800ab4e: 667b str r3, [r7, #100] @ 0x64 RCC_OscInitStruct.PLL2.PLL2MUL = RCC_PLL2_MUL8; 800ab50: f44f 63c0 mov.w r3, #1536 @ 0x600 800ab54: 66bb str r3, [r7, #104] @ 0x68 RCC_OscInitStruct.PLL2.HSEPrediv2Value = RCC_HSE_PREDIV2_DIV5; 800ab56: 2340 movs r3, #64 @ 0x40 800ab58: 66fb str r3, [r7, #108] @ 0x6c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800ab5a: f107 0338 add.w r3, r7, #56 @ 0x38 800ab5e: 4618 mov r0, r3 800ab60: f005 ffd6 bl 8010b10 800ab64: 4603 mov r3, r0 800ab66: 2b00 cmp r3, #0 800ab68: d001 beq.n 800ab6e { Error_Handler(); 800ab6a: f000 f831 bl 800abd0 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK 800ab6e: 230f movs r3, #15 800ab70: 627b str r3, [r7, #36] @ 0x24 |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; 800ab72: 2302 movs r3, #2 800ab74: 62bb str r3, [r7, #40] @ 0x28 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; 800ab76: 2300 movs r3, #0 800ab78: 62fb str r3, [r7, #44] @ 0x2c RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; 800ab7a: f44f 6380 mov.w r3, #1024 @ 0x400 800ab7e: 633b str r3, [r7, #48] @ 0x30 RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; 800ab80: 2300 movs r3, #0 800ab82: 637b str r3, [r7, #52] @ 0x34 if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) 800ab84: f107 0324 add.w r3, r7, #36 @ 0x24 800ab88: 2102 movs r1, #2 800ab8a: 4618 mov r0, r3 800ab8c: f006 fad6 bl 801113c 800ab90: 4603 mov r3, r0 800ab92: 2b00 cmp r3, #0 800ab94: d001 beq.n 800ab9a { Error_Handler(); 800ab96: f000 f81b bl 800abd0 } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_ADC; 800ab9a: 2303 movs r3, #3 800ab9c: 607b str r3, [r7, #4] PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE; 800ab9e: f44f 7380 mov.w r3, #256 @ 0x100 800aba2: 60bb str r3, [r7, #8] PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV6; 800aba4: f44f 4300 mov.w r3, #32768 @ 0x8000 800aba8: 60fb str r3, [r7, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) 800abaa: 1d3b adds r3, r7, #4 800abac: 4618 mov r0, r3 800abae: f006 fcbb bl 8011528 800abb2: 4603 mov r3, r0 800abb4: 2b00 cmp r3, #0 800abb6: d001 beq.n 800abbc { Error_Handler(); 800abb8: f000 f80a bl 800abd0 } /** Configure the Systick interrupt time */ __HAL_RCC_PLLI2S_ENABLE(); 800abbc: 4b03 ldr r3, [pc, #12] @ (800abcc ) 800abbe: 2201 movs r2, #1 800abc0: 601a str r2, [r3, #0] } 800abc2: bf00 nop 800abc4: 3770 adds r7, #112 @ 0x70 800abc6: 46bd mov sp, r7 800abc8: bd80 pop {r7, pc} 800abca: bf00 nop 800abcc: 42420070 .word 0x42420070 0800abd0 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { 800abd0: b480 push {r7} 800abd2: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800abd4: b672 cpsid i } 800abd6: 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) 800abd8: bf00 nop 800abda: e7fd b.n 800abd8 0800abdc : METER_t METER; // Функция для расчета и накопления энергии c дробной частью без счетчиков void METER_CalculateEnergy() { 800abdc: e92d 43b0 stmdb sp!, {r4, r5, r7, r8, r9, lr} 800abe0: b084 sub sp, #16 800abe2: af00 add r7, sp, #0 // Проверяем, что индекс находится в пределах массива METER.online = 0; 800abe4: 4b2e ldr r3, [pc, #184] @ (800aca0 ) 800abe6: 2200 movs r2, #0 800abe8: 711a strb r2, [r3, #4] if(CONN.connState == Charging){ 800abea: 4b2e ldr r3, [pc, #184] @ (800aca4 ) 800abec: 785b ldrb r3, [r3, #1] 800abee: 2b08 cmp r3, #8 800abf0: d104 bne.n 800abfc METER.enable = 1; 800abf2: 4b2b ldr r3, [pc, #172] @ (800aca0 ) 800abf4: 2201 movs r2, #1 800abf6: f883 2024 strb.w r2, [r3, #36] @ 0x24 800abfa: e003 b.n 800ac04 }else{ METER.enable = 0; 800abfc: 4b28 ldr r3, [pc, #160] @ (800aca0 ) 800abfe: 2200 movs r2, #0 800ac00: f883 2024 strb.w r2, [r3, #36] @ 0x24 } uint32_t currentTick = HAL_GetTick(); // Получаем текущее время в миллисекундах 800ac04: f003 fa14 bl 800e030 800ac08: 60f8 str r0, [r7, #12] uint32_t elapsedTimeMs = currentTick - METER.lastTick; // Вычисляем время, прошедшее с последнего вызова в секундах 800ac0a: 4b25 ldr r3, [pc, #148] @ (800aca0 ) 800ac0c: 689b ldr r3, [r3, #8] 800ac0e: 68fa ldr r2, [r7, #12] 800ac10: 1ad3 subs r3, r2, r3 800ac12: 60bb str r3, [r7, #8] METER.lastTick = currentTick; // Обновляем время последнего вызова для текущего коннектора 800ac14: 4a22 ldr r2, [pc, #136] @ (800aca0 ) 800ac16: 68fb ldr r3, [r7, #12] 800ac18: 6093 str r3, [r2, #8] uint32_t energyWs = CONN.Power * elapsedTimeMs / 1000; // Рассчитываем энергию в ватт-секундах за прошедший промежуток времени 800ac1a: 4b22 ldr r3, [pc, #136] @ (800aca4 ) 800ac1c: f8d3 3003 ldr.w r3, [r3, #3] 800ac20: 68ba ldr r2, [r7, #8] 800ac22: fb02 f303 mul.w r3, r2, r3 800ac26: 4a20 ldr r2, [pc, #128] @ (800aca8 ) 800ac28: fba2 2303 umull r2, r3, r2, r3 800ac2c: 099b lsrs r3, r3, #6 800ac2e: 607b str r3, [r7, #4] //Расчет энергии теперь идет всегда, смещение берем суммарное METER.EnergyPSU_Ws += energyWs; 800ac30: 4b1b ldr r3, [pc, #108] @ (800aca0 ) 800ac32: e9d3 2304 ldrd r2, r3, [r3, #16] 800ac36: 6879 ldr r1, [r7, #4] 800ac38: 2000 movs r0, #0 800ac3a: 460c mov r4, r1 800ac3c: 4605 mov r5, r0 800ac3e: eb12 0804 adds.w r8, r2, r4 800ac42: eb43 0905 adc.w r9, r3, r5 800ac46: 4b16 ldr r3, [pc, #88] @ (800aca0 ) 800ac48: e9c3 8904 strd r8, r9, [r3, #16] // Абсолютное значение энергии разъема складывается из накопленной дробной части и значения со счетчиков METER.AbsoluteEnergy = (uint32_t)METER.EnergyPSU_Ws/3600; //переводим в Вт*час 800ac4c: 4b14 ldr r3, [pc, #80] @ (800aca0 ) 800ac4e: e9d3 2304 ldrd r2, r3, [r3, #16] 800ac52: 4b16 ldr r3, [pc, #88] @ (800acac ) 800ac54: fba3 2302 umull r2, r3, r3, r2 800ac58: 0adb lsrs r3, r3, #11 800ac5a: 4a11 ldr r2, [pc, #68] @ (800aca0 ) 800ac5c: 6193 str r3, [r2, #24] if(METER.enable) { 800ac5e: 4b10 ldr r3, [pc, #64] @ (800aca0 ) 800ac60: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800ac64: 2b00 cmp r3, #0 800ac66: d008 beq.n 800ac7a //enabled state CONN.Energy = METER.AbsoluteEnergy - METER.EnergyOffset;//переводим в Вт*час 800ac68: 4b0d ldr r3, [pc, #52] @ (800aca0 ) 800ac6a: 699a ldr r2, [r3, #24] 800ac6c: 4b0c ldr r3, [pc, #48] @ (800aca0 ) 800ac6e: 69db ldr r3, [r3, #28] 800ac70: 1ad3 subs r3, r2, r3 800ac72: 4a0c ldr r2, [pc, #48] @ (800aca4 ) 800ac74: f8c2 3007 str.w r3, [r2, #7] METER.EnergyOffset = METER.AbsoluteEnergy; } } 800ac78: e00c b.n 800ac94 CONN.Energy = 0; 800ac7a: 4b0a ldr r3, [pc, #40] @ (800aca4 ) 800ac7c: 2200 movs r2, #0 800ac7e: 71da strb r2, [r3, #7] 800ac80: 2200 movs r2, #0 800ac82: 721a strb r2, [r3, #8] 800ac84: 2200 movs r2, #0 800ac86: 725a strb r2, [r3, #9] 800ac88: 2200 movs r2, #0 800ac8a: 729a strb r2, [r3, #10] METER.EnergyOffset = METER.AbsoluteEnergy; 800ac8c: 4b04 ldr r3, [pc, #16] @ (800aca0 ) 800ac8e: 699b ldr r3, [r3, #24] 800ac90: 4a03 ldr r2, [pc, #12] @ (800aca0 ) 800ac92: 61d3 str r3, [r2, #28] } 800ac94: bf00 nop 800ac96: 3710 adds r7, #16 800ac98: 46bd mov sp, r7 800ac9a: e8bd 83b0 ldmia.w sp!, {r4, r5, r7, r8, r9, pc} 800ac9e: bf00 nop 800aca0: 20000898 .word 0x20000898 800aca4: 200003b0 .word 0x200003b0 800aca8: 10624dd3 .word 0x10624dd3 800acac: 91a2b3c5 .word 0x91a2b3c5 0800acb0 : uint32_t can_lastpacket; extern CAN_HandleTypeDef hcan2; static void PSU_SwitchState(PSU_State_t state){ 800acb0: b580 push {r7, lr} 800acb2: b082 sub sp, #8 800acb4: af00 add r7, sp, #0 800acb6: 4603 mov r3, r0 800acb8: 71fb strb r3, [r7, #7] PSU0.state = state; 800acba: 4a06 ldr r2, [pc, #24] @ (800acd4 ) 800acbc: 79fb ldrb r3, [r7, #7] 800acbe: 71d3 strb r3, [r2, #7] PSU0.statetick = HAL_GetTick(); 800acc0: f003 f9b6 bl 800e030 800acc4: 4603 mov r3, r0 800acc6: 4a03 ldr r2, [pc, #12] @ (800acd4 ) 800acc8: 6113 str r3, [r2, #16] } 800acca: bf00 nop 800accc: 3708 adds r7, #8 800acce: 46bd mov sp, r7 800acd0: bd80 pop {r7, pc} 800acd2: bf00 nop 800acd4: 20000904 .word 0x20000904 0800acd8 : static uint32_t PSU_StateTime(void){ 800acd8: b580 push {r7, lr} 800acda: af00 add r7, sp, #0 return HAL_GetTick() - PSU0.statetick; 800acdc: f003 f9a8 bl 800e030 800ace0: 4602 mov r2, r0 800ace2: 4b02 ldr r3, [pc, #8] @ (800acec ) 800ace4: 691b ldr r3, [r3, #16] 800ace6: 1ad3 subs r3, r2, r3 } 800ace8: 4618 mov r0, r3 800acea: bd80 pop {r7, pc} 800acec: 20000904 .word 0x20000904 0800acf0 : ISR_FAST void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan){ 800acf0: b538 push {r3, r4, r5, lr} static CAN_RxHeaderTypeDef RxHeader; static uint8_t RxData[8] = {0,}; CanId_t CanId; if(HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO1, &RxHeader, RxData) == HAL_OK) 800acf2: 4c42 ldr r4, [pc, #264] @ (800adfc ) 800acf4: 4d42 ldr r5, [pc, #264] @ (800ae00 ) 800acf6: 4623 mov r3, r4 800acf8: 462a mov r2, r5 800acfa: 2101 movs r1, #1 800acfc: f004 fa72 bl 800f1e4 800ad00: b910 cbnz r0, 800ad08 { memcpy(&CanId, &RxHeader.ExtId, sizeof(CanId_t)); 800ad02: 686d ldr r5, [r5, #4] /* Для DC30 поддерживается только один силовой модуль (source == 0) */ if(CanId.source != 0) return; 800ad04: b2eb uxtb r3, r5 800ad06: b103 cbz r3, 800ad0a CONN.outputEnabled = PSU0.PSU_enabled; } } } } } 800ad08: bd38 pop {r3, r4, r5, pc} can_lastpacket = HAL_GetTick(); 800ad0a: f003 f991 bl 800e030 if(CanId.command==0x02){ 800ad0e: f3c5 4505 ubfx r5, r5, #16, #6 can_lastpacket = HAL_GetTick(); 800ad12: 4b3c ldr r3, [pc, #240] @ (800ae04 ) if(CanId.command==0x02){ 800ad14: 2d02 cmp r5, #2 can_lastpacket = HAL_GetTick(); 800ad16: 6018 str r0, [r3, #0] if(CanId.command==0x02){ 800ad18: d013 beq.n 800ad42 if(CanId.command==0x04){ 800ad1a: 2d04 cmp r5, #4 800ad1c: d117 bne.n 800ad4e memcpy(&PSU_04, RxData, 8); 800ad1e: e894 0003 ldmia.w r4, {r0, r1} 800ad22: 4b39 ldr r3, [pc, #228] @ (800ae08 ) PSU0.tempAmbient = PSU_04.moduleTemperature; 800ad24: 4a39 ldr r2, [pc, #228] @ (800ae0c ) memcpy(&PSU_04, RxData, 8); 800ad26: e883 0003 stmia.w r3, {r0, r1} PSU0.status0.raw = PSU_04.modularForm0; 800ad2a: 7a18 ldrb r0, [r3, #8] PSU0.tempAmbient = PSU_04.moduleTemperature; 800ad2c: 791c ldrb r4, [r3, #4] PSU0.status1.raw = PSU_04.modularForm1; 800ad2e: 79d9 ldrb r1, [r3, #7] PSU0.status2.raw = PSU_04.modularForm2; 800ad30: 799b ldrb r3, [r3, #6] PSU0.tempAmbient = PSU_04.moduleTemperature; 800ad32: 6214 str r4, [r2, #32] PSU0.status0.raw = PSU_04.modularForm0; 800ad34: f882 0024 strb.w r0, [r2, #36] @ 0x24 PSU0.status1.raw = PSU_04.modularForm1; 800ad38: f882 1025 strb.w r1, [r2, #37] @ 0x25 PSU0.status2.raw = PSU_04.modularForm2; 800ad3c: f882 3026 strb.w r3, [r2, #38] @ 0x26 } 800ad40: bd38 pop {r3, r4, r5, pc} memcpy(&PSU_02, RxData, 8); 800ad42: 4b33 ldr r3, [pc, #204] @ (800ae10 ) 800ad44: e894 0003 ldmia.w r4, {r0, r1} 800ad48: e883 0003 stmia.w r3, {r0, r1} } 800ad4c: bd38 pop {r3, r4, r5, pc} if(CanId.command==0x06){ 800ad4e: 2d06 cmp r5, #6 800ad50: d111 bne.n 800ad76 memcpy(&PSU_06, RxData, 8); 800ad52: e894 0003 ldmia.w r4, {r0, r1} 800ad56: 4b2f ldr r3, [pc, #188] @ (800ae14 ) 800ad58: e883 0003 stmia.w r3, {r0, r1} PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800ad5c: 8818 ldrh r0, [r3, #0] PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800ad5e: 8859 ldrh r1, [r3, #2] PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800ad60: 889a ldrh r2, [r3, #4] PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800ad62: ba40 rev16 r0, r0 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800ad64: ba49 rev16 r1, r1 PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800ad66: ba52 rev16 r2, r2 PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800ad68: b280 uxth r0, r0 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800ad6a: b289 uxth r1, r1 PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800ad6c: b292 uxth r2, r2 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800ad6e: e9c3 0102 strd r0, r1, [r3, #8] PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800ad72: 611a str r2, [r3, #16] } 800ad74: bd38 pop {r3, r4, r5, pc} if(CanId.command==0x08){ 800ad76: 2d08 cmp r5, #8 800ad78: d03a beq.n 800adf0 if(CanId.command==0x09){ 800ad7a: 2d09 cmp r5, #9 800ad7c: d1c4 bne.n 800ad08 memcpy(&PSU_09, RxData, 8); 800ad7e: e894 0003 ldmia.w r4, {r0, r1} PSU0.temperature = PSU_04.moduleTemperature; 800ad82: 4b21 ldr r3, [pc, #132] @ (800ae08 ) memcpy(&PSU_09, RxData, 8); 800ad84: 4d24 ldr r5, [pc, #144] @ (800ae18 ) PSU0.outputVoltage = v; 800ad86: 4c21 ldr r4, [pc, #132] @ (800ae0c ) PSU0.temperature = PSU_04.moduleTemperature; 800ad88: f893 c004 ldrb.w ip, [r3, #4] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ad8c: 4a23 ldr r2, [pc, #140] @ (800ae1c ) memcpy(&PSU_09, RxData, 8); 800ad8e: e885 0003 stmia.w r5, {r0, r1} PSU_09.moduleNCurrent = PSU_09.moduleNCurrent_[3]; 800ad92: ba00 rev r0, r0 PSU0.temperature = PSU_04.moduleTemperature; 800ad94: f884 c006 strb.w ip, [r4, #6] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ad98: fba2 c200 umull ip, r2, r2, r0 800ad9c: ba09 rev r1, r1 PSU_09.moduleNVoltage |= PSU_09.moduleNVoltage_[0]<<24; 800ad9e: e9c5 0102 strd r0, r1, [r5, #8] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ada2: f3c2 108f ubfx r0, r2, #6, #16 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ada6: 2813 cmp r0, #19 PSU0.online = 1; 800ada8: f04f 0e01 mov.w lr, #1 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800adac: bf94 ite ls 800adae: 2500 movls r5, #0 800adb0: 2501 movhi r5, #1 int16_t i = PSU_09.moduleNCurrent / 100; 800adb2: 4b1b ldr r3, [pc, #108] @ (800ae20 ) PSU0.online = 1; 800adb4: f884 e008 strb.w lr, [r4, #8] int16_t i = PSU_09.moduleNCurrent / 100; 800adb8: fba3 c301 umull ip, r3, r3, r1 if(PSU0.state >= PSU_READY){ 800adbc: 79e1 ldrb r1, [r4, #7] int16_t i = PSU_09.moduleNCurrent / 100; 800adbe: 095b lsrs r3, r3, #5 if(PSU0.state >= PSU_READY){ 800adc0: 4571 cmp r1, lr PSU0.outputVoltage = v; 800adc2: 8060 strh r0, [r4, #2] int16_t i = PSU_09.moduleNCurrent / 100; 800adc4: 80a3 strh r3, [r4, #4] uint16_t v = PSU_09.moduleNVoltage / 1000; 800adc6: ea4f 1292 mov.w r2, r2, lsr #6 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800adca: 72a5 strb r5, [r4, #10] if(PSU0.state >= PSU_READY){ 800adcc: d99c bls.n 800ad08 CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800adce: b299 uxth r1, r3 800add0: b292 uxth r2, r2 800add2: fb01 f202 mul.w r2, r1, r2 800add6: 4c13 ldr r4, [pc, #76] @ (800ae24 ) CONN.MeasuredVoltage = PSU0.outputVoltage; 800add8: 4913 ldr r1, [pc, #76] @ (800ae28 ) CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800adda: fba4 4202 umull r4, r2, r4, r2 CONN.MeasuredCurrent = PSU0.outputCurrent; 800adde: f8a1 3015 strh.w r3, [r1, #21] CONN.outputEnabled = PSU0.PSU_enabled; 800ade2: 760d strb r5, [r1, #24] CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ade4: 08d3 lsrs r3, r2, #3 CONN.MeasuredVoltage = PSU0.outputVoltage; 800ade6: f8a1 0013 strh.w r0, [r1, #19] CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800adea: f8c1 3003 str.w r3, [r1, #3] } 800adee: bd38 pop {r3, r4, r5, pc} memcpy(&PSU_08, RxData, 8); 800adf0: 4b0e ldr r3, [pc, #56] @ (800ae2c ) 800adf2: e894 0003 ldmia.w r4, {r0, r1} 800adf6: e883 0003 stmia.w r3, {r0, r1} } 800adfa: bd38 pop {r3, r4, r5, pc} 800adfc: 2000094c .word 0x2000094c 800ae00: 20000930 .word 0x20000930 800ae04: 2000092c .word 0x2000092c 800ae08: 200008cc .word 0x200008cc 800ae0c: 20000904 .word 0x20000904 800ae10: 200008c0 .word 0x200008c0 800ae14: 200008d8 .word 0x200008d8 800ae18: 200008f4 .word 0x200008f4 800ae1c: 10624dd3 .word 0x10624dd3 800ae20: 51eb851f .word 0x51eb851f 800ae24: cccccccd .word 0xcccccccd 800ae28: 200003b0 .word 0x200003b0 800ae2c: 200008ec .word 0x200008ec 0800ae30 : void PSU_CAN_FilterInit(){ 800ae30: b580 push {r7, lr} 800ae32: b08a sub sp, #40 @ 0x28 800ae34: af00 add r7, sp, #0 CAN_FilterTypeDef sFilterConfig; sFilterConfig.FilterBank = 14; 800ae36: 230e movs r3, #14 800ae38: 617b str r3, [r7, #20] sFilterConfig.FilterMode = CAN_FILTERMODE_IDMASK; 800ae3a: 2300 movs r3, #0 800ae3c: 61bb str r3, [r7, #24] sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT; 800ae3e: 2301 movs r3, #1 800ae40: 61fb str r3, [r7, #28] sFilterConfig.FilterIdHigh = 0x0000; 800ae42: 2300 movs r3, #0 800ae44: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = 0x0000; 800ae46: 2300 movs r3, #0 800ae48: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; 800ae4a: 2300 movs r3, #0 800ae4c: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = 0x0000; 800ae4e: 2300 movs r3, #0 800ae50: 60fb str r3, [r7, #12] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0; 800ae52: 2300 movs r3, #0 800ae54: 613b str r3, [r7, #16] sFilterConfig.FilterActivation = ENABLE; 800ae56: 2301 movs r3, #1 800ae58: 623b str r3, [r7, #32] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO1; 800ae5a: 2301 movs r3, #1 800ae5c: 613b str r3, [r7, #16] sFilterConfig.SlaveStartFilterBank = 14; 800ae5e: 230e movs r3, #14 800ae60: 627b str r3, [r7, #36] @ 0x24 if(HAL_CAN_ConfigFilter(&hcan2, &sFilterConfig) != HAL_OK) 800ae62: 463b mov r3, r7 800ae64: 4619 mov r1, r3 800ae66: 4806 ldr r0, [pc, #24] @ (800ae80 ) 800ae68: f003 ff4c bl 800ed04 800ae6c: 4603 mov r3, r0 800ae6e: 2b00 cmp r3, #0 800ae70: d001 beq.n 800ae76 { Error_Handler(); 800ae72: f7ff fead bl 800abd0 } } 800ae76: bf00 nop 800ae78: 3728 adds r7, #40 @ 0x28 800ae7a: 46bd mov sp, r7 800ae7c: bd80 pop {r7, pc} 800ae7e: bf00 nop 800ae80: 20000384 .word 0x20000384 0800ae84 : void PSU_Init(){ 800ae84: b580 push {r7, lr} 800ae86: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan2); 800ae88: 4815 ldr r0, [pc, #84] @ (800aee0 ) 800ae8a: f004 f85f bl 800ef4c MX_CAN2_Init(); 800ae8e: f7fe fe8d bl 8009bac PSU_CAN_FilterInit(); 800ae92: f7ff ffcd bl 800ae30 HAL_CAN_Start(&hcan2); 800ae96: 4812 ldr r0, [pc, #72] @ (800aee0 ) 800ae98: f004 f814 bl 800eec4 HAL_CAN_ActivateNotification(&hcan2, CAN_IT_RX_FIFO1_MSG_PENDING /* | CAN_IT_ERROR | CAN_IT_BUSOFF | CAN_IT_LAST_ERROR_CODE | CAN_IT_TX_MAILBOX_EMPTY*/); 800ae9c: 2110 movs r1, #16 800ae9e: 4810 ldr r0, [pc, #64] @ (800aee0 ) 800aea0: f004 fac1 bl 800f426 memset(&PSU0, 0, sizeof(PSU0)); 800aea4: 2228 movs r2, #40 @ 0x28 800aea6: 2100 movs r1, #0 800aea8: 480e ldr r0, [pc, #56] @ (800aee4 ) 800aeaa: f009 fc55 bl 8014758 PSU0.state = PSU_UNREADY; 800aeae: 4b0d ldr r3, [pc, #52] @ (800aee4 ) 800aeb0: 2200 movs r2, #0 800aeb2: 71da strb r2, [r3, #7] PSU0.statetick = HAL_GetTick(); 800aeb4: f003 f8bc bl 800e030 800aeb8: 4603 mov r3, r0 800aeba: 4a0a ldr r2, [pc, #40] @ (800aee4 ) 800aebc: 6113 str r3, [r2, #16] PSU0.power_limit = PSU_MAX_POWER; // kW 800aebe: 4b09 ldr r3, [pc, #36] @ (800aee4 ) 800aec0: f247 5230 movw r2, #30000 @ 0x7530 800aec4: 615a str r2, [r3, #20] PSU0.hv_mode = 0; 800aec6: 4b07 ldr r3, [pc, #28] @ (800aee4 ) 800aec8: 2200 movs r2, #0 800aeca: 761a strb r2, [r3, #24] PSU0.hv_tick = 0; 800aecc: 4b05 ldr r3, [pc, #20] @ (800aee4 ) 800aece: 2200 movs r2, #0 800aed0: 61da str r2, [r3, #28] PSU_Enable(0, 0); 800aed2: 2100 movs r1, #0 800aed4: 2000 movs r0, #0 800aed6: f000 f807 bl 800aee8 } 800aeda: bf00 nop 800aedc: bd80 pop {r7, pc} 800aede: bf00 nop 800aee0: 20000384 .word 0x20000384 800aee4: 20000904 .word 0x20000904 0800aee8 : void PSU_Enable(uint8_t addr, uint8_t enable){ 800aee8: b580 push {r7, lr} 800aeea: b084 sub sp, #16 800aeec: af00 add r7, sp, #0 800aeee: 4603 mov r3, r0 800aef0: 460a mov r2, r1 800aef2: 71fb strb r3, [r7, #7] 800aef4: 4613 mov r3, r2 800aef6: 71bb strb r3, [r7, #6] PSU_1A_t data; memset(&data, 0, sizeof(data)); 800aef8: f107 0308 add.w r3, r7, #8 800aefc: 2208 movs r2, #8 800aefe: 2100 movs r1, #0 800af00: 4618 mov r0, r3 800af02: f009 fc29 bl 8014758 /* Для DC30 поддерживается только один модуль с адресом 0 */ if(addr != 0) return; 800af06: 79fb ldrb r3, [r7, #7] 800af08: 2b00 cmp r3, #0 800af0a: d115 bne.n 800af38 if(PSU0.online == 0) return; 800af0c: 4b0d ldr r3, [pc, #52] @ (800af44 ) 800af0e: 7a1b ldrb r3, [r3, #8] 800af10: 2b00 cmp r3, #0 800af12: d013 beq.n 800af3c data.enable = !enable; 800af14: 79bb ldrb r3, [r7, #6] 800af16: 2b00 cmp r3, #0 800af18: bf0c ite eq 800af1a: 2301 moveq r3, #1 800af1c: 2300 movne r3, #0 800af1e: b2db uxtb r3, r3 800af20: 723b strb r3, [r7, #8] PSU_SendCmd(0xF0, addr, 0x1A, &data); 800af22: 79f9 ldrb r1, [r7, #7] 800af24: f107 0308 add.w r3, r7, #8 800af28: 221a movs r2, #26 800af2a: 20f0 movs r0, #240 @ 0xf0 800af2c: f000 f866 bl 800affc ED_Delay(CAN_DELAY); 800af30: 2014 movs r0, #20 800af32: f7ff fcb1 bl 800a898 800af36: e002 b.n 800af3e if(addr != 0) return; 800af38: bf00 nop 800af3a: e000 b.n 800af3e if(PSU0.online == 0) return; 800af3c: bf00 nop } 800af3e: 3710 adds r7, #16 800af40: 46bd mov sp, r7 800af42: bd80 pop {r7, pc} 800af44: 20000904 .word 0x20000904 0800af48 : memset(&data, 0, sizeof(data)); data.enable = !enable; if(addr != 0) return; PSU_SendCmd(0xF0, addr, 0x1D, &data); } void PSU_SetVoltageCurrent(uint8_t addr, uint16_t voltage, uint16_t current){ 800af48: b580 push {r7, lr} 800af4a: b086 sub sp, #24 800af4c: af00 add r7, sp, #0 800af4e: 4603 mov r3, r0 800af50: 71fb strb r3, [r7, #7] 800af52: 460b mov r3, r1 800af54: 80bb strh r3, [r7, #4] 800af56: 4613 mov r3, r2 800af58: 807b strh r3, [r7, #2] PSU_1C_t data; memset(&data, 0, sizeof(data)); 800af5a: f107 0308 add.w r3, r7, #8 800af5e: 2208 movs r2, #8 800af60: 2100 movs r1, #0 800af62: 4618 mov r0, r3 800af64: f009 fbf8 bl 8014758 if(addr != 0) return; 800af68: 79fb ldrb r3, [r7, #7] 800af6a: 2b00 cmp r3, #0 800af6c: d140 bne.n 800aff0 if(voltage 800af74: 2396 movs r3, #150 @ 0x96 800af76: 80bb strh r3, [r7, #4] if((PSU0.hv_mode==0) && voltage>499) voltage = 499; 800af78: 4b1f ldr r3, [pc, #124] @ (800aff8 ) 800af7a: 7e1b ldrb r3, [r3, #24] 800af7c: 2b00 cmp r3, #0 800af7e: d106 bne.n 800af8e 800af80: 88bb ldrh r3, [r7, #4] 800af82: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800af86: d302 bcc.n 800af8e 800af88: f240 13f3 movw r3, #499 @ 0x1f3 800af8c: 80bb strh r3, [r7, #4] uint32_t current_ma = current * 100; 800af8e: 887b ldrh r3, [r7, #2] 800af90: 2264 movs r2, #100 @ 0x64 800af92: fb02 f303 mul.w r3, r2, r3 800af96: 617b str r3, [r7, #20] uint32_t voltage_mv = voltage * 1000; 800af98: 88bb ldrh r3, [r7, #4] 800af9a: f44f 727a mov.w r2, #1000 @ 0x3e8 800af9e: fb02 f303 mul.w r3, r2, r3 800afa2: 613b str r3, [r7, #16] data.moduleCurrentTotal[0] = (current_ma >> 24) & 0xFF; 800afa4: 697b ldr r3, [r7, #20] 800afa6: 0e1b lsrs r3, r3, #24 800afa8: b2db uxtb r3, r3 800afaa: 733b strb r3, [r7, #12] data.moduleCurrentTotal[1] = (current_ma >> 16) & 0xFF; 800afac: 697b ldr r3, [r7, #20] 800afae: 0c1b lsrs r3, r3, #16 800afb0: b2db uxtb r3, r3 800afb2: 737b strb r3, [r7, #13] data.moduleCurrentTotal[2] = (current_ma >> 8) & 0xFF; 800afb4: 697b ldr r3, [r7, #20] 800afb6: 0a1b lsrs r3, r3, #8 800afb8: b2db uxtb r3, r3 800afba: 73bb strb r3, [r7, #14] data.moduleCurrentTotal[3] = (current_ma >> 0) & 0xFF; 800afbc: 697b ldr r3, [r7, #20] 800afbe: b2db uxtb r3, r3 800afc0: 73fb strb r3, [r7, #15] data.moduleVoltage[0] = (voltage_mv >> 24) & 0xFF; 800afc2: 693b ldr r3, [r7, #16] 800afc4: 0e1b lsrs r3, r3, #24 800afc6: b2db uxtb r3, r3 800afc8: 723b strb r3, [r7, #8] data.moduleVoltage[1] = (voltage_mv >> 16) & 0xFF; 800afca: 693b ldr r3, [r7, #16] 800afcc: 0c1b lsrs r3, r3, #16 800afce: b2db uxtb r3, r3 800afd0: 727b strb r3, [r7, #9] data.moduleVoltage[2] = (voltage_mv >> 8) & 0xFF; 800afd2: 693b ldr r3, [r7, #16] 800afd4: 0a1b lsrs r3, r3, #8 800afd6: b2db uxtb r3, r3 800afd8: 72bb strb r3, [r7, #10] data.moduleVoltage[3] = (voltage_mv >> 0) & 0xFF; 800afda: 693b ldr r3, [r7, #16] 800afdc: b2db uxtb r3, r3 800afde: 72fb strb r3, [r7, #11] PSU_SendCmd(0xF0, addr, 0x1C, &data); 800afe0: 79f9 ldrb r1, [r7, #7] 800afe2: f107 0308 add.w r3, r7, #8 800afe6: 221c movs r2, #28 800afe8: 20f0 movs r0, #240 @ 0xf0 800afea: f000 f807 bl 800affc 800afee: e000 b.n 800aff2 if(addr != 0) return; 800aff0: bf00 nop } 800aff2: 3718 adds r7, #24 800aff4: 46bd mov sp, r7 800aff6: bd80 pop {r7, pc} 800aff8: 20000904 .word 0x20000904 0800affc : void PSU_SendCmd(uint8_t source, uint8_t destination, uint8_t cmd, void *data){ 800affc: b580 push {r7, lr} 800affe: b08c sub sp, #48 @ 0x30 800b000: af00 add r7, sp, #0 800b002: 603b str r3, [r7, #0] 800b004: 4603 mov r3, r0 800b006: 71fb strb r3, [r7, #7] 800b008: 460b mov r3, r1 800b00a: 71bb strb r3, [r7, #6] 800b00c: 4613 mov r3, r2 800b00e: 717b strb r3, [r7, #5] CanId_t CanId; CanId.source = source; 800b010: 79fb ldrb r3, [r7, #7] 800b012: f887 3028 strb.w r3, [r7, #40] @ 0x28 CanId.destination = destination; 800b016: 79bb ldrb r3, [r7, #6] 800b018: f887 3029 strb.w r3, [r7, #41] @ 0x29 CanId.command = cmd; 800b01c: 797b ldrb r3, [r7, #5] 800b01e: f003 033f and.w r3, r3, #63 @ 0x3f 800b022: b2da uxtb r2, r3 800b024: f897 302a ldrb.w r3, [r7, #42] @ 0x2a 800b028: f362 0305 bfi r3, r2, #0, #6 800b02c: f887 302a strb.w r3, [r7, #42] @ 0x2a CanId.device = 0x0A; 800b030: 8d7b ldrh r3, [r7, #42] @ 0x2a 800b032: 220a movs r2, #10 800b034: f362 1389 bfi r3, r2, #6, #4 800b038: 857b strh r3, [r7, #42] @ 0x2a int8_t retry_counter = 10; 800b03a: 230a movs r3, #10 800b03c: f887 302f strb.w r3, [r7, #47] @ 0x2f CAN_TxHeaderTypeDef tx_header; uint32_t tx_mailbox; HAL_StatusTypeDef CAN_result; memcpy(&tx_header.ExtId, &CanId, sizeof(CanId_t)); 800b040: 6abb ldr r3, [r7, #40] @ 0x28 800b042: 617b str r3, [r7, #20] tx_header.RTR = CAN_RTR_DATA; 800b044: 2300 movs r3, #0 800b046: 61fb str r3, [r7, #28] tx_header.IDE = CAN_ID_EXT; 800b048: 2304 movs r3, #4 800b04a: 61bb str r3, [r7, #24] tx_header.DLC = 8; 800b04c: 2308 movs r3, #8 800b04e: 623b str r3, [r7, #32] while(retry_counter>0){ //если буфер полон, ждем пока он освободится 800b050: e01e b.n 800b090 if (HAL_CAN_GetTxMailboxesFreeLevel(&hcan2) > 0){ 800b052: 4814 ldr r0, [pc, #80] @ (800b0a4 ) 800b054: f004 f892 bl 800f17c 800b058: 4603 mov r3, r0 800b05a: 2b00 cmp r3, #0 800b05c: d00e beq.n 800b07c /* отправка сообщения */ CAN_result = HAL_CAN_AddTxMessage(&hcan2, &tx_header, (uint8_t*)data, &tx_mailbox); 800b05e: f107 030c add.w r3, r7, #12 800b062: f107 0110 add.w r1, r7, #16 800b066: 683a ldr r2, [r7, #0] 800b068: 480e ldr r0, [pc, #56] @ (800b0a4 ) 800b06a: f003 ffb8 bl 800efde 800b06e: 4603 mov r3, r0 800b070: f887 302e strb.w r3, [r7, #46] @ 0x2e /* если отправка удалась, выход */ if(CAN_result == HAL_OK) { 800b074: f897 302e ldrb.w r3, [r7, #46] @ 0x2e 800b078: 2b00 cmp r3, #0 800b07a: d00e beq.n 800b09a return; retry_counter = 0; } } ED_Delay(1); 800b07c: 2001 movs r0, #1 800b07e: f7ff fc0b bl 800a898 retry_counter--; 800b082: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f 800b086: b2db uxtb r3, r3 800b088: 3b01 subs r3, #1 800b08a: b2db uxtb r3, r3 800b08c: f887 302f strb.w r3, [r7, #47] @ 0x2f while(retry_counter>0){ //если буфер полон, ждем пока он освободится 800b090: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f 800b094: 2b00 cmp r3, #0 800b096: dcdc bgt.n 800b052 800b098: e000 b.n 800b09c return; 800b09a: bf00 nop } } 800b09c: 3730 adds r7, #48 @ 0x30 800b09e: 46bd mov sp, r7 800b0a0: bd80 pop {r7, pc} 800b0a2: bf00 nop 800b0a4: 20000384 .word 0x20000384 0800b0a8 : uint32_t max(uint32_t a, uint32_t b){ if(a>b) return a; else return b; } void PSU_ReadWrite(){ 800b0a8: b580 push {r7, lr} 800b0aa: b082 sub sp, #8 800b0ac: af00 add r7, sp, #0 uint8_t zero_data[8] = {0,0,0,0,0,0,0,0}; 800b0ae: 463b mov r3, r7 800b0b0: 2200 movs r2, #0 800b0b2: 601a str r2, [r3, #0] 800b0b4: 605a str r2, [r3, #4] PSU_SendCmd(0xF0, 0, 0x04, zero_data);ED_Delay(CAN_DELAY); 800b0b6: 463b mov r3, r7 800b0b8: 2204 movs r2, #4 800b0ba: 2100 movs r1, #0 800b0bc: 20f0 movs r0, #240 @ 0xf0 800b0be: f7ff ff9d bl 800affc 800b0c2: 2014 movs r0, #20 800b0c4: f7ff fbe8 bl 800a898 PSU_SendCmd(0xF0, 0, 0x06, zero_data);ED_Delay(CAN_DELAY); 800b0c8: 463b mov r3, r7 800b0ca: 2206 movs r2, #6 800b0cc: 2100 movs r1, #0 800b0ce: 20f0 movs r0, #240 @ 0xf0 800b0d0: f7ff ff94 bl 800affc 800b0d4: 2014 movs r0, #20 800b0d6: f7ff fbdf bl 800a898 // PSU_SendCmd(0xF0, 0, 0x08, zero_data);ED_Delay(CAN_DELAY); PSU_SendCmd(0xF0, 0, 0x09, zero_data);ED_Delay(CAN_DELAY); 800b0da: 463b mov r3, r7 800b0dc: 2209 movs r2, #9 800b0de: 2100 movs r1, #0 800b0e0: 20f0 movs r0, #240 @ 0xf0 800b0e2: f7ff ff8b bl 800affc 800b0e6: 2014 movs r0, #20 800b0e8: f7ff fbd6 bl 800a898 // Power Limit if ((CONN.WantedCurrent/10) * CONN.MeasuredVoltage > PSU0.power_limit){ 800b0ec: 4b4d ldr r3, [pc, #308] @ (800b224 ) 800b0ee: f8b3 301b ldrh.w r3, [r3, #27] 800b0f2: b29b uxth r3, r3 800b0f4: 4a4c ldr r2, [pc, #304] @ (800b228 ) 800b0f6: fba2 2303 umull r2, r3, r2, r3 800b0fa: 08db lsrs r3, r3, #3 800b0fc: b29b uxth r3, r3 800b0fe: 461a mov r2, r3 800b100: 4b48 ldr r3, [pc, #288] @ (800b224 ) 800b102: f8b3 3013 ldrh.w r3, [r3, #19] 800b106: b29b uxth r3, r3 800b108: fb02 f303 mul.w r3, r2, r3 800b10c: 461a mov r2, r3 800b10e: 4b47 ldr r3, [pc, #284] @ (800b22c ) 800b110: 695b ldr r3, [r3, #20] 800b112: 429a cmp r2, r3 800b114: d911 bls.n 800b13a CONN.RequestedCurrent = PSU0.power_limit * 10 / CONN.MeasuredVoltage; 800b116: 4b45 ldr r3, [pc, #276] @ (800b22c ) 800b118: 695a ldr r2, [r3, #20] 800b11a: 4613 mov r3, r2 800b11c: 009b lsls r3, r3, #2 800b11e: 4413 add r3, r2 800b120: 005b lsls r3, r3, #1 800b122: 461a mov r2, r3 800b124: 4b3f ldr r3, [pc, #252] @ (800b224 ) 800b126: f8b3 3013 ldrh.w r3, [r3, #19] 800b12a: b29b uxth r3, r3 800b12c: fbb2 f3f3 udiv r3, r2, r3 800b130: b29a uxth r2, r3 800b132: 4b3c ldr r3, [pc, #240] @ (800b224 ) 800b134: f8a3 2011 strh.w r2, [r3, #17] 800b138: e006 b.n 800b148 }else{ CONN.RequestedCurrent = CONN.WantedCurrent; 800b13a: 4b3a ldr r3, [pc, #232] @ (800b224 ) 800b13c: f8b3 301b ldrh.w r3, [r3, #27] 800b140: b29a uxth r2, r3 800b142: 4b38 ldr r3, [pc, #224] @ (800b224 ) 800b144: f8a3 2011 strh.w r2, [r3, #17] } if(CONN.RequestedCurrent > (PSU_MAX_CURRENT*10)){ 800b148: 4b36 ldr r3, [pc, #216] @ (800b224 ) 800b14a: f8b3 3011 ldrh.w r3, [r3, #17] 800b14e: b29b uxth r3, r3 800b150: f240 5232 movw r2, #1330 @ 0x532 800b154: 4293 cmp r3, r2 800b156: d908 bls.n 800b16a CONN.RequestedCurrent = PSU_MAX_CURRENT*10; 800b158: 4b32 ldr r3, [pc, #200] @ (800b224 ) 800b15a: 2200 movs r2, #0 800b15c: f042 0232 orr.w r2, r2, #50 @ 0x32 800b160: 745a strb r2, [r3, #17] 800b162: 2200 movs r2, #0 800b164: f042 0205 orr.w r2, r2, #5 800b168: 749a strb r2, [r3, #18] } CONN.RequestedPower = CONN.RequestedCurrent * CONN.RequestedVoltage / 10; 800b16a: 4b2e ldr r3, [pc, #184] @ (800b224 ) 800b16c: f8b3 3011 ldrh.w r3, [r3, #17] 800b170: b29b uxth r3, r3 800b172: 461a mov r2, r3 800b174: 4b2b ldr r3, [pc, #172] @ (800b224 ) 800b176: f8b3 300f ldrh.w r3, [r3, #15] 800b17a: b29b uxth r3, r3 800b17c: fb02 f303 mul.w r3, r2, r3 800b180: 4a2b ldr r2, [pc, #172] @ (800b230 ) 800b182: fb82 1203 smull r1, r2, r2, r3 800b186: 1092 asrs r2, r2, #2 800b188: 17db asrs r3, r3, #31 800b18a: 1ad3 subs r3, r2, r3 800b18c: 461a mov r2, r3 800b18e: 4b25 ldr r3, [pc, #148] @ (800b224 ) 800b190: f8c3 200b str.w r2, [r3, #11] if(PSU0.ready){ 800b194: 4b25 ldr r3, [pc, #148] @ (800b22c ) 800b196: 7a5b ldrb r3, [r3, #9] 800b198: 2b00 cmp r3, #0 800b19a: d03e beq.n 800b21a if (CONN.RequestedVoltage == 500) { // fake 800b19c: 4b21 ldr r3, [pc, #132] @ (800b224 ) 800b19e: f8b3 300f ldrh.w r3, [r3, #15] 800b1a2: b29b uxth r3, r3 800b1a4: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800b1a8: d106 bne.n 800b1b8 PSU_SetVoltageCurrent(0, 300, 10); // Normal mode 800b1aa: 220a movs r2, #10 800b1ac: f44f 7196 mov.w r1, #300 @ 0x12c 800b1b0: 2000 movs r0, #0 800b1b2: f7ff fec9 bl 800af48 800b1b6: e00b b.n 800b1d0 }else{ PSU_SetVoltageCurrent(0, CONN.RequestedVoltage, CONN.RequestedCurrent); // Normal mode 800b1b8: 4b1a ldr r3, [pc, #104] @ (800b224 ) 800b1ba: f8b3 300f ldrh.w r3, [r3, #15] 800b1be: b29b uxth r3, r3 800b1c0: 4a18 ldr r2, [pc, #96] @ (800b224 ) 800b1c2: f8b2 2011 ldrh.w r2, [r2, #17] 800b1c6: b292 uxth r2, r2 800b1c8: 4619 mov r1, r3 800b1ca: 2000 movs r0, #0 800b1cc: f7ff febc bl 800af48 } ED_Delay(CAN_DELAY); 800b1d0: 2014 movs r0, #20 800b1d2: f7ff fb61 bl 800a898 if(CONN.MeasuredVoltage > 490){ 800b1d6: 4b13 ldr r3, [pc, #76] @ (800b224 ) 800b1d8: f8b3 3013 ldrh.w r3, [r3, #19] 800b1dc: b29b uxth r3, r3 800b1de: f5b3 7ff5 cmp.w r3, #490 @ 0x1ea 800b1e2: d917 bls.n 800b214 if(PSU0.hv_tick == 0){ 800b1e4: 4b11 ldr r3, [pc, #68] @ (800b22c ) 800b1e6: 69db ldr r3, [r3, #28] 800b1e8: 2b00 cmp r3, #0 800b1ea: d105 bne.n 800b1f8 PSU0.hv_tick = HAL_GetTick(); 800b1ec: f002 ff20 bl 800e030 800b1f0: 4603 mov r3, r0 800b1f2: 4a0e ldr r2, [pc, #56] @ (800b22c ) 800b1f4: 61d3 str r3, [r2, #28] } // PSU_SetHVMode(0, PSU0.hv_mode); // auto set, no need // ED_Delay(CAN_DELAY); } 800b1f6: e010 b.n 800b21a }else if((HAL_GetTick() - PSU0.hv_tick) >= 10000){ 800b1f8: f002 ff1a bl 800e030 800b1fc: 4602 mov r2, r0 800b1fe: 4b0b ldr r3, [pc, #44] @ (800b22c ) 800b200: 69db ldr r3, [r3, #28] 800b202: 1ad3 subs r3, r2, r3 800b204: f242 720f movw r2, #9999 @ 0x270f 800b208: 4293 cmp r3, r2 800b20a: d906 bls.n 800b21a PSU0.hv_mode = 1; 800b20c: 4b07 ldr r3, [pc, #28] @ (800b22c ) 800b20e: 2201 movs r2, #1 800b210: 761a strb r2, [r3, #24] } 800b212: e002 b.n 800b21a PSU0.hv_tick = 0; 800b214: 4b05 ldr r3, [pc, #20] @ (800b22c ) 800b216: 2200 movs r2, #0 800b218: 61da str r2, [r3, #28] } 800b21a: bf00 nop 800b21c: 3708 adds r7, #8 800b21e: 46bd mov sp, r7 800b220: bd80 pop {r7, pc} 800b222: bf00 nop 800b224: 200003b0 .word 0x200003b0 800b228: cccccccd .word 0xcccccccd 800b22c: 20000904 .word 0x20000904 800b230: 66666667 .word 0x66666667 0800b234 : void PSU_Task(void){ 800b234: b598 push {r3, r4, r7, lr} 800b236: af00 add r7, sp, #0 static uint32_t psu_on_tick = 0; static uint32_t dc_on_tick = 0; static uint32_t cont_ok_tick = 0; // Обновляем ONLINE/READY по таймауту if((HAL_GetTick() - can_lastpacket) > PSU_ONLINE_TIMEOUT){ 800b238: f002 fefa bl 800e030 800b23c: 4602 mov r2, r0 800b23e: 4bb5 ldr r3, [pc, #724] @ (800b514 ) 800b240: 681b ldr r3, [r3, #0] 800b242: 1ad3 subs r3, r2, r3 800b244: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800b248: d920 bls.n 800b28c PSU0.online = 0; 800b24a: 4bb3 ldr r3, [pc, #716] @ (800b518 ) 800b24c: 2200 movs r2, #0 800b24e: 721a strb r2, [r3, #8] PSU0.PSU_enabled = 0; 800b250: 4bb1 ldr r3, [pc, #708] @ (800b518 ) 800b252: 2200 movs r2, #0 800b254: 729a strb r2, [r3, #10] PSU_04.moduleTemperature = 0; 800b256: 4bb1 ldr r3, [pc, #708] @ (800b51c ) 800b258: 2200 movs r2, #0 800b25a: 711a strb r2, [r3, #4] PSU_04.modularForm0 = 0; 800b25c: 4baf ldr r3, [pc, #700] @ (800b51c ) 800b25e: 2200 movs r2, #0 800b260: 721a strb r2, [r3, #8] PSU_04.modularForm1 = 0; 800b262: 4bae ldr r3, [pc, #696] @ (800b51c ) 800b264: 2200 movs r2, #0 800b266: 71da strb r2, [r3, #7] PSU_04.modularForm2 = 0; 800b268: 4bac ldr r3, [pc, #688] @ (800b51c ) 800b26a: 2200 movs r2, #0 800b26c: 719a strb r2, [r3, #6] PSU_06.VAB = 0; 800b26e: 4bac ldr r3, [pc, #688] @ (800b520 ) 800b270: 2200 movs r2, #0 800b272: 609a str r2, [r3, #8] PSU_06.VBC = 0; 800b274: 4baa ldr r3, [pc, #680] @ (800b520 ) 800b276: 2200 movs r2, #0 800b278: 60da str r2, [r3, #12] PSU_06.VCA = 0; 800b27a: 4ba9 ldr r3, [pc, #676] @ (800b520 ) 800b27c: 2200 movs r2, #0 800b27e: 611a str r2, [r3, #16] PSU_09.moduleNCurrent = 0; 800b280: 4ba8 ldr r3, [pc, #672] @ (800b524 ) 800b282: 2200 movs r2, #0 800b284: 60da str r2, [r3, #12] PSU_09.moduleNVoltage = 0; 800b286: 4ba7 ldr r3, [pc, #668] @ (800b524 ) 800b288: 2200 movs r2, #0 800b28a: 609a str r2, [r3, #8] } if(!PSU0.online || !PSU0.enableAC){ 800b28c: 4ba2 ldr r3, [pc, #648] @ (800b518 ) 800b28e: 7a1b ldrb r3, [r3, #8] 800b290: 2b00 cmp r3, #0 800b292: d003 beq.n 800b29c 800b294: 4ba0 ldr r3, [pc, #640] @ (800b518 ) 800b296: 781b ldrb r3, [r3, #0] 800b298: 2b00 cmp r3, #0 800b29a: d10c bne.n 800b2b6 CONN.MeasuredVoltage = 0; 800b29c: 4ba2 ldr r3, [pc, #648] @ (800b528 ) 800b29e: 2200 movs r2, #0 800b2a0: 74da strb r2, [r3, #19] 800b2a2: 2200 movs r2, #0 800b2a4: 751a strb r2, [r3, #20] CONN.MeasuredCurrent = 0; 800b2a6: 4ba0 ldr r3, [pc, #640] @ (800b528 ) 800b2a8: 2200 movs r2, #0 800b2aa: 755a strb r2, [r3, #21] 800b2ac: 2200 movs r2, #0 800b2ae: 759a strb r2, [r3, #22] CONN.outputEnabled = 0; 800b2b0: 4b9d ldr r3, [pc, #628] @ (800b528 ) 800b2b2: 2200 movs r2, #0 800b2b4: 761a strb r2, [r3, #24] } // Управление AC-контактором с задержкой отключения 1 минута if(CONN.EvConnected){ 800b2b6: 4b9c ldr r3, [pc, #624] @ (800b528 ) 800b2b8: 7f9b ldrb r3, [r3, #30] 800b2ba: 2b00 cmp r3, #0 800b2bc: d00c beq.n 800b2d8 RELAY_Write(RELAY_AC, 1); 800b2be: 2101 movs r1, #1 800b2c0: 2004 movs r0, #4 800b2c2: f7fe fa79 bl 80097b8 psu_on_tick = HAL_GetTick(); 800b2c6: f002 feb3 bl 800e030 800b2ca: 4603 mov r3, r0 800b2cc: 4a97 ldr r2, [pc, #604] @ (800b52c ) 800b2ce: 6013 str r3, [r2, #0] PSU0.enableAC = 1; 800b2d0: 4b91 ldr r3, [pc, #580] @ (800b518 ) 800b2d2: 2201 movs r2, #1 800b2d4: 701a strb r2, [r3, #0] 800b2d6: e010 b.n 800b2fa }else{ if((HAL_GetTick() - psu_on_tick) > 1 * 60000){ 800b2d8: f002 feaa bl 800e030 800b2dc: 4602 mov r2, r0 800b2de: 4b93 ldr r3, [pc, #588] @ (800b52c ) 800b2e0: 681b ldr r3, [r3, #0] 800b2e2: 1ad3 subs r3, r2, r3 800b2e4: f64e 2260 movw r2, #60000 @ 0xea60 800b2e8: 4293 cmp r3, r2 800b2ea: d906 bls.n 800b2fa RELAY_Write(RELAY_AC, 0); 800b2ec: 2100 movs r1, #0 800b2ee: 2004 movs r0, #4 800b2f0: f7fe fa62 bl 80097b8 PSU0.enableAC = 0; 800b2f4: 4b88 ldr r3, [pc, #544] @ (800b518 ) 800b2f6: 2200 movs r2, #0 800b2f8: 701a strb r2, [r3, #0] } } // Текущее состояние DC-контактора по обратной связи PSU0.CONT_enabled = IN_ReadInput(IN_CONT_FB_DC); 800b2fa: 2005 movs r0, #5 800b2fc: f7fe fadc bl 80098b8 800b300: 4603 mov r3, r0 800b302: 461a mov r2, r3 800b304: 4b84 ldr r3, [pc, #528] @ (800b518 ) 800b306: 72da strb r2, [r3, #11] // Обновляем ready с учётом ошибок if(PSU0.online && !PSU0.cont_fault && PSU0.enableAC){ 800b308: 4b83 ldr r3, [pc, #524] @ (800b518 ) 800b30a: 7a1b ldrb r3, [r3, #8] 800b30c: 2b00 cmp r3, #0 800b30e: d007 beq.n 800b320 800b310: 4b81 ldr r3, [pc, #516] @ (800b518 ) 800b312: 7b1b ldrb r3, [r3, #12] 800b314: 2b00 cmp r3, #0 800b316: d103 bne.n 800b320 800b318: 4b7f ldr r3, [pc, #508] @ (800b518 ) 800b31a: 781b ldrb r3, [r3, #0] 800b31c: 2b00 cmp r3, #0 800b31e: d102 bne.n 800b326 // PSU0.ready = 1; }else{ PSU0.ready = 0; 800b320: 4b7d ldr r3, [pc, #500] @ (800b518 ) 800b322: 2200 movs r2, #0 800b324: 725a strb r2, [r3, #9] } switch(PSU0.state){ 800b326: 4b7c ldr r3, [pc, #496] @ (800b518 ) 800b328: 79db ldrb r3, [r3, #7] 800b32a: 2b09 cmp r3, #9 800b32c: f200 8157 bhi.w 800b5de 800b330: a201 add r2, pc, #4 @ (adr r2, 800b338 ) 800b332: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b336: bf00 nop 800b338: 0800b361 .word 0x0800b361 800b33c: 0800b395 .word 0x0800b395 800b340: 0800b3b1 .word 0x0800b3b1 800b344: 0800b3ef .word 0x0800b3ef 800b348: 0800b43d .word 0x0800b43d 800b34c: 0800b47f .word 0x0800b47f 800b350: 0800b4e9 .word 0x0800b4e9 800b354: 0800b591 .word 0x0800b591 800b358: 0800b541 .word 0x0800b541 800b35c: 0800b5cb .word 0x0800b5cb case PSU_UNREADY: PSU0.enableOutput = 0; 800b360: 4b6d ldr r3, [pc, #436] @ (800b518 ) 800b362: 2200 movs r2, #0 800b364: 705a strb r2, [r3, #1] RELAY_Write(RELAY_DC, 0); 800b366: 2100 movs r1, #0 800b368: 2003 movs r0, #3 800b36a: f7fe fa25 bl 80097b8 if(PSU0.online && PSU0.enableAC && !PSU0.cont_fault){ 800b36e: 4b6a ldr r3, [pc, #424] @ (800b518 ) 800b370: 7a1b ldrb r3, [r3, #8] 800b372: 2b00 cmp r3, #0 800b374: f000 8137 beq.w 800b5e6 800b378: 4b67 ldr r3, [pc, #412] @ (800b518 ) 800b37a: 781b ldrb r3, [r3, #0] 800b37c: 2b00 cmp r3, #0 800b37e: f000 8132 beq.w 800b5e6 800b382: 4b65 ldr r3, [pc, #404] @ (800b518 ) 800b384: 7b1b ldrb r3, [r3, #12] 800b386: 2b00 cmp r3, #0 800b388: f040 812d bne.w 800b5e6 PSU_SwitchState(PSU_INITIALIZING); 800b38c: 2001 movs r0, #1 800b38e: f7ff fc8f bl 800acb0 } break; 800b392: e128 b.n 800b5e6 case PSU_INITIALIZING: if(PSU_StateTime() > 4000){ // Wait 4s for PSU to initialize 800b394: f7ff fca0 bl 800acd8 800b398: 4603 mov r3, r0 800b39a: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800b39e: f240 8124 bls.w 800b5ea PSU0.ready = 1; 800b3a2: 4b5d ldr r3, [pc, #372] @ (800b518 ) 800b3a4: 2201 movs r2, #1 800b3a6: 725a strb r2, [r3, #9] PSU_SwitchState(PSU_READY); 800b3a8: 2002 movs r0, #2 800b3aa: f7ff fc81 bl 800acb0 } break; 800b3ae: e11c b.n 800b5ea case PSU_READY: // модуль готов, но выключен PSU0.hv_mode = 0; 800b3b0: 4b59 ldr r3, [pc, #356] @ (800b518 ) 800b3b2: 2200 movs r2, #0 800b3b4: 761a strb r2, [r3, #24] PSU0.hv_tick = 0; 800b3b6: 4b58 ldr r3, [pc, #352] @ (800b518 ) 800b3b8: 2200 movs r2, #0 800b3ba: 61da str r2, [r3, #28] RELAY_Write(RELAY_DC, 0); 800b3bc: 2100 movs r1, #0 800b3be: 2003 movs r0, #3 800b3c0: f7fe f9fa bl 80097b8 if(!PSU0.ready){ 800b3c4: 4b54 ldr r3, [pc, #336] @ (800b518 ) 800b3c6: 7a5b ldrb r3, [r3, #9] 800b3c8: 2b00 cmp r3, #0 800b3ca: d103 bne.n 800b3d4 PSU_SwitchState(PSU_UNREADY); 800b3cc: 2000 movs r0, #0 800b3ce: f7ff fc6f bl 800acb0 break; 800b3d2: e11b b.n 800b60c } if(CONN.EnableOutput){ 800b3d4: 4b54 ldr r3, [pc, #336] @ (800b528 ) 800b3d6: 7ddb ldrb r3, [r3, #23] 800b3d8: 2b00 cmp r3, #0 800b3da: f000 8108 beq.w 800b5ee PSU_Enable(0, 1); 800b3de: 2101 movs r1, #1 800b3e0: 2000 movs r0, #0 800b3e2: f7ff fd81 bl 800aee8 PSU_SwitchState(PSU_WAIT_ACK_ON); 800b3e6: 2003 movs r0, #3 800b3e8: f7ff fc62 bl 800acb0 } break; 800b3ec: e0ff b.n 800b5ee case PSU_WAIT_ACK_ON: if(PSU0.PSU_enabled && PSU0.ready){ 800b3ee: 4b4a ldr r3, [pc, #296] @ (800b518 ) 800b3f0: 7a9b ldrb r3, [r3, #10] 800b3f2: 2b00 cmp r3, #0 800b3f4: d00c beq.n 800b410 800b3f6: 4b48 ldr r3, [pc, #288] @ (800b518 ) 800b3f8: 7a5b ldrb r3, [r3, #9] 800b3fa: 2b00 cmp r3, #0 800b3fc: d008 beq.n 800b410 dc_on_tick = HAL_GetTick(); 800b3fe: f002 fe17 bl 800e030 800b402: 4603 mov r3, r0 800b404: 4a4a ldr r2, [pc, #296] @ (800b530 ) 800b406: 6013 str r3, [r2, #0] PSU_SwitchState(PSU_CONT_WAIT_ACK_ON); 800b408: 2004 movs r0, #4 800b40a: f7ff fc51 bl 800acb0 PSU0.psu_fault = 1; CONN.chargingError = CONN_ERR_PSU_FAULT; PSU_SwitchState(PSU_UNREADY); log_printf(LOG_ERR, "PSU on timeout\n"); } break; 800b40e: e0f0 b.n 800b5f2 }else if(PSU_StateTime() > 10000){ 800b410: f7ff fc62 bl 800acd8 800b414: 4603 mov r3, r0 800b416: f242 7210 movw r2, #10000 @ 0x2710 800b41a: 4293 cmp r3, r2 800b41c: f240 80e9 bls.w 800b5f2 PSU0.psu_fault = 1; 800b420: 4b3d ldr r3, [pc, #244] @ (800b518 ) 800b422: 2201 movs r2, #1 800b424: 735a strb r2, [r3, #13] CONN.chargingError = CONN_ERR_PSU_FAULT; 800b426: 4b40 ldr r3, [pc, #256] @ (800b528 ) 800b428: 220a movs r2, #10 800b42a: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_UNREADY); 800b42c: 2000 movs r0, #0 800b42e: f7ff fc3f bl 800acb0 log_printf(LOG_ERR, "PSU on timeout\n"); 800b432: 4940 ldr r1, [pc, #256] @ (800b534 ) 800b434: 2004 movs r0, #4 800b436: f7ff f853 bl 800a4e0 break; 800b43a: e0da b.n 800b5f2 case PSU_CONT_WAIT_ACK_ON: // замыкаем DC-контактор и ждём подтверждение RELAY_Write(RELAY_DC, 1); 800b43c: 2101 movs r1, #1 800b43e: 2003 movs r0, #3 800b440: f7fe f9ba bl 80097b8 if(PSU0.CONT_enabled){ 800b444: 4b34 ldr r3, [pc, #208] @ (800b518 ) 800b446: 7adb ldrb r3, [r3, #11] 800b448: 2b00 cmp r3, #0 800b44a: d003 beq.n 800b454 PSU_SwitchState(PSU_CONNECTED); 800b44c: 2005 movs r0, #5 800b44e: f7ff fc2f bl 800acb0 PSU0.cont_fault = 1; CONN.chargingError = CONN_ERR_CONTACTOR; PSU_SwitchState(PSU_CURRENT_DROP); log_printf(LOG_ERR, "Contactor error, stopping...\n"); } break; 800b452: e0d0 b.n 800b5f6 }else if(PSU_StateTime() > 1000){ 800b454: f7ff fc40 bl 800acd8 800b458: 4603 mov r3, r0 800b45a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b45e: f240 80ca bls.w 800b5f6 PSU0.cont_fault = 1; 800b462: 4b2d ldr r3, [pc, #180] @ (800b518 ) 800b464: 2201 movs r2, #1 800b466: 731a strb r2, [r3, #12] CONN.chargingError = CONN_ERR_CONTACTOR; 800b468: 4b2f ldr r3, [pc, #188] @ (800b528 ) 800b46a: 2207 movs r2, #7 800b46c: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_CURRENT_DROP); 800b46e: 2006 movs r0, #6 800b470: f7ff fc1e bl 800acb0 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b474: 4930 ldr r1, [pc, #192] @ (800b538 ) 800b476: 2004 movs r0, #4 800b478: f7ff f832 bl 800a4e0 break; 800b47c: e0bb b.n 800b5f6 case PSU_CONNECTED: // Основное рабочее состояние if(!CONN.EnableOutput || !PSU0.ready){ 800b47e: 4b2a ldr r3, [pc, #168] @ (800b528 ) 800b480: 7ddb ldrb r3, [r3, #23] 800b482: 2b00 cmp r3, #0 800b484: d003 beq.n 800b48e 800b486: 4b24 ldr r3, [pc, #144] @ (800b518 ) 800b488: 7a5b ldrb r3, [r3, #9] 800b48a: 2b00 cmp r3, #0 800b48c: d103 bne.n 800b496 PSU_SwitchState(PSU_CURRENT_DROP); 800b48e: 2006 movs r0, #6 800b490: f7ff fc0e bl 800acb0 break; 800b494: e0ba b.n 800b60c } // контроль контактора: 1 c таймаут if (IN_ReadInput(IN_CONT_FB_DC) != RELAY_Read(RELAY_DC)){ 800b496: 2005 movs r0, #5 800b498: f7fe fa0e bl 80098b8 800b49c: 4603 mov r3, r0 800b49e: 461c mov r4, r3 800b4a0: 2003 movs r0, #3 800b4a2: f7fe f9f9 bl 8009898 800b4a6: 4603 mov r3, r0 800b4a8: 429c cmp r4, r3 800b4aa: d017 beq.n 800b4dc if((HAL_GetTick() - cont_ok_tick) > 1000){ 800b4ac: f002 fdc0 bl 800e030 800b4b0: 4602 mov r2, r0 800b4b2: 4b22 ldr r3, [pc, #136] @ (800b53c ) 800b4b4: 681b ldr r3, [r3, #0] 800b4b6: 1ad3 subs r3, r2, r3 800b4b8: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b4bc: f240 809d bls.w 800b5fa CONN.chargingError = CONN_ERR_CONTACTOR; 800b4c0: 4b19 ldr r3, [pc, #100] @ (800b528 ) 800b4c2: 2207 movs r2, #7 800b4c4: 775a strb r2, [r3, #29] PSU0.cont_fault = 1; 800b4c6: 4b14 ldr r3, [pc, #80] @ (800b518 ) 800b4c8: 2201 movs r2, #1 800b4ca: 731a strb r2, [r3, #12] PSU_SwitchState(PSU_CURRENT_DROP); 800b4cc: 2006 movs r0, #6 800b4ce: f7ff fbef bl 800acb0 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b4d2: 4919 ldr r1, [pc, #100] @ (800b538 ) 800b4d4: 2004 movs r0, #4 800b4d6: f7ff f803 bl 800a4e0 } }else{ cont_ok_tick = HAL_GetTick(); } break; 800b4da: e08e b.n 800b5fa cont_ok_tick = HAL_GetTick(); 800b4dc: f002 fda8 bl 800e030 800b4e0: 4603 mov r3, r0 800b4e2: 4a16 ldr r2, [pc, #88] @ (800b53c ) 800b4e4: 6013 str r3, [r2, #0] break; 800b4e6: e088 b.n 800b5fa case PSU_CURRENT_DROP: // снижаем ток до нуля перед отключением DC CONN.RequestedCurrent = 0; 800b4e8: 4b0f ldr r3, [pc, #60] @ (800b528 ) 800b4ea: 2200 movs r2, #0 800b4ec: 745a strb r2, [r3, #17] 800b4ee: 2200 movs r2, #0 800b4f0: 749a strb r2, [r3, #18] // если ток действительно упал или вышло время, отключаем DC if((CONN.MeasuredCurrent < 30) || (PSU_StateTime() > 5000)){ 800b4f2: 4b0d ldr r3, [pc, #52] @ (800b528 ) 800b4f4: f8b3 3015 ldrh.w r3, [r3, #21] 800b4f8: b29b uxth r3, r3 800b4fa: 2b1d cmp r3, #29 800b4fc: d906 bls.n 800b50c 800b4fe: f7ff fbeb bl 800acd8 800b502: 4603 mov r3, r0 800b504: f241 3288 movw r2, #5000 @ 0x1388 800b508: 4293 cmp r3, r2 800b50a: d978 bls.n 800b5fe PSU_SwitchState(PSU_CONT_WAIT_ACK_OFF); 800b50c: 2008 movs r0, #8 800b50e: f7ff fbcf bl 800acb0 } break; 800b512: e074 b.n 800b5fe 800b514: 2000092c .word 0x2000092c 800b518: 20000904 .word 0x20000904 800b51c: 200008cc .word 0x200008cc 800b520: 200008d8 .word 0x200008d8 800b524: 200008f4 .word 0x200008f4 800b528: 200003b0 .word 0x200003b0 800b52c: 20000954 .word 0x20000954 800b530: 20000958 .word 0x20000958 800b534: 08016be8 .word 0x08016be8 800b538: 08016bf8 .word 0x08016bf8 800b53c: 2000095c .word 0x2000095c case PSU_CONT_WAIT_ACK_OFF: RELAY_Write(RELAY_DC, 0); 800b540: 2100 movs r1, #0 800b542: 2003 movs r0, #3 800b544: f7fe f938 bl 80097b8 if(!PSU0.CONT_enabled){ 800b548: 4b31 ldr r3, [pc, #196] @ (800b610 ) 800b54a: 7adb ldrb r3, [r3, #11] 800b54c: 2b00 cmp r3, #0 800b54e: d107 bne.n 800b560 PSU_Enable(0, 0); 800b550: 2100 movs r1, #0 800b552: 2000 movs r0, #0 800b554: f7ff fcc8 bl 800aee8 PSU_SwitchState(PSU_WAIT_ACK_OFF); 800b558: 2007 movs r0, #7 800b55a: f7ff fba9 bl 800acb0 CONN.chargingError = CONN_ERR_CONTACTOR; PSU_Enable(0, 0); PSU_SwitchState(PSU_WAIT_ACK_OFF); log_printf(LOG_ERR, "Contactor error, stopping...\n"); } break; 800b55e: e050 b.n 800b602 }else if(PSU_StateTime() > 1000){ 800b560: f7ff fbba bl 800acd8 800b564: 4603 mov r3, r0 800b566: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b56a: d94a bls.n 800b602 PSU0.cont_fault = 1; 800b56c: 4b28 ldr r3, [pc, #160] @ (800b610 ) 800b56e: 2201 movs r2, #1 800b570: 731a strb r2, [r3, #12] CONN.chargingError = CONN_ERR_CONTACTOR; 800b572: 4b28 ldr r3, [pc, #160] @ (800b614 ) 800b574: 2207 movs r2, #7 800b576: 775a strb r2, [r3, #29] PSU_Enable(0, 0); 800b578: 2100 movs r1, #0 800b57a: 2000 movs r0, #0 800b57c: f7ff fcb4 bl 800aee8 PSU_SwitchState(PSU_WAIT_ACK_OFF); 800b580: 2007 movs r0, #7 800b582: f7ff fb95 bl 800acb0 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b586: 4924 ldr r1, [pc, #144] @ (800b618 ) 800b588: 2004 movs r0, #4 800b58a: f7fe ffa9 bl 800a4e0 break; 800b58e: e038 b.n 800b602 case PSU_WAIT_ACK_OFF: if(!PSU0.PSU_enabled){ 800b590: 4b1f ldr r3, [pc, #124] @ (800b610 ) 800b592: 7a9b ldrb r3, [r3, #10] 800b594: 2b00 cmp r3, #0 800b596: d103 bne.n 800b5a0 PSU_SwitchState(PSU_OFF_PAUSE); 800b598: 2009 movs r0, #9 800b59a: f7ff fb89 bl 800acb0 PSU0.psu_fault = 1; CONN.chargingError = CONN_ERR_PSU_FAULT; PSU_SwitchState(PSU_UNREADY); log_printf(LOG_ERR, "PSU off timeout\n"); } break; 800b59e: e032 b.n 800b606 }else if(PSU_StateTime() > 10000){ 800b5a0: f7ff fb9a bl 800acd8 800b5a4: 4603 mov r3, r0 800b5a6: f242 7210 movw r2, #10000 @ 0x2710 800b5aa: 4293 cmp r3, r2 800b5ac: d92b bls.n 800b606 PSU0.psu_fault = 1; 800b5ae: 4b18 ldr r3, [pc, #96] @ (800b610 ) 800b5b0: 2201 movs r2, #1 800b5b2: 735a strb r2, [r3, #13] CONN.chargingError = CONN_ERR_PSU_FAULT; 800b5b4: 4b17 ldr r3, [pc, #92] @ (800b614 ) 800b5b6: 220a movs r2, #10 800b5b8: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_UNREADY); 800b5ba: 2000 movs r0, #0 800b5bc: f7ff fb78 bl 800acb0 log_printf(LOG_ERR, "PSU off timeout\n"); 800b5c0: 4916 ldr r1, [pc, #88] @ (800b61c ) 800b5c2: 2004 movs r0, #4 800b5c4: f7fe ff8c bl 800a4e0 break; 800b5c8: e01d b.n 800b606 case PSU_OFF_PAUSE: if(PSU_StateTime() > 4000){ 800b5ca: f7ff fb85 bl 800acd8 800b5ce: 4603 mov r3, r0 800b5d0: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800b5d4: d919 bls.n 800b60a PSU_SwitchState(PSU_READY); 800b5d6: 2002 movs r0, #2 800b5d8: f7ff fb6a bl 800acb0 } break; 800b5dc: e015 b.n 800b60a default: PSU_SwitchState(PSU_UNREADY); 800b5de: 2000 movs r0, #0 800b5e0: f7ff fb66 bl 800acb0 break; 800b5e4: e012 b.n 800b60c break; 800b5e6: bf00 nop 800b5e8: e010 b.n 800b60c break; 800b5ea: bf00 nop 800b5ec: e00e b.n 800b60c break; 800b5ee: bf00 nop 800b5f0: e00c b.n 800b60c break; 800b5f2: bf00 nop 800b5f4: e00a b.n 800b60c break; 800b5f6: bf00 nop 800b5f8: e008 b.n 800b60c break; 800b5fa: bf00 nop 800b5fc: e006 b.n 800b60c break; 800b5fe: bf00 nop 800b600: e004 b.n 800b60c break; 800b602: bf00 nop 800b604: e002 b.n 800b60c break; 800b606: bf00 nop 800b608: e000 b.n 800b60c break; 800b60a: bf00 nop } } 800b60c: bf00 nop 800b60e: bd98 pop {r3, r4, r7, pc} 800b610: 20000904 .word 0x20000904 800b614: 200003b0 .word 0x200003b0 800b618: 08016bf8 .word 0x08016bf8 800b61c: 08016c18 .word 0x08016c18 0800b620 : .Th = 10, .Tf = 50, .Tl = 0, }; void LED_Write(){ 800b620: b580 push {r7, lr} 800b622: af00 add r7, sp, #0 if(CONN.chargingError != CONN_NO_ERROR){ 800b624: 4b3c ldr r3, [pc, #240] @ (800b718 ) 800b626: 7f5b ldrb r3, [r3, #29] 800b628: 2b00 cmp r3, #0 800b62a: d003 beq.n 800b634 LED_SetColor(&color_error); 800b62c: 483b ldr r0, [pc, #236] @ (800b71c ) 800b62e: f000 f933 bl 800b898 return; 800b632: e06f b.n 800b714 } if(CONN.connControl == CMD_FORCE_UNLOCK){ 800b634: 4b38 ldr r3, [pc, #224] @ (800b718 ) 800b636: 781b ldrb r3, [r3, #0] 800b638: 2b03 cmp r3, #3 800b63a: d103 bne.n 800b644 LED_SetColor(&color_unlock); 800b63c: 4838 ldr r0, [pc, #224] @ (800b720 ) 800b63e: f000 f92b bl 800b898 return; 800b642: e067 b.n 800b714 } if(CONN.connControl == CMD_STOP){ 800b644: 4b34 ldr r3, [pc, #208] @ (800b718 ) 800b646: 781b ldrb r3, [r3, #0] 800b648: 2b01 cmp r3, #1 800b64a: d103 bne.n 800b654 LED_SetColor(&color_estop); 800b64c: 4835 ldr r0, [pc, #212] @ (800b724 ) 800b64e: f000 f923 bl 800b898 return; 800b652: e05f b.n 800b714 } switch(CONN.connState){ 800b654: 4b30 ldr r3, [pc, #192] @ (800b718 ) 800b656: 785b ldrb r3, [r3, #1] 800b658: 2b0d cmp r3, #13 800b65a: d857 bhi.n 800b70c 800b65c: a201 add r2, pc, #4 @ (adr r2, 800b664 ) 800b65e: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b662: bf00 nop 800b664: 0800b69d .word 0x0800b69d 800b668: 0800b6a5 .word 0x0800b6a5 800b66c: 0800b6ad .word 0x0800b6ad 800b670: 0800b6b5 .word 0x0800b6b5 800b674: 0800b6bd .word 0x0800b6bd 800b678: 0800b6c5 .word 0x0800b6c5 800b67c: 0800b6cd .word 0x0800b6cd 800b680: 0800b6d5 .word 0x0800b6d5 800b684: 0800b6dd .word 0x0800b6dd 800b688: 0800b6e5 .word 0x0800b6e5 800b68c: 0800b6ed .word 0x0800b6ed 800b690: 0800b6f5 .word 0x0800b6f5 800b694: 0800b6fd .word 0x0800b6fd 800b698: 0800b705 .word 0x0800b705 case Unknown: LED_SetColor(&color_unknown); 800b69c: 4822 ldr r0, [pc, #136] @ (800b728 ) 800b69e: f000 f8fb bl 800b898 break; 800b6a2: e037 b.n 800b714 case Unplugged: LED_SetColor(&color_unplugged); 800b6a4: 4821 ldr r0, [pc, #132] @ (800b72c ) 800b6a6: f000 f8f7 bl 800b898 break; 800b6aa: e033 b.n 800b714 case Disabled: LED_SetColor(&color_error); 800b6ac: 481b ldr r0, [pc, #108] @ (800b71c ) 800b6ae: f000 f8f3 bl 800b898 break; 800b6b2: e02f b.n 800b714 case Preparing: LED_SetColor(&color_preparing); 800b6b4: 481e ldr r0, [pc, #120] @ (800b730 ) 800b6b6: f000 f8ef bl 800b898 break; 800b6ba: e02b b.n 800b714 case AuthRequired: LED_SetColor(&color_preparing); 800b6bc: 481c ldr r0, [pc, #112] @ (800b730 ) 800b6be: f000 f8eb bl 800b898 break; 800b6c2: e027 b.n 800b714 case WaitingForEnergy: LED_SetColor(&color_charging); 800b6c4: 481b ldr r0, [pc, #108] @ (800b734 ) 800b6c6: f000 f8e7 bl 800b898 break; 800b6ca: e023 b.n 800b714 case ChargingPausedEV: LED_SetColor(&color_charging); 800b6cc: 4819 ldr r0, [pc, #100] @ (800b734 ) 800b6ce: f000 f8e3 bl 800b898 break; 800b6d2: e01f b.n 800b714 case ChargingPausedEVSE: LED_SetColor(&color_charging); 800b6d4: 4817 ldr r0, [pc, #92] @ (800b734 ) 800b6d6: f000 f8df bl 800b898 break; 800b6da: e01b b.n 800b714 case Charging: LED_SetColor(&color_charging); 800b6dc: 4815 ldr r0, [pc, #84] @ (800b734 ) 800b6de: f000 f8db bl 800b898 break; 800b6e2: e017 b.n 800b714 case AuthTimeout: LED_SetColor(&color_finished); 800b6e4: 4814 ldr r0, [pc, #80] @ (800b738 ) 800b6e6: f000 f8d7 bl 800b898 break; 800b6ea: e013 b.n 800b714 case Finished: LED_SetColor(&color_finished); 800b6ec: 4812 ldr r0, [pc, #72] @ (800b738 ) 800b6ee: f000 f8d3 bl 800b898 break; 800b6f2: e00f b.n 800b714 case FinishedEVSE: LED_SetColor(&color_finished); 800b6f4: 4810 ldr r0, [pc, #64] @ (800b738 ) 800b6f6: f000 f8cf bl 800b898 break; 800b6fa: e00b b.n 800b714 case FinishedEV: LED_SetColor(&color_finished); 800b6fc: 480e ldr r0, [pc, #56] @ (800b738 ) 800b6fe: f000 f8cb bl 800b898 break; 800b702: e007 b.n 800b714 case Replugging: LED_SetColor(&color_preparing); 800b704: 480a ldr r0, [pc, #40] @ (800b730 ) 800b706: f000 f8c7 bl 800b898 break; 800b70a: e003 b.n 800b714 default: LED_SetColor(&color_unknown); 800b70c: 4806 ldr r0, [pc, #24] @ (800b728 ) 800b70e: f000 f8c3 bl 800b898 break; 800b712: bf00 nop } } 800b714: bd80 pop {r7, pc} 800b716: bf00 nop 800b718: 200003b0 .word 0x200003b0 800b71c: 20000060 .word 0x20000060 800b720: 20000018 .word 0x20000018 800b724: 2000000c .word 0x2000000c 800b728: 20000024 .word 0x20000024 800b72c: 20000030 .word 0x20000030 800b730: 2000003c .word 0x2000003c 800b734: 20000048 .word 0x20000048 800b738: 20000054 .word 0x20000054 0800b73c : void interpolateColors(RGB_t* color1, RGB_t* color2, uint16_t a, uint16_t b, RGB_t *result) { 800b73c: b480 push {r7} 800b73e: b087 sub sp, #28 800b740: af00 add r7, sp, #0 800b742: 60f8 str r0, [r7, #12] 800b744: 60b9 str r1, [r7, #8] 800b746: 4611 mov r1, r2 800b748: 461a mov r2, r3 800b74a: 460b mov r3, r1 800b74c: 80fb strh r3, [r7, #6] 800b74e: 4613 mov r3, r2 800b750: 80bb strh r3, [r7, #4] // Проверяем, чтобы a не выходила за пределы диапазона if (a > b) a = b; 800b752: 88fa ldrh r2, [r7, #6] 800b754: 88bb ldrh r3, [r7, #4] 800b756: 429a cmp r2, r3 800b758: d901 bls.n 800b75e 800b75a: 88bb ldrh r3, [r7, #4] 800b75c: 80fb strh r3, [r7, #6] if(b==0) b = 1; 800b75e: 88bb ldrh r3, [r7, #4] 800b760: 2b00 cmp r3, #0 800b762: d101 bne.n 800b768 800b764: 2301 movs r3, #1 800b766: 80bb strh r3, [r7, #4] // Вычисляем коэффициент смешивания в виде целого числа uint16_t t = (a * 255) / b; // t будет от 0 до 255 800b768: 88fa ldrh r2, [r7, #6] 800b76a: 4613 mov r3, r2 800b76c: 021b lsls r3, r3, #8 800b76e: 1a9a subs r2, r3, r2 800b770: 88bb ldrh r3, [r7, #4] 800b772: fb92 f3f3 sdiv r3, r2, r3 800b776: 82fb strh r3, [r7, #22] // Линейная интерполяция с использованием целых чисел result->R = (color1->R * (255 - t) + color2->R * t) / 255; 800b778: 68fb ldr r3, [r7, #12] 800b77a: 781b ldrb r3, [r3, #0] 800b77c: 461a mov r2, r3 800b77e: 8afb ldrh r3, [r7, #22] 800b780: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b784: fb03 f202 mul.w r2, r3, r2 800b788: 68bb ldr r3, [r7, #8] 800b78a: 781b ldrb r3, [r3, #0] 800b78c: 4619 mov r1, r3 800b78e: 8afb ldrh r3, [r7, #22] 800b790: fb01 f303 mul.w r3, r1, r3 800b794: 4413 add r3, r2 800b796: 4a20 ldr r2, [pc, #128] @ (800b818 ) 800b798: fb82 1203 smull r1, r2, r2, r3 800b79c: 441a add r2, r3 800b79e: 11d2 asrs r2, r2, #7 800b7a0: 17db asrs r3, r3, #31 800b7a2: 1ad3 subs r3, r2, r3 800b7a4: b2da uxtb r2, r3 800b7a6: 6a3b ldr r3, [r7, #32] 800b7a8: 701a strb r2, [r3, #0] result->G = (color1->G * (255 - t) + color2->G * t) / 255; 800b7aa: 68fb ldr r3, [r7, #12] 800b7ac: 785b ldrb r3, [r3, #1] 800b7ae: 461a mov r2, r3 800b7b0: 8afb ldrh r3, [r7, #22] 800b7b2: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b7b6: fb03 f202 mul.w r2, r3, r2 800b7ba: 68bb ldr r3, [r7, #8] 800b7bc: 785b ldrb r3, [r3, #1] 800b7be: 4619 mov r1, r3 800b7c0: 8afb ldrh r3, [r7, #22] 800b7c2: fb01 f303 mul.w r3, r1, r3 800b7c6: 4413 add r3, r2 800b7c8: 4a13 ldr r2, [pc, #76] @ (800b818 ) 800b7ca: fb82 1203 smull r1, r2, r2, r3 800b7ce: 441a add r2, r3 800b7d0: 11d2 asrs r2, r2, #7 800b7d2: 17db asrs r3, r3, #31 800b7d4: 1ad3 subs r3, r2, r3 800b7d6: b2da uxtb r2, r3 800b7d8: 6a3b ldr r3, [r7, #32] 800b7da: 705a strb r2, [r3, #1] result->B = (color1->B * (255 - t) + color2->B * t) / 255; 800b7dc: 68fb ldr r3, [r7, #12] 800b7de: 789b ldrb r3, [r3, #2] 800b7e0: 461a mov r2, r3 800b7e2: 8afb ldrh r3, [r7, #22] 800b7e4: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b7e8: fb03 f202 mul.w r2, r3, r2 800b7ec: 68bb ldr r3, [r7, #8] 800b7ee: 789b ldrb r3, [r3, #2] 800b7f0: 4619 mov r1, r3 800b7f2: 8afb ldrh r3, [r7, #22] 800b7f4: fb01 f303 mul.w r3, r1, r3 800b7f8: 4413 add r3, r2 800b7fa: 4a07 ldr r2, [pc, #28] @ (800b818 ) 800b7fc: fb82 1203 smull r1, r2, r2, r3 800b800: 441a add r2, r3 800b802: 11d2 asrs r2, r2, #7 800b804: 17db asrs r3, r3, #31 800b806: 1ad3 subs r3, r2, r3 800b808: b2da uxtb r2, r3 800b80a: 6a3b ldr r3, [r7, #32] 800b80c: 709a strb r2, [r3, #2] } 800b80e: bf00 nop 800b810: 371c adds r7, #28 800b812: 46bd mov sp, r7 800b814: bc80 pop {r7} 800b816: 4770 bx lr 800b818: 80808081 .word 0x80808081 0800b81c : void RGB_SetColor(RGB_t *color){ 800b81c: b480 push {r7} 800b81e: b083 sub sp, #12 800b820: af00 add r7, sp, #0 800b822: 6078 str r0, [r7, #4] htim4.Instance->CCR2 = color->R * 100 / 255; 800b824: 687b ldr r3, [r7, #4] 800b826: 781b ldrb r3, [r3, #0] 800b828: 461a mov r2, r3 800b82a: 2364 movs r3, #100 @ 0x64 800b82c: fb02 f303 mul.w r3, r2, r3 800b830: 4a17 ldr r2, [pc, #92] @ (800b890 ) 800b832: fb82 1203 smull r1, r2, r2, r3 800b836: 441a add r2, r3 800b838: 11d2 asrs r2, r2, #7 800b83a: 17db asrs r3, r3, #31 800b83c: 1ad2 subs r2, r2, r3 800b83e: 4b15 ldr r3, [pc, #84] @ (800b894 ) 800b840: 681b ldr r3, [r3, #0] 800b842: 639a str r2, [r3, #56] @ 0x38 htim4.Instance->CCR3 = color->G * 100 / 255; 800b844: 687b ldr r3, [r7, #4] 800b846: 785b ldrb r3, [r3, #1] 800b848: 461a mov r2, r3 800b84a: 2364 movs r3, #100 @ 0x64 800b84c: fb02 f303 mul.w r3, r2, r3 800b850: 4a0f ldr r2, [pc, #60] @ (800b890 ) 800b852: fb82 1203 smull r1, r2, r2, r3 800b856: 441a add r2, r3 800b858: 11d2 asrs r2, r2, #7 800b85a: 17db asrs r3, r3, #31 800b85c: 1ad2 subs r2, r2, r3 800b85e: 4b0d ldr r3, [pc, #52] @ (800b894 ) 800b860: 681b ldr r3, [r3, #0] 800b862: 63da str r2, [r3, #60] @ 0x3c htim4.Instance->CCR4 = color->B * 100 / 255; 800b864: 687b ldr r3, [r7, #4] 800b866: 789b ldrb r3, [r3, #2] 800b868: 461a mov r2, r3 800b86a: 2364 movs r3, #100 @ 0x64 800b86c: fb02 f303 mul.w r3, r2, r3 800b870: 4a07 ldr r2, [pc, #28] @ (800b890 ) 800b872: fb82 1203 smull r1, r2, r2, r3 800b876: 441a add r2, r3 800b878: 11d2 asrs r2, r2, #7 800b87a: 17db asrs r3, r3, #31 800b87c: 1ad2 subs r2, r2, r3 800b87e: 4b05 ldr r3, [pc, #20] @ (800b894 ) 800b880: 681b ldr r3, [r3, #0] 800b882: 641a str r2, [r3, #64] @ 0x40 } 800b884: bf00 nop 800b886: 370c adds r7, #12 800b888: 46bd mov sp, r7 800b88a: bc80 pop {r7} 800b88c: 4770 bx lr 800b88e: bf00 nop 800b890: 80808081 .word 0x80808081 800b894: 2000110c .word 0x2000110c 0800b898 : void LED_SetColor(RGB_Cycle_t *color){ 800b898: b480 push {r7} 800b89a: b083 sub sp, #12 800b89c: af00 add r7, sp, #0 800b89e: 6078 str r0, [r7, #4] memcpy(&LED_Cycle, color, sizeof(RGB_Cycle_t)); 800b8a0: 4b05 ldr r3, [pc, #20] @ (800b8b8 ) 800b8a2: 687a ldr r2, [r7, #4] 800b8a4: 6810 ldr r0, [r2, #0] 800b8a6: 6851 ldr r1, [r2, #4] 800b8a8: c303 stmia r3!, {r0, r1} 800b8aa: 8912 ldrh r2, [r2, #8] 800b8ac: 801a strh r2, [r3, #0] } 800b8ae: bf00 nop 800b8b0: 370c adds r7, #12 800b8b2: 46bd mov sp, r7 800b8b4: bc80 pop {r7} 800b8b6: 4770 bx lr 800b8b8: 20000968 .word 0x20000968 0800b8bc : void LED_Init(){ 800b8bc: b580 push {r7, lr} 800b8be: b082 sub sp, #8 800b8c0: af00 add r7, sp, #0 RGB_t color = {.R=0, .G=0, .B=0}; 800b8c2: 2300 movs r3, #0 800b8c4: 713b strb r3, [r7, #4] 800b8c6: 2300 movs r3, #0 800b8c8: 717b strb r3, [r7, #5] 800b8ca: 2300 movs r3, #0 800b8cc: 71bb strb r3, [r7, #6] HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_2); 800b8ce: 2104 movs r1, #4 800b8d0: 4809 ldr r0, [pc, #36] @ (800b8f8 ) 800b8d2: f006 fb5f bl 8011f94 HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_3); 800b8d6: 2108 movs r1, #8 800b8d8: 4807 ldr r0, [pc, #28] @ (800b8f8 ) 800b8da: f006 fb5b bl 8011f94 HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_4); 800b8de: 210c movs r1, #12 800b8e0: 4805 ldr r0, [pc, #20] @ (800b8f8 ) 800b8e2: f006 fb57 bl 8011f94 RGB_SetColor(&color); 800b8e6: 1d3b adds r3, r7, #4 800b8e8: 4618 mov r0, r3 800b8ea: f7ff ff97 bl 800b81c } 800b8ee: bf00 nop 800b8f0: 3708 adds r7, #8 800b8f2: 46bd mov sp, r7 800b8f4: bd80 pop {r7, pc} 800b8f6: bf00 nop 800b8f8: 2000110c .word 0x2000110c 0800b8fc : // } // } // } // } void LED_Task(){ 800b8fc: b580 push {r7, lr} 800b8fe: b082 sub sp, #8 800b900: af02 add r7, sp, #8 static uint32_t led_tick; if((HAL_GetTick() - led_tick) > 20){ 800b902: f002 fb95 bl 800e030 800b906: 4602 mov r2, r0 800b908: 4b46 ldr r3, [pc, #280] @ (800ba24 ) 800b90a: 681b ldr r3, [r3, #0] 800b90c: 1ad3 subs r3, r2, r3 800b90e: 2b14 cmp r3, #20 800b910: f240 8085 bls.w 800ba1e led_tick = HAL_GetTick(); 800b914: f002 fb8c bl 800e030 800b918: 4603 mov r3, r0 800b91a: 4a42 ldr r2, [pc, #264] @ (800ba24 ) 800b91c: 6013 str r3, [r2, #0] LED_State.tick++; 800b91e: 4b42 ldr r3, [pc, #264] @ (800ba28 ) 800b920: 885b ldrh r3, [r3, #2] 800b922: 3301 adds r3, #1 800b924: b29a uxth r2, r3 800b926: 4b40 ldr r3, [pc, #256] @ (800ba28 ) 800b928: 805a strh r2, [r3, #2] // LED_PhaseSync(led_n); switch(LED_State.state){ 800b92a: 4b3f ldr r3, [pc, #252] @ (800ba28 ) 800b92c: 781b ldrb r3, [r3, #0] 800b92e: 2b03 cmp r3, #3 800b930: d867 bhi.n 800ba02 800b932: a201 add r2, pc, #4 @ (adr r2, 800b938 ) 800b934: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b938: 0800b949 .word 0x0800b949 800b93c: 0800b97b .word 0x0800b97b 800b940: 0800b9a7 .word 0x0800b9a7 800b944: 0800b9d9 .word 0x0800b9d9 case LED_RISING: interpolateColors(&LED_Cycle.Color2, &LED_Cycle.Color1, LED_State.tick, LED_Cycle.Tr, &LED_State.color); 800b948: 4b37 ldr r3, [pc, #220] @ (800ba28 ) 800b94a: 885a ldrh r2, [r3, #2] 800b94c: 4b37 ldr r3, [pc, #220] @ (800ba2c ) 800b94e: 78db ldrb r3, [r3, #3] 800b950: 4619 mov r1, r3 800b952: 4b37 ldr r3, [pc, #220] @ (800ba30 ) 800b954: 9300 str r3, [sp, #0] 800b956: 460b mov r3, r1 800b958: 4934 ldr r1, [pc, #208] @ (800ba2c ) 800b95a: 4836 ldr r0, [pc, #216] @ (800ba34 ) 800b95c: f7ff feee bl 800b73c if(LED_State.tick>LED_Cycle.Tr){ 800b960: 4b31 ldr r3, [pc, #196] @ (800ba28 ) 800b962: 885b ldrh r3, [r3, #2] 800b964: 4a31 ldr r2, [pc, #196] @ (800ba2c ) 800b966: 78d2 ldrb r2, [r2, #3] 800b968: 4293 cmp r3, r2 800b96a: d94e bls.n 800ba0a LED_State.state = LED_HIGH; 800b96c: 4b2e ldr r3, [pc, #184] @ (800ba28 ) 800b96e: 2201 movs r2, #1 800b970: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b972: 4b2d ldr r3, [pc, #180] @ (800ba28 ) 800b974: 2200 movs r2, #0 800b976: 805a strh r2, [r3, #2] } break; 800b978: e047 b.n 800ba0a case LED_HIGH: memcpy(&LED_State.color, &LED_Cycle.Color1, sizeof(RGB_t)); 800b97a: 4b2b ldr r3, [pc, #172] @ (800ba28 ) 800b97c: 4a2b ldr r2, [pc, #172] @ (800ba2c ) 800b97e: 3304 adds r3, #4 800b980: 6812 ldr r2, [r2, #0] 800b982: 4611 mov r1, r2 800b984: 8019 strh r1, [r3, #0] 800b986: 3302 adds r3, #2 800b988: 0c12 lsrs r2, r2, #16 800b98a: 701a strb r2, [r3, #0] if(LED_State.tick>LED_Cycle.Th){ 800b98c: 4b26 ldr r3, [pc, #152] @ (800ba28 ) 800b98e: 885b ldrh r3, [r3, #2] 800b990: 4a26 ldr r2, [pc, #152] @ (800ba2c ) 800b992: 7912 ldrb r2, [r2, #4] 800b994: 4293 cmp r3, r2 800b996: d93a bls.n 800ba0e LED_State.state = LED_FALLING; 800b998: 4b23 ldr r3, [pc, #140] @ (800ba28 ) 800b99a: 2202 movs r2, #2 800b99c: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b99e: 4b22 ldr r3, [pc, #136] @ (800ba28 ) 800b9a0: 2200 movs r2, #0 800b9a2: 805a strh r2, [r3, #2] } break; 800b9a4: e033 b.n 800ba0e case LED_FALLING: interpolateColors(&LED_Cycle.Color1, &LED_Cycle.Color2, LED_State.tick, LED_Cycle.Tf, &LED_State.color); 800b9a6: 4b20 ldr r3, [pc, #128] @ (800ba28 ) 800b9a8: 885a ldrh r2, [r3, #2] 800b9aa: 4b20 ldr r3, [pc, #128] @ (800ba2c ) 800b9ac: 795b ldrb r3, [r3, #5] 800b9ae: 4619 mov r1, r3 800b9b0: 4b1f ldr r3, [pc, #124] @ (800ba30 ) 800b9b2: 9300 str r3, [sp, #0] 800b9b4: 460b mov r3, r1 800b9b6: 491f ldr r1, [pc, #124] @ (800ba34 ) 800b9b8: 481c ldr r0, [pc, #112] @ (800ba2c ) 800b9ba: f7ff febf bl 800b73c if(LED_State.tick>LED_Cycle.Tf){ 800b9be: 4b1a ldr r3, [pc, #104] @ (800ba28 ) 800b9c0: 885b ldrh r3, [r3, #2] 800b9c2: 4a1a ldr r2, [pc, #104] @ (800ba2c ) 800b9c4: 7952 ldrb r2, [r2, #5] 800b9c6: 4293 cmp r3, r2 800b9c8: d923 bls.n 800ba12 LED_State.state = LED_LOW; 800b9ca: 4b17 ldr r3, [pc, #92] @ (800ba28 ) 800b9cc: 2203 movs r2, #3 800b9ce: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b9d0: 4b15 ldr r3, [pc, #84] @ (800ba28 ) 800b9d2: 2200 movs r2, #0 800b9d4: 805a strh r2, [r3, #2] } break; 800b9d6: e01c b.n 800ba12 case LED_LOW: memcpy(&LED_State.color, &LED_Cycle.Color2, sizeof(RGB_t)); 800b9d8: 4b13 ldr r3, [pc, #76] @ (800ba28 ) 800b9da: 4a14 ldr r2, [pc, #80] @ (800ba2c ) 800b9dc: 3304 adds r3, #4 800b9de: 3207 adds r2, #7 800b9e0: 8811 ldrh r1, [r2, #0] 800b9e2: 7892 ldrb r2, [r2, #2] 800b9e4: 8019 strh r1, [r3, #0] 800b9e6: 709a strb r2, [r3, #2] if(LED_State.tick>LED_Cycle.Tl){ 800b9e8: 4b0f ldr r3, [pc, #60] @ (800ba28 ) 800b9ea: 885b ldrh r3, [r3, #2] 800b9ec: 4a0f ldr r2, [pc, #60] @ (800ba2c ) 800b9ee: 7992 ldrb r2, [r2, #6] 800b9f0: 4293 cmp r3, r2 800b9f2: d910 bls.n 800ba16 LED_State.state = LED_RISING; 800b9f4: 4b0c ldr r3, [pc, #48] @ (800ba28 ) 800b9f6: 2200 movs r2, #0 800b9f8: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b9fa: 4b0b ldr r3, [pc, #44] @ (800ba28 ) 800b9fc: 2200 movs r2, #0 800b9fe: 805a strh r2, [r3, #2] } break; 800ba00: e009 b.n 800ba16 default: LED_State.state = LED_RISING; 800ba02: 4b09 ldr r3, [pc, #36] @ (800ba28 ) 800ba04: 2200 movs r2, #0 800ba06: 701a strb r2, [r3, #0] 800ba08: e006 b.n 800ba18 break; 800ba0a: bf00 nop 800ba0c: e004 b.n 800ba18 break; 800ba0e: bf00 nop 800ba10: e002 b.n 800ba18 break; 800ba12: bf00 nop 800ba14: e000 b.n 800ba18 break; 800ba16: bf00 nop } RGB_SetColor(&LED_State.color); 800ba18: 4805 ldr r0, [pc, #20] @ (800ba30 ) 800ba1a: f7ff feff bl 800b81c } } 800ba1e: bf00 nop 800ba20: 46bd mov sp, r7 800ba22: bd80 pop {r7, pc} 800ba24: 20000974 .word 0x20000974 800ba28: 20000960 .word 0x20000960 800ba2c: 20000968 .word 0x20000968 800ba30: 20000964 .word 0x20000964 800ba34: 2000096f .word 0x2000096f 0800ba38 : RTC_HandleTypeDef hrtc; /* RTC init function */ void MX_RTC_Init(void) { 800ba38: b580 push {r7, lr} 800ba3a: af00 add r7, sp, #0 /* USER CODE END RTC_Init 1 */ /** Initialize RTC Only */ hrtc.Instance = RTC; 800ba3c: 4b0a ldr r3, [pc, #40] @ (800ba68 ) 800ba3e: 4a0b ldr r2, [pc, #44] @ (800ba6c ) 800ba40: 601a str r2, [r3, #0] hrtc.Init.AsynchPrediv = RTC_AUTO_1_SECOND; 800ba42: 4b09 ldr r3, [pc, #36] @ (800ba68 ) 800ba44: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 800ba48: 605a str r2, [r3, #4] hrtc.Init.OutPut = RTC_OUTPUTSOURCE_ALARM; 800ba4a: 4b07 ldr r3, [pc, #28] @ (800ba68 ) 800ba4c: f44f 7280 mov.w r2, #256 @ 0x100 800ba50: 609a str r2, [r3, #8] if (HAL_RTC_Init(&hrtc) != HAL_OK) 800ba52: 4805 ldr r0, [pc, #20] @ (800ba68 ) 800ba54: f005 ffec bl 8011a30 800ba58: 4603 mov r3, r0 800ba5a: 2b00 cmp r3, #0 800ba5c: d001 beq.n 800ba62 { Error_Handler(); 800ba5e: f7ff f8b7 bl 800abd0 } /* USER CODE BEGIN RTC_Init 2 */ /* USER CODE END RTC_Init 2 */ } 800ba62: bf00 nop 800ba64: bd80 pop {r7, pc} 800ba66: bf00 nop 800ba68: 20000978 .word 0x20000978 800ba6c: 40002800 .word 0x40002800 0800ba70 : void HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle) { 800ba70: b580 push {r7, lr} 800ba72: b084 sub sp, #16 800ba74: af00 add r7, sp, #0 800ba76: 6078 str r0, [r7, #4] if(rtcHandle->Instance==RTC) 800ba78: 687b ldr r3, [r7, #4] 800ba7a: 681b ldr r3, [r3, #0] 800ba7c: 4a0b ldr r2, [pc, #44] @ (800baac ) 800ba7e: 4293 cmp r3, r2 800ba80: d110 bne.n 800baa4 { /* USER CODE BEGIN RTC_MspInit 0 */ /* USER CODE END RTC_MspInit 0 */ HAL_PWR_EnableBkUpAccess(); 800ba82: f004 ff69 bl 8010958 /* Enable BKP CLK enable for backup registers */ __HAL_RCC_BKP_CLK_ENABLE(); 800ba86: 4b0a ldr r3, [pc, #40] @ (800bab0 ) 800ba88: 69db ldr r3, [r3, #28] 800ba8a: 4a09 ldr r2, [pc, #36] @ (800bab0 ) 800ba8c: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 800ba90: 61d3 str r3, [r2, #28] 800ba92: 4b07 ldr r3, [pc, #28] @ (800bab0 ) 800ba94: 69db ldr r3, [r3, #28] 800ba96: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 800ba9a: 60fb str r3, [r7, #12] 800ba9c: 68fb ldr r3, [r7, #12] /* RTC clock enable */ __HAL_RCC_RTC_ENABLE(); 800ba9e: 4b05 ldr r3, [pc, #20] @ (800bab4 ) 800baa0: 2201 movs r2, #1 800baa2: 601a str r2, [r3, #0] /* USER CODE BEGIN RTC_MspInit 1 */ /* USER CODE END RTC_MspInit 1 */ } } 800baa4: bf00 nop 800baa6: 3710 adds r7, #16 800baa8: 46bd mov sp, r7 800baaa: bd80 pop {r7, pc} 800baac: 40002800 .word 0x40002800 800bab0: 40021000 .word 0x40021000 800bab4: 4242043c .word 0x4242043c 0800bab8 : CCS_ConnectorState_t CCS_ConnectorState = CCS_UNKNOWN; ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len); static void CCS_UART3_Watchdog(void); ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800bab8: 4602 mov r2, r0 if (err == HAL_UART_ERROR_NONE) { 800baba: b359 cbz r1, 800bb14 ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800babc: b570 push {r4, r5, r6, lr} 800babe: 460c mov r4, r1 log_printf(LOG_ERR, "UART%u HAL error decode: NONE\n", uart_num); return; } log_printf(LOG_ERR, "UART%u HAL error decode: %s%s%s%s%s%s raw=0x%08lx\n", 800bac0: 07cb lsls r3, r1, #31 800bac2: bf58 it pl 800bac4: 4915 ldrpl r1, [pc, #84] @ (800bb1c ) 800bac6: 4d15 ldr r5, [pc, #84] @ (800bb1c ) 800bac8: bf48 it mi 800baca: 4914 ldrmi r1, [pc, #80] @ (800bb1c ) ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800bacc: b086 sub sp, #24 log_printf(LOG_ERR, "UART%u HAL error decode: %s%s%s%s%s%s raw=0x%08lx\n", 800bace: bf54 ite pl 800bad0: 460b movpl r3, r1 800bad2: 4b13 ldrmi r3, [pc, #76] @ (800bb20 ) 800bad4: f014 0f02 tst.w r4, #2 800bad8: 9104 str r1, [sp, #16] 800bada: 4912 ldr r1, [pc, #72] @ (800bb24 ) 800badc: bf08 it eq 800bade: 4629 moveq r1, r5 800bae0: f014 0f04 tst.w r4, #4 800bae4: 4810 ldr r0, [pc, #64] @ (800bb28 ) 800bae6: bf08 it eq 800bae8: 4628 moveq r0, r5 800baea: f014 0f08 tst.w r4, #8 800baee: 9001 str r0, [sp, #4] 800baf0: 480e ldr r0, [pc, #56] @ (800bb2c ) 800baf2: 4e0f ldr r6, [pc, #60] @ (800bb30 ) 800baf4: bf08 it eq 800baf6: 462e moveq r6, r5 800baf8: f014 0f10 tst.w r4, #16 800bafc: bf18 it ne 800bafe: 4605 movne r5, r0 800bb00: 9100 str r1, [sp, #0] 800bb02: e9cd 6502 strd r6, r5, [sp, #8] 800bb06: 490b ldr r1, [pc, #44] @ (800bb34 ) 800bb08: 9405 str r4, [sp, #20] 800bb0a: 2004 movs r0, #4 800bb0c: f7fe fce8 bl 800a4e0 (err & HAL_UART_ERROR_INVALID_CALLBACK) ? "INV_CB " : "", #else "", #endif (unsigned long)err); } 800bb10: b006 add sp, #24 800bb12: bd70 pop {r4, r5, r6, pc} log_printf(LOG_ERR, "UART%u HAL error decode: NONE\n", uart_num); 800bb14: 2004 movs r0, #4 800bb16: 4908 ldr r1, [pc, #32] @ (800bb38 ) 800bb18: f7fe bce2 b.w 800a4e0 800bb1c: 08016fac .word 0x08016fac 800bb20: 08016c2c .word 0x08016c2c 800bb24: 08016c30 .word 0x08016c30 800bb28: 08016c34 .word 0x08016c34 800bb2c: 08016c40 .word 0x08016c40 800bb30: 08016c38 .word 0x08016c38 800bb34: 08016c68 .word 0x08016c68 800bb38: 08016c48 .word 0x08016c48 0800bb3c : ISR_FAST static void uart3_arm_rx_or_log(const char *where) { 800bb3c: b530 push {r4, r5, lr} HAL_StatusTypeDef st = HAL_UARTEx_ReceiveToIdle_IT(&huart3, rx_buffer, sizeof(rx_buffer)); 800bb3e: f44f 7280 mov.w r2, #256 @ 0x100 ISR_FAST static void uart3_arm_rx_or_log(const char *where) { 800bb42: 4605 mov r5, r0 800bb44: b083 sub sp, #12 HAL_StatusTypeDef st = HAL_UARTEx_ReceiveToIdle_IT(&huart3, rx_buffer, sizeof(rx_buffer)); 800bb46: 4910 ldr r1, [pc, #64] @ (800bb88 ) 800bb48: 4810 ldr r0, [pc, #64] @ (800bb8c ) 800bb4a: f007 f9b8 bl 8012ebe if (st == HAL_OK) { 800bb4e: b908 cbnz r0, 800bb54 where, (int)st, (unsigned long)err_after); uart3_log_hal_error(3u, err_after); if (err_after != HAL_UART_ERROR_NONE) { (void)HAL_UART_Abort_IT(&huart3); } } 800bb50: b003 add sp, #12 800bb52: bd30 pop {r4, r5, pc} uint32_t err_after = HAL_UART_GetError(&huart3); 800bb54: 4604 mov r4, r0 800bb56: 480d ldr r0, [pc, #52] @ (800bb8c ) 800bb58: f007 fdc6 bl 80136e8 800bb5c: 4602 mov r2, r0 log_printf(LOG_ERR, 800bb5e: 4623 mov r3, r4 uint32_t err_after = HAL_UART_GetError(&huart3); 800bb60: 4614 mov r4, r2 log_printf(LOG_ERR, 800bb62: 490b ldr r1, [pc, #44] @ (800bb90 ) 800bb64: 2004 movs r0, #4 800bb66: 462a mov r2, r5 800bb68: 9400 str r4, [sp, #0] 800bb6a: f7fe fcb9 bl 800a4e0 uart3_log_hal_error(3u, err_after); 800bb6e: 4621 mov r1, r4 800bb70: 2003 movs r0, #3 800bb72: f7ff ffa1 bl 800bab8 if (err_after != HAL_UART_ERROR_NONE) { 800bb76: 2c00 cmp r4, #0 800bb78: d0ea beq.n 800bb50 (void)HAL_UART_Abort_IT(&huart3); 800bb7a: 4804 ldr r0, [pc, #16] @ (800bb8c ) } 800bb7c: b003 add sp, #12 800bb7e: e8bd 4030 ldmia.w sp!, {r4, r5, lr} (void)HAL_UART_Abort_IT(&huart3); 800bb82: f007 b9f9 b.w 8012f78 800bb86: bf00 nop 800bb88: 200009b0 .word 0x200009b0 800bb8c: 2000122c .word 0x2000122c 800bb90: 08016c9c .word 0x08016c9c 0800bb94 : ISR_FAST void CCS_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size) { 800bb94: b538 push {r3, r4, r5, lr} if (huart != &huart3) { 800bb96: 4b1a ldr r3, [pc, #104] @ (800bc00 ) ISR_FAST void CCS_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size) { 800bb98: 460c mov r4, r1 if (huart != &huart3) { 800bb9a: 4283 cmp r3, r0 800bb9c: d113 bne.n 800bbc6 log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", (unsigned)size); return; } if (size == 0u) { 800bb9e: b329 cbz r1, 800bbec log_printf(LOG_WARN, "UART3 RX drop: RxEvent size=0 (idle, no payload)\n"); uart3_arm_rx_or_log("RxEventCallback"); return; } if (size > sizeof(rx_buffer)) { 800bba0: f5b1 7f80 cmp.w r1, #256 @ 0x100 800bba4: d816 bhi.n 800bbd4 log_printf(LOG_ERR, "UART3 RX drop: size=%u > rx_buffer %u (overflow, not parsed)\n", (unsigned)size, (unsigned)sizeof(rx_buffer)); uart3_arm_rx_or_log("RxEventCallback"); return; } uart3_last_packet_tick = HAL_GetTick(); 800bba6: f002 fa43 bl 800e030 800bbaa: 4603 mov r3, r0 800bbac: 4d15 ldr r5, [pc, #84] @ (800bc04 ) uart3_last_reinit_tick = uart3_last_packet_tick; 800bbae: 4a16 ldr r2, [pc, #88] @ (800bc08 ) process_received_packet(rx_buffer, size); 800bbb0: 4621 mov r1, r4 800bbb2: 4816 ldr r0, [pc, #88] @ (800bc0c ) uart3_last_packet_tick = HAL_GetTick(); 800bbb4: 602b str r3, [r5, #0] uart3_last_reinit_tick = uart3_last_packet_tick; 800bbb6: 6013 str r3, [r2, #0] process_received_packet(rx_buffer, size); 800bbb8: f000 fd9c bl 800c6f4 uart3_arm_rx_or_log("RxEventCallback"); } 800bbbc: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bbc0: 4813 ldr r0, [pc, #76] @ (800bc10 ) 800bbc2: f7ff bfbb b.w 800bb3c log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", 800bbc6: 460a mov r2, r1 } 800bbc8: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", 800bbcc: 2005 movs r0, #5 800bbce: 4911 ldr r1, [pc, #68] @ (800bc14 ) 800bbd0: f7fe bc86 b.w 800a4e0 log_printf(LOG_ERR, "UART3 RX drop: size=%u > rx_buffer %u (overflow, not parsed)\n", 800bbd4: f44f 7380 mov.w r3, #256 @ 0x100 800bbd8: 460a mov r2, r1 800bbda: 2004 movs r0, #4 800bbdc: 490e ldr r1, [pc, #56] @ (800bc18 ) 800bbde: f7fe fc7f bl 800a4e0 } 800bbe2: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bbe6: 480a ldr r0, [pc, #40] @ (800bc10 ) 800bbe8: f7ff bfa8 b.w 800bb3c log_printf(LOG_WARN, "UART3 RX drop: RxEvent size=0 (idle, no payload)\n"); 800bbec: 2005 movs r0, #5 800bbee: 490b ldr r1, [pc, #44] @ (800bc1c ) 800bbf0: f7fe fc76 bl 800a4e0 } 800bbf4: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bbf8: 4805 ldr r0, [pc, #20] @ (800bc10 ) 800bbfa: f7ff bf9f b.w 800bb3c 800bbfe: bf00 nop 800bc00: 2000122c .word 0x2000122c 800bc04: 20000bc0 .word 0x20000bc0 800bc08: 20000bc4 .word 0x20000bc4 800bc0c: 200009b0 .word 0x200009b0 800bc10: 08016d48 .word 0x08016d48 800bc14: 08016cd8 .word 0x08016cd8 800bc18: 08016d58 .word 0x08016d58 800bc1c: 08016d14 .word 0x08016d14 0800bc20 : ISR_FAST void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { 800bc20: b5f8 push {r3, r4, r5, r6, r7, lr} 800bc22: 4604 mov r4, r0 uint32_t error = HAL_UART_GetError(huart); 800bc24: f007 fd60 bl 80136e8 uint8_t uart_num = 800bc28: 4b1f ldr r3, [pc, #124] @ (800bca8 ) uint32_t error = HAL_UART_GetError(huart); 800bc2a: 4605 mov r5, r0 uint8_t uart_num = 800bc2c: 429c cmp r4, r3 800bc2e: d014 beq.n 800bc5a 800bc30: 4e1e ldr r6, [pc, #120] @ (800bcac ) 800bc32: 42b4 cmp r4, r6 800bc34: d023 beq.n 800bc7e 800bc36: 4b1e ldr r3, [pc, #120] @ (800bcb0 ) 800bc38: 429c cmp r4, r3 800bc3a: d032 beq.n 800bca2 (huart == &huart2) ? 2 : (huart == &huart3) ? 3 : (huart == &huart5) ? 5 : 0; log_printf(LOG_ERR, 800bc3c: 4603 mov r3, r0 800bc3e: 2200 movs r2, #0 800bc40: 491c ldr r1, [pc, #112] @ (800bcb4 ) 800bc42: 2004 movs r0, #4 800bc44: f7fe fc4c bl 800a4e0 "UART%u HAL error (ISR): raw=0x%08lx — RX may be corrupted until re-arm\n", uart_num, (unsigned long)error); uart3_log_hal_error(uart_num, error); 800bc48: 4629 mov r1, r5 800bc4a: 2000 movs r0, #0 800bc4c: f7ff ff34 bl 800bab8 (void)HAL_UART_Abort_IT(huart); 800bc50: 4620 mov r0, r4 if (huart == &huart3) { uart3_arm_rx_or_log("ErrorCallback"); } } 800bc52: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} (void)HAL_UART_Abort_IT(huart); 800bc56: f007 b98f b.w 8012f78 800bc5a: 2202 movs r2, #2 uint8_t uart_num = 800bc5c: 4617 mov r7, r2 800bc5e: 4e13 ldr r6, [pc, #76] @ (800bcac ) log_printf(LOG_ERR, 800bc60: 462b mov r3, r5 800bc62: 4914 ldr r1, [pc, #80] @ (800bcb4 ) 800bc64: 2004 movs r0, #4 800bc66: f7fe fc3b bl 800a4e0 uart3_log_hal_error(uart_num, error); 800bc6a: 4629 mov r1, r5 800bc6c: 4638 mov r0, r7 800bc6e: f7ff ff23 bl 800bab8 (void)HAL_UART_Abort_IT(huart); 800bc72: 4620 mov r0, r4 800bc74: f007 f980 bl 8012f78 if (huart == &huart3) { 800bc78: 42b4 cmp r4, r6 800bc7a: d00d beq.n 800bc98 } 800bc7c: bdf8 pop {r3, r4, r5, r6, r7, pc} log_printf(LOG_ERR, 800bc7e: 4603 mov r3, r0 800bc80: 2203 movs r2, #3 800bc82: 490c ldr r1, [pc, #48] @ (800bcb4 ) 800bc84: 2004 movs r0, #4 800bc86: f7fe fc2b bl 800a4e0 uart3_log_hal_error(uart_num, error); 800bc8a: 2003 movs r0, #3 800bc8c: 4629 mov r1, r5 800bc8e: f7ff ff13 bl 800bab8 (void)HAL_UART_Abort_IT(huart); 800bc92: 4620 mov r0, r4 800bc94: f007 f970 bl 8012f78 } 800bc98: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} uart3_arm_rx_or_log("ErrorCallback"); 800bc9c: 4806 ldr r0, [pc, #24] @ (800bcb8 ) 800bc9e: f7ff bf4d b.w 800bb3c 800bca2: 2205 movs r2, #5 uint8_t uart_num = 800bca4: 4617 mov r7, r2 800bca6: e7db b.n 800bc60 800bca8: 200011e4 .word 0x200011e4 800bcac: 2000122c .word 0x2000122c 800bcb0: 20001154 .word 0x20001154 800bcb4: 08016d98 .word 0x08016d98 800bcb8: 08016de4 .word 0x08016de4 0800bcbc : void CCS_SerialLoop(void) { 800bcbc: b580 push {r7, lr} 800bcbe: b082 sub sp, #8 800bcc0: af00 add r7, sp, #0 static uint32_t replug_watchdog1_tick = 0; static uint32_t last_state_sent = 0; static uint32_t force_unlock_tick = 0; static uint32_t stop_tick = 0; if ((&huart3)->RxState == HAL_UART_STATE_READY) { 800bcc2: 4ba6 ldr r3, [pc, #664] @ (800bf5c ) 800bcc4: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800bcc8: b2db uxtb r3, r3 800bcca: 2b20 cmp r3, #32 800bccc: d102 bne.n 800bcd4 uart3_arm_rx_or_log("SerialLoop"); 800bcce: 48a4 ldr r0, [pc, #656] @ (800bf60 ) 800bcd0: f7ff ff34 bl 800bb3c } CCS_UART3_Watchdog(); 800bcd4: f000 fd7c bl 800c7d0 if (CONN.connControl != CMD_NONE) { 800bcd8: 4ba2 ldr r3, [pc, #648] @ (800bf64 ) 800bcda: 781b ldrb r3, [r3, #0] 800bcdc: 2b00 cmp r3, #0 800bcde: d003 beq.n 800bce8 last_cmd = CONN.connControl; 800bce0: 4ba0 ldr r3, [pc, #640] @ (800bf64 ) 800bce2: 781a ldrb r2, [r3, #0] 800bce4: 4ba0 ldr r3, [pc, #640] @ (800bf68 ) 800bce6: 701a strb r2, [r3, #0] } if (CONN.connControl == CMD_FORCE_UNLOCK) { 800bce8: 4b9e ldr r3, [pc, #632] @ (800bf64 ) 800bcea: 781b ldrb r3, [r3, #0] 800bcec: 2b03 cmp r3, #3 800bcee: d11a bne.n 800bd26 if (force_unlock_tick == 0) { 800bcf0: 4b9e ldr r3, [pc, #632] @ (800bf6c ) 800bcf2: 681b ldr r3, [r3, #0] 800bcf4: 2b00 cmp r3, #0 800bcf6: d105 bne.n 800bd04 force_unlock_tick = HAL_GetTick(); 800bcf8: f002 f99a bl 800e030 800bcfc: 4603 mov r3, r0 800bcfe: 4a9b ldr r2, [pc, #620] @ (800bf6c ) 800bd00: 6013 str r3, [r2, #0] 800bd02: e013 b.n 800bd2c } else if ((HAL_GetTick() - force_unlock_tick) >= 10000) { 800bd04: f002 f994 bl 800e030 800bd08: 4602 mov r2, r0 800bd0a: 4b98 ldr r3, [pc, #608] @ (800bf6c ) 800bd0c: 681b ldr r3, [r3, #0] 800bd0e: 1ad3 subs r3, r2, r3 800bd10: f242 720f movw r2, #9999 @ 0x270f 800bd14: 4293 cmp r3, r2 800bd16: d909 bls.n 800bd2c CONN.connControl = CMD_NONE; 800bd18: 4b92 ldr r3, [pc, #584] @ (800bf64 ) 800bd1a: 2200 movs r2, #0 800bd1c: 701a strb r2, [r3, #0] force_unlock_tick = 0; 800bd1e: 4b93 ldr r3, [pc, #588] @ (800bf6c ) 800bd20: 2200 movs r2, #0 800bd22: 601a str r2, [r3, #0] 800bd24: e002 b.n 800bd2c } } else { force_unlock_tick = 0; 800bd26: 4b91 ldr r3, [pc, #580] @ (800bf6c ) 800bd28: 2200 movs r2, #0 800bd2a: 601a str r2, [r3, #0] } if (CONN.connControl == CMD_STOP) { 800bd2c: 4b8d ldr r3, [pc, #564] @ (800bf64 ) 800bd2e: 781b ldrb r3, [r3, #0] 800bd30: 2b01 cmp r3, #1 800bd32: d119 bne.n 800bd68 if (stop_tick == 0) { 800bd34: 4b8e ldr r3, [pc, #568] @ (800bf70 ) 800bd36: 681b ldr r3, [r3, #0] 800bd38: 2b00 cmp r3, #0 800bd3a: d105 bne.n 800bd48 stop_tick = HAL_GetTick(); 800bd3c: f002 f978 bl 800e030 800bd40: 4603 mov r3, r0 800bd42: 4a8b ldr r2, [pc, #556] @ (800bf70 ) 800bd44: 6013 str r3, [r2, #0] 800bd46: e012 b.n 800bd6e } else if ((HAL_GetTick() - stop_tick) >= 1000) { 800bd48: f002 f972 bl 800e030 800bd4c: 4602 mov r2, r0 800bd4e: 4b88 ldr r3, [pc, #544] @ (800bf70 ) 800bd50: 681b ldr r3, [r3, #0] 800bd52: 1ad3 subs r3, r2, r3 800bd54: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800bd58: d309 bcc.n 800bd6e CONN.connControl = CMD_NONE; 800bd5a: 4b82 ldr r3, [pc, #520] @ (800bf64 ) 800bd5c: 2200 movs r2, #0 800bd5e: 701a strb r2, [r3, #0] stop_tick = 0; 800bd60: 4b83 ldr r3, [pc, #524] @ (800bf70 ) 800bd62: 2200 movs r2, #0 800bd64: 601a str r2, [r3, #0] 800bd66: e002 b.n 800bd6e } } else { stop_tick = 0; 800bd68: 4b81 ldr r3, [pc, #516] @ (800bf70 ) 800bd6a: 2200 movs r2, #0 800bd6c: 601a str r2, [r3, #0] } if((HAL_GetTick() - last_cmd_sent) > CMD_INTERVAL){ 800bd6e: f002 f95f bl 800e030 800bd72: 4602 mov r2, r0 800bd74: 4b7f ldr r3, [pc, #508] @ (800bf74 ) 800bd76: 681b ldr r3, [r3, #0] 800bd78: 1ad3 subs r3, r2, r3 800bd7a: 2b0a cmp r3, #10 800bd7c: d95e bls.n 800be3c if ((HAL_GetTick() - last_state_sent) >= 200) { 800bd7e: f002 f957 bl 800e030 800bd82: 4602 mov r2, r0 800bd84: 4b7c ldr r3, [pc, #496] @ (800bf78 ) 800bd86: 681b ldr r3, [r3, #0] 800bd88: 1ad3 subs r3, r2, r3 800bd8a: 2bc7 cmp r3, #199 @ 0xc7 800bd8c: d906 bls.n 800bd9c send_state(); 800bd8e: f000 fb85 bl 800c49c last_state_sent = HAL_GetTick(); 800bd92: f002 f94d bl 800e030 800bd96: 4603 mov r3, r0 800bd98: 4a77 ldr r2, [pc, #476] @ (800bf78 ) 800bd9a: 6013 str r3, [r2, #0] } if (ESTOP) { 800bd9c: 4b77 ldr r3, [pc, #476] @ (800bf7c ) 800bd9e: 781b ldrb r3, [r3, #0] 800bda0: 2b00 cmp r3, #0 800bda2: d008 beq.n 800bdb6 log_printf(LOG_ERR, "ESTOP triggered\n"); 800bda4: 4976 ldr r1, [pc, #472] @ (800bf80 ) 800bda6: 2004 movs r0, #4 800bda8: f7fe fb9a bl 800a4e0 CCS_SendEmergencyStop(); 800bdac: f000 fb16 bl 800c3dc ESTOP = 0; 800bdb0: 4b72 ldr r3, [pc, #456] @ (800bf7c ) 800bdb2: 2200 movs r2, #0 800bdb4: 701a strb r2, [r3, #0] } if (((CONN.connControl == CMD_STOP) || 800bdb6: 4b6b ldr r3, [pc, #428] @ (800bf64 ) 800bdb8: 781b ldrb r3, [r3, #0] 800bdba: 2b01 cmp r3, #1 800bdbc: d007 beq.n 800bdce (CONN.connControl == CMD_FORCE_UNLOCK) || 800bdbe: 4b69 ldr r3, [pc, #420] @ (800bf64 ) 800bdc0: 781b ldrb r3, [r3, #0] if (((CONN.connControl == CMD_STOP) || 800bdc2: 2b03 cmp r3, #3 800bdc4: d003 beq.n 800bdce (CONN.chargingError != CONN_NO_ERROR)) && 800bdc6: 4b67 ldr r3, [pc, #412] @ (800bf64 ) 800bdc8: 7f5b ldrb r3, [r3, #29] (CONN.connControl == CMD_FORCE_UNLOCK) || 800bdca: 2b00 cmp r3, #0 800bdcc: d01a beq.n 800be04 ((HAL_GetTick() - last_stop_sent) > 1000)) { 800bdce: f002 f92f bl 800e030 800bdd2: 4602 mov r2, r0 800bdd4: 4b6b ldr r3, [pc, #428] @ (800bf84 ) 800bdd6: 681b ldr r3, [r3, #0] 800bdd8: 1ad3 subs r3, r2, r3 (CONN.chargingError != CONN_NO_ERROR)) && 800bdda: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800bdde: d911 bls.n 800be04 last_stop_sent = HAL_GetTick(); 800bde0: f002 f926 bl 800e030 800bde4: 4603 mov r3, r0 800bde6: 4a67 ldr r2, [pc, #412] @ (800bf84 ) 800bde8: 6013 str r3, [r2, #0] log_printf(LOG_WARN, "Stopping charging...\n"); 800bdea: 4967 ldr r1, [pc, #412] @ (800bf88 ) 800bdec: 2005 movs r0, #5 800bdee: f7fe fb77 bl 800a4e0 if (CONN.connControl == CMD_FORCE_UNLOCK) { 800bdf2: 4b5c ldr r3, [pc, #368] @ (800bf64 ) 800bdf4: 781b ldrb r3, [r3, #0] 800bdf6: 2b03 cmp r3, #3 800bdf8: d102 bne.n 800be00 CP_SetDuty(100); 800bdfa: 2064 movs r0, #100 @ 0x64 800bdfc: f7fe f93e bl 800a07c } CCS_SendEmergencyStop(); 800be00: f000 faec bl 800c3dc } if (((CCS_EvseState == FinishedEV) || (CCS_EvseState == FinishedEVSE)) && 800be04: 4b61 ldr r3, [pc, #388] @ (800bf8c ) 800be06: 781b ldrb r3, [r3, #0] 800be08: 2b0c cmp r3, #12 800be0a: d003 beq.n 800be14 800be0c: 4b5f ldr r3, [pc, #380] @ (800bf8c ) 800be0e: 781b ldrb r3, [r3, #0] 800be10: 2b0b cmp r3, #11 800be12: d113 bne.n 800be3c ((HAL_GetTick() - last_stop_sent) > 1000)) { 800be14: f002 f90c bl 800e030 800be18: 4602 mov r2, r0 800be1a: 4b5a ldr r3, [pc, #360] @ (800bf84 ) 800be1c: 681b ldr r3, [r3, #0] 800be1e: 1ad3 subs r3, r2, r3 if (((CCS_EvseState == FinishedEV) || (CCS_EvseState == FinishedEVSE)) && 800be20: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800be24: d90a bls.n 800be3c last_stop_sent = HAL_GetTick(); 800be26: f002 f903 bl 800e030 800be2a: 4603 mov r3, r0 800be2c: 4a55 ldr r2, [pc, #340] @ (800bf84 ) 800be2e: 6013 str r3, [r2, #0] log_printf(LOG_WARN, "FinishedEV, stopping...\n"); 800be30: 4957 ldr r1, [pc, #348] @ (800bf90 ) 800be32: 2005 movs r0, #5 800be34: f7fe fb54 bl 800a4e0 CCS_SendEmergencyStop(); 800be38: f000 fad0 bl 800c3dc } (void)replug_watchdog_tick; (void)replug_watchdog1_tick; uint8_t host_timed_out = (last_host_seen > 0 && (HAL_GetTick() - last_host_seen) > EVEREST_TIMEOUT_MS); 800be3c: 4b55 ldr r3, [pc, #340] @ (800bf94 ) 800be3e: 681b ldr r3, [r3, #0] 800be40: 2b00 cmp r3, #0 800be42: d00b beq.n 800be5c 800be44: f002 f8f4 bl 800e030 800be48: 4602 mov r2, r0 800be4a: 4b52 ldr r3, [pc, #328] @ (800bf94 ) 800be4c: 681b ldr r3, [r3, #0] 800be4e: 1ad3 subs r3, r2, r3 800be50: f241 3288 movw r2, #5000 @ 0x1388 800be54: 4293 cmp r3, r2 800be56: d901 bls.n 800be5c 800be58: 2301 movs r3, #1 800be5a: e000 b.n 800be5e 800be5c: 2300 movs r3, #0 800be5e: 71fb strb r3, [r7, #7] switch(CCS_ConnectorState){ 800be60: 4b4d ldr r3, [pc, #308] @ (800bf98 ) 800be62: 781b ldrb r3, [r3, #0] 800be64: 2b05 cmp r3, #5 800be66: f200 8111 bhi.w 800c08c 800be6a: a201 add r2, pc, #4 @ (adr r2, 800be70 ) 800be6c: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800be70: 0800be89 .word 0x0800be89 800be74: 0800beb1 .word 0x0800beb1 800be78: 0800bed9 .word 0x0800bed9 800be7c: 0800bf1d .word 0x0800bf1d 800be80: 0800bfb1 .word 0x0800bfb1 800be84: 0800c001 .word 0x0800c001 case CCS_UNKNOWN: RELAY_Write(RELAY_CP, 0); 800be88: 2100 movs r1, #0 800be8a: 2005 movs r0, #5 800be8c: f7fd fc94 bl 80097b8 CONN_SetState(Unknown); 800be90: 2000 movs r0, #0 800be92: f7fd fffb bl 8009e8c if (config_initialized && !host_timed_out) { 800be96: 4b41 ldr r3, [pc, #260] @ (800bf9c ) 800be98: 781b ldrb r3, [r3, #0] 800be9a: 2b00 cmp r3, #0 800be9c: f000 80eb beq.w 800c076 800bea0: 79fb ldrb r3, [r7, #7] 800bea2: 2b00 cmp r3, #0 800bea4: f040 80e7 bne.w 800c076 CCS_ConnectorState = CCS_UNPLUGGED; 800bea8: 4b3b ldr r3, [pc, #236] @ (800bf98 ) 800beaa: 2202 movs r2, #2 800beac: 701a strb r2, [r3, #0] } break; 800beae: e0e2 b.n 800c076 case CCS_DISABLED: RELAY_Write(RELAY_CP, 0); 800beb0: 2100 movs r1, #0 800beb2: 2005 movs r0, #5 800beb4: f7fd fc80 bl 80097b8 CONN_SetState(Disabled); 800beb8: 2002 movs r0, #2 800beba: f7fd ffe7 bl 8009e8c if ((CONN.chargingError == CONN_NO_ERROR) && !host_timed_out){ 800bebe: 4b29 ldr r3, [pc, #164] @ (800bf64 ) 800bec0: 7f5b ldrb r3, [r3, #29] 800bec2: 2b00 cmp r3, #0 800bec4: f040 80d9 bne.w 800c07a 800bec8: 79fb ldrb r3, [r7, #7] 800beca: 2b00 cmp r3, #0 800becc: f040 80d5 bne.w 800c07a CCS_ConnectorState = CCS_UNPLUGGED; 800bed0: 4b31 ldr r3, [pc, #196] @ (800bf98 ) 800bed2: 2202 movs r2, #2 800bed4: 701a strb r2, [r3, #0] } break; 800bed6: e0d0 b.n 800c07a case CCS_UNPLUGGED: RELAY_Write(RELAY_CP, 1); 800bed8: 2101 movs r1, #1 800beda: 2005 movs r0, #5 800bedc: f7fd fc6c bl 80097b8 CONN_SetState(Unplugged); 800bee0: 2001 movs r0, #1 800bee2: f7fd ffd3 bl 8009e8c if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || (cp_state_buffer == EV_STATE_C_CONN_ACTIVE)){ 800bee6: 4b2e ldr r3, [pc, #184] @ (800bfa0 ) 800bee8: 781b ldrb r3, [r3, #0] 800beea: 2b01 cmp r3, #1 800beec: d003 beq.n 800bef6 800beee: 4b2c ldr r3, [pc, #176] @ (800bfa0 ) 800bef0: 781b ldrb r3, [r3, #0] 800bef2: 2b02 cmp r3, #2 800bef4: d102 bne.n 800befc CCS_ConnectorState = CCS_AUTH_REQUIRED; 800bef6: 4b28 ldr r3, [pc, #160] @ (800bf98 ) 800bef8: 2203 movs r2, #3 800befa: 701a strb r2, [r3, #0] } if (CONN.chargingError != CONN_NO_ERROR){ 800befc: 4b19 ldr r3, [pc, #100] @ (800bf64 ) 800befe: 7f5b ldrb r3, [r3, #29] 800bf00: 2b00 cmp r3, #0 800bf02: f000 80bc beq.w 800c07e log_printf(LOG_ERR, "Charging error %d, state -> disabled\n", CONN.chargingError); 800bf06: 4b17 ldr r3, [pc, #92] @ (800bf64 ) 800bf08: 7f5b ldrb r3, [r3, #29] 800bf0a: 461a mov r2, r3 800bf0c: 4925 ldr r1, [pc, #148] @ (800bfa4 ) 800bf0e: 2004 movs r0, #4 800bf10: f7fe fae6 bl 800a4e0 CCS_ConnectorState = CCS_DISABLED; 800bf14: 4b20 ldr r3, [pc, #128] @ (800bf98 ) 800bf16: 2201 movs r2, #1 800bf18: 701a strb r2, [r3, #0] } break; 800bf1a: e0b0 b.n 800c07e case CCS_AUTH_REQUIRED: RELAY_Write(RELAY_CP, 1); 800bf1c: 2101 movs r1, #1 800bf1e: 2005 movs r0, #5 800bf20: f7fd fc4a bl 80097b8 CONN_SetState(AuthRequired); 800bf24: 2004 movs r0, #4 800bf26: f7fd ffb1 bl 8009e8c if(CONN.connControl == CMD_START){ 800bf2a: 4b0e ldr r3, [pc, #56] @ (800bf64 ) 800bf2c: 781b ldrb r3, [r3, #0] 800bf2e: 2b02 cmp r3, #2 800bf30: d106 bne.n 800bf40 log_printf(LOG_INFO, "Charging permitted, start charging\n"); 800bf32: 491d ldr r1, [pc, #116] @ (800bfa8 ) 800bf34: 2007 movs r0, #7 800bf36: f7fe fad3 bl 800a4e0 CCS_ConnectorState = CCS_CONNECTED; 800bf3a: 4b17 ldr r3, [pc, #92] @ (800bf98 ) 800bf3c: 2204 movs r2, #4 800bf3e: 701a strb r2, [r3, #0] } if (cp_state_buffer == EV_STATE_A_IDLE){ 800bf40: 4b17 ldr r3, [pc, #92] @ (800bfa0 ) 800bf42: 781b ldrb r3, [r3, #0] 800bf44: 2b00 cmp r3, #0 800bf46: f040 809c bne.w 800c082 log_printf(LOG_INFO, "Car unplugged\n"); 800bf4a: 4918 ldr r1, [pc, #96] @ (800bfac ) 800bf4c: 2007 movs r0, #7 800bf4e: f7fe fac7 bl 800a4e0 CCS_ConnectorState = CCS_UNPLUGGED; 800bf52: 4b11 ldr r3, [pc, #68] @ (800bf98 ) 800bf54: 2202 movs r2, #2 800bf56: 701a strb r2, [r3, #0] } break; 800bf58: e093 b.n 800c082 800bf5a: bf00 nop 800bf5c: 2000122c .word 0x2000122c 800bf60: 08016df4 .word 0x08016df4 800bf64: 200003b0 .word 0x200003b0 800bf68: 200009ac .word 0x200009ac 800bf6c: 20000c18 .word 0x20000c18 800bf70: 20000c1c .word 0x20000c1c 800bf74: 200009a4 .word 0x200009a4 800bf78: 20000c20 .word 0x20000c20 800bf7c: 20000bb0 .word 0x20000bb0 800bf80: 08016e00 .word 0x08016e00 800bf84: 200009a8 .word 0x200009a8 800bf88: 08016e14 .word 0x08016e14 800bf8c: 20000c14 .word 0x20000c14 800bf90: 08016e2c .word 0x08016e2c 800bf94: 20000bb4 .word 0x20000bb4 800bf98: 20000c15 .word 0x20000c15 800bf9c: 200010be .word 0x200010be 800bfa0: 20000005 .word 0x20000005 800bfa4: 08016e48 .word 0x08016e48 800bfa8: 08016e70 .word 0x08016e70 800bfac: 08016e94 .word 0x08016e94 case CCS_CONNECTED: RELAY_Write(RELAY_CP, 1); 800bfb0: 2101 movs r1, #1 800bfb2: 2005 movs r0, #5 800bfb4: f7fd fc00 bl 80097b8 if(CCS_EvseState < Preparing) { 800bfb8: 4b82 ldr r3, [pc, #520] @ (800c1c4 ) 800bfba: 781b ldrb r3, [r3, #0] 800bfbc: 2b02 cmp r3, #2 800bfbe: d803 bhi.n 800bfc8 CONN_SetState(Preparing); 800bfc0: 2003 movs r0, #3 800bfc2: f7fd ff63 bl 8009e8c 800bfc6: e004 b.n 800bfd2 } else { CONN_SetState(CCS_EvseState); 800bfc8: 4b7e ldr r3, [pc, #504] @ (800c1c4 ) 800bfca: 781b ldrb r3, [r3, #0] 800bfcc: 4618 mov r0, r3 800bfce: f7fd ff5d bl 8009e8c } if (cp_state_buffer == EV_STATE_A_IDLE){ 800bfd2: 4b7d ldr r3, [pc, #500] @ (800c1c8 ) 800bfd4: 781b ldrb r3, [r3, #0] 800bfd6: 2b00 cmp r3, #0 800bfd8: d106 bne.n 800bfe8 log_printf(LOG_INFO, "Car unplugged\n"); 800bfda: 497c ldr r1, [pc, #496] @ (800c1cc ) 800bfdc: 2007 movs r0, #7 800bfde: f7fe fa7f bl 800a4e0 CCS_ConnectorState = CCS_UNPLUGGED; 800bfe2: 4b7b ldr r3, [pc, #492] @ (800c1d0 ) 800bfe4: 2202 movs r2, #2 800bfe6: 701a strb r2, [r3, #0] } if(REPLUG > 0){ 800bfe8: 4b7a ldr r3, [pc, #488] @ (800c1d4 ) 800bfea: 781b ldrb r3, [r3, #0] 800bfec: 2b00 cmp r3, #0 800bfee: d04a beq.n 800c086 log_printf(LOG_INFO, "Replugging...\n"); 800bff0: 4979 ldr r1, [pc, #484] @ (800c1d8 ) 800bff2: 2007 movs r0, #7 800bff4: f7fe fa74 bl 800a4e0 CCS_ConnectorState = CCS_REPLUGGING; 800bff8: 4b75 ldr r3, [pc, #468] @ (800c1d0 ) 800bffa: 2205 movs r2, #5 800bffc: 701a strb r2, [r3, #0] } break; 800bffe: e042 b.n 800c086 case CCS_REPLUGGING: RELAY_Write(RELAY_CP, 0); 800c000: 2100 movs r1, #0 800c002: 2005 movs r0, #5 800c004: f7fd fbd8 bl 80097b8 CONN_SetState(Replugging); 800c008: 200d movs r0, #13 800c00a: f7fd ff3f bl 8009e8c if((HAL_GetTick() - replug_tick) > 1000){ 800c00e: f002 f80f bl 800e030 800c012: 4602 mov r2, r0 800c014: 4b71 ldr r3, [pc, #452] @ (800c1dc ) 800c016: 681b ldr r3, [r3, #0] 800c018: 1ad3 subs r3, r2, r3 800c01a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800c01e: d91a bls.n 800c056 replug_tick = HAL_GetTick(); 800c020: f002 f806 bl 800e030 800c024: 4603 mov r3, r0 800c026: 4a6d ldr r2, [pc, #436] @ (800c1dc ) 800c028: 6013 str r3, [r2, #0] if(REPLUG > 0){ 800c02a: 4b6a ldr r3, [pc, #424] @ (800c1d4 ) 800c02c: 781b ldrb r3, [r3, #0] 800c02e: 2b00 cmp r3, #0 800c030: d00a beq.n 800c048 if (REPLUG != 0xFF) REPLUG--; 800c032: 4b68 ldr r3, [pc, #416] @ (800c1d4 ) 800c034: 781b ldrb r3, [r3, #0] 800c036: 2bff cmp r3, #255 @ 0xff 800c038: d00d beq.n 800c056 800c03a: 4b66 ldr r3, [pc, #408] @ (800c1d4 ) 800c03c: 781b ldrb r3, [r3, #0] 800c03e: 3b01 subs r3, #1 800c040: b2da uxtb r2, r3 800c042: 4b64 ldr r3, [pc, #400] @ (800c1d4 ) 800c044: 701a strb r2, [r3, #0] 800c046: e006 b.n 800c056 } else { log_printf(LOG_INFO, "Replugging finished, but car unplugged\n"); 800c048: 4965 ldr r1, [pc, #404] @ (800c1e0 ) 800c04a: 2007 movs r0, #7 800c04c: f7fe fa48 bl 800a4e0 CCS_ConnectorState = CCS_UNPLUGGED; 800c050: 4b5f ldr r3, [pc, #380] @ (800c1d0 ) 800c052: 2202 movs r2, #2 800c054: 701a strb r2, [r3, #0] } } if(REPLUG == 0){ 800c056: 4b5f ldr r3, [pc, #380] @ (800c1d4 ) 800c058: 781b ldrb r3, [r3, #0] 800c05a: 2b00 cmp r3, #0 800c05c: d115 bne.n 800c08a if(cp_state_buffer == EV_STATE_B_CONN_PREP){ 800c05e: 4b5a ldr r3, [pc, #360] @ (800c1c8 ) 800c060: 781b ldrb r3, [r3, #0] 800c062: 2b01 cmp r3, #1 800c064: d111 bne.n 800c08a log_printf(LOG_INFO, "Replugging finished, car plugged, state -> auth required\n"); 800c066: 495f ldr r1, [pc, #380] @ (800c1e4 ) 800c068: 2007 movs r0, #7 800c06a: f7fe fa39 bl 800a4e0 CCS_ConnectorState = CCS_AUTH_REQUIRED; 800c06e: 4b58 ldr r3, [pc, #352] @ (800c1d0 ) 800c070: 2203 movs r2, #3 800c072: 701a strb r2, [r3, #0] } } break; 800c074: e009 b.n 800c08a break; 800c076: bf00 nop 800c078: e008 b.n 800c08c break; 800c07a: bf00 nop 800c07c: e006 b.n 800c08c break; 800c07e: bf00 nop 800c080: e004 b.n 800c08c break; 800c082: bf00 nop 800c084: e002 b.n 800c08c break; 800c086: bf00 nop 800c088: e000 b.n 800c08c break; 800c08a: bf00 nop } // If Everest timeout happened, keep safe-state and limit log frequency. // The safe-state must remain until we receive a valid packet from the host. if (everest_timed_out) { 800c08c: 4b56 ldr r3, [pc, #344] @ (800c1e8 ) 800c08e: 781b ldrb r3, [r3, #0] 800c090: 2b00 cmp r3, #0 800c092: d02b beq.n 800c0ec if (last_everest_timeout_log_tick == 0 || 800c094: 4b55 ldr r3, [pc, #340] @ (800c1ec ) 800c096: 681b ldr r3, [r3, #0] 800c098: 2b00 cmp r3, #0 800c09a: d009 beq.n 800c0b0 (HAL_GetTick() - last_everest_timeout_log_tick) >= EVEREST_TIMEOUT_MS) { 800c09c: f001 ffc8 bl 800e030 800c0a0: 4602 mov r2, r0 800c0a2: 4b52 ldr r3, [pc, #328] @ (800c1ec ) 800c0a4: 681b ldr r3, [r3, #0] 800c0a6: 1ad3 subs r3, r2, r3 if (last_everest_timeout_log_tick == 0 || 800c0a8: f241 3287 movw r2, #4999 @ 0x1387 800c0ac: 4293 cmp r3, r2 800c0ae: d908 bls.n 800c0c2 log_printf(LOG_ERR, "Everest timeout\n"); 800c0b0: 494f ldr r1, [pc, #316] @ (800c1f0 ) 800c0b2: 2004 movs r0, #4 800c0b4: f7fe fa14 bl 800a4e0 last_everest_timeout_log_tick = HAL_GetTick(); 800c0b8: f001 ffba bl 800e030 800c0bc: 4603 mov r3, r0 800c0be: 4a4b ldr r2, [pc, #300] @ (800c1ec ) 800c0c0: 6013 str r3, [r2, #0] } CONN.EnableOutput = 0; 800c0c2: 4b4c ldr r3, [pc, #304] @ (800c1f4 ) 800c0c4: 2200 movs r2, #0 800c0c6: 75da strb r2, [r3, #23] CCS_EvseState = Unknown; 800c0c8: 4b3e ldr r3, [pc, #248] @ (800c1c4 ) 800c0ca: 2200 movs r2, #0 800c0cc: 701a strb r2, [r3, #0] CP_SetDuty(100); 800c0ce: 2064 movs r0, #100 @ 0x64 800c0d0: f7fd ffd4 bl 800a07c if (CCS_ConnectorState != CCS_DISABLED && CCS_ConnectorState != CCS_UNKNOWN) { 800c0d4: 4b3e ldr r3, [pc, #248] @ (800c1d0 ) 800c0d6: 781b ldrb r3, [r3, #0] 800c0d8: 2b01 cmp r3, #1 800c0da: d05a beq.n 800c192 800c0dc: 4b3c ldr r3, [pc, #240] @ (800c1d0 ) 800c0de: 781b ldrb r3, [r3, #0] 800c0e0: 2b00 cmp r3, #0 800c0e2: d056 beq.n 800c192 CCS_ConnectorState = CCS_DISABLED; 800c0e4: 4b3a ldr r3, [pc, #232] @ (800c1d0 ) 800c0e6: 2201 movs r2, #1 800c0e8: 701a strb r2, [r3, #0] 800c0ea: e052 b.n 800c192 } } else if (last_host_seen > 0 && (HAL_GetTick() - last_host_seen) > EVEREST_TIMEOUT_MS) { 800c0ec: 4b42 ldr r3, [pc, #264] @ (800c1f8 ) 800c0ee: 681b ldr r3, [r3, #0] 800c0f0: 2b00 cmp r3, #0 800c0f2: d02f beq.n 800c154 800c0f4: f001 ff9c bl 800e030 800c0f8: 4602 mov r2, r0 800c0fa: 4b3f ldr r3, [pc, #252] @ (800c1f8 ) 800c0fc: 681b ldr r3, [r3, #0] 800c0fe: 1ad3 subs r3, r2, r3 800c100: f241 3288 movw r2, #5000 @ 0x1388 800c104: 4293 cmp r3, r2 800c106: d925 bls.n 800c154 log_printf(LOG_ERR, "Everest timeout\n"); 800c108: 4939 ldr r1, [pc, #228] @ (800c1f0 ) 800c10a: 2004 movs r0, #4 800c10c: f7fe f9e8 bl 800a4e0 everest_timed_out = 1; 800c110: 4b35 ldr r3, [pc, #212] @ (800c1e8 ) 800c112: 2201 movs r2, #1 800c114: 701a strb r2, [r3, #0] last_host_seen = HAL_GetTick(); // reset after the first timeout 800c116: f001 ff8b bl 800e030 800c11a: 4603 mov r3, r0 800c11c: 4a36 ldr r2, [pc, #216] @ (800c1f8 ) 800c11e: 6013 str r3, [r2, #0] last_everest_timeout_log_tick = HAL_GetTick(); 800c120: f001 ff86 bl 800e030 800c124: 4603 mov r3, r0 800c126: 4a31 ldr r2, [pc, #196] @ (800c1ec ) 800c128: 6013 str r3, [r2, #0] CONN.EnableOutput = 0; 800c12a: 4b32 ldr r3, [pc, #200] @ (800c1f4 ) 800c12c: 2200 movs r2, #0 800c12e: 75da strb r2, [r3, #23] CCS_EvseState = Unknown; 800c130: 4b24 ldr r3, [pc, #144] @ (800c1c4 ) 800c132: 2200 movs r2, #0 800c134: 701a strb r2, [r3, #0] CP_SetDuty(100); 800c136: 2064 movs r0, #100 @ 0x64 800c138: f7fd ffa0 bl 800a07c if (CCS_ConnectorState != CCS_DISABLED && CCS_ConnectorState != CCS_UNKNOWN) { 800c13c: 4b24 ldr r3, [pc, #144] @ (800c1d0 ) 800c13e: 781b ldrb r3, [r3, #0] 800c140: 2b01 cmp r3, #1 800c142: d025 beq.n 800c190 800c144: 4b22 ldr r3, [pc, #136] @ (800c1d0 ) 800c146: 781b ldrb r3, [r3, #0] 800c148: 2b00 cmp r3, #0 800c14a: d021 beq.n 800c190 CCS_ConnectorState = CCS_DISABLED; 800c14c: 4b20 ldr r3, [pc, #128] @ (800c1d0 ) 800c14e: 2201 movs r2, #1 800c150: 701a strb r2, [r3, #0] if (CCS_ConnectorState != CCS_DISABLED && CCS_ConnectorState != CCS_UNKNOWN) { 800c152: e01d b.n 800c190 } } else { if (last_cmd == CMD_STOP) { 800c154: 4b29 ldr r3, [pc, #164] @ (800c1fc ) 800c156: 781b ldrb r3, [r3, #0] 800c158: 2b01 cmp r3, #1 800c15a: d103 bne.n 800c164 CONN.EnableOutput = 0; 800c15c: 4b25 ldr r3, [pc, #148] @ (800c1f4 ) 800c15e: 2200 movs r2, #0 800c160: 75da strb r2, [r3, #23] 800c162: e016 b.n 800c192 } else { CONN.EnableOutput = ev_enable_output ? 1 : 0; 800c164: 4b26 ldr r3, [pc, #152] @ (800c200 ) 800c166: 781b ldrb r3, [r3, #0] 800c168: 2b00 cmp r3, #0 800c16a: bf14 ite ne 800c16c: 2301 movne r3, #1 800c16e: 2300 moveq r3, #0 800c170: b2db uxtb r3, r3 800c172: 461a mov r2, r3 800c174: 4b1f ldr r3, [pc, #124] @ (800c1f4 ) 800c176: 75da strb r2, [r3, #23] if((CONN.EnableOutput == 0) && (CONN.connState == Preparing)){ 800c178: 4b1e ldr r3, [pc, #120] @ (800c1f4 ) 800c17a: 7ddb ldrb r3, [r3, #23] 800c17c: 2b00 cmp r3, #0 800c17e: d108 bne.n 800c192 800c180: 4b1c ldr r3, [pc, #112] @ (800c1f4 ) 800c182: 785b ldrb r3, [r3, #1] 800c184: 2b03 cmp r3, #3 800c186: d104 bne.n 800c192 CONN.EnableOutput = 0; 800c188: 4b1a ldr r3, [pc, #104] @ (800c1f4 ) 800c18a: 2200 movs r2, #0 800c18c: 75da strb r2, [r3, #23] 800c18e: e000 b.n 800c192 if (CCS_ConnectorState != CCS_DISABLED && CCS_ConnectorState != CCS_UNKNOWN) { 800c190: bf00 nop } } } if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || 800c192: 4b0d ldr r3, [pc, #52] @ (800c1c8 ) 800c194: 781b ldrb r3, [r3, #0] 800c196: 2b01 cmp r3, #1 800c198: d007 beq.n 800c1aa (cp_state_buffer == EV_STATE_C_CONN_ACTIVE) || 800c19a: 4b0b ldr r3, [pc, #44] @ (800c1c8 ) 800c19c: 781b ldrb r3, [r3, #0] if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || 800c19e: 2b02 cmp r3, #2 800c1a0: d003 beq.n 800c1aa (cp_state_buffer == EV_STATE_D_CONN_ACT_VENT)) { 800c1a2: 4b09 ldr r3, [pc, #36] @ (800c1c8 ) 800c1a4: 781b ldrb r3, [r3, #0] (cp_state_buffer == EV_STATE_C_CONN_ACTIVE) || 800c1a6: 2b03 cmp r3, #3 800c1a8: d103 bne.n 800c1b2 CONN.EvConnected = 1; 800c1aa: 4b12 ldr r3, [pc, #72] @ (800c1f4 ) 800c1ac: 2201 movs r2, #1 800c1ae: 779a strb r2, [r3, #30] 800c1b0: e003 b.n 800c1ba } else { CONN.EvConnected = 0; 800c1b2: 4b10 ldr r3, [pc, #64] @ (800c1f4 ) 800c1b4: 2200 movs r2, #0 800c1b6: 779a strb r2, [r3, #30] } } 800c1b8: bf00 nop 800c1ba: bf00 nop 800c1bc: 3708 adds r7, #8 800c1be: 46bd mov sp, r7 800c1c0: bd80 pop {r7, pc} 800c1c2: bf00 nop 800c1c4: 20000c14 .word 0x20000c14 800c1c8: 20000005 .word 0x20000005 800c1cc: 08016e94 .word 0x08016e94 800c1d0: 20000c15 .word 0x20000c15 800c1d4: 20000bb1 .word 0x20000bb1 800c1d8: 08016ea4 .word 0x08016ea4 800c1dc: 20000c24 .word 0x20000c24 800c1e0: 08016eb4 .word 0x08016eb4 800c1e4: 08016edc .word 0x08016edc 800c1e8: 20000bb9 .word 0x20000bb9 800c1ec: 20000bbc .word 0x20000bbc 800c1f0: 08016f18 .word 0x08016f18 800c1f4: 200003b0 .word 0x200003b0 800c1f8: 20000bb4 .word 0x20000bb4 800c1fc: 200009ac .word 0x200009ac 800c200: 200009ad .word 0x200009ad 0800c204 : void CCS_Init(void){ 800c204: b580 push {r7, lr} 800c206: af00 add r7, sp, #0 CP_Init(); 800c208: f7fd ff16 bl 800a038 CP_SetDuty(100); 800c20c: 2064 movs r0, #100 @ 0x64 800c20e: f7fd ff35 bl 800a07c CCS_MaxLoad.maxVoltage = PSU_MAX_VOLTAGE; // 1000V 800c212: 4b11 ldr r3, [pc, #68] @ (800c258 ) 800c214: f44f 727a mov.w r2, #1000 @ 0x3e8 800c218: 801a strh r2, [r3, #0] CCS_MaxLoad.minVoltage = PSU_MIN_VOLTAGE; //150V 800c21a: 4b0f ldr r3, [pc, #60] @ (800c258 ) 800c21c: 2296 movs r2, #150 @ 0x96 800c21e: 805a strh r2, [r3, #2] CCS_MaxLoad.maxCurrent = PSU_MAX_CURRENT*10; //100A 800c220: 4b0d ldr r3, [pc, #52] @ (800c258 ) 800c222: f240 5232 movw r2, #1330 @ 0x532 800c226: 809a strh r2, [r3, #4] CCS_MaxLoad.minCurrent = PSU_MIN_CURRENT*10; //1A 800c228: 4b0b ldr r3, [pc, #44] @ (800c258 ) 800c22a: 220a movs r2, #10 800c22c: 80da strh r2, [r3, #6] CCS_MaxLoad.maxPower = PSU_MAX_POWER; //30000W 800c22e: 4b0a ldr r3, [pc, #40] @ (800c258 ) 800c230: f247 5230 movw r2, #30000 @ 0x7530 800c234: 609a str r2, [r3, #8] uart3_last_packet_tick = HAL_GetTick(); 800c236: f001 fefb bl 800e030 800c23a: 4603 mov r3, r0 800c23c: 4a07 ldr r2, [pc, #28] @ (800c25c ) 800c23e: 6013 str r3, [r2, #0] uart3_last_reinit_tick = uart3_last_packet_tick; 800c240: 4b06 ldr r3, [pc, #24] @ (800c25c ) 800c242: 681b ldr r3, [r3, #0] 800c244: 4a06 ldr r2, [pc, #24] @ (800c260 ) 800c246: 6013 str r3, [r2, #0] CCS_SendResetReason(); 800c248: f000 f8be bl 800c3c8 log_printf(LOG_INFO, "CCS init\n"); 800c24c: 4905 ldr r1, [pc, #20] @ (800c264 ) 800c24e: 2007 movs r0, #7 800c250: f7fe f946 bl 800a4e0 } 800c254: bf00 nop 800c256: bd80 pop {r7, pc} 800c258: 2000098c .word 0x2000098c 800c25c: 20000bc0 .word 0x20000bc0 800c260: 20000bc4 .word 0x20000bc4 800c264: 08016f2c .word 0x08016f2c 0800c268 : ISR_FAST static uint16_t crc16_ibm(const uint8_t* data, uint16_t length) { uint16_t crc = 0xFFFFu; for (uint16_t i = 0; i < length; i++) { 800c268: b3e9 cbz r1, 800c2e6 800c26a: 4684 mov ip, r0 ISR_FAST static uint16_t crc16_ibm(const uint8_t* data, uint16_t length) { 800c26c: b500 push {lr} 800c26e: 468e mov lr, r1 uint16_t crc = 0xFFFFu; 800c270: f64f 70ff movw r0, #65535 @ 0xffff crc ^= data[i]; for (uint8_t j = 0; j < 8; j++) { if (crc & 1u) { 800c274: 491d ldr r1, [pc, #116] @ (800c2ec ) 800c276: 44e6 add lr, ip crc ^= data[i]; 800c278: f81c 2b01 ldrb.w r2, [ip], #1 800c27c: 4042 eors r2, r0 if (crc & 1u) { 800c27e: f342 0300 sbfx r3, r2, #0, #1 800c282: 400b ands r3, r1 800c284: ea83 0352 eor.w r3, r3, r2, lsr #1 800c288: f343 0200 sbfx r2, r3, #0, #1 800c28c: 400a ands r2, r1 crc = (crc >> 1) ^ 0xA001u; } else { crc >>= 1; 800c28e: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c292: 405a eors r2, r3 800c294: f342 0300 sbfx r3, r2, #0, #1 800c298: 400b ands r3, r1 crc >>= 1; 800c29a: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c29e: 4053 eors r3, r2 800c2a0: f343 0200 sbfx r2, r3, #0, #1 800c2a4: 400a ands r2, r1 crc >>= 1; 800c2a6: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c2aa: 405a eors r2, r3 800c2ac: f342 0300 sbfx r3, r2, #0, #1 800c2b0: 400b ands r3, r1 crc >>= 1; 800c2b2: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c2b6: 4053 eors r3, r2 800c2b8: f343 0200 sbfx r2, r3, #0, #1 800c2bc: 400a ands r2, r1 crc >>= 1; 800c2be: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c2c2: 405a eors r2, r3 800c2c4: f342 0300 sbfx r3, r2, #0, #1 800c2c8: 400b ands r3, r1 crc >>= 1; 800c2ca: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c2ce: 4053 eors r3, r2 800c2d0: f343 0000 sbfx r0, r3, #0, #1 800c2d4: 4008 ands r0, r1 crc >>= 1; 800c2d6: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c2da: 4058 eors r0, r3 for (uint16_t i = 0; i < length; i++) { 800c2dc: 45e6 cmp lr, ip if (crc & 1u) { 800c2de: b280 uxth r0, r0 for (uint16_t i = 0; i < length; i++) { 800c2e0: d1ca bne.n 800c278 } } } return crc; } 800c2e2: f85d fb04 ldr.w pc, [sp], #4 uint16_t crc = 0xFFFFu; 800c2e6: f64f 70ff movw r0, #65535 @ 0xffff } 800c2ea: 4770 bx lr 800c2ec: ffffa001 .word 0xffffa001 0800c2f0 : static uint16_t CCS_BuildPacket(uint8_t cmd, const void* payload, uint16_t payload_len, uint8_t* out, uint16_t out_max) { 800c2f0: b580 push {r7, lr} 800c2f2: b086 sub sp, #24 800c2f4: af00 add r7, sp, #0 800c2f6: 60b9 str r1, [r7, #8] 800c2f8: 607b str r3, [r7, #4] 800c2fa: 4603 mov r3, r0 800c2fc: 73fb strb r3, [r7, #15] 800c2fe: 4613 mov r3, r2 800c300: 81bb strh r3, [r7, #12] uint16_t total_len = (uint16_t)(1u + payload_len + 2u); 800c302: 89bb ldrh r3, [r7, #12] 800c304: 3303 adds r3, #3 800c306: 82fb strh r3, [r7, #22] if (total_len > out_max) return 0; 800c308: 8afa ldrh r2, [r7, #22] 800c30a: 8c3b ldrh r3, [r7, #32] 800c30c: 429a cmp r2, r3 800c30e: d901 bls.n 800c314 800c310: 2300 movs r3, #0 800c312: e029 b.n 800c368 out[0] = cmd; 800c314: 687b ldr r3, [r7, #4] 800c316: 7bfa ldrb r2, [r7, #15] 800c318: 701a strb r2, [r3, #0] if (payload_len && payload != NULL) { 800c31a: 89bb ldrh r3, [r7, #12] 800c31c: 2b00 cmp r3, #0 800c31e: d009 beq.n 800c334 800c320: 68bb ldr r3, [r7, #8] 800c322: 2b00 cmp r3, #0 800c324: d006 beq.n 800c334 memcpy(&out[1], payload, payload_len); 800c326: 687b ldr r3, [r7, #4] 800c328: 3301 adds r3, #1 800c32a: 89ba ldrh r2, [r7, #12] 800c32c: 68b9 ldr r1, [r7, #8] 800c32e: 4618 mov r0, r3 800c330: f008 fa5a bl 80147e8 } uint16_t crc = crc16_ibm(out, (uint16_t)(1u + payload_len)); 800c334: 89bb ldrh r3, [r7, #12] 800c336: 3301 adds r3, #1 800c338: b29b uxth r3, r3 800c33a: 4619 mov r1, r3 800c33c: 6878 ldr r0, [r7, #4] 800c33e: f7ff ff93 bl 800c268 800c342: 4603 mov r3, r0 800c344: 82bb strh r3, [r7, #20] out[1u + payload_len] = (uint8_t)(crc & 0xFFu); 800c346: 89bb ldrh r3, [r7, #12] 800c348: 3301 adds r3, #1 800c34a: 687a ldr r2, [r7, #4] 800c34c: 4413 add r3, r2 800c34e: 8aba ldrh r2, [r7, #20] 800c350: b2d2 uxtb r2, r2 800c352: 701a strb r2, [r3, #0] out[1u + payload_len + 1u] = (uint8_t)((crc >> 8) & 0xFFu); 800c354: 8abb ldrh r3, [r7, #20] 800c356: 0a1b lsrs r3, r3, #8 800c358: b299 uxth r1, r3 800c35a: 89bb ldrh r3, [r7, #12] 800c35c: 3302 adds r3, #2 800c35e: 687a ldr r2, [r7, #4] 800c360: 4413 add r3, r2 800c362: b2ca uxtb r2, r1 800c364: 701a strb r2, [r3, #0] return total_len; 800c366: 8afb ldrh r3, [r7, #22] } 800c368: 4618 mov r0, r3 800c36a: 3718 adds r7, #24 800c36c: 46bd mov sp, r7 800c36e: bd80 pop {r7, pc} 0800c370 : static void CCS_SendPacket(uint8_t cmd, const void* payload, uint16_t payload_len) { 800c370: b580 push {r7, lr} 800c372: b086 sub sp, #24 800c374: af02 add r7, sp, #8 800c376: 4603 mov r3, r0 800c378: 6039 str r1, [r7, #0] 800c37a: 71fb strb r3, [r7, #7] 800c37c: 4613 mov r3, r2 800c37e: 80bb strh r3, [r7, #4] uint16_t len = CCS_BuildPacket(cmd, payload, payload_len, tx_buffer, sizeof(tx_buffer)); 800c380: 88ba ldrh r2, [r7, #4] 800c382: 79f8 ldrb r0, [r7, #7] 800c384: f44f 7380 mov.w r3, #256 @ 0x100 800c388: 9300 str r3, [sp, #0] 800c38a: 4b0c ldr r3, [pc, #48] @ (800c3bc ) 800c38c: 6839 ldr r1, [r7, #0] 800c38e: f7ff ffaf bl 800c2f0 800c392: 4603 mov r3, r0 800c394: 81fb strh r3, [r7, #14] if (len > 0) { 800c396: 89fb ldrh r3, [r7, #14] 800c398: 2b00 cmp r3, #0 800c39a: d005 beq.n 800c3a8 HAL_UART_Transmit_IT(&huart3, tx_buffer, len); 800c39c: 89fb ldrh r3, [r7, #14] 800c39e: 461a mov r2, r3 800c3a0: 4906 ldr r1, [pc, #24] @ (800c3bc ) 800c3a2: 4807 ldr r0, [pc, #28] @ (800c3c0 ) 800c3a4: f006 fd56 bl 8012e54 } last_cmd_sent = HAL_GetTick(); 800c3a8: f001 fe42 bl 800e030 800c3ac: 4603 mov r3, r0 800c3ae: 4a05 ldr r2, [pc, #20] @ (800c3c4 ) 800c3b0: 6013 str r3, [r2, #0] } 800c3b2: bf00 nop 800c3b4: 3710 adds r7, #16 800c3b6: 46bd mov sp, r7 800c3b8: bd80 pop {r7, pc} 800c3ba: bf00 nop 800c3bc: 20000ab0 .word 0x20000ab0 800c3c0: 2000122c .word 0x2000122c 800c3c4: 200009a4 .word 0x200009a4 0800c3c8 : static void CCS_SendResetReason(void) { 800c3c8: b580 push {r7, lr} 800c3ca: af00 add r7, sp, #0 CCS_SendPacket(CMD_M2E_RESET, NULL, 0); 800c3cc: 2200 movs r2, #0 800c3ce: 2100 movs r1, #0 800c3d0: 2052 movs r0, #82 @ 0x52 800c3d2: f7ff ffcd bl 800c370 } 800c3d6: bf00 nop 800c3d8: bd80 pop {r7, pc} 800c3da: bf00 nop 0800c3dc : void CCS_SendEmergencyStop(void) { 800c3dc: b580 push {r7, lr} 800c3de: af00 add r7, sp, #0 CCS_SendPacket(CMD_M2E_ESTOP, NULL, 0); 800c3e0: 2200 movs r2, #0 800c3e2: 2100 movs r1, #0 800c3e4: 2053 movs r0, #83 @ 0x53 800c3e6: f7ff ffc3 bl 800c370 } 800c3ea: bf00 nop 800c3ec: bd80 pop {r7, pc} 800c3ee: bf00 nop 0800c3f0 : void CCS_SendStart(void) { CCS_SendPacket(CMD_M2E_START, NULL, 0); } static void CCS_CalculateEnergy(void) { 800c3f0: b580 push {r7, lr} 800c3f2: b082 sub sp, #8 800c3f4: af00 add r7, sp, #0 static uint32_t lastTick = 0; uint32_t currentTick = HAL_GetTick(); 800c3f6: f001 fe1b bl 800e030 800c3fa: 6078 str r0, [r7, #4] uint32_t elapsedTimeMs = currentTick - lastTick; 800c3fc: 4b1e ldr r3, [pc, #120] @ (800c478 ) 800c3fe: 681b ldr r3, [r3, #0] 800c400: 687a ldr r2, [r7, #4] 800c402: 1ad3 subs r3, r2, r3 800c404: 603b str r3, [r7, #0] lastTick = currentTick; 800c406: 4a1c ldr r2, [pc, #112] @ (800c478 ) 800c408: 687b ldr r3, [r7, #4] 800c40a: 6013 str r3, [r2, #0] CCS_Power = CONN.MeasuredVoltage * CONN.MeasuredCurrent / 10; 800c40c: 4b1b ldr r3, [pc, #108] @ (800c47c ) 800c40e: f8b3 3013 ldrh.w r3, [r3, #19] 800c412: b29b uxth r3, r3 800c414: 461a mov r2, r3 800c416: 4b19 ldr r3, [pc, #100] @ (800c47c ) 800c418: f8b3 3015 ldrh.w r3, [r3, #21] 800c41c: b29b uxth r3, r3 800c41e: fb02 f303 mul.w r3, r2, r3 800c422: 4a17 ldr r2, [pc, #92] @ (800c480 ) 800c424: fb82 1203 smull r1, r2, r2, r3 800c428: 1092 asrs r2, r2, #2 800c42a: 17db asrs r3, r3, #31 800c42c: 1ad3 subs r3, r2, r3 800c42e: 461a mov r2, r3 800c430: 4b14 ldr r3, [pc, #80] @ (800c484 ) 800c432: 601a str r2, [r3, #0] CCS_EnergyWs += (CCS_Power * elapsedTimeMs) / 1000; 800c434: 4b13 ldr r3, [pc, #76] @ (800c484 ) 800c436: 681b ldr r3, [r3, #0] 800c438: 683a ldr r2, [r7, #0] 800c43a: fb02 f303 mul.w r3, r2, r3 800c43e: 4a12 ldr r2, [pc, #72] @ (800c488 ) 800c440: fba2 2303 umull r2, r3, r2, r3 800c444: 099a lsrs r2, r3, #6 800c446: 4b11 ldr r3, [pc, #68] @ (800c48c ) 800c448: 681b ldr r3, [r3, #0] 800c44a: 4413 add r3, r2 800c44c: 4a0f ldr r2, [pc, #60] @ (800c48c ) 800c44e: 6013 str r3, [r2, #0] if(CCS_EvseState == Unplugged) { 800c450: 4b0f ldr r3, [pc, #60] @ (800c490 ) 800c452: 781b ldrb r3, [r3, #0] 800c454: 2b01 cmp r3, #1 800c456: d102 bne.n 800c45e CCS_EnergyWs = 0; 800c458: 4b0c ldr r3, [pc, #48] @ (800c48c ) 800c45a: 2200 movs r2, #0 800c45c: 601a str r2, [r3, #0] } CCS_Energy = CCS_EnergyWs / 3600; 800c45e: 4b0b ldr r3, [pc, #44] @ (800c48c ) 800c460: 681b ldr r3, [r3, #0] 800c462: 4a0c ldr r2, [pc, #48] @ (800c494 ) 800c464: fba2 2303 umull r2, r3, r2, r3 800c468: 0adb lsrs r3, r3, #11 800c46a: 4a0b ldr r2, [pc, #44] @ (800c498 ) 800c46c: 6013 str r3, [r2, #0] } 800c46e: bf00 nop 800c470: 3708 adds r7, #8 800c472: 46bd mov sp, r7 800c474: bd80 pop {r7, pc} 800c476: bf00 nop 800c478: 20000c28 .word 0x20000c28 800c47c: 200003b0 .word 0x200003b0 800c480: 66666667 .word 0x66666667 800c484: 20000998 .word 0x20000998 800c488: 10624dd3 .word 0x10624dd3 800c48c: 2000099c .word 0x2000099c 800c490: 20000c14 .word 0x20000c14 800c494: 91a2b3c5 .word 0x91a2b3c5 800c498: 200009a0 .word 0x200009a0 0800c49c : static void send_state(void) { 800c49c: b580 push {r7, lr} 800c49e: af00 add r7, sp, #0 CCS_CalculateEnergy(); 800c4a0: f7ff ffa6 bl 800c3f0 CCS_State.DutyCycle = CP_GetDuty(); 800c4a4: f7fd fe12 bl 800a0cc 800c4a8: 4603 mov r3, r0 800c4aa: 461a mov r2, r3 800c4ac: 4b2e ldr r3, [pc, #184] @ (800c568 ) 800c4ae: 701a strb r2, [r3, #0] CCS_State.OutputEnabled = PSU0.CONT_enabled; 800c4b0: 4b2e ldr r3, [pc, #184] @ (800c56c ) 800c4b2: 7ada ldrb r2, [r3, #11] 800c4b4: 4b2c ldr r3, [pc, #176] @ (800c568 ) 800c4b6: 705a strb r2, [r3, #1] CCS_State.MeasuredVoltage = (uint16_t)CONN.MeasuredVoltage; 800c4b8: 4b2d ldr r3, [pc, #180] @ (800c570 ) 800c4ba: f8b3 3013 ldrh.w r3, [r3, #19] 800c4be: b29a uxth r2, r3 800c4c0: 4b29 ldr r3, [pc, #164] @ (800c568 ) 800c4c2: 805a strh r2, [r3, #2] if (fake_500_voltage_mode) { 800c4c4: 4b2b ldr r3, [pc, #172] @ (800c574 ) 800c4c6: 781b ldrb r3, [r3, #0] 800c4c8: 2b00 cmp r3, #0 800c4ca: d003 beq.n 800c4d4 CCS_State.MeasuredVoltage = FAKE_EVREQ_VOLTAGE_V; 800c4cc: 4b26 ldr r3, [pc, #152] @ (800c568 ) 800c4ce: f44f 72fa mov.w r2, #500 @ 0x1f4 800c4d2: 805a strh r2, [r3, #2] } CCS_State.MeasuredCurrent = (uint16_t)CONN.MeasuredCurrent; 800c4d4: 4b26 ldr r3, [pc, #152] @ (800c570 ) 800c4d6: f8b3 3015 ldrh.w r3, [r3, #21] 800c4da: b29a uxth r2, r3 800c4dc: 4b22 ldr r3, [pc, #136] @ (800c568 ) 800c4de: 809a strh r2, [r3, #4] CCS_State.Power = CCS_Power; 800c4e0: 4b25 ldr r3, [pc, #148] @ (800c578 ) 800c4e2: 681b ldr r3, [r3, #0] 800c4e4: 4a20 ldr r2, [pc, #128] @ (800c568 ) 800c4e6: f8c2 3006 str.w r3, [r2, #6] CCS_State.Energy = CCS_Energy; 800c4ea: 4b24 ldr r3, [pc, #144] @ (800c57c ) 800c4ec: 681b ldr r3, [r3, #0] 800c4ee: 4a1e ldr r2, [pc, #120] @ (800c568 ) 800c4f0: f8c2 300a str.w r3, [r2, #10] if(CCS_ConnectorState == CCS_CONNECTED){ 800c4f4: 4b22 ldr r3, [pc, #136] @ (800c580 ) 800c4f6: 781b ldrb r3, [r3, #0] 800c4f8: 2b04 cmp r3, #4 800c4fa: d104 bne.n 800c506 CCS_State.CpState = cp_state_buffer; 800c4fc: 4b21 ldr r3, [pc, #132] @ (800c584 ) 800c4fe: 781a ldrb r2, [r3, #0] 800c500: 4b19 ldr r3, [pc, #100] @ (800c568 ) 800c502: 74da strb r2, [r3, #19] 800c504: e002 b.n 800c50c } else { CCS_State.CpState = EV_STATE_A_IDLE; 800c506: 4b18 ldr r3, [pc, #96] @ (800c568 ) 800c508: 2200 movs r2, #0 800c50a: 74da strb r2, [r3, #19] } CCS_State.MaxVoltage = CCS_MaxLoad.maxVoltage; 800c50c: 4b1e ldr r3, [pc, #120] @ (800c588 ) 800c50e: 881a ldrh r2, [r3, #0] 800c510: 4b15 ldr r3, [pc, #84] @ (800c568 ) 800c512: 829a strh r2, [r3, #20] CCS_State.MinVoltage = CCS_MaxLoad.minVoltage; 800c514: 4b1c ldr r3, [pc, #112] @ (800c588 ) 800c516: 885a ldrh r2, [r3, #2] 800c518: 4b13 ldr r3, [pc, #76] @ (800c568 ) 800c51a: 82da strh r2, [r3, #22] CCS_State.MaxCurrent = CCS_MaxLoad.maxCurrent; 800c51c: 4b1a ldr r3, [pc, #104] @ (800c588 ) 800c51e: 889a ldrh r2, [r3, #4] 800c520: 4b11 ldr r3, [pc, #68] @ (800c568 ) 800c522: 831a strh r2, [r3, #24] CCS_State.MinCurrent = CCS_MaxLoad.minCurrent; 800c524: 4b18 ldr r3, [pc, #96] @ (800c588 ) 800c526: 88da ldrh r2, [r3, #6] 800c528: 4b0f ldr r3, [pc, #60] @ (800c568 ) 800c52a: 835a strh r2, [r3, #26] CCS_State.MaxPower = CCS_MaxLoad.maxPower; 800c52c: 4b16 ldr r3, [pc, #88] @ (800c588 ) 800c52e: 689b ldr r3, [r3, #8] 800c530: 4a0d ldr r2, [pc, #52] @ (800c568 ) 800c532: 61d3 str r3, [r2, #28] CCS_State.IsolationValid = isolation_enable; 800c534: 4b15 ldr r3, [pc, #84] @ (800c58c ) 800c536: 781a ldrb r2, [r3, #0] 800c538: 4b0b ldr r3, [pc, #44] @ (800c568 ) 800c53a: 749a strb r2, [r3, #18] CCS_State.IsolationResistance = 900000; 800c53c: 4a0a ldr r2, [pc, #40] @ (800c568 ) 800c53e: 2300 movs r3, #0 800c540: f043 437f orr.w r3, r3, #4278190080 @ 0xff000000 800c544: f443 037f orr.w r3, r3, #16711680 @ 0xff0000 800c548: f443 433b orr.w r3, r3, #47872 @ 0xbb00 800c54c: f043 03a0 orr.w r3, r3, #160 @ 0xa0 800c550: 81d3 strh r3, [r2, #14] 800c552: 2300 movs r3, #0 800c554: f043 030d orr.w r3, r3, #13 800c558: 8213 strh r3, [r2, #16] CCS_SendPacket(CMD_M2E_STATE, &CCS_State, sizeof(CCS_State)); 800c55a: 2220 movs r2, #32 800c55c: 4902 ldr r1, [pc, #8] @ (800c568 ) 800c55e: 2050 movs r0, #80 @ 0x50 800c560: f7ff ff06 bl 800c370 } 800c564: bf00 nop 800c566: bd80 pop {r7, pc} 800c568: 20000bc8 .word 0x20000bc8 800c56c: 20000904 .word 0x20000904 800c570: 200003b0 .word 0x200003b0 800c574: 20000bb8 .word 0x20000bb8 800c578: 20000998 .word 0x20000998 800c57c: 200009a0 .word 0x200009a0 800c580: 20000c15 .word 0x20000c15 800c584: 20000005 .word 0x20000005 800c588: 2000098c .word 0x2000098c 800c58c: 20000bb3 .word 0x20000bb3 0800c590 : ISR_FAST static uint16_t expected_payload_len(uint8_t cmd) { switch (cmd) { 800c590: 3840 subs r0, #64 @ 0x40 800c592: b2c0 uxtb r0, r0 800c594: 2809 cmp r0, #9 800c596: bf9a itte ls 800c598: 4b02 ldrls r3, [pc, #8] @ (800c5a4 ) 800c59a: f833 0010 ldrhls.w r0, [r3, r0, lsl #1] ISR_FAST static uint16_t expected_payload_len(uint8_t cmd) { 800c59e: f64f 70ff movwhi r0, #65535 @ 0xffff case CMD_E2M_EV_INFO: return sizeof(CCS_EvInfo_t); case CMD_E2M_EVSE_STATE: return sizeof(CONN_State_t); case CMD_E2M_KEEP_ALIVE: return 0; default: return 0xFFFFu; } } 800c5a2: 4770 bx lr 800c5a4: 08017200 .word 0x08017200 0800c5a8 : ISR_FAST static void apply_command(uint8_t cmd, const uint8_t* payload, uint16_t payload_len) { 800c5a8: b5f8 push {r3, r4, r5, r6, r7, lr} 800c5aa: 4604 mov r4, r0 800c5ac: 460e mov r6, r1 (void)payload_len; last_host_seen = HAL_GetTick(); 800c5ae: f001 fd3f bl 800e030 everest_timed_out = 0; 800c5b2: 2300 movs r3, #0 800c5b4: 4a41 ldr r2, [pc, #260] @ (800c6bc ) last_host_seen = HAL_GetTick(); 800c5b6: 4d42 ldr r5, [pc, #264] @ (800c6c0 ) everest_timed_out = 0; 800c5b8: 7013 strb r3, [r2, #0] last_everest_timeout_log_tick = 0; 800c5ba: 4a42 ldr r2, [pc, #264] @ (800c6c4 ) last_host_seen = HAL_GetTick(); 800c5bc: 6028 str r0, [r5, #0] last_everest_timeout_log_tick = 0; 800c5be: 6013 str r3, [r2, #0] switch (cmd) { 800c5c0: f1a4 0340 sub.w r3, r4, #64 @ 0x40 800c5c4: 2b09 cmp r3, #9 800c5c6: d871 bhi.n 800c6ac 800c5c8: e8df f003 tbb [pc, r3] 800c5cc: 4e5b1409 .word 0x4e5b1409 800c5d0: 2e2a1b55 .word 0x2e2a1b55 800c5d4: 054a .short 0x054a (void)payload; CP_SetDuty(pwm_duty_percent); break; } case CMD_E2M_KEEP_ALIVE: { last_host_seen = HAL_GetTick(); 800c5d6: f001 fd2b bl 800e030 800c5da: 6028 str r0, [r5, #0] log_printf(LOG_WARN, "UART3 RX warn: cmd 0x%02x CRC/len OK but no switch case (expected_payload vs apply_command)\n", cmd); break; } } 800c5dc: bdf8 pop {r3, r4, r5, r6, r7, pc} if (duty > 100) duty = 100; 800c5de: 7830 ldrb r0, [r6, #0] if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c5e0: 4b39 ldr r3, [pc, #228] @ (800c6c8 ) if (duty > 100) duty = 100; 800c5e2: 2864 cmp r0, #100 @ 0x64 800c5e4: bf28 it cs 800c5e6: 2064 movcs r0, #100 @ 0x64 if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c5e8: 781b ldrb r3, [r3, #0] pwm_duty_percent = duty; 800c5ea: 4a38 ldr r2, [pc, #224] @ (800c6cc ) if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c5ec: 2b03 cmp r3, #3 pwm_duty_percent = duty; 800c5ee: 7010 strb r0, [r2, #0] if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c5f0: d143 bne.n 800c67a } 800c5f2: bdf8 pop {r3, r4, r5, r6, r7, pc} ev_enable_output = (p->enable_output != 0); 800c5f4: 7833 ldrb r3, [r6, #0] 800c5f6: 4a36 ldr r2, [pc, #216] @ (800c6d0 ) 800c5f8: 3b00 subs r3, #0 800c5fa: bf18 it ne 800c5fc: 2301 movne r3, #1 800c5fe: 7013 strb r3, [r2, #0] } 800c600: bdf8 pop {r3, r4, r5, r6, r7, pc} if (p->voltage_V == FAKE_EVREQ_VOLTAGE_V) { 800c602: 8833 ldrh r3, [r6, #0] 800c604: b29a uxth r2, r3 800c606: f5b2 7ffa cmp.w r2, #500 @ 0x1f4 800c60a: d043 beq.n 800c694 fake_500_voltage_mode = 0u; 800c60c: 2000 movs r0, #0 CONN.RequestedVoltage = p->voltage_V; 800c60e: 4a2e ldr r2, [pc, #184] @ (800c6c8 ) fake_500_voltage_mode = 0u; 800c610: 4930 ldr r1, [pc, #192] @ (800c6d4 ) CONN.RequestedVoltage = p->voltage_V; 800c612: f8a2 300f strh.w r3, [r2, #15] fake_500_voltage_mode = 0u; 800c616: 7008 strb r0, [r1, #0] CONN.WantedCurrent = p->current_0p1A; 800c618: 8873 ldrh r3, [r6, #2] 800c61a: f8a2 301b strh.w r3, [r2, #27] } 800c61e: bdf8 pop {r3, r4, r5, r6, r7, pc} isolation_enable = p->command; 800c620: 7832 ldrb r2, [r6, #0] 800c622: 4b2d ldr r3, [pc, #180] @ (800c6d8 ) 800c624: 701a strb r2, [r3, #0] } 800c626: bdf8 pop {r3, r4, r5, r6, r7, pc} memcpy(&CCS_EvInfo, payload, sizeof(CCS_EvInfo_t)); 800c628: 4f2c ldr r7, [pc, #176] @ (800c6dc ) 800c62a: 4634 mov r4, r6 800c62c: 463e mov r6, r7 800c62e: f104 0c20 add.w ip, r4, #32 800c632: 4635 mov r5, r6 800c634: 6820 ldr r0, [r4, #0] 800c636: 6861 ldr r1, [r4, #4] 800c638: 68a2 ldr r2, [r4, #8] 800c63a: 68e3 ldr r3, [r4, #12] 800c63c: 3410 adds r4, #16 800c63e: 4564 cmp r4, ip 800c640: c50f stmia r5!, {r0, r1, r2, r3} 800c642: f106 0610 add.w r6, r6, #16 800c646: d1f4 bne.n 800c632 800c648: 6861 ldr r1, [r4, #4] 800c64a: 68a2 ldr r2, [r4, #8] 800c64c: 6820 ldr r0, [r4, #0] 800c64e: c607 stmia r6!, {r0, r1, r2} CONN.SOC = (uint8_t)(CCS_EvInfo.soc / 10); 800c650: 4a23 ldr r2, [pc, #140] @ (800c6e0 ) 800c652: 887b ldrh r3, [r7, #2] 800c654: 491c ldr r1, [pc, #112] @ (800c6c8 ) 800c656: fba2 2303 umull r2, r3, r2, r3 800c65a: 08db lsrs r3, r3, #3 800c65c: 708b strb r3, [r1, #2] } 800c65e: bdf8 pop {r3, r4, r5, r6, r7, pc} CCS_EvseState = (CONN_State_t)payload[0]; 800c660: 7832 ldrb r2, [r6, #0] 800c662: 4b20 ldr r3, [pc, #128] @ (800c6e4 ) 800c664: 701a strb r2, [r3, #0] } 800c666: bdf8 pop {r3, r4, r5, r6, r7, pc} enabled = (p->enable != 0); 800c668: 7833 ldrb r3, [r6, #0] 800c66a: 4a1f ldr r2, [pc, #124] @ (800c6e8 ) 800c66c: 3b00 subs r3, #0 800c66e: bf18 it ne 800c670: 2301 movne r3, #1 800c672: 7013 strb r3, [r2, #0] } 800c674: bdf8 pop {r3, r4, r5, r6, r7, pc} CP_SetDuty(pwm_duty_percent); 800c676: 4b15 ldr r3, [pc, #84] @ (800c6cc ) 800c678: 7818 ldrb r0, [r3, #0] } 800c67a: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} CP_SetDuty(pwm_duty_percent); 800c67e: f7fd bcfd b.w 800a07c if (p->reset) { 800c682: 7833 ldrb r3, [r6, #0] 800c684: 2b00 cmp r3, #0 800c686: d0a9 beq.n 800c5dc } 800c688: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} log_printf(LOG_WARN, "Everest reset command\n"); 800c68c: 2005 movs r0, #5 800c68e: 4917 ldr r1, [pc, #92] @ (800c6ec ) 800c690: f7fd bf26 b.w 800a4e0 fake_500_voltage_mode = 1u; 800c694: 2201 movs r2, #1 CONN.RequestedVoltage = FAKE_PSU_VOLTAGE_V; 800c696: 2100 movs r1, #0 800c698: 242c movs r4, #44 @ 0x2c CONN.WantedCurrent = FAKE_PSU_CURRENT_0P1A; 800c69a: 200a movs r0, #10 fake_500_voltage_mode = 1u; 800c69c: 4d0d ldr r5, [pc, #52] @ (800c6d4 ) CONN.RequestedVoltage = FAKE_PSU_VOLTAGE_V; 800c69e: 4b0a ldr r3, [pc, #40] @ (800c6c8 ) fake_500_voltage_mode = 1u; 800c6a0: 702a strb r2, [r5, #0] CONN.RequestedVoltage = FAKE_PSU_VOLTAGE_V; 800c6a2: 741a strb r2, [r3, #16] 800c6a4: 73dc strb r4, [r3, #15] CONN.WantedCurrent = FAKE_PSU_CURRENT_0P1A; 800c6a6: 76d8 strb r0, [r3, #27] 800c6a8: 7719 strb r1, [r3, #28] } 800c6aa: bdf8 pop {r3, r4, r5, r6, r7, pc} log_printf(LOG_WARN, 800c6ac: 4622 mov r2, r4 } 800c6ae: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} log_printf(LOG_WARN, 800c6b2: 2005 movs r0, #5 800c6b4: 490e ldr r1, [pc, #56] @ (800c6f0 ) 800c6b6: f7fd bf13 b.w 800a4e0 800c6ba: bf00 nop 800c6bc: 20000bb9 .word 0x20000bb9 800c6c0: 20000bb4 .word 0x20000bb4 800c6c4: 20000bbc .word 0x20000bbc 800c6c8: 200003b0 .word 0x200003b0 800c6cc: 2000006a .word 0x2000006a 800c6d0: 200009ad .word 0x200009ad 800c6d4: 20000bb8 .word 0x20000bb8 800c6d8: 20000bb3 .word 0x20000bb3 800c6dc: 20000be8 .word 0x20000be8 800c6e0: cccccccd .word 0xcccccccd 800c6e4: 20000c14 .word 0x20000c14 800c6e8: 20000bb2 .word 0x20000bb2 800c6ec: 08016f38 .word 0x08016f38 800c6f0: 08016f50 .word 0x08016f50 0800c6f4 : ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len) { 800c6f4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} if (packet_len < 3u) { 800c6f8: 2902 cmp r1, #2 ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len) { 800c6fa: 460c mov r4, r1 800c6fc: 4605 mov r5, r0 800c6fe: b084 sub sp, #16 if (packet_len < 3u) { 800c700: d930 bls.n 800c764 uint8_t cmd = packet[0]; uint16_t payload_len = (uint16_t)(packet_len - 3u); uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | (uint16_t)packet[packet_len - 1u] << 8; 800c702: 1843 adds r3, r0, r1 uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | 800c704: f813 2c01 ldrb.w r2, [r3, #-1] 800c708: f813 7c02 ldrb.w r7, [r3, #-2] uint16_t payload_len = (uint16_t)(packet_len - 3u); 800c70c: 1ece subs r6, r1, #3 uint16_t calculated_crc = crc16_ibm(packet, (uint16_t)(1u + payload_len)); 800c70e: 3902 subs r1, #2 800c710: b289 uxth r1, r1 uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | 800c712: ea47 2702 orr.w r7, r7, r2, lsl #8 uint8_t cmd = packet[0]; 800c716: f890 8000 ldrb.w r8, [r0] uint16_t calculated_crc = crc16_ibm(packet, (uint16_t)(1u + payload_len)); 800c71a: f7ff fda5 bl 800c268 if (received_crc != calculated_crc) { 800c71e: 4287 cmp r7, r0 uint16_t payload_len = (uint16_t)(packet_len - 3u); 800c720: b2b6 uxth r6, r6 if (received_crc != calculated_crc) { 800c722: d112 bne.n 800c74a cmd, (unsigned)packet_len, (unsigned)payload_len, (unsigned)received_crc, (unsigned)calculated_crc); return 0; } uint16_t expected_len = expected_payload_len(cmd); 800c724: 4640 mov r0, r8 800c726: f7ff ff33 bl 800c590 if (expected_len == 0xFFFFu) { 800c72a: f64f 72ff movw r2, #65535 @ 0xffff 800c72e: 4290 cmp r0, r2 800c730: d03a beq.n 800c7a8 log_printf(LOG_WARN, "UART3 RX drop: unknown_cmd cmd=0x%02x total_len=%u payload_len=%u\n", cmd, (unsigned)packet_len, (unsigned)payload_len); return 0; } if (expected_len != payload_len) { 800c732: 4286 cmp r6, r0 800c734: d12a bne.n 800c78c cmd, (unsigned)expected_len, (unsigned)payload_len, (unsigned)packet_len); return 0; } if (payload_len > 0) { apply_command(cmd, &packet[1], payload_len); 800c736: 4632 mov r2, r6 if (payload_len > 0) { 800c738: b9fe cbnz r6, 800c77a } else { apply_command(cmd, NULL, 0); 800c73a: 4631 mov r1, r6 800c73c: 4640 mov r0, r8 800c73e: f7ff ff33 bl 800c5a8 } return 1; 800c742: 2001 movs r0, #1 } 800c744: b004 add sp, #16 800c746: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} log_printf(LOG_ERR, 800c74a: 9002 str r0, [sp, #8] 800c74c: 4623 mov r3, r4 800c74e: 4642 mov r2, r8 800c750: 2004 movs r0, #4 800c752: e9cd 6700 strd r6, r7, [sp] 800c756: 4918 ldr r1, [pc, #96] @ (800c7b8 ) 800c758: f7fd fec2 bl 800a4e0 return 0; 800c75c: 2000 movs r0, #0 } 800c75e: b004 add sp, #16 800c760: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} if (packet_len == 0u) { 800c764: b1d9 cbz r1, 800c79e } else if (packet_len == 1u) { 800c766: 2901 cmp r1, #1 log_printf(LOG_WARN, "UART3 RX drop: too_short len=1 b0=0x%02x\n", packet[0]); 800c768: 7802 ldrb r2, [r0, #0] 800c76a: f04f 0005 mov.w r0, #5 } else if (packet_len == 1u) { 800c76e: d009 beq.n 800c784 log_printf(LOG_WARN, "UART3 RX drop: too_short len=2 b0=0x%02x b1=0x%02x\n", 800c770: 786b ldrb r3, [r5, #1] 800c772: 4912 ldr r1, [pc, #72] @ (800c7bc ) 800c774: f7fd feb4 bl 800a4e0 800c778: e7f0 b.n 800c75c apply_command(cmd, &packet[1], payload_len); 800c77a: 4640 mov r0, r8 800c77c: 1c69 adds r1, r5, #1 800c77e: f7ff ff13 bl 800c5a8 800c782: e7de b.n 800c742 log_printf(LOG_WARN, "UART3 RX drop: too_short len=1 b0=0x%02x\n", packet[0]); 800c784: 490e ldr r1, [pc, #56] @ (800c7c0 ) 800c786: f7fd feab bl 800a4e0 800c78a: e7e7 b.n 800c75c log_printf(LOG_ERR, 800c78c: 4603 mov r3, r0 800c78e: 4642 mov r2, r8 800c790: e9cd 6400 strd r6, r4, [sp] 800c794: 490b ldr r1, [pc, #44] @ (800c7c4 ) 800c796: 2004 movs r0, #4 800c798: f7fd fea2 bl 800a4e0 return 0; 800c79c: e7de b.n 800c75c log_printf(LOG_WARN, "UART3 RX drop: too_short len=0 (empty chunk)\n"); 800c79e: 490a ldr r1, [pc, #40] @ (800c7c8 ) 800c7a0: 2005 movs r0, #5 800c7a2: f7fd fe9d bl 800a4e0 800c7a6: e7d9 b.n 800c75c log_printf(LOG_WARN, 800c7a8: 4623 mov r3, r4 800c7aa: 4642 mov r2, r8 800c7ac: 4907 ldr r1, [pc, #28] @ (800c7cc ) 800c7ae: 9600 str r6, [sp, #0] 800c7b0: 2005 movs r0, #5 800c7b2: f7fd fe95 bl 800a4e0 return 0; 800c7b6: e7d1 b.n 800c75c 800c7b8: 08017040 .word 0x08017040 800c7bc: 0801700c .word 0x0801700c 800c7c0: 08016fe0 .word 0x08016fe0 800c7c4: 080170e8 .word 0x080170e8 800c7c8: 08016fb0 .word 0x08016fb0 800c7cc: 080170a4 .word 0x080170a4 0800c7d0 : static void CCS_UART3_Watchdog(void) { 800c7d0: b580 push {r7, lr} 800c7d2: b082 sub sp, #8 800c7d4: af00 add r7, sp, #0 const uint32_t now = HAL_GetTick(); 800c7d6: f001 fc2b bl 800e030 800c7da: 6078 str r0, [r7, #4] const uint32_t since_last_packet = now - uart3_last_packet_tick; 800c7dc: 4b16 ldr r3, [pc, #88] @ (800c838 ) 800c7de: 681b ldr r3, [r3, #0] 800c7e0: 687a ldr r2, [r7, #4] 800c7e2: 1ad3 subs r3, r2, r3 800c7e4: 603b str r3, [r7, #0] if ((since_last_packet >= UART3_REINIT_TIMEOUT_MS) && 800c7e6: 683b ldr r3, [r7, #0] 800c7e8: f240 52db movw r2, #1499 @ 0x5db 800c7ec: 4293 cmp r3, r2 800c7ee: d91f bls.n 800c830 ((now - uart3_last_reinit_tick) >= UART3_REINIT_TIMEOUT_MS)) { 800c7f0: 4b12 ldr r3, [pc, #72] @ (800c83c ) 800c7f2: 681b ldr r3, [r3, #0] 800c7f4: 687a ldr r2, [r7, #4] 800c7f6: 1ad3 subs r3, r2, r3 if ((since_last_packet >= UART3_REINIT_TIMEOUT_MS) && 800c7f8: f240 52db movw r2, #1499 @ 0x5db 800c7fc: 4293 cmp r3, r2 800c7fe: d917 bls.n 800c830 (void)HAL_UART_Abort_IT(&huart3); 800c800: 480f ldr r0, [pc, #60] @ (800c840 ) 800c802: f006 fbb9 bl 8012f78 (void)HAL_UART_DeInit(&huart3); 800c806: 480e ldr r0, [pc, #56] @ (800c840 ) 800c808: f006 faf2 bl 8012df0 (void)HAL_UART_Init(&huart3); 800c80c: 480c ldr r0, [pc, #48] @ (800c840 ) 800c80e: f006 fa9f bl 8012d50 (void)HAL_UARTEx_ReceiveToIdle_IT(&huart3, rx_buffer, sizeof(rx_buffer)); 800c812: f44f 7280 mov.w r2, #256 @ 0x100 800c816: 490b ldr r1, [pc, #44] @ (800c844 ) 800c818: 4809 ldr r0, [pc, #36] @ (800c840 ) 800c81a: f006 fb50 bl 8012ebe log_printf(LOG_ERR, 800c81e: f240 52dc movw r2, #1500 @ 0x5dc 800c822: 4909 ldr r1, [pc, #36] @ (800c848 ) 800c824: 2004 movs r0, #4 800c826: f7fd fe5b bl 800a4e0 "UART3 RX recover: stalled (no RxEvent data for %ums), hard reinit\n", (unsigned)UART3_REINIT_TIMEOUT_MS); uart3_last_reinit_tick = now; 800c82a: 4a04 ldr r2, [pc, #16] @ (800c83c ) 800c82c: 687b ldr r3, [r7, #4] 800c82e: 6013 str r3, [r2, #0] } } 800c830: bf00 nop 800c832: 3708 adds r7, #8 800c834: 46bd mov sp, r7 800c836: bd80 pop {r7, pc} 800c838: 20000bc0 .word 0x20000bc0 800c83c: 20000bc4 .word 0x20000bc4 800c840: 2000122c .word 0x2000122c 800c844: 200009b0 .word 0x200009b0 800c848: 08017140 .word 0x08017140 0800c84c : .fw_version_major = 0, .fw_version_minor = 0, .fw_version_patch = 0, }; void ReadVersion(){ 800c84c: b480 push {r7} 800c84e: af00 add r7, sp, #0 infoPacket.serialNumber = InfoBlock->serialNumber; 800c850: 4b0e ldr r3, [pc, #56] @ (800c88c ) 800c852: 681b ldr r3, [r3, #0] 800c854: 681b ldr r3, [r3, #0] 800c856: b29a uxth r2, r3 800c858: 4b0d ldr r3, [pc, #52] @ (800c890 ) 800c85a: 801a strh r2, [r3, #0] infoPacket.boardVersion = InfoBlock->boardVersion; 800c85c: 4b0b ldr r3, [pc, #44] @ (800c88c ) 800c85e: 681b ldr r3, [r3, #0] 800c860: 795a ldrb r2, [r3, #5] 800c862: 4b0b ldr r3, [pc, #44] @ (800c890 ) 800c864: 709a strb r2, [r3, #2] infoPacket.stationType = InfoBlock->stationType; 800c866: 4b09 ldr r3, [pc, #36] @ (800c88c ) 800c868: 681b ldr r3, [r3, #0] 800c86a: 791a ldrb r2, [r3, #4] 800c86c: 4b08 ldr r3, [pc, #32] @ (800c890 ) 800c86e: 70da strb r2, [r3, #3] infoPacket.fw_version_major = FW_VERSION_MAJOR; 800c870: 4b07 ldr r3, [pc, #28] @ (800c890 ) 800c872: 2201 movs r2, #1 800c874: 809a strh r2, [r3, #4] infoPacket.fw_version_minor = FW_VERSION_MINOR; 800c876: 4b06 ldr r3, [pc, #24] @ (800c890 ) 800c878: 2200 movs r2, #0 800c87a: 80da strh r2, [r3, #6] infoPacket.fw_version_patch = FW_VERSION_PATCH; 800c87c: 4b04 ldr r3, [pc, #16] @ (800c890 ) 800c87e: 2210 movs r2, #16 800c880: 811a strh r2, [r3, #8] } 800c882: bf00 nop 800c884: 46bd mov sp, r7 800c886: bc80 pop {r7} 800c888: 4770 bx lr 800c88a: bf00 nop 800c88c: 20000000 .word 0x20000000 800c890: 200010b4 .word 0x200010b4 0800c894 : // Внешняя функция обработки команд (определена в serial_handler.c) extern void SC_CommandHandler(ReceivedCommand_t* cmd); void SC_Init() { 800c894: b580 push {r7, lr} 800c896: af00 add r7, sp, #0 // Обнуляем структуру memset(&serial_control, 0, sizeof(SerialControl_t)); 800c898: f44f 7204 mov.w r2, #528 @ 0x210 800c89c: 2100 movs r1, #0 800c89e: 480d ldr r0, [pc, #52] @ (800c8d4 ) 800c8a0: f007 ff5a bl 8014758 memset(&serial_iso, 0, sizeof(serial_iso)); 800c8a4: f44f 7204 mov.w r2, #528 @ 0x210 800c8a8: 2100 movs r1, #0 800c8aa: 480b ldr r0, [pc, #44] @ (800c8d8 ) 800c8ac: f007 ff54 bl 8014758 sc_uart2_timed_out = 0; 800c8b0: 4b0a ldr r3, [pc, #40] @ (800c8dc ) 800c8b2: 2200 movs r2, #0 800c8b4: 701a strb r2, [r3, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800c8b6: f001 fbbb bl 800e030 800c8ba: 4603 mov r3, r0 800c8bc: 4a08 ldr r2, [pc, #32] @ (800c8e0 ) 800c8be: 6013 str r3, [r2, #0] sc_uart2_last_reinit_tick = sc_uart2_last_packet_tick; 800c8c0: 4b07 ldr r3, [pc, #28] @ (800c8e0 ) 800c8c2: 681b ldr r3, [r3, #0] 800c8c4: 4a07 ldr r2, [pc, #28] @ (800c8e4 ) 800c8c6: 6013 str r3, [r2, #0] sc_uart2_rx_during_tx = 0; 800c8c8: 4b07 ldr r3, [pc, #28] @ (800c8e8 ) 800c8ca: 2200 movs r2, #0 800c8cc: 701a strb r2, [r3, #0] } 800c8ce: bf00 nop 800c8d0: bd80 pop {r7, pc} 800c8d2: bf00 nop 800c8d4: 20000c2c .word 0x20000c2c 800c8d8: 20000e3c .word 0x20000e3c 800c8dc: 2000104d .word 0x2000104d 800c8e0: 20001050 .word 0x20001050 800c8e4: 20001054 .word 0x20001054 800c8e8: 20001058 .word 0x20001058 0800c8ec : void SC_Task() { 800c8ec: b580 push {r7, lr} 800c8ee: af00 add r7, sp, #0 SC_UART2_Watchdog(); 800c8f0: f000 f9e8 bl 800ccc4 // Запуск приема в режиме прерывания с ожиданием idle if ((huart2.RxState == HAL_UART_STATE_READY) && (serial_control.command_ready == 0)) { 800c8f4: 4b3c ldr r3, [pc, #240] @ (800c9e8 ) 800c8f6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800c8fa: b2db uxtb r3, r3 800c8fc: 2b20 cmp r3, #32 800c8fe: d116 bne.n 800c92e 800c900: 4b3a ldr r3, [pc, #232] @ (800c9ec ) 800c902: f893 3208 ldrb.w r3, [r3, #520] @ 0x208 800c906: b2db uxtb r3, r3 800c908: 2b00 cmp r3, #0 800c90a: d110 bne.n 800c92e if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c90c: 22ff movs r2, #255 @ 0xff 800c90e: 4938 ldr r1, [pc, #224] @ (800c9f0 ) 800c910: 4835 ldr r0, [pc, #212] @ (800c9e8 ) 800c912: f006 fad4 bl 8012ebe 800c916: 4603 mov r3, r0 800c918: 2b00 cmp r3, #0 800c91a: d008 beq.n 800c92e (HAL_UART_GetError(&huart2) != HAL_UART_ERROR_NONE)) { 800c91c: 4832 ldr r0, [pc, #200] @ (800c9e8 ) 800c91e: f006 fee3 bl 80136e8 800c922: 4603 mov r3, r0 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c924: 2b00 cmp r3, #0 800c926: d002 beq.n 800c92e (void)HAL_UART_Abort_IT(&huart2); 800c928: 482f ldr r0, [pc, #188] @ (800c9e8 ) 800c92a: f006 fb25 bl 8012f78 } } if (huart5.RxState == HAL_UART_STATE_READY) { 800c92e: 4b31 ldr r3, [pc, #196] @ (800c9f4 ) 800c930: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800c934: b2db uxtb r3, r3 800c936: 2b20 cmp r3, #32 800c938: d110 bne.n 800c95c if ((HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c93a: 22ff movs r2, #255 @ 0xff 800c93c: 492e ldr r1, [pc, #184] @ (800c9f8 ) 800c93e: 482d ldr r0, [pc, #180] @ (800c9f4 ) 800c940: f006 fabd bl 8012ebe 800c944: 4603 mov r3, r0 800c946: 2b00 cmp r3, #0 800c948: d008 beq.n 800c95c (HAL_UART_GetError(&huart5) != HAL_UART_ERROR_NONE)) { 800c94a: 482a ldr r0, [pc, #168] @ (800c9f4 ) 800c94c: f006 fecc bl 80136e8 800c950: 4603 mov r3, r0 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c952: 2b00 cmp r3, #0 800c954: d002 beq.n 800c95c (void)HAL_UART_Abort_IT(&huart5); 800c956: 4827 ldr r0, [pc, #156] @ (800c9f4 ) 800c958: f006 fb0e bl 8012f78 } } // Проверка таймаута отправки пакета (больше 100 мс) if (huart2.gState == HAL_UART_STATE_BUSY_TX && serial_control.tx_tick != 0) { 800c95c: 4b22 ldr r3, [pc, #136] @ (800c9e8 ) 800c95e: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800c962: b2db uxtb r3, r3 800c964: 2b21 cmp r3, #33 @ 0x21 800c966: d119 bne.n 800c99c 800c968: 4b20 ldr r3, [pc, #128] @ (800c9ec ) 800c96a: f8d3 320c ldr.w r3, [r3, #524] @ 0x20c 800c96e: 2b00 cmp r3, #0 800c970: d014 beq.n 800c99c if ((HAL_GetTick() - serial_control.tx_tick) > 100) { 800c972: f001 fb5d bl 800e030 800c976: 4602 mov r2, r0 800c978: 4b1c ldr r3, [pc, #112] @ (800c9ec ) 800c97a: f8d3 320c ldr.w r3, [r3, #524] @ 0x20c 800c97e: 1ad3 subs r3, r2, r3 800c980: 2b64 cmp r3, #100 @ 0x64 800c982: d90b bls.n 800c99c // Таймаут: принудительно сбрасываем передачу HAL_UART_Abort_IT(&huart2); 800c984: 4818 ldr r0, [pc, #96] @ (800c9e8 ) 800c986: f006 faf7 bl 8012f78 // Выключаем DIR при сбросе передачи HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800c98a: 2200 movs r2, #0 800c98c: 2110 movs r1, #16 800c98e: 481b ldr r0, [pc, #108] @ (800c9fc ) 800c990: f003 ffc9 bl 8010926 serial_control.tx_tick = 0; // Сбрасываем tick 800c994: 4b15 ldr r3, [pc, #84] @ (800c9ec ) 800c996: 2200 movs r2, #0 800c998: f8c3 220c str.w r2, [r3, #524] @ 0x20c } } // Проверка наличия принятой команды для обработки if (serial_control.command_ready && (huart2.gState != HAL_UART_STATE_BUSY_TX)) { 800c99c: 4b13 ldr r3, [pc, #76] @ (800c9ec ) 800c99e: f893 3208 ldrb.w r3, [r3, #520] @ 0x208 800c9a2: b2db uxtb r3, r3 800c9a4: 2b00 cmp r3, #0 800c9a6: d01d beq.n 800c9e4 800c9a8: 4b0f ldr r3, [pc, #60] @ (800c9e8 ) 800c9aa: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800c9ae: b2db uxtb r3, r3 800c9b0: 2b21 cmp r3, #33 @ 0x21 800c9b2: d017 beq.n 800c9e4 // HAL_Delay(2); SC_CommandHandler(&serial_control.received_command); 800c9b4: 4812 ldr r0, [pc, #72] @ (800ca00 ) 800c9b6: f000 fa25 bl 800ce04 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c9ba: 22ff movs r2, #255 @ 0xff 800c9bc: 490c ldr r1, [pc, #48] @ (800c9f0 ) 800c9be: 480a ldr r0, [pc, #40] @ (800c9e8 ) 800c9c0: f006 fa7d bl 8012ebe 800c9c4: 4603 mov r3, r0 800c9c6: 2b00 cmp r3, #0 800c9c8: d008 beq.n 800c9dc (HAL_UART_GetError(&huart2) != HAL_UART_ERROR_NONE)) { 800c9ca: 4807 ldr r0, [pc, #28] @ (800c9e8 ) 800c9cc: f006 fe8c bl 80136e8 800c9d0: 4603 mov r3, r0 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c9d2: 2b00 cmp r3, #0 800c9d4: d002 beq.n 800c9dc (void)HAL_UART_Abort_IT(&huart2); 800c9d6: 4804 ldr r0, [pc, #16] @ (800c9e8 ) 800c9d8: f006 face bl 8012f78 } serial_control.command_ready = 0; // Сбрасываем флаг 800c9dc: 4b03 ldr r3, [pc, #12] @ (800c9ec ) 800c9de: 2200 movs r2, #0 800c9e0: f883 2208 strb.w r2, [r3, #520] @ 0x208 } } 800c9e4: bf00 nop 800c9e6: bd80 pop {r7, pc} 800c9e8: 200011e4 .word 0x200011e4 800c9ec: 20000c2c .word 0x20000c2c 800c9f0: 20000d2c .word 0x20000d2c 800c9f4: 20001154 .word 0x20001154 800c9f8: 20000f3c .word 0x20000f3c 800c9fc: 40011400 .word 0x40011400 800ca00: 20000e2c .word 0x20000e2c 0800ca04 : ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { 800ca04: b570 push {r4, r5, r6, lr} if (huart->Instance == huart2.Instance) { 800ca06: 4c28 ldr r4, [pc, #160] @ (800caa8 ) 800ca08: 6803 ldr r3, [r0, #0] 800ca0a: 6822 ldr r2, [r4, #0] ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { 800ca0c: 460d mov r5, r1 if (huart->Instance == huart2.Instance) { 800ca0e: 4293 cmp r3, r2 800ca10: d008 beq.n 800ca24 if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ SC_SendPacket(NULL, 0, RESP_INVALID); } g_sc_command_source = SC_SOURCE_UART2; HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); } else if (huart->Instance == huart5.Instance) { 800ca12: 4a26 ldr r2, [pc, #152] @ (800caac ) 800ca14: 6812 ldr r2, [r2, #0] 800ca16: 4293 cmp r3, r2 800ca18: d02c beq.n 800ca74 if (process_received_packet(&serial_iso, serial_iso.rx_buffer, Size)) { g_sc_command_source = SC_SOURCE_UART5; SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); } HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1); } else if (huart->Instance == huart3.Instance) { 800ca1a: 4a25 ldr r2, [pc, #148] @ (800cab0 ) 800ca1c: 6812 ldr r2, [r2, #0] 800ca1e: 4293 cmp r3, r2 800ca20: d024 beq.n 800ca6c CCS_RxEventCallback(huart, Size); } } 800ca22: bd70 pop {r4, r5, r6, pc} if (huart2.gState == HAL_UART_STATE_BUSY_TX) { 800ca24: f894 3041 ldrb.w r3, [r4, #65] @ 0x41 800ca28: 2b21 cmp r3, #33 @ 0x21 800ca2a: d01b beq.n 800ca64 sc_uart2_last_packet_tick = HAL_GetTick(); 800ca2c: f001 fb00 bl 800e030 sc_uart2_timed_out = 0; 800ca30: 2200 movs r2, #0 800ca32: 4b20 ldr r3, [pc, #128] @ (800cab4 ) if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800ca34: 4920 ldr r1, [pc, #128] @ (800cab8 ) sc_uart2_timed_out = 0; 800ca36: 701a strb r2, [r3, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800ca38: 4603 mov r3, r0 800ca3a: 4e20 ldr r6, [pc, #128] @ (800cabc ) sc_uart2_last_reinit_tick = sc_uart2_last_packet_tick; 800ca3c: 4c20 ldr r4, [pc, #128] @ (800cac0 ) if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800ca3e: f5a1 7080 sub.w r0, r1, #256 @ 0x100 800ca42: 462a mov r2, r5 sc_uart2_last_packet_tick = HAL_GetTick(); 800ca44: 6033 str r3, [r6, #0] sc_uart2_last_reinit_tick = sc_uart2_last_packet_tick; 800ca46: 6023 str r3, [r4, #0] if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800ca48: f000 f92e bl 800cca8 800ca4c: 4601 mov r1, r0 800ca4e: b1f8 cbz r0, 800ca90 g_sc_command_source = SC_SOURCE_UART2; 800ca50: 2400 movs r4, #0 800ca52: 4b1c ldr r3, [pc, #112] @ (800cac4 ) HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800ca54: 22ff movs r2, #255 @ 0xff g_sc_command_source = SC_SOURCE_UART2; 800ca56: 701c strb r4, [r3, #0] HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800ca58: 4917 ldr r1, [pc, #92] @ (800cab8 ) 800ca5a: 4813 ldr r0, [pc, #76] @ (800caa8 ) } 800ca5c: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800ca60: f006 ba2d b.w 8012ebe sc_uart2_rx_during_tx = 1u; 800ca64: 2201 movs r2, #1 800ca66: 4b18 ldr r3, [pc, #96] @ (800cac8 ) 800ca68: 701a strb r2, [r3, #0] 800ca6a: e7df b.n 800ca2c } 800ca6c: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} CCS_RxEventCallback(huart, Size); 800ca70: f7ff b890 b.w 800bb94 if (process_received_packet(&serial_iso, serial_iso.rx_buffer, Size)) { 800ca74: 4915 ldr r1, [pc, #84] @ (800cacc ) 800ca76: 462a mov r2, r5 800ca78: f5a1 7080 sub.w r0, r1, #256 @ 0x100 800ca7c: f000 f914 bl 800cca8 800ca80: b950 cbnz r0, 800ca98 } 800ca82: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800ca86: 22ff movs r2, #255 @ 0xff 800ca88: 4910 ldr r1, [pc, #64] @ (800cacc ) 800ca8a: 4808 ldr r0, [pc, #32] @ (800caac ) 800ca8c: f006 ba17 b.w 8012ebe SC_SendPacket(NULL, 0, RESP_INVALID); 800ca90: 2214 movs r2, #20 800ca92: f000 f8af bl 800cbf4 800ca96: e7db b.n 800ca50 g_sc_command_source = SC_SOURCE_UART5; 800ca98: 2201 movs r2, #1 800ca9a: 4b0a ldr r3, [pc, #40] @ (800cac4 ) SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); 800ca9c: 480c ldr r0, [pc, #48] @ (800cad0 ) g_sc_command_source = SC_SOURCE_UART5; 800ca9e: 701a strb r2, [r3, #0] SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); 800caa0: f000 f9b0 bl 800ce04 800caa4: e7ed b.n 800ca82 800caa6: bf00 nop 800caa8: 200011e4 .word 0x200011e4 800caac: 20001154 .word 0x20001154 800cab0: 2000122c .word 0x2000122c 800cab4: 2000104d .word 0x2000104d 800cab8: 20000d2c .word 0x20000d2c 800cabc: 20001050 .word 0x20001050 800cac0: 20001054 .word 0x20001054 800cac4: 2000104c .word 0x2000104c 800cac8: 20001058 .word 0x20001058 800cacc: 20000f3c .word 0x20000f3c 800cad0: 2000103c .word 0x2000103c 0800cad4 : ISR_FAST void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { 800cad4: b508 push {r3, lr} if (huart->Instance == huart2.Instance) { 800cad6: 4b08 ldr r3, [pc, #32] @ (800caf8 ) 800cad8: 6802 ldr r2, [r0, #0] 800cada: 681b ldr r3, [r3, #0] 800cadc: 429a cmp r2, r3 800cade: d000 beq.n 800cae2 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); serial_control.tx_tick = 0; } } 800cae0: bd08 pop {r3, pc} HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800cae2: 2200 movs r2, #0 800cae4: 2110 movs r1, #16 800cae6: 4805 ldr r0, [pc, #20] @ (800cafc ) 800cae8: f003 ff1d bl 8010926 serial_control.tx_tick = 0; 800caec: 2200 movs r2, #0 800caee: 4b04 ldr r3, [pc, #16] @ (800cb00 ) 800caf0: f8c3 220c str.w r2, [r3, #524] @ 0x20c } 800caf4: bd08 pop {r3, pc} 800caf6: bf00 nop 800caf8: 200011e4 .word 0x200011e4 800cafc: 40011400 .word 0x40011400 800cb00: 20000c2c .word 0x20000c2c 0800cb04 : // Полностью программная реализация CRC-32 (полином CRC32_POLYNOMIAL, порядок little-endian) ISR_FAST static uint32_t calculate_crc32(const uint8_t* data, uint16_t length) { uint32_t crc = 0xFFFFFFFFu; for (uint16_t i = 0; i < length; i++) { 800cb04: b3c9 cbz r1, 800cb7a uint32_t crc = 0xFFFFFFFFu; 800cb06: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff ISR_FAST static uint32_t calculate_crc32(const uint8_t* data, uint16_t length) { 800cb0a: b500 push {lr} crc ^= data[i]; for (uint8_t bit = 0; bit < 8; bit++) { if (crc & 0x1u) { 800cb0c: 4a1c ldr r2, [pc, #112] @ (800cb80 ) 800cb0e: 4401 add r1, r0 crc ^= data[i]; 800cb10: f810 eb01 ldrb.w lr, [r0], #1 800cb14: ea8e 0e03 eor.w lr, lr, r3 if (crc & 0x1u) { 800cb18: f34e 0300 sbfx r3, lr, #0, #1 800cb1c: f34e 0c40 sbfx ip, lr, #1, #1 800cb20: 4013 ands r3, r2 800cb22: ea83 035e eor.w r3, r3, lr, lsr #1 800cb26: ea0c 0c02 and.w ip, ip, r2 800cb2a: ea8c 0c53 eor.w ip, ip, r3, lsr #1 800cb2e: f343 0340 sbfx r3, r3, #1, #1 800cb32: f34c 0e40 sbfx lr, ip, #1, #1 800cb36: 4013 ands r3, r2 800cb38: ea83 035c eor.w r3, r3, ip, lsr #1 800cb3c: ea0e 0e02 and.w lr, lr, r2 800cb40: ea8e 0e53 eor.w lr, lr, r3, lsr #1 800cb44: f343 0340 sbfx r3, r3, #1, #1 800cb48: f34e 0c40 sbfx ip, lr, #1, #1 800cb4c: 4013 ands r3, r2 800cb4e: ea83 035e eor.w r3, r3, lr, lsr #1 800cb52: ea0c 0c02 and.w ip, ip, r2 800cb56: ea8c 0c53 eor.w ip, ip, r3, lsr #1 800cb5a: f343 0340 sbfx r3, r3, #1, #1 800cb5e: 4013 ands r3, r2 800cb60: f34c 0e40 sbfx lr, ip, #1, #1 800cb64: ea83 035c eor.w r3, r3, ip, lsr #1 for (uint16_t i = 0; i < length; i++) { 800cb68: 4281 cmp r1, r0 if (crc & 0x1u) { 800cb6a: ea0e 0c02 and.w ip, lr, r2 800cb6e: ea8c 0353 eor.w r3, ip, r3, lsr #1 for (uint16_t i = 0; i < length; i++) { 800cb72: d1cd bne.n 800cb10 crc >>= 1; } } } return crc ^ 0xFFFFFFFFu; 800cb74: 43d8 mvns r0, r3 } 800cb76: f85d fb04 ldr.w pc, [sp], #4 for (uint16_t i = 0; i < length; i++) { 800cb7a: 4608 mov r0, r1 } 800cb7c: 4770 bx lr 800cb7e: bf00 nop 800cb80: edb88320 .word 0xedb88320 0800cb84 : ISR_FAST static uint16_t encode_packet(const uint8_t* payload, uint16_t payload_len, uint8_t* output, uint8_t response_code) { 800cb84: b570 push {r4, r5, r6, lr} 800cb86: 4615 mov r5, r2 uint16_t out_index = 0; output[out_index++] = response_code; 800cb88: 7013 strb r3, [r2, #0] if (payload != NULL) { 800cb8a: b360 cbz r0, 800cbe6 // Просто копируем полезную нагрузку без какого‑либо экранирования for (uint16_t i = 0; i < payload_len; i++) { 800cb8c: b359 cbz r1, 800cbe6 output[out_index++] = payload[i]; 800cb8e: 4694 mov ip, r2 800cb90: 2302 movs r3, #2 800cb92: 7802 ldrb r2, [r0, #0] 800cb94: 1e4c subs r4, r1, #1 800cb96: b2a4 uxth r4, r4 800cb98: 441c add r4, r3 800cb9a: f80c 2f01 strb.w r2, [ip, #1]! // Проверка переполнения if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800cb9e: e005 b.n 800cbac output[out_index++] = payload[i]; 800cba0: f810 1f01 ldrb.w r1, [r0, #1]! if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800cba4: 2bfb cmp r3, #251 @ 0xfb output[out_index++] = payload[i]; 800cba6: f80c 1f01 strb.w r1, [ip, #1]! if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800cbaa: d020 beq.n 800cbee for (uint16_t i = 0; i < payload_len; i++) { 800cbac: 42a3 cmp r3, r4 if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800cbae: f103 0301 add.w r3, r3, #1 for (uint16_t i = 0; i < payload_len; i++) { 800cbb2: d1f5 bne.n 800cba0 800cbb4: b2a1 uxth r1, r4 output[out_index++] = payload[i]; 800cbb6: 1c4e adds r6, r1, #1 800cbb8: b2b6 uxth r6, r6 } } } // Вычисляем CRC для всего содержимого (код ответа + полезная нагрузка) uint32_t crc = calculate_crc32(output, out_index); 800cbba: 4628 mov r0, r5 800cbbc: f7ff ffa2 bl 800cb04 800cbc0: 4603 mov r3, r0 uint8_t* crc_bytes = (uint8_t*)&crc; // Добавляем CRC без экранирования for (int i = 0; i < 4; i++) { output[out_index++] = crc_bytes[i]; 800cbc2: 1c71 adds r1, r6, #1 800cbc4: 1cb2 adds r2, r6, #2 800cbc6: 552b strb r3, [r5, r4] 800cbc8: f3c3 2c07 ubfx ip, r3, #8, #8 800cbcc: f3c3 4407 ubfx r4, r3, #16, #8 800cbd0: b289 uxth r1, r1 800cbd2: b292 uxth r2, r2 800cbd4: f3c3 6307 ubfx r3, r3, #24, #8 800cbd8: f805 c006 strb.w ip, [r5, r6] 800cbdc: 1cf0 adds r0, r6, #3 800cbde: 546c strb r4, [r5, r1] 800cbe0: 54ab strb r3, [r5, r2] 800cbe2: b280 uxth r0, r0 return 0; } } return out_index; } 800cbe4: bd70 pop {r4, r5, r6, pc} for (uint16_t i = 0; i < payload_len; i++) { 800cbe6: 2401 movs r4, #1 800cbe8: 2602 movs r6, #2 output[out_index++] = response_code; 800cbea: 4621 mov r1, r4 800cbec: e7e5 b.n 800cbba return 0; 800cbee: 2000 movs r0, #0 } 800cbf0: bd70 pop {r4, r5, r6, pc} 800cbf2: bf00 nop 0800cbf4 : ISR_FAST void SC_SendPacket(const uint8_t* payload, uint16_t payload_len, uint8_t response_code) { 800cbf4: b538 push {r3, r4, r5, lr} 800cbf6: 4613 mov r3, r2 uint16_t packet_len = encode_packet(payload, payload_len, serial_control.tx_buffer, response_code); 800cbf8: 4a13 ldr r2, [pc, #76] @ (800cc48 ) 800cbfa: f7ff ffc3 bl 800cb84 if (packet_len > 0) { 800cbfe: b1c8 cbz r0, 800cc34 if (huart2.gState == HAL_UART_STATE_BUSY_TX) { 800cc00: 4604 mov r4, r0 800cc02: 4812 ldr r0, [pc, #72] @ (800cc4c ) 800cc04: f890 3041 ldrb.w r3, [r0, #65] @ 0x41 800cc08: 2b21 cmp r3, #33 @ 0x21 800cc0a: d014 beq.n 800cc36 HAL_UART_Abort_IT(&huart2); HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); } HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_SET); 800cc0c: 2201 movs r2, #1 800cc0e: 2110 movs r1, #16 800cc10: 480f ldr r0, [pc, #60] @ (800cc50 ) 800cc12: f003 fe88 bl 8010926 sc_uart2_rx_during_tx = 0u; 800cc16: f04f 0c00 mov.w ip, #0 HAL_UART_Transmit_IT(&huart2, serial_control.tx_buffer, packet_len); 800cc1a: 4d0b ldr r5, [pc, #44] @ (800cc48 ) sc_uart2_rx_during_tx = 0u; 800cc1c: 4b0d ldr r3, [pc, #52] @ (800cc54 ) HAL_UART_Transmit_IT(&huart2, serial_control.tx_buffer, packet_len); 800cc1e: 4629 mov r1, r5 800cc20: 4622 mov r2, r4 800cc22: 480a ldr r0, [pc, #40] @ (800cc4c ) sc_uart2_rx_during_tx = 0u; 800cc24: f883 c000 strb.w ip, [r3] HAL_UART_Transmit_IT(&huart2, serial_control.tx_buffer, packet_len); 800cc28: f006 f914 bl 8012e54 serial_control.tx_tick = HAL_GetTick(); 800cc2c: f001 fa00 bl 800e030 800cc30: f8c5 020c str.w r0, [r5, #524] @ 0x20c } } 800cc34: bd38 pop {r3, r4, r5, pc} HAL_UART_Abort_IT(&huart2); 800cc36: f006 f99f bl 8012f78 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800cc3a: 2200 movs r2, #0 800cc3c: 2110 movs r1, #16 800cc3e: 4804 ldr r0, [pc, #16] @ (800cc50 ) 800cc40: f003 fe71 bl 8010926 800cc44: e7e2 b.n 800cc0c 800cc46: bf00 nop 800cc48: 20000c2c .word 0x20000c2c 800cc4c: 200011e4 .word 0x200011e4 800cc50: 40011400 .word 0x40011400 800cc54: 20001058 .word 0x20001058 0800cc58 : ISR_FAST static uint8_t parse_packet(const uint8_t* packet_data, uint16_t packet_len, ReceivedCommand_t* out_cmd) { 800cc58: e92d 4178 stmdb sp!, {r3, r4, r5, r6, r8, lr} // }else{ // test_crc_invalid = 5; // } // Минимальный размер: 1 байт команды + 4 байта CRC if (packet_len < 5) return 0; 800cc5c: 1f4b subs r3, r1, #5 800cc5e: 2bfb cmp r3, #251 @ 0xfb 800cc60: d813 bhi.n 800cc8a if (packet_len > MAX_RX_BUFFER_SIZE) return 0; uint16_t payload_length = packet_len - 4; 800cc62: 3904 subs r1, #4 800cc64: b28c uxth r4, r1 // Извлекаем принятую CRC (последние 4 байта, little-endian) uint32_t received_checksum = ((uint32_t)packet_data[payload_length] << 0) | ((uint32_t)packet_data[payload_length + 1] << 8) | 800cc66: 1903 adds r3, r0, r4 ((uint32_t)packet_data[payload_length + 2] << 16) | 800cc68: 789d ldrb r5, [r3, #2] 800cc6a: 4690 mov r8, r2 ((uint32_t)packet_data[payload_length + 1] << 8) | 800cc6c: 785a ldrb r2, [r3, #1] ((uint32_t)packet_data[payload_length + 2] << 16) | 800cc6e: 042d lsls r5, r5, #16 ((uint32_t)packet_data[payload_length + 1] << 8) | 800cc70: ea45 2502 orr.w r5, r5, r2, lsl #8 ((uint32_t)packet_data[payload_length] << 0) | 800cc74: 5d02 ldrb r2, [r0, r4] ((uint32_t)packet_data[payload_length + 3] << 24); 800cc76: 78db ldrb r3, [r3, #3] ((uint32_t)packet_data[payload_length + 1] << 8) | 800cc78: 4315 orrs r5, r2 // Вычисляем CRC для полезной нагрузки uint32_t calculated_checksum = calculate_crc32(packet_data, payload_length); 800cc7a: 4621 mov r1, r4 uint32_t received_checksum = 800cc7c: ea45 6503 orr.w r5, r5, r3, lsl #24 uint32_t calculated_checksum = calculate_crc32(packet_data, payload_length); 800cc80: 4606 mov r6, r0 800cc82: f7ff ff3f bl 800cb04 if (received_checksum != calculated_checksum) return 0; // CRC не совпадает 800cc86: 4285 cmp r5, r0 800cc88: d002 beq.n 800cc90 if (packet_len < 5) return 0; 800cc8a: 2000 movs r0, #0 out_cmd->argument = (void *)&packet_data[1]; out_cmd->command = packet_data[0]; out_cmd->argument_length = (uint8_t)(payload_length - 1); return 1; } 800cc8c: e8bd 8178 ldmia.w sp!, {r3, r4, r5, r6, r8, pc} out_cmd->argument = (void *)&packet_data[1]; 800cc90: 1c73 adds r3, r6, #1 800cc92: f8c8 3004 str.w r3, [r8, #4] out_cmd->command = packet_data[0]; 800cc96: 7833 ldrb r3, [r6, #0] out_cmd->argument_length = (uint8_t)(payload_length - 1); 800cc98: 3c01 subs r4, #1 out_cmd->command = packet_data[0]; 800cc9a: f888 3000 strb.w r3, [r8] out_cmd->argument_length = (uint8_t)(payload_length - 1); 800cc9e: f888 4001 strb.w r4, [r8, #1] return 1; 800cca2: 2001 movs r0, #1 } 800cca4: e8bd 8178 ldmia.w sp!, {r3, r4, r5, r6, r8, pc} 0800cca8 : ISR_FAST static uint8_t process_received_packet(SerialControl_t *ctx, const uint8_t* packet_data, uint16_t packet_len) { 800cca8: b510 push {r4, lr} 800ccaa: 4604 mov r4, r0 if (!parse_packet(packet_data, packet_len, (ReceivedCommand_t *)&ctx->received_command)) { 800ccac: 4608 mov r0, r1 800ccae: 4611 mov r1, r2 800ccb0: f504 7200 add.w r2, r4, #512 @ 0x200 800ccb4: f7ff ffd0 bl 800cc58 800ccb8: b118 cbz r0, 800ccc2 return 0; } ctx->command_ready = 1; 800ccba: 2301 movs r3, #1 return 1; 800ccbc: 4618 mov r0, r3 ctx->command_ready = 1; 800ccbe: f884 3208 strb.w r3, [r4, #520] @ 0x208 } 800ccc2: bd10 pop {r4, pc} 0800ccc4 : static void SC_UART2_Watchdog(void) { 800ccc4: b580 push {r7, lr} 800ccc6: b082 sub sp, #8 800ccc8: af00 add r7, sp, #0 const uint32_t now = HAL_GetTick(); 800ccca: f001 f9b1 bl 800e030 800ccce: 6078 str r0, [r7, #4] const uint32_t since_last_packet = now - sc_uart2_last_packet_tick; 800ccd0: 4b37 ldr r3, [pc, #220] @ (800cdb0 ) 800ccd2: 681b ldr r3, [r3, #0] 800ccd4: 687a ldr r2, [r7, #4] 800ccd6: 1ad3 subs r3, r2, r3 800ccd8: 603b str r3, [r7, #0] if ((huart2.gState == HAL_UART_STATE_BUSY_TX) && (sc_uart2_rx_during_tx != 0u)) { 800ccda: 4b36 ldr r3, [pc, #216] @ (800cdb4 ) 800ccdc: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800cce0: b2db uxtb r3, r3 800cce2: 2b21 cmp r3, #33 @ 0x21 800cce4: d126 bne.n 800cd34 800cce6: 4b34 ldr r3, [pc, #208] @ (800cdb8 ) 800cce8: 781b ldrb r3, [r3, #0] 800ccea: b2db uxtb r3, r3 800ccec: 2b00 cmp r3, #0 800ccee: d021 beq.n 800cd34 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800ccf0: 2200 movs r2, #0 800ccf2: 2110 movs r1, #16 800ccf4: 4831 ldr r0, [pc, #196] @ (800cdbc ) 800ccf6: f003 fe16 bl 8010926 (void)HAL_UART_Abort_IT(&huart2); 800ccfa: 482e ldr r0, [pc, #184] @ (800cdb4 ) 800ccfc: f006 f93c bl 8012f78 (void)HAL_UART_DeInit(&huart2); 800cd00: 482c ldr r0, [pc, #176] @ (800cdb4 ) 800cd02: f006 f875 bl 8012df0 (void)HAL_UART_Init(&huart2); 800cd06: 482b ldr r0, [pc, #172] @ (800cdb4 ) 800cd08: f006 f822 bl 8012d50 (void)HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800cd0c: 22ff movs r2, #255 @ 0xff 800cd0e: 492c ldr r1, [pc, #176] @ (800cdc0 ) 800cd10: 4828 ldr r0, [pc, #160] @ (800cdb4 ) 800cd12: f006 f8d4 bl 8012ebe serial_control.tx_tick = 0; 800cd16: 4b2b ldr r3, [pc, #172] @ (800cdc4 ) 800cd18: 2200 movs r2, #0 800cd1a: f8c3 220c str.w r2, [r3, #524] @ 0x20c sc_uart2_rx_during_tx = 0u; 800cd1e: 4b26 ldr r3, [pc, #152] @ (800cdb8 ) 800cd20: 2200 movs r2, #0 800cd22: 701a strb r2, [r3, #0] sc_uart2_last_reinit_tick = now; 800cd24: 4a28 ldr r2, [pc, #160] @ (800cdc8 ) 800cd26: 687b ldr r3, [r7, #4] 800cd28: 6013 str r3, [r2, #0] log_printf(LOG_ERR, "USART2 BUSY_TX: hard reinit\n"); 800cd2a: 4928 ldr r1, [pc, #160] @ (800cdcc ) 800cd2c: 2004 movs r0, #4 800cd2e: f7fd fbd7 bl 800a4e0 return; 800cd32: e039 b.n 800cda8 } if (since_last_packet >= SC_UART2_PACKET_TIMEOUT_MS) { 800cd34: 683b ldr r3, [r7, #0] 800cd36: f241 3287 movw r2, #4999 @ 0x1387 800cd3a: 4293 cmp r3, r2 800cd3c: d90c bls.n 800cd58 if (sc_uart2_timed_out == 0u) { 800cd3e: 4b24 ldr r3, [pc, #144] @ (800cdd0 ) 800cd40: 781b ldrb r3, [r3, #0] 800cd42: b2db uxtb r3, r3 800cd44: 2b00 cmp r3, #0 800cd46: d103 bne.n 800cd50 serial_control.command_ready = 0; 800cd48: 4b1e ldr r3, [pc, #120] @ (800cdc4 ) 800cd4a: 2200 movs r2, #0 800cd4c: f883 2208 strb.w r2, [r3, #520] @ 0x208 } sc_uart2_timed_out = 1; 800cd50: 4b1f ldr r3, [pc, #124] @ (800cdd0 ) 800cd52: 2201 movs r2, #1 800cd54: 701a strb r2, [r3, #0] 800cd56: e002 b.n 800cd5e } else { sc_uart2_timed_out = 0; 800cd58: 4b1d ldr r3, [pc, #116] @ (800cdd0 ) 800cd5a: 2200 movs r2, #0 800cd5c: 701a strb r2, [r3, #0] } if ((since_last_packet >= SC_UART2_REINIT_TIMEOUT_MS) && 800cd5e: 683b ldr r3, [r7, #0] 800cd60: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800cd64: d320 bcc.n 800cda8 ((now - sc_uart2_last_reinit_tick) >= SC_UART2_REINIT_TIMEOUT_MS)) { 800cd66: 4b18 ldr r3, [pc, #96] @ (800cdc8 ) 800cd68: 681b ldr r3, [r3, #0] 800cd6a: 687a ldr r2, [r7, #4] 800cd6c: 1ad3 subs r3, r2, r3 if ((since_last_packet >= SC_UART2_REINIT_TIMEOUT_MS) && 800cd6e: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800cd72: d319 bcc.n 800cda8 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800cd74: 2200 movs r2, #0 800cd76: 2110 movs r1, #16 800cd78: 4810 ldr r0, [pc, #64] @ (800cdbc ) 800cd7a: f003 fdd4 bl 8010926 (void)HAL_UART_Abort_IT(&huart2); 800cd7e: 480d ldr r0, [pc, #52] @ (800cdb4 ) 800cd80: f006 f8fa bl 8012f78 (void)HAL_UART_DeInit(&huart2); 800cd84: 480b ldr r0, [pc, #44] @ (800cdb4 ) 800cd86: f006 f833 bl 8012df0 (void)HAL_UART_Init(&huart2); 800cd8a: 480a ldr r0, [pc, #40] @ (800cdb4 ) 800cd8c: f005 ffe0 bl 8012d50 (void)HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800cd90: 22ff movs r2, #255 @ 0xff 800cd92: 490b ldr r1, [pc, #44] @ (800cdc0 ) 800cd94: 4807 ldr r0, [pc, #28] @ (800cdb4 ) 800cd96: f006 f892 bl 8012ebe sc_uart2_last_reinit_tick = now; 800cd9a: 4a0b ldr r2, [pc, #44] @ (800cdc8 ) 800cd9c: 687b ldr r3, [r7, #4] 800cd9e: 6013 str r3, [r2, #0] log_printf(LOG_ERR, "USART2 stalled: hard reinit\n"); 800cda0: 490c ldr r1, [pc, #48] @ (800cdd4 ) 800cda2: 2004 movs r0, #4 800cda4: f7fd fb9c bl 800a4e0 } } 800cda8: 3708 adds r7, #8 800cdaa: 46bd mov sp, r7 800cdac: bd80 pop {r7, pc} 800cdae: bf00 nop 800cdb0: 20001050 .word 0x20001050 800cdb4: 200011e4 .word 0x200011e4 800cdb8: 20001058 .word 0x20001058 800cdbc: 40011400 .word 0x40011400 800cdc0: 20000d2c .word 0x20000d2c 800cdc4: 20000c2c .word 0x20000c2c 800cdc8: 20001054 .word 0x20001054 800cdcc: 08017184 .word 0x08017184 800cdd0: 2000104d .word 0x2000104d 800cdd4: 080171a4 .word 0x080171a4 0800cdd8 <__NVIC_SystemReset>: { 800cdd8: b480 push {r7} 800cdda: af00 add r7, sp, #0 __ASM volatile ("dsb 0xF":::"memory"); 800cddc: f3bf 8f4f dsb sy } 800cde0: bf00 nop (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | 800cde2: 4b06 ldr r3, [pc, #24] @ (800cdfc <__NVIC_SystemReset+0x24>) 800cde4: 68db ldr r3, [r3, #12] 800cde6: f403 62e0 and.w r2, r3, #1792 @ 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800cdea: 4904 ldr r1, [pc, #16] @ (800cdfc <__NVIC_SystemReset+0x24>) 800cdec: 4b04 ldr r3, [pc, #16] @ (800ce00 <__NVIC_SystemReset+0x28>) 800cdee: 4313 orrs r3, r2 800cdf0: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); 800cdf2: f3bf 8f4f dsb sy } 800cdf6: bf00 nop __NOP(); 800cdf8: bf00 nop 800cdfa: e7fd b.n 800cdf8 <__NVIC_SystemReset+0x20> 800cdfc: e000ed00 .word 0xe000ed00 800ce00: 05fa0004 .word 0x05fa0004 0800ce04 : .chargerNumber = 00001, .unixTime = 1721651966, }; // Единая функция-обработчик всех команд со switch-case void SC_CommandHandler(ReceivedCommand_t* cmd) { 800ce04: b580 push {r7, lr} 800ce06: b084 sub sp, #16 800ce08: af00 add r7, sp, #0 800ce0a: 6078 str r0, [r7, #4] uint8_t response_code = RESP_FAILED; 800ce0c: 2313 movs r3, #19 800ce0e: 73fb strb r3, [r7, #15] switch (cmd->command) { 800ce10: 687b ldr r3, [r7, #4] 800ce12: 781b ldrb r3, [r3, #0] 800ce14: 2bc2 cmp r3, #194 @ 0xc2 800ce16: f300 80cc bgt.w 800cfb2 800ce1a: 2bb0 cmp r3, #176 @ 0xb0 800ce1c: da0f bge.n 800ce3e 800ce1e: 2b60 cmp r3, #96 @ 0x60 800ce20: d042 beq.n 800cea8 800ce22: 2b60 cmp r3, #96 @ 0x60 800ce24: f300 80c5 bgt.w 800cfb2 800ce28: 2b50 cmp r3, #80 @ 0x50 800ce2a: d043 beq.n 800ceb4 800ce2c: 2b50 cmp r3, #80 @ 0x50 800ce2e: f300 80c0 bgt.w 800cfb2 800ce32: 2b01 cmp r3, #1 800ce34: f000 80a6 beq.w 800cf84 800ce38: 2b40 cmp r3, #64 @ 0x40 800ce3a: d02d beq.n 800ce98 800ce3c: e0b9 b.n 800cfb2 800ce3e: 3bb0 subs r3, #176 @ 0xb0 800ce40: 2b12 cmp r3, #18 800ce42: f200 80b6 bhi.w 800cfb2 800ce46: a201 add r2, pc, #4 @ (adr r2, 800ce4c ) 800ce48: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800ce4c: 0800cebb .word 0x0800cebb 800ce50: 0800cfb3 .word 0x0800cfb3 800ce54: 0800cfb3 .word 0x0800cfb3 800ce58: 0800cfb3 .word 0x0800cfb3 800ce5c: 0800cfb3 .word 0x0800cfb3 800ce60: 0800cf63 .word 0x0800cf63 800ce64: 0800cfb3 .word 0x0800cfb3 800ce68: 0800cfb3 .word 0x0800cfb3 800ce6c: 0800cfb3 .word 0x0800cfb3 800ce70: 0800cfb3 .word 0x0800cfb3 800ce74: 0800cfb3 .word 0x0800cfb3 800ce78: 0800cfb3 .word 0x0800cfb3 800ce7c: 0800cfb3 .word 0x0800cfb3 800ce80: 0800cfb3 .word 0x0800cfb3 800ce84: 0800cfb3 .word 0x0800cfb3 800ce88: 0800cfb3 .word 0x0800cfb3 800ce8c: 0800cef9 .word 0x0800cef9 800ce90: 0800cf5d .word 0x0800cf5d 800ce94: 0800cf31 .word 0x0800cf31 // Команды БЕЗ аргументов case CMD_GET_STATUS: // Логика получения информации monitoring_data_callback(); 800ce98: f000 f8b2 bl 800d000 // Отправляем с нормальным приоритетом SC_SendPacket((uint8_t*)&statusPacket, sizeof(statusPacket), CMD_GET_STATUS); 800ce9c: 2240 movs r2, #64 @ 0x40 800ce9e: 2158 movs r1, #88 @ 0x58 800cea0: 484b ldr r0, [pc, #300] @ (800cfd0 ) 800cea2: f7ff fea7 bl 800cbf4 return; // Специальный ответ уже отправлен 800cea6: e08f b.n 800cfc8 case CMD_GET_INFO: SC_SendPacket((uint8_t*)&infoPacket, sizeof(infoPacket), CMD_GET_INFO); 800cea8: 2260 movs r2, #96 @ 0x60 800ceaa: 210a movs r1, #10 800ceac: 4849 ldr r0, [pc, #292] @ (800cfd4 ) 800ceae: f7ff fea1 bl 800cbf4 return; 800ceb2: e089 b.n 800cfc8 case CMD_GET_LOG: debug_buffer_send(); 800ceb4: f7fd fab2 bl 800a41c return; // Ответ формируется внутри debug_buffer_send 800ceb8: e086 b.n 800cfc8 // Команды С аргументами case CMD_SET_CONFIG: if (cmd->argument_length == sizeof(ConfigBlock_t)) { 800ceba: 687b ldr r3, [r7, #4] 800cebc: 785b ldrb r3, [r3, #1] 800cebe: 2b0b cmp r3, #11 800cec0: d117 bne.n 800cef2 memcpy(&config, cmd->argument, sizeof(ConfigBlock_t)); 800cec2: 687b ldr r3, [r7, #4] 800cec4: 685a ldr r2, [r3, #4] 800cec6: 4b44 ldr r3, [pc, #272] @ (800cfd8 ) 800cec8: 6810 ldr r0, [r2, #0] 800ceca: 6851 ldr r1, [r2, #4] 800cecc: c303 stmia r3!, {r0, r1} 800cece: 8911 ldrh r1, [r2, #8] 800ced0: 7a92 ldrb r2, [r2, #10] 800ced2: 8019 strh r1, [r3, #0] 800ced4: 709a strb r2, [r3, #2] config_initialized = 1; 800ced6: 4b41 ldr r3, [pc, #260] @ (800cfdc ) 800ced8: 2201 movs r2, #1 800ceda: 701a strb r2, [r3, #0] log_printf(LOG_INFO, "Set Config: %s %d\n", config.location, config.chargerNumber); 800cedc: 4b3e ldr r3, [pc, #248] @ (800cfd8 ) 800cede: f8d3 3003 ldr.w r3, [r3, #3] 800cee2: 4a3d ldr r2, [pc, #244] @ (800cfd8 ) 800cee4: 493e ldr r1, [pc, #248] @ (800cfe0 ) 800cee6: 2007 movs r0, #7 800cee8: f7fd fafa bl 800a4e0 response_code = RESP_SUCCESS; 800ceec: 2312 movs r3, #18 800ceee: 73fb strb r3, [r7, #15] break; 800cef0: e062 b.n 800cfb8 } response_code = RESP_FAILED; 800cef2: 2313 movs r3, #19 800cef4: 73fb strb r3, [r7, #15] break; 800cef6: e05f b.n 800cfb8 case CMD_SET_POWER_LIMIT: if (cmd->argument_length == 1) { 800cef8: 687b ldr r3, [r7, #4] 800cefa: 785b ldrb r3, [r3, #1] 800cefc: 2b01 cmp r3, #1 800cefe: d114 bne.n 800cf2a PSU0.power_limit = ((uint8_t*)cmd->argument)[0] * 1000; 800cf00: 687b ldr r3, [r7, #4] 800cf02: 685b ldr r3, [r3, #4] 800cf04: 781b ldrb r3, [r3, #0] 800cf06: 461a mov r2, r3 800cf08: f44f 737a mov.w r3, #1000 @ 0x3e8 800cf0c: fb02 f303 mul.w r3, r2, r3 800cf10: 461a mov r2, r3 800cf12: 4b34 ldr r3, [pc, #208] @ (800cfe4 ) 800cf14: 615a str r2, [r3, #20] log_printf(LOG_INFO, "Power limit: %d\n", PSU0.power_limit); 800cf16: 4b33 ldr r3, [pc, #204] @ (800cfe4 ) 800cf18: 695b ldr r3, [r3, #20] 800cf1a: 461a mov r2, r3 800cf1c: 4932 ldr r1, [pc, #200] @ (800cfe8 ) 800cf1e: 2007 movs r0, #7 800cf20: f7fd fade bl 800a4e0 //CONN.connState = (((uint8_t*)cmd->argument)[0])/4; response_code = RESP_SUCCESS; 800cf24: 2312 movs r3, #18 800cf26: 73fb strb r3, [r7, #15] break; 800cf28: e046 b.n 800cfb8 } response_code = RESP_FAILED; 800cf2a: 2313 movs r3, #19 800cf2c: 73fb strb r3, [r7, #15] break; 800cf2e: e043 b.n 800cfb8 case CMD_CHARGE_PERMIT: if (cmd->argument_length == 1) { 800cf30: 687b ldr r3, [r7, #4] 800cf32: 785b ldrb r3, [r3, #1] 800cf34: 2b01 cmp r3, #1 800cf36: d10e bne.n 800cf56 CONN.connControl = ((uint8_t*)cmd->argument)[0]; 800cf38: 687b ldr r3, [r7, #4] 800cf3a: 685b ldr r3, [r3, #4] 800cf3c: 781a ldrb r2, [r3, #0] 800cf3e: 4b2b ldr r3, [pc, #172] @ (800cfec ) 800cf40: 701a strb r2, [r3, #0] log_printf(LOG_INFO, "Charge permit: %d\n", CONN.connControl); 800cf42: 4b2a ldr r3, [pc, #168] @ (800cfec ) 800cf44: 781b ldrb r3, [r3, #0] 800cf46: 461a mov r2, r3 800cf48: 4929 ldr r1, [pc, #164] @ (800cff0 ) 800cf4a: 2007 movs r0, #7 800cf4c: f7fd fac8 bl 800a4e0 response_code = RESP_SUCCESS; 800cf50: 2312 movs r3, #18 800cf52: 73fb strb r3, [r7, #15] break; 800cf54: e030 b.n 800cfb8 } response_code = RESP_FAILED; 800cf56: 2313 movs r3, #19 800cf58: 73fb strb r3, [r7, #15] break; 800cf5a: e02d b.n 800cfb8 // memcpy(&PSU_TestMode, cmd->argument, sizeof(PSU_TestMode_t)); // log_printf(LOG_INFO, "Test PSU: %d %d %d\n", PSU_TestMode.enable, PSU_TestMode.voltage, PSU_TestMode.current); // response_code = RESP_SUCCESS; // break; // } response_code = RESP_FAILED; 800cf5c: 2313 movs r3, #19 800cf5e: 73fb strb r3, [r7, #15] break; 800cf60: e02a b.n 800cfb8 case CMD_DEVICE_RESET: // 2. Отправляем SUCCESS (хост может успеть получить его перед ребутом) SC_SendPacket(NULL, 0, RESP_SUCCESS); 800cf62: 2212 movs r2, #18 800cf64: 2100 movs r1, #0 800cf66: 2000 movs r0, #0 800cf68: f7ff fe44 bl 800cbf4 while(huart2.gState == HAL_UART_STATE_BUSY_TX); // Ожидание завершения передачи 800cf6c: bf00 nop 800cf6e: 4b21 ldr r3, [pc, #132] @ (800cff4 ) 800cf70: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800cf74: b2db uxtb r3, r3 800cf76: 2b21 cmp r3, #33 @ 0x21 800cf78: d0f9 beq.n 800cf6e HAL_Delay(10); 800cf7a: 200a movs r0, #10 800cf7c: f001 f862 bl 800e044 // 3. Выполняем программный сброс NVIC_SystemReset(); 800cf80: f7ff ff2a bl 800cdd8 <__NVIC_SystemReset> return; // Сюда код уже не дойдет, но для компилятора нxужно case CMD_ISOLATION_STATUS: if (cmd->argument_length == sizeof(IsolationStatusPacket_t)) { 800cf84: 687b ldr r3, [r7, #4] 800cf86: 785b ldrb r3, [r3, #1] 800cf88: 2b09 cmp r3, #9 800cf8a: d10f bne.n 800cfac memcpy(&ISO, cmd->argument, sizeof(IsolationStatusPacket_t)); 800cf8c: 687b ldr r3, [r7, #4] 800cf8e: 685a ldr r2, [r3, #4] 800cf90: 4b19 ldr r3, [pc, #100] @ (800cff8 ) 800cf92: 6810 ldr r0, [r2, #0] 800cf94: 6851 ldr r1, [r2, #4] 800cf96: c303 stmia r3!, {r0, r1} 800cf98: 7a12 ldrb r2, [r2, #8] 800cf9a: 701a strb r2, [r3, #0] // Для однонаправленного UART5 ответ не нужен if (g_sc_command_source == SC_SOURCE_UART5) { 800cf9c: 4b17 ldr r3, [pc, #92] @ (800cffc ) 800cf9e: 781b ldrb r3, [r3, #0] 800cfa0: b2db uxtb r3, r3 800cfa2: 2b01 cmp r3, #1 800cfa4: d00f beq.n 800cfc6 return; } response_code = RESP_SUCCESS; 800cfa6: 2312 movs r3, #18 800cfa8: 73fb strb r3, [r7, #15] break; 800cfaa: e005 b.n 800cfb8 } response_code = RESP_FAILED; 800cfac: 2313 movs r3, #19 800cfae: 73fb strb r3, [r7, #15] break; 800cfb0: e002 b.n 800cfb8 default: // Неизвестная команда response_code = RESP_FAILED; 800cfb2: 2313 movs r3, #19 800cfb4: 73fb strb r3, [r7, #15] break; 800cfb6: bf00 nop } // Отправляем финальный ответ (для команд без собственного ответа) SC_SendPacket(NULL, 0, response_code); 800cfb8: 7bfb ldrb r3, [r7, #15] 800cfba: 461a mov r2, r3 800cfbc: 2100 movs r1, #0 800cfbe: 2000 movs r0, #0 800cfc0: f7ff fe18 bl 800cbf4 800cfc4: e000 b.n 800cfc8 return; 800cfc6: bf00 nop } 800cfc8: 3710 adds r7, #16 800cfca: 46bd mov sp, r7 800cfcc: bd80 pop {r7, pc} 800cfce: bf00 nop 800cfd0: 2000105c .word 0x2000105c 800cfd4: 200010b4 .word 0x200010b4 800cfd8: 20000078 .word 0x20000078 800cfdc: 200010be .word 0x200010be 800cfe0: 080171c4 .word 0x080171c4 800cfe4: 20000904 .word 0x20000904 800cfe8: 080171d8 .word 0x080171d8 800cfec: 200003b0 .word 0x200003b0 800cff0: 080171ec .word 0x080171ec 800cff4: 200011e4 .word 0x200011e4 800cff8: 2000006c .word 0x2000006c 800cffc: 2000104c .word 0x2000104c 0800d000 : // Колбэк для заполнения данных мониторинга void monitoring_data_callback() { 800d000: b580 push {r7, lr} 800d002: af00 add r7, sp, #0 // Информация о зарядной сессии statusPacket.SOC = CONN.SOC; 800d004: 4b8f ldr r3, [pc, #572] @ (800d244 ) 800d006: 789a ldrb r2, [r3, #2] 800d008: 4b8f ldr r3, [pc, #572] @ (800d248 ) 800d00a: 709a strb r2, [r3, #2] statusPacket.Energy = CONN.Energy; 800d00c: 4b8d ldr r3, [pc, #564] @ (800d244 ) 800d00e: f8d3 3007 ldr.w r3, [r3, #7] 800d012: 4a8d ldr r2, [pc, #564] @ (800d248 ) 800d014: f8c2 3003 str.w r3, [r2, #3] statusPacket.RequestedVoltage = CONN.RequestedVoltage; 800d018: 4b8a ldr r3, [pc, #552] @ (800d244 ) 800d01a: f8b3 300f ldrh.w r3, [r3, #15] 800d01e: b29a uxth r2, r3 800d020: 4b89 ldr r3, [pc, #548] @ (800d248 ) 800d022: f8a3 2007 strh.w r2, [r3, #7] statusPacket.RequestedCurrent = CONN.WantedCurrent; 800d026: 4b87 ldr r3, [pc, #540] @ (800d244 ) 800d028: f8b3 301b ldrh.w r3, [r3, #27] 800d02c: b29a uxth r2, r3 800d02e: 4b86 ldr r3, [pc, #536] @ (800d248 ) 800d030: f8a3 2009 strh.w r2, [r3, #9] statusPacket.MeasuredVoltage = CONN.MeasuredVoltage; 800d034: 4b83 ldr r3, [pc, #524] @ (800d244 ) 800d036: f8b3 3013 ldrh.w r3, [r3, #19] 800d03a: b29a uxth r2, r3 800d03c: 4b82 ldr r3, [pc, #520] @ (800d248 ) 800d03e: f8a3 200b strh.w r2, [r3, #11] statusPacket.MeasuredCurrent = CONN.MeasuredCurrent; 800d042: 4b80 ldr r3, [pc, #512] @ (800d244 ) 800d044: f8b3 3015 ldrh.w r3, [r3, #21] 800d048: b29a uxth r2, r3 800d04a: 4b7f ldr r3, [pc, #508] @ (800d248 ) 800d04c: f8a3 200d strh.w r2, [r3, #13] statusPacket.outputEnabled = CONN.outputEnabled; 800d050: 4b7c ldr r3, [pc, #496] @ (800d244 ) 800d052: 7e1a ldrb r2, [r3, #24] 800d054: 4b7c ldr r3, [pc, #496] @ (800d248 ) 800d056: 73da strb r2, [r3, #15] statusPacket.chargingError = CONN.chargingError; 800d058: 4b7a ldr r3, [pc, #488] @ (800d244 ) 800d05a: 7f5a ldrb r2, [r3, #29] 800d05c: 4b7a ldr r3, [pc, #488] @ (800d248 ) 800d05e: 705a strb r2, [r3, #1] statusPacket.connState = CONN.connState; 800d060: 4b78 ldr r3, [pc, #480] @ (800d244 ) 800d062: 785a ldrb r2, [r3, #1] 800d064: 4b78 ldr r3, [pc, #480] @ (800d248 ) 800d066: 701a strb r2, [r3, #0] statusPacket.chargingElapsedTimeMin = 0; 800d068: 4b77 ldr r3, [pc, #476] @ (800d248 ) 800d06a: 2200 movs r2, #0 800d06c: 741a strb r2, [r3, #16] 800d06e: 2200 movs r2, #0 800d070: 745a strb r2, [r3, #17] statusPacket.chargingElapsedTimeSec = 0; 800d072: 4b75 ldr r3, [pc, #468] @ (800d248 ) 800d074: 2200 movs r2, #0 800d076: 749a strb r2, [r3, #18] statusPacket.estimatedRemainingChargingTime = 0; 800d078: 4b73 ldr r3, [pc, #460] @ (800d248 ) 800d07a: 2200 movs r2, #0 800d07c: 74da strb r2, [r3, #19] 800d07e: 2200 movs r2, #0 800d080: 751a strb r2, [r3, #20] // состояние зарядной станции statusPacket.relayAC = RELAY_Read(RELAY_AC); 800d082: 2004 movs r0, #4 800d084: f7fc fc08 bl 8009898 800d088: 4603 mov r3, r0 800d08a: f003 0301 and.w r3, r3, #1 800d08e: b2d9 uxtb r1, r3 800d090: 4a6d ldr r2, [pc, #436] @ (800d248 ) 800d092: 7d53 ldrb r3, [r2, #21] 800d094: f361 0300 bfi r3, r1, #0, #1 800d098: 7553 strb r3, [r2, #21] statusPacket.relayDC = RELAY_Read(RELAY_DC); 800d09a: 2003 movs r0, #3 800d09c: f7fc fbfc bl 8009898 800d0a0: 4603 mov r3, r0 800d0a2: f003 0301 and.w r3, r3, #1 800d0a6: b2d9 uxtb r1, r3 800d0a8: 4a67 ldr r2, [pc, #412] @ (800d248 ) 800d0aa: 7d53 ldrb r3, [r2, #21] 800d0ac: f361 0341 bfi r3, r1, #1, #1 800d0b0: 7553 strb r3, [r2, #21] statusPacket.relayAUX = RELAY_Read(RELAY_AUX0); 800d0b2: 2000 movs r0, #0 800d0b4: f7fc fbf0 bl 8009898 800d0b8: 4603 mov r3, r0 800d0ba: f003 0301 and.w r3, r3, #1 800d0be: b2d9 uxtb r1, r3 800d0c0: 4a61 ldr r2, [pc, #388] @ (800d248 ) 800d0c2: 7d53 ldrb r3, [r2, #21] 800d0c4: f361 0382 bfi r3, r1, #2, #1 800d0c8: 7553 strb r3, [r2, #21] statusPacket.lockState = 0; 800d0ca: 4a5f ldr r2, [pc, #380] @ (800d248 ) 800d0cc: 7d53 ldrb r3, [r2, #21] 800d0ce: f023 0308 bic.w r3, r3, #8 800d0d2: 7553 strb r3, [r2, #21] statusPacket.stopButton = !IN_ReadInput(IN_ESTOP); 800d0d4: 2003 movs r0, #3 800d0d6: f7fc fbef bl 80098b8 800d0da: 4603 mov r3, r0 800d0dc: 2b00 cmp r3, #0 800d0de: bf0c ite eq 800d0e0: 2301 moveq r3, #1 800d0e2: 2300 movne r3, #0 800d0e4: b2d9 uxtb r1, r3 800d0e6: 4a58 ldr r2, [pc, #352] @ (800d248 ) 800d0e8: 7d53 ldrb r3, [r2, #21] 800d0ea: f361 1304 bfi r3, r1, #4, #1 800d0ee: 7553 strb r3, [r2, #21] statusPacket.logAvailable = (debug_buffer_available()>0)?1:0; 800d0f0: f7fd f980 bl 800a3f4 800d0f4: 4603 mov r3, r0 800d0f6: 2b00 cmp r3, #0 800d0f8: bf14 ite ne 800d0fa: 2301 movne r3, #1 800d0fc: 2300 moveq r3, #0 800d0fe: b2d9 uxtb r1, r3 800d100: 4a51 ldr r2, [pc, #324] @ (800d248 ) 800d102: 7d53 ldrb r3, [r2, #21] 800d104: f361 1345 bfi r3, r1, #5, #1 800d108: 7553 strb r3, [r2, #21] statusPacket.evInfoAvailable = 0; 800d10a: 4a4f ldr r2, [pc, #316] @ (800d248 ) 800d10c: 7d53 ldrb r3, [r2, #21] 800d10e: f023 0340 bic.w r3, r3, #64 @ 0x40 800d112: 7553 strb r3, [r2, #21] statusPacket.psuOnline = PSU0.online; 800d114: 4b4d ldr r3, [pc, #308] @ (800d24c ) 800d116: 7a1b ldrb r3, [r3, #8] 800d118: f003 0301 and.w r3, r3, #1 800d11c: b2d9 uxtb r1, r3 800d11e: 4a4a ldr r2, [pc, #296] @ (800d248 ) 800d120: 7d53 ldrb r3, [r2, #21] 800d122: f361 13c7 bfi r3, r1, #7, #1 800d126: 7553 strb r3, [r2, #21] statusPacket.tempConnector0 = CONN_ReadTemp(0); // температура коннектора 800d128: 2000 movs r0, #0 800d12a: f7fc fcbb bl 8009aa4 800d12e: 4603 mov r3, r0 800d130: b25a sxtb r2, r3 800d132: 4b45 ldr r3, [pc, #276] @ (800d248 ) 800d134: 765a strb r2, [r3, #25] statusPacket.tempConnector1 = CONN_ReadTemp(1); 800d136: 2001 movs r0, #1 800d138: f7fc fcb4 bl 8009aa4 800d13c: 4603 mov r3, r0 800d13e: b25a sxtb r2, r3 800d140: 4b41 ldr r3, [pc, #260] @ (800d248 ) 800d142: 769a strb r2, [r3, #26] statusPacket.tempAmbient = PSU0.tempAmbient; // температура окружающего воздуха 800d144: 4b41 ldr r3, [pc, #260] @ (800d24c ) 800d146: 6a1b ldr r3, [r3, #32] 800d148: b25a sxtb r2, r3 800d14a: 4b3f ldr r3, [pc, #252] @ (800d248 ) 800d14c: 76da strb r2, [r3, #27] statusPacket.tempBatteryMax = 0; 800d14e: 4b3e ldr r3, [pc, #248] @ (800d248 ) 800d150: 2200 movs r2, #0 800d152: 771a strb r2, [r3, #28] statusPacket.tempBatteryMin = 0; 800d154: 4b3c ldr r3, [pc, #240] @ (800d248 ) 800d156: 2200 movs r2, #0 800d158: 775a strb r2, [r3, #29] statusPacket.highestVoltageOfBatteryCell = 0; 800d15a: 4b3b ldr r3, [pc, #236] @ (800d248 ) 800d15c: 2200 movs r2, #0 800d15e: 779a strb r2, [r3, #30] 800d160: 2200 movs r2, #0 800d162: 77da strb r2, [r3, #31] statusPacket.batteryStatus = 0; 800d164: 4b38 ldr r3, [pc, #224] @ (800d248 ) 800d166: 2200 movs r2, #0 800d168: f883 2020 strb.w r2, [r3, #32] statusPacket.phaseVoltageAB = PSU_06.VAB; 800d16c: 4b38 ldr r3, [pc, #224] @ (800d250 ) 800d16e: 689b ldr r3, [r3, #8] 800d170: b29a uxth r2, r3 800d172: 4b35 ldr r3, [pc, #212] @ (800d248 ) 800d174: f8a3 2021 strh.w r2, [r3, #33] @ 0x21 statusPacket.phaseVoltageBC = PSU_06.VBC; 800d178: 4b35 ldr r3, [pc, #212] @ (800d250 ) 800d17a: 68db ldr r3, [r3, #12] 800d17c: b29a uxth r2, r3 800d17e: 4b32 ldr r3, [pc, #200] @ (800d248 ) 800d180: f8a3 2023 strh.w r2, [r3, #35] @ 0x23 statusPacket.phaseVoltageCA = PSU_06.VCA; 800d184: 4b32 ldr r3, [pc, #200] @ (800d250 ) 800d186: 691b ldr r3, [r3, #16] 800d188: b29a uxth r2, r3 800d18a: 4b2f ldr r3, [pc, #188] @ (800d248 ) 800d18c: f8a3 2025 strh.w r2, [r3, #37] @ 0x25 // GBT TODO memset(statusPacket.VIN, 0, sizeof(statusPacket.VIN)); 800d190: 2211 movs r2, #17 800d192: 2100 movs r1, #0 800d194: 482f ldr r0, [pc, #188] @ (800d254 ) 800d196: f007 fadf bl 8014758 // GBT TODO statusPacket.batteryType = 0; 800d19a: 4b2b ldr r3, [pc, #172] @ (800d248 ) 800d19c: 2200 movs r2, #0 800d19e: f883 2038 strb.w r2, [r3, #56] @ 0x38 statusPacket.batteryCapacity = 0; 800d1a2: 4b29 ldr r3, [pc, #164] @ (800d248 ) 800d1a4: 2200 movs r2, #0 800d1a6: f883 2039 strb.w r2, [r3, #57] @ 0x39 800d1aa: 2200 movs r2, #0 800d1ac: f883 203a strb.w r2, [r3, #58] @ 0x3a statusPacket.batteryVoltage = 0; 800d1b0: 4b25 ldr r3, [pc, #148] @ (800d248 ) 800d1b2: 2200 movs r2, #0 800d1b4: f883 203b strb.w r2, [r3, #59] @ 0x3b 800d1b8: 2200 movs r2, #0 800d1ba: f883 203c strb.w r2, [r3, #60] @ 0x3c memset(statusPacket.batteryVendor, 0, sizeof(statusPacket.batteryVendor)); 800d1be: 2204 movs r2, #4 800d1c0: 2100 movs r1, #0 800d1c2: 4825 ldr r0, [pc, #148] @ (800d258 ) 800d1c4: f007 fac8 bl 8014758 statusPacket.batterySN = 0; 800d1c8: 4b1f ldr r3, [pc, #124] @ (800d248 ) 800d1ca: 2200 movs r2, #0 800d1cc: f883 2041 strb.w r2, [r3, #65] @ 0x41 800d1d0: 2200 movs r2, #0 800d1d2: f883 2042 strb.w r2, [r3, #66] @ 0x42 800d1d6: 2200 movs r2, #0 800d1d8: f883 2043 strb.w r2, [r3, #67] @ 0x43 800d1dc: 2200 movs r2, #0 800d1de: f883 2044 strb.w r2, [r3, #68] @ 0x44 statusPacket.batteryManuD = 0; 800d1e2: 4b19 ldr r3, [pc, #100] @ (800d248 ) 800d1e4: 2200 movs r2, #0 800d1e6: f883 2047 strb.w r2, [r3, #71] @ 0x47 statusPacket.batteryManuM = 0; 800d1ea: 4b17 ldr r3, [pc, #92] @ (800d248 ) 800d1ec: 2200 movs r2, #0 800d1ee: f883 2046 strb.w r2, [r3, #70] @ 0x46 statusPacket.batteryManuY = 0; 800d1f2: 4b15 ldr r3, [pc, #84] @ (800d248 ) 800d1f4: 2200 movs r2, #0 800d1f6: f883 2045 strb.w r2, [r3, #69] @ 0x45 statusPacket.batteryCycleCount = 0; 800d1fa: 4b13 ldr r3, [pc, #76] @ (800d248 ) 800d1fc: 2200 movs r2, #0 800d1fe: f883 2048 strb.w r2, [r3, #72] @ 0x48 800d202: 2200 movs r2, #0 800d204: f883 2049 strb.w r2, [r3, #73] @ 0x49 statusPacket.ownAuto = 0; 800d208: 4b0f ldr r3, [pc, #60] @ (800d248 ) 800d20a: 2200 movs r2, #0 800d20c: f883 204a strb.w r2, [r3, #74] @ 0x4a memset(statusPacket.EV_SW_VER, 0, sizeof(statusPacket.EV_SW_VER)); 800d210: 2208 movs r2, #8 800d212: 2100 movs r1, #0 800d214: 4811 ldr r0, [pc, #68] @ (800d25c ) 800d216: f007 fa9f bl 8014758 statusPacket.testMode = 0; 800d21a: 4b0b ldr r3, [pc, #44] @ (800d248 ) 800d21c: 2200 movs r2, #0 800d21e: f883 2053 strb.w r2, [r3, #83] @ 0x53 statusPacket.testVoltage = 0; 800d222: 4b09 ldr r3, [pc, #36] @ (800d248 ) 800d224: 2200 movs r2, #0 800d226: f883 2054 strb.w r2, [r3, #84] @ 0x54 800d22a: 2200 movs r2, #0 800d22c: f883 2055 strb.w r2, [r3, #85] @ 0x55 statusPacket.testCurrent = 0; 800d230: 4b05 ldr r3, [pc, #20] @ (800d248 ) 800d232: 2200 movs r2, #0 800d234: f883 2056 strb.w r2, [r3, #86] @ 0x56 800d238: 2200 movs r2, #0 800d23a: f883 2057 strb.w r2, [r3, #87] @ 0x57 // В debug.c есть CONN_SetState, предполагаем наличие CONN_GetState() // Если такой функции нет, закомментируйте следующую строку: // statusPacket.connState = CONN_GetState(); } 800d23e: bf00 nop 800d240: bd80 pop {r7, pc} 800d242: bf00 nop 800d244: 200003b0 .word 0x200003b0 800d248: 2000105c .word 0x2000105c 800d24c: 20000904 .word 0x20000904 800d250: 200008d8 .word 0x200008d8 800d254: 20001083 .word 0x20001083 800d258: 20001099 .word 0x20001099 800d25c: 200010a7 .word 0x200010a7 0800d260 : #include "sma_filter.h" void SMAFilter_Init(SMAFilter_t* f) { 800d260: b480 push {r7} 800d262: b085 sub sp, #20 800d264: af00 add r7, sp, #0 800d266: 6078 str r0, [r7, #4] if (f == 0) return; 800d268: 687b ldr r3, [r7, #4] 800d26a: 2b00 cmp r3, #0 800d26c: d018 beq.n 800d2a0 f->sum = 0; 800d26e: 687b ldr r3, [r7, #4] 800d270: 2200 movs r2, #0 800d272: 601a str r2, [r3, #0] f->idx = 0; 800d274: 687b ldr r3, [r7, #4] 800d276: 2200 movs r2, #0 800d278: 809a strh r2, [r3, #4] f->count = 0; 800d27a: 687b ldr r3, [r7, #4] 800d27c: 2200 movs r2, #0 800d27e: 80da strh r2, [r3, #6] for (uint16_t i = 0; i < SMA_FILTER_WINDOW; i++) { 800d280: 2300 movs r3, #0 800d282: 81fb strh r3, [r7, #14] 800d284: e008 b.n 800d298 f->buffer[i] = 0; 800d286: 89fa ldrh r2, [r7, #14] 800d288: 687b ldr r3, [r7, #4] 800d28a: 3202 adds r2, #2 800d28c: 2100 movs r1, #0 800d28e: f843 1022 str.w r1, [r3, r2, lsl #2] for (uint16_t i = 0; i < SMA_FILTER_WINDOW; i++) { 800d292: 89fb ldrh r3, [r7, #14] 800d294: 3301 adds r3, #1 800d296: 81fb strh r3, [r7, #14] 800d298: 89fb ldrh r3, [r7, #14] 800d29a: 2b07 cmp r3, #7 800d29c: d9f3 bls.n 800d286 800d29e: e000 b.n 800d2a2 if (f == 0) return; 800d2a0: bf00 nop } } 800d2a2: 3714 adds r7, #20 800d2a4: 46bd mov sp, r7 800d2a6: bc80 pop {r7} 800d2a8: 4770 bx lr 0800d2aa : int32_t SMAFilter_Update(SMAFilter_t* f, int32_t x) { 800d2aa: b480 push {r7} 800d2ac: b085 sub sp, #20 800d2ae: af00 add r7, sp, #0 800d2b0: 6078 str r0, [r7, #4] 800d2b2: 6039 str r1, [r7, #0] if (f == 0) return x; 800d2b4: 687b ldr r3, [r7, #4] 800d2b6: 2b00 cmp r3, #0 800d2b8: d101 bne.n 800d2be 800d2ba: 683b ldr r3, [r7, #0] 800d2bc: e056 b.n 800d36c // Пока окно не заполнено полностью, делим по фактическому count. if (f->count < SMA_FILTER_WINDOW) { 800d2be: 687b ldr r3, [r7, #4] 800d2c0: 88db ldrh r3, [r3, #6] 800d2c2: 2b07 cmp r3, #7 800d2c4: d827 bhi.n 800d316 f->buffer[f->idx] = x; 800d2c6: 687b ldr r3, [r7, #4] 800d2c8: 889b ldrh r3, [r3, #4] 800d2ca: 461a mov r2, r3 800d2cc: 687b ldr r3, [r7, #4] 800d2ce: 3202 adds r2, #2 800d2d0: 6839 ldr r1, [r7, #0] 800d2d2: f843 1022 str.w r1, [r3, r2, lsl #2] f->sum += x; 800d2d6: 687b ldr r3, [r7, #4] 800d2d8: 681a ldr r2, [r3, #0] 800d2da: 683b ldr r3, [r7, #0] 800d2dc: 441a add r2, r3 800d2de: 687b ldr r3, [r7, #4] 800d2e0: 601a str r2, [r3, #0] f->idx++; 800d2e2: 687b ldr r3, [r7, #4] 800d2e4: 889b ldrh r3, [r3, #4] 800d2e6: 3301 adds r3, #1 800d2e8: b29a uxth r2, r3 800d2ea: 687b ldr r3, [r7, #4] 800d2ec: 809a strh r2, [r3, #4] if (f->idx >= SMA_FILTER_WINDOW) f->idx = 0; 800d2ee: 687b ldr r3, [r7, #4] 800d2f0: 889b ldrh r3, [r3, #4] 800d2f2: 2b07 cmp r3, #7 800d2f4: d902 bls.n 800d2fc 800d2f6: 687b ldr r3, [r7, #4] 800d2f8: 2200 movs r2, #0 800d2fa: 809a strh r2, [r3, #4] f->count++; 800d2fc: 687b ldr r3, [r7, #4] 800d2fe: 88db ldrh r3, [r3, #6] 800d300: 3301 adds r3, #1 800d302: b29a uxth r2, r3 800d304: 687b ldr r3, [r7, #4] 800d306: 80da strh r2, [r3, #6] return (int32_t)(f->sum / (int32_t)f->count); 800d308: 687b ldr r3, [r7, #4] 800d30a: 681b ldr r3, [r3, #0] 800d30c: 687a ldr r2, [r7, #4] 800d30e: 88d2 ldrh r2, [r2, #6] 800d310: fb93 f3f2 sdiv r3, r3, r2 800d314: e02a b.n 800d36c } // Окно заполнено: "вычитаем старое + добавляем новое". int32_t old = f->buffer[f->idx]; 800d316: 687b ldr r3, [r7, #4] 800d318: 889b ldrh r3, [r3, #4] 800d31a: 461a mov r2, r3 800d31c: 687b ldr r3, [r7, #4] 800d31e: 3202 adds r2, #2 800d320: f853 3022 ldr.w r3, [r3, r2, lsl #2] 800d324: 60fb str r3, [r7, #12] f->buffer[f->idx] = x; 800d326: 687b ldr r3, [r7, #4] 800d328: 889b ldrh r3, [r3, #4] 800d32a: 461a mov r2, r3 800d32c: 687b ldr r3, [r7, #4] 800d32e: 3202 adds r2, #2 800d330: 6839 ldr r1, [r7, #0] 800d332: f843 1022 str.w r1, [r3, r2, lsl #2] f->sum += (x - old); 800d336: 687b ldr r3, [r7, #4] 800d338: 681a ldr r2, [r3, #0] 800d33a: 6839 ldr r1, [r7, #0] 800d33c: 68fb ldr r3, [r7, #12] 800d33e: 1acb subs r3, r1, r3 800d340: 441a add r2, r3 800d342: 687b ldr r3, [r7, #4] 800d344: 601a str r2, [r3, #0] f->idx++; 800d346: 687b ldr r3, [r7, #4] 800d348: 889b ldrh r3, [r3, #4] 800d34a: 3301 adds r3, #1 800d34c: b29a uxth r2, r3 800d34e: 687b ldr r3, [r7, #4] 800d350: 809a strh r2, [r3, #4] if (f->idx >= SMA_FILTER_WINDOW) f->idx = 0; 800d352: 687b ldr r3, [r7, #4] 800d354: 889b ldrh r3, [r3, #4] 800d356: 2b07 cmp r3, #7 800d358: d902 bls.n 800d360 800d35a: 687b ldr r3, [r7, #4] 800d35c: 2200 movs r2, #0 800d35e: 809a strh r2, [r3, #4] return (int32_t)(f->sum / (int32_t)SMA_FILTER_WINDOW); 800d360: 687b ldr r3, [r7, #4] 800d362: 681b ldr r3, [r3, #0] 800d364: 2b00 cmp r3, #0 800d366: da00 bge.n 800d36a 800d368: 3307 adds r3, #7 800d36a: 10db asrs r3, r3, #3 } 800d36c: 4618 mov r0, r3 800d36e: 3714 adds r7, #20 800d370: 46bd mov sp, r7 800d372: bc80 pop {r7} 800d374: 4770 bx lr ... 0800d378 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { 800d378: b480 push {r7} 800d37a: b085 sub sp, #20 800d37c: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); 800d37e: 4b15 ldr r3, [pc, #84] @ (800d3d4 ) 800d380: 699b ldr r3, [r3, #24] 800d382: 4a14 ldr r2, [pc, #80] @ (800d3d4 ) 800d384: f043 0301 orr.w r3, r3, #1 800d388: 6193 str r3, [r2, #24] 800d38a: 4b12 ldr r3, [pc, #72] @ (800d3d4 ) 800d38c: 699b ldr r3, [r3, #24] 800d38e: f003 0301 and.w r3, r3, #1 800d392: 60bb str r3, [r7, #8] 800d394: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); 800d396: 4b0f ldr r3, [pc, #60] @ (800d3d4 ) 800d398: 69db ldr r3, [r3, #28] 800d39a: 4a0e ldr r2, [pc, #56] @ (800d3d4 ) 800d39c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 800d3a0: 61d3 str r3, [r2, #28] 800d3a2: 4b0c ldr r3, [pc, #48] @ (800d3d4 ) 800d3a4: 69db ldr r3, [r3, #28] 800d3a6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 800d3aa: 607b str r3, [r7, #4] 800d3ac: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); 800d3ae: 4b0a ldr r3, [pc, #40] @ (800d3d8 ) 800d3b0: 685b ldr r3, [r3, #4] 800d3b2: 60fb str r3, [r7, #12] 800d3b4: 68fb ldr r3, [r7, #12] 800d3b6: f023 63e0 bic.w r3, r3, #117440512 @ 0x7000000 800d3ba: 60fb str r3, [r7, #12] 800d3bc: 68fb ldr r3, [r7, #12] 800d3be: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 800d3c2: 60fb str r3, [r7, #12] 800d3c4: 4a04 ldr r2, [pc, #16] @ (800d3d8 ) 800d3c6: 68fb ldr r3, [r7, #12] 800d3c8: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } 800d3ca: bf00 nop 800d3cc: 3714 adds r7, #20 800d3ce: 46bd mov sp, r7 800d3d0: bc80 pop {r7} 800d3d2: 4770 bx lr 800d3d4: 40021000 .word 0x40021000 800d3d8: 40010000 .word 0x40010000 0800d3dc : { /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) 800d3dc: e7fe b.n 800d3dc 800d3de: bf00 nop 0800d3e0 : void HardFault_Handler(void) { /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) 800d3e0: e7fe b.n 800d3e0 800d3e2: bf00 nop 0800d3e4 : void MemManage_Handler(void) { /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) 800d3e4: e7fe b.n 800d3e4 800d3e6: bf00 nop 0800d3e8 : void BusFault_Handler(void) { /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) 800d3e8: e7fe b.n 800d3e8 800d3ea: bf00 nop 0800d3ec : void UsageFault_Handler(void) { /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) 800d3ec: e7fe b.n 800d3ec 800d3ee: bf00 nop 0800d3f0 : /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } 800d3f0: 4770 bx lr 800d3f2: bf00 nop 0800d3f4 : /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } 800d3f4: 4770 bx lr 800d3f6: bf00 nop 0800d3f8 : /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } 800d3f8: 4770 bx lr 800d3fa: bf00 nop 0800d3fc : void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); 800d3fc: f000 be06 b.w 800e00c 0800d400 : /** * @brief This function handles DMA1 channel1 global interrupt. */ void DMA1_Channel1_IRQHandler(void) { 800d400: b510 push {r4, lr} /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d402: 4c09 ldr r4, [pc, #36] @ (800d428 ) 800d404: 2201 movs r2, #1 800d406: f44f 6100 mov.w r1, #2048 @ 0x800 800d40a: 4620 mov r0, r4 800d40c: f003 fa8b bl 8010926 /* USER CODE END DMA1_Channel1_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_adc1); 800d410: 4806 ldr r0, [pc, #24] @ (800d42c ) 800d412: f002 fdc7 bl 800ffa4 /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d416: 4620 mov r0, r4 /* USER CODE END DMA1_Channel1_IRQn 1 */ } 800d418: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d41c: 2200 movs r2, #0 800d41e: f44f 6100 mov.w r1, #2048 @ 0x800 800d422: f003 ba80 b.w 8010926 800d426: bf00 nop 800d428: 40010c00 .word 0x40010c00 800d42c: 200002c0 .word 0x200002c0 0800d430 : /** * @brief This function handles ADC1 and ADC2 global interrupts. */ void ADC1_2_IRQHandler(void) { 800d430: b510 push {r4, lr} /* USER CODE BEGIN ADC1_2_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d432: 4c09 ldr r4, [pc, #36] @ (800d458 ) 800d434: 2201 movs r2, #1 800d436: f44f 6100 mov.w r1, #2048 @ 0x800 800d43a: 4620 mov r0, r4 800d43c: f003 fa73 bl 8010926 /* USER CODE END ADC1_2_IRQn 0 */ HAL_ADC_IRQHandler(&hadc1); 800d440: 4806 ldr r0, [pc, #24] @ (800d45c ) 800d442: f000 ffd9 bl 800e3f8 /* USER CODE BEGIN ADC1_2_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d446: 4620 mov r0, r4 /* USER CODE END ADC1_2_IRQn 1 */ } 800d448: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d44c: 2200 movs r2, #0 800d44e: f44f 6100 mov.w r1, #2048 @ 0x800 800d452: f003 ba68 b.w 8010926 800d456: bf00 nop 800d458: 40010c00 .word 0x40010c00 800d45c: 20000290 .word 0x20000290 0800d460 : /** * @brief This function handles CAN1 RX0 interrupt. */ void CAN1_RX0_IRQHandler(void) { 800d460: b510 push {r4, lr} /* USER CODE BEGIN CAN1_RX0_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d462: 4c09 ldr r4, [pc, #36] @ (800d488 ) 800d464: 2201 movs r2, #1 800d466: f44f 6180 mov.w r1, #1024 @ 0x400 800d46a: 4620 mov r0, r4 800d46c: f003 fa5b bl 8010926 /* USER CODE END CAN1_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); 800d470: 4806 ldr r0, [pc, #24] @ (800d48c ) 800d472: f001 fffd bl 800f470 /* USER CODE BEGIN CAN1_RX0_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d476: 4620 mov r0, r4 /* USER CODE END CAN1_RX0_IRQn 1 */ } 800d478: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d47c: 2200 movs r2, #0 800d47e: f44f 6180 mov.w r1, #1024 @ 0x400 800d482: f003 ba50 b.w 8010926 800d486: bf00 nop 800d488: 40010c00 .word 0x40010c00 800d48c: 2000035c .word 0x2000035c 0800d490 : /** * @brief This function handles TIM3 global interrupt. */ void TIM3_IRQHandler(void) { 800d490: b510 push {r4, lr} /* USER CODE BEGIN TIM3_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d492: 4c09 ldr r4, [pc, #36] @ (800d4b8 ) 800d494: 2201 movs r2, #1 800d496: f44f 6100 mov.w r1, #2048 @ 0x800 800d49a: 4620 mov r0, r4 800d49c: f003 fa43 bl 8010926 /* USER CODE END TIM3_IRQn 0 */ HAL_TIM_IRQHandler(&htim3); 800d4a0: 4806 ldr r0, [pc, #24] @ (800d4bc ) 800d4a2: f004 fe21 bl 80120e8 /* USER CODE BEGIN TIM3_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d4a6: 4620 mov r0, r4 /* USER CODE END TIM3_IRQn 1 */ } 800d4a8: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d4ac: 2200 movs r2, #0 800d4ae: f44f 6100 mov.w r1, #2048 @ 0x800 800d4b2: f003 ba38 b.w 8010926 800d4b6: bf00 nop 800d4b8: 40010c00 .word 0x40010c00 800d4bc: 200010c4 .word 0x200010c4 0800d4c0 : void USART1_IRQHandler(void) { /* USER CODE BEGIN USART1_IRQn 0 */ /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); 800d4c0: 4801 ldr r0, [pc, #4] @ (800d4c8 ) 800d4c2: f005 be6d b.w 80131a0 800d4c6: bf00 nop 800d4c8: 2000119c .word 0x2000119c 0800d4cc : /** * @brief This function handles USART2 global interrupt. */ void USART2_IRQHandler(void) { 800d4cc: b510 push {r4, lr} /* USER CODE BEGIN USART2_IRQn 0 */ HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_SET); 800d4ce: 4c08 ldr r4, [pc, #32] @ (800d4f0 ) 800d4d0: 2201 movs r2, #1 800d4d2: 2120 movs r1, #32 800d4d4: 4620 mov r0, r4 800d4d6: f003 fa26 bl 8010926 /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); 800d4da: 4806 ldr r0, [pc, #24] @ (800d4f4 ) 800d4dc: f005 fe60 bl 80131a0 /* USER CODE BEGIN USART2_IRQn 1 */ HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_RESET); 800d4e0: 4620 mov r0, r4 /* USER CODE END USART2_IRQn 1 */ } 800d4e2: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_RESET); 800d4e6: 2200 movs r2, #0 800d4e8: 2120 movs r1, #32 800d4ea: f003 ba1c b.w 8010926 800d4ee: bf00 nop 800d4f0: 40010800 .word 0x40010800 800d4f4: 200011e4 .word 0x200011e4 0800d4f8 : /** * @brief This function handles USART3 global interrupt. */ void USART3_IRQHandler(void) { 800d4f8: b510 push {r4, lr} /* USER CODE BEGIN USART3_IRQn 0 */ HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_SET); 800d4fa: 4c08 ldr r4, [pc, #32] @ (800d51c ) 800d4fc: 2201 movs r2, #1 800d4fe: 2140 movs r1, #64 @ 0x40 800d500: 4620 mov r0, r4 800d502: f003 fa10 bl 8010926 /* USER CODE END USART3_IRQn 0 */ HAL_UART_IRQHandler(&huart3); 800d506: 4806 ldr r0, [pc, #24] @ (800d520 ) 800d508: f005 fe4a bl 80131a0 /* USER CODE BEGIN USART3_IRQn 1 */ HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_RESET); 800d50c: 4620 mov r0, r4 /* USER CODE END USART3_IRQn 1 */ } 800d50e: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_RESET); 800d512: 2200 movs r2, #0 800d514: 2140 movs r1, #64 @ 0x40 800d516: f003 ba06 b.w 8010926 800d51a: bf00 nop 800d51c: 40010800 .word 0x40010800 800d520: 2000122c .word 0x2000122c 0800d524 : /** * @brief This function handles UART5 global interrupt. */ void UART5_IRQHandler(void) { 800d524: b510 push {r4, lr} /* USER CODE BEGIN UART5_IRQn 0 */ HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_SET); 800d526: 4c08 ldr r4, [pc, #32] @ (800d548 ) 800d528: 2201 movs r2, #1 800d52a: 2104 movs r1, #4 800d52c: 4620 mov r0, r4 800d52e: f003 f9fa bl 8010926 /* USER CODE END UART5_IRQn 0 */ HAL_UART_IRQHandler(&huart5); 800d532: 4806 ldr r0, [pc, #24] @ (800d54c ) 800d534: f005 fe34 bl 80131a0 /* USER CODE BEGIN UART5_IRQn 1 */ HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_RESET); 800d538: 4620 mov r0, r4 /* USER CODE END UART5_IRQn 1 */ } 800d53a: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_RESET); 800d53e: 2200 movs r2, #0 800d540: 2104 movs r1, #4 800d542: f003 b9f0 b.w 8010926 800d546: bf00 nop 800d548: 40011000 .word 0x40011000 800d54c: 20001154 .word 0x20001154 0800d550 : /** * @brief This function handles CAN2 TX interrupt. */ void CAN2_TX_IRQHandler(void) { 800d550: b510 push {r4, lr} /* USER CODE BEGIN CAN2_TX_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d552: 4c09 ldr r4, [pc, #36] @ (800d578 ) 800d554: 2201 movs r2, #1 800d556: f44f 6180 mov.w r1, #1024 @ 0x400 800d55a: 4620 mov r0, r4 800d55c: f003 f9e3 bl 8010926 /* USER CODE END CAN2_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); 800d560: 4806 ldr r0, [pc, #24] @ (800d57c ) 800d562: f001 ff85 bl 800f470 /* USER CODE BEGIN CAN2_TX_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d566: 4620 mov r0, r4 /* USER CODE END CAN2_TX_IRQn 1 */ } 800d568: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d56c: 2200 movs r2, #0 800d56e: f44f 6180 mov.w r1, #1024 @ 0x400 800d572: f003 b9d8 b.w 8010926 800d576: bf00 nop 800d578: 40010c00 .word 0x40010c00 800d57c: 20000384 .word 0x20000384 0800d580 : /** * @brief This function handles CAN2 RX1 interrupt. */ void CAN2_RX1_IRQHandler(void) { 800d580: b510 push {r4, lr} /* USER CODE BEGIN CAN2_RX1_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d582: 4c09 ldr r4, [pc, #36] @ (800d5a8 ) 800d584: 2201 movs r2, #1 800d586: f44f 6180 mov.w r1, #1024 @ 0x400 800d58a: 4620 mov r0, r4 800d58c: f003 f9cb bl 8010926 /* USER CODE END CAN2_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); 800d590: 4806 ldr r0, [pc, #24] @ (800d5ac ) 800d592: f001 ff6d bl 800f470 /* USER CODE BEGIN CAN2_RX1_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d596: 4620 mov r0, r4 /* USER CODE END CAN2_RX1_IRQn 1 */ } 800d598: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d59c: 2200 movs r2, #0 800d59e: f44f 6180 mov.w r1, #1024 @ 0x400 800d5a2: f003 b9c0 b.w 8010926 800d5a6: bf00 nop 800d5a8: 40010c00 .word 0x40010c00 800d5ac: 20000384 .word 0x20000384 0800d5b0 <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { 800d5b0: b480 push {r7} 800d5b2: af00 add r7, sp, #0 return 1; 800d5b4: 2301 movs r3, #1 } 800d5b6: 4618 mov r0, r3 800d5b8: 46bd mov sp, r7 800d5ba: bc80 pop {r7} 800d5bc: 4770 bx lr 0800d5be <_kill>: int _kill(int pid, int sig) { 800d5be: b580 push {r7, lr} 800d5c0: b082 sub sp, #8 800d5c2: af00 add r7, sp, #0 800d5c4: 6078 str r0, [r7, #4] 800d5c6: 6039 str r1, [r7, #0] (void)pid; (void)sig; errno = EINVAL; 800d5c8: f007 f8ce bl 8014768 <__errno> 800d5cc: 4603 mov r3, r0 800d5ce: 2216 movs r2, #22 800d5d0: 601a str r2, [r3, #0] return -1; 800d5d2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff } 800d5d6: 4618 mov r0, r3 800d5d8: 3708 adds r7, #8 800d5da: 46bd mov sp, r7 800d5dc: bd80 pop {r7, pc} 0800d5de <_exit>: void _exit (int status) { 800d5de: b580 push {r7, lr} 800d5e0: b082 sub sp, #8 800d5e2: af00 add r7, sp, #0 800d5e4: 6078 str r0, [r7, #4] _kill(status, -1); 800d5e6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff 800d5ea: 6878 ldr r0, [r7, #4] 800d5ec: f7ff ffe7 bl 800d5be <_kill> while (1) {} /* Make sure we hang here */ 800d5f0: bf00 nop 800d5f2: e7fd b.n 800d5f0 <_exit+0x12> 0800d5f4 <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { 800d5f4: b580 push {r7, lr} 800d5f6: b086 sub sp, #24 800d5f8: af00 add r7, sp, #0 800d5fa: 60f8 str r0, [r7, #12] 800d5fc: 60b9 str r1, [r7, #8] 800d5fe: 607a str r2, [r7, #4] (void)file; int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) 800d600: 2300 movs r3, #0 800d602: 617b str r3, [r7, #20] 800d604: e00a b.n 800d61c <_read+0x28> { *ptr++ = __io_getchar(); 800d606: f3af 8000 nop.w 800d60a: 4601 mov r1, r0 800d60c: 68bb ldr r3, [r7, #8] 800d60e: 1c5a adds r2, r3, #1 800d610: 60ba str r2, [r7, #8] 800d612: b2ca uxtb r2, r1 800d614: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) 800d616: 697b ldr r3, [r7, #20] 800d618: 3301 adds r3, #1 800d61a: 617b str r3, [r7, #20] 800d61c: 697a ldr r2, [r7, #20] 800d61e: 687b ldr r3, [r7, #4] 800d620: 429a cmp r2, r3 800d622: dbf0 blt.n 800d606 <_read+0x12> } return len; 800d624: 687b ldr r3, [r7, #4] } 800d626: 4618 mov r0, r3 800d628: 3718 adds r7, #24 800d62a: 46bd mov sp, r7 800d62c: bd80 pop {r7, pc} 0800d62e <_close>: } return len; } int _close(int file) { 800d62e: b480 push {r7} 800d630: b083 sub sp, #12 800d632: af00 add r7, sp, #0 800d634: 6078 str r0, [r7, #4] (void)file; return -1; 800d636: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff } 800d63a: 4618 mov r0, r3 800d63c: 370c adds r7, #12 800d63e: 46bd mov sp, r7 800d640: bc80 pop {r7} 800d642: 4770 bx lr 0800d644 <_fstat>: int _fstat(int file, struct stat *st) { 800d644: b480 push {r7} 800d646: b083 sub sp, #12 800d648: af00 add r7, sp, #0 800d64a: 6078 str r0, [r7, #4] 800d64c: 6039 str r1, [r7, #0] (void)file; st->st_mode = S_IFCHR; 800d64e: 683b ldr r3, [r7, #0] 800d650: f44f 5200 mov.w r2, #8192 @ 0x2000 800d654: 605a str r2, [r3, #4] return 0; 800d656: 2300 movs r3, #0 } 800d658: 4618 mov r0, r3 800d65a: 370c adds r7, #12 800d65c: 46bd mov sp, r7 800d65e: bc80 pop {r7} 800d660: 4770 bx lr 0800d662 <_isatty>: int _isatty(int file) { 800d662: b480 push {r7} 800d664: b083 sub sp, #12 800d666: af00 add r7, sp, #0 800d668: 6078 str r0, [r7, #4] (void)file; return 1; 800d66a: 2301 movs r3, #1 } 800d66c: 4618 mov r0, r3 800d66e: 370c adds r7, #12 800d670: 46bd mov sp, r7 800d672: bc80 pop {r7} 800d674: 4770 bx lr 0800d676 <_lseek>: int _lseek(int file, int ptr, int dir) { 800d676: b480 push {r7} 800d678: b085 sub sp, #20 800d67a: af00 add r7, sp, #0 800d67c: 60f8 str r0, [r7, #12] 800d67e: 60b9 str r1, [r7, #8] 800d680: 607a str r2, [r7, #4] (void)file; (void)ptr; (void)dir; return 0; 800d682: 2300 movs r3, #0 } 800d684: 4618 mov r0, r3 800d686: 3714 adds r7, #20 800d688: 46bd mov sp, r7 800d68a: bc80 pop {r7} 800d68c: 4770 bx lr ... 0800d690 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { 800d690: b580 push {r7, lr} 800d692: b086 sub sp, #24 800d694: af00 add r7, sp, #0 800d696: 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; 800d698: 4a14 ldr r2, [pc, #80] @ (800d6ec <_sbrk+0x5c>) 800d69a: 4b15 ldr r3, [pc, #84] @ (800d6f0 <_sbrk+0x60>) 800d69c: 1ad3 subs r3, r2, r3 800d69e: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; 800d6a0: 697b ldr r3, [r7, #20] 800d6a2: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) 800d6a4: 4b13 ldr r3, [pc, #76] @ (800d6f4 <_sbrk+0x64>) 800d6a6: 681b ldr r3, [r3, #0] 800d6a8: 2b00 cmp r3, #0 800d6aa: d102 bne.n 800d6b2 <_sbrk+0x22> { __sbrk_heap_end = &_end; 800d6ac: 4b11 ldr r3, [pc, #68] @ (800d6f4 <_sbrk+0x64>) 800d6ae: 4a12 ldr r2, [pc, #72] @ (800d6f8 <_sbrk+0x68>) 800d6b0: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) 800d6b2: 4b10 ldr r3, [pc, #64] @ (800d6f4 <_sbrk+0x64>) 800d6b4: 681a ldr r2, [r3, #0] 800d6b6: 687b ldr r3, [r7, #4] 800d6b8: 4413 add r3, r2 800d6ba: 693a ldr r2, [r7, #16] 800d6bc: 429a cmp r2, r3 800d6be: d207 bcs.n 800d6d0 <_sbrk+0x40> { errno = ENOMEM; 800d6c0: f007 f852 bl 8014768 <__errno> 800d6c4: 4603 mov r3, r0 800d6c6: 220c movs r2, #12 800d6c8: 601a str r2, [r3, #0] return (void *)-1; 800d6ca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff 800d6ce: e009 b.n 800d6e4 <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; 800d6d0: 4b08 ldr r3, [pc, #32] @ (800d6f4 <_sbrk+0x64>) 800d6d2: 681b ldr r3, [r3, #0] 800d6d4: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; 800d6d6: 4b07 ldr r3, [pc, #28] @ (800d6f4 <_sbrk+0x64>) 800d6d8: 681a ldr r2, [r3, #0] 800d6da: 687b ldr r3, [r7, #4] 800d6dc: 4413 add r3, r2 800d6de: 4a05 ldr r2, [pc, #20] @ (800d6f4 <_sbrk+0x64>) 800d6e0: 6013 str r3, [r2, #0] return (void *)prev_heap_end; 800d6e2: 68fb ldr r3, [r7, #12] } 800d6e4: 4618 mov r0, r3 800d6e6: 3718 adds r7, #24 800d6e8: 46bd mov sp, r7 800d6ea: bd80 pop {r7, pc} 800d6ec: 20010000 .word 0x20010000 800d6f0: 00000400 .word 0x00000400 800d6f4: 200010c0 .word 0x200010c0 800d6f8: 200013c8 .word 0x200013c8 0800d6fc : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { 800d6fc: b480 push {r7} 800d6fe: 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 */ } 800d700: bf00 nop 800d702: 46bd mov sp, r7 800d704: bc80 pop {r7} 800d706: 4770 bx lr 0800d708 : TIM_HandleTypeDef htim3; TIM_HandleTypeDef htim4; /* TIM3 init function */ void MX_TIM3_Init(void) { 800d708: b580 push {r7, lr} 800d70a: b08e sub sp, #56 @ 0x38 800d70c: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 800d70e: f107 0328 add.w r3, r7, #40 @ 0x28 800d712: 2200 movs r2, #0 800d714: 601a str r2, [r3, #0] 800d716: 605a str r2, [r3, #4] 800d718: 609a str r2, [r3, #8] 800d71a: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 800d71c: f107 0320 add.w r3, r7, #32 800d720: 2200 movs r2, #0 800d722: 601a str r2, [r3, #0] 800d724: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800d726: 1d3b adds r3, r7, #4 800d728: 2200 movs r2, #0 800d72a: 601a str r2, [r3, #0] 800d72c: 605a str r2, [r3, #4] 800d72e: 609a str r2, [r3, #8] 800d730: 60da str r2, [r3, #12] 800d732: 611a str r2, [r3, #16] 800d734: 615a str r2, [r3, #20] 800d736: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; 800d738: 4b38 ldr r3, [pc, #224] @ (800d81c ) 800d73a: 4a39 ldr r2, [pc, #228] @ (800d820 ) 800d73c: 601a str r2, [r3, #0] htim3.Init.Prescaler = 0; 800d73e: 4b37 ldr r3, [pc, #220] @ (800d81c ) 800d740: 2200 movs r2, #0 800d742: 605a str r2, [r3, #4] htim3.Init.CounterMode = TIM_COUNTERMODE_UP; 800d744: 4b35 ldr r3, [pc, #212] @ (800d81c ) 800d746: 2200 movs r2, #0 800d748: 609a str r2, [r3, #8] htim3.Init.Period = 65535; 800d74a: 4b34 ldr r3, [pc, #208] @ (800d81c ) 800d74c: f64f 72ff movw r2, #65535 @ 0xffff 800d750: 60da str r2, [r3, #12] htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 800d752: 4b32 ldr r3, [pc, #200] @ (800d81c ) 800d754: 2200 movs r2, #0 800d756: 611a str r2, [r3, #16] htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800d758: 4b30 ldr r3, [pc, #192] @ (800d81c ) 800d75a: 2200 movs r2, #0 800d75c: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim3) != HAL_OK) 800d75e: 482f ldr r0, [pc, #188] @ (800d81c ) 800d760: f004 fa6f bl 8011c42 800d764: 4603 mov r3, r0 800d766: 2b00 cmp r3, #0 800d768: d001 beq.n 800d76e { Error_Handler(); 800d76a: f7fd fa31 bl 800abd0 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800d76e: f44f 5380 mov.w r3, #4096 @ 0x1000 800d772: 62bb str r3, [r7, #40] @ 0x28 if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) 800d774: f107 0328 add.w r3, r7, #40 @ 0x28 800d778: 4619 mov r1, r3 800d77a: 4828 ldr r0, [pc, #160] @ (800d81c ) 800d77c: f004 fec2 bl 8012504 800d780: 4603 mov r3, r0 800d782: 2b00 cmp r3, #0 800d784: d001 beq.n 800d78a { Error_Handler(); 800d786: f7fd fa23 bl 800abd0 } if (HAL_TIM_OC_Init(&htim3) != HAL_OK) 800d78a: 4824 ldr r0, [pc, #144] @ (800d81c ) 800d78c: f004 faa8 bl 8011ce0 800d790: 4603 mov r3, r0 800d792: 2b00 cmp r3, #0 800d794: d001 beq.n 800d79a { Error_Handler(); 800d796: f7fd fa1b bl 800abd0 } if (HAL_TIM_PWM_Init(&htim3) != HAL_OK) 800d79a: 4820 ldr r0, [pc, #128] @ (800d81c ) 800d79c: f004 fba2 bl 8011ee4 800d7a0: 4603 mov r3, r0 800d7a2: 2b00 cmp r3, #0 800d7a4: d001 beq.n 800d7aa { Error_Handler(); 800d7a6: f7fd fa13 bl 800abd0 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_OC1; 800d7aa: 2330 movs r3, #48 @ 0x30 800d7ac: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800d7ae: 2300 movs r3, #0 800d7b0: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) 800d7b2: f107 0320 add.w r3, r7, #32 800d7b6: 4619 mov r1, r3 800d7b8: 4818 ldr r0, [pc, #96] @ (800d81c ) 800d7ba: f005 fa51 bl 8012c60 800d7be: 4603 mov r3, r0 800d7c0: 2b00 cmp r3, #0 800d7c2: d001 beq.n 800d7c8 { Error_Handler(); 800d7c4: f7fd fa04 bl 800abd0 } sConfigOC.OCMode = TIM_OCMODE_TIMING; 800d7c8: 2300 movs r3, #0 800d7ca: 607b str r3, [r7, #4] sConfigOC.Pulse = 1; 800d7cc: 2301 movs r3, #1 800d7ce: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 800d7d0: 2300 movs r3, #0 800d7d2: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 800d7d4: 2300 movs r3, #0 800d7d6: 617b str r3, [r7, #20] if (HAL_TIM_OC_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) 800d7d8: 1d3b adds r3, r7, #4 800d7da: 2200 movs r2, #0 800d7dc: 4619 mov r1, r3 800d7de: 480f ldr r0, [pc, #60] @ (800d81c ) 800d7e0: f004 fd72 bl 80122c8 800d7e4: 4603 mov r3, r0 800d7e6: 2b00 cmp r3, #0 800d7e8: d001 beq.n 800d7ee { Error_Handler(); 800d7ea: f7fd f9f1 bl 800abd0 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 800d7ee: 2360 movs r3, #96 @ 0x60 800d7f0: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 800d7f2: 2300 movs r3, #0 800d7f4: 60bb str r3, [r7, #8] if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) 800d7f6: 1d3b adds r3, r7, #4 800d7f8: 2204 movs r2, #4 800d7fa: 4619 mov r1, r3 800d7fc: 4807 ldr r0, [pc, #28] @ (800d81c ) 800d7fe: f004 fdbf bl 8012380 800d802: 4603 mov r3, r0 800d804: 2b00 cmp r3, #0 800d806: d001 beq.n 800d80c { Error_Handler(); 800d808: f7fd f9e2 bl 800abd0 } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ HAL_TIM_MspPostInit(&htim3); 800d80c: 4803 ldr r0, [pc, #12] @ (800d81c ) 800d80e: f000 f8cf bl 800d9b0 } 800d812: bf00 nop 800d814: 3738 adds r7, #56 @ 0x38 800d816: 46bd mov sp, r7 800d818: bd80 pop {r7, pc} 800d81a: bf00 nop 800d81c: 200010c4 .word 0x200010c4 800d820: 40000400 .word 0x40000400 0800d824 : /* TIM4 init function */ void MX_TIM4_Init(void) { 800d824: b580 push {r7, lr} 800d826: b08e sub sp, #56 @ 0x38 800d828: af00 add r7, sp, #0 /* USER CODE BEGIN TIM4_Init 0 */ /* USER CODE END TIM4_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 800d82a: f107 0328 add.w r3, r7, #40 @ 0x28 800d82e: 2200 movs r2, #0 800d830: 601a str r2, [r3, #0] 800d832: 605a str r2, [r3, #4] 800d834: 609a str r2, [r3, #8] 800d836: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 800d838: f107 0320 add.w r3, r7, #32 800d83c: 2200 movs r2, #0 800d83e: 601a str r2, [r3, #0] 800d840: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800d842: 1d3b adds r3, r7, #4 800d844: 2200 movs r2, #0 800d846: 601a str r2, [r3, #0] 800d848: 605a str r2, [r3, #4] 800d84a: 609a str r2, [r3, #8] 800d84c: 60da str r2, [r3, #12] 800d84e: 611a str r2, [r3, #16] 800d850: 615a str r2, [r3, #20] 800d852: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM4_Init 1 */ /* USER CODE END TIM4_Init 1 */ htim4.Instance = TIM4; 800d854: 4b37 ldr r3, [pc, #220] @ (800d934 ) 800d856: 4a38 ldr r2, [pc, #224] @ (800d938 ) 800d858: 601a str r2, [r3, #0] htim4.Init.Prescaler = 720; 800d85a: 4b36 ldr r3, [pc, #216] @ (800d934 ) 800d85c: f44f 7234 mov.w r2, #720 @ 0x2d0 800d860: 605a str r2, [r3, #4] htim4.Init.CounterMode = TIM_COUNTERMODE_UP; 800d862: 4b34 ldr r3, [pc, #208] @ (800d934 ) 800d864: 2200 movs r2, #0 800d866: 609a str r2, [r3, #8] htim4.Init.Period = 100; 800d868: 4b32 ldr r3, [pc, #200] @ (800d934 ) 800d86a: 2264 movs r2, #100 @ 0x64 800d86c: 60da str r2, [r3, #12] htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 800d86e: 4b31 ldr r3, [pc, #196] @ (800d934 ) 800d870: 2200 movs r2, #0 800d872: 611a str r2, [r3, #16] htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800d874: 4b2f ldr r3, [pc, #188] @ (800d934 ) 800d876: 2200 movs r2, #0 800d878: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim4) != HAL_OK) 800d87a: 482e ldr r0, [pc, #184] @ (800d934 ) 800d87c: f004 f9e1 bl 8011c42 800d880: 4603 mov r3, r0 800d882: 2b00 cmp r3, #0 800d884: d001 beq.n 800d88a { Error_Handler(); 800d886: f7fd f9a3 bl 800abd0 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800d88a: f44f 5380 mov.w r3, #4096 @ 0x1000 800d88e: 62bb str r3, [r7, #40] @ 0x28 if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) 800d890: f107 0328 add.w r3, r7, #40 @ 0x28 800d894: 4619 mov r1, r3 800d896: 4827 ldr r0, [pc, #156] @ (800d934 ) 800d898: f004 fe34 bl 8012504 800d89c: 4603 mov r3, r0 800d89e: 2b00 cmp r3, #0 800d8a0: d001 beq.n 800d8a6 { Error_Handler(); 800d8a2: f7fd f995 bl 800abd0 } if (HAL_TIM_PWM_Init(&htim4) != HAL_OK) 800d8a6: 4823 ldr r0, [pc, #140] @ (800d934 ) 800d8a8: f004 fb1c bl 8011ee4 800d8ac: 4603 mov r3, r0 800d8ae: 2b00 cmp r3, #0 800d8b0: d001 beq.n 800d8b6 { Error_Handler(); 800d8b2: f7fd f98d bl 800abd0 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 800d8b6: 2300 movs r3, #0 800d8b8: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800d8ba: 2300 movs r3, #0 800d8bc: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK) 800d8be: f107 0320 add.w r3, r7, #32 800d8c2: 4619 mov r1, r3 800d8c4: 481b ldr r0, [pc, #108] @ (800d934 ) 800d8c6: f005 f9cb bl 8012c60 800d8ca: 4603 mov r3, r0 800d8cc: 2b00 cmp r3, #0 800d8ce: d001 beq.n 800d8d4 { Error_Handler(); 800d8d0: f7fd f97e bl 800abd0 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 800d8d4: 2360 movs r3, #96 @ 0x60 800d8d6: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 800d8d8: 2300 movs r3, #0 800d8da: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 800d8dc: 2300 movs r3, #0 800d8de: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 800d8e0: 2300 movs r3, #0 800d8e2: 617b str r3, [r7, #20] if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) 800d8e4: 1d3b adds r3, r7, #4 800d8e6: 2204 movs r2, #4 800d8e8: 4619 mov r1, r3 800d8ea: 4812 ldr r0, [pc, #72] @ (800d934 ) 800d8ec: f004 fd48 bl 8012380 800d8f0: 4603 mov r3, r0 800d8f2: 2b00 cmp r3, #0 800d8f4: d001 beq.n 800d8fa { Error_Handler(); 800d8f6: f7fd f96b bl 800abd0 } if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) 800d8fa: 1d3b adds r3, r7, #4 800d8fc: 2208 movs r2, #8 800d8fe: 4619 mov r1, r3 800d900: 480c ldr r0, [pc, #48] @ (800d934 ) 800d902: f004 fd3d bl 8012380 800d906: 4603 mov r3, r0 800d908: 2b00 cmp r3, #0 800d90a: d001 beq.n 800d910 { Error_Handler(); 800d90c: f7fd f960 bl 800abd0 } if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_4) != HAL_OK) 800d910: 1d3b adds r3, r7, #4 800d912: 220c movs r2, #12 800d914: 4619 mov r1, r3 800d916: 4807 ldr r0, [pc, #28] @ (800d934 ) 800d918: f004 fd32 bl 8012380 800d91c: 4603 mov r3, r0 800d91e: 2b00 cmp r3, #0 800d920: d001 beq.n 800d926 { Error_Handler(); 800d922: f7fd f955 bl 800abd0 } /* USER CODE BEGIN TIM4_Init 2 */ /* USER CODE END TIM4_Init 2 */ HAL_TIM_MspPostInit(&htim4); 800d926: 4803 ldr r0, [pc, #12] @ (800d934 ) 800d928: f000 f842 bl 800d9b0 } 800d92c: bf00 nop 800d92e: 3738 adds r7, #56 @ 0x38 800d930: 46bd mov sp, r7 800d932: bd80 pop {r7, pc} 800d934: 2000110c .word 0x2000110c 800d938: 40000800 .word 0x40000800 0800d93c : void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle) { 800d93c: b580 push {r7, lr} 800d93e: b084 sub sp, #16 800d940: af00 add r7, sp, #0 800d942: 6078 str r0, [r7, #4] if(tim_baseHandle->Instance==TIM3) 800d944: 687b ldr r3, [r7, #4] 800d946: 681b ldr r3, [r3, #0] 800d948: 4a16 ldr r2, [pc, #88] @ (800d9a4 ) 800d94a: 4293 cmp r3, r2 800d94c: d114 bne.n 800d978 { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); 800d94e: 4b16 ldr r3, [pc, #88] @ (800d9a8 ) 800d950: 69db ldr r3, [r3, #28] 800d952: 4a15 ldr r2, [pc, #84] @ (800d9a8 ) 800d954: f043 0302 orr.w r3, r3, #2 800d958: 61d3 str r3, [r2, #28] 800d95a: 4b13 ldr r3, [pc, #76] @ (800d9a8 ) 800d95c: 69db ldr r3, [r3, #28] 800d95e: f003 0302 and.w r3, r3, #2 800d962: 60fb str r3, [r7, #12] 800d964: 68fb ldr r3, [r7, #12] /* TIM3 interrupt Init */ HAL_NVIC_SetPriority(TIM3_IRQn, 0, 0); 800d966: 2200 movs r2, #0 800d968: 2100 movs r1, #0 800d96a: 201d movs r0, #29 800d96c: f002 f89f bl 800faae HAL_NVIC_EnableIRQ(TIM3_IRQn); 800d970: 201d movs r0, #29 800d972: f002 f8b8 bl 800fae6 __HAL_RCC_TIM4_CLK_ENABLE(); /* USER CODE BEGIN TIM4_MspInit 1 */ /* USER CODE END TIM4_MspInit 1 */ } } 800d976: e010 b.n 800d99a else if(tim_baseHandle->Instance==TIM4) 800d978: 687b ldr r3, [r7, #4] 800d97a: 681b ldr r3, [r3, #0] 800d97c: 4a0b ldr r2, [pc, #44] @ (800d9ac ) 800d97e: 4293 cmp r3, r2 800d980: d10b bne.n 800d99a __HAL_RCC_TIM4_CLK_ENABLE(); 800d982: 4b09 ldr r3, [pc, #36] @ (800d9a8 ) 800d984: 69db ldr r3, [r3, #28] 800d986: 4a08 ldr r2, [pc, #32] @ (800d9a8 ) 800d988: f043 0304 orr.w r3, r3, #4 800d98c: 61d3 str r3, [r2, #28] 800d98e: 4b06 ldr r3, [pc, #24] @ (800d9a8 ) 800d990: 69db ldr r3, [r3, #28] 800d992: f003 0304 and.w r3, r3, #4 800d996: 60bb str r3, [r7, #8] 800d998: 68bb ldr r3, [r7, #8] } 800d99a: bf00 nop 800d99c: 3710 adds r7, #16 800d99e: 46bd mov sp, r7 800d9a0: bd80 pop {r7, pc} 800d9a2: bf00 nop 800d9a4: 40000400 .word 0x40000400 800d9a8: 40021000 .word 0x40021000 800d9ac: 40000800 .word 0x40000800 0800d9b0 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { 800d9b0: b580 push {r7, lr} 800d9b2: b08a sub sp, #40 @ 0x28 800d9b4: af00 add r7, sp, #0 800d9b6: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800d9b8: f107 0314 add.w r3, r7, #20 800d9bc: 2200 movs r2, #0 800d9be: 601a str r2, [r3, #0] 800d9c0: 605a str r2, [r3, #4] 800d9c2: 609a str r2, [r3, #8] 800d9c4: 60da str r2, [r3, #12] if(timHandle->Instance==TIM3) 800d9c6: 687b ldr r3, [r7, #4] 800d9c8: 681b ldr r3, [r3, #0] 800d9ca: 4a26 ldr r2, [pc, #152] @ (800da64 ) 800d9cc: 4293 cmp r3, r2 800d9ce: d118 bne.n 800da02 { /* USER CODE BEGIN TIM3_MspPostInit 0 */ /* USER CODE END TIM3_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); 800d9d0: 4b25 ldr r3, [pc, #148] @ (800da68 ) 800d9d2: 699b ldr r3, [r3, #24] 800d9d4: 4a24 ldr r2, [pc, #144] @ (800da68 ) 800d9d6: f043 0304 orr.w r3, r3, #4 800d9da: 6193 str r3, [r2, #24] 800d9dc: 4b22 ldr r3, [pc, #136] @ (800da68 ) 800d9de: 699b ldr r3, [r3, #24] 800d9e0: f003 0304 and.w r3, r3, #4 800d9e4: 613b str r3, [r7, #16] 800d9e6: 693b ldr r3, [r7, #16] /**TIM3 GPIO Configuration PA7 ------> TIM3_CH2 */ GPIO_InitStruct.Pin = CP_PWM_Pin; 800d9e8: 2380 movs r3, #128 @ 0x80 800d9ea: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800d9ec: 2302 movs r3, #2 800d9ee: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800d9f0: 2302 movs r3, #2 800d9f2: 623b str r3, [r7, #32] HAL_GPIO_Init(CP_PWM_GPIO_Port, &GPIO_InitStruct); 800d9f4: f107 0314 add.w r3, r7, #20 800d9f8: 4619 mov r1, r3 800d9fa: 481c ldr r0, [pc, #112] @ (800da6c ) 800d9fc: f002 fd3c bl 8010478 /* USER CODE BEGIN TIM4_MspPostInit 1 */ /* USER CODE END TIM4_MspPostInit 1 */ } } 800da00: e02b b.n 800da5a else if(timHandle->Instance==TIM4) 800da02: 687b ldr r3, [r7, #4] 800da04: 681b ldr r3, [r3, #0] 800da06: 4a1a ldr r2, [pc, #104] @ (800da70 ) 800da08: 4293 cmp r3, r2 800da0a: d126 bne.n 800da5a __HAL_RCC_GPIOD_CLK_ENABLE(); 800da0c: 4b16 ldr r3, [pc, #88] @ (800da68 ) 800da0e: 699b ldr r3, [r3, #24] 800da10: 4a15 ldr r2, [pc, #84] @ (800da68 ) 800da12: f043 0320 orr.w r3, r3, #32 800da16: 6193 str r3, [r2, #24] 800da18: 4b13 ldr r3, [pc, #76] @ (800da68 ) 800da1a: 699b ldr r3, [r3, #24] 800da1c: f003 0320 and.w r3, r3, #32 800da20: 60fb str r3, [r7, #12] 800da22: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15; 800da24: f44f 4360 mov.w r3, #57344 @ 0xe000 800da28: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800da2a: 2302 movs r3, #2 800da2c: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800da2e: 2302 movs r3, #2 800da30: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800da32: f107 0314 add.w r3, r7, #20 800da36: 4619 mov r1, r3 800da38: 480e ldr r0, [pc, #56] @ (800da74 ) 800da3a: f002 fd1d bl 8010478 __HAL_AFIO_REMAP_TIM4_ENABLE(); 800da3e: 4b0e ldr r3, [pc, #56] @ (800da78 ) 800da40: 685b ldr r3, [r3, #4] 800da42: 627b str r3, [r7, #36] @ 0x24 800da44: 6a7b ldr r3, [r7, #36] @ 0x24 800da46: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800da4a: 627b str r3, [r7, #36] @ 0x24 800da4c: 6a7b ldr r3, [r7, #36] @ 0x24 800da4e: f443 5380 orr.w r3, r3, #4096 @ 0x1000 800da52: 627b str r3, [r7, #36] @ 0x24 800da54: 4a08 ldr r2, [pc, #32] @ (800da78 ) 800da56: 6a7b ldr r3, [r7, #36] @ 0x24 800da58: 6053 str r3, [r2, #4] } 800da5a: bf00 nop 800da5c: 3728 adds r7, #40 @ 0x28 800da5e: 46bd mov sp, r7 800da60: bd80 pop {r7, pc} 800da62: bf00 nop 800da64: 40000400 .word 0x40000400 800da68: 40021000 .word 0x40021000 800da6c: 40010800 .word 0x40010800 800da70: 40000800 .word 0x40000800 800da74: 40011400 .word 0x40011400 800da78: 40010000 .word 0x40010000 0800da7c : UART_HandleTypeDef huart2; UART_HandleTypeDef huart3; /* UART5 init function */ void MX_UART5_Init(void) { 800da7c: b580 push {r7, lr} 800da7e: af00 add r7, sp, #0 /* USER CODE END UART5_Init 0 */ /* USER CODE BEGIN UART5_Init 1 */ /* USER CODE END UART5_Init 1 */ huart5.Instance = UART5; 800da80: 4b11 ldr r3, [pc, #68] @ (800dac8 ) 800da82: 4a12 ldr r2, [pc, #72] @ (800dacc ) 800da84: 601a str r2, [r3, #0] huart5.Init.BaudRate = 9600; 800da86: 4b10 ldr r3, [pc, #64] @ (800dac8 ) 800da88: f44f 5216 mov.w r2, #9600 @ 0x2580 800da8c: 605a str r2, [r3, #4] huart5.Init.WordLength = UART_WORDLENGTH_8B; 800da8e: 4b0e ldr r3, [pc, #56] @ (800dac8 ) 800da90: 2200 movs r2, #0 800da92: 609a str r2, [r3, #8] huart5.Init.StopBits = UART_STOPBITS_1; 800da94: 4b0c ldr r3, [pc, #48] @ (800dac8 ) 800da96: 2200 movs r2, #0 800da98: 60da str r2, [r3, #12] huart5.Init.Parity = UART_PARITY_NONE; 800da9a: 4b0b ldr r3, [pc, #44] @ (800dac8 ) 800da9c: 2200 movs r2, #0 800da9e: 611a str r2, [r3, #16] huart5.Init.Mode = UART_MODE_TX_RX; 800daa0: 4b09 ldr r3, [pc, #36] @ (800dac8 ) 800daa2: 220c movs r2, #12 800daa4: 615a str r2, [r3, #20] huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800daa6: 4b08 ldr r3, [pc, #32] @ (800dac8 ) 800daa8: 2200 movs r2, #0 800daaa: 619a str r2, [r3, #24] huart5.Init.OverSampling = UART_OVERSAMPLING_16; 800daac: 4b06 ldr r3, [pc, #24] @ (800dac8 ) 800daae: 2200 movs r2, #0 800dab0: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart5) != HAL_OK) 800dab2: 4805 ldr r0, [pc, #20] @ (800dac8 ) 800dab4: f005 f94c bl 8012d50 800dab8: 4603 mov r3, r0 800daba: 2b00 cmp r3, #0 800dabc: d001 beq.n 800dac2 { Error_Handler(); 800dabe: f7fd f887 bl 800abd0 } /* USER CODE BEGIN UART5_Init 2 */ /* USER CODE END UART5_Init 2 */ } 800dac2: bf00 nop 800dac4: bd80 pop {r7, pc} 800dac6: bf00 nop 800dac8: 20001154 .word 0x20001154 800dacc: 40005000 .word 0x40005000 0800dad0 : /* USART1 init function */ void MX_USART1_UART_Init(void) { 800dad0: b580 push {r7, lr} 800dad2: af00 add r7, sp, #0 /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; 800dad4: 4b11 ldr r3, [pc, #68] @ (800db1c ) 800dad6: 4a12 ldr r2, [pc, #72] @ (800db20 ) 800dad8: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; 800dada: 4b10 ldr r3, [pc, #64] @ (800db1c ) 800dadc: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800dae0: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; 800dae2: 4b0e ldr r3, [pc, #56] @ (800db1c ) 800dae4: 2200 movs r2, #0 800dae6: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; 800dae8: 4b0c ldr r3, [pc, #48] @ (800db1c ) 800daea: 2200 movs r2, #0 800daec: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; 800daee: 4b0b ldr r3, [pc, #44] @ (800db1c ) 800daf0: 2200 movs r2, #0 800daf2: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; 800daf4: 4b09 ldr r3, [pc, #36] @ (800db1c ) 800daf6: 220c movs r2, #12 800daf8: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800dafa: 4b08 ldr r3, [pc, #32] @ (800db1c ) 800dafc: 2200 movs r2, #0 800dafe: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; 800db00: 4b06 ldr r3, [pc, #24] @ (800db1c ) 800db02: 2200 movs r2, #0 800db04: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) 800db06: 4805 ldr r0, [pc, #20] @ (800db1c ) 800db08: f005 f922 bl 8012d50 800db0c: 4603 mov r3, r0 800db0e: 2b00 cmp r3, #0 800db10: d001 beq.n 800db16 { Error_Handler(); 800db12: f7fd f85d bl 800abd0 } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } 800db16: bf00 nop 800db18: bd80 pop {r7, pc} 800db1a: bf00 nop 800db1c: 2000119c .word 0x2000119c 800db20: 40013800 .word 0x40013800 0800db24 : /* USART2 init function */ void MX_USART2_UART_Init(void) { 800db24: b580 push {r7, lr} 800db26: af00 add r7, sp, #0 /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_Init 1 */ /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; 800db28: 4b11 ldr r3, [pc, #68] @ (800db70 ) 800db2a: 4a12 ldr r2, [pc, #72] @ (800db74 ) 800db2c: 601a str r2, [r3, #0] huart2.Init.BaudRate = 115200; 800db2e: 4b10 ldr r3, [pc, #64] @ (800db70 ) 800db30: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800db34: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; 800db36: 4b0e ldr r3, [pc, #56] @ (800db70 ) 800db38: 2200 movs r2, #0 800db3a: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; 800db3c: 4b0c ldr r3, [pc, #48] @ (800db70 ) 800db3e: 2200 movs r2, #0 800db40: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; 800db42: 4b0b ldr r3, [pc, #44] @ (800db70 ) 800db44: 2200 movs r2, #0 800db46: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; 800db48: 4b09 ldr r3, [pc, #36] @ (800db70 ) 800db4a: 220c movs r2, #12 800db4c: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800db4e: 4b08 ldr r3, [pc, #32] @ (800db70 ) 800db50: 2200 movs r2, #0 800db52: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; 800db54: 4b06 ldr r3, [pc, #24] @ (800db70 ) 800db56: 2200 movs r2, #0 800db58: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart2) != HAL_OK) 800db5a: 4805 ldr r0, [pc, #20] @ (800db70 ) 800db5c: f005 f8f8 bl 8012d50 800db60: 4603 mov r3, r0 800db62: 2b00 cmp r3, #0 800db64: d001 beq.n 800db6a { Error_Handler(); 800db66: f7fd f833 bl 800abd0 } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } 800db6a: bf00 nop 800db6c: bd80 pop {r7, pc} 800db6e: bf00 nop 800db70: 200011e4 .word 0x200011e4 800db74: 40004400 .word 0x40004400 0800db78 : /* USART3 init function */ void MX_USART3_UART_Init(void) { 800db78: b580 push {r7, lr} 800db7a: af00 add r7, sp, #0 /* USER CODE END USART3_Init 0 */ /* USER CODE BEGIN USART3_Init 1 */ /* USER CODE END USART3_Init 1 */ huart3.Instance = USART3; 800db7c: 4b11 ldr r3, [pc, #68] @ (800dbc4 ) 800db7e: 4a12 ldr r2, [pc, #72] @ (800dbc8 ) 800db80: 601a str r2, [r3, #0] huart3.Init.BaudRate = 115200; 800db82: 4b10 ldr r3, [pc, #64] @ (800dbc4 ) 800db84: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800db88: 605a str r2, [r3, #4] huart3.Init.WordLength = UART_WORDLENGTH_8B; 800db8a: 4b0e ldr r3, [pc, #56] @ (800dbc4 ) 800db8c: 2200 movs r2, #0 800db8e: 609a str r2, [r3, #8] huart3.Init.StopBits = UART_STOPBITS_1; 800db90: 4b0c ldr r3, [pc, #48] @ (800dbc4 ) 800db92: 2200 movs r2, #0 800db94: 60da str r2, [r3, #12] huart3.Init.Parity = UART_PARITY_NONE; 800db96: 4b0b ldr r3, [pc, #44] @ (800dbc4 ) 800db98: 2200 movs r2, #0 800db9a: 611a str r2, [r3, #16] huart3.Init.Mode = UART_MODE_TX_RX; 800db9c: 4b09 ldr r3, [pc, #36] @ (800dbc4 ) 800db9e: 220c movs r2, #12 800dba0: 615a str r2, [r3, #20] huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800dba2: 4b08 ldr r3, [pc, #32] @ (800dbc4 ) 800dba4: 2200 movs r2, #0 800dba6: 619a str r2, [r3, #24] huart3.Init.OverSampling = UART_OVERSAMPLING_16; 800dba8: 4b06 ldr r3, [pc, #24] @ (800dbc4 ) 800dbaa: 2200 movs r2, #0 800dbac: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart3) != HAL_OK) 800dbae: 4805 ldr r0, [pc, #20] @ (800dbc4 ) 800dbb0: f005 f8ce bl 8012d50 800dbb4: 4603 mov r3, r0 800dbb6: 2b00 cmp r3, #0 800dbb8: d001 beq.n 800dbbe { Error_Handler(); 800dbba: f7fd f809 bl 800abd0 } /* USER CODE BEGIN USART3_Init 2 */ /* USER CODE END USART3_Init 2 */ } 800dbbe: bf00 nop 800dbc0: bd80 pop {r7, pc} 800dbc2: bf00 nop 800dbc4: 2000122c .word 0x2000122c 800dbc8: 40004800 .word 0x40004800 0800dbcc : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { 800dbcc: b580 push {r7, lr} 800dbce: b092 sub sp, #72 @ 0x48 800dbd0: af00 add r7, sp, #0 800dbd2: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800dbd4: f107 0330 add.w r3, r7, #48 @ 0x30 800dbd8: 2200 movs r2, #0 800dbda: 601a str r2, [r3, #0] 800dbdc: 605a str r2, [r3, #4] 800dbde: 609a str r2, [r3, #8] 800dbe0: 60da str r2, [r3, #12] if(uartHandle->Instance==UART5) 800dbe2: 687b ldr r3, [r7, #4] 800dbe4: 681b ldr r3, [r3, #0] 800dbe6: 4a95 ldr r2, [pc, #596] @ (800de3c ) 800dbe8: 4293 cmp r3, r2 800dbea: d145 bne.n 800dc78 { /* USER CODE BEGIN UART5_MspInit 0 */ /* USER CODE END UART5_MspInit 0 */ /* UART5 clock enable */ __HAL_RCC_UART5_CLK_ENABLE(); 800dbec: 4b94 ldr r3, [pc, #592] @ (800de40 ) 800dbee: 69db ldr r3, [r3, #28] 800dbf0: 4a93 ldr r2, [pc, #588] @ (800de40 ) 800dbf2: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 800dbf6: 61d3 str r3, [r2, #28] 800dbf8: 4b91 ldr r3, [pc, #580] @ (800de40 ) 800dbfa: 69db ldr r3, [r3, #28] 800dbfc: f403 1380 and.w r3, r3, #1048576 @ 0x100000 800dc00: 62fb str r3, [r7, #44] @ 0x2c 800dc02: 6afb ldr r3, [r7, #44] @ 0x2c __HAL_RCC_GPIOC_CLK_ENABLE(); 800dc04: 4b8e ldr r3, [pc, #568] @ (800de40 ) 800dc06: 699b ldr r3, [r3, #24] 800dc08: 4a8d ldr r2, [pc, #564] @ (800de40 ) 800dc0a: f043 0310 orr.w r3, r3, #16 800dc0e: 6193 str r3, [r2, #24] 800dc10: 4b8b ldr r3, [pc, #556] @ (800de40 ) 800dc12: 699b ldr r3, [r3, #24] 800dc14: f003 0310 and.w r3, r3, #16 800dc18: 62bb str r3, [r7, #40] @ 0x28 800dc1a: 6abb ldr r3, [r7, #40] @ 0x28 __HAL_RCC_GPIOD_CLK_ENABLE(); 800dc1c: 4b88 ldr r3, [pc, #544] @ (800de40 ) 800dc1e: 699b ldr r3, [r3, #24] 800dc20: 4a87 ldr r2, [pc, #540] @ (800de40 ) 800dc22: f043 0320 orr.w r3, r3, #32 800dc26: 6193 str r3, [r2, #24] 800dc28: 4b85 ldr r3, [pc, #532] @ (800de40 ) 800dc2a: 699b ldr r3, [r3, #24] 800dc2c: f003 0320 and.w r3, r3, #32 800dc30: 627b str r3, [r7, #36] @ 0x24 800dc32: 6a7b ldr r3, [r7, #36] @ 0x24 /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ GPIO_InitStruct.Pin = GPIO_PIN_12; 800dc34: f44f 5380 mov.w r3, #4096 @ 0x1000 800dc38: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800dc3a: 2302 movs r3, #2 800dc3c: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800dc3e: 2303 movs r3, #3 800dc40: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800dc42: f107 0330 add.w r3, r7, #48 @ 0x30 800dc46: 4619 mov r1, r3 800dc48: 487e ldr r0, [pc, #504] @ (800de44 ) 800dc4a: f002 fc15 bl 8010478 GPIO_InitStruct.Pin = GPIO_PIN_2; 800dc4e: 2304 movs r3, #4 800dc50: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800dc52: 2300 movs r3, #0 800dc54: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800dc56: 2300 movs r3, #0 800dc58: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800dc5a: f107 0330 add.w r3, r7, #48 @ 0x30 800dc5e: 4619 mov r1, r3 800dc60: 4879 ldr r0, [pc, #484] @ (800de48 ) 800dc62: f002 fc09 bl 8010478 /* UART5 interrupt Init */ HAL_NVIC_SetPriority(UART5_IRQn, 0, 0); 800dc66: 2200 movs r2, #0 800dc68: 2100 movs r1, #0 800dc6a: 2035 movs r0, #53 @ 0x35 800dc6c: f001 ff1f bl 800faae HAL_NVIC_EnableIRQ(UART5_IRQn); 800dc70: 2035 movs r0, #53 @ 0x35 800dc72: f001 ff38 bl 800fae6 HAL_NVIC_EnableIRQ(USART3_IRQn); /* USER CODE BEGIN USART3_MspInit 1 */ /* USER CODE END USART3_MspInit 1 */ } } 800dc76: e0dc b.n 800de32 else if(uartHandle->Instance==USART1) 800dc78: 687b ldr r3, [r7, #4] 800dc7a: 681b ldr r3, [r3, #0] 800dc7c: 4a73 ldr r2, [pc, #460] @ (800de4c ) 800dc7e: 4293 cmp r3, r2 800dc80: d13a bne.n 800dcf8 __HAL_RCC_USART1_CLK_ENABLE(); 800dc82: 4b6f ldr r3, [pc, #444] @ (800de40 ) 800dc84: 699b ldr r3, [r3, #24] 800dc86: 4a6e ldr r2, [pc, #440] @ (800de40 ) 800dc88: f443 4380 orr.w r3, r3, #16384 @ 0x4000 800dc8c: 6193 str r3, [r2, #24] 800dc8e: 4b6c ldr r3, [pc, #432] @ (800de40 ) 800dc90: 699b ldr r3, [r3, #24] 800dc92: f403 4380 and.w r3, r3, #16384 @ 0x4000 800dc96: 623b str r3, [r7, #32] 800dc98: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOA_CLK_ENABLE(); 800dc9a: 4b69 ldr r3, [pc, #420] @ (800de40 ) 800dc9c: 699b ldr r3, [r3, #24] 800dc9e: 4a68 ldr r2, [pc, #416] @ (800de40 ) 800dca0: f043 0304 orr.w r3, r3, #4 800dca4: 6193 str r3, [r2, #24] 800dca6: 4b66 ldr r3, [pc, #408] @ (800de40 ) 800dca8: 699b ldr r3, [r3, #24] 800dcaa: f003 0304 and.w r3, r3, #4 800dcae: 61fb str r3, [r7, #28] 800dcb0: 69fb ldr r3, [r7, #28] GPIO_InitStruct.Pin = GPIO_PIN_9; 800dcb2: f44f 7300 mov.w r3, #512 @ 0x200 800dcb6: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800dcb8: 2302 movs r3, #2 800dcba: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800dcbc: 2303 movs r3, #3 800dcbe: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800dcc0: f107 0330 add.w r3, r7, #48 @ 0x30 800dcc4: 4619 mov r1, r3 800dcc6: 4862 ldr r0, [pc, #392] @ (800de50 ) 800dcc8: f002 fbd6 bl 8010478 GPIO_InitStruct.Pin = GPIO_PIN_10; 800dccc: f44f 6380 mov.w r3, #1024 @ 0x400 800dcd0: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800dcd2: 2300 movs r3, #0 800dcd4: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800dcd6: 2300 movs r3, #0 800dcd8: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800dcda: f107 0330 add.w r3, r7, #48 @ 0x30 800dcde: 4619 mov r1, r3 800dce0: 485b ldr r0, [pc, #364] @ (800de50 ) 800dce2: f002 fbc9 bl 8010478 HAL_NVIC_SetPriority(USART1_IRQn, 0, 0); 800dce6: 2200 movs r2, #0 800dce8: 2100 movs r1, #0 800dcea: 2025 movs r0, #37 @ 0x25 800dcec: f001 fedf bl 800faae HAL_NVIC_EnableIRQ(USART1_IRQn); 800dcf0: 2025 movs r0, #37 @ 0x25 800dcf2: f001 fef8 bl 800fae6 } 800dcf6: e09c b.n 800de32 else if(uartHandle->Instance==USART2) 800dcf8: 687b ldr r3, [r7, #4] 800dcfa: 681b ldr r3, [r3, #0] 800dcfc: 4a55 ldr r2, [pc, #340] @ (800de54 ) 800dcfe: 4293 cmp r3, r2 800dd00: d146 bne.n 800dd90 __HAL_RCC_USART2_CLK_ENABLE(); 800dd02: 4b4f ldr r3, [pc, #316] @ (800de40 ) 800dd04: 69db ldr r3, [r3, #28] 800dd06: 4a4e ldr r2, [pc, #312] @ (800de40 ) 800dd08: f443 3300 orr.w r3, r3, #131072 @ 0x20000 800dd0c: 61d3 str r3, [r2, #28] 800dd0e: 4b4c ldr r3, [pc, #304] @ (800de40 ) 800dd10: 69db ldr r3, [r3, #28] 800dd12: f403 3300 and.w r3, r3, #131072 @ 0x20000 800dd16: 61bb str r3, [r7, #24] 800dd18: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOD_CLK_ENABLE(); 800dd1a: 4b49 ldr r3, [pc, #292] @ (800de40 ) 800dd1c: 699b ldr r3, [r3, #24] 800dd1e: 4a48 ldr r2, [pc, #288] @ (800de40 ) 800dd20: f043 0320 orr.w r3, r3, #32 800dd24: 6193 str r3, [r2, #24] 800dd26: 4b46 ldr r3, [pc, #280] @ (800de40 ) 800dd28: 699b ldr r3, [r3, #24] 800dd2a: f003 0320 and.w r3, r3, #32 800dd2e: 617b str r3, [r7, #20] 800dd30: 697b ldr r3, [r7, #20] GPIO_InitStruct.Pin = GPIO_PIN_5; 800dd32: 2320 movs r3, #32 800dd34: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800dd36: 2302 movs r3, #2 800dd38: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800dd3a: 2303 movs r3, #3 800dd3c: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800dd3e: f107 0330 add.w r3, r7, #48 @ 0x30 800dd42: 4619 mov r1, r3 800dd44: 4840 ldr r0, [pc, #256] @ (800de48 ) 800dd46: f002 fb97 bl 8010478 GPIO_InitStruct.Pin = GPIO_PIN_6; 800dd4a: 2340 movs r3, #64 @ 0x40 800dd4c: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800dd4e: 2300 movs r3, #0 800dd50: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800dd52: 2300 movs r3, #0 800dd54: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800dd56: f107 0330 add.w r3, r7, #48 @ 0x30 800dd5a: 4619 mov r1, r3 800dd5c: 483a ldr r0, [pc, #232] @ (800de48 ) 800dd5e: f002 fb8b bl 8010478 __HAL_AFIO_REMAP_USART2_ENABLE(); 800dd62: 4b3d ldr r3, [pc, #244] @ (800de58 ) 800dd64: 685b ldr r3, [r3, #4] 800dd66: 643b str r3, [r7, #64] @ 0x40 800dd68: 6c3b ldr r3, [r7, #64] @ 0x40 800dd6a: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800dd6e: 643b str r3, [r7, #64] @ 0x40 800dd70: 6c3b ldr r3, [r7, #64] @ 0x40 800dd72: f043 0308 orr.w r3, r3, #8 800dd76: 643b str r3, [r7, #64] @ 0x40 800dd78: 4a37 ldr r2, [pc, #220] @ (800de58 ) 800dd7a: 6c3b ldr r3, [r7, #64] @ 0x40 800dd7c: 6053 str r3, [r2, #4] HAL_NVIC_SetPriority(USART2_IRQn, 0, 0); 800dd7e: 2200 movs r2, #0 800dd80: 2100 movs r1, #0 800dd82: 2026 movs r0, #38 @ 0x26 800dd84: f001 fe93 bl 800faae HAL_NVIC_EnableIRQ(USART2_IRQn); 800dd88: 2026 movs r0, #38 @ 0x26 800dd8a: f001 feac bl 800fae6 } 800dd8e: e050 b.n 800de32 else if(uartHandle->Instance==USART3) 800dd90: 687b ldr r3, [r7, #4] 800dd92: 681b ldr r3, [r3, #0] 800dd94: 4a31 ldr r2, [pc, #196] @ (800de5c ) 800dd96: 4293 cmp r3, r2 800dd98: d14b bne.n 800de32 __HAL_RCC_USART3_CLK_ENABLE(); 800dd9a: 4b29 ldr r3, [pc, #164] @ (800de40 ) 800dd9c: 69db ldr r3, [r3, #28] 800dd9e: 4a28 ldr r2, [pc, #160] @ (800de40 ) 800dda0: f443 2380 orr.w r3, r3, #262144 @ 0x40000 800dda4: 61d3 str r3, [r2, #28] 800dda6: 4b26 ldr r3, [pc, #152] @ (800de40 ) 800dda8: 69db ldr r3, [r3, #28] 800ddaa: f403 2380 and.w r3, r3, #262144 @ 0x40000 800ddae: 613b str r3, [r7, #16] 800ddb0: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOC_CLK_ENABLE(); 800ddb2: 4b23 ldr r3, [pc, #140] @ (800de40 ) 800ddb4: 699b ldr r3, [r3, #24] 800ddb6: 4a22 ldr r2, [pc, #136] @ (800de40 ) 800ddb8: f043 0310 orr.w r3, r3, #16 800ddbc: 6193 str r3, [r2, #24] 800ddbe: 4b20 ldr r3, [pc, #128] @ (800de40 ) 800ddc0: 699b ldr r3, [r3, #24] 800ddc2: f003 0310 and.w r3, r3, #16 800ddc6: 60fb str r3, [r7, #12] 800ddc8: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_10; 800ddca: f44f 6380 mov.w r3, #1024 @ 0x400 800ddce: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800ddd0: 2302 movs r3, #2 800ddd2: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800ddd4: 2303 movs r3, #3 800ddd6: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800ddd8: f107 0330 add.w r3, r7, #48 @ 0x30 800dddc: 4619 mov r1, r3 800ddde: 4819 ldr r0, [pc, #100] @ (800de44 ) 800dde0: f002 fb4a bl 8010478 GPIO_InitStruct.Pin = GPIO_PIN_11; 800dde4: f44f 6300 mov.w r3, #2048 @ 0x800 800dde8: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800ddea: 2300 movs r3, #0 800ddec: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800ddee: 2300 movs r3, #0 800ddf0: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800ddf2: f107 0330 add.w r3, r7, #48 @ 0x30 800ddf6: 4619 mov r1, r3 800ddf8: 4812 ldr r0, [pc, #72] @ (800de44 ) 800ddfa: f002 fb3d bl 8010478 __HAL_AFIO_REMAP_USART3_PARTIAL(); 800ddfe: 4b16 ldr r3, [pc, #88] @ (800de58 ) 800de00: 685b ldr r3, [r3, #4] 800de02: 647b str r3, [r7, #68] @ 0x44 800de04: 6c7b ldr r3, [r7, #68] @ 0x44 800de06: f023 0330 bic.w r3, r3, #48 @ 0x30 800de0a: 647b str r3, [r7, #68] @ 0x44 800de0c: 6c7b ldr r3, [r7, #68] @ 0x44 800de0e: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800de12: 647b str r3, [r7, #68] @ 0x44 800de14: 6c7b ldr r3, [r7, #68] @ 0x44 800de16: f043 0310 orr.w r3, r3, #16 800de1a: 647b str r3, [r7, #68] @ 0x44 800de1c: 4a0e ldr r2, [pc, #56] @ (800de58 ) 800de1e: 6c7b ldr r3, [r7, #68] @ 0x44 800de20: 6053 str r3, [r2, #4] HAL_NVIC_SetPriority(USART3_IRQn, 0, 0); 800de22: 2200 movs r2, #0 800de24: 2100 movs r1, #0 800de26: 2027 movs r0, #39 @ 0x27 800de28: f001 fe41 bl 800faae HAL_NVIC_EnableIRQ(USART3_IRQn); 800de2c: 2027 movs r0, #39 @ 0x27 800de2e: f001 fe5a bl 800fae6 } 800de32: bf00 nop 800de34: 3748 adds r7, #72 @ 0x48 800de36: 46bd mov sp, r7 800de38: bd80 pop {r7, pc} 800de3a: bf00 nop 800de3c: 40005000 .word 0x40005000 800de40: 40021000 .word 0x40021000 800de44: 40011000 .word 0x40011000 800de48: 40011400 .word 0x40011400 800de4c: 40013800 .word 0x40013800 800de50: 40010800 .word 0x40010800 800de54: 40004400 .word 0x40004400 800de58: 40010000 .word 0x40010000 800de5c: 40004800 .word 0x40004800 0800de60 : void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle) { 800de60: b580 push {r7, lr} 800de62: b082 sub sp, #8 800de64: af00 add r7, sp, #0 800de66: 6078 str r0, [r7, #4] if(uartHandle->Instance==UART5) 800de68: 687b ldr r3, [r7, #4] 800de6a: 681b ldr r3, [r3, #0] 800de6c: 4a29 ldr r2, [pc, #164] @ (800df14 ) 800de6e: 4293 cmp r3, r2 800de70: d112 bne.n 800de98 { /* USER CODE BEGIN UART5_MspDeInit 0 */ /* USER CODE END UART5_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_UART5_CLK_DISABLE(); 800de72: 4b29 ldr r3, [pc, #164] @ (800df18 ) 800de74: 69db ldr r3, [r3, #28] 800de76: 4a28 ldr r2, [pc, #160] @ (800df18 ) 800de78: f423 1380 bic.w r3, r3, #1048576 @ 0x100000 800de7c: 61d3 str r3, [r2, #28] /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_12); 800de7e: f44f 5180 mov.w r1, #4096 @ 0x1000 800de82: 4826 ldr r0, [pc, #152] @ (800df1c ) 800de84: f002 fc7c bl 8010780 HAL_GPIO_DeInit(GPIOD, GPIO_PIN_2); 800de88: 2104 movs r1, #4 800de8a: 4825 ldr r0, [pc, #148] @ (800df20 ) 800de8c: f002 fc78 bl 8010780 /* UART5 interrupt Deinit */ HAL_NVIC_DisableIRQ(UART5_IRQn); 800de90: 2035 movs r0, #53 @ 0x35 800de92: f001 fe36 bl 800fb02 HAL_NVIC_DisableIRQ(USART3_IRQn); /* USER CODE BEGIN USART3_MspDeInit 1 */ /* USER CODE END USART3_MspDeInit 1 */ } } 800de96: e039 b.n 800df0c else if(uartHandle->Instance==USART1) 800de98: 687b ldr r3, [r7, #4] 800de9a: 681b ldr r3, [r3, #0] 800de9c: 4a21 ldr r2, [pc, #132] @ (800df24 ) 800de9e: 4293 cmp r3, r2 800dea0: d10e bne.n 800dec0 __HAL_RCC_USART1_CLK_DISABLE(); 800dea2: 4b1d ldr r3, [pc, #116] @ (800df18 ) 800dea4: 699b ldr r3, [r3, #24] 800dea6: 4a1c ldr r2, [pc, #112] @ (800df18 ) 800dea8: f423 4380 bic.w r3, r3, #16384 @ 0x4000 800deac: 6193 str r3, [r2, #24] HAL_GPIO_DeInit(GPIOA, GPIO_PIN_9|GPIO_PIN_10); 800deae: f44f 61c0 mov.w r1, #1536 @ 0x600 800deb2: 481d ldr r0, [pc, #116] @ (800df28 ) 800deb4: f002 fc64 bl 8010780 HAL_NVIC_DisableIRQ(USART1_IRQn); 800deb8: 2025 movs r0, #37 @ 0x25 800deba: f001 fe22 bl 800fb02 } 800debe: e025 b.n 800df0c else if(uartHandle->Instance==USART2) 800dec0: 687b ldr r3, [r7, #4] 800dec2: 681b ldr r3, [r3, #0] 800dec4: 4a19 ldr r2, [pc, #100] @ (800df2c ) 800dec6: 4293 cmp r3, r2 800dec8: d10d bne.n 800dee6 __HAL_RCC_USART2_CLK_DISABLE(); 800deca: 4b13 ldr r3, [pc, #76] @ (800df18 ) 800decc: 69db ldr r3, [r3, #28] 800dece: 4a12 ldr r2, [pc, #72] @ (800df18 ) 800ded0: f423 3300 bic.w r3, r3, #131072 @ 0x20000 800ded4: 61d3 str r3, [r2, #28] HAL_GPIO_DeInit(GPIOD, GPIO_PIN_5|GPIO_PIN_6); 800ded6: 2160 movs r1, #96 @ 0x60 800ded8: 4811 ldr r0, [pc, #68] @ (800df20 ) 800deda: f002 fc51 bl 8010780 HAL_NVIC_DisableIRQ(USART2_IRQn); 800dede: 2026 movs r0, #38 @ 0x26 800dee0: f001 fe0f bl 800fb02 } 800dee4: e012 b.n 800df0c else if(uartHandle->Instance==USART3) 800dee6: 687b ldr r3, [r7, #4] 800dee8: 681b ldr r3, [r3, #0] 800deea: 4a11 ldr r2, [pc, #68] @ (800df30 ) 800deec: 4293 cmp r3, r2 800deee: d10d bne.n 800df0c __HAL_RCC_USART3_CLK_DISABLE(); 800def0: 4b09 ldr r3, [pc, #36] @ (800df18 ) 800def2: 69db ldr r3, [r3, #28] 800def4: 4a08 ldr r2, [pc, #32] @ (800df18 ) 800def6: f423 2380 bic.w r3, r3, #262144 @ 0x40000 800defa: 61d3 str r3, [r2, #28] HAL_GPIO_DeInit(GPIOC, GPIO_PIN_10|GPIO_PIN_11); 800defc: f44f 6140 mov.w r1, #3072 @ 0xc00 800df00: 4806 ldr r0, [pc, #24] @ (800df1c ) 800df02: f002 fc3d bl 8010780 HAL_NVIC_DisableIRQ(USART3_IRQn); 800df06: 2027 movs r0, #39 @ 0x27 800df08: f001 fdfb bl 800fb02 } 800df0c: bf00 nop 800df0e: 3708 adds r7, #8 800df10: 46bd mov sp, r7 800df12: bd80 pop {r7, pc} 800df14: 40005000 .word 0x40005000 800df18: 40021000 .word 0x40021000 800df1c: 40011000 .word 0x40011000 800df20: 40011400 .word 0x40011400 800df24: 40013800 .word 0x40013800 800df28: 40010800 .word 0x40010800 800df2c: 40004400 .word 0x40004400 800df30: 40004800 .word 0x40004800 0800df34 : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Call the clock system initialization function.*/ bl SystemInit 800df34: f7ff fbe2 bl 800d6fc /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata 800df38: 480b ldr r0, [pc, #44] @ (800df68 ) ldr r1, =_edata 800df3a: 490c ldr r1, [pc, #48] @ (800df6c ) ldr r2, =_sidata 800df3c: 4a0c ldr r2, [pc, #48] @ (800df70 ) movs r3, #0 800df3e: 2300 movs r3, #0 b LoopCopyDataInit 800df40: e002 b.n 800df48 0800df42 : CopyDataInit: ldr r4, [r2, r3] 800df42: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] 800df44: 50c4 str r4, [r0, r3] adds r3, r3, #4 800df46: 3304 adds r3, #4 0800df48 : LoopCopyDataInit: adds r4, r0, r3 800df48: 18c4 adds r4, r0, r3 cmp r4, r1 800df4a: 428c cmp r4, r1 bcc CopyDataInit 800df4c: d3f9 bcc.n 800df42 /* Zero fill the bss segment. */ ldr r2, =_sbss 800df4e: 4a09 ldr r2, [pc, #36] @ (800df74 ) ldr r4, =_ebss 800df50: 4c09 ldr r4, [pc, #36] @ (800df78 ) movs r3, #0 800df52: 2300 movs r3, #0 b LoopFillZerobss 800df54: e001 b.n 800df5a 0800df56 : FillZerobss: str r3, [r2] 800df56: 6013 str r3, [r2, #0] adds r2, r2, #4 800df58: 3204 adds r2, #4 0800df5a : LoopFillZerobss: cmp r2, r4 800df5a: 42a2 cmp r2, r4 bcc FillZerobss 800df5c: d3fb bcc.n 800df56 /* Call static constructors */ bl __libc_init_array 800df5e: f006 fc09 bl 8014774 <__libc_init_array> /* Call the application's entry point.*/ bl main 800df62: f7fc fd4b bl 800a9fc
bx lr 800df66: 4770 bx lr ldr r0, =_sdata 800df68: 20000000 .word 0x20000000 ldr r1, =_edata 800df6c: 20000258 .word 0x20000258 ldr r2, =_sidata 800df70: 080175f4 .word 0x080175f4 ldr r2, =_sbss 800df74: 20000258 .word 0x20000258 ldr r4, =_ebss 800df78: 200013c4 .word 0x200013c4 0800df7c : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop 800df7c: e7fe b.n 800df7c ... 0800df80 : * 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) { 800df80: b580 push {r7, lr} 800df82: 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(); 800df84: 4b08 ldr r3, [pc, #32] @ (800dfa8 ) 800df86: 681b ldr r3, [r3, #0] 800df88: 4a07 ldr r2, [pc, #28] @ (800dfa8 ) 800df8a: f043 0310 orr.w r3, r3, #16 800df8e: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); 800df90: 2003 movs r0, #3 800df92: f001 fd81 bl 800fa98 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); 800df96: 200f movs r0, #15 800df98: f000 f808 bl 800dfac /* Init the low level hardware */ HAL_MspInit(); 800df9c: f7ff f9ec bl 800d378 /* Return function status */ return HAL_OK; 800dfa0: 2300 movs r3, #0 } 800dfa2: 4618 mov r0, r3 800dfa4: bd80 pop {r7, pc} 800dfa6: bf00 nop 800dfa8: 40022000 .word 0x40022000 0800dfac : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { 800dfac: b580 push {r7, lr} 800dfae: b082 sub sp, #8 800dfb0: af00 add r7, sp, #0 800dfb2: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) 800dfb4: 4b12 ldr r3, [pc, #72] @ (800e000 ) 800dfb6: 681a ldr r2, [r3, #0] 800dfb8: 4b12 ldr r3, [pc, #72] @ (800e004 ) 800dfba: 781b ldrb r3, [r3, #0] 800dfbc: 4619 mov r1, r3 800dfbe: f44f 737a mov.w r3, #1000 @ 0x3e8 800dfc2: fbb3 f3f1 udiv r3, r3, r1 800dfc6: fbb2 f3f3 udiv r3, r2, r3 800dfca: 4618 mov r0, r3 800dfcc: f001 fda7 bl 800fb1e 800dfd0: 4603 mov r3, r0 800dfd2: 2b00 cmp r3, #0 800dfd4: d001 beq.n 800dfda { return HAL_ERROR; 800dfd6: 2301 movs r3, #1 800dfd8: e00e b.n 800dff8 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) 800dfda: 687b ldr r3, [r7, #4] 800dfdc: 2b0f cmp r3, #15 800dfde: d80a bhi.n 800dff6 { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); 800dfe0: 2200 movs r2, #0 800dfe2: 6879 ldr r1, [r7, #4] 800dfe4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 800dfe8: f001 fd61 bl 800faae uwTickPrio = TickPriority; 800dfec: 4a06 ldr r2, [pc, #24] @ (800e008 ) 800dfee: 687b ldr r3, [r7, #4] 800dff0: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; 800dff2: 2300 movs r3, #0 800dff4: e000 b.n 800dff8 return HAL_ERROR; 800dff6: 2301 movs r3, #1 } 800dff8: 4618 mov r0, r3 800dffa: 3708 adds r7, #8 800dffc: 46bd mov sp, r7 800dffe: bd80 pop {r7, pc} 800e000: 20000084 .word 0x20000084 800e004: 2000008c .word 0x2000008c 800e008: 20000088 .word 0x20000088 0800e00c : * @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) { 800e00c: b480 push {r7} 800e00e: af00 add r7, sp, #0 uwTick += uwTickFreq; 800e010: 4b05 ldr r3, [pc, #20] @ (800e028 ) 800e012: 781b ldrb r3, [r3, #0] 800e014: 461a mov r2, r3 800e016: 4b05 ldr r3, [pc, #20] @ (800e02c ) 800e018: 681b ldr r3, [r3, #0] 800e01a: 4413 add r3, r2 800e01c: 4a03 ldr r2, [pc, #12] @ (800e02c ) 800e01e: 6013 str r3, [r2, #0] } 800e020: bf00 nop 800e022: 46bd mov sp, r7 800e024: bc80 pop {r7} 800e026: 4770 bx lr 800e028: 2000008c .word 0x2000008c 800e02c: 20001274 .word 0x20001274 0800e030 : * @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) { 800e030: b480 push {r7} 800e032: af00 add r7, sp, #0 return uwTick; 800e034: 4b02 ldr r3, [pc, #8] @ (800e040 ) 800e036: 681b ldr r3, [r3, #0] } 800e038: 4618 mov r0, r3 800e03a: 46bd mov sp, r7 800e03c: bc80 pop {r7} 800e03e: 4770 bx lr 800e040: 20001274 .word 0x20001274 0800e044 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { 800e044: b580 push {r7, lr} 800e046: b084 sub sp, #16 800e048: af00 add r7, sp, #0 800e04a: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 800e04c: f7ff fff0 bl 800e030 800e050: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 800e052: 687b ldr r3, [r7, #4] 800e054: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) 800e056: 68fb ldr r3, [r7, #12] 800e058: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 800e05c: d005 beq.n 800e06a { wait += (uint32_t)(uwTickFreq); 800e05e: 4b0a ldr r3, [pc, #40] @ (800e088 ) 800e060: 781b ldrb r3, [r3, #0] 800e062: 461a mov r2, r3 800e064: 68fb ldr r3, [r7, #12] 800e066: 4413 add r3, r2 800e068: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) 800e06a: bf00 nop 800e06c: f7ff ffe0 bl 800e030 800e070: 4602 mov r2, r0 800e072: 68bb ldr r3, [r7, #8] 800e074: 1ad3 subs r3, r2, r3 800e076: 68fa ldr r2, [r7, #12] 800e078: 429a cmp r2, r3 800e07a: d8f7 bhi.n 800e06c { } } 800e07c: bf00 nop 800e07e: bf00 nop 800e080: 3710 adds r7, #16 800e082: 46bd mov sp, r7 800e084: bd80 pop {r7, pc} 800e086: bf00 nop 800e088: 2000008c .word 0x2000008c 0800e08c : * of structure "ADC_InitTypeDef". * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { 800e08c: b580 push {r7, lr} 800e08e: b086 sub sp, #24 800e090: af00 add r7, sp, #0 800e092: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e094: 2300 movs r3, #0 800e096: 75fb strb r3, [r7, #23] uint32_t tmp_cr1 = 0U; 800e098: 2300 movs r3, #0 800e09a: 613b str r3, [r7, #16] uint32_t tmp_cr2 = 0U; 800e09c: 2300 movs r3, #0 800e09e: 60bb str r3, [r7, #8] uint32_t tmp_sqr1 = 0U; 800e0a0: 2300 movs r3, #0 800e0a2: 60fb str r3, [r7, #12] /* Check ADC handle */ if(hadc == NULL) 800e0a4: 687b ldr r3, [r7, #4] 800e0a6: 2b00 cmp r3, #0 800e0a8: d101 bne.n 800e0ae { return HAL_ERROR; 800e0aa: 2301 movs r3, #1 800e0ac: e0be b.n 800e22c assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv)); if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE) 800e0ae: 687b ldr r3, [r7, #4] 800e0b0: 689b ldr r3, [r3, #8] 800e0b2: 2b00 cmp r3, #0 /* Refer to header of this file for more details on clock enabling */ /* procedure. */ /* Actions performed only if ADC is coming from state reset: */ /* - Initialization of ADC MSP */ if (hadc->State == HAL_ADC_STATE_RESET) 800e0b4: 687b ldr r3, [r7, #4] 800e0b6: 6a9b ldr r3, [r3, #40] @ 0x28 800e0b8: 2b00 cmp r3, #0 800e0ba: d109 bne.n 800e0d0 { /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); 800e0bc: 687b ldr r3, [r7, #4] 800e0be: 2200 movs r2, #0 800e0c0: 62da str r2, [r3, #44] @ 0x2c /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; 800e0c2: 687b ldr r3, [r7, #4] 800e0c4: 2200 movs r2, #0 800e0c6: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); 800e0ca: 6878 ldr r0, [r7, #4] 800e0cc: f7fb faea bl 80096a4 /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ /* Note: In case of ADC already enabled, precaution to not launch an */ /* unwanted conversion while modifying register CR2 by writing 1 to */ /* bit ADON. */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); 800e0d0: 6878 ldr r0, [r7, #4] 800e0d2: f000 fbbd bl 800e850 800e0d6: 4603 mov r3, r0 800e0d8: 75fb strb r3, [r7, #23] /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) && 800e0da: 687b ldr r3, [r7, #4] 800e0dc: 6a9b ldr r3, [r3, #40] @ 0x28 800e0de: f003 0310 and.w r3, r3, #16 800e0e2: 2b00 cmp r3, #0 800e0e4: f040 8099 bne.w 800e21a 800e0e8: 7dfb ldrb r3, [r7, #23] 800e0ea: 2b00 cmp r3, #0 800e0ec: f040 8095 bne.w 800e21a (tmp_hal_status == HAL_OK) ) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e0f0: 687b ldr r3, [r7, #4] 800e0f2: 6a9b ldr r3, [r3, #40] @ 0x28 800e0f4: f423 5388 bic.w r3, r3, #4352 @ 0x1100 800e0f8: f023 0302 bic.w r3, r3, #2 800e0fc: f043 0202 orr.w r2, r3, #2 800e100: 687b ldr r3, [r7, #4] 800e102: 629a str r2, [r3, #40] @ 0x28 /* - continuous conversion mode */ /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */ /* HAL_ADC_Start_xxx functions because if set in this function, */ /* a conversion on injected group would start a conversion also on */ /* regular group after ADC enabling. */ tmp_cr2 |= (hadc->Init.DataAlign | 800e104: 687b ldr r3, [r7, #4] 800e106: 685a ldr r2, [r3, #4] ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | 800e108: 687b ldr r3, [r7, #4] 800e10a: 69db ldr r3, [r3, #28] tmp_cr2 |= (hadc->Init.DataAlign | 800e10c: 431a orrs r2, r3 ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) ); 800e10e: 687b ldr r3, [r7, #4] 800e110: 7b1b ldrb r3, [r3, #12] 800e112: 005b lsls r3, r3, #1 ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | 800e114: 4313 orrs r3, r2 tmp_cr2 |= (hadc->Init.DataAlign | 800e116: 68ba ldr r2, [r7, #8] 800e118: 4313 orrs r3, r2 800e11a: 60bb str r3, [r7, #8] /* Configuration of ADC: */ /* - scan mode */ /* - discontinuous mode disable/enable */ /* - discontinuous mode number of conversions */ tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode)); 800e11c: 687b ldr r3, [r7, #4] 800e11e: 689b ldr r3, [r3, #8] 800e120: f5b3 7f80 cmp.w r3, #256 @ 0x100 800e124: d003 beq.n 800e12e 800e126: 687b ldr r3, [r7, #4] 800e128: 689b ldr r3, [r3, #8] 800e12a: 2b01 cmp r3, #1 800e12c: d102 bne.n 800e134 800e12e: f44f 7380 mov.w r3, #256 @ 0x100 800e132: e000 b.n 800e136 800e134: 2300 movs r3, #0 800e136: 693a ldr r2, [r7, #16] 800e138: 4313 orrs r3, r2 800e13a: 613b str r3, [r7, #16] /* Enable discontinuous mode only if continuous mode is disabled */ /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */ /* discontinuous is set anyway, but will have no effect on ADC HW. */ if (hadc->Init.DiscontinuousConvMode == ENABLE) 800e13c: 687b ldr r3, [r7, #4] 800e13e: 7d1b ldrb r3, [r3, #20] 800e140: 2b01 cmp r3, #1 800e142: d119 bne.n 800e178 { if (hadc->Init.ContinuousConvMode == DISABLE) 800e144: 687b ldr r3, [r7, #4] 800e146: 7b1b ldrb r3, [r3, #12] 800e148: 2b00 cmp r3, #0 800e14a: d109 bne.n 800e160 { /* Enable the selected ADC regular discontinuous mode */ /* Set the number of channels to be converted in discontinuous mode */ SET_BIT(tmp_cr1, ADC_CR1_DISCEN | 800e14c: 687b ldr r3, [r7, #4] 800e14e: 699b ldr r3, [r3, #24] 800e150: 3b01 subs r3, #1 800e152: 035a lsls r2, r3, #13 800e154: 693b ldr r3, [r7, #16] 800e156: 4313 orrs r3, r2 800e158: f443 6300 orr.w r3, r3, #2048 @ 0x800 800e15c: 613b str r3, [r7, #16] 800e15e: e00b b.n 800e178 { /* ADC regular group settings continuous and sequencer discontinuous*/ /* cannot be enabled simultaneously. */ /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 800e160: 687b ldr r3, [r7, #4] 800e162: 6a9b ldr r3, [r3, #40] @ 0x28 800e164: f043 0220 orr.w r2, r3, #32 800e168: 687b ldr r3, [r7, #4] 800e16a: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e16c: 687b ldr r3, [r7, #4] 800e16e: 6adb ldr r3, [r3, #44] @ 0x2c 800e170: f043 0201 orr.w r2, r3, #1 800e174: 687b ldr r3, [r7, #4] 800e176: 62da str r2, [r3, #44] @ 0x2c } } /* Update ADC configuration register CR1 with previous settings */ MODIFY_REG(hadc->Instance->CR1, 800e178: 687b ldr r3, [r7, #4] 800e17a: 681b ldr r3, [r3, #0] 800e17c: 685b ldr r3, [r3, #4] 800e17e: f423 4169 bic.w r1, r3, #59648 @ 0xe900 800e182: 687b ldr r3, [r7, #4] 800e184: 681b ldr r3, [r3, #0] 800e186: 693a ldr r2, [r7, #16] 800e188: 430a orrs r2, r1 800e18a: 605a str r2, [r3, #4] ADC_CR1_DISCEN | ADC_CR1_DISCNUM , tmp_cr1 ); /* Update ADC configuration register CR2 with previous settings */ MODIFY_REG(hadc->Instance->CR2, 800e18c: 687b ldr r3, [r7, #4] 800e18e: 681b ldr r3, [r3, #0] 800e190: 689a ldr r2, [r3, #8] 800e192: 4b28 ldr r3, [pc, #160] @ (800e234 ) 800e194: 4013 ands r3, r2 800e196: 687a ldr r2, [r7, #4] 800e198: 6812 ldr r2, [r2, #0] 800e19a: 68b9 ldr r1, [r7, #8] 800e19c: 430b orrs r3, r1 800e19e: 6093 str r3, [r2, #8] /* Note: Scan mode is present by hardware on this device and, if */ /* disabled, discards automatically nb of conversions. Anyway, nb of */ /* conversions is forced to 0x00 for alignment over all STM32 devices. */ /* - if scan mode is enabled, regular channels sequence length is set to */ /* parameter "NbrOfConversion" */ if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE) 800e1a0: 687b ldr r3, [r7, #4] 800e1a2: 689b ldr r3, [r3, #8] 800e1a4: f5b3 7f80 cmp.w r3, #256 @ 0x100 800e1a8: d003 beq.n 800e1b2 800e1aa: 687b ldr r3, [r7, #4] 800e1ac: 689b ldr r3, [r3, #8] 800e1ae: 2b01 cmp r3, #1 800e1b0: d104 bne.n 800e1bc { tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion); 800e1b2: 687b ldr r3, [r7, #4] 800e1b4: 691b ldr r3, [r3, #16] 800e1b6: 3b01 subs r3, #1 800e1b8: 051b lsls r3, r3, #20 800e1ba: 60fb str r3, [r7, #12] } MODIFY_REG(hadc->Instance->SQR1, 800e1bc: 687b ldr r3, [r7, #4] 800e1be: 681b ldr r3, [r3, #0] 800e1c0: 6adb ldr r3, [r3, #44] @ 0x2c 800e1c2: f423 0170 bic.w r1, r3, #15728640 @ 0xf00000 800e1c6: 687b ldr r3, [r7, #4] 800e1c8: 681b ldr r3, [r3, #0] 800e1ca: 68fa ldr r2, [r7, #12] 800e1cc: 430a orrs r2, r1 800e1ce: 62da str r2, [r3, #44] @ 0x2c /* ensure of no potential problem of ADC core IP clocking. */ /* Check through register CR2 (excluding bits set in other functions: */ /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */ /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */ /* measurement path bit (TSVREFE). */ if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800e1d0: 687b ldr r3, [r7, #4] 800e1d2: 681b ldr r3, [r3, #0] 800e1d4: 689a ldr r2, [r3, #8] 800e1d6: 4b18 ldr r3, [pc, #96] @ (800e238 ) 800e1d8: 4013 ands r3, r2 800e1da: 68ba ldr r2, [r7, #8] 800e1dc: 429a cmp r2, r3 800e1de: d10b bne.n 800e1f8 ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL | ADC_CR2_TSVREFE )) == tmp_cr2) { /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); 800e1e0: 687b ldr r3, [r7, #4] 800e1e2: 2200 movs r2, #0 800e1e4: 62da str r2, [r3, #44] @ 0x2c /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e1e6: 687b ldr r3, [r7, #4] 800e1e8: 6a9b ldr r3, [r3, #40] @ 0x28 800e1ea: f023 0303 bic.w r3, r3, #3 800e1ee: f043 0201 orr.w r2, r3, #1 800e1f2: 687b ldr r3, [r7, #4] 800e1f4: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800e1f6: e018 b.n 800e22a HAL_ADC_STATE_READY); } else { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800e1f8: 687b ldr r3, [r7, #4] 800e1fa: 6a9b ldr r3, [r3, #40] @ 0x28 800e1fc: f023 0312 bic.w r3, r3, #18 800e200: f043 0210 orr.w r2, r3, #16 800e204: 687b ldr r3, [r7, #4] 800e206: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e208: 687b ldr r3, [r7, #4] 800e20a: 6adb ldr r3, [r3, #44] @ 0x2c 800e20c: f043 0201 orr.w r2, r3, #1 800e210: 687b ldr r3, [r7, #4] 800e212: 62da str r2, [r3, #44] @ 0x2c tmp_hal_status = HAL_ERROR; 800e214: 2301 movs r3, #1 800e216: 75fb strb r3, [r7, #23] if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800e218: e007 b.n 800e22a } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800e21a: 687b ldr r3, [r7, #4] 800e21c: 6a9b ldr r3, [r3, #40] @ 0x28 800e21e: f043 0210 orr.w r2, r3, #16 800e222: 687b ldr r3, [r7, #4] 800e224: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; 800e226: 2301 movs r3, #1 800e228: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; 800e22a: 7dfb ldrb r3, [r7, #23] } 800e22c: 4618 mov r0, r3 800e22e: 3718 adds r7, #24 800e230: 46bd mov sp, r7 800e232: bd80 pop {r7, pc} 800e234: ffe1f7fd .word 0xffe1f7fd 800e238: ff1f0efe .word 0xff1f0efe 0800e23c : * @param pData: The destination Buffer address. * @param Length: The length of data to be transferred from ADC peripheral to memory. * @retval None */ HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length) { 800e23c: b580 push {r7, lr} 800e23e: b086 sub sp, #24 800e240: af00 add r7, sp, #0 800e242: 60f8 str r0, [r7, #12] 800e244: 60b9 str r1, [r7, #8] 800e246: 607a str r2, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e248: 2300 movs r3, #0 800e24a: 75fb strb r3, [r7, #23] assert_param(IS_ADC_DMA_CAPABILITY_INSTANCE(hadc->Instance)); /* Verification if multimode is disabled (for devices with several ADC) */ /* If multimode is enabled, dedicated function multimode conversion */ /* start DMA must be used. */ if(ADC_MULTIMODE_IS_ENABLE(hadc) == RESET) 800e24c: 68fb ldr r3, [r7, #12] 800e24e: 681b ldr r3, [r3, #0] 800e250: 4a64 ldr r2, [pc, #400] @ (800e3e4 ) 800e252: 4293 cmp r3, r2 800e254: d004 beq.n 800e260 800e256: 68fb ldr r3, [r7, #12] 800e258: 681b ldr r3, [r3, #0] 800e25a: 4a63 ldr r2, [pc, #396] @ (800e3e8 ) 800e25c: 4293 cmp r3, r2 800e25e: d106 bne.n 800e26e 800e260: 4b60 ldr r3, [pc, #384] @ (800e3e4 ) 800e262: 685b ldr r3, [r3, #4] 800e264: f403 2370 and.w r3, r3, #983040 @ 0xf0000 800e268: 2b00 cmp r3, #0 800e26a: f040 80b3 bne.w 800e3d4 { /* Process locked */ __HAL_LOCK(hadc); 800e26e: 68fb ldr r3, [r7, #12] 800e270: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e274: 2b01 cmp r3, #1 800e276: d101 bne.n 800e27c 800e278: 2302 movs r3, #2 800e27a: e0ae b.n 800e3da 800e27c: 68fb ldr r3, [r7, #12] 800e27e: 2201 movs r2, #1 800e280: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Enable the ADC peripheral */ tmp_hal_status = ADC_Enable(hadc); 800e284: 68f8 ldr r0, [r7, #12] 800e286: f000 fa89 bl 800e79c 800e28a: 4603 mov r3, r0 800e28c: 75fb strb r3, [r7, #23] /* Start conversion if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) 800e28e: 7dfb ldrb r3, [r7, #23] 800e290: 2b00 cmp r3, #0 800e292: f040 809a bne.w 800e3ca { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular operation */ ADC_STATE_CLR_SET(hadc->State, 800e296: 68fb ldr r3, [r7, #12] 800e298: 6a9b ldr r3, [r3, #40] @ 0x28 800e29a: f423 6370 bic.w r3, r3, #3840 @ 0xf00 800e29e: f023 0301 bic.w r3, r3, #1 800e2a2: f443 7280 orr.w r2, r3, #256 @ 0x100 800e2a6: 68fb ldr r3, [r7, #12] 800e2a8: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_REG_BUSY); /* Set group injected state (from auto-injection) and multimode state */ /* for all cases of multimode: independent mode, multimode ADC master */ /* or multimode ADC slave (for devices with several ADCs): */ if (ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc)) 800e2aa: 68fb ldr r3, [r7, #12] 800e2ac: 681b ldr r3, [r3, #0] 800e2ae: 4a4e ldr r2, [pc, #312] @ (800e3e8 ) 800e2b0: 4293 cmp r3, r2 800e2b2: d105 bne.n 800e2c0 800e2b4: 4b4b ldr r3, [pc, #300] @ (800e3e4 ) 800e2b6: 685b ldr r3, [r3, #4] 800e2b8: f403 2370 and.w r3, r3, #983040 @ 0xf0000 800e2bc: 2b00 cmp r3, #0 800e2be: d115 bne.n 800e2ec { /* Set ADC state (ADC independent or master) */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 800e2c0: 68fb ldr r3, [r7, #12] 800e2c2: 6a9b ldr r3, [r3, #40] @ 0x28 800e2c4: f423 1280 bic.w r2, r3, #1048576 @ 0x100000 800e2c8: 68fb ldr r3, [r7, #12] 800e2ca: 629a str r2, [r3, #40] @ 0x28 /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) 800e2cc: 68fb ldr r3, [r7, #12] 800e2ce: 681b ldr r3, [r3, #0] 800e2d0: 685b ldr r3, [r3, #4] 800e2d2: f403 6380 and.w r3, r3, #1024 @ 0x400 800e2d6: 2b00 cmp r3, #0 800e2d8: d026 beq.n 800e328 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 800e2da: 68fb ldr r3, [r7, #12] 800e2dc: 6a9b ldr r3, [r3, #40] @ 0x28 800e2de: f423 5340 bic.w r3, r3, #12288 @ 0x3000 800e2e2: f443 5280 orr.w r2, r3, #4096 @ 0x1000 800e2e6: 68fb ldr r3, [r7, #12] 800e2e8: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) 800e2ea: e01d b.n 800e328 } } else { /* Set ADC state (ADC slave) */ SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 800e2ec: 68fb ldr r3, [r7, #12] 800e2ee: 6a9b ldr r3, [r3, #40] @ 0x28 800e2f0: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 800e2f4: 68fb ldr r3, [r7, #12] 800e2f6: 629a str r2, [r3, #40] @ 0x28 /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (ADC_MULTIMODE_AUTO_INJECTED(hadc)) 800e2f8: 68fb ldr r3, [r7, #12] 800e2fa: 681b ldr r3, [r3, #0] 800e2fc: 4a39 ldr r2, [pc, #228] @ (800e3e4 ) 800e2fe: 4293 cmp r3, r2 800e300: d004 beq.n 800e30c 800e302: 68fb ldr r3, [r7, #12] 800e304: 681b ldr r3, [r3, #0] 800e306: 4a38 ldr r2, [pc, #224] @ (800e3e8 ) 800e308: 4293 cmp r3, r2 800e30a: d10d bne.n 800e328 800e30c: 4b35 ldr r3, [pc, #212] @ (800e3e4 ) 800e30e: 685b ldr r3, [r3, #4] 800e310: f403 6380 and.w r3, r3, #1024 @ 0x400 800e314: 2b00 cmp r3, #0 800e316: d007 beq.n 800e328 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 800e318: 68fb ldr r3, [r7, #12] 800e31a: 6a9b ldr r3, [r3, #40] @ 0x28 800e31c: f423 5340 bic.w r3, r3, #12288 @ 0x3000 800e320: f443 5280 orr.w r2, r3, #4096 @ 0x1000 800e324: 68fb ldr r3, [r7, #12] 800e326: 629a str r2, [r3, #40] @ 0x28 } } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800e328: 68fb ldr r3, [r7, #12] 800e32a: 6a9b ldr r3, [r3, #40] @ 0x28 800e32c: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e330: 2b00 cmp r3, #0 800e332: d006 beq.n 800e342 { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 800e334: 68fb ldr r3, [r7, #12] 800e336: 6adb ldr r3, [r3, #44] @ 0x2c 800e338: f023 0206 bic.w r2, r3, #6 800e33c: 68fb ldr r3, [r7, #12] 800e33e: 62da str r2, [r3, #44] @ 0x2c 800e340: e002 b.n 800e348 } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); 800e342: 68fb ldr r3, [r7, #12] 800e344: 2200 movs r2, #0 800e346: 62da str r2, [r3, #44] @ 0x2c } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); 800e348: 68fb ldr r3, [r7, #12] 800e34a: 2200 movs r2, #0 800e34c: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Set the DMA transfer complete callback */ hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; 800e350: 68fb ldr r3, [r7, #12] 800e352: 6a1b ldr r3, [r3, #32] 800e354: 4a25 ldr r2, [pc, #148] @ (800e3ec ) 800e356: 629a str r2, [r3, #40] @ 0x28 /* Set the DMA half transfer complete callback */ hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; 800e358: 68fb ldr r3, [r7, #12] 800e35a: 6a1b ldr r3, [r3, #32] 800e35c: 4a24 ldr r2, [pc, #144] @ (800e3f0 ) 800e35e: 62da str r2, [r3, #44] @ 0x2c /* Set the DMA error callback */ hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; 800e360: 68fb ldr r3, [r7, #12] 800e362: 6a1b ldr r3, [r3, #32] 800e364: 4a23 ldr r2, [pc, #140] @ (800e3f4 ) 800e366: 631a str r2, [r3, #48] @ 0x30 /* start (in case of SW start): */ /* Clear regular group conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC */ /* operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC); 800e368: 68fb ldr r3, [r7, #12] 800e36a: 681b ldr r3, [r3, #0] 800e36c: f06f 0202 mvn.w r2, #2 800e370: 601a str r2, [r3, #0] /* Enable ADC DMA mode */ SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA); 800e372: 68fb ldr r3, [r7, #12] 800e374: 681b ldr r3, [r3, #0] 800e376: 689a ldr r2, [r3, #8] 800e378: 68fb ldr r3, [r7, #12] 800e37a: 681b ldr r3, [r3, #0] 800e37c: f442 7280 orr.w r2, r2, #256 @ 0x100 800e380: 609a str r2, [r3, #8] /* Start the DMA channel */ HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length); 800e382: 68fb ldr r3, [r7, #12] 800e384: 6a18 ldr r0, [r3, #32] 800e386: 68fb ldr r3, [r7, #12] 800e388: 681b ldr r3, [r3, #0] 800e38a: 334c adds r3, #76 @ 0x4c 800e38c: 4619 mov r1, r3 800e38e: 68ba ldr r2, [r7, #8] 800e390: 687b ldr r3, [r7, #4] 800e392: f001 fc63 bl 800fc5c /* Enable conversion of regular group. */ /* If software start has been selected, conversion starts immediately. */ /* If external trigger has been selected, conversion will start at next */ /* trigger event. */ if (ADC_IS_SOFTWARE_START_REGULAR(hadc)) 800e396: 68fb ldr r3, [r7, #12] 800e398: 681b ldr r3, [r3, #0] 800e39a: 689b ldr r3, [r3, #8] 800e39c: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e3a0: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e3a4: d108 bne.n 800e3b8 { /* Start ADC conversion on regular group with SW start */ SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG)); 800e3a6: 68fb ldr r3, [r7, #12] 800e3a8: 681b ldr r3, [r3, #0] 800e3aa: 689a ldr r2, [r3, #8] 800e3ac: 68fb ldr r3, [r7, #12] 800e3ae: 681b ldr r3, [r3, #0] 800e3b0: f442 02a0 orr.w r2, r2, #5242880 @ 0x500000 800e3b4: 609a str r2, [r3, #8] if (tmp_hal_status == HAL_OK) 800e3b6: e00f b.n 800e3d8 } else { /* Start ADC conversion on regular group with external trigger */ SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG); 800e3b8: 68fb ldr r3, [r7, #12] 800e3ba: 681b ldr r3, [r3, #0] 800e3bc: 689a ldr r2, [r3, #8] 800e3be: 68fb ldr r3, [r7, #12] 800e3c0: 681b ldr r3, [r3, #0] 800e3c2: f442 1280 orr.w r2, r2, #1048576 @ 0x100000 800e3c6: 609a str r2, [r3, #8] if (tmp_hal_status == HAL_OK) 800e3c8: e006 b.n 800e3d8 } } else { /* Process unlocked */ __HAL_UNLOCK(hadc); 800e3ca: 68fb ldr r3, [r7, #12] 800e3cc: 2200 movs r2, #0 800e3ce: f883 2024 strb.w r2, [r3, #36] @ 0x24 if (tmp_hal_status == HAL_OK) 800e3d2: e001 b.n 800e3d8 } } else { tmp_hal_status = HAL_ERROR; 800e3d4: 2301 movs r3, #1 800e3d6: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; 800e3d8: 7dfb ldrb r3, [r7, #23] } 800e3da: 4618 mov r0, r3 800e3dc: 3718 adds r7, #24 800e3de: 46bd mov sp, r7 800e3e0: bd80 pop {r7, pc} 800e3e2: bf00 nop 800e3e4: 40012400 .word 0x40012400 800e3e8: 40012800 .word 0x40012800 800e3ec: 0800e8d3 .word 0x0800e8d3 800e3f0: 0800e94f .word 0x0800e94f 800e3f4: 0800e96b .word 0x0800e96b 0800e3f8 : * @brief Handles ADC interrupt request * @param hadc: ADC handle * @retval None */ void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc) { 800e3f8: b580 push {r7, lr} 800e3fa: b084 sub sp, #16 800e3fc: af00 add r7, sp, #0 800e3fe: 6078 str r0, [r7, #4] uint32_t tmp_sr = hadc->Instance->SR; 800e400: 687b ldr r3, [r7, #4] 800e402: 681b ldr r3, [r3, #0] 800e404: 681b ldr r3, [r3, #0] 800e406: 60fb str r3, [r7, #12] uint32_t tmp_cr1 = hadc->Instance->CR1; 800e408: 687b ldr r3, [r7, #4] 800e40a: 681b ldr r3, [r3, #0] 800e40c: 685b ldr r3, [r3, #4] 800e40e: 60bb str r3, [r7, #8] assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion)); /* ========== Check End of Conversion flag for regular group ========== */ if((tmp_cr1 & ADC_IT_EOC) == ADC_IT_EOC) 800e410: 68bb ldr r3, [r7, #8] 800e412: f003 0320 and.w r3, r3, #32 800e416: 2b00 cmp r3, #0 800e418: d03e beq.n 800e498 { if((tmp_sr & ADC_FLAG_EOC) == ADC_FLAG_EOC) 800e41a: 68fb ldr r3, [r7, #12] 800e41c: f003 0302 and.w r3, r3, #2 800e420: 2b00 cmp r3, #0 800e422: d039 beq.n 800e498 { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) 800e424: 687b ldr r3, [r7, #4] 800e426: 6a9b ldr r3, [r3, #40] @ 0x28 800e428: f003 0310 and.w r3, r3, #16 800e42c: 2b00 cmp r3, #0 800e42e: d105 bne.n 800e43c { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 800e430: 687b ldr r3, [r7, #4] 800e432: 6a9b ldr r3, [r3, #40] @ 0x28 800e434: f443 7200 orr.w r2, r3, #512 @ 0x200 800e438: 687b ldr r3, [r7, #4] 800e43a: 629a str r2, [r3, #40] @ 0x28 /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F1 devices, in case of sequencer enabled */ /* (several ranks selected), end of conversion flag is raised */ /* at the end of the sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e43c: 687b ldr r3, [r7, #4] 800e43e: 681b ldr r3, [r3, #0] 800e440: 689b ldr r3, [r3, #8] 800e442: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e446: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e44a: d11d bne.n 800e488 (hadc->Init.ContinuousConvMode == DISABLE) ) 800e44c: 687b ldr r3, [r7, #4] 800e44e: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e450: 2b00 cmp r3, #0 800e452: d119 bne.n 800e488 { /* Disable ADC end of conversion interrupt on group regular */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); 800e454: 687b ldr r3, [r7, #4] 800e456: 681b ldr r3, [r3, #0] 800e458: 685a ldr r2, [r3, #4] 800e45a: 687b ldr r3, [r7, #4] 800e45c: 681b ldr r3, [r3, #0] 800e45e: f022 0220 bic.w r2, r2, #32 800e462: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 800e464: 687b ldr r3, [r7, #4] 800e466: 6a9b ldr r3, [r3, #40] @ 0x28 800e468: f423 7280 bic.w r2, r3, #256 @ 0x100 800e46c: 687b ldr r3, [r7, #4] 800e46e: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800e470: 687b ldr r3, [r7, #4] 800e472: 6a9b ldr r3, [r3, #40] @ 0x28 800e474: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e478: 2b00 cmp r3, #0 800e47a: d105 bne.n 800e488 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e47c: 687b ldr r3, [r7, #4] 800e47e: 6a9b ldr r3, [r3, #40] @ 0x28 800e480: f043 0201 orr.w r2, r3, #1 800e484: 687b ldr r3, [r7, #4] 800e486: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); 800e488: 6878 ldr r0, [r7, #4] 800e48a: f7fb f85f bl 800954c #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); 800e48e: 687b ldr r3, [r7, #4] 800e490: 681b ldr r3, [r3, #0] 800e492: f06f 0212 mvn.w r2, #18 800e496: 601a str r2, [r3, #0] } } /* ========== Check End of Conversion flag for injected group ========== */ if((tmp_cr1 & ADC_IT_JEOC) == ADC_IT_JEOC) 800e498: 68bb ldr r3, [r7, #8] 800e49a: f003 0380 and.w r3, r3, #128 @ 0x80 800e49e: 2b00 cmp r3, #0 800e4a0: d04d beq.n 800e53e { if((tmp_sr & ADC_FLAG_JEOC) == ADC_FLAG_JEOC) 800e4a2: 68fb ldr r3, [r7, #12] 800e4a4: f003 0304 and.w r3, r3, #4 800e4a8: 2b00 cmp r3, #0 800e4aa: d048 beq.n 800e53e { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) 800e4ac: 687b ldr r3, [r7, #4] 800e4ae: 6a9b ldr r3, [r3, #40] @ 0x28 800e4b0: f003 0310 and.w r3, r3, #16 800e4b4: 2b00 cmp r3, #0 800e4b6: d105 bne.n 800e4c4 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); 800e4b8: 687b ldr r3, [r7, #4] 800e4ba: 6a9b ldr r3, [r3, #40] @ 0x28 800e4bc: f443 5200 orr.w r2, r3, #8192 @ 0x2000 800e4c0: 687b ldr r3, [r7, #4] 800e4c2: 629a str r2, [r3, #40] @ 0x28 /* conversion from group regular (same conditions as group regular */ /* interruption disabling above). */ /* Note: On STM32F1 devices, in case of sequencer enabled */ /* (several ranks selected), end of conversion flag is raised */ /* at the end of the sequence. */ if(ADC_IS_SOFTWARE_START_INJECTED(hadc) || 800e4c4: 687b ldr r3, [r7, #4] 800e4c6: 681b ldr r3, [r3, #0] 800e4c8: 689b ldr r3, [r3, #8] 800e4ca: f403 43e0 and.w r3, r3, #28672 @ 0x7000 800e4ce: f5b3 4fe0 cmp.w r3, #28672 @ 0x7000 800e4d2: d012 beq.n 800e4fa (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && 800e4d4: 687b ldr r3, [r7, #4] 800e4d6: 681b ldr r3, [r3, #0] 800e4d8: 685b ldr r3, [r3, #4] 800e4da: f403 6380 and.w r3, r3, #1024 @ 0x400 if(ADC_IS_SOFTWARE_START_INJECTED(hadc) || 800e4de: 2b00 cmp r3, #0 800e4e0: d125 bne.n 800e52e (ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e4e2: 687b ldr r3, [r7, #4] 800e4e4: 681b ldr r3, [r3, #0] 800e4e6: 689b ldr r3, [r3, #8] 800e4e8: f403 2360 and.w r3, r3, #917504 @ 0xe0000 (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && 800e4ec: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e4f0: d11d bne.n 800e52e (hadc->Init.ContinuousConvMode == DISABLE) ) ) ) 800e4f2: 687b ldr r3, [r7, #4] 800e4f4: 7b1b ldrb r3, [r3, #12] (ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e4f6: 2b00 cmp r3, #0 800e4f8: d119 bne.n 800e52e { /* Disable ADC end of conversion interrupt on group injected */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 800e4fa: 687b ldr r3, [r7, #4] 800e4fc: 681b ldr r3, [r3, #0] 800e4fe: 685a ldr r2, [r3, #4] 800e500: 687b ldr r3, [r7, #4] 800e502: 681b ldr r3, [r3, #0] 800e504: f022 0280 bic.w r2, r2, #128 @ 0x80 800e508: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); 800e50a: 687b ldr r3, [r7, #4] 800e50c: 6a9b ldr r3, [r3, #40] @ 0x28 800e50e: f423 5280 bic.w r2, r3, #4096 @ 0x1000 800e512: 687b ldr r3, [r7, #4] 800e514: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) 800e516: 687b ldr r3, [r7, #4] 800e518: 6a9b ldr r3, [r3, #40] @ 0x28 800e51a: f403 7380 and.w r3, r3, #256 @ 0x100 800e51e: 2b00 cmp r3, #0 800e520: d105 bne.n 800e52e { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e522: 687b ldr r3, [r7, #4] 800e524: 6a9b ldr r3, [r3, #40] @ 0x28 800e526: f043 0201 orr.w r2, r3, #1 800e52a: 687b ldr r3, [r7, #4] 800e52c: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->InjectedConvCpltCallback(hadc); #else HAL_ADCEx_InjectedConvCpltCallback(hadc); 800e52e: 6878 ldr r0, [r7, #4] 800e530: f000 fae4 bl 800eafc #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear injected group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC)); 800e534: 687b ldr r3, [r7, #4] 800e536: 681b ldr r3, [r3, #0] 800e538: f06f 020c mvn.w r2, #12 800e53c: 601a str r2, [r3, #0] } } /* ========== Check Analog watchdog flags ========== */ if((tmp_cr1 & ADC_IT_AWD) == ADC_IT_AWD) 800e53e: 68bb ldr r3, [r7, #8] 800e540: f003 0340 and.w r3, r3, #64 @ 0x40 800e544: 2b00 cmp r3, #0 800e546: d012 beq.n 800e56e { if((tmp_sr & ADC_FLAG_AWD) == ADC_FLAG_AWD) 800e548: 68fb ldr r3, [r7, #12] 800e54a: f003 0301 and.w r3, r3, #1 800e54e: 2b00 cmp r3, #0 800e550: d00d beq.n 800e56e { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 800e552: 687b ldr r3, [r7, #4] 800e554: 6a9b ldr r3, [r3, #40] @ 0x28 800e556: f443 3280 orr.w r2, r3, #65536 @ 0x10000 800e55a: 687b ldr r3, [r7, #4] 800e55c: 629a str r2, [r3, #40] @ 0x28 /* Level out of window callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->LevelOutOfWindowCallback(hadc); #else HAL_ADC_LevelOutOfWindowCallback(hadc); 800e55e: 6878 ldr r0, [r7, #4] 800e560: f000 f812 bl 800e588 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the ADC analog watchdog flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); 800e564: 687b ldr r3, [r7, #4] 800e566: 681b ldr r3, [r3, #0] 800e568: f06f 0201 mvn.w r2, #1 800e56c: 601a str r2, [r3, #0] } } } 800e56e: bf00 nop 800e570: 3710 adds r7, #16 800e572: 46bd mov sp, r7 800e574: bd80 pop {r7, pc} 0800e576 : * @brief Conversion DMA half-transfer callback in non blocking mode * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc) { 800e576: b480 push {r7} 800e578: b083 sub sp, #12 800e57a: af00 add r7, sp, #0 800e57c: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function should not be modified. When the callback is needed, function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file. */ } 800e57e: bf00 nop 800e580: 370c adds r7, #12 800e582: 46bd mov sp, r7 800e584: bc80 pop {r7} 800e586: 4770 bx lr 0800e588 : * @brief Analog watchdog callback in non blocking mode. * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc) { 800e588: b480 push {r7} 800e58a: b083 sub sp, #12 800e58c: af00 add r7, sp, #0 800e58e: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function should not be modified. When the callback is needed, function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file. */ } 800e590: bf00 nop 800e592: 370c adds r7, #12 800e594: 46bd mov sp, r7 800e596: bc80 pop {r7} 800e598: 4770 bx lr 0800e59a : * (ADC conversion with interruption or transfer by DMA) * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) { 800e59a: b480 push {r7} 800e59c: b083 sub sp, #12 800e59e: af00 add r7, sp, #0 800e5a0: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function should not be modified. When the callback is needed, function HAL_ADC_ErrorCallback must be implemented in the user file. */ } 800e5a2: bf00 nop 800e5a4: 370c adds r7, #12 800e5a6: 46bd mov sp, r7 800e5a8: bc80 pop {r7} 800e5aa: 4770 bx lr 0800e5ac : * @param hadc: ADC handle * @param sConfig: Structure of ADC channel for regular group. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig) { 800e5ac: b480 push {r7} 800e5ae: b085 sub sp, #20 800e5b0: af00 add r7, sp, #0 800e5b2: 6078 str r0, [r7, #4] 800e5b4: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e5b6: 2300 movs r3, #0 800e5b8: 73fb strb r3, [r7, #15] __IO uint32_t wait_loop_index = 0U; 800e5ba: 2300 movs r3, #0 800e5bc: 60bb str r3, [r7, #8] assert_param(IS_ADC_CHANNEL(sConfig->Channel)); assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); /* Process locked */ __HAL_LOCK(hadc); 800e5be: 687b ldr r3, [r7, #4] 800e5c0: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e5c4: 2b01 cmp r3, #1 800e5c6: d101 bne.n 800e5cc 800e5c8: 2302 movs r3, #2 800e5ca: e0dc b.n 800e786 800e5cc: 687b ldr r3, [r7, #4] 800e5ce: 2201 movs r2, #1 800e5d0: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Regular sequence configuration */ /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) 800e5d4: 683b ldr r3, [r7, #0] 800e5d6: 685b ldr r3, [r3, #4] 800e5d8: 2b06 cmp r3, #6 800e5da: d81c bhi.n 800e616 { MODIFY_REG(hadc->Instance->SQR3 , 800e5dc: 687b ldr r3, [r7, #4] 800e5de: 681b ldr r3, [r3, #0] 800e5e0: 6b59 ldr r1, [r3, #52] @ 0x34 800e5e2: 683b ldr r3, [r7, #0] 800e5e4: 685a ldr r2, [r3, #4] 800e5e6: 4613 mov r3, r2 800e5e8: 009b lsls r3, r3, #2 800e5ea: 4413 add r3, r2 800e5ec: 3b05 subs r3, #5 800e5ee: 221f movs r2, #31 800e5f0: fa02 f303 lsl.w r3, r2, r3 800e5f4: 43db mvns r3, r3 800e5f6: 4019 ands r1, r3 800e5f8: 683b ldr r3, [r7, #0] 800e5fa: 6818 ldr r0, [r3, #0] 800e5fc: 683b ldr r3, [r7, #0] 800e5fe: 685a ldr r2, [r3, #4] 800e600: 4613 mov r3, r2 800e602: 009b lsls r3, r3, #2 800e604: 4413 add r3, r2 800e606: 3b05 subs r3, #5 800e608: fa00 f203 lsl.w r2, r0, r3 800e60c: 687b ldr r3, [r7, #4] 800e60e: 681b ldr r3, [r3, #0] 800e610: 430a orrs r2, r1 800e612: 635a str r2, [r3, #52] @ 0x34 800e614: e03c b.n 800e690 ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) , ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 7 to 12 */ else if (sConfig->Rank < 13U) 800e616: 683b ldr r3, [r7, #0] 800e618: 685b ldr r3, [r3, #4] 800e61a: 2b0c cmp r3, #12 800e61c: d81c bhi.n 800e658 { MODIFY_REG(hadc->Instance->SQR2 , 800e61e: 687b ldr r3, [r7, #4] 800e620: 681b ldr r3, [r3, #0] 800e622: 6b19 ldr r1, [r3, #48] @ 0x30 800e624: 683b ldr r3, [r7, #0] 800e626: 685a ldr r2, [r3, #4] 800e628: 4613 mov r3, r2 800e62a: 009b lsls r3, r3, #2 800e62c: 4413 add r3, r2 800e62e: 3b23 subs r3, #35 @ 0x23 800e630: 221f movs r2, #31 800e632: fa02 f303 lsl.w r3, r2, r3 800e636: 43db mvns r3, r3 800e638: 4019 ands r1, r3 800e63a: 683b ldr r3, [r7, #0] 800e63c: 6818 ldr r0, [r3, #0] 800e63e: 683b ldr r3, [r7, #0] 800e640: 685a ldr r2, [r3, #4] 800e642: 4613 mov r3, r2 800e644: 009b lsls r3, r3, #2 800e646: 4413 add r3, r2 800e648: 3b23 subs r3, #35 @ 0x23 800e64a: fa00 f203 lsl.w r2, r0, r3 800e64e: 687b ldr r3, [r7, #4] 800e650: 681b ldr r3, [r3, #0] 800e652: 430a orrs r2, r1 800e654: 631a str r2, [r3, #48] @ 0x30 800e656: e01b b.n 800e690 ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 13 to 16 */ else { MODIFY_REG(hadc->Instance->SQR1 , 800e658: 687b ldr r3, [r7, #4] 800e65a: 681b ldr r3, [r3, #0] 800e65c: 6ad9 ldr r1, [r3, #44] @ 0x2c 800e65e: 683b ldr r3, [r7, #0] 800e660: 685a ldr r2, [r3, #4] 800e662: 4613 mov r3, r2 800e664: 009b lsls r3, r3, #2 800e666: 4413 add r3, r2 800e668: 3b41 subs r3, #65 @ 0x41 800e66a: 221f movs r2, #31 800e66c: fa02 f303 lsl.w r3, r2, r3 800e670: 43db mvns r3, r3 800e672: 4019 ands r1, r3 800e674: 683b ldr r3, [r7, #0] 800e676: 6818 ldr r0, [r3, #0] 800e678: 683b ldr r3, [r7, #0] 800e67a: 685a ldr r2, [r3, #4] 800e67c: 4613 mov r3, r2 800e67e: 009b lsls r3, r3, #2 800e680: 4413 add r3, r2 800e682: 3b41 subs r3, #65 @ 0x41 800e684: fa00 f203 lsl.w r2, r0, r3 800e688: 687b ldr r3, [r7, #4] 800e68a: 681b ldr r3, [r3, #0] 800e68c: 430a orrs r2, r1 800e68e: 62da str r2, [r3, #44] @ 0x2c } /* Channel sampling time configuration */ /* For channels 10 to 17 */ if (sConfig->Channel >= ADC_CHANNEL_10) 800e690: 683b ldr r3, [r7, #0] 800e692: 681b ldr r3, [r3, #0] 800e694: 2b09 cmp r3, #9 800e696: d91c bls.n 800e6d2 { MODIFY_REG(hadc->Instance->SMPR1 , 800e698: 687b ldr r3, [r7, #4] 800e69a: 681b ldr r3, [r3, #0] 800e69c: 68d9 ldr r1, [r3, #12] 800e69e: 683b ldr r3, [r7, #0] 800e6a0: 681a ldr r2, [r3, #0] 800e6a2: 4613 mov r3, r2 800e6a4: 005b lsls r3, r3, #1 800e6a6: 4413 add r3, r2 800e6a8: 3b1e subs r3, #30 800e6aa: 2207 movs r2, #7 800e6ac: fa02 f303 lsl.w r3, r2, r3 800e6b0: 43db mvns r3, r3 800e6b2: 4019 ands r1, r3 800e6b4: 683b ldr r3, [r7, #0] 800e6b6: 6898 ldr r0, [r3, #8] 800e6b8: 683b ldr r3, [r7, #0] 800e6ba: 681a ldr r2, [r3, #0] 800e6bc: 4613 mov r3, r2 800e6be: 005b lsls r3, r3, #1 800e6c0: 4413 add r3, r2 800e6c2: 3b1e subs r3, #30 800e6c4: fa00 f203 lsl.w r2, r0, r3 800e6c8: 687b ldr r3, [r7, #4] 800e6ca: 681b ldr r3, [r3, #0] 800e6cc: 430a orrs r2, r1 800e6ce: 60da str r2, [r3, #12] 800e6d0: e019 b.n 800e706 ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) , ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) ); } else /* For channels 0 to 9 */ { MODIFY_REG(hadc->Instance->SMPR2 , 800e6d2: 687b ldr r3, [r7, #4] 800e6d4: 681b ldr r3, [r3, #0] 800e6d6: 6919 ldr r1, [r3, #16] 800e6d8: 683b ldr r3, [r7, #0] 800e6da: 681a ldr r2, [r3, #0] 800e6dc: 4613 mov r3, r2 800e6de: 005b lsls r3, r3, #1 800e6e0: 4413 add r3, r2 800e6e2: 2207 movs r2, #7 800e6e4: fa02 f303 lsl.w r3, r2, r3 800e6e8: 43db mvns r3, r3 800e6ea: 4019 ands r1, r3 800e6ec: 683b ldr r3, [r7, #0] 800e6ee: 6898 ldr r0, [r3, #8] 800e6f0: 683b ldr r3, [r7, #0] 800e6f2: 681a ldr r2, [r3, #0] 800e6f4: 4613 mov r3, r2 800e6f6: 005b lsls r3, r3, #1 800e6f8: 4413 add r3, r2 800e6fa: fa00 f203 lsl.w r2, r0, r3 800e6fe: 687b ldr r3, [r7, #4] 800e700: 681b ldr r3, [r3, #0] 800e702: 430a orrs r2, r1 800e704: 611a str r2, [r3, #16] ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) ); } /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */ /* and VREFINT measurement path. */ if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || 800e706: 683b ldr r3, [r7, #0] 800e708: 681b ldr r3, [r3, #0] 800e70a: 2b10 cmp r3, #16 800e70c: d003 beq.n 800e716 (sConfig->Channel == ADC_CHANNEL_VREFINT) ) 800e70e: 683b ldr r3, [r7, #0] 800e710: 681b ldr r3, [r3, #0] if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || 800e712: 2b11 cmp r3, #17 800e714: d132 bne.n 800e77c { /* For STM32F1 devices with several ADC: Only ADC1 can access internal */ /* measurement channels (VrefInt/TempSensor). If these channels are */ /* intended to be set on other ADC instances, an error is reported. */ if (hadc->Instance == ADC1) 800e716: 687b ldr r3, [r7, #4] 800e718: 681b ldr r3, [r3, #0] 800e71a: 4a1d ldr r2, [pc, #116] @ (800e790 ) 800e71c: 4293 cmp r3, r2 800e71e: d125 bne.n 800e76c { if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET) 800e720: 687b ldr r3, [r7, #4] 800e722: 681b ldr r3, [r3, #0] 800e724: 689b ldr r3, [r3, #8] 800e726: f403 0300 and.w r3, r3, #8388608 @ 0x800000 800e72a: 2b00 cmp r3, #0 800e72c: d126 bne.n 800e77c { SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE); 800e72e: 687b ldr r3, [r7, #4] 800e730: 681b ldr r3, [r3, #0] 800e732: 689a ldr r2, [r3, #8] 800e734: 687b ldr r3, [r7, #4] 800e736: 681b ldr r3, [r3, #0] 800e738: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 800e73c: 609a str r2, [r3, #8] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) 800e73e: 683b ldr r3, [r7, #0] 800e740: 681b ldr r3, [r3, #0] 800e742: 2b10 cmp r3, #16 800e744: d11a bne.n 800e77c { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); 800e746: 4b13 ldr r3, [pc, #76] @ (800e794 ) 800e748: 681b ldr r3, [r3, #0] 800e74a: 4a13 ldr r2, [pc, #76] @ (800e798 ) 800e74c: fba2 2303 umull r2, r3, r2, r3 800e750: 0c9a lsrs r2, r3, #18 800e752: 4613 mov r3, r2 800e754: 009b lsls r3, r3, #2 800e756: 4413 add r3, r2 800e758: 005b lsls r3, r3, #1 800e75a: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e75c: e002 b.n 800e764 { wait_loop_index--; 800e75e: 68bb ldr r3, [r7, #8] 800e760: 3b01 subs r3, #1 800e762: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e764: 68bb ldr r3, [r7, #8] 800e766: 2b00 cmp r3, #0 800e768: d1f9 bne.n 800e75e 800e76a: e007 b.n 800e77c } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 800e76c: 687b ldr r3, [r7, #4] 800e76e: 6a9b ldr r3, [r3, #40] @ 0x28 800e770: f043 0220 orr.w r2, r3, #32 800e774: 687b ldr r3, [r7, #4] 800e776: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; 800e778: 2301 movs r3, #1 800e77a: 73fb strb r3, [r7, #15] } } /* Process unlocked */ __HAL_UNLOCK(hadc); 800e77c: 687b ldr r3, [r7, #4] 800e77e: 2200 movs r2, #0 800e780: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; 800e784: 7bfb ldrb r3, [r7, #15] } 800e786: 4618 mov r0, r3 800e788: 3714 adds r7, #20 800e78a: 46bd mov sp, r7 800e78c: bc80 pop {r7} 800e78e: 4770 bx lr 800e790: 40012400 .word 0x40012400 800e794: 20000084 .word 0x20000084 800e798: 431bde83 .word 0x431bde83 0800e79c : * and voltage regulator must be enabled (done into HAL_ADC_Init()). * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc) { 800e79c: b580 push {r7, lr} 800e79e: b084 sub sp, #16 800e7a0: af00 add r7, sp, #0 800e7a2: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800e7a4: 2300 movs r3, #0 800e7a6: 60fb str r3, [r7, #12] __IO uint32_t wait_loop_index = 0U; 800e7a8: 2300 movs r3, #0 800e7aa: 60bb str r3, [r7, #8] /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ /* enabling phase not yet completed: flag ADC ready not yet set). */ /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ /* causes: ADC clock not running, ...). */ if (ADC_IS_ENABLE(hadc) == RESET) 800e7ac: 687b ldr r3, [r7, #4] 800e7ae: 681b ldr r3, [r3, #0] 800e7b0: 689b ldr r3, [r3, #8] 800e7b2: f003 0301 and.w r3, r3, #1 800e7b6: 2b01 cmp r3, #1 800e7b8: d040 beq.n 800e83c { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); 800e7ba: 687b ldr r3, [r7, #4] 800e7bc: 681b ldr r3, [r3, #0] 800e7be: 689a ldr r2, [r3, #8] 800e7c0: 687b ldr r3, [r7, #4] 800e7c2: 681b ldr r3, [r3, #0] 800e7c4: f042 0201 orr.w r2, r2, #1 800e7c8: 609a str r2, [r3, #8] /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); 800e7ca: 4b1f ldr r3, [pc, #124] @ (800e848 ) 800e7cc: 681b ldr r3, [r3, #0] 800e7ce: 4a1f ldr r2, [pc, #124] @ (800e84c ) 800e7d0: fba2 2303 umull r2, r3, r2, r3 800e7d4: 0c9b lsrs r3, r3, #18 800e7d6: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e7d8: e002 b.n 800e7e0 { wait_loop_index--; 800e7da: 68bb ldr r3, [r7, #8] 800e7dc: 3b01 subs r3, #1 800e7de: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e7e0: 68bb ldr r3, [r7, #8] 800e7e2: 2b00 cmp r3, #0 800e7e4: d1f9 bne.n 800e7da } /* Get tick count */ tickstart = HAL_GetTick(); 800e7e6: f7ff fc23 bl 800e030 800e7ea: 60f8 str r0, [r7, #12] /* Wait for ADC effectively enabled */ while(ADC_IS_ENABLE(hadc) == RESET) 800e7ec: e01f b.n 800e82e { if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) 800e7ee: f7ff fc1f bl 800e030 800e7f2: 4602 mov r2, r0 800e7f4: 68fb ldr r3, [r7, #12] 800e7f6: 1ad3 subs r3, r2, r3 800e7f8: 2b02 cmp r3, #2 800e7fa: d918 bls.n 800e82e { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) == RESET) 800e7fc: 687b ldr r3, [r7, #4] 800e7fe: 681b ldr r3, [r3, #0] 800e800: 689b ldr r3, [r3, #8] 800e802: f003 0301 and.w r3, r3, #1 800e806: 2b01 cmp r3, #1 800e808: d011 beq.n 800e82e { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800e80a: 687b ldr r3, [r7, #4] 800e80c: 6a9b ldr r3, [r3, #40] @ 0x28 800e80e: f043 0210 orr.w r2, r3, #16 800e812: 687b ldr r3, [r7, #4] 800e814: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e816: 687b ldr r3, [r7, #4] 800e818: 6adb ldr r3, [r3, #44] @ 0x2c 800e81a: f043 0201 orr.w r2, r3, #1 800e81e: 687b ldr r3, [r7, #4] 800e820: 62da str r2, [r3, #44] @ 0x2c /* Process unlocked */ __HAL_UNLOCK(hadc); 800e822: 687b ldr r3, [r7, #4] 800e824: 2200 movs r2, #0 800e826: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800e82a: 2301 movs r3, #1 800e82c: e007 b.n 800e83e while(ADC_IS_ENABLE(hadc) == RESET) 800e82e: 687b ldr r3, [r7, #4] 800e830: 681b ldr r3, [r3, #0] 800e832: 689b ldr r3, [r3, #8] 800e834: f003 0301 and.w r3, r3, #1 800e838: 2b01 cmp r3, #1 800e83a: d1d8 bne.n 800e7ee } } } /* Return HAL status */ return HAL_OK; 800e83c: 2300 movs r3, #0 } 800e83e: 4618 mov r0, r3 800e840: 3710 adds r7, #16 800e842: 46bd mov sp, r7 800e844: bd80 pop {r7, pc} 800e846: bf00 nop 800e848: 20000084 .word 0x20000084 800e84c: 431bde83 .word 0x431bde83 0800e850 : * stopped to disable the ADC. * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc) { 800e850: b580 push {r7, lr} 800e852: b084 sub sp, #16 800e854: af00 add r7, sp, #0 800e856: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800e858: 2300 movs r3, #0 800e85a: 60fb str r3, [r7, #12] /* Verification if ADC is not already disabled */ if (ADC_IS_ENABLE(hadc) != RESET) 800e85c: 687b ldr r3, [r7, #4] 800e85e: 681b ldr r3, [r3, #0] 800e860: 689b ldr r3, [r3, #8] 800e862: f003 0301 and.w r3, r3, #1 800e866: 2b01 cmp r3, #1 800e868: d12e bne.n 800e8c8 { /* Disable the ADC peripheral */ __HAL_ADC_DISABLE(hadc); 800e86a: 687b ldr r3, [r7, #4] 800e86c: 681b ldr r3, [r3, #0] 800e86e: 689a ldr r2, [r3, #8] 800e870: 687b ldr r3, [r7, #4] 800e872: 681b ldr r3, [r3, #0] 800e874: f022 0201 bic.w r2, r2, #1 800e878: 609a str r2, [r3, #8] /* Get tick count */ tickstart = HAL_GetTick(); 800e87a: f7ff fbd9 bl 800e030 800e87e: 60f8 str r0, [r7, #12] /* Wait for ADC effectively disabled */ while(ADC_IS_ENABLE(hadc) != RESET) 800e880: e01b b.n 800e8ba { if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) 800e882: f7ff fbd5 bl 800e030 800e886: 4602 mov r2, r0 800e888: 68fb ldr r3, [r7, #12] 800e88a: 1ad3 subs r3, r2, r3 800e88c: 2b02 cmp r3, #2 800e88e: d914 bls.n 800e8ba { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) != RESET) 800e890: 687b ldr r3, [r7, #4] 800e892: 681b ldr r3, [r3, #0] 800e894: 689b ldr r3, [r3, #8] 800e896: f003 0301 and.w r3, r3, #1 800e89a: 2b01 cmp r3, #1 800e89c: d10d bne.n 800e8ba { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800e89e: 687b ldr r3, [r7, #4] 800e8a0: 6a9b ldr r3, [r3, #40] @ 0x28 800e8a2: f043 0210 orr.w r2, r3, #16 800e8a6: 687b ldr r3, [r7, #4] 800e8a8: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e8aa: 687b ldr r3, [r7, #4] 800e8ac: 6adb ldr r3, [r3, #44] @ 0x2c 800e8ae: f043 0201 orr.w r2, r3, #1 800e8b2: 687b ldr r3, [r7, #4] 800e8b4: 62da str r2, [r3, #44] @ 0x2c return HAL_ERROR; 800e8b6: 2301 movs r3, #1 800e8b8: e007 b.n 800e8ca while(ADC_IS_ENABLE(hadc) != RESET) 800e8ba: 687b ldr r3, [r7, #4] 800e8bc: 681b ldr r3, [r3, #0] 800e8be: 689b ldr r3, [r3, #8] 800e8c0: f003 0301 and.w r3, r3, #1 800e8c4: 2b01 cmp r3, #1 800e8c6: d0dc beq.n 800e882 } } } /* Return HAL status */ return HAL_OK; 800e8c8: 2300 movs r3, #0 } 800e8ca: 4618 mov r0, r3 800e8cc: 3710 adds r7, #16 800e8ce: 46bd mov sp, r7 800e8d0: bd80 pop {r7, pc} 0800e8d2 : * @brief DMA transfer complete callback. * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) { 800e8d2: b580 push {r7, lr} 800e8d4: b084 sub sp, #16 800e8d6: af00 add r7, sp, #0 800e8d8: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800e8da: 687b ldr r3, [r7, #4] 800e8dc: 6a5b ldr r3, [r3, #36] @ 0x24 800e8de: 60fb str r3, [r7, #12] /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) 800e8e0: 68fb ldr r3, [r7, #12] 800e8e2: 6a9b ldr r3, [r3, #40] @ 0x28 800e8e4: f003 0350 and.w r3, r3, #80 @ 0x50 800e8e8: 2b00 cmp r3, #0 800e8ea: d127 bne.n 800e93c { /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 800e8ec: 68fb ldr r3, [r7, #12] 800e8ee: 6a9b ldr r3, [r3, #40] @ 0x28 800e8f0: f443 7200 orr.w r2, r3, #512 @ 0x200 800e8f4: 68fb ldr r3, [r7, #12] 800e8f6: 629a str r2, [r3, #40] @ 0x28 /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F1 devices, in case of sequencer enabled */ /* (several ranks selected), end of conversion flag is raised */ /* at the end of the sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e8f8: 68fb ldr r3, [r7, #12] 800e8fa: 681b ldr r3, [r3, #0] 800e8fc: 689b ldr r3, [r3, #8] 800e8fe: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e902: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e906: d115 bne.n 800e934 (hadc->Init.ContinuousConvMode == DISABLE) ) 800e908: 68fb ldr r3, [r7, #12] 800e90a: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e90c: 2b00 cmp r3, #0 800e90e: d111 bne.n 800e934 { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 800e910: 68fb ldr r3, [r7, #12] 800e912: 6a9b ldr r3, [r3, #40] @ 0x28 800e914: f423 7280 bic.w r2, r3, #256 @ 0x100 800e918: 68fb ldr r3, [r7, #12] 800e91a: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800e91c: 68fb ldr r3, [r7, #12] 800e91e: 6a9b ldr r3, [r3, #40] @ 0x28 800e920: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e924: 2b00 cmp r3, #0 800e926: d105 bne.n 800e934 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e928: 68fb ldr r3, [r7, #12] 800e92a: 6a9b ldr r3, [r3, #40] @ 0x28 800e92c: f043 0201 orr.w r2, r3, #1 800e930: 68fb ldr r3, [r7, #12] 800e932: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); 800e934: 68f8 ldr r0, [r7, #12] 800e936: f7fa fe09 bl 800954c else { /* Call DMA error callback */ hadc->DMA_Handle->XferErrorCallback(hdma); } } 800e93a: e004 b.n 800e946 hadc->DMA_Handle->XferErrorCallback(hdma); 800e93c: 68fb ldr r3, [r7, #12] 800e93e: 6a1b ldr r3, [r3, #32] 800e940: 6b1b ldr r3, [r3, #48] @ 0x30 800e942: 6878 ldr r0, [r7, #4] 800e944: 4798 blx r3 } 800e946: bf00 nop 800e948: 3710 adds r7, #16 800e94a: 46bd mov sp, r7 800e94c: bd80 pop {r7, pc} 0800e94e : * @brief DMA half transfer complete callback. * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) { 800e94e: b580 push {r7, lr} 800e950: b084 sub sp, #16 800e952: af00 add r7, sp, #0 800e954: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800e956: 687b ldr r3, [r7, #4] 800e958: 6a5b ldr r3, [r3, #36] @ 0x24 800e95a: 60fb str r3, [r7, #12] /* Half conversion callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvHalfCpltCallback(hadc); #else HAL_ADC_ConvHalfCpltCallback(hadc); 800e95c: 68f8 ldr r0, [r7, #12] 800e95e: f7ff fe0a bl 800e576 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } 800e962: bf00 nop 800e964: 3710 adds r7, #16 800e966: 46bd mov sp, r7 800e968: bd80 pop {r7, pc} 0800e96a : * @brief DMA error callback * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAError(DMA_HandleTypeDef *hdma) { 800e96a: b580 push {r7, lr} 800e96c: b084 sub sp, #16 800e96e: af00 add r7, sp, #0 800e970: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800e972: 687b ldr r3, [r7, #4] 800e974: 6a5b ldr r3, [r3, #36] @ 0x24 800e976: 60fb str r3, [r7, #12] /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 800e978: 68fb ldr r3, [r7, #12] 800e97a: 6a9b ldr r3, [r3, #40] @ 0x28 800e97c: f043 0240 orr.w r2, r3, #64 @ 0x40 800e980: 68fb ldr r3, [r7, #12] 800e982: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to DMA error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); 800e984: 68fb ldr r3, [r7, #12] 800e986: 6adb ldr r3, [r3, #44] @ 0x2c 800e988: f043 0204 orr.w r2, r3, #4 800e98c: 68fb ldr r3, [r7, #12] 800e98e: 62da str r2, [r3, #44] @ 0x2c /* Error callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); 800e990: 68f8 ldr r0, [r7, #12] 800e992: f7ff fe02 bl 800e59a #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } 800e996: bf00 nop 800e998: 3710 adds r7, #16 800e99a: 46bd mov sp, r7 800e99c: bd80 pop {r7, pc} ... 0800e9a0 : * the completion of this function. * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc) { 800e9a0: b590 push {r4, r7, lr} 800e9a2: b087 sub sp, #28 800e9a4: af00 add r7, sp, #0 800e9a6: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e9a8: 2300 movs r3, #0 800e9aa: 75fb strb r3, [r7, #23] uint32_t tickstart; __IO uint32_t wait_loop_index = 0U; 800e9ac: 2300 movs r3, #0 800e9ae: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); 800e9b0: 687b ldr r3, [r7, #4] 800e9b2: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e9b6: 2b01 cmp r3, #1 800e9b8: d101 bne.n 800e9be 800e9ba: 2302 movs r3, #2 800e9bc: e097 b.n 800eaee 800e9be: 687b ldr r3, [r7, #4] 800e9c0: 2201 movs r2, #1 800e9c2: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* 1. Disable ADC peripheral */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); 800e9c6: 6878 ldr r0, [r7, #4] 800e9c8: f7ff ff42 bl 800e850 800e9cc: 4603 mov r3, r0 800e9ce: 75fb strb r3, [r7, #23] /* 2. Calibration prerequisite delay before starting the calibration. */ /* - ADC must be enabled for at least two ADC clock cycles */ tmp_hal_status = ADC_Enable(hadc); 800e9d0: 6878 ldr r0, [r7, #4] 800e9d2: f7ff fee3 bl 800e79c 800e9d6: 4603 mov r3, r0 800e9d8: 75fb strb r3, [r7, #23] /* Check if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) 800e9da: 7dfb ldrb r3, [r7, #23] 800e9dc: 2b00 cmp r3, #0 800e9de: f040 8081 bne.w 800eae4 { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e9e2: 687b ldr r3, [r7, #4] 800e9e4: 6a9b ldr r3, [r3, #40] @ 0x28 800e9e6: f423 5388 bic.w r3, r3, #4352 @ 0x1100 800e9ea: f023 0302 bic.w r3, r3, #2 800e9ee: f043 0202 orr.w r2, r3, #2 800e9f2: 687b ldr r3, [r7, #4] 800e9f4: 629a str r2, [r3, #40] @ 0x28 /* Hardware prerequisite: delay before starting the calibration. */ /* - Computation of CPU clock cycles corresponding to ADC clock cycles. */ /* - Wait for the expected ADC clock cycles delay */ wait_loop_index = ((SystemCoreClock / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC)) 800e9f6: 4b40 ldr r3, [pc, #256] @ (800eaf8 ) 800e9f8: 681c ldr r4, [r3, #0] 800e9fa: 2002 movs r0, #2 800e9fc: f002 fec6 bl 801178c 800ea00: 4603 mov r3, r0 800ea02: fbb4 f3f3 udiv r3, r4, r3 * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES ); 800ea06: 005b lsls r3, r3, #1 wait_loop_index = ((SystemCoreClock 800ea08: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) 800ea0a: e002 b.n 800ea12 { wait_loop_index--; 800ea0c: 68fb ldr r3, [r7, #12] 800ea0e: 3b01 subs r3, #1 800ea10: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) 800ea12: 68fb ldr r3, [r7, #12] 800ea14: 2b00 cmp r3, #0 800ea16: d1f9 bne.n 800ea0c } /* 3. Resets ADC calibration registers */ SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL); 800ea18: 687b ldr r3, [r7, #4] 800ea1a: 681b ldr r3, [r3, #0] 800ea1c: 689a ldr r2, [r3, #8] 800ea1e: 687b ldr r3, [r7, #4] 800ea20: 681b ldr r3, [r3, #0] 800ea22: f042 0208 orr.w r2, r2, #8 800ea26: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); 800ea28: f7ff fb02 bl 800e030 800ea2c: 6138 str r0, [r7, #16] /* Wait for calibration reset completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800ea2e: e01b b.n 800ea68 { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) 800ea30: f7ff fafe bl 800e030 800ea34: 4602 mov r2, r0 800ea36: 693b ldr r3, [r7, #16] 800ea38: 1ad3 subs r3, r2, r3 800ea3a: 2b0a cmp r3, #10 800ea3c: d914 bls.n 800ea68 { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800ea3e: 687b ldr r3, [r7, #4] 800ea40: 681b ldr r3, [r3, #0] 800ea42: 689b ldr r3, [r3, #8] 800ea44: f003 0308 and.w r3, r3, #8 800ea48: 2b00 cmp r3, #0 800ea4a: d00d beq.n 800ea68 { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800ea4c: 687b ldr r3, [r7, #4] 800ea4e: 6a9b ldr r3, [r3, #40] @ 0x28 800ea50: f023 0312 bic.w r3, r3, #18 800ea54: f043 0210 orr.w r2, r3, #16 800ea58: 687b ldr r3, [r7, #4] 800ea5a: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); 800ea5c: 687b ldr r3, [r7, #4] 800ea5e: 2200 movs r2, #0 800ea60: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ea64: 2301 movs r3, #1 800ea66: e042 b.n 800eaee while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800ea68: 687b ldr r3, [r7, #4] 800ea6a: 681b ldr r3, [r3, #0] 800ea6c: 689b ldr r3, [r3, #8] 800ea6e: f003 0308 and.w r3, r3, #8 800ea72: 2b00 cmp r3, #0 800ea74: d1dc bne.n 800ea30 } } } /* 4. Start ADC calibration */ SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL); 800ea76: 687b ldr r3, [r7, #4] 800ea78: 681b ldr r3, [r3, #0] 800ea7a: 689a ldr r2, [r3, #8] 800ea7c: 687b ldr r3, [r7, #4] 800ea7e: 681b ldr r3, [r3, #0] 800ea80: f042 0204 orr.w r2, r2, #4 800ea84: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); 800ea86: f7ff fad3 bl 800e030 800ea8a: 6138 str r0, [r7, #16] /* Wait for calibration completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800ea8c: e01b b.n 800eac6 { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) 800ea8e: f7ff facf bl 800e030 800ea92: 4602 mov r2, r0 800ea94: 693b ldr r3, [r7, #16] 800ea96: 1ad3 subs r3, r2, r3 800ea98: 2b0a cmp r3, #10 800ea9a: d914 bls.n 800eac6 { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800ea9c: 687b ldr r3, [r7, #4] 800ea9e: 681b ldr r3, [r3, #0] 800eaa0: 689b ldr r3, [r3, #8] 800eaa2: f003 0304 and.w r3, r3, #4 800eaa6: 2b00 cmp r3, #0 800eaa8: d00d beq.n 800eac6 { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800eaaa: 687b ldr r3, [r7, #4] 800eaac: 6a9b ldr r3, [r3, #40] @ 0x28 800eaae: f023 0312 bic.w r3, r3, #18 800eab2: f043 0210 orr.w r2, r3, #16 800eab6: 687b ldr r3, [r7, #4] 800eab8: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); 800eaba: 687b ldr r3, [r7, #4] 800eabc: 2200 movs r2, #0 800eabe: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800eac2: 2301 movs r3, #1 800eac4: e013 b.n 800eaee while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800eac6: 687b ldr r3, [r7, #4] 800eac8: 681b ldr r3, [r3, #0] 800eaca: 689b ldr r3, [r3, #8] 800eacc: f003 0304 and.w r3, r3, #4 800ead0: 2b00 cmp r3, #0 800ead2: d1dc bne.n 800ea8e } } } /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800ead4: 687b ldr r3, [r7, #4] 800ead6: 6a9b ldr r3, [r3, #40] @ 0x28 800ead8: f023 0303 bic.w r3, r3, #3 800eadc: f043 0201 orr.w r2, r3, #1 800eae0: 687b ldr r3, [r7, #4] 800eae2: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); 800eae4: 687b ldr r3, [r7, #4] 800eae6: 2200 movs r2, #0 800eae8: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; 800eaec: 7dfb ldrb r3, [r7, #23] } 800eaee: 4618 mov r0, r3 800eaf0: 371c adds r7, #28 800eaf2: 46bd mov sp, r7 800eaf4: bd90 pop {r4, r7, pc} 800eaf6: bf00 nop 800eaf8: 20000084 .word 0x20000084 0800eafc : * @brief Injected conversion complete callback in non blocking mode * @param hadc: ADC handle * @retval None */ __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc) { 800eafc: b480 push {r7} 800eafe: b083 sub sp, #12 800eb00: af00 add r7, sp, #0 800eb02: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADCEx_InjectedConvCpltCallback could be implemented in the user file */ } 800eb04: bf00 nop 800eb06: 370c adds r7, #12 800eb08: 46bd mov sp, r7 800eb0a: bc80 pop {r7} 800eb0c: 4770 bx lr 0800eb0e : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan) { 800eb0e: b580 push {r7, lr} 800eb10: b084 sub sp, #16 800eb12: af00 add r7, sp, #0 800eb14: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) 800eb16: 687b ldr r3, [r7, #4] 800eb18: 2b00 cmp r3, #0 800eb1a: d101 bne.n 800eb20 { return HAL_ERROR; 800eb1c: 2301 movs r3, #1 800eb1e: e0ed b.n 800ecfc /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) 800eb20: 687b ldr r3, [r7, #4] 800eb22: f893 3020 ldrb.w r3, [r3, #32] 800eb26: b2db uxtb r3, r3 800eb28: 2b00 cmp r3, #0 800eb2a: d102 bne.n 800eb32 { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); 800eb2c: 6878 ldr r0, [r7, #4] 800eb2e: f7fb f873 bl 8009c18 } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800eb32: 687b ldr r3, [r7, #4] 800eb34: 681b ldr r3, [r3, #0] 800eb36: 681a ldr r2, [r3, #0] 800eb38: 687b ldr r3, [r7, #4] 800eb3a: 681b ldr r3, [r3, #0] 800eb3c: f042 0201 orr.w r2, r2, #1 800eb40: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800eb42: f7ff fa75 bl 800e030 800eb46: 60f8 str r0, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800eb48: e012 b.n 800eb70 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800eb4a: f7ff fa71 bl 800e030 800eb4e: 4602 mov r2, r0 800eb50: 68fb ldr r3, [r7, #12] 800eb52: 1ad3 subs r3, r2, r3 800eb54: 2b0a cmp r3, #10 800eb56: d90b bls.n 800eb70 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800eb58: 687b ldr r3, [r7, #4] 800eb5a: 6a5b ldr r3, [r3, #36] @ 0x24 800eb5c: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800eb60: 687b ldr r3, [r7, #4] 800eb62: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800eb64: 687b ldr r3, [r7, #4] 800eb66: 2205 movs r2, #5 800eb68: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800eb6c: 2301 movs r3, #1 800eb6e: e0c5 b.n 800ecfc while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800eb70: 687b ldr r3, [r7, #4] 800eb72: 681b ldr r3, [r3, #0] 800eb74: 685b ldr r3, [r3, #4] 800eb76: f003 0301 and.w r3, r3, #1 800eb7a: 2b00 cmp r3, #0 800eb7c: d0e5 beq.n 800eb4a } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 800eb7e: 687b ldr r3, [r7, #4] 800eb80: 681b ldr r3, [r3, #0] 800eb82: 681a ldr r2, [r3, #0] 800eb84: 687b ldr r3, [r7, #4] 800eb86: 681b ldr r3, [r3, #0] 800eb88: f022 0202 bic.w r2, r2, #2 800eb8c: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800eb8e: f7ff fa4f bl 800e030 800eb92: 60f8 str r0, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 800eb94: e012 b.n 800ebbc { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800eb96: f7ff fa4b bl 800e030 800eb9a: 4602 mov r2, r0 800eb9c: 68fb ldr r3, [r7, #12] 800eb9e: 1ad3 subs r3, r2, r3 800eba0: 2b0a cmp r3, #10 800eba2: d90b bls.n 800ebbc { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800eba4: 687b ldr r3, [r7, #4] 800eba6: 6a5b ldr r3, [r3, #36] @ 0x24 800eba8: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ebac: 687b ldr r3, [r7, #4] 800ebae: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ebb0: 687b ldr r3, [r7, #4] 800ebb2: 2205 movs r2, #5 800ebb4: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ebb8: 2301 movs r3, #1 800ebba: e09f b.n 800ecfc while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 800ebbc: 687b ldr r3, [r7, #4] 800ebbe: 681b ldr r3, [r3, #0] 800ebc0: 685b ldr r3, [r3, #4] 800ebc2: f003 0302 and.w r3, r3, #2 800ebc6: 2b00 cmp r3, #0 800ebc8: d1e5 bne.n 800eb96 } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) 800ebca: 687b ldr r3, [r7, #4] 800ebcc: 7e1b ldrb r3, [r3, #24] 800ebce: 2b01 cmp r3, #1 800ebd0: d108 bne.n 800ebe4 { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 800ebd2: 687b ldr r3, [r7, #4] 800ebd4: 681b ldr r3, [r3, #0] 800ebd6: 681a ldr r2, [r3, #0] 800ebd8: 687b ldr r3, [r7, #4] 800ebda: 681b ldr r3, [r3, #0] 800ebdc: f042 0280 orr.w r2, r2, #128 @ 0x80 800ebe0: 601a str r2, [r3, #0] 800ebe2: e007 b.n 800ebf4 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 800ebe4: 687b ldr r3, [r7, #4] 800ebe6: 681b ldr r3, [r3, #0] 800ebe8: 681a ldr r2, [r3, #0] 800ebea: 687b ldr r3, [r7, #4] 800ebec: 681b ldr r3, [r3, #0] 800ebee: f022 0280 bic.w r2, r2, #128 @ 0x80 800ebf2: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) 800ebf4: 687b ldr r3, [r7, #4] 800ebf6: 7e5b ldrb r3, [r3, #25] 800ebf8: 2b01 cmp r3, #1 800ebfa: d108 bne.n 800ec0e { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 800ebfc: 687b ldr r3, [r7, #4] 800ebfe: 681b ldr r3, [r3, #0] 800ec00: 681a ldr r2, [r3, #0] 800ec02: 687b ldr r3, [r7, #4] 800ec04: 681b ldr r3, [r3, #0] 800ec06: f042 0240 orr.w r2, r2, #64 @ 0x40 800ec0a: 601a str r2, [r3, #0] 800ec0c: e007 b.n 800ec1e } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 800ec0e: 687b ldr r3, [r7, #4] 800ec10: 681b ldr r3, [r3, #0] 800ec12: 681a ldr r2, [r3, #0] 800ec14: 687b ldr r3, [r7, #4] 800ec16: 681b ldr r3, [r3, #0] 800ec18: f022 0240 bic.w r2, r2, #64 @ 0x40 800ec1c: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) 800ec1e: 687b ldr r3, [r7, #4] 800ec20: 7e9b ldrb r3, [r3, #26] 800ec22: 2b01 cmp r3, #1 800ec24: d108 bne.n 800ec38 { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 800ec26: 687b ldr r3, [r7, #4] 800ec28: 681b ldr r3, [r3, #0] 800ec2a: 681a ldr r2, [r3, #0] 800ec2c: 687b ldr r3, [r7, #4] 800ec2e: 681b ldr r3, [r3, #0] 800ec30: f042 0220 orr.w r2, r2, #32 800ec34: 601a str r2, [r3, #0] 800ec36: e007 b.n 800ec48 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 800ec38: 687b ldr r3, [r7, #4] 800ec3a: 681b ldr r3, [r3, #0] 800ec3c: 681a ldr r2, [r3, #0] 800ec3e: 687b ldr r3, [r7, #4] 800ec40: 681b ldr r3, [r3, #0] 800ec42: f022 0220 bic.w r2, r2, #32 800ec46: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) 800ec48: 687b ldr r3, [r7, #4] 800ec4a: 7edb ldrb r3, [r3, #27] 800ec4c: 2b01 cmp r3, #1 800ec4e: d108 bne.n 800ec62 { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800ec50: 687b ldr r3, [r7, #4] 800ec52: 681b ldr r3, [r3, #0] 800ec54: 681a ldr r2, [r3, #0] 800ec56: 687b ldr r3, [r7, #4] 800ec58: 681b ldr r3, [r3, #0] 800ec5a: f022 0210 bic.w r2, r2, #16 800ec5e: 601a str r2, [r3, #0] 800ec60: e007 b.n 800ec72 } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800ec62: 687b ldr r3, [r7, #4] 800ec64: 681b ldr r3, [r3, #0] 800ec66: 681a ldr r2, [r3, #0] 800ec68: 687b ldr r3, [r7, #4] 800ec6a: 681b ldr r3, [r3, #0] 800ec6c: f042 0210 orr.w r2, r2, #16 800ec70: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) 800ec72: 687b ldr r3, [r7, #4] 800ec74: 7f1b ldrb r3, [r3, #28] 800ec76: 2b01 cmp r3, #1 800ec78: d108 bne.n 800ec8c { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 800ec7a: 687b ldr r3, [r7, #4] 800ec7c: 681b ldr r3, [r3, #0] 800ec7e: 681a ldr r2, [r3, #0] 800ec80: 687b ldr r3, [r7, #4] 800ec82: 681b ldr r3, [r3, #0] 800ec84: f042 0208 orr.w r2, r2, #8 800ec88: 601a str r2, [r3, #0] 800ec8a: e007 b.n 800ec9c } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 800ec8c: 687b ldr r3, [r7, #4] 800ec8e: 681b ldr r3, [r3, #0] 800ec90: 681a ldr r2, [r3, #0] 800ec92: 687b ldr r3, [r7, #4] 800ec94: 681b ldr r3, [r3, #0] 800ec96: f022 0208 bic.w r2, r2, #8 800ec9a: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) 800ec9c: 687b ldr r3, [r7, #4] 800ec9e: 7f5b ldrb r3, [r3, #29] 800eca0: 2b01 cmp r3, #1 800eca2: d108 bne.n 800ecb6 { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800eca4: 687b ldr r3, [r7, #4] 800eca6: 681b ldr r3, [r3, #0] 800eca8: 681a ldr r2, [r3, #0] 800ecaa: 687b ldr r3, [r7, #4] 800ecac: 681b ldr r3, [r3, #0] 800ecae: f042 0204 orr.w r2, r2, #4 800ecb2: 601a str r2, [r3, #0] 800ecb4: e007 b.n 800ecc6 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800ecb6: 687b ldr r3, [r7, #4] 800ecb8: 681b ldr r3, [r3, #0] 800ecba: 681a ldr r2, [r3, #0] 800ecbc: 687b ldr r3, [r7, #4] 800ecbe: 681b ldr r3, [r3, #0] 800ecc0: f022 0204 bic.w r2, r2, #4 800ecc4: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | 800ecc6: 687b ldr r3, [r7, #4] 800ecc8: 689a ldr r2, [r3, #8] 800ecca: 687b ldr r3, [r7, #4] 800eccc: 68db ldr r3, [r3, #12] 800ecce: 431a orrs r2, r3 800ecd0: 687b ldr r3, [r7, #4] 800ecd2: 691b ldr r3, [r3, #16] 800ecd4: 431a orrs r2, r3 800ecd6: 687b ldr r3, [r7, #4] 800ecd8: 695b ldr r3, [r3, #20] 800ecda: ea42 0103 orr.w r1, r2, r3 800ecde: 687b ldr r3, [r7, #4] 800ece0: 685b ldr r3, [r3, #4] 800ece2: 1e5a subs r2, r3, #1 800ece4: 687b ldr r3, [r7, #4] 800ece6: 681b ldr r3, [r3, #0] 800ece8: 430a orrs r2, r1 800ecea: 61da str r2, [r3, #28] hcan->Init.TimeSeg1 | hcan->Init.TimeSeg2 | (hcan->Init.Prescaler - 1U))); /* Initialize the error code */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; 800ecec: 687b ldr r3, [r7, #4] 800ecee: 2200 movs r2, #0 800ecf0: 625a str r2, [r3, #36] @ 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; 800ecf2: 687b ldr r3, [r7, #4] 800ecf4: 2201 movs r2, #1 800ecf6: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; 800ecfa: 2300 movs r3, #0 } 800ecfc: 4618 mov r0, r3 800ecfe: 3710 adds r7, #16 800ed00: 46bd mov sp, r7 800ed02: bd80 pop {r7, pc} 0800ed04 : * @param sFilterConfig pointer to a CAN_FilterTypeDef structure that * contains the filter configuration information. * @retval None */ HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, const CAN_FilterTypeDef *sFilterConfig) { 800ed04: b480 push {r7} 800ed06: b087 sub sp, #28 800ed08: af00 add r7, sp, #0 800ed0a: 6078 str r0, [r7, #4] 800ed0c: 6039 str r1, [r7, #0] uint32_t filternbrbitpos; CAN_TypeDef *can_ip = hcan->Instance; 800ed0e: 687b ldr r3, [r7, #4] 800ed10: 681b ldr r3, [r3, #0] 800ed12: 617b str r3, [r7, #20] HAL_CAN_StateTypeDef state = hcan->State; 800ed14: 687b ldr r3, [r7, #4] 800ed16: f893 3020 ldrb.w r3, [r3, #32] 800ed1a: 74fb strb r3, [r7, #19] if ((state == HAL_CAN_STATE_READY) || 800ed1c: 7cfb ldrb r3, [r7, #19] 800ed1e: 2b01 cmp r3, #1 800ed20: d003 beq.n 800ed2a 800ed22: 7cfb ldrb r3, [r7, #19] 800ed24: 2b02 cmp r3, #2 800ed26: f040 80be bne.w 800eea6 assert_param(IS_CAN_FILTER_ACTIVATION(sFilterConfig->FilterActivation)); #if defined(CAN2) /* CAN1 and CAN2 are dual instances with 28 common filters banks */ /* Select master instance to access the filter banks */ can_ip = CAN1; 800ed2a: 4b65 ldr r3, [pc, #404] @ (800eec0 ) 800ed2c: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_CAN_FILTER_BANK_SINGLE(sFilterConfig->FilterBank)); #endif /* CAN3 */ /* Initialisation mode for the filter */ SET_BIT(can_ip->FMR, CAN_FMR_FINIT); 800ed2e: 697b ldr r3, [r7, #20] 800ed30: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800ed34: f043 0201 orr.w r2, r3, #1 800ed38: 697b ldr r3, [r7, #20] 800ed3a: f8c3 2200 str.w r2, [r3, #512] @ 0x200 #if defined(CAN2) /* Select the start filter number of CAN2 slave instance */ CLEAR_BIT(can_ip->FMR, CAN_FMR_CAN2SB); 800ed3e: 697b ldr r3, [r7, #20] 800ed40: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800ed44: f423 527c bic.w r2, r3, #16128 @ 0x3f00 800ed48: 697b ldr r3, [r7, #20] 800ed4a: f8c3 2200 str.w r2, [r3, #512] @ 0x200 SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); 800ed4e: 697b ldr r3, [r7, #20] 800ed50: f8d3 2200 ldr.w r2, [r3, #512] @ 0x200 800ed54: 683b ldr r3, [r7, #0] 800ed56: 6a5b ldr r3, [r3, #36] @ 0x24 800ed58: 021b lsls r3, r3, #8 800ed5a: 431a orrs r2, r3 800ed5c: 697b ldr r3, [r7, #20] 800ed5e: f8c3 2200 str.w r2, [r3, #512] @ 0x200 #endif /* CAN3 */ /* Convert filter number into bit position */ filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU); 800ed62: 683b ldr r3, [r7, #0] 800ed64: 695b ldr r3, [r3, #20] 800ed66: f003 031f and.w r3, r3, #31 800ed6a: 2201 movs r2, #1 800ed6c: fa02 f303 lsl.w r3, r2, r3 800ed70: 60fb str r3, [r7, #12] /* Filter Deactivation */ CLEAR_BIT(can_ip->FA1R, filternbrbitpos); 800ed72: 697b ldr r3, [r7, #20] 800ed74: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c 800ed78: 68fb ldr r3, [r7, #12] 800ed7a: 43db mvns r3, r3 800ed7c: 401a ands r2, r3 800ed7e: 697b ldr r3, [r7, #20] 800ed80: f8c3 221c str.w r2, [r3, #540] @ 0x21c /* Filter Scale */ if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT) 800ed84: 683b ldr r3, [r7, #0] 800ed86: 69db ldr r3, [r3, #28] 800ed88: 2b00 cmp r3, #0 800ed8a: d123 bne.n 800edd4 { /* 16-bit scale for the filter */ CLEAR_BIT(can_ip->FS1R, filternbrbitpos); 800ed8c: 697b ldr r3, [r7, #20] 800ed8e: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c 800ed92: 68fb ldr r3, [r7, #12] 800ed94: 43db mvns r3, r3 800ed96: 401a ands r2, r3 800ed98: 697b ldr r3, [r7, #20] 800ed9a: f8c3 220c str.w r2, [r3, #524] @ 0x20c /* First 16-bit identifier and First 16-bit mask */ /* Or First 16-bit identifier and Second 16-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | 800ed9e: 683b ldr r3, [r7, #0] 800eda0: 68db ldr r3, [r3, #12] 800eda2: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); 800eda4: 683b ldr r3, [r7, #0] 800eda6: 685b ldr r3, [r3, #4] 800eda8: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800edaa: 683a ldr r2, [r7, #0] 800edac: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | 800edae: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800edb0: 697b ldr r3, [r7, #20] 800edb2: 3248 adds r2, #72 @ 0x48 800edb4: f843 1032 str.w r1, [r3, r2, lsl #3] /* Second 16-bit identifier and Second 16-bit mask */ /* Or Third 16-bit identifier and Fourth 16-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800edb8: 683b ldr r3, [r7, #0] 800edba: 689b ldr r3, [r3, #8] 800edbc: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh); 800edbe: 683b ldr r3, [r7, #0] 800edc0: 681b ldr r3, [r3, #0] 800edc2: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800edc4: 683b ldr r3, [r7, #0] 800edc6: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800edc8: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800edca: 6979 ldr r1, [r7, #20] 800edcc: 3348 adds r3, #72 @ 0x48 800edce: 00db lsls r3, r3, #3 800edd0: 440b add r3, r1 800edd2: 605a str r2, [r3, #4] } if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT) 800edd4: 683b ldr r3, [r7, #0] 800edd6: 69db ldr r3, [r3, #28] 800edd8: 2b01 cmp r3, #1 800edda: d122 bne.n 800ee22 { /* 32-bit scale for the filter */ SET_BIT(can_ip->FS1R, filternbrbitpos); 800eddc: 697b ldr r3, [r7, #20] 800edde: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c 800ede2: 68fb ldr r3, [r7, #12] 800ede4: 431a orrs r2, r3 800ede6: 697b ldr r3, [r7, #20] 800ede8: f8c3 220c str.w r2, [r3, #524] @ 0x20c /* 32-bit identifier or First 32-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | 800edec: 683b ldr r3, [r7, #0] 800edee: 681b ldr r3, [r3, #0] 800edf0: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); 800edf2: 683b ldr r3, [r7, #0] 800edf4: 685b ldr r3, [r3, #4] 800edf6: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800edf8: 683a ldr r2, [r7, #0] 800edfa: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | 800edfc: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800edfe: 697b ldr r3, [r7, #20] 800ee00: 3248 adds r2, #72 @ 0x48 800ee02: f843 1032 str.w r1, [r3, r2, lsl #3] /* 32-bit mask or Second 32-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800ee06: 683b ldr r3, [r7, #0] 800ee08: 689b ldr r3, [r3, #8] 800ee0a: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow); 800ee0c: 683b ldr r3, [r7, #0] 800ee0e: 68db ldr r3, [r3, #12] 800ee10: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800ee12: 683b ldr r3, [r7, #0] 800ee14: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800ee16: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800ee18: 6979 ldr r1, [r7, #20] 800ee1a: 3348 adds r3, #72 @ 0x48 800ee1c: 00db lsls r3, r3, #3 800ee1e: 440b add r3, r1 800ee20: 605a str r2, [r3, #4] } /* Filter Mode */ if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK) 800ee22: 683b ldr r3, [r7, #0] 800ee24: 699b ldr r3, [r3, #24] 800ee26: 2b00 cmp r3, #0 800ee28: d109 bne.n 800ee3e { /* Id/Mask mode for the filter*/ CLEAR_BIT(can_ip->FM1R, filternbrbitpos); 800ee2a: 697b ldr r3, [r7, #20] 800ee2c: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 800ee30: 68fb ldr r3, [r7, #12] 800ee32: 43db mvns r3, r3 800ee34: 401a ands r2, r3 800ee36: 697b ldr r3, [r7, #20] 800ee38: f8c3 2204 str.w r2, [r3, #516] @ 0x204 800ee3c: e007 b.n 800ee4e } else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ { /* Identifier list mode for the filter*/ SET_BIT(can_ip->FM1R, filternbrbitpos); 800ee3e: 697b ldr r3, [r7, #20] 800ee40: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 800ee44: 68fb ldr r3, [r7, #12] 800ee46: 431a orrs r2, r3 800ee48: 697b ldr r3, [r7, #20] 800ee4a: f8c3 2204 str.w r2, [r3, #516] @ 0x204 } /* Filter FIFO assignment */ if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0) 800ee4e: 683b ldr r3, [r7, #0] 800ee50: 691b ldr r3, [r3, #16] 800ee52: 2b00 cmp r3, #0 800ee54: d109 bne.n 800ee6a { /* FIFO 0 assignation for the filter */ CLEAR_BIT(can_ip->FFA1R, filternbrbitpos); 800ee56: 697b ldr r3, [r7, #20] 800ee58: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 800ee5c: 68fb ldr r3, [r7, #12] 800ee5e: 43db mvns r3, r3 800ee60: 401a ands r2, r3 800ee62: 697b ldr r3, [r7, #20] 800ee64: f8c3 2214 str.w r2, [r3, #532] @ 0x214 800ee68: e007 b.n 800ee7a } else { /* FIFO 1 assignation for the filter */ SET_BIT(can_ip->FFA1R, filternbrbitpos); 800ee6a: 697b ldr r3, [r7, #20] 800ee6c: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 800ee70: 68fb ldr r3, [r7, #12] 800ee72: 431a orrs r2, r3 800ee74: 697b ldr r3, [r7, #20] 800ee76: f8c3 2214 str.w r2, [r3, #532] @ 0x214 } /* Filter activation */ if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE) 800ee7a: 683b ldr r3, [r7, #0] 800ee7c: 6a1b ldr r3, [r3, #32] 800ee7e: 2b01 cmp r3, #1 800ee80: d107 bne.n 800ee92 { SET_BIT(can_ip->FA1R, filternbrbitpos); 800ee82: 697b ldr r3, [r7, #20] 800ee84: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c 800ee88: 68fb ldr r3, [r7, #12] 800ee8a: 431a orrs r2, r3 800ee8c: 697b ldr r3, [r7, #20] 800ee8e: f8c3 221c str.w r2, [r3, #540] @ 0x21c } /* Leave the initialisation mode for the filter */ CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT); 800ee92: 697b ldr r3, [r7, #20] 800ee94: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800ee98: f023 0201 bic.w r2, r3, #1 800ee9c: 697b ldr r3, [r7, #20] 800ee9e: f8c3 2200 str.w r2, [r3, #512] @ 0x200 /* Return function status */ return HAL_OK; 800eea2: 2300 movs r3, #0 800eea4: e006 b.n 800eeb4 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800eea6: 687b ldr r3, [r7, #4] 800eea8: 6a5b ldr r3, [r3, #36] @ 0x24 800eeaa: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800eeae: 687b ldr r3, [r7, #4] 800eeb0: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800eeb2: 2301 movs r3, #1 } } 800eeb4: 4618 mov r0, r3 800eeb6: 371c adds r7, #28 800eeb8: 46bd mov sp, r7 800eeba: bc80 pop {r7} 800eebc: 4770 bx lr 800eebe: bf00 nop 800eec0: 40006400 .word 0x40006400 0800eec4 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan) { 800eec4: b580 push {r7, lr} 800eec6: b084 sub sp, #16 800eec8: af00 add r7, sp, #0 800eeca: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) 800eecc: 687b ldr r3, [r7, #4] 800eece: f893 3020 ldrb.w r3, [r3, #32] 800eed2: b2db uxtb r3, r3 800eed4: 2b01 cmp r3, #1 800eed6: d12e bne.n 800ef36 { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; 800eed8: 687b ldr r3, [r7, #4] 800eeda: 2202 movs r2, #2 800eedc: f883 2020 strb.w r2, [r3, #32] /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800eee0: 687b ldr r3, [r7, #4] 800eee2: 681b ldr r3, [r3, #0] 800eee4: 681a ldr r2, [r3, #0] 800eee6: 687b ldr r3, [r7, #4] 800eee8: 681b ldr r3, [r3, #0] 800eeea: f022 0201 bic.w r2, r2, #1 800eeee: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800eef0: f7ff f89e bl 800e030 800eef4: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800eef6: e012 b.n 800ef1e { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800eef8: f7ff f89a bl 800e030 800eefc: 4602 mov r2, r0 800eefe: 68fb ldr r3, [r7, #12] 800ef00: 1ad3 subs r3, r2, r3 800ef02: 2b0a cmp r3, #10 800ef04: d90b bls.n 800ef1e { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800ef06: 687b ldr r3, [r7, #4] 800ef08: 6a5b ldr r3, [r3, #36] @ 0x24 800ef0a: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ef0e: 687b ldr r3, [r7, #4] 800ef10: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ef12: 687b ldr r3, [r7, #4] 800ef14: 2205 movs r2, #5 800ef16: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ef1a: 2301 movs r3, #1 800ef1c: e012 b.n 800ef44 while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800ef1e: 687b ldr r3, [r7, #4] 800ef20: 681b ldr r3, [r3, #0] 800ef22: 685b ldr r3, [r3, #4] 800ef24: f003 0301 and.w r3, r3, #1 800ef28: 2b00 cmp r3, #0 800ef2a: d1e5 bne.n 800eef8 } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; 800ef2c: 687b ldr r3, [r7, #4] 800ef2e: 2200 movs r2, #0 800ef30: 625a str r2, [r3, #36] @ 0x24 /* Return function status */ return HAL_OK; 800ef32: 2300 movs r3, #0 800ef34: e006 b.n 800ef44 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; 800ef36: 687b ldr r3, [r7, #4] 800ef38: 6a5b ldr r3, [r3, #36] @ 0x24 800ef3a: f443 2200 orr.w r2, r3, #524288 @ 0x80000 800ef3e: 687b ldr r3, [r7, #4] 800ef40: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ef42: 2301 movs r3, #1 } } 800ef44: 4618 mov r0, r3 800ef46: 3710 adds r7, #16 800ef48: 46bd mov sp, r7 800ef4a: bd80 pop {r7, pc} 0800ef4c : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Stop(CAN_HandleTypeDef *hcan) { 800ef4c: b580 push {r7, lr} 800ef4e: b084 sub sp, #16 800ef50: af00 add r7, sp, #0 800ef52: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_LISTENING) 800ef54: 687b ldr r3, [r7, #4] 800ef56: f893 3020 ldrb.w r3, [r3, #32] 800ef5a: b2db uxtb r3, r3 800ef5c: 2b02 cmp r3, #2 800ef5e: d133 bne.n 800efc8 { /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800ef60: 687b ldr r3, [r7, #4] 800ef62: 681b ldr r3, [r3, #0] 800ef64: 681a ldr r2, [r3, #0] 800ef66: 687b ldr r3, [r7, #4] 800ef68: 681b ldr r3, [r3, #0] 800ef6a: f042 0201 orr.w r2, r2, #1 800ef6e: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800ef70: f7ff f85e bl 800e030 800ef74: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800ef76: e012 b.n 800ef9e { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800ef78: f7ff f85a bl 800e030 800ef7c: 4602 mov r2, r0 800ef7e: 68fb ldr r3, [r7, #12] 800ef80: 1ad3 subs r3, r2, r3 800ef82: 2b0a cmp r3, #10 800ef84: d90b bls.n 800ef9e { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800ef86: 687b ldr r3, [r7, #4] 800ef88: 6a5b ldr r3, [r3, #36] @ 0x24 800ef8a: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ef8e: 687b ldr r3, [r7, #4] 800ef90: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ef92: 687b ldr r3, [r7, #4] 800ef94: 2205 movs r2, #5 800ef96: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ef9a: 2301 movs r3, #1 800ef9c: e01b b.n 800efd6 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800ef9e: 687b ldr r3, [r7, #4] 800efa0: 681b ldr r3, [r3, #0] 800efa2: 685b ldr r3, [r3, #4] 800efa4: f003 0301 and.w r3, r3, #1 800efa8: 2b00 cmp r3, #0 800efaa: d0e5 beq.n 800ef78 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 800efac: 687b ldr r3, [r7, #4] 800efae: 681b ldr r3, [r3, #0] 800efb0: 681a ldr r2, [r3, #0] 800efb2: 687b ldr r3, [r7, #4] 800efb4: 681b ldr r3, [r3, #0] 800efb6: f022 0202 bic.w r2, r2, #2 800efba: 601a str r2, [r3, #0] /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_READY; 800efbc: 687b ldr r3, [r7, #4] 800efbe: 2201 movs r2, #1 800efc0: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; 800efc4: 2300 movs r3, #0 800efc6: e006 b.n 800efd6 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_STARTED; 800efc8: 687b ldr r3, [r7, #4] 800efca: 6a5b ldr r3, [r3, #36] @ 0x24 800efcc: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 800efd0: 687b ldr r3, [r7, #4] 800efd2: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800efd4: 2301 movs r3, #1 } } 800efd6: 4618 mov r0, r3 800efd8: 3710 adds r7, #16 800efda: 46bd mov sp, r7 800efdc: bd80 pop {r7, pc} 0800efde : * This parameter can be a value of @arg CAN_Tx_Mailboxes. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, const CAN_TxHeaderTypeDef *pHeader, const uint8_t aData[], uint32_t *pTxMailbox) { 800efde: b480 push {r7} 800efe0: b089 sub sp, #36 @ 0x24 800efe2: af00 add r7, sp, #0 800efe4: 60f8 str r0, [r7, #12] 800efe6: 60b9 str r1, [r7, #8] 800efe8: 607a str r2, [r7, #4] 800efea: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; 800efec: 68fb ldr r3, [r7, #12] 800efee: f893 3020 ldrb.w r3, [r3, #32] 800eff2: 77fb strb r3, [r7, #31] uint32_t tsr = READ_REG(hcan->Instance->TSR); 800eff4: 68fb ldr r3, [r7, #12] 800eff6: 681b ldr r3, [r3, #0] 800eff8: 689b ldr r3, [r3, #8] 800effa: 61bb str r3, [r7, #24] { assert_param(IS_CAN_EXTID(pHeader->ExtId)); } assert_param(IS_FUNCTIONAL_STATE(pHeader->TransmitGlobalTime)); if ((state == HAL_CAN_STATE_READY) || 800effc: 7ffb ldrb r3, [r7, #31] 800effe: 2b01 cmp r3, #1 800f000: d003 beq.n 800f00a 800f002: 7ffb ldrb r3, [r7, #31] 800f004: 2b02 cmp r3, #2 800f006: f040 80ad bne.w 800f164 (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || 800f00a: 69bb ldr r3, [r7, #24] 800f00c: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 800f010: 2b00 cmp r3, #0 800f012: d10a bne.n 800f02a ((tsr & CAN_TSR_TME1) != 0U) || 800f014: 69bb ldr r3, [r7, #24] 800f016: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 if (((tsr & CAN_TSR_TME0) != 0U) || 800f01a: 2b00 cmp r3, #0 800f01c: d105 bne.n 800f02a ((tsr & CAN_TSR_TME2) != 0U)) 800f01e: 69bb ldr r3, [r7, #24] 800f020: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 ((tsr & CAN_TSR_TME1) != 0U) || 800f024: 2b00 cmp r3, #0 800f026: f000 8095 beq.w 800f154 { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; 800f02a: 69bb ldr r3, [r7, #24] 800f02c: 0e1b lsrs r3, r3, #24 800f02e: f003 0303 and.w r3, r3, #3 800f032: 617b str r3, [r7, #20] /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; 800f034: 2201 movs r2, #1 800f036: 697b ldr r3, [r7, #20] 800f038: 409a lsls r2, r3 800f03a: 683b ldr r3, [r7, #0] 800f03c: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) 800f03e: 68bb ldr r3, [r7, #8] 800f040: 689b ldr r3, [r3, #8] 800f042: 2b00 cmp r3, #0 800f044: d10d bne.n 800f062 { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 800f046: 68bb ldr r3, [r7, #8] 800f048: 681b ldr r3, [r3, #0] 800f04a: 055a lsls r2, r3, #21 pHeader->RTR); 800f04c: 68bb ldr r3, [r7, #8] 800f04e: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 800f050: 68f9 ldr r1, [r7, #12] 800f052: 6809 ldr r1, [r1, #0] 800f054: 431a orrs r2, r3 800f056: 697b ldr r3, [r7, #20] 800f058: 3318 adds r3, #24 800f05a: 011b lsls r3, r3, #4 800f05c: 440b add r3, r1 800f05e: 601a str r2, [r3, #0] 800f060: e00f b.n 800f082 } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f062: 68bb ldr r3, [r7, #8] 800f064: 685b ldr r3, [r3, #4] 800f066: 00da lsls r2, r3, #3 pHeader->IDE | 800f068: 68bb ldr r3, [r7, #8] 800f06a: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f06c: 431a orrs r2, r3 pHeader->RTR); 800f06e: 68bb ldr r3, [r7, #8] 800f070: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f072: 68f9 ldr r1, [r7, #12] 800f074: 6809 ldr r1, [r1, #0] pHeader->IDE | 800f076: 431a orrs r2, r3 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f078: 697b ldr r3, [r7, #20] 800f07a: 3318 adds r3, #24 800f07c: 011b lsls r3, r3, #4 800f07e: 440b add r3, r1 800f080: 601a str r2, [r3, #0] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); 800f082: 68fb ldr r3, [r7, #12] 800f084: 6819 ldr r1, [r3, #0] 800f086: 68bb ldr r3, [r7, #8] 800f088: 691a ldr r2, [r3, #16] 800f08a: 697b ldr r3, [r7, #20] 800f08c: 3318 adds r3, #24 800f08e: 011b lsls r3, r3, #4 800f090: 440b add r3, r1 800f092: 3304 adds r3, #4 800f094: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) 800f096: 68bb ldr r3, [r7, #8] 800f098: 7d1b ldrb r3, [r3, #20] 800f09a: 2b01 cmp r3, #1 800f09c: d111 bne.n 800f0c2 { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); 800f09e: 68fb ldr r3, [r7, #12] 800f0a0: 681a ldr r2, [r3, #0] 800f0a2: 697b ldr r3, [r7, #20] 800f0a4: 3318 adds r3, #24 800f0a6: 011b lsls r3, r3, #4 800f0a8: 4413 add r3, r2 800f0aa: 3304 adds r3, #4 800f0ac: 681b ldr r3, [r3, #0] 800f0ae: 68fa ldr r2, [r7, #12] 800f0b0: 6811 ldr r1, [r2, #0] 800f0b2: f443 7280 orr.w r2, r3, #256 @ 0x100 800f0b6: 697b ldr r3, [r7, #20] 800f0b8: 3318 adds r3, #24 800f0ba: 011b lsls r3, r3, #4 800f0bc: 440b add r3, r1 800f0be: 3304 adds r3, #4 800f0c0: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, 800f0c2: 687b ldr r3, [r7, #4] 800f0c4: 3307 adds r3, #7 800f0c6: 781b ldrb r3, [r3, #0] 800f0c8: 061a lsls r2, r3, #24 800f0ca: 687b ldr r3, [r7, #4] 800f0cc: 3306 adds r3, #6 800f0ce: 781b ldrb r3, [r3, #0] 800f0d0: 041b lsls r3, r3, #16 800f0d2: 431a orrs r2, r3 800f0d4: 687b ldr r3, [r7, #4] 800f0d6: 3305 adds r3, #5 800f0d8: 781b ldrb r3, [r3, #0] 800f0da: 021b lsls r3, r3, #8 800f0dc: 4313 orrs r3, r2 800f0de: 687a ldr r2, [r7, #4] 800f0e0: 3204 adds r2, #4 800f0e2: 7812 ldrb r2, [r2, #0] 800f0e4: 4610 mov r0, r2 800f0e6: 68fa ldr r2, [r7, #12] 800f0e8: 6811 ldr r1, [r2, #0] 800f0ea: ea43 0200 orr.w r2, r3, r0 800f0ee: 697b ldr r3, [r7, #20] 800f0f0: 011b lsls r3, r3, #4 800f0f2: 440b add r3, r1 800f0f4: f503 73c6 add.w r3, r3, #396 @ 0x18c 800f0f8: 601a str r2, [r3, #0] ((uint32_t)aData[7] << CAN_TDH0R_DATA7_Pos) | ((uint32_t)aData[6] << CAN_TDH0R_DATA6_Pos) | ((uint32_t)aData[5] << CAN_TDH0R_DATA5_Pos) | ((uint32_t)aData[4] << CAN_TDH0R_DATA4_Pos)); WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDLR, 800f0fa: 687b ldr r3, [r7, #4] 800f0fc: 3303 adds r3, #3 800f0fe: 781b ldrb r3, [r3, #0] 800f100: 061a lsls r2, r3, #24 800f102: 687b ldr r3, [r7, #4] 800f104: 3302 adds r3, #2 800f106: 781b ldrb r3, [r3, #0] 800f108: 041b lsls r3, r3, #16 800f10a: 431a orrs r2, r3 800f10c: 687b ldr r3, [r7, #4] 800f10e: 3301 adds r3, #1 800f110: 781b ldrb r3, [r3, #0] 800f112: 021b lsls r3, r3, #8 800f114: 4313 orrs r3, r2 800f116: 687a ldr r2, [r7, #4] 800f118: 7812 ldrb r2, [r2, #0] 800f11a: 4610 mov r0, r2 800f11c: 68fa ldr r2, [r7, #12] 800f11e: 6811 ldr r1, [r2, #0] 800f120: ea43 0200 orr.w r2, r3, r0 800f124: 697b ldr r3, [r7, #20] 800f126: 011b lsls r3, r3, #4 800f128: 440b add r3, r1 800f12a: f503 73c4 add.w r3, r3, #392 @ 0x188 800f12e: 601a str r2, [r3, #0] ((uint32_t)aData[2] << CAN_TDL0R_DATA2_Pos) | ((uint32_t)aData[1] << CAN_TDL0R_DATA1_Pos) | ((uint32_t)aData[0] << CAN_TDL0R_DATA0_Pos)); /* Request transmission */ SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ); 800f130: 68fb ldr r3, [r7, #12] 800f132: 681a ldr r2, [r3, #0] 800f134: 697b ldr r3, [r7, #20] 800f136: 3318 adds r3, #24 800f138: 011b lsls r3, r3, #4 800f13a: 4413 add r3, r2 800f13c: 681b ldr r3, [r3, #0] 800f13e: 68fa ldr r2, [r7, #12] 800f140: 6811 ldr r1, [r2, #0] 800f142: f043 0201 orr.w r2, r3, #1 800f146: 697b ldr r3, [r7, #20] 800f148: 3318 adds r3, #24 800f14a: 011b lsls r3, r3, #4 800f14c: 440b add r3, r1 800f14e: 601a str r2, [r3, #0] /* Return function status */ return HAL_OK; 800f150: 2300 movs r3, #0 800f152: e00e b.n 800f172 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800f154: 68fb ldr r3, [r7, #12] 800f156: 6a5b ldr r3, [r3, #36] @ 0x24 800f158: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800f15c: 68fb ldr r3, [r7, #12] 800f15e: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f160: 2301 movs r3, #1 800f162: e006 b.n 800f172 } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f164: 68fb ldr r3, [r7, #12] 800f166: 6a5b ldr r3, [r3, #36] @ 0x24 800f168: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f16c: 68fb ldr r3, [r7, #12] 800f16e: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f170: 2301 movs r3, #1 } } 800f172: 4618 mov r0, r3 800f174: 3724 adds r7, #36 @ 0x24 800f176: 46bd mov sp, r7 800f178: bc80 pop {r7} 800f17a: 4770 bx lr 0800f17c : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval Number of free Tx Mailboxes. */ uint32_t HAL_CAN_GetTxMailboxesFreeLevel(const CAN_HandleTypeDef *hcan) { 800f17c: b480 push {r7} 800f17e: b085 sub sp, #20 800f180: af00 add r7, sp, #0 800f182: 6078 str r0, [r7, #4] uint32_t freelevel = 0U; 800f184: 2300 movs r3, #0 800f186: 60fb str r3, [r7, #12] HAL_CAN_StateTypeDef state = hcan->State; 800f188: 687b ldr r3, [r7, #4] 800f18a: f893 3020 ldrb.w r3, [r3, #32] 800f18e: 72fb strb r3, [r7, #11] if ((state == HAL_CAN_STATE_READY) || 800f190: 7afb ldrb r3, [r7, #11] 800f192: 2b01 cmp r3, #1 800f194: d002 beq.n 800f19c 800f196: 7afb ldrb r3, [r7, #11] 800f198: 2b02 cmp r3, #2 800f19a: d11d bne.n 800f1d8 (state == HAL_CAN_STATE_LISTENING)) { /* Check Tx Mailbox 0 status */ if ((hcan->Instance->TSR & CAN_TSR_TME0) != 0U) 800f19c: 687b ldr r3, [r7, #4] 800f19e: 681b ldr r3, [r3, #0] 800f1a0: 689b ldr r3, [r3, #8] 800f1a2: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 800f1a6: 2b00 cmp r3, #0 800f1a8: d002 beq.n 800f1b0 { freelevel++; 800f1aa: 68fb ldr r3, [r7, #12] 800f1ac: 3301 adds r3, #1 800f1ae: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 1 status */ if ((hcan->Instance->TSR & CAN_TSR_TME1) != 0U) 800f1b0: 687b ldr r3, [r7, #4] 800f1b2: 681b ldr r3, [r3, #0] 800f1b4: 689b ldr r3, [r3, #8] 800f1b6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 800f1ba: 2b00 cmp r3, #0 800f1bc: d002 beq.n 800f1c4 { freelevel++; 800f1be: 68fb ldr r3, [r7, #12] 800f1c0: 3301 adds r3, #1 800f1c2: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 2 status */ if ((hcan->Instance->TSR & CAN_TSR_TME2) != 0U) 800f1c4: 687b ldr r3, [r7, #4] 800f1c6: 681b ldr r3, [r3, #0] 800f1c8: 689b ldr r3, [r3, #8] 800f1ca: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 800f1ce: 2b00 cmp r3, #0 800f1d0: d002 beq.n 800f1d8 { freelevel++; 800f1d2: 68fb ldr r3, [r7, #12] 800f1d4: 3301 adds r3, #1 800f1d6: 60fb str r3, [r7, #12] } } /* Return Tx Mailboxes free level */ return freelevel; 800f1d8: 68fb ldr r3, [r7, #12] } 800f1da: 4618 mov r0, r3 800f1dc: 3714 adds r7, #20 800f1de: 46bd mov sp, r7 800f1e0: bc80 pop {r7} 800f1e2: 4770 bx lr 0800f1e4 : * @param aData array where the payload of the Rx frame will be stored. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo, CAN_RxHeaderTypeDef *pHeader, uint8_t aData[]) { 800f1e4: b480 push {r7} 800f1e6: b087 sub sp, #28 800f1e8: af00 add r7, sp, #0 800f1ea: 60f8 str r0, [r7, #12] 800f1ec: 60b9 str r1, [r7, #8] 800f1ee: 607a str r2, [r7, #4] 800f1f0: 603b str r3, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; 800f1f2: 68fb ldr r3, [r7, #12] 800f1f4: f893 3020 ldrb.w r3, [r3, #32] 800f1f8: 75fb strb r3, [r7, #23] assert_param(IS_CAN_RX_FIFO(RxFifo)); if ((state == HAL_CAN_STATE_READY) || 800f1fa: 7dfb ldrb r3, [r7, #23] 800f1fc: 2b01 cmp r3, #1 800f1fe: d003 beq.n 800f208 800f200: 7dfb ldrb r3, [r7, #23] 800f202: 2b02 cmp r3, #2 800f204: f040 8103 bne.w 800f40e (state == HAL_CAN_STATE_LISTENING)) { /* Check the Rx FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ 800f208: 68bb ldr r3, [r7, #8] 800f20a: 2b00 cmp r3, #0 800f20c: d10e bne.n 800f22c { /* Check that the Rx FIFO 0 is not empty */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) 800f20e: 68fb ldr r3, [r7, #12] 800f210: 681b ldr r3, [r3, #0] 800f212: 68db ldr r3, [r3, #12] 800f214: f003 0303 and.w r3, r3, #3 800f218: 2b00 cmp r3, #0 800f21a: d116 bne.n 800f24a { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800f21c: 68fb ldr r3, [r7, #12] 800f21e: 6a5b ldr r3, [r3, #36] @ 0x24 800f220: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800f224: 68fb ldr r3, [r7, #12] 800f226: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f228: 2301 movs r3, #1 800f22a: e0f7 b.n 800f41c } } else /* Rx element is assigned to Rx FIFO 1 */ { /* Check that the Rx FIFO 1 is not empty */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) == 0U) 800f22c: 68fb ldr r3, [r7, #12] 800f22e: 681b ldr r3, [r3, #0] 800f230: 691b ldr r3, [r3, #16] 800f232: f003 0303 and.w r3, r3, #3 800f236: 2b00 cmp r3, #0 800f238: d107 bne.n 800f24a { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800f23a: 68fb ldr r3, [r7, #12] 800f23c: 6a5b ldr r3, [r3, #36] @ 0x24 800f23e: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800f242: 68fb ldr r3, [r7, #12] 800f244: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f246: 2301 movs r3, #1 800f248: e0e8 b.n 800f41c } } /* Get the header */ pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; 800f24a: 68fb ldr r3, [r7, #12] 800f24c: 681a ldr r2, [r3, #0] 800f24e: 68bb ldr r3, [r7, #8] 800f250: 331b adds r3, #27 800f252: 011b lsls r3, r3, #4 800f254: 4413 add r3, r2 800f256: 681b ldr r3, [r3, #0] 800f258: f003 0204 and.w r2, r3, #4 800f25c: 687b ldr r3, [r7, #4] 800f25e: 609a str r2, [r3, #8] if (pHeader->IDE == CAN_ID_STD) 800f260: 687b ldr r3, [r7, #4] 800f262: 689b ldr r3, [r3, #8] 800f264: 2b00 cmp r3, #0 800f266: d10c bne.n 800f282 { pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; 800f268: 68fb ldr r3, [r7, #12] 800f26a: 681a ldr r2, [r3, #0] 800f26c: 68bb ldr r3, [r7, #8] 800f26e: 331b adds r3, #27 800f270: 011b lsls r3, r3, #4 800f272: 4413 add r3, r2 800f274: 681b ldr r3, [r3, #0] 800f276: 0d5b lsrs r3, r3, #21 800f278: f3c3 020a ubfx r2, r3, #0, #11 800f27c: 687b ldr r3, [r7, #4] 800f27e: 601a str r2, [r3, #0] 800f280: e00b b.n 800f29a } else { pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; 800f282: 68fb ldr r3, [r7, #12] 800f284: 681a ldr r2, [r3, #0] 800f286: 68bb ldr r3, [r7, #8] 800f288: 331b adds r3, #27 800f28a: 011b lsls r3, r3, #4 800f28c: 4413 add r3, r2 800f28e: 681b ldr r3, [r3, #0] 800f290: 08db lsrs r3, r3, #3 800f292: f023 4260 bic.w r2, r3, #3758096384 @ 0xe0000000 pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & 800f296: 687b ldr r3, [r7, #4] 800f298: 605a str r2, [r3, #4] } pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); 800f29a: 68fb ldr r3, [r7, #12] 800f29c: 681a ldr r2, [r3, #0] 800f29e: 68bb ldr r3, [r7, #8] 800f2a0: 331b adds r3, #27 800f2a2: 011b lsls r3, r3, #4 800f2a4: 4413 add r3, r2 800f2a6: 681b ldr r3, [r3, #0] 800f2a8: f003 0202 and.w r2, r3, #2 800f2ac: 687b ldr r3, [r7, #4] 800f2ae: 60da str r2, [r3, #12] if (((CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos) >= 8U) 800f2b0: 68fb ldr r3, [r7, #12] 800f2b2: 681a ldr r2, [r3, #0] 800f2b4: 68bb ldr r3, [r7, #8] 800f2b6: 331b adds r3, #27 800f2b8: 011b lsls r3, r3, #4 800f2ba: 4413 add r3, r2 800f2bc: 3304 adds r3, #4 800f2be: 681b ldr r3, [r3, #0] 800f2c0: f003 0308 and.w r3, r3, #8 800f2c4: 2b00 cmp r3, #0 800f2c6: d003 beq.n 800f2d0 { /* Truncate DLC to 8 if received field is over range */ pHeader->DLC = 8U; 800f2c8: 687b ldr r3, [r7, #4] 800f2ca: 2208 movs r2, #8 800f2cc: 611a str r2, [r3, #16] 800f2ce: e00b b.n 800f2e8 } else { pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; 800f2d0: 68fb ldr r3, [r7, #12] 800f2d2: 681a ldr r2, [r3, #0] 800f2d4: 68bb ldr r3, [r7, #8] 800f2d6: 331b adds r3, #27 800f2d8: 011b lsls r3, r3, #4 800f2da: 4413 add r3, r2 800f2dc: 3304 adds r3, #4 800f2de: 681b ldr r3, [r3, #0] 800f2e0: f003 020f and.w r2, r3, #15 800f2e4: 687b ldr r3, [r7, #4] 800f2e6: 611a str r2, [r3, #16] } pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; 800f2e8: 68fb ldr r3, [r7, #12] 800f2ea: 681a ldr r2, [r3, #0] 800f2ec: 68bb ldr r3, [r7, #8] 800f2ee: 331b adds r3, #27 800f2f0: 011b lsls r3, r3, #4 800f2f2: 4413 add r3, r2 800f2f4: 3304 adds r3, #4 800f2f6: 681b ldr r3, [r3, #0] 800f2f8: 0a1b lsrs r3, r3, #8 800f2fa: b2da uxtb r2, r3 800f2fc: 687b ldr r3, [r7, #4] 800f2fe: 619a str r2, [r3, #24] pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; 800f300: 68fb ldr r3, [r7, #12] 800f302: 681a ldr r2, [r3, #0] 800f304: 68bb ldr r3, [r7, #8] 800f306: 331b adds r3, #27 800f308: 011b lsls r3, r3, #4 800f30a: 4413 add r3, r2 800f30c: 3304 adds r3, #4 800f30e: 681b ldr r3, [r3, #0] 800f310: 0c1b lsrs r3, r3, #16 800f312: b29a uxth r2, r3 800f314: 687b ldr r3, [r7, #4] 800f316: 615a str r2, [r3, #20] /* Get the data */ aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); 800f318: 68fb ldr r3, [r7, #12] 800f31a: 681a ldr r2, [r3, #0] 800f31c: 68bb ldr r3, [r7, #8] 800f31e: 011b lsls r3, r3, #4 800f320: 4413 add r3, r2 800f322: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f326: 681b ldr r3, [r3, #0] 800f328: b2da uxtb r2, r3 800f32a: 683b ldr r3, [r7, #0] 800f32c: 701a strb r2, [r3, #0] aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); 800f32e: 68fb ldr r3, [r7, #12] 800f330: 681a ldr r2, [r3, #0] 800f332: 68bb ldr r3, [r7, #8] 800f334: 011b lsls r3, r3, #4 800f336: 4413 add r3, r2 800f338: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f33c: 681b ldr r3, [r3, #0] 800f33e: 0a1a lsrs r2, r3, #8 800f340: 683b ldr r3, [r7, #0] 800f342: 3301 adds r3, #1 800f344: b2d2 uxtb r2, r2 800f346: 701a strb r2, [r3, #0] aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); 800f348: 68fb ldr r3, [r7, #12] 800f34a: 681a ldr r2, [r3, #0] 800f34c: 68bb ldr r3, [r7, #8] 800f34e: 011b lsls r3, r3, #4 800f350: 4413 add r3, r2 800f352: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f356: 681b ldr r3, [r3, #0] 800f358: 0c1a lsrs r2, r3, #16 800f35a: 683b ldr r3, [r7, #0] 800f35c: 3302 adds r3, #2 800f35e: b2d2 uxtb r2, r2 800f360: 701a strb r2, [r3, #0] aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); 800f362: 68fb ldr r3, [r7, #12] 800f364: 681a ldr r2, [r3, #0] 800f366: 68bb ldr r3, [r7, #8] 800f368: 011b lsls r3, r3, #4 800f36a: 4413 add r3, r2 800f36c: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f370: 681b ldr r3, [r3, #0] 800f372: 0e1a lsrs r2, r3, #24 800f374: 683b ldr r3, [r7, #0] 800f376: 3303 adds r3, #3 800f378: b2d2 uxtb r2, r2 800f37a: 701a strb r2, [r3, #0] aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); 800f37c: 68fb ldr r3, [r7, #12] 800f37e: 681a ldr r2, [r3, #0] 800f380: 68bb ldr r3, [r7, #8] 800f382: 011b lsls r3, r3, #4 800f384: 4413 add r3, r2 800f386: f503 73de add.w r3, r3, #444 @ 0x1bc 800f38a: 681a ldr r2, [r3, #0] 800f38c: 683b ldr r3, [r7, #0] 800f38e: 3304 adds r3, #4 800f390: b2d2 uxtb r2, r2 800f392: 701a strb r2, [r3, #0] aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); 800f394: 68fb ldr r3, [r7, #12] 800f396: 681a ldr r2, [r3, #0] 800f398: 68bb ldr r3, [r7, #8] 800f39a: 011b lsls r3, r3, #4 800f39c: 4413 add r3, r2 800f39e: f503 73de add.w r3, r3, #444 @ 0x1bc 800f3a2: 681b ldr r3, [r3, #0] 800f3a4: 0a1a lsrs r2, r3, #8 800f3a6: 683b ldr r3, [r7, #0] 800f3a8: 3305 adds r3, #5 800f3aa: b2d2 uxtb r2, r2 800f3ac: 701a strb r2, [r3, #0] aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); 800f3ae: 68fb ldr r3, [r7, #12] 800f3b0: 681a ldr r2, [r3, #0] 800f3b2: 68bb ldr r3, [r7, #8] 800f3b4: 011b lsls r3, r3, #4 800f3b6: 4413 add r3, r2 800f3b8: f503 73de add.w r3, r3, #444 @ 0x1bc 800f3bc: 681b ldr r3, [r3, #0] 800f3be: 0c1a lsrs r2, r3, #16 800f3c0: 683b ldr r3, [r7, #0] 800f3c2: 3306 adds r3, #6 800f3c4: b2d2 uxtb r2, r2 800f3c6: 701a strb r2, [r3, #0] aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); 800f3c8: 68fb ldr r3, [r7, #12] 800f3ca: 681a ldr r2, [r3, #0] 800f3cc: 68bb ldr r3, [r7, #8] 800f3ce: 011b lsls r3, r3, #4 800f3d0: 4413 add r3, r2 800f3d2: f503 73de add.w r3, r3, #444 @ 0x1bc 800f3d6: 681b ldr r3, [r3, #0] 800f3d8: 0e1a lsrs r2, r3, #24 800f3da: 683b ldr r3, [r7, #0] 800f3dc: 3307 adds r3, #7 800f3de: b2d2 uxtb r2, r2 800f3e0: 701a strb r2, [r3, #0] /* Release the FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ 800f3e2: 68bb ldr r3, [r7, #8] 800f3e4: 2b00 cmp r3, #0 800f3e6: d108 bne.n 800f3fa { /* Release RX FIFO 0 */ SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); 800f3e8: 68fb ldr r3, [r7, #12] 800f3ea: 681b ldr r3, [r3, #0] 800f3ec: 68da ldr r2, [r3, #12] 800f3ee: 68fb ldr r3, [r7, #12] 800f3f0: 681b ldr r3, [r3, #0] 800f3f2: f042 0220 orr.w r2, r2, #32 800f3f6: 60da str r2, [r3, #12] 800f3f8: e007 b.n 800f40a } else /* Rx element is assigned to Rx FIFO 1 */ { /* Release RX FIFO 1 */ SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); 800f3fa: 68fb ldr r3, [r7, #12] 800f3fc: 681b ldr r3, [r3, #0] 800f3fe: 691a ldr r2, [r3, #16] 800f400: 68fb ldr r3, [r7, #12] 800f402: 681b ldr r3, [r3, #0] 800f404: f042 0220 orr.w r2, r2, #32 800f408: 611a str r2, [r3, #16] } /* Return function status */ return HAL_OK; 800f40a: 2300 movs r3, #0 800f40c: e006 b.n 800f41c } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f40e: 68fb ldr r3, [r7, #12] 800f410: 6a5b ldr r3, [r3, #36] @ 0x24 800f412: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f416: 68fb ldr r3, [r7, #12] 800f418: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f41a: 2301 movs r3, #1 } } 800f41c: 4618 mov r0, r3 800f41e: 371c adds r7, #28 800f420: 46bd mov sp, r7 800f422: bc80 pop {r7} 800f424: 4770 bx lr 0800f426 : * @param ActiveITs indicates which interrupts will be enabled. * This parameter can be any combination of @arg CAN_Interrupts. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_ActivateNotification(CAN_HandleTypeDef *hcan, uint32_t ActiveITs) { 800f426: b480 push {r7} 800f428: b085 sub sp, #20 800f42a: af00 add r7, sp, #0 800f42c: 6078 str r0, [r7, #4] 800f42e: 6039 str r1, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; 800f430: 687b ldr r3, [r7, #4] 800f432: f893 3020 ldrb.w r3, [r3, #32] 800f436: 73fb strb r3, [r7, #15] /* Check function parameters */ assert_param(IS_CAN_IT(ActiveITs)); if ((state == HAL_CAN_STATE_READY) || 800f438: 7bfb ldrb r3, [r7, #15] 800f43a: 2b01 cmp r3, #1 800f43c: d002 beq.n 800f444 800f43e: 7bfb ldrb r3, [r7, #15] 800f440: 2b02 cmp r3, #2 800f442: d109 bne.n 800f458 (state == HAL_CAN_STATE_LISTENING)) { /* Enable the selected interrupts */ __HAL_CAN_ENABLE_IT(hcan, ActiveITs); 800f444: 687b ldr r3, [r7, #4] 800f446: 681b ldr r3, [r3, #0] 800f448: 6959 ldr r1, [r3, #20] 800f44a: 687b ldr r3, [r7, #4] 800f44c: 681b ldr r3, [r3, #0] 800f44e: 683a ldr r2, [r7, #0] 800f450: 430a orrs r2, r1 800f452: 615a str r2, [r3, #20] /* Return function status */ return HAL_OK; 800f454: 2300 movs r3, #0 800f456: e006 b.n 800f466 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f458: 687b ldr r3, [r7, #4] 800f45a: 6a5b ldr r3, [r3, #36] @ 0x24 800f45c: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f460: 687b ldr r3, [r7, #4] 800f462: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f464: 2301 movs r3, #1 } } 800f466: 4618 mov r0, r3 800f468: 3714 adds r7, #20 800f46a: 46bd mov sp, r7 800f46c: bc80 pop {r7} 800f46e: 4770 bx lr 0800f470 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ void HAL_CAN_IRQHandler(CAN_HandleTypeDef *hcan) { 800f470: b580 push {r7, lr} 800f472: b08a sub sp, #40 @ 0x28 800f474: af00 add r7, sp, #0 800f476: 6078 str r0, [r7, #4] uint32_t errorcode = HAL_CAN_ERROR_NONE; 800f478: 2300 movs r3, #0 800f47a: 627b str r3, [r7, #36] @ 0x24 uint32_t interrupts = READ_REG(hcan->Instance->IER); 800f47c: 687b ldr r3, [r7, #4] 800f47e: 681b ldr r3, [r3, #0] 800f480: 695b ldr r3, [r3, #20] 800f482: 623b str r3, [r7, #32] uint32_t msrflags = READ_REG(hcan->Instance->MSR); 800f484: 687b ldr r3, [r7, #4] 800f486: 681b ldr r3, [r3, #0] 800f488: 685b ldr r3, [r3, #4] 800f48a: 61fb str r3, [r7, #28] uint32_t tsrflags = READ_REG(hcan->Instance->TSR); 800f48c: 687b ldr r3, [r7, #4] 800f48e: 681b ldr r3, [r3, #0] 800f490: 689b ldr r3, [r3, #8] 800f492: 61bb str r3, [r7, #24] uint32_t rf0rflags = READ_REG(hcan->Instance->RF0R); 800f494: 687b ldr r3, [r7, #4] 800f496: 681b ldr r3, [r3, #0] 800f498: 68db ldr r3, [r3, #12] 800f49a: 617b str r3, [r7, #20] uint32_t rf1rflags = READ_REG(hcan->Instance->RF1R); 800f49c: 687b ldr r3, [r7, #4] 800f49e: 681b ldr r3, [r3, #0] 800f4a0: 691b ldr r3, [r3, #16] 800f4a2: 613b str r3, [r7, #16] uint32_t esrflags = READ_REG(hcan->Instance->ESR); 800f4a4: 687b ldr r3, [r7, #4] 800f4a6: 681b ldr r3, [r3, #0] 800f4a8: 699b ldr r3, [r3, #24] 800f4aa: 60fb str r3, [r7, #12] /* Transmit Mailbox empty interrupt management *****************************/ if ((interrupts & CAN_IT_TX_MAILBOX_EMPTY) != 0U) 800f4ac: 6a3b ldr r3, [r7, #32] 800f4ae: f003 0301 and.w r3, r3, #1 800f4b2: 2b00 cmp r3, #0 800f4b4: d07c beq.n 800f5b0 { /* Transmit Mailbox 0 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP0) != 0U) 800f4b6: 69bb ldr r3, [r7, #24] 800f4b8: f003 0301 and.w r3, r3, #1 800f4bc: 2b00 cmp r3, #0 800f4be: d023 beq.n 800f508 { /* Clear the Transmission Complete flag (and TXOK0,ALST0,TERR0 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP0); 800f4c0: 687b ldr r3, [r7, #4] 800f4c2: 681b ldr r3, [r3, #0] 800f4c4: 2201 movs r2, #1 800f4c6: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK0) != 0U) 800f4c8: 69bb ldr r3, [r7, #24] 800f4ca: f003 0302 and.w r3, r3, #2 800f4ce: 2b00 cmp r3, #0 800f4d0: d003 beq.n 800f4da #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0CompleteCallback(hcan); 800f4d2: 6878 ldr r0, [r7, #4] 800f4d4: f000 f983 bl 800f7de 800f4d8: e016 b.n 800f508 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST0) != 0U) 800f4da: 69bb ldr r3, [r7, #24] 800f4dc: f003 0304 and.w r3, r3, #4 800f4e0: 2b00 cmp r3, #0 800f4e2: d004 beq.n 800f4ee { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST0; 800f4e4: 6a7b ldr r3, [r7, #36] @ 0x24 800f4e6: f443 6300 orr.w r3, r3, #2048 @ 0x800 800f4ea: 627b str r3, [r7, #36] @ 0x24 800f4ec: e00c b.n 800f508 } else if ((tsrflags & CAN_TSR_TERR0) != 0U) 800f4ee: 69bb ldr r3, [r7, #24] 800f4f0: f003 0308 and.w r3, r3, #8 800f4f4: 2b00 cmp r3, #0 800f4f6: d004 beq.n 800f502 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR0; 800f4f8: 6a7b ldr r3, [r7, #36] @ 0x24 800f4fa: f443 5380 orr.w r3, r3, #4096 @ 0x1000 800f4fe: 627b str r3, [r7, #36] @ 0x24 800f500: e002 b.n 800f508 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0AbortCallback(hcan); 800f502: 6878 ldr r0, [r7, #4] 800f504: f000 f986 bl 800f814 } } } /* Transmit Mailbox 1 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP1) != 0U) 800f508: 69bb ldr r3, [r7, #24] 800f50a: f403 7380 and.w r3, r3, #256 @ 0x100 800f50e: 2b00 cmp r3, #0 800f510: d024 beq.n 800f55c { /* Clear the Transmission Complete flag (and TXOK1,ALST1,TERR1 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP1); 800f512: 687b ldr r3, [r7, #4] 800f514: 681b ldr r3, [r3, #0] 800f516: f44f 7280 mov.w r2, #256 @ 0x100 800f51a: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK1) != 0U) 800f51c: 69bb ldr r3, [r7, #24] 800f51e: f403 7300 and.w r3, r3, #512 @ 0x200 800f522: 2b00 cmp r3, #0 800f524: d003 beq.n 800f52e #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1CompleteCallback(hcan); 800f526: 6878 ldr r0, [r7, #4] 800f528: f000 f962 bl 800f7f0 800f52c: e016 b.n 800f55c #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST1) != 0U) 800f52e: 69bb ldr r3, [r7, #24] 800f530: f403 6380 and.w r3, r3, #1024 @ 0x400 800f534: 2b00 cmp r3, #0 800f536: d004 beq.n 800f542 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST1; 800f538: 6a7b ldr r3, [r7, #36] @ 0x24 800f53a: f443 5300 orr.w r3, r3, #8192 @ 0x2000 800f53e: 627b str r3, [r7, #36] @ 0x24 800f540: e00c b.n 800f55c } else if ((tsrflags & CAN_TSR_TERR1) != 0U) 800f542: 69bb ldr r3, [r7, #24] 800f544: f403 6300 and.w r3, r3, #2048 @ 0x800 800f548: 2b00 cmp r3, #0 800f54a: d004 beq.n 800f556 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR1; 800f54c: 6a7b ldr r3, [r7, #36] @ 0x24 800f54e: f443 4380 orr.w r3, r3, #16384 @ 0x4000 800f552: 627b str r3, [r7, #36] @ 0x24 800f554: e002 b.n 800f55c #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1AbortCallback(hcan); 800f556: 6878 ldr r0, [r7, #4] 800f558: f000 f965 bl 800f826 } } } /* Transmit Mailbox 2 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP2) != 0U) 800f55c: 69bb ldr r3, [r7, #24] 800f55e: f403 3380 and.w r3, r3, #65536 @ 0x10000 800f562: 2b00 cmp r3, #0 800f564: d024 beq.n 800f5b0 { /* Clear the Transmission Complete flag (and TXOK2,ALST2,TERR2 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP2); 800f566: 687b ldr r3, [r7, #4] 800f568: 681b ldr r3, [r3, #0] 800f56a: f44f 3280 mov.w r2, #65536 @ 0x10000 800f56e: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK2) != 0U) 800f570: 69bb ldr r3, [r7, #24] 800f572: f403 3300 and.w r3, r3, #131072 @ 0x20000 800f576: 2b00 cmp r3, #0 800f578: d003 beq.n 800f582 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2CompleteCallback(hcan); 800f57a: 6878 ldr r0, [r7, #4] 800f57c: f000 f941 bl 800f802 800f580: e016 b.n 800f5b0 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST2) != 0U) 800f582: 69bb ldr r3, [r7, #24] 800f584: f403 2380 and.w r3, r3, #262144 @ 0x40000 800f588: 2b00 cmp r3, #0 800f58a: d004 beq.n 800f596 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST2; 800f58c: 6a7b ldr r3, [r7, #36] @ 0x24 800f58e: f443 4300 orr.w r3, r3, #32768 @ 0x8000 800f592: 627b str r3, [r7, #36] @ 0x24 800f594: e00c b.n 800f5b0 } else if ((tsrflags & CAN_TSR_TERR2) != 0U) 800f596: 69bb ldr r3, [r7, #24] 800f598: f403 2300 and.w r3, r3, #524288 @ 0x80000 800f59c: 2b00 cmp r3, #0 800f59e: d004 beq.n 800f5aa { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR2; 800f5a0: 6a7b ldr r3, [r7, #36] @ 0x24 800f5a2: f443 3380 orr.w r3, r3, #65536 @ 0x10000 800f5a6: 627b str r3, [r7, #36] @ 0x24 800f5a8: e002 b.n 800f5b0 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2AbortCallback(hcan); 800f5aa: 6878 ldr r0, [r7, #4] 800f5ac: f000 f944 bl 800f838 } } } /* Receive FIFO 0 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO0_OVERRUN) != 0U) 800f5b0: 6a3b ldr r3, [r7, #32] 800f5b2: f003 0308 and.w r3, r3, #8 800f5b6: 2b00 cmp r3, #0 800f5b8: d00c beq.n 800f5d4 { if ((rf0rflags & CAN_RF0R_FOVR0) != 0U) 800f5ba: 697b ldr r3, [r7, #20] 800f5bc: f003 0310 and.w r3, r3, #16 800f5c0: 2b00 cmp r3, #0 800f5c2: d007 beq.n 800f5d4 { /* Set CAN error code to Rx Fifo 0 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV0; 800f5c4: 6a7b ldr r3, [r7, #36] @ 0x24 800f5c6: f443 7300 orr.w r3, r3, #512 @ 0x200 800f5ca: 627b str r3, [r7, #36] @ 0x24 /* Clear FIFO0 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV0); 800f5cc: 687b ldr r3, [r7, #4] 800f5ce: 681b ldr r3, [r3, #0] 800f5d0: 2210 movs r2, #16 800f5d2: 60da str r2, [r3, #12] } } /* Receive FIFO 0 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U) 800f5d4: 6a3b ldr r3, [r7, #32] 800f5d6: f003 0304 and.w r3, r3, #4 800f5da: 2b00 cmp r3, #0 800f5dc: d00b beq.n 800f5f6 { if ((rf0rflags & CAN_RF0R_FULL0) != 0U) 800f5de: 697b ldr r3, [r7, #20] 800f5e0: f003 0308 and.w r3, r3, #8 800f5e4: 2b00 cmp r3, #0 800f5e6: d006 beq.n 800f5f6 { /* Clear FIFO 0 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF0); 800f5e8: 687b ldr r3, [r7, #4] 800f5ea: 681b ldr r3, [r3, #0] 800f5ec: 2208 movs r2, #8 800f5ee: 60da str r2, [r3, #12] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0FullCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0FullCallback(hcan); 800f5f0: 6878 ldr r0, [r7, #4] 800f5f2: f000 f933 bl 800f85c #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 0 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U) 800f5f6: 6a3b ldr r3, [r7, #32] 800f5f8: f003 0302 and.w r3, r3, #2 800f5fc: 2b00 cmp r3, #0 800f5fe: d009 beq.n 800f614 { /* Check if message is still pending */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U) 800f600: 687b ldr r3, [r7, #4] 800f602: 681b ldr r3, [r3, #0] 800f604: 68db ldr r3, [r3, #12] 800f606: f003 0303 and.w r3, r3, #3 800f60a: 2b00 cmp r3, #0 800f60c: d002 beq.n 800f614 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0MsgPendingCallback(hcan); 800f60e: 6878 ldr r0, [r7, #4] 800f610: f000 f91b bl 800f84a #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO1_OVERRUN) != 0U) 800f614: 6a3b ldr r3, [r7, #32] 800f616: f003 0340 and.w r3, r3, #64 @ 0x40 800f61a: 2b00 cmp r3, #0 800f61c: d00c beq.n 800f638 { if ((rf1rflags & CAN_RF1R_FOVR1) != 0U) 800f61e: 693b ldr r3, [r7, #16] 800f620: f003 0310 and.w r3, r3, #16 800f624: 2b00 cmp r3, #0 800f626: d007 beq.n 800f638 { /* Set CAN error code to Rx Fifo 1 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV1; 800f628: 6a7b ldr r3, [r7, #36] @ 0x24 800f62a: f443 6380 orr.w r3, r3, #1024 @ 0x400 800f62e: 627b str r3, [r7, #36] @ 0x24 /* Clear FIFO1 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV1); 800f630: 687b ldr r3, [r7, #4] 800f632: 681b ldr r3, [r3, #0] 800f634: 2210 movs r2, #16 800f636: 611a str r2, [r3, #16] } } /* Receive FIFO 1 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO1_FULL) != 0U) 800f638: 6a3b ldr r3, [r7, #32] 800f63a: f003 0320 and.w r3, r3, #32 800f63e: 2b00 cmp r3, #0 800f640: d00b beq.n 800f65a { if ((rf1rflags & CAN_RF1R_FULL1) != 0U) 800f642: 693b ldr r3, [r7, #16] 800f644: f003 0308 and.w r3, r3, #8 800f648: 2b00 cmp r3, #0 800f64a: d006 beq.n 800f65a { /* Clear FIFO 1 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF1); 800f64c: 687b ldr r3, [r7, #4] 800f64e: 681b ldr r3, [r3, #0] 800f650: 2208 movs r2, #8 800f652: 611a str r2, [r3, #16] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1FullCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1FullCallback(hcan); 800f654: 6878 ldr r0, [r7, #4] 800f656: f000 f90a bl 800f86e #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO1_MSG_PENDING) != 0U) 800f65a: 6a3b ldr r3, [r7, #32] 800f65c: f003 0310 and.w r3, r3, #16 800f660: 2b00 cmp r3, #0 800f662: d009 beq.n 800f678 { /* Check if message is still pending */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) != 0U) 800f664: 687b ldr r3, [r7, #4] 800f666: 681b ldr r3, [r3, #0] 800f668: 691b ldr r3, [r3, #16] 800f66a: f003 0303 and.w r3, r3, #3 800f66e: 2b00 cmp r3, #0 800f670: d002 beq.n 800f678 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1MsgPendingCallback(hcan); 800f672: 6878 ldr r0, [r7, #4] 800f674: f7fb fb3c bl 800acf0 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Sleep interrupt management *********************************************/ if ((interrupts & CAN_IT_SLEEP_ACK) != 0U) 800f678: 6a3b ldr r3, [r7, #32] 800f67a: f403 3300 and.w r3, r3, #131072 @ 0x20000 800f67e: 2b00 cmp r3, #0 800f680: d00b beq.n 800f69a { if ((msrflags & CAN_MSR_SLAKI) != 0U) 800f682: 69fb ldr r3, [r7, #28] 800f684: f003 0310 and.w r3, r3, #16 800f688: 2b00 cmp r3, #0 800f68a: d006 beq.n 800f69a { /* Clear Sleep interrupt Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_SLAKI); 800f68c: 687b ldr r3, [r7, #4] 800f68e: 681b ldr r3, [r3, #0] 800f690: 2210 movs r2, #16 800f692: 605a str r2, [r3, #4] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->SleepCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_SleepCallback(hcan); 800f694: 6878 ldr r0, [r7, #4] 800f696: f000 f8f3 bl 800f880 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* WakeUp interrupt management *********************************************/ if ((interrupts & CAN_IT_WAKEUP) != 0U) 800f69a: 6a3b ldr r3, [r7, #32] 800f69c: f403 3380 and.w r3, r3, #65536 @ 0x10000 800f6a0: 2b00 cmp r3, #0 800f6a2: d00b beq.n 800f6bc { if ((msrflags & CAN_MSR_WKUI) != 0U) 800f6a4: 69fb ldr r3, [r7, #28] 800f6a6: f003 0308 and.w r3, r3, #8 800f6aa: 2b00 cmp r3, #0 800f6ac: d006 beq.n 800f6bc { /* Clear WakeUp Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_WKU); 800f6ae: 687b ldr r3, [r7, #4] 800f6b0: 681b ldr r3, [r3, #0] 800f6b2: 2208 movs r2, #8 800f6b4: 605a str r2, [r3, #4] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->WakeUpFromRxMsgCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_WakeUpFromRxMsgCallback(hcan); 800f6b6: 6878 ldr r0, [r7, #4] 800f6b8: f000 f8eb bl 800f892 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Error interrupts management *********************************************/ if ((interrupts & CAN_IT_ERROR) != 0U) 800f6bc: 6a3b ldr r3, [r7, #32] 800f6be: f403 4300 and.w r3, r3, #32768 @ 0x8000 800f6c2: 2b00 cmp r3, #0 800f6c4: d07b beq.n 800f7be { if ((msrflags & CAN_MSR_ERRI) != 0U) 800f6c6: 69fb ldr r3, [r7, #28] 800f6c8: f003 0304 and.w r3, r3, #4 800f6cc: 2b00 cmp r3, #0 800f6ce: d072 beq.n 800f7b6 { /* Check Error Warning Flag */ if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && 800f6d0: 6a3b ldr r3, [r7, #32] 800f6d2: f403 7380 and.w r3, r3, #256 @ 0x100 800f6d6: 2b00 cmp r3, #0 800f6d8: d008 beq.n 800f6ec ((esrflags & CAN_ESR_EWGF) != 0U)) 800f6da: 68fb ldr r3, [r7, #12] 800f6dc: f003 0301 and.w r3, r3, #1 if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && 800f6e0: 2b00 cmp r3, #0 800f6e2: d003 beq.n 800f6ec { /* Set CAN error code to Error Warning */ errorcode |= HAL_CAN_ERROR_EWG; 800f6e4: 6a7b ldr r3, [r7, #36] @ 0x24 800f6e6: f043 0301 orr.w r3, r3, #1 800f6ea: 627b str r3, [r7, #36] @ 0x24 /* No need for clear of Error Warning Flag as read-only */ } /* Check Error Passive Flag */ if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && 800f6ec: 6a3b ldr r3, [r7, #32] 800f6ee: f403 7300 and.w r3, r3, #512 @ 0x200 800f6f2: 2b00 cmp r3, #0 800f6f4: d008 beq.n 800f708 ((esrflags & CAN_ESR_EPVF) != 0U)) 800f6f6: 68fb ldr r3, [r7, #12] 800f6f8: f003 0302 and.w r3, r3, #2 if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && 800f6fc: 2b00 cmp r3, #0 800f6fe: d003 beq.n 800f708 { /* Set CAN error code to Error Passive */ errorcode |= HAL_CAN_ERROR_EPV; 800f700: 6a7b ldr r3, [r7, #36] @ 0x24 800f702: f043 0302 orr.w r3, r3, #2 800f706: 627b str r3, [r7, #36] @ 0x24 /* No need for clear of Error Passive Flag as read-only */ } /* Check Bus-off Flag */ if (((interrupts & CAN_IT_BUSOFF) != 0U) && 800f708: 6a3b ldr r3, [r7, #32] 800f70a: f403 6380 and.w r3, r3, #1024 @ 0x400 800f70e: 2b00 cmp r3, #0 800f710: d008 beq.n 800f724 ((esrflags & CAN_ESR_BOFF) != 0U)) 800f712: 68fb ldr r3, [r7, #12] 800f714: f003 0304 and.w r3, r3, #4 if (((interrupts & CAN_IT_BUSOFF) != 0U) && 800f718: 2b00 cmp r3, #0 800f71a: d003 beq.n 800f724 { /* Set CAN error code to Bus-Off */ errorcode |= HAL_CAN_ERROR_BOF; 800f71c: 6a7b ldr r3, [r7, #36] @ 0x24 800f71e: f043 0304 orr.w r3, r3, #4 800f722: 627b str r3, [r7, #36] @ 0x24 /* No need for clear of Error Bus-Off as read-only */ } /* Check Last Error Code Flag */ if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && 800f724: 6a3b ldr r3, [r7, #32] 800f726: f403 6300 and.w r3, r3, #2048 @ 0x800 800f72a: 2b00 cmp r3, #0 800f72c: d043 beq.n 800f7b6 ((esrflags & CAN_ESR_LEC) != 0U)) 800f72e: 68fb ldr r3, [r7, #12] 800f730: f003 0370 and.w r3, r3, #112 @ 0x70 if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && 800f734: 2b00 cmp r3, #0 800f736: d03e beq.n 800f7b6 { switch (esrflags & CAN_ESR_LEC) 800f738: 68fb ldr r3, [r7, #12] 800f73a: f003 0370 and.w r3, r3, #112 @ 0x70 800f73e: 2b60 cmp r3, #96 @ 0x60 800f740: d02b beq.n 800f79a 800f742: 2b60 cmp r3, #96 @ 0x60 800f744: d82e bhi.n 800f7a4 800f746: 2b50 cmp r3, #80 @ 0x50 800f748: d022 beq.n 800f790 800f74a: 2b50 cmp r3, #80 @ 0x50 800f74c: d82a bhi.n 800f7a4 800f74e: 2b40 cmp r3, #64 @ 0x40 800f750: d019 beq.n 800f786 800f752: 2b40 cmp r3, #64 @ 0x40 800f754: d826 bhi.n 800f7a4 800f756: 2b30 cmp r3, #48 @ 0x30 800f758: d010 beq.n 800f77c 800f75a: 2b30 cmp r3, #48 @ 0x30 800f75c: d822 bhi.n 800f7a4 800f75e: 2b10 cmp r3, #16 800f760: d002 beq.n 800f768 800f762: 2b20 cmp r3, #32 800f764: d005 beq.n 800f772 case (CAN_ESR_LEC_2 | CAN_ESR_LEC_1): /* Set CAN error code to CRC error */ errorcode |= HAL_CAN_ERROR_CRC; break; default: break; 800f766: e01d b.n 800f7a4 errorcode |= HAL_CAN_ERROR_STF; 800f768: 6a7b ldr r3, [r7, #36] @ 0x24 800f76a: f043 0308 orr.w r3, r3, #8 800f76e: 627b str r3, [r7, #36] @ 0x24 break; 800f770: e019 b.n 800f7a6 errorcode |= HAL_CAN_ERROR_FOR; 800f772: 6a7b ldr r3, [r7, #36] @ 0x24 800f774: f043 0310 orr.w r3, r3, #16 800f778: 627b str r3, [r7, #36] @ 0x24 break; 800f77a: e014 b.n 800f7a6 errorcode |= HAL_CAN_ERROR_ACK; 800f77c: 6a7b ldr r3, [r7, #36] @ 0x24 800f77e: f043 0320 orr.w r3, r3, #32 800f782: 627b str r3, [r7, #36] @ 0x24 break; 800f784: e00f b.n 800f7a6 errorcode |= HAL_CAN_ERROR_BR; 800f786: 6a7b ldr r3, [r7, #36] @ 0x24 800f788: f043 0340 orr.w r3, r3, #64 @ 0x40 800f78c: 627b str r3, [r7, #36] @ 0x24 break; 800f78e: e00a b.n 800f7a6 errorcode |= HAL_CAN_ERROR_BD; 800f790: 6a7b ldr r3, [r7, #36] @ 0x24 800f792: f043 0380 orr.w r3, r3, #128 @ 0x80 800f796: 627b str r3, [r7, #36] @ 0x24 break; 800f798: e005 b.n 800f7a6 errorcode |= HAL_CAN_ERROR_CRC; 800f79a: 6a7b ldr r3, [r7, #36] @ 0x24 800f79c: f443 7380 orr.w r3, r3, #256 @ 0x100 800f7a0: 627b str r3, [r7, #36] @ 0x24 break; 800f7a2: e000 b.n 800f7a6 break; 800f7a4: bf00 nop } /* Clear Last error code Flag */ CLEAR_BIT(hcan->Instance->ESR, CAN_ESR_LEC); 800f7a6: 687b ldr r3, [r7, #4] 800f7a8: 681b ldr r3, [r3, #0] 800f7aa: 699a ldr r2, [r3, #24] 800f7ac: 687b ldr r3, [r7, #4] 800f7ae: 681b ldr r3, [r3, #0] 800f7b0: f022 0270 bic.w r2, r2, #112 @ 0x70 800f7b4: 619a str r2, [r3, #24] } } /* Clear ERRI Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_ERRI); 800f7b6: 687b ldr r3, [r7, #4] 800f7b8: 681b ldr r3, [r3, #0] 800f7ba: 2204 movs r2, #4 800f7bc: 605a str r2, [r3, #4] } /* Call the Error call Back in case of Errors */ if (errorcode != HAL_CAN_ERROR_NONE) 800f7be: 6a7b ldr r3, [r7, #36] @ 0x24 800f7c0: 2b00 cmp r3, #0 800f7c2: d008 beq.n 800f7d6 { /* Update error code in handle */ hcan->ErrorCode |= errorcode; 800f7c4: 687b ldr r3, [r7, #4] 800f7c6: 6a5a ldr r2, [r3, #36] @ 0x24 800f7c8: 6a7b ldr r3, [r7, #36] @ 0x24 800f7ca: 431a orrs r2, r3 800f7cc: 687b ldr r3, [r7, #4] 800f7ce: 625a str r2, [r3, #36] @ 0x24 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->ErrorCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_ErrorCallback(hcan); 800f7d0: 6878 ldr r0, [r7, #4] 800f7d2: f000 f867 bl 800f8a4 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } 800f7d6: bf00 nop 800f7d8: 3728 adds r7, #40 @ 0x28 800f7da: 46bd mov sp, r7 800f7dc: bd80 pop {r7, pc} 0800f7de : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox0CompleteCallback(CAN_HandleTypeDef *hcan) { 800f7de: b480 push {r7} 800f7e0: b083 sub sp, #12 800f7e2: af00 add r7, sp, #0 800f7e4: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox0CompleteCallback could be implemented in the user file */ } 800f7e6: bf00 nop 800f7e8: 370c adds r7, #12 800f7ea: 46bd mov sp, r7 800f7ec: bc80 pop {r7} 800f7ee: 4770 bx lr 0800f7f0 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox1CompleteCallback(CAN_HandleTypeDef *hcan) { 800f7f0: b480 push {r7} 800f7f2: b083 sub sp, #12 800f7f4: af00 add r7, sp, #0 800f7f6: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox1CompleteCallback could be implemented in the user file */ } 800f7f8: bf00 nop 800f7fa: 370c adds r7, #12 800f7fc: 46bd mov sp, r7 800f7fe: bc80 pop {r7} 800f800: 4770 bx lr 0800f802 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox2CompleteCallback(CAN_HandleTypeDef *hcan) { 800f802: b480 push {r7} 800f804: b083 sub sp, #12 800f806: af00 add r7, sp, #0 800f808: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox2CompleteCallback could be implemented in the user file */ } 800f80a: bf00 nop 800f80c: 370c adds r7, #12 800f80e: 46bd mov sp, r7 800f810: bc80 pop {r7} 800f812: 4770 bx lr 0800f814 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox0AbortCallback(CAN_HandleTypeDef *hcan) { 800f814: b480 push {r7} 800f816: b083 sub sp, #12 800f818: af00 add r7, sp, #0 800f81a: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox0AbortCallback could be implemented in the user file */ } 800f81c: bf00 nop 800f81e: 370c adds r7, #12 800f820: 46bd mov sp, r7 800f822: bc80 pop {r7} 800f824: 4770 bx lr 0800f826 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox1AbortCallback(CAN_HandleTypeDef *hcan) { 800f826: b480 push {r7} 800f828: b083 sub sp, #12 800f82a: af00 add r7, sp, #0 800f82c: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox1AbortCallback could be implemented in the user file */ } 800f82e: bf00 nop 800f830: 370c adds r7, #12 800f832: 46bd mov sp, r7 800f834: bc80 pop {r7} 800f836: 4770 bx lr 0800f838 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox2AbortCallback(CAN_HandleTypeDef *hcan) { 800f838: b480 push {r7} 800f83a: b083 sub sp, #12 800f83c: af00 add r7, sp, #0 800f83e: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox2AbortCallback could be implemented in the user file */ } 800f840: bf00 nop 800f842: 370c adds r7, #12 800f844: 46bd mov sp, r7 800f846: bc80 pop {r7} 800f848: 4770 bx lr 0800f84a : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) { 800f84a: b480 push {r7} 800f84c: b083 sub sp, #12 800f84e: af00 add r7, sp, #0 800f850: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo0MsgPendingCallback could be implemented in the user file */ } 800f852: bf00 nop 800f854: 370c adds r7, #12 800f856: 46bd mov sp, r7 800f858: bc80 pop {r7} 800f85a: 4770 bx lr 0800f85c : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo0FullCallback(CAN_HandleTypeDef *hcan) { 800f85c: b480 push {r7} 800f85e: b083 sub sp, #12 800f860: af00 add r7, sp, #0 800f862: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo0FullCallback could be implemented in the user file */ } 800f864: bf00 nop 800f866: 370c adds r7, #12 800f868: 46bd mov sp, r7 800f86a: bc80 pop {r7} 800f86c: 4770 bx lr 0800f86e : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo1FullCallback(CAN_HandleTypeDef *hcan) { 800f86e: b480 push {r7} 800f870: b083 sub sp, #12 800f872: af00 add r7, sp, #0 800f874: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo1FullCallback could be implemented in the user file */ } 800f876: bf00 nop 800f878: 370c adds r7, #12 800f87a: 46bd mov sp, r7 800f87c: bc80 pop {r7} 800f87e: 4770 bx lr 0800f880 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_SleepCallback(CAN_HandleTypeDef *hcan) { 800f880: b480 push {r7} 800f882: b083 sub sp, #12 800f884: af00 add r7, sp, #0 800f886: 6078 str r0, [r7, #4] UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_SleepCallback could be implemented in the user file */ } 800f888: bf00 nop 800f88a: 370c adds r7, #12 800f88c: 46bd mov sp, r7 800f88e: bc80 pop {r7} 800f890: 4770 bx lr 0800f892 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_WakeUpFromRxMsgCallback(CAN_HandleTypeDef *hcan) { 800f892: b480 push {r7} 800f894: b083 sub sp, #12 800f896: af00 add r7, sp, #0 800f898: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_WakeUpFromRxMsgCallback could be implemented in the user file */ } 800f89a: bf00 nop 800f89c: 370c adds r7, #12 800f89e: 46bd mov sp, r7 800f8a0: bc80 pop {r7} 800f8a2: 4770 bx lr 0800f8a4 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan) { 800f8a4: b480 push {r7} 800f8a6: b083 sub sp, #12 800f8a8: af00 add r7, sp, #0 800f8aa: 6078 str r0, [r7, #4] UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_ErrorCallback could be implemented in the user file */ } 800f8ac: bf00 nop 800f8ae: 370c adds r7, #12 800f8b0: 46bd mov sp, r7 800f8b2: bc80 pop {r7} 800f8b4: 4770 bx lr ... 0800f8b8 <__NVIC_SetPriorityGrouping>: { 800f8b8: b480 push {r7} 800f8ba: b085 sub sp, #20 800f8bc: af00 add r7, sp, #0 800f8be: 6078 str r0, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 800f8c0: 687b ldr r3, [r7, #4] 800f8c2: f003 0307 and.w r3, r3, #7 800f8c6: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ 800f8c8: 4b0c ldr r3, [pc, #48] @ (800f8fc <__NVIC_SetPriorityGrouping+0x44>) 800f8ca: 68db ldr r3, [r3, #12] 800f8cc: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ 800f8ce: 68ba ldr r2, [r7, #8] 800f8d0: f64f 03ff movw r3, #63743 @ 0xf8ff 800f8d4: 4013 ands r3, r2 800f8d6: 60bb str r3, [r7, #8] (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ 800f8d8: 68fb ldr r3, [r7, #12] 800f8da: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800f8dc: 68bb ldr r3, [r7, #8] 800f8de: 4313 orrs r3, r2 reg_value = (reg_value | 800f8e0: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 800f8e4: f443 3300 orr.w r3, r3, #131072 @ 0x20000 800f8e8: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; 800f8ea: 4a04 ldr r2, [pc, #16] @ (800f8fc <__NVIC_SetPriorityGrouping+0x44>) 800f8ec: 68bb ldr r3, [r7, #8] 800f8ee: 60d3 str r3, [r2, #12] } 800f8f0: bf00 nop 800f8f2: 3714 adds r7, #20 800f8f4: 46bd mov sp, r7 800f8f6: bc80 pop {r7} 800f8f8: 4770 bx lr 800f8fa: bf00 nop 800f8fc: e000ed00 .word 0xe000ed00 0800f900 <__NVIC_GetPriorityGrouping>: { 800f900: b480 push {r7} 800f902: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); 800f904: 4b04 ldr r3, [pc, #16] @ (800f918 <__NVIC_GetPriorityGrouping+0x18>) 800f906: 68db ldr r3, [r3, #12] 800f908: 0a1b lsrs r3, r3, #8 800f90a: f003 0307 and.w r3, r3, #7 } 800f90e: 4618 mov r0, r3 800f910: 46bd mov sp, r7 800f912: bc80 pop {r7} 800f914: 4770 bx lr 800f916: bf00 nop 800f918: e000ed00 .word 0xe000ed00 0800f91c <__NVIC_EnableIRQ>: { 800f91c: b480 push {r7} 800f91e: b083 sub sp, #12 800f920: af00 add r7, sp, #0 800f922: 4603 mov r3, r0 800f924: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800f926: f997 3007 ldrsb.w r3, [r7, #7] 800f92a: 2b00 cmp r3, #0 800f92c: db0b blt.n 800f946 <__NVIC_EnableIRQ+0x2a> NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); 800f92e: 79fb ldrb r3, [r7, #7] 800f930: f003 021f and.w r2, r3, #31 800f934: 4906 ldr r1, [pc, #24] @ (800f950 <__NVIC_EnableIRQ+0x34>) 800f936: f997 3007 ldrsb.w r3, [r7, #7] 800f93a: 095b lsrs r3, r3, #5 800f93c: 2001 movs r0, #1 800f93e: fa00 f202 lsl.w r2, r0, r2 800f942: f841 2023 str.w r2, [r1, r3, lsl #2] } 800f946: bf00 nop 800f948: 370c adds r7, #12 800f94a: 46bd mov sp, r7 800f94c: bc80 pop {r7} 800f94e: 4770 bx lr 800f950: e000e100 .word 0xe000e100 0800f954 <__NVIC_DisableIRQ>: { 800f954: b480 push {r7} 800f956: b083 sub sp, #12 800f958: af00 add r7, sp, #0 800f95a: 4603 mov r3, r0 800f95c: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800f95e: f997 3007 ldrsb.w r3, [r7, #7] 800f962: 2b00 cmp r3, #0 800f964: db12 blt.n 800f98c <__NVIC_DisableIRQ+0x38> NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); 800f966: 79fb ldrb r3, [r7, #7] 800f968: f003 021f and.w r2, r3, #31 800f96c: 490a ldr r1, [pc, #40] @ (800f998 <__NVIC_DisableIRQ+0x44>) 800f96e: f997 3007 ldrsb.w r3, [r7, #7] 800f972: 095b lsrs r3, r3, #5 800f974: 2001 movs r0, #1 800f976: fa00 f202 lsl.w r2, r0, r2 800f97a: 3320 adds r3, #32 800f97c: f841 2023 str.w r2, [r1, r3, lsl #2] __ASM volatile ("dsb 0xF":::"memory"); 800f980: f3bf 8f4f dsb sy } 800f984: bf00 nop __ASM volatile ("isb 0xF":::"memory"); 800f986: f3bf 8f6f isb sy } 800f98a: bf00 nop } 800f98c: bf00 nop 800f98e: 370c adds r7, #12 800f990: 46bd mov sp, r7 800f992: bc80 pop {r7} 800f994: 4770 bx lr 800f996: bf00 nop 800f998: e000e100 .word 0xe000e100 0800f99c <__NVIC_SetPriority>: { 800f99c: b480 push {r7} 800f99e: b083 sub sp, #12 800f9a0: af00 add r7, sp, #0 800f9a2: 4603 mov r3, r0 800f9a4: 6039 str r1, [r7, #0] 800f9a6: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800f9a8: f997 3007 ldrsb.w r3, [r7, #7] 800f9ac: 2b00 cmp r3, #0 800f9ae: db0a blt.n 800f9c6 <__NVIC_SetPriority+0x2a> NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 800f9b0: 683b ldr r3, [r7, #0] 800f9b2: b2da uxtb r2, r3 800f9b4: 490c ldr r1, [pc, #48] @ (800f9e8 <__NVIC_SetPriority+0x4c>) 800f9b6: f997 3007 ldrsb.w r3, [r7, #7] 800f9ba: 0112 lsls r2, r2, #4 800f9bc: b2d2 uxtb r2, r2 800f9be: 440b add r3, r1 800f9c0: f883 2300 strb.w r2, [r3, #768] @ 0x300 } 800f9c4: e00a b.n 800f9dc <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 800f9c6: 683b ldr r3, [r7, #0] 800f9c8: b2da uxtb r2, r3 800f9ca: 4908 ldr r1, [pc, #32] @ (800f9ec <__NVIC_SetPriority+0x50>) 800f9cc: 79fb ldrb r3, [r7, #7] 800f9ce: f003 030f and.w r3, r3, #15 800f9d2: 3b04 subs r3, #4 800f9d4: 0112 lsls r2, r2, #4 800f9d6: b2d2 uxtb r2, r2 800f9d8: 440b add r3, r1 800f9da: 761a strb r2, [r3, #24] } 800f9dc: bf00 nop 800f9de: 370c adds r7, #12 800f9e0: 46bd mov sp, r7 800f9e2: bc80 pop {r7} 800f9e4: 4770 bx lr 800f9e6: bf00 nop 800f9e8: e000e100 .word 0xe000e100 800f9ec: e000ed00 .word 0xe000ed00 0800f9f0 : { 800f9f0: b480 push {r7} 800f9f2: b089 sub sp, #36 @ 0x24 800f9f4: af00 add r7, sp, #0 800f9f6: 60f8 str r0, [r7, #12] 800f9f8: 60b9 str r1, [r7, #8] 800f9fa: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 800f9fc: 68fb ldr r3, [r7, #12] 800f9fe: f003 0307 and.w r3, r3, #7 800fa02: 61fb str r3, [r7, #28] PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); 800fa04: 69fb ldr r3, [r7, #28] 800fa06: f1c3 0307 rsb r3, r3, #7 800fa0a: 2b04 cmp r3, #4 800fa0c: bf28 it cs 800fa0e: 2304 movcs r3, #4 800fa10: 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)); 800fa12: 69fb ldr r3, [r7, #28] 800fa14: 3304 adds r3, #4 800fa16: 2b06 cmp r3, #6 800fa18: d902 bls.n 800fa20 800fa1a: 69fb ldr r3, [r7, #28] 800fa1c: 3b03 subs r3, #3 800fa1e: e000 b.n 800fa22 800fa20: 2300 movs r3, #0 800fa22: 617b str r3, [r7, #20] ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 800fa24: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 800fa28: 69bb ldr r3, [r7, #24] 800fa2a: fa02 f303 lsl.w r3, r2, r3 800fa2e: 43da mvns r2, r3 800fa30: 68bb ldr r3, [r7, #8] 800fa32: 401a ands r2, r3 800fa34: 697b ldr r3, [r7, #20] 800fa36: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) 800fa38: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff 800fa3c: 697b ldr r3, [r7, #20] 800fa3e: fa01 f303 lsl.w r3, r1, r3 800fa42: 43d9 mvns r1, r3 800fa44: 687b ldr r3, [r7, #4] 800fa46: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 800fa48: 4313 orrs r3, r2 } 800fa4a: 4618 mov r0, r3 800fa4c: 3724 adds r7, #36 @ 0x24 800fa4e: 46bd mov sp, r7 800fa50: bc80 pop {r7} 800fa52: 4770 bx lr 0800fa54 : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { 800fa54: b580 push {r7, lr} 800fa56: b082 sub sp, #8 800fa58: af00 add r7, sp, #0 800fa5a: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) 800fa5c: 687b ldr r3, [r7, #4] 800fa5e: 3b01 subs r3, #1 800fa60: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 800fa64: d301 bcc.n 800fa6a { return (1UL); /* Reload value impossible */ 800fa66: 2301 movs r3, #1 800fa68: e00f b.n 800fa8a } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ 800fa6a: 4a0a ldr r2, [pc, #40] @ (800fa94 ) 800fa6c: 687b ldr r3, [r7, #4] 800fa6e: 3b01 subs r3, #1 800fa70: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ 800fa72: 210f movs r1, #15 800fa74: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 800fa78: f7ff ff90 bl 800f99c <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ 800fa7c: 4b05 ldr r3, [pc, #20] @ (800fa94 ) 800fa7e: 2200 movs r2, #0 800fa80: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | 800fa82: 4b04 ldr r3, [pc, #16] @ (800fa94 ) 800fa84: 2207 movs r2, #7 800fa86: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ 800fa88: 2300 movs r3, #0 } 800fa8a: 4618 mov r0, r3 800fa8c: 3708 adds r7, #8 800fa8e: 46bd mov sp, r7 800fa90: bd80 pop {r7, pc} 800fa92: bf00 nop 800fa94: e000e010 .word 0xe000e010 0800fa98 : * @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) { 800fa98: b580 push {r7, lr} 800fa9a: b082 sub sp, #8 800fa9c: af00 add r7, sp, #0 800fa9e: 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); 800faa0: 6878 ldr r0, [r7, #4] 800faa2: f7ff ff09 bl 800f8b8 <__NVIC_SetPriorityGrouping> } 800faa6: bf00 nop 800faa8: 3708 adds r7, #8 800faaa: 46bd mov sp, r7 800faac: bd80 pop {r7, pc} 0800faae : * 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) { 800faae: b580 push {r7, lr} 800fab0: b086 sub sp, #24 800fab2: af00 add r7, sp, #0 800fab4: 4603 mov r3, r0 800fab6: 60b9 str r1, [r7, #8] 800fab8: 607a str r2, [r7, #4] 800faba: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; 800fabc: 2300 movs r3, #0 800fabe: 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(); 800fac0: f7ff ff1e bl 800f900 <__NVIC_GetPriorityGrouping> 800fac4: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); 800fac6: 687a ldr r2, [r7, #4] 800fac8: 68b9 ldr r1, [r7, #8] 800faca: 6978 ldr r0, [r7, #20] 800facc: f7ff ff90 bl 800f9f0 800fad0: 4602 mov r2, r0 800fad2: f997 300f ldrsb.w r3, [r7, #15] 800fad6: 4611 mov r1, r2 800fad8: 4618 mov r0, r3 800fada: f7ff ff5f bl 800f99c <__NVIC_SetPriority> } 800fade: bf00 nop 800fae0: 3718 adds r7, #24 800fae2: 46bd mov sp, r7 800fae4: bd80 pop {r7, pc} 0800fae6 : * 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) { 800fae6: b580 push {r7, lr} 800fae8: b082 sub sp, #8 800faea: af00 add r7, sp, #0 800faec: 4603 mov r3, r0 800faee: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); 800faf0: f997 3007 ldrsb.w r3, [r7, #7] 800faf4: 4618 mov r0, r3 800faf6: f7ff ff11 bl 800f91c <__NVIC_EnableIRQ> } 800fafa: bf00 nop 800fafc: 3708 adds r7, #8 800fafe: 46bd mov sp, r7 800fb00: bd80 pop {r7, pc} 0800fb02 : * 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_DisableIRQ(IRQn_Type IRQn) { 800fb02: b580 push {r7, lr} 800fb04: b082 sub sp, #8 800fb06: af00 add r7, sp, #0 800fb08: 4603 mov r3, r0 800fb0a: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Disable interrupt */ NVIC_DisableIRQ(IRQn); 800fb0c: f997 3007 ldrsb.w r3, [r7, #7] 800fb10: 4618 mov r0, r3 800fb12: f7ff ff1f bl 800f954 <__NVIC_DisableIRQ> } 800fb16: bf00 nop 800fb18: 3708 adds r7, #8 800fb1a: 46bd mov sp, r7 800fb1c: bd80 pop {r7, pc} 0800fb1e : * @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) { 800fb1e: b580 push {r7, lr} 800fb20: b082 sub sp, #8 800fb22: af00 add r7, sp, #0 800fb24: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); 800fb26: 6878 ldr r0, [r7, #4] 800fb28: f7ff ff94 bl 800fa54 800fb2c: 4603 mov r3, r0 } 800fb2e: 4618 mov r0, r3 800fb30: 3708 adds r7, #8 800fb32: 46bd mov sp, r7 800fb34: bd80 pop {r7, pc} 0800fb36 : * parameters in the CRC_InitTypeDef and create the associated handle. * @param hcrc CRC handle * @retval HAL status */ HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc) { 800fb36: b580 push {r7, lr} 800fb38: b082 sub sp, #8 800fb3a: af00 add r7, sp, #0 800fb3c: 6078 str r0, [r7, #4] /* Check the CRC handle allocation */ if (hcrc == NULL) 800fb3e: 687b ldr r3, [r7, #4] 800fb40: 2b00 cmp r3, #0 800fb42: d101 bne.n 800fb48 { return HAL_ERROR; 800fb44: 2301 movs r3, #1 800fb46: e00e b.n 800fb66 } /* Check the parameters */ assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance)); if (hcrc->State == HAL_CRC_STATE_RESET) 800fb48: 687b ldr r3, [r7, #4] 800fb4a: 795b ldrb r3, [r3, #5] 800fb4c: b2db uxtb r3, r3 800fb4e: 2b00 cmp r3, #0 800fb50: d105 bne.n 800fb5e { /* Allocate lock resource and initialize it */ hcrc->Lock = HAL_UNLOCKED; 800fb52: 687b ldr r3, [r7, #4] 800fb54: 2200 movs r2, #0 800fb56: 711a strb r2, [r3, #4] /* Init the low level hardware */ HAL_CRC_MspInit(hcrc); 800fb58: 6878 ldr r0, [r7, #4] 800fb5a: f7fa fbbd bl 800a2d8 } /* Change CRC peripheral state */ hcrc->State = HAL_CRC_STATE_READY; 800fb5e: 687b ldr r3, [r7, #4] 800fb60: 2201 movs r2, #1 800fb62: 715a strb r2, [r3, #5] /* Return function status */ return HAL_OK; 800fb64: 2300 movs r3, #0 } 800fb66: 4618 mov r0, r3 800fb68: 3708 adds r7, #8 800fb6a: 46bd mov sp, r7 800fb6c: bd80 pop {r7, pc} ... 0800fb70 : * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) { 800fb70: b480 push {r7} 800fb72: b085 sub sp, #20 800fb74: af00 add r7, sp, #0 800fb76: 6078 str r0, [r7, #4] uint32_t tmp = 0U; 800fb78: 2300 movs r3, #0 800fb7a: 60fb str r3, [r7, #12] /* Check the DMA handle allocation */ if(hdma == NULL) 800fb7c: 687b ldr r3, [r7, #4] 800fb7e: 2b00 cmp r3, #0 800fb80: d101 bne.n 800fb86 { return HAL_ERROR; 800fb82: 2301 movs r3, #1 800fb84: e059 b.n 800fc3a assert_param(IS_DMA_MODE(hdma->Init.Mode)); assert_param(IS_DMA_PRIORITY(hdma->Init.Priority)); #if defined (DMA2) /* calculation of the channel index */ if ((uint32_t)(hdma->Instance) < (uint32_t)(DMA2_Channel1)) 800fb86: 687b ldr r3, [r7, #4] 800fb88: 681b ldr r3, [r3, #0] 800fb8a: 461a mov r2, r3 800fb8c: 4b2d ldr r3, [pc, #180] @ (800fc44 ) 800fb8e: 429a cmp r2, r3 800fb90: d80f bhi.n 800fbb2 { /* DMA1 */ hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2; 800fb92: 687b ldr r3, [r7, #4] 800fb94: 681b ldr r3, [r3, #0] 800fb96: 461a mov r2, r3 800fb98: 4b2b ldr r3, [pc, #172] @ (800fc48 ) 800fb9a: 4413 add r3, r2 800fb9c: 4a2b ldr r2, [pc, #172] @ (800fc4c ) 800fb9e: fba2 2303 umull r2, r3, r2, r3 800fba2: 091b lsrs r3, r3, #4 800fba4: 009a lsls r2, r3, #2 800fba6: 687b ldr r3, [r7, #4] 800fba8: 641a str r2, [r3, #64] @ 0x40 hdma->DmaBaseAddress = DMA1; 800fbaa: 687b ldr r3, [r7, #4] 800fbac: 4a28 ldr r2, [pc, #160] @ (800fc50 ) 800fbae: 63da str r2, [r3, #60] @ 0x3c 800fbb0: e00e b.n 800fbd0 } else { /* DMA2 */ hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2; 800fbb2: 687b ldr r3, [r7, #4] 800fbb4: 681b ldr r3, [r3, #0] 800fbb6: 461a mov r2, r3 800fbb8: 4b26 ldr r3, [pc, #152] @ (800fc54 ) 800fbba: 4413 add r3, r2 800fbbc: 4a23 ldr r2, [pc, #140] @ (800fc4c ) 800fbbe: fba2 2303 umull r2, r3, r2, r3 800fbc2: 091b lsrs r3, r3, #4 800fbc4: 009a lsls r2, r3, #2 800fbc6: 687b ldr r3, [r7, #4] 800fbc8: 641a str r2, [r3, #64] @ 0x40 hdma->DmaBaseAddress = DMA2; 800fbca: 687b ldr r3, [r7, #4] 800fbcc: 4a22 ldr r2, [pc, #136] @ (800fc58 ) 800fbce: 63da str r2, [r3, #60] @ 0x3c hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2; hdma->DmaBaseAddress = DMA1; #endif /* DMA2 */ /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; 800fbd0: 687b ldr r3, [r7, #4] 800fbd2: 2202 movs r2, #2 800fbd4: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Get the CR register value */ tmp = hdma->Instance->CCR; 800fbd8: 687b ldr r3, [r7, #4] 800fbda: 681b ldr r3, [r3, #0] 800fbdc: 681b ldr r3, [r3, #0] 800fbde: 60fb str r3, [r7, #12] /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */ tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \ 800fbe0: 68fb ldr r3, [r7, #12] 800fbe2: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 800fbe6: f023 0330 bic.w r3, r3, #48 @ 0x30 800fbea: 60fb str r3, [r7, #12] DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \ DMA_CCR_DIR)); /* Prepare the DMA Channel configuration */ tmp |= hdma->Init.Direction | 800fbec: 687b ldr r3, [r7, #4] 800fbee: 685a ldr r2, [r3, #4] hdma->Init.PeriphInc | hdma->Init.MemInc | 800fbf0: 687b ldr r3, [r7, #4] 800fbf2: 689b ldr r3, [r3, #8] tmp |= hdma->Init.Direction | 800fbf4: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | 800fbf6: 687b ldr r3, [r7, #4] 800fbf8: 68db ldr r3, [r3, #12] 800fbfa: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800fbfc: 687b ldr r3, [r7, #4] 800fbfe: 691b ldr r3, [r3, #16] hdma->Init.PeriphInc | hdma->Init.MemInc | 800fc00: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800fc02: 687b ldr r3, [r7, #4] 800fc04: 695b ldr r3, [r3, #20] 800fc06: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; 800fc08: 687b ldr r3, [r7, #4] 800fc0a: 699b ldr r3, [r3, #24] hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800fc0c: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; 800fc0e: 687b ldr r3, [r7, #4] 800fc10: 69db ldr r3, [r3, #28] 800fc12: 4313 orrs r3, r2 tmp |= hdma->Init.Direction | 800fc14: 68fa ldr r2, [r7, #12] 800fc16: 4313 orrs r3, r2 800fc18: 60fb str r3, [r7, #12] /* Write to DMA Channel CR register */ hdma->Instance->CCR = tmp; 800fc1a: 687b ldr r3, [r7, #4] 800fc1c: 681b ldr r3, [r3, #0] 800fc1e: 68fa ldr r2, [r7, #12] 800fc20: 601a str r2, [r3, #0] /* Initialise the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; 800fc22: 687b ldr r3, [r7, #4] 800fc24: 2200 movs r2, #0 800fc26: 639a str r2, [r3, #56] @ 0x38 /* Initialize the DMA state*/ hdma->State = HAL_DMA_STATE_READY; 800fc28: 687b ldr r3, [r7, #4] 800fc2a: 2201 movs r2, #1 800fc2c: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Allocate lock resource and initialize it */ hdma->Lock = HAL_UNLOCKED; 800fc30: 687b ldr r3, [r7, #4] 800fc32: 2200 movs r2, #0 800fc34: f883 2020 strb.w r2, [r3, #32] return HAL_OK; 800fc38: 2300 movs r3, #0 } 800fc3a: 4618 mov r0, r3 800fc3c: 3714 adds r7, #20 800fc3e: 46bd mov sp, r7 800fc40: bc80 pop {r7} 800fc42: 4770 bx lr 800fc44: 40020407 .word 0x40020407 800fc48: bffdfff8 .word 0xbffdfff8 800fc4c: cccccccd .word 0xcccccccd 800fc50: 40020000 .word 0x40020000 800fc54: bffdfbf8 .word 0xbffdfbf8 800fc58: 40020400 .word 0x40020400 0800fc5c : * @param DstAddress: The destination memory Buffer address * @param DataLength: The length of data to be transferred from source to destination * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { 800fc5c: b580 push {r7, lr} 800fc5e: b086 sub sp, #24 800fc60: af00 add r7, sp, #0 800fc62: 60f8 str r0, [r7, #12] 800fc64: 60b9 str r1, [r7, #8] 800fc66: 607a str r2, [r7, #4] 800fc68: 603b str r3, [r7, #0] HAL_StatusTypeDef status = HAL_OK; 800fc6a: 2300 movs r3, #0 800fc6c: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); 800fc6e: 68fb ldr r3, [r7, #12] 800fc70: f893 3020 ldrb.w r3, [r3, #32] 800fc74: 2b01 cmp r3, #1 800fc76: d101 bne.n 800fc7c 800fc78: 2302 movs r3, #2 800fc7a: e04b b.n 800fd14 800fc7c: 68fb ldr r3, [r7, #12] 800fc7e: 2201 movs r2, #1 800fc80: f883 2020 strb.w r2, [r3, #32] if(HAL_DMA_STATE_READY == hdma->State) 800fc84: 68fb ldr r3, [r7, #12] 800fc86: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800fc8a: b2db uxtb r3, r3 800fc8c: 2b01 cmp r3, #1 800fc8e: d13a bne.n 800fd06 { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; 800fc90: 68fb ldr r3, [r7, #12] 800fc92: 2202 movs r2, #2 800fc94: f883 2021 strb.w r2, [r3, #33] @ 0x21 hdma->ErrorCode = HAL_DMA_ERROR_NONE; 800fc98: 68fb ldr r3, [r7, #12] 800fc9a: 2200 movs r2, #0 800fc9c: 639a str r2, [r3, #56] @ 0x38 /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); 800fc9e: 68fb ldr r3, [r7, #12] 800fca0: 681b ldr r3, [r3, #0] 800fca2: 681a ldr r2, [r3, #0] 800fca4: 68fb ldr r3, [r7, #12] 800fca6: 681b ldr r3, [r3, #0] 800fca8: f022 0201 bic.w r2, r2, #1 800fcac: 601a str r2, [r3, #0] /* Configure the source, destination address and the data length & clear flags*/ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); 800fcae: 683b ldr r3, [r7, #0] 800fcb0: 687a ldr r2, [r7, #4] 800fcb2: 68b9 ldr r1, [r7, #8] 800fcb4: 68f8 ldr r0, [r7, #12] 800fcb6: f000 fbb1 bl 801041c /* Enable the transfer complete interrupt */ /* Enable the transfer Error interrupt */ if(NULL != hdma->XferHalfCpltCallback) 800fcba: 68fb ldr r3, [r7, #12] 800fcbc: 6adb ldr r3, [r3, #44] @ 0x2c 800fcbe: 2b00 cmp r3, #0 800fcc0: d008 beq.n 800fcd4 { /* Enable the Half transfer complete interrupt as well */ __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800fcc2: 68fb ldr r3, [r7, #12] 800fcc4: 681b ldr r3, [r3, #0] 800fcc6: 681a ldr r2, [r3, #0] 800fcc8: 68fb ldr r3, [r7, #12] 800fcca: 681b ldr r3, [r3, #0] 800fccc: f042 020e orr.w r2, r2, #14 800fcd0: 601a str r2, [r3, #0] 800fcd2: e00f b.n 800fcf4 } else { __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); 800fcd4: 68fb ldr r3, [r7, #12] 800fcd6: 681b ldr r3, [r3, #0] 800fcd8: 681a ldr r2, [r3, #0] 800fcda: 68fb ldr r3, [r7, #12] 800fcdc: 681b ldr r3, [r3, #0] 800fcde: f022 0204 bic.w r2, r2, #4 800fce2: 601a str r2, [r3, #0] __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE)); 800fce4: 68fb ldr r3, [r7, #12] 800fce6: 681b ldr r3, [r3, #0] 800fce8: 681a ldr r2, [r3, #0] 800fcea: 68fb ldr r3, [r7, #12] 800fcec: 681b ldr r3, [r3, #0] 800fcee: f042 020a orr.w r2, r2, #10 800fcf2: 601a str r2, [r3, #0] } /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); 800fcf4: 68fb ldr r3, [r7, #12] 800fcf6: 681b ldr r3, [r3, #0] 800fcf8: 681a ldr r2, [r3, #0] 800fcfa: 68fb ldr r3, [r7, #12] 800fcfc: 681b ldr r3, [r3, #0] 800fcfe: f042 0201 orr.w r2, r2, #1 800fd02: 601a str r2, [r3, #0] 800fd04: e005 b.n 800fd12 } else { /* Process Unlocked */ __HAL_UNLOCK(hdma); 800fd06: 68fb ldr r3, [r7, #12] 800fd08: 2200 movs r2, #0 800fd0a: f883 2020 strb.w r2, [r3, #32] /* Remain BUSY */ status = HAL_BUSY; 800fd0e: 2302 movs r3, #2 800fd10: 75fb strb r3, [r7, #23] } return status; 800fd12: 7dfb ldrb r3, [r7, #23] } 800fd14: 4618 mov r0, r3 800fd16: 3718 adds r7, #24 800fd18: 46bd mov sp, r7 800fd1a: bd80 pop {r7, pc} 0800fd1c : * @param hdma: pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) { 800fd1c: b480 push {r7} 800fd1e: b085 sub sp, #20 800fd20: af00 add r7, sp, #0 800fd22: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 800fd24: 2300 movs r3, #0 800fd26: 73fb strb r3, [r7, #15] if(hdma->State != HAL_DMA_STATE_BUSY) 800fd28: 687b ldr r3, [r7, #4] 800fd2a: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800fd2e: b2db uxtb r3, r3 800fd30: 2b02 cmp r3, #2 800fd32: d008 beq.n 800fd46 { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; 800fd34: 687b ldr r3, [r7, #4] 800fd36: 2204 movs r2, #4 800fd38: 639a str r2, [r3, #56] @ 0x38 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800fd3a: 687b ldr r3, [r7, #4] 800fd3c: 2200 movs r2, #0 800fd3e: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800fd42: 2301 movs r3, #1 800fd44: e020 b.n 800fd88 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800fd46: 687b ldr r3, [r7, #4] 800fd48: 681b ldr r3, [r3, #0] 800fd4a: 681a ldr r2, [r3, #0] 800fd4c: 687b ldr r3, [r7, #4] 800fd4e: 681b ldr r3, [r3, #0] 800fd50: f022 020e bic.w r2, r2, #14 800fd54: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); 800fd56: 687b ldr r3, [r7, #4] 800fd58: 681b ldr r3, [r3, #0] 800fd5a: 681a ldr r2, [r3, #0] 800fd5c: 687b ldr r3, [r7, #4] 800fd5e: 681b ldr r3, [r3, #0] 800fd60: f022 0201 bic.w r2, r2, #1 800fd64: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 800fd66: 687b ldr r3, [r7, #4] 800fd68: 6c1a ldr r2, [r3, #64] @ 0x40 800fd6a: 687b ldr r3, [r7, #4] 800fd6c: 6bdb ldr r3, [r3, #60] @ 0x3c 800fd6e: 2101 movs r1, #1 800fd70: fa01 f202 lsl.w r2, r1, r2 800fd74: 605a str r2, [r3, #4] } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 800fd76: 687b ldr r3, [r7, #4] 800fd78: 2201 movs r2, #1 800fd7a: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800fd7e: 687b ldr r3, [r7, #4] 800fd80: 2200 movs r2, #0 800fd82: f883 2020 strb.w r2, [r3, #32] return status; 800fd86: 7bfb ldrb r3, [r7, #15] } 800fd88: 4618 mov r0, r3 800fd8a: 3714 adds r7, #20 800fd8c: 46bd mov sp, r7 800fd8e: bc80 pop {r7} 800fd90: 4770 bx lr ... 0800fd94 : * @param hdma : pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { 800fd94: b580 push {r7, lr} 800fd96: b084 sub sp, #16 800fd98: af00 add r7, sp, #0 800fd9a: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 800fd9c: 2300 movs r3, #0 800fd9e: 73fb strb r3, [r7, #15] if(HAL_DMA_STATE_BUSY != hdma->State) 800fda0: 687b ldr r3, [r7, #4] 800fda2: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800fda6: b2db uxtb r3, r3 800fda8: 2b02 cmp r3, #2 800fdaa: d005 beq.n 800fdb8 { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; 800fdac: 687b ldr r3, [r7, #4] 800fdae: 2204 movs r2, #4 800fdb0: 639a str r2, [r3, #56] @ 0x38 status = HAL_ERROR; 800fdb2: 2301 movs r3, #1 800fdb4: 73fb strb r3, [r7, #15] 800fdb6: e0d6 b.n 800ff66 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800fdb8: 687b ldr r3, [r7, #4] 800fdba: 681b ldr r3, [r3, #0] 800fdbc: 681a ldr r2, [r3, #0] 800fdbe: 687b ldr r3, [r7, #4] 800fdc0: 681b ldr r3, [r3, #0] 800fdc2: f022 020e bic.w r2, r2, #14 800fdc6: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); 800fdc8: 687b ldr r3, [r7, #4] 800fdca: 681b ldr r3, [r3, #0] 800fdcc: 681a ldr r2, [r3, #0] 800fdce: 687b ldr r3, [r7, #4] 800fdd0: 681b ldr r3, [r3, #0] 800fdd2: f022 0201 bic.w r2, r2, #1 800fdd6: 601a str r2, [r3, #0] /* Clear all flags */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma)); 800fdd8: 687b ldr r3, [r7, #4] 800fdda: 681b ldr r3, [r3, #0] 800fddc: 461a mov r2, r3 800fdde: 4b64 ldr r3, [pc, #400] @ (800ff70 ) 800fde0: 429a cmp r2, r3 800fde2: d958 bls.n 800fe96 800fde4: 687b ldr r3, [r7, #4] 800fde6: 681b ldr r3, [r3, #0] 800fde8: 4a62 ldr r2, [pc, #392] @ (800ff74 ) 800fdea: 4293 cmp r3, r2 800fdec: d04f beq.n 800fe8e 800fdee: 687b ldr r3, [r7, #4] 800fdf0: 681b ldr r3, [r3, #0] 800fdf2: 4a61 ldr r2, [pc, #388] @ (800ff78 ) 800fdf4: 4293 cmp r3, r2 800fdf6: d048 beq.n 800fe8a 800fdf8: 687b ldr r3, [r7, #4] 800fdfa: 681b ldr r3, [r3, #0] 800fdfc: 4a5f ldr r2, [pc, #380] @ (800ff7c ) 800fdfe: 4293 cmp r3, r2 800fe00: d040 beq.n 800fe84 800fe02: 687b ldr r3, [r7, #4] 800fe04: 681b ldr r3, [r3, #0] 800fe06: 4a5e ldr r2, [pc, #376] @ (800ff80 ) 800fe08: 4293 cmp r3, r2 800fe0a: d038 beq.n 800fe7e 800fe0c: 687b ldr r3, [r7, #4] 800fe0e: 681b ldr r3, [r3, #0] 800fe10: 4a5c ldr r2, [pc, #368] @ (800ff84 ) 800fe12: 4293 cmp r3, r2 800fe14: d030 beq.n 800fe78 800fe16: 687b ldr r3, [r7, #4] 800fe18: 681b ldr r3, [r3, #0] 800fe1a: 4a5b ldr r2, [pc, #364] @ (800ff88 ) 800fe1c: 4293 cmp r3, r2 800fe1e: d028 beq.n 800fe72 800fe20: 687b ldr r3, [r7, #4] 800fe22: 681b ldr r3, [r3, #0] 800fe24: 4a52 ldr r2, [pc, #328] @ (800ff70 ) 800fe26: 4293 cmp r3, r2 800fe28: d020 beq.n 800fe6c 800fe2a: 687b ldr r3, [r7, #4] 800fe2c: 681b ldr r3, [r3, #0] 800fe2e: 4a57 ldr r2, [pc, #348] @ (800ff8c ) 800fe30: 4293 cmp r3, r2 800fe32: d019 beq.n 800fe68 800fe34: 687b ldr r3, [r7, #4] 800fe36: 681b ldr r3, [r3, #0] 800fe38: 4a55 ldr r2, [pc, #340] @ (800ff90 ) 800fe3a: 4293 cmp r3, r2 800fe3c: d012 beq.n 800fe64 800fe3e: 687b ldr r3, [r7, #4] 800fe40: 681b ldr r3, [r3, #0] 800fe42: 4a54 ldr r2, [pc, #336] @ (800ff94 ) 800fe44: 4293 cmp r3, r2 800fe46: d00a beq.n 800fe5e 800fe48: 687b ldr r3, [r7, #4] 800fe4a: 681b ldr r3, [r3, #0] 800fe4c: 4a52 ldr r2, [pc, #328] @ (800ff98 ) 800fe4e: 4293 cmp r3, r2 800fe50: d102 bne.n 800fe58 800fe52: f44f 5380 mov.w r3, #4096 @ 0x1000 800fe56: e01b b.n 800fe90 800fe58: f44f 3380 mov.w r3, #65536 @ 0x10000 800fe5c: e018 b.n 800fe90 800fe5e: f44f 7380 mov.w r3, #256 @ 0x100 800fe62: e015 b.n 800fe90 800fe64: 2310 movs r3, #16 800fe66: e013 b.n 800fe90 800fe68: 2301 movs r3, #1 800fe6a: e011 b.n 800fe90 800fe6c: f04f 7380 mov.w r3, #16777216 @ 0x1000000 800fe70: e00e b.n 800fe90 800fe72: f44f 1380 mov.w r3, #1048576 @ 0x100000 800fe76: e00b b.n 800fe90 800fe78: f44f 3380 mov.w r3, #65536 @ 0x10000 800fe7c: e008 b.n 800fe90 800fe7e: f44f 5380 mov.w r3, #4096 @ 0x1000 800fe82: e005 b.n 800fe90 800fe84: f44f 7380 mov.w r3, #256 @ 0x100 800fe88: e002 b.n 800fe90 800fe8a: 2310 movs r3, #16 800fe8c: e000 b.n 800fe90 800fe8e: 2301 movs r3, #1 800fe90: 4a42 ldr r2, [pc, #264] @ (800ff9c ) 800fe92: 6053 str r3, [r2, #4] 800fe94: e057 b.n 800ff46 800fe96: 687b ldr r3, [r7, #4] 800fe98: 681b ldr r3, [r3, #0] 800fe9a: 4a36 ldr r2, [pc, #216] @ (800ff74 ) 800fe9c: 4293 cmp r3, r2 800fe9e: d04f beq.n 800ff40 800fea0: 687b ldr r3, [r7, #4] 800fea2: 681b ldr r3, [r3, #0] 800fea4: 4a34 ldr r2, [pc, #208] @ (800ff78 ) 800fea6: 4293 cmp r3, r2 800fea8: d048 beq.n 800ff3c 800feaa: 687b ldr r3, [r7, #4] 800feac: 681b ldr r3, [r3, #0] 800feae: 4a33 ldr r2, [pc, #204] @ (800ff7c ) 800feb0: 4293 cmp r3, r2 800feb2: d040 beq.n 800ff36 800feb4: 687b ldr r3, [r7, #4] 800feb6: 681b ldr r3, [r3, #0] 800feb8: 4a31 ldr r2, [pc, #196] @ (800ff80 ) 800feba: 4293 cmp r3, r2 800febc: d038 beq.n 800ff30 800febe: 687b ldr r3, [r7, #4] 800fec0: 681b ldr r3, [r3, #0] 800fec2: 4a30 ldr r2, [pc, #192] @ (800ff84 ) 800fec4: 4293 cmp r3, r2 800fec6: d030 beq.n 800ff2a 800fec8: 687b ldr r3, [r7, #4] 800feca: 681b ldr r3, [r3, #0] 800fecc: 4a2e ldr r2, [pc, #184] @ (800ff88 ) 800fece: 4293 cmp r3, r2 800fed0: d028 beq.n 800ff24 800fed2: 687b ldr r3, [r7, #4] 800fed4: 681b ldr r3, [r3, #0] 800fed6: 4a26 ldr r2, [pc, #152] @ (800ff70 ) 800fed8: 4293 cmp r3, r2 800feda: d020 beq.n 800ff1e 800fedc: 687b ldr r3, [r7, #4] 800fede: 681b ldr r3, [r3, #0] 800fee0: 4a2a ldr r2, [pc, #168] @ (800ff8c ) 800fee2: 4293 cmp r3, r2 800fee4: d019 beq.n 800ff1a 800fee6: 687b ldr r3, [r7, #4] 800fee8: 681b ldr r3, [r3, #0] 800feea: 4a29 ldr r2, [pc, #164] @ (800ff90 ) 800feec: 4293 cmp r3, r2 800feee: d012 beq.n 800ff16 800fef0: 687b ldr r3, [r7, #4] 800fef2: 681b ldr r3, [r3, #0] 800fef4: 4a27 ldr r2, [pc, #156] @ (800ff94 ) 800fef6: 4293 cmp r3, r2 800fef8: d00a beq.n 800ff10 800fefa: 687b ldr r3, [r7, #4] 800fefc: 681b ldr r3, [r3, #0] 800fefe: 4a26 ldr r2, [pc, #152] @ (800ff98 ) 800ff00: 4293 cmp r3, r2 800ff02: d102 bne.n 800ff0a 800ff04: f44f 5380 mov.w r3, #4096 @ 0x1000 800ff08: e01b b.n 800ff42 800ff0a: f44f 3380 mov.w r3, #65536 @ 0x10000 800ff0e: e018 b.n 800ff42 800ff10: f44f 7380 mov.w r3, #256 @ 0x100 800ff14: e015 b.n 800ff42 800ff16: 2310 movs r3, #16 800ff18: e013 b.n 800ff42 800ff1a: 2301 movs r3, #1 800ff1c: e011 b.n 800ff42 800ff1e: f04f 7380 mov.w r3, #16777216 @ 0x1000000 800ff22: e00e b.n 800ff42 800ff24: f44f 1380 mov.w r3, #1048576 @ 0x100000 800ff28: e00b b.n 800ff42 800ff2a: f44f 3380 mov.w r3, #65536 @ 0x10000 800ff2e: e008 b.n 800ff42 800ff30: f44f 5380 mov.w r3, #4096 @ 0x1000 800ff34: e005 b.n 800ff42 800ff36: f44f 7380 mov.w r3, #256 @ 0x100 800ff3a: e002 b.n 800ff42 800ff3c: 2310 movs r3, #16 800ff3e: e000 b.n 800ff42 800ff40: 2301 movs r3, #1 800ff42: 4a17 ldr r2, [pc, #92] @ (800ffa0 ) 800ff44: 6053 str r3, [r2, #4] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 800ff46: 687b ldr r3, [r7, #4] 800ff48: 2201 movs r2, #1 800ff4a: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800ff4e: 687b ldr r3, [r7, #4] 800ff50: 2200 movs r2, #0 800ff52: f883 2020 strb.w r2, [r3, #32] /* Call User Abort callback */ if(hdma->XferAbortCallback != NULL) 800ff56: 687b ldr r3, [r7, #4] 800ff58: 6b5b ldr r3, [r3, #52] @ 0x34 800ff5a: 2b00 cmp r3, #0 800ff5c: d003 beq.n 800ff66 { hdma->XferAbortCallback(hdma); 800ff5e: 687b ldr r3, [r7, #4] 800ff60: 6b5b ldr r3, [r3, #52] @ 0x34 800ff62: 6878 ldr r0, [r7, #4] 800ff64: 4798 blx r3 } } return status; 800ff66: 7bfb ldrb r3, [r7, #15] } 800ff68: 4618 mov r0, r3 800ff6a: 3710 adds r7, #16 800ff6c: 46bd mov sp, r7 800ff6e: bd80 pop {r7, pc} 800ff70: 40020080 .word 0x40020080 800ff74: 40020008 .word 0x40020008 800ff78: 4002001c .word 0x4002001c 800ff7c: 40020030 .word 0x40020030 800ff80: 40020044 .word 0x40020044 800ff84: 40020058 .word 0x40020058 800ff88: 4002006c .word 0x4002006c 800ff8c: 40020408 .word 0x40020408 800ff90: 4002041c .word 0x4002041c 800ff94: 40020430 .word 0x40020430 800ff98: 40020444 .word 0x40020444 800ff9c: 40020400 .word 0x40020400 800ffa0: 40020000 .word 0x40020000 0800ffa4 : * @param hdma: pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval None */ void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma) { 800ffa4: b580 push {r7, lr} 800ffa6: b084 sub sp, #16 800ffa8: af00 add r7, sp, #0 800ffaa: 6078 str r0, [r7, #4] uint32_t flag_it = hdma->DmaBaseAddress->ISR; 800ffac: 687b ldr r3, [r7, #4] 800ffae: 6bdb ldr r3, [r3, #60] @ 0x3c 800ffb0: 681b ldr r3, [r3, #0] 800ffb2: 60fb str r3, [r7, #12] uint32_t source_it = hdma->Instance->CCR; 800ffb4: 687b ldr r3, [r7, #4] 800ffb6: 681b ldr r3, [r3, #0] 800ffb8: 681b ldr r3, [r3, #0] 800ffba: 60bb str r3, [r7, #8] /* Half Transfer Complete Interrupt management ******************************/ if (((flag_it & (DMA_FLAG_HT1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_HT) != RESET)) 800ffbc: 687b ldr r3, [r7, #4] 800ffbe: 6c1b ldr r3, [r3, #64] @ 0x40 800ffc0: 2204 movs r2, #4 800ffc2: 409a lsls r2, r3 800ffc4: 68fb ldr r3, [r7, #12] 800ffc6: 4013 ands r3, r2 800ffc8: 2b00 cmp r3, #0 800ffca: f000 80f1 beq.w 80101b0 800ffce: 68bb ldr r3, [r7, #8] 800ffd0: f003 0304 and.w r3, r3, #4 800ffd4: 2b00 cmp r3, #0 800ffd6: f000 80eb beq.w 80101b0 { /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 800ffda: 687b ldr r3, [r7, #4] 800ffdc: 681b ldr r3, [r3, #0] 800ffde: 681b ldr r3, [r3, #0] 800ffe0: f003 0320 and.w r3, r3, #32 800ffe4: 2b00 cmp r3, #0 800ffe6: d107 bne.n 800fff8 { /* Disable the half transfer interrupt */ __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); 800ffe8: 687b ldr r3, [r7, #4] 800ffea: 681b ldr r3, [r3, #0] 800ffec: 681a ldr r2, [r3, #0] 800ffee: 687b ldr r3, [r7, #4] 800fff0: 681b ldr r3, [r3, #0] 800fff2: f022 0204 bic.w r2, r2, #4 800fff6: 601a str r2, [r3, #0] } /* Clear the half transfer complete flag */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma)); 800fff8: 687b ldr r3, [r7, #4] 800fffa: 681b ldr r3, [r3, #0] 800fffc: 461a mov r2, r3 800fffe: 4b5f ldr r3, [pc, #380] @ (801017c ) 8010000: 429a cmp r2, r3 8010002: d958 bls.n 80100b6 8010004: 687b ldr r3, [r7, #4] 8010006: 681b ldr r3, [r3, #0] 8010008: 4a5d ldr r2, [pc, #372] @ (8010180 ) 801000a: 4293 cmp r3, r2 801000c: d04f beq.n 80100ae 801000e: 687b ldr r3, [r7, #4] 8010010: 681b ldr r3, [r3, #0] 8010012: 4a5c ldr r2, [pc, #368] @ (8010184 ) 8010014: 4293 cmp r3, r2 8010016: d048 beq.n 80100aa 8010018: 687b ldr r3, [r7, #4] 801001a: 681b ldr r3, [r3, #0] 801001c: 4a5a ldr r2, [pc, #360] @ (8010188 ) 801001e: 4293 cmp r3, r2 8010020: d040 beq.n 80100a4 8010022: 687b ldr r3, [r7, #4] 8010024: 681b ldr r3, [r3, #0] 8010026: 4a59 ldr r2, [pc, #356] @ (801018c ) 8010028: 4293 cmp r3, r2 801002a: d038 beq.n 801009e 801002c: 687b ldr r3, [r7, #4] 801002e: 681b ldr r3, [r3, #0] 8010030: 4a57 ldr r2, [pc, #348] @ (8010190 ) 8010032: 4293 cmp r3, r2 8010034: d030 beq.n 8010098 8010036: 687b ldr r3, [r7, #4] 8010038: 681b ldr r3, [r3, #0] 801003a: 4a56 ldr r2, [pc, #344] @ (8010194 ) 801003c: 4293 cmp r3, r2 801003e: d028 beq.n 8010092 8010040: 687b ldr r3, [r7, #4] 8010042: 681b ldr r3, [r3, #0] 8010044: 4a4d ldr r2, [pc, #308] @ (801017c ) 8010046: 4293 cmp r3, r2 8010048: d020 beq.n 801008c 801004a: 687b ldr r3, [r7, #4] 801004c: 681b ldr r3, [r3, #0] 801004e: 4a52 ldr r2, [pc, #328] @ (8010198 ) 8010050: 4293 cmp r3, r2 8010052: d019 beq.n 8010088 8010054: 687b ldr r3, [r7, #4] 8010056: 681b ldr r3, [r3, #0] 8010058: 4a50 ldr r2, [pc, #320] @ (801019c ) 801005a: 4293 cmp r3, r2 801005c: d012 beq.n 8010084 801005e: 687b ldr r3, [r7, #4] 8010060: 681b ldr r3, [r3, #0] 8010062: 4a4f ldr r2, [pc, #316] @ (80101a0 ) 8010064: 4293 cmp r3, r2 8010066: d00a beq.n 801007e 8010068: 687b ldr r3, [r7, #4] 801006a: 681b ldr r3, [r3, #0] 801006c: 4a4d ldr r2, [pc, #308] @ (80101a4 ) 801006e: 4293 cmp r3, r2 8010070: d102 bne.n 8010078 8010072: f44f 4380 mov.w r3, #16384 @ 0x4000 8010076: e01b b.n 80100b0 8010078: f44f 2380 mov.w r3, #262144 @ 0x40000 801007c: e018 b.n 80100b0 801007e: f44f 6380 mov.w r3, #1024 @ 0x400 8010082: e015 b.n 80100b0 8010084: 2340 movs r3, #64 @ 0x40 8010086: e013 b.n 80100b0 8010088: 2304 movs r3, #4 801008a: e011 b.n 80100b0 801008c: f04f 6380 mov.w r3, #67108864 @ 0x4000000 8010090: e00e b.n 80100b0 8010092: f44f 0380 mov.w r3, #4194304 @ 0x400000 8010096: e00b b.n 80100b0 8010098: f44f 2380 mov.w r3, #262144 @ 0x40000 801009c: e008 b.n 80100b0 801009e: f44f 4380 mov.w r3, #16384 @ 0x4000 80100a2: e005 b.n 80100b0 80100a4: f44f 6380 mov.w r3, #1024 @ 0x400 80100a8: e002 b.n 80100b0 80100aa: 2340 movs r3, #64 @ 0x40 80100ac: e000 b.n 80100b0 80100ae: 2304 movs r3, #4 80100b0: 4a3d ldr r2, [pc, #244] @ (80101a8 ) 80100b2: 6053 str r3, [r2, #4] 80100b4: e057 b.n 8010166 80100b6: 687b ldr r3, [r7, #4] 80100b8: 681b ldr r3, [r3, #0] 80100ba: 4a31 ldr r2, [pc, #196] @ (8010180 ) 80100bc: 4293 cmp r3, r2 80100be: d04f beq.n 8010160 80100c0: 687b ldr r3, [r7, #4] 80100c2: 681b ldr r3, [r3, #0] 80100c4: 4a2f ldr r2, [pc, #188] @ (8010184 ) 80100c6: 4293 cmp r3, r2 80100c8: d048 beq.n 801015c 80100ca: 687b ldr r3, [r7, #4] 80100cc: 681b ldr r3, [r3, #0] 80100ce: 4a2e ldr r2, [pc, #184] @ (8010188 ) 80100d0: 4293 cmp r3, r2 80100d2: d040 beq.n 8010156 80100d4: 687b ldr r3, [r7, #4] 80100d6: 681b ldr r3, [r3, #0] 80100d8: 4a2c ldr r2, [pc, #176] @ (801018c ) 80100da: 4293 cmp r3, r2 80100dc: d038 beq.n 8010150 80100de: 687b ldr r3, [r7, #4] 80100e0: 681b ldr r3, [r3, #0] 80100e2: 4a2b ldr r2, [pc, #172] @ (8010190 ) 80100e4: 4293 cmp r3, r2 80100e6: d030 beq.n 801014a 80100e8: 687b ldr r3, [r7, #4] 80100ea: 681b ldr r3, [r3, #0] 80100ec: 4a29 ldr r2, [pc, #164] @ (8010194 ) 80100ee: 4293 cmp r3, r2 80100f0: d028 beq.n 8010144 80100f2: 687b ldr r3, [r7, #4] 80100f4: 681b ldr r3, [r3, #0] 80100f6: 4a21 ldr r2, [pc, #132] @ (801017c ) 80100f8: 4293 cmp r3, r2 80100fa: d020 beq.n 801013e 80100fc: 687b ldr r3, [r7, #4] 80100fe: 681b ldr r3, [r3, #0] 8010100: 4a25 ldr r2, [pc, #148] @ (8010198 ) 8010102: 4293 cmp r3, r2 8010104: d019 beq.n 801013a 8010106: 687b ldr r3, [r7, #4] 8010108: 681b ldr r3, [r3, #0] 801010a: 4a24 ldr r2, [pc, #144] @ (801019c ) 801010c: 4293 cmp r3, r2 801010e: d012 beq.n 8010136 8010110: 687b ldr r3, [r7, #4] 8010112: 681b ldr r3, [r3, #0] 8010114: 4a22 ldr r2, [pc, #136] @ (80101a0 ) 8010116: 4293 cmp r3, r2 8010118: d00a beq.n 8010130 801011a: 687b ldr r3, [r7, #4] 801011c: 681b ldr r3, [r3, #0] 801011e: 4a21 ldr r2, [pc, #132] @ (80101a4 ) 8010120: 4293 cmp r3, r2 8010122: d102 bne.n 801012a 8010124: f44f 4380 mov.w r3, #16384 @ 0x4000 8010128: e01b b.n 8010162 801012a: f44f 2380 mov.w r3, #262144 @ 0x40000 801012e: e018 b.n 8010162 8010130: f44f 6380 mov.w r3, #1024 @ 0x400 8010134: e015 b.n 8010162 8010136: 2340 movs r3, #64 @ 0x40 8010138: e013 b.n 8010162 801013a: 2304 movs r3, #4 801013c: e011 b.n 8010162 801013e: f04f 6380 mov.w r3, #67108864 @ 0x4000000 8010142: e00e b.n 8010162 8010144: f44f 0380 mov.w r3, #4194304 @ 0x400000 8010148: e00b b.n 8010162 801014a: f44f 2380 mov.w r3, #262144 @ 0x40000 801014e: e008 b.n 8010162 8010150: f44f 4380 mov.w r3, #16384 @ 0x4000 8010154: e005 b.n 8010162 8010156: f44f 6380 mov.w r3, #1024 @ 0x400 801015a: e002 b.n 8010162 801015c: 2340 movs r3, #64 @ 0x40 801015e: e000 b.n 8010162 8010160: 2304 movs r3, #4 8010162: 4a12 ldr r2, [pc, #72] @ (80101ac ) 8010164: 6053 str r3, [r2, #4] /* DMA peripheral state is not updated in Half Transfer */ /* but in Transfer Complete case */ if(hdma->XferHalfCpltCallback != NULL) 8010166: 687b ldr r3, [r7, #4] 8010168: 6adb ldr r3, [r3, #44] @ 0x2c 801016a: 2b00 cmp r3, #0 801016c: f000 8136 beq.w 80103dc { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); 8010170: 687b ldr r3, [r7, #4] 8010172: 6adb ldr r3, [r3, #44] @ 0x2c 8010174: 6878 ldr r0, [r7, #4] 8010176: 4798 blx r3 if(hdma->XferHalfCpltCallback != NULL) 8010178: e130 b.n 80103dc 801017a: bf00 nop 801017c: 40020080 .word 0x40020080 8010180: 40020008 .word 0x40020008 8010184: 4002001c .word 0x4002001c 8010188: 40020030 .word 0x40020030 801018c: 40020044 .word 0x40020044 8010190: 40020058 .word 0x40020058 8010194: 4002006c .word 0x4002006c 8010198: 40020408 .word 0x40020408 801019c: 4002041c .word 0x4002041c 80101a0: 40020430 .word 0x40020430 80101a4: 40020444 .word 0x40020444 80101a8: 40020400 .word 0x40020400 80101ac: 40020000 .word 0x40020000 } } /* Transfer Complete Interrupt management ***********************************/ else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET)) 80101b0: 687b ldr r3, [r7, #4] 80101b2: 6c1b ldr r3, [r3, #64] @ 0x40 80101b4: 2202 movs r2, #2 80101b6: 409a lsls r2, r3 80101b8: 68fb ldr r3, [r7, #12] 80101ba: 4013 ands r3, r2 80101bc: 2b00 cmp r3, #0 80101be: f000 80dd beq.w 801037c 80101c2: 68bb ldr r3, [r7, #8] 80101c4: f003 0302 and.w r3, r3, #2 80101c8: 2b00 cmp r3, #0 80101ca: f000 80d7 beq.w 801037c { if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 80101ce: 687b ldr r3, [r7, #4] 80101d0: 681b ldr r3, [r3, #0] 80101d2: 681b ldr r3, [r3, #0] 80101d4: f003 0320 and.w r3, r3, #32 80101d8: 2b00 cmp r3, #0 80101da: d10b bne.n 80101f4 { /* Disable the transfer complete and error interrupt */ __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC); 80101dc: 687b ldr r3, [r7, #4] 80101de: 681b ldr r3, [r3, #0] 80101e0: 681a ldr r2, [r3, #0] 80101e2: 687b ldr r3, [r7, #4] 80101e4: 681b ldr r3, [r3, #0] 80101e6: f022 020a bic.w r2, r2, #10 80101ea: 601a str r2, [r3, #0] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 80101ec: 687b ldr r3, [r7, #4] 80101ee: 2201 movs r2, #1 80101f0: f883 2021 strb.w r2, [r3, #33] @ 0x21 } /* Clear the transfer complete flag */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_TC_FLAG_INDEX(hdma)); 80101f4: 687b ldr r3, [r7, #4] 80101f6: 681b ldr r3, [r3, #0] 80101f8: 461a mov r2, r3 80101fa: 4b7b ldr r3, [pc, #492] @ (80103e8 ) 80101fc: 429a cmp r2, r3 80101fe: d958 bls.n 80102b2 8010200: 687b ldr r3, [r7, #4] 8010202: 681b ldr r3, [r3, #0] 8010204: 4a79 ldr r2, [pc, #484] @ (80103ec ) 8010206: 4293 cmp r3, r2 8010208: d04f beq.n 80102aa 801020a: 687b ldr r3, [r7, #4] 801020c: 681b ldr r3, [r3, #0] 801020e: 4a78 ldr r2, [pc, #480] @ (80103f0 ) 8010210: 4293 cmp r3, r2 8010212: d048 beq.n 80102a6 8010214: 687b ldr r3, [r7, #4] 8010216: 681b ldr r3, [r3, #0] 8010218: 4a76 ldr r2, [pc, #472] @ (80103f4 ) 801021a: 4293 cmp r3, r2 801021c: d040 beq.n 80102a0 801021e: 687b ldr r3, [r7, #4] 8010220: 681b ldr r3, [r3, #0] 8010222: 4a75 ldr r2, [pc, #468] @ (80103f8 ) 8010224: 4293 cmp r3, r2 8010226: d038 beq.n 801029a 8010228: 687b ldr r3, [r7, #4] 801022a: 681b ldr r3, [r3, #0] 801022c: 4a73 ldr r2, [pc, #460] @ (80103fc ) 801022e: 4293 cmp r3, r2 8010230: d030 beq.n 8010294 8010232: 687b ldr r3, [r7, #4] 8010234: 681b ldr r3, [r3, #0] 8010236: 4a72 ldr r2, [pc, #456] @ (8010400 ) 8010238: 4293 cmp r3, r2 801023a: d028 beq.n 801028e 801023c: 687b ldr r3, [r7, #4] 801023e: 681b ldr r3, [r3, #0] 8010240: 4a69 ldr r2, [pc, #420] @ (80103e8 ) 8010242: 4293 cmp r3, r2 8010244: d020 beq.n 8010288 8010246: 687b ldr r3, [r7, #4] 8010248: 681b ldr r3, [r3, #0] 801024a: 4a6e ldr r2, [pc, #440] @ (8010404 ) 801024c: 4293 cmp r3, r2 801024e: d019 beq.n 8010284 8010250: 687b ldr r3, [r7, #4] 8010252: 681b ldr r3, [r3, #0] 8010254: 4a6c ldr r2, [pc, #432] @ (8010408 ) 8010256: 4293 cmp r3, r2 8010258: d012 beq.n 8010280 801025a: 687b ldr r3, [r7, #4] 801025c: 681b ldr r3, [r3, #0] 801025e: 4a6b ldr r2, [pc, #428] @ (801040c ) 8010260: 4293 cmp r3, r2 8010262: d00a beq.n 801027a 8010264: 687b ldr r3, [r7, #4] 8010266: 681b ldr r3, [r3, #0] 8010268: 4a69 ldr r2, [pc, #420] @ (8010410 ) 801026a: 4293 cmp r3, r2 801026c: d102 bne.n 8010274 801026e: f44f 5300 mov.w r3, #8192 @ 0x2000 8010272: e01b b.n 80102ac 8010274: f44f 3300 mov.w r3, #131072 @ 0x20000 8010278: e018 b.n 80102ac 801027a: f44f 7300 mov.w r3, #512 @ 0x200 801027e: e015 b.n 80102ac 8010280: 2320 movs r3, #32 8010282: e013 b.n 80102ac 8010284: 2302 movs r3, #2 8010286: e011 b.n 80102ac 8010288: f04f 7300 mov.w r3, #33554432 @ 0x2000000 801028c: e00e b.n 80102ac 801028e: f44f 1300 mov.w r3, #2097152 @ 0x200000 8010292: e00b b.n 80102ac 8010294: f44f 3300 mov.w r3, #131072 @ 0x20000 8010298: e008 b.n 80102ac 801029a: f44f 5300 mov.w r3, #8192 @ 0x2000 801029e: e005 b.n 80102ac 80102a0: f44f 7300 mov.w r3, #512 @ 0x200 80102a4: e002 b.n 80102ac 80102a6: 2320 movs r3, #32 80102a8: e000 b.n 80102ac 80102aa: 2302 movs r3, #2 80102ac: 4a59 ldr r2, [pc, #356] @ (8010414 ) 80102ae: 6053 str r3, [r2, #4] 80102b0: e057 b.n 8010362 80102b2: 687b ldr r3, [r7, #4] 80102b4: 681b ldr r3, [r3, #0] 80102b6: 4a4d ldr r2, [pc, #308] @ (80103ec ) 80102b8: 4293 cmp r3, r2 80102ba: d04f beq.n 801035c 80102bc: 687b ldr r3, [r7, #4] 80102be: 681b ldr r3, [r3, #0] 80102c0: 4a4b ldr r2, [pc, #300] @ (80103f0 ) 80102c2: 4293 cmp r3, r2 80102c4: d048 beq.n 8010358 80102c6: 687b ldr r3, [r7, #4] 80102c8: 681b ldr r3, [r3, #0] 80102ca: 4a4a ldr r2, [pc, #296] @ (80103f4 ) 80102cc: 4293 cmp r3, r2 80102ce: d040 beq.n 8010352 80102d0: 687b ldr r3, [r7, #4] 80102d2: 681b ldr r3, [r3, #0] 80102d4: 4a48 ldr r2, [pc, #288] @ (80103f8 ) 80102d6: 4293 cmp r3, r2 80102d8: d038 beq.n 801034c 80102da: 687b ldr r3, [r7, #4] 80102dc: 681b ldr r3, [r3, #0] 80102de: 4a47 ldr r2, [pc, #284] @ (80103fc ) 80102e0: 4293 cmp r3, r2 80102e2: d030 beq.n 8010346 80102e4: 687b ldr r3, [r7, #4] 80102e6: 681b ldr r3, [r3, #0] 80102e8: 4a45 ldr r2, [pc, #276] @ (8010400 ) 80102ea: 4293 cmp r3, r2 80102ec: d028 beq.n 8010340 80102ee: 687b ldr r3, [r7, #4] 80102f0: 681b ldr r3, [r3, #0] 80102f2: 4a3d ldr r2, [pc, #244] @ (80103e8 ) 80102f4: 4293 cmp r3, r2 80102f6: d020 beq.n 801033a 80102f8: 687b ldr r3, [r7, #4] 80102fa: 681b ldr r3, [r3, #0] 80102fc: 4a41 ldr r2, [pc, #260] @ (8010404 ) 80102fe: 4293 cmp r3, r2 8010300: d019 beq.n 8010336 8010302: 687b ldr r3, [r7, #4] 8010304: 681b ldr r3, [r3, #0] 8010306: 4a40 ldr r2, [pc, #256] @ (8010408 ) 8010308: 4293 cmp r3, r2 801030a: d012 beq.n 8010332 801030c: 687b ldr r3, [r7, #4] 801030e: 681b ldr r3, [r3, #0] 8010310: 4a3e ldr r2, [pc, #248] @ (801040c ) 8010312: 4293 cmp r3, r2 8010314: d00a beq.n 801032c 8010316: 687b ldr r3, [r7, #4] 8010318: 681b ldr r3, [r3, #0] 801031a: 4a3d ldr r2, [pc, #244] @ (8010410 ) 801031c: 4293 cmp r3, r2 801031e: d102 bne.n 8010326 8010320: f44f 5300 mov.w r3, #8192 @ 0x2000 8010324: e01b b.n 801035e 8010326: f44f 3300 mov.w r3, #131072 @ 0x20000 801032a: e018 b.n 801035e 801032c: f44f 7300 mov.w r3, #512 @ 0x200 8010330: e015 b.n 801035e 8010332: 2320 movs r3, #32 8010334: e013 b.n 801035e 8010336: 2302 movs r3, #2 8010338: e011 b.n 801035e 801033a: f04f 7300 mov.w r3, #33554432 @ 0x2000000 801033e: e00e b.n 801035e 8010340: f44f 1300 mov.w r3, #2097152 @ 0x200000 8010344: e00b b.n 801035e 8010346: f44f 3300 mov.w r3, #131072 @ 0x20000 801034a: e008 b.n 801035e 801034c: f44f 5300 mov.w r3, #8192 @ 0x2000 8010350: e005 b.n 801035e 8010352: f44f 7300 mov.w r3, #512 @ 0x200 8010356: e002 b.n 801035e 8010358: 2320 movs r3, #32 801035a: e000 b.n 801035e 801035c: 2302 movs r3, #2 801035e: 4a2e ldr r2, [pc, #184] @ (8010418 ) 8010360: 6053 str r3, [r2, #4] /* Process Unlocked */ __HAL_UNLOCK(hdma); 8010362: 687b ldr r3, [r7, #4] 8010364: 2200 movs r2, #0 8010366: f883 2020 strb.w r2, [r3, #32] if(hdma->XferCpltCallback != NULL) 801036a: 687b ldr r3, [r7, #4] 801036c: 6a9b ldr r3, [r3, #40] @ 0x28 801036e: 2b00 cmp r3, #0 8010370: d034 beq.n 80103dc { /* Transfer complete callback */ hdma->XferCpltCallback(hdma); 8010372: 687b ldr r3, [r7, #4] 8010374: 6a9b ldr r3, [r3, #40] @ 0x28 8010376: 6878 ldr r0, [r7, #4] 8010378: 4798 blx r3 if(hdma->XferCpltCallback != NULL) 801037a: e02f b.n 80103dc } } /* Transfer Error Interrupt management **************************************/ else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE))) 801037c: 687b ldr r3, [r7, #4] 801037e: 6c1b ldr r3, [r3, #64] @ 0x40 8010380: 2208 movs r2, #8 8010382: 409a lsls r2, r3 8010384: 68fb ldr r3, [r7, #12] 8010386: 4013 ands r3, r2 8010388: 2b00 cmp r3, #0 801038a: d028 beq.n 80103de 801038c: 68bb ldr r3, [r7, #8] 801038e: f003 0308 and.w r3, r3, #8 8010392: 2b00 cmp r3, #0 8010394: d023 beq.n 80103de { /* When a DMA transfer error occurs */ /* A hardware clear of its EN bits is performed */ /* Disable ALL DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 8010396: 687b ldr r3, [r7, #4] 8010398: 681b ldr r3, [r3, #0] 801039a: 681a ldr r2, [r3, #0] 801039c: 687b ldr r3, [r7, #4] 801039e: 681b ldr r3, [r3, #0] 80103a0: f022 020e bic.w r2, r2, #14 80103a4: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 80103a6: 687b ldr r3, [r7, #4] 80103a8: 6c1a ldr r2, [r3, #64] @ 0x40 80103aa: 687b ldr r3, [r7, #4] 80103ac: 6bdb ldr r3, [r3, #60] @ 0x3c 80103ae: 2101 movs r1, #1 80103b0: fa01 f202 lsl.w r2, r1, r2 80103b4: 605a str r2, [r3, #4] /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TE; 80103b6: 687b ldr r3, [r7, #4] 80103b8: 2201 movs r2, #1 80103ba: 639a str r2, [r3, #56] @ 0x38 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 80103bc: 687b ldr r3, [r7, #4] 80103be: 2201 movs r2, #1 80103c0: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 80103c4: 687b ldr r3, [r7, #4] 80103c6: 2200 movs r2, #0 80103c8: f883 2020 strb.w r2, [r3, #32] if (hdma->XferErrorCallback != NULL) 80103cc: 687b ldr r3, [r7, #4] 80103ce: 6b1b ldr r3, [r3, #48] @ 0x30 80103d0: 2b00 cmp r3, #0 80103d2: d004 beq.n 80103de { /* Transfer error callback */ hdma->XferErrorCallback(hdma); 80103d4: 687b ldr r3, [r7, #4] 80103d6: 6b1b ldr r3, [r3, #48] @ 0x30 80103d8: 6878 ldr r0, [r7, #4] 80103da: 4798 blx r3 } } return; 80103dc: bf00 nop 80103de: bf00 nop } 80103e0: 3710 adds r7, #16 80103e2: 46bd mov sp, r7 80103e4: bd80 pop {r7, pc} 80103e6: bf00 nop 80103e8: 40020080 .word 0x40020080 80103ec: 40020008 .word 0x40020008 80103f0: 4002001c .word 0x4002001c 80103f4: 40020030 .word 0x40020030 80103f8: 40020044 .word 0x40020044 80103fc: 40020058 .word 0x40020058 8010400: 4002006c .word 0x4002006c 8010404: 40020408 .word 0x40020408 8010408: 4002041c .word 0x4002041c 801040c: 40020430 .word 0x40020430 8010410: 40020444 .word 0x40020444 8010414: 40020400 .word 0x40020400 8010418: 40020000 .word 0x40020000 0801041c : * @param DstAddress: The destination memory Buffer address * @param DataLength: The length of data to be transferred from source to destination * @retval HAL status */ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { 801041c: b480 push {r7} 801041e: b085 sub sp, #20 8010420: af00 add r7, sp, #0 8010422: 60f8 str r0, [r7, #12] 8010424: 60b9 str r1, [r7, #8] 8010426: 607a str r2, [r7, #4] 8010428: 603b str r3, [r7, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 801042a: 68fb ldr r3, [r7, #12] 801042c: 6c1a ldr r2, [r3, #64] @ 0x40 801042e: 68fb ldr r3, [r7, #12] 8010430: 6bdb ldr r3, [r3, #60] @ 0x3c 8010432: 2101 movs r1, #1 8010434: fa01 f202 lsl.w r2, r1, r2 8010438: 605a str r2, [r3, #4] /* Configure DMA Channel data length */ hdma->Instance->CNDTR = DataLength; 801043a: 68fb ldr r3, [r7, #12] 801043c: 681b ldr r3, [r3, #0] 801043e: 683a ldr r2, [r7, #0] 8010440: 605a str r2, [r3, #4] /* Memory to Peripheral */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) 8010442: 68fb ldr r3, [r7, #12] 8010444: 685b ldr r3, [r3, #4] 8010446: 2b10 cmp r3, #16 8010448: d108 bne.n 801045c { /* Configure DMA Channel destination address */ hdma->Instance->CPAR = DstAddress; 801044a: 68fb ldr r3, [r7, #12] 801044c: 681b ldr r3, [r3, #0] 801044e: 687a ldr r2, [r7, #4] 8010450: 609a str r2, [r3, #8] /* Configure DMA Channel source address */ hdma->Instance->CMAR = SrcAddress; 8010452: 68fb ldr r3, [r7, #12] 8010454: 681b ldr r3, [r3, #0] 8010456: 68ba ldr r2, [r7, #8] 8010458: 60da str r2, [r3, #12] hdma->Instance->CPAR = SrcAddress; /* Configure DMA Channel destination address */ hdma->Instance->CMAR = DstAddress; } } 801045a: e007 b.n 801046c hdma->Instance->CPAR = SrcAddress; 801045c: 68fb ldr r3, [r7, #12] 801045e: 681b ldr r3, [r3, #0] 8010460: 68ba ldr r2, [r7, #8] 8010462: 609a str r2, [r3, #8] hdma->Instance->CMAR = DstAddress; 8010464: 68fb ldr r3, [r7, #12] 8010466: 681b ldr r3, [r3, #0] 8010468: 687a ldr r2, [r7, #4] 801046a: 60da str r2, [r3, #12] } 801046c: bf00 nop 801046e: 3714 adds r7, #20 8010470: 46bd mov sp, r7 8010472: bc80 pop {r7} 8010474: 4770 bx lr ... 08010478 : * @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) { 8010478: b480 push {r7} 801047a: b08b sub sp, #44 @ 0x2c 801047c: af00 add r7, sp, #0 801047e: 6078 str r0, [r7, #4] 8010480: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 8010482: 2300 movs r3, #0 8010484: 627b str r3, [r7, #36] @ 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; 8010486: 2300 movs r3, #0 8010488: 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) 801048a: e169 b.n 8010760 { /* Get the IO position */ ioposition = (0x01uL << position); 801048c: 2201 movs r2, #1 801048e: 6a7b ldr r3, [r7, #36] @ 0x24 8010490: fa02 f303 lsl.w r3, r2, r3 8010494: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; 8010496: 683b ldr r3, [r7, #0] 8010498: 681b ldr r3, [r3, #0] 801049a: 69fa ldr r2, [r7, #28] 801049c: 4013 ands r3, r2 801049e: 61bb str r3, [r7, #24] if (iocurrent == ioposition) 80104a0: 69ba ldr r2, [r7, #24] 80104a2: 69fb ldr r3, [r7, #28] 80104a4: 429a cmp r2, r3 80104a6: f040 8158 bne.w 801075a { /* 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) 80104aa: 683b ldr r3, [r7, #0] 80104ac: 685b ldr r3, [r3, #4] 80104ae: 4a9a ldr r2, [pc, #616] @ (8010718 ) 80104b0: 4293 cmp r3, r2 80104b2: d05e beq.n 8010572 80104b4: 4a98 ldr r2, [pc, #608] @ (8010718 ) 80104b6: 4293 cmp r3, r2 80104b8: d875 bhi.n 80105a6 80104ba: 4a98 ldr r2, [pc, #608] @ (801071c ) 80104bc: 4293 cmp r3, r2 80104be: d058 beq.n 8010572 80104c0: 4a96 ldr r2, [pc, #600] @ (801071c ) 80104c2: 4293 cmp r3, r2 80104c4: d86f bhi.n 80105a6 80104c6: 4a96 ldr r2, [pc, #600] @ (8010720 ) 80104c8: 4293 cmp r3, r2 80104ca: d052 beq.n 8010572 80104cc: 4a94 ldr r2, [pc, #592] @ (8010720 ) 80104ce: 4293 cmp r3, r2 80104d0: d869 bhi.n 80105a6 80104d2: 4a94 ldr r2, [pc, #592] @ (8010724 ) 80104d4: 4293 cmp r3, r2 80104d6: d04c beq.n 8010572 80104d8: 4a92 ldr r2, [pc, #584] @ (8010724 ) 80104da: 4293 cmp r3, r2 80104dc: d863 bhi.n 80105a6 80104de: 4a92 ldr r2, [pc, #584] @ (8010728 ) 80104e0: 4293 cmp r3, r2 80104e2: d046 beq.n 8010572 80104e4: 4a90 ldr r2, [pc, #576] @ (8010728 ) 80104e6: 4293 cmp r3, r2 80104e8: d85d bhi.n 80105a6 80104ea: 2b12 cmp r3, #18 80104ec: d82a bhi.n 8010544 80104ee: 2b12 cmp r3, #18 80104f0: d859 bhi.n 80105a6 80104f2: a201 add r2, pc, #4 @ (adr r2, 80104f8 ) 80104f4: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80104f8: 08010573 .word 0x08010573 80104fc: 0801054d .word 0x0801054d 8010500: 0801055f .word 0x0801055f 8010504: 080105a1 .word 0x080105a1 8010508: 080105a7 .word 0x080105a7 801050c: 080105a7 .word 0x080105a7 8010510: 080105a7 .word 0x080105a7 8010514: 080105a7 .word 0x080105a7 8010518: 080105a7 .word 0x080105a7 801051c: 080105a7 .word 0x080105a7 8010520: 080105a7 .word 0x080105a7 8010524: 080105a7 .word 0x080105a7 8010528: 080105a7 .word 0x080105a7 801052c: 080105a7 .word 0x080105a7 8010530: 080105a7 .word 0x080105a7 8010534: 080105a7 .word 0x080105a7 8010538: 080105a7 .word 0x080105a7 801053c: 08010555 .word 0x08010555 8010540: 08010569 .word 0x08010569 8010544: 4a79 ldr r2, [pc, #484] @ (801072c ) 8010546: 4293 cmp r3, r2 8010548: d013 beq.n 8010572 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; 801054a: e02c b.n 80105a6 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; 801054c: 683b ldr r3, [r7, #0] 801054e: 68db ldr r3, [r3, #12] 8010550: 623b str r3, [r7, #32] break; 8010552: e029 b.n 80105a8 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; 8010554: 683b ldr r3, [r7, #0] 8010556: 68db ldr r3, [r3, #12] 8010558: 3304 adds r3, #4 801055a: 623b str r3, [r7, #32] break; 801055c: e024 b.n 80105a8 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; 801055e: 683b ldr r3, [r7, #0] 8010560: 68db ldr r3, [r3, #12] 8010562: 3308 adds r3, #8 8010564: 623b str r3, [r7, #32] break; 8010566: e01f b.n 80105a8 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; 8010568: 683b ldr r3, [r7, #0] 801056a: 68db ldr r3, [r3, #12] 801056c: 330c adds r3, #12 801056e: 623b str r3, [r7, #32] break; 8010570: e01a b.n 80105a8 if (GPIO_Init->Pull == GPIO_NOPULL) 8010572: 683b ldr r3, [r7, #0] 8010574: 689b ldr r3, [r3, #8] 8010576: 2b00 cmp r3, #0 8010578: d102 bne.n 8010580 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; 801057a: 2304 movs r3, #4 801057c: 623b str r3, [r7, #32] break; 801057e: e013 b.n 80105a8 else if (GPIO_Init->Pull == GPIO_PULLUP) 8010580: 683b ldr r3, [r7, #0] 8010582: 689b ldr r3, [r3, #8] 8010584: 2b01 cmp r3, #1 8010586: d105 bne.n 8010594 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 8010588: 2308 movs r3, #8 801058a: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; 801058c: 687b ldr r3, [r7, #4] 801058e: 69fa ldr r2, [r7, #28] 8010590: 611a str r2, [r3, #16] break; 8010592: e009 b.n 80105a8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 8010594: 2308 movs r3, #8 8010596: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; 8010598: 687b ldr r3, [r7, #4] 801059a: 69fa ldr r2, [r7, #28] 801059c: 615a str r2, [r3, #20] break; 801059e: e003 b.n 80105a8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; 80105a0: 2300 movs r3, #0 80105a2: 623b str r3, [r7, #32] break; 80105a4: e000 b.n 80105a8 break; 80105a6: 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; 80105a8: 69bb ldr r3, [r7, #24] 80105aa: 2bff cmp r3, #255 @ 0xff 80105ac: d801 bhi.n 80105b2 80105ae: 687b ldr r3, [r7, #4] 80105b0: e001 b.n 80105b6 80105b2: 687b ldr r3, [r7, #4] 80105b4: 3304 adds r3, #4 80105b6: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); 80105b8: 69bb ldr r3, [r7, #24] 80105ba: 2bff cmp r3, #255 @ 0xff 80105bc: d802 bhi.n 80105c4 80105be: 6a7b ldr r3, [r7, #36] @ 0x24 80105c0: 009b lsls r3, r3, #2 80105c2: e002 b.n 80105ca 80105c4: 6a7b ldr r3, [r7, #36] @ 0x24 80105c6: 3b08 subs r3, #8 80105c8: 009b lsls r3, r3, #2 80105ca: 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)); 80105cc: 697b ldr r3, [r7, #20] 80105ce: 681a ldr r2, [r3, #0] 80105d0: 210f movs r1, #15 80105d2: 693b ldr r3, [r7, #16] 80105d4: fa01 f303 lsl.w r3, r1, r3 80105d8: 43db mvns r3, r3 80105da: 401a ands r2, r3 80105dc: 6a39 ldr r1, [r7, #32] 80105de: 693b ldr r3, [r7, #16] 80105e0: fa01 f303 lsl.w r3, r1, r3 80105e4: 431a orrs r2, r3 80105e6: 697b ldr r3, [r7, #20] 80105e8: 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) 80105ea: 683b ldr r3, [r7, #0] 80105ec: 685b ldr r3, [r3, #4] 80105ee: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80105f2: 2b00 cmp r3, #0 80105f4: f000 80b1 beq.w 801075a { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); 80105f8: 4b4d ldr r3, [pc, #308] @ (8010730 ) 80105fa: 699b ldr r3, [r3, #24] 80105fc: 4a4c ldr r2, [pc, #304] @ (8010730 ) 80105fe: f043 0301 orr.w r3, r3, #1 8010602: 6193 str r3, [r2, #24] 8010604: 4b4a ldr r3, [pc, #296] @ (8010730 ) 8010606: 699b ldr r3, [r3, #24] 8010608: f003 0301 and.w r3, r3, #1 801060c: 60bb str r3, [r7, #8] 801060e: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; 8010610: 4a48 ldr r2, [pc, #288] @ (8010734 ) 8010612: 6a7b ldr r3, [r7, #36] @ 0x24 8010614: 089b lsrs r3, r3, #2 8010616: 3302 adds r3, #2 8010618: f852 3023 ldr.w r3, [r2, r3, lsl #2] 801061c: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); 801061e: 6a7b ldr r3, [r7, #36] @ 0x24 8010620: f003 0303 and.w r3, r3, #3 8010624: 009b lsls r3, r3, #2 8010626: 220f movs r2, #15 8010628: fa02 f303 lsl.w r3, r2, r3 801062c: 43db mvns r3, r3 801062e: 68fa ldr r2, [r7, #12] 8010630: 4013 ands r3, r2 8010632: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); 8010634: 687b ldr r3, [r7, #4] 8010636: 4a40 ldr r2, [pc, #256] @ (8010738 ) 8010638: 4293 cmp r3, r2 801063a: d013 beq.n 8010664 801063c: 687b ldr r3, [r7, #4] 801063e: 4a3f ldr r2, [pc, #252] @ (801073c ) 8010640: 4293 cmp r3, r2 8010642: d00d beq.n 8010660 8010644: 687b ldr r3, [r7, #4] 8010646: 4a3e ldr r2, [pc, #248] @ (8010740 ) 8010648: 4293 cmp r3, r2 801064a: d007 beq.n 801065c 801064c: 687b ldr r3, [r7, #4] 801064e: 4a3d ldr r2, [pc, #244] @ (8010744 ) 8010650: 4293 cmp r3, r2 8010652: d101 bne.n 8010658 8010654: 2303 movs r3, #3 8010656: e006 b.n 8010666 8010658: 2304 movs r3, #4 801065a: e004 b.n 8010666 801065c: 2302 movs r3, #2 801065e: e002 b.n 8010666 8010660: 2301 movs r3, #1 8010662: e000 b.n 8010666 8010664: 2300 movs r3, #0 8010666: 6a7a ldr r2, [r7, #36] @ 0x24 8010668: f002 0203 and.w r2, r2, #3 801066c: 0092 lsls r2, r2, #2 801066e: 4093 lsls r3, r2 8010670: 68fa ldr r2, [r7, #12] 8010672: 4313 orrs r3, r2 8010674: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; 8010676: 492f ldr r1, [pc, #188] @ (8010734 ) 8010678: 6a7b ldr r3, [r7, #36] @ 0x24 801067a: 089b lsrs r3, r3, #2 801067c: 3302 adds r3, #2 801067e: 68fa ldr r2, [r7, #12] 8010680: f841 2023 str.w r2, [r1, r3, lsl #2] /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) 8010684: 683b ldr r3, [r7, #0] 8010686: 685b ldr r3, [r3, #4] 8010688: f403 1380 and.w r3, r3, #1048576 @ 0x100000 801068c: 2b00 cmp r3, #0 801068e: d006 beq.n 801069e { SET_BIT(EXTI->RTSR, iocurrent); 8010690: 4b2d ldr r3, [pc, #180] @ (8010748 ) 8010692: 689a ldr r2, [r3, #8] 8010694: 492c ldr r1, [pc, #176] @ (8010748 ) 8010696: 69bb ldr r3, [r7, #24] 8010698: 4313 orrs r3, r2 801069a: 608b str r3, [r1, #8] 801069c: e006 b.n 80106ac } else { CLEAR_BIT(EXTI->RTSR, iocurrent); 801069e: 4b2a ldr r3, [pc, #168] @ (8010748 ) 80106a0: 689a ldr r2, [r3, #8] 80106a2: 69bb ldr r3, [r7, #24] 80106a4: 43db mvns r3, r3 80106a6: 4928 ldr r1, [pc, #160] @ (8010748 ) 80106a8: 4013 ands r3, r2 80106aa: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) 80106ac: 683b ldr r3, [r7, #0] 80106ae: 685b ldr r3, [r3, #4] 80106b0: f403 1300 and.w r3, r3, #2097152 @ 0x200000 80106b4: 2b00 cmp r3, #0 80106b6: d006 beq.n 80106c6 { SET_BIT(EXTI->FTSR, iocurrent); 80106b8: 4b23 ldr r3, [pc, #140] @ (8010748 ) 80106ba: 68da ldr r2, [r3, #12] 80106bc: 4922 ldr r1, [pc, #136] @ (8010748 ) 80106be: 69bb ldr r3, [r7, #24] 80106c0: 4313 orrs r3, r2 80106c2: 60cb str r3, [r1, #12] 80106c4: e006 b.n 80106d4 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); 80106c6: 4b20 ldr r3, [pc, #128] @ (8010748 ) 80106c8: 68da ldr r2, [r3, #12] 80106ca: 69bb ldr r3, [r7, #24] 80106cc: 43db mvns r3, r3 80106ce: 491e ldr r1, [pc, #120] @ (8010748 ) 80106d0: 4013 ands r3, r2 80106d2: 60cb str r3, [r1, #12] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) 80106d4: 683b ldr r3, [r7, #0] 80106d6: 685b ldr r3, [r3, #4] 80106d8: f403 3300 and.w r3, r3, #131072 @ 0x20000 80106dc: 2b00 cmp r3, #0 80106de: d006 beq.n 80106ee { SET_BIT(EXTI->EMR, iocurrent); 80106e0: 4b19 ldr r3, [pc, #100] @ (8010748 ) 80106e2: 685a ldr r2, [r3, #4] 80106e4: 4918 ldr r1, [pc, #96] @ (8010748 ) 80106e6: 69bb ldr r3, [r7, #24] 80106e8: 4313 orrs r3, r2 80106ea: 604b str r3, [r1, #4] 80106ec: e006 b.n 80106fc } else { CLEAR_BIT(EXTI->EMR, iocurrent); 80106ee: 4b16 ldr r3, [pc, #88] @ (8010748 ) 80106f0: 685a ldr r2, [r3, #4] 80106f2: 69bb ldr r3, [r7, #24] 80106f4: 43db mvns r3, r3 80106f6: 4914 ldr r1, [pc, #80] @ (8010748 ) 80106f8: 4013 ands r3, r2 80106fa: 604b str r3, [r1, #4] } /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) 80106fc: 683b ldr r3, [r7, #0] 80106fe: 685b ldr r3, [r3, #4] 8010700: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010704: 2b00 cmp r3, #0 8010706: d021 beq.n 801074c { SET_BIT(EXTI->IMR, iocurrent); 8010708: 4b0f ldr r3, [pc, #60] @ (8010748 ) 801070a: 681a ldr r2, [r3, #0] 801070c: 490e ldr r1, [pc, #56] @ (8010748 ) 801070e: 69bb ldr r3, [r7, #24] 8010710: 4313 orrs r3, r2 8010712: 600b str r3, [r1, #0] 8010714: e021 b.n 801075a 8010716: bf00 nop 8010718: 10320000 .word 0x10320000 801071c: 10310000 .word 0x10310000 8010720: 10220000 .word 0x10220000 8010724: 10210000 .word 0x10210000 8010728: 10120000 .word 0x10120000 801072c: 10110000 .word 0x10110000 8010730: 40021000 .word 0x40021000 8010734: 40010000 .word 0x40010000 8010738: 40010800 .word 0x40010800 801073c: 40010c00 .word 0x40010c00 8010740: 40011000 .word 0x40011000 8010744: 40011400 .word 0x40011400 8010748: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->IMR, iocurrent); 801074c: 4b0b ldr r3, [pc, #44] @ (801077c ) 801074e: 681a ldr r2, [r3, #0] 8010750: 69bb ldr r3, [r7, #24] 8010752: 43db mvns r3, r3 8010754: 4909 ldr r1, [pc, #36] @ (801077c ) 8010756: 4013 ands r3, r2 8010758: 600b str r3, [r1, #0] } } } position++; 801075a: 6a7b ldr r3, [r7, #36] @ 0x24 801075c: 3301 adds r3, #1 801075e: 627b str r3, [r7, #36] @ 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) 8010760: 683b ldr r3, [r7, #0] 8010762: 681a ldr r2, [r3, #0] 8010764: 6a7b ldr r3, [r7, #36] @ 0x24 8010766: fa22 f303 lsr.w r3, r2, r3 801076a: 2b00 cmp r3, #0 801076c: f47f ae8e bne.w 801048c } } 8010770: bf00 nop 8010772: bf00 nop 8010774: 372c adds r7, #44 @ 0x2c 8010776: 46bd mov sp, r7 8010778: bc80 pop {r7} 801077a: 4770 bx lr 801077c: 40010400 .word 0x40010400 08010780 : * @param GPIO_Pin: specifies the port bit to be written. * This parameter can be one of GPIO_PIN_x where x can be (0..15). * @retval None */ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) { 8010780: b480 push {r7} 8010782: b089 sub sp, #36 @ 0x24 8010784: af00 add r7, sp, #0 8010786: 6078 str r0, [r7, #4] 8010788: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 801078a: 2300 movs r3, #0 801078c: 61fb str r3, [r7, #28] /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Pin)); /* Configure the port pins */ while ((GPIO_Pin >> position) != 0u) 801078e: e09a b.n 80108c6 { /* Get current io position */ iocurrent = (GPIO_Pin) & (1uL << position); 8010790: 2201 movs r2, #1 8010792: 69fb ldr r3, [r7, #28] 8010794: fa02 f303 lsl.w r3, r2, r3 8010798: 683a ldr r2, [r7, #0] 801079a: 4013 ands r3, r2 801079c: 61bb str r3, [r7, #24] if (iocurrent) 801079e: 69bb ldr r3, [r7, #24] 80107a0: 2b00 cmp r3, #0 80107a2: f000 808d beq.w 80108c0 { /*------------------------- EXTI Mode Configuration --------------------*/ /* Clear the External Interrupt or Event for the current IO */ tmp = AFIO->EXTICR[position >> 2u]; 80107a6: 4a4e ldr r2, [pc, #312] @ (80108e0 ) 80107a8: 69fb ldr r3, [r7, #28] 80107aa: 089b lsrs r3, r3, #2 80107ac: 3302 adds r3, #2 80107ae: f852 3023 ldr.w r3, [r2, r3, lsl #2] 80107b2: 617b str r3, [r7, #20] tmp &= 0x0FuL << (4u * (position & 0x03u)); 80107b4: 69fb ldr r3, [r7, #28] 80107b6: f003 0303 and.w r3, r3, #3 80107ba: 009b lsls r3, r3, #2 80107bc: 220f movs r2, #15 80107be: fa02 f303 lsl.w r3, r2, r3 80107c2: 697a ldr r2, [r7, #20] 80107c4: 4013 ands r3, r2 80107c6: 617b str r3, [r7, #20] if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) 80107c8: 687b ldr r3, [r7, #4] 80107ca: 4a46 ldr r2, [pc, #280] @ (80108e4 ) 80107cc: 4293 cmp r3, r2 80107ce: d013 beq.n 80107f8 80107d0: 687b ldr r3, [r7, #4] 80107d2: 4a45 ldr r2, [pc, #276] @ (80108e8 ) 80107d4: 4293 cmp r3, r2 80107d6: d00d beq.n 80107f4 80107d8: 687b ldr r3, [r7, #4] 80107da: 4a44 ldr r2, [pc, #272] @ (80108ec ) 80107dc: 4293 cmp r3, r2 80107de: d007 beq.n 80107f0 80107e0: 687b ldr r3, [r7, #4] 80107e2: 4a43 ldr r2, [pc, #268] @ (80108f0 ) 80107e4: 4293 cmp r3, r2 80107e6: d101 bne.n 80107ec 80107e8: 2303 movs r3, #3 80107ea: e006 b.n 80107fa 80107ec: 2304 movs r3, #4 80107ee: e004 b.n 80107fa 80107f0: 2302 movs r3, #2 80107f2: e002 b.n 80107fa 80107f4: 2301 movs r3, #1 80107f6: e000 b.n 80107fa 80107f8: 2300 movs r3, #0 80107fa: 69fa ldr r2, [r7, #28] 80107fc: f002 0203 and.w r2, r2, #3 8010800: 0092 lsls r2, r2, #2 8010802: 4093 lsls r3, r2 8010804: 697a ldr r2, [r7, #20] 8010806: 429a cmp r2, r3 8010808: d132 bne.n 8010870 { /* Clear EXTI line configuration */ CLEAR_BIT(EXTI->IMR, (uint32_t)iocurrent); 801080a: 4b3a ldr r3, [pc, #232] @ (80108f4 ) 801080c: 681a ldr r2, [r3, #0] 801080e: 69bb ldr r3, [r7, #24] 8010810: 43db mvns r3, r3 8010812: 4938 ldr r1, [pc, #224] @ (80108f4 ) 8010814: 4013 ands r3, r2 8010816: 600b str r3, [r1, #0] CLEAR_BIT(EXTI->EMR, (uint32_t)iocurrent); 8010818: 4b36 ldr r3, [pc, #216] @ (80108f4 ) 801081a: 685a ldr r2, [r3, #4] 801081c: 69bb ldr r3, [r7, #24] 801081e: 43db mvns r3, r3 8010820: 4934 ldr r1, [pc, #208] @ (80108f4 ) 8010822: 4013 ands r3, r2 8010824: 604b str r3, [r1, #4] /* Clear Rising Falling edge configuration */ CLEAR_BIT(EXTI->FTSR, (uint32_t)iocurrent); 8010826: 4b33 ldr r3, [pc, #204] @ (80108f4 ) 8010828: 68da ldr r2, [r3, #12] 801082a: 69bb ldr r3, [r7, #24] 801082c: 43db mvns r3, r3 801082e: 4931 ldr r1, [pc, #196] @ (80108f4 ) 8010830: 4013 ands r3, r2 8010832: 60cb str r3, [r1, #12] CLEAR_BIT(EXTI->RTSR, (uint32_t)iocurrent); 8010834: 4b2f ldr r3, [pc, #188] @ (80108f4 ) 8010836: 689a ldr r2, [r3, #8] 8010838: 69bb ldr r3, [r7, #24] 801083a: 43db mvns r3, r3 801083c: 492d ldr r1, [pc, #180] @ (80108f4 ) 801083e: 4013 ands r3, r2 8010840: 608b str r3, [r1, #8] tmp = 0x0FuL << (4u * (position & 0x03u)); 8010842: 69fb ldr r3, [r7, #28] 8010844: f003 0303 and.w r3, r3, #3 8010848: 009b lsls r3, r3, #2 801084a: 220f movs r2, #15 801084c: fa02 f303 lsl.w r3, r2, r3 8010850: 617b str r3, [r7, #20] CLEAR_BIT(AFIO->EXTICR[position >> 2u], tmp); 8010852: 4a23 ldr r2, [pc, #140] @ (80108e0 ) 8010854: 69fb ldr r3, [r7, #28] 8010856: 089b lsrs r3, r3, #2 8010858: 3302 adds r3, #2 801085a: f852 1023 ldr.w r1, [r2, r3, lsl #2] 801085e: 697b ldr r3, [r7, #20] 8010860: 43da mvns r2, r3 8010862: 481f ldr r0, [pc, #124] @ (80108e0 ) 8010864: 69fb ldr r3, [r7, #28] 8010866: 089b lsrs r3, r3, #2 8010868: 400a ands r2, r1 801086a: 3302 adds r3, #2 801086c: f840 2023 str.w r2, [r0, r3, lsl #2] } /*------------------------- GPIO Mode Configuration --------------------*/ /* 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; 8010870: 69bb ldr r3, [r7, #24] 8010872: 2bff cmp r3, #255 @ 0xff 8010874: d801 bhi.n 801087a 8010876: 687b ldr r3, [r7, #4] 8010878: e001 b.n 801087e 801087a: 687b ldr r3, [r7, #4] 801087c: 3304 adds r3, #4 801087e: 613b str r3, [r7, #16] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); 8010880: 69bb ldr r3, [r7, #24] 8010882: 2bff cmp r3, #255 @ 0xff 8010884: d802 bhi.n 801088c 8010886: 69fb ldr r3, [r7, #28] 8010888: 009b lsls r3, r3, #2 801088a: e002 b.n 8010892 801088c: 69fb ldr r3, [r7, #28] 801088e: 3b08 subs r3, #8 8010890: 009b lsls r3, r3, #2 8010892: 60fb str r3, [r7, #12] /* CRL/CRH default value is floating input(0x04) shifted to correct position */ MODIFY_REG(*configregister, ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), GPIO_CRL_CNF0_0 << registeroffset); 8010894: 693b ldr r3, [r7, #16] 8010896: 681a ldr r2, [r3, #0] 8010898: 210f movs r1, #15 801089a: 68fb ldr r3, [r7, #12] 801089c: fa01 f303 lsl.w r3, r1, r3 80108a0: 43db mvns r3, r3 80108a2: 401a ands r2, r3 80108a4: 2104 movs r1, #4 80108a6: 68fb ldr r3, [r7, #12] 80108a8: fa01 f303 lsl.w r3, r1, r3 80108ac: 431a orrs r2, r3 80108ae: 693b ldr r3, [r7, #16] 80108b0: 601a str r2, [r3, #0] /* ODR default value is 0 */ CLEAR_BIT(GPIOx->ODR, iocurrent); 80108b2: 687b ldr r3, [r7, #4] 80108b4: 68da ldr r2, [r3, #12] 80108b6: 69bb ldr r3, [r7, #24] 80108b8: 43db mvns r3, r3 80108ba: 401a ands r2, r3 80108bc: 687b ldr r3, [r7, #4] 80108be: 60da str r2, [r3, #12] } position++; 80108c0: 69fb ldr r3, [r7, #28] 80108c2: 3301 adds r3, #1 80108c4: 61fb str r3, [r7, #28] while ((GPIO_Pin >> position) != 0u) 80108c6: 683a ldr r2, [r7, #0] 80108c8: 69fb ldr r3, [r7, #28] 80108ca: fa22 f303 lsr.w r3, r2, r3 80108ce: 2b00 cmp r3, #0 80108d0: f47f af5e bne.w 8010790 } } 80108d4: bf00 nop 80108d6: bf00 nop 80108d8: 3724 adds r7, #36 @ 0x24 80108da: 46bd mov sp, r7 80108dc: bc80 pop {r7} 80108de: 4770 bx lr 80108e0: 40010000 .word 0x40010000 80108e4: 40010800 .word 0x40010800 80108e8: 40010c00 .word 0x40010c00 80108ec: 40011000 .word 0x40011000 80108f0: 40011400 .word 0x40011400 80108f4: 40010400 .word 0x40010400 080108f8 : * @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) { 80108f8: b480 push {r7} 80108fa: b085 sub sp, #20 80108fc: af00 add r7, sp, #0 80108fe: 6078 str r0, [r7, #4] 8010900: 460b mov r3, r1 8010902: 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) 8010904: 687b ldr r3, [r7, #4] 8010906: 689a ldr r2, [r3, #8] 8010908: 887b ldrh r3, [r7, #2] 801090a: 4013 ands r3, r2 801090c: 2b00 cmp r3, #0 801090e: d002 beq.n 8010916 { bitstatus = GPIO_PIN_SET; 8010910: 2301 movs r3, #1 8010912: 73fb strb r3, [r7, #15] 8010914: e001 b.n 801091a } else { bitstatus = GPIO_PIN_RESET; 8010916: 2300 movs r3, #0 8010918: 73fb strb r3, [r7, #15] } return bitstatus; 801091a: 7bfb ldrb r3, [r7, #15] } 801091c: 4618 mov r0, r3 801091e: 3714 adds r7, #20 8010920: 46bd mov sp, r7 8010922: bc80 pop {r7} 8010924: 4770 bx lr 08010926 : * @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) { 8010926: b480 push {r7} 8010928: b083 sub sp, #12 801092a: af00 add r7, sp, #0 801092c: 6078 str r0, [r7, #4] 801092e: 460b mov r3, r1 8010930: 807b strh r3, [r7, #2] 8010932: 4613 mov r3, r2 8010934: 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) 8010936: 787b ldrb r3, [r7, #1] 8010938: 2b00 cmp r3, #0 801093a: d003 beq.n 8010944 { GPIOx->BSRR = GPIO_Pin; 801093c: 887a ldrh r2, [r7, #2] 801093e: 687b ldr r3, [r7, #4] 8010940: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } 8010942: e003 b.n 801094c GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; 8010944: 887b ldrh r3, [r7, #2] 8010946: 041a lsls r2, r3, #16 8010948: 687b ldr r3, [r7, #4] 801094a: 611a str r2, [r3, #16] } 801094c: bf00 nop 801094e: 370c adds r7, #12 8010950: 46bd mov sp, r7 8010952: bc80 pop {r7} 8010954: 4770 bx lr ... 08010958 : * @note If the HSE divided by 128 is used as the RTC clock, the * Backup Domain Access should be kept enabled. * @retval None */ void HAL_PWR_EnableBkUpAccess(void) { 8010958: b480 push {r7} 801095a: af00 add r7, sp, #0 /* Enable access to RTC and backup registers */ *(__IO uint32_t *) CR_DBP_BB = (uint32_t)ENABLE; 801095c: 4b03 ldr r3, [pc, #12] @ (801096c ) 801095e: 2201 movs r2, #1 8010960: 601a str r2, [r3, #0] } 8010962: bf00 nop 8010964: 46bd mov sp, r7 8010966: bc80 pop {r7} 8010968: 4770 bx lr 801096a: bf00 nop 801096c: 420e0020 .word 0x420e0020 08010970 : * - Peripheral clocks * - LSI, LSE and RTC clocks * @retval HAL_StatusTypeDef */ HAL_StatusTypeDef HAL_RCC_DeInit(void) { 8010970: b580 push {r7, lr} 8010972: b082 sub sp, #8 8010974: af00 add r7, sp, #0 uint32_t tickstart; /* Get Start Tick */ tickstart = HAL_GetTick(); 8010976: f7fd fb5b bl 800e030 801097a: 6078 str r0, [r7, #4] /* Set HSION bit */ SET_BIT(RCC->CR, RCC_CR_HSION); 801097c: 4b60 ldr r3, [pc, #384] @ (8010b00 ) 801097e: 681b ldr r3, [r3, #0] 8010980: 4a5f ldr r2, [pc, #380] @ (8010b00 ) 8010982: f043 0301 orr.w r3, r3, #1 8010986: 6013 str r3, [r2, #0] /* Wait till HSI is ready */ while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) 8010988: e008 b.n 801099c { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 801098a: f7fd fb51 bl 800e030 801098e: 4602 mov r2, r0 8010990: 687b ldr r3, [r7, #4] 8010992: 1ad3 subs r3, r2, r3 8010994: 2b02 cmp r3, #2 8010996: d901 bls.n 801099c { return HAL_TIMEOUT; 8010998: 2303 movs r3, #3 801099a: e0ac b.n 8010af6 while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) 801099c: 4b58 ldr r3, [pc, #352] @ (8010b00 ) 801099e: 681b ldr r3, [r3, #0] 80109a0: f003 0302 and.w r3, r3, #2 80109a4: 2b00 cmp r3, #0 80109a6: d0f0 beq.n 801098a } } /* Set HSITRIM bits to the reset value */ MODIFY_REG(RCC->CR, RCC_CR_HSITRIM, (0x10U << RCC_CR_HSITRIM_Pos)); 80109a8: 4b55 ldr r3, [pc, #340] @ (8010b00 ) 80109aa: 681b ldr r3, [r3, #0] 80109ac: f023 03f8 bic.w r3, r3, #248 @ 0xf8 80109b0: 4a53 ldr r2, [pc, #332] @ (8010b00 ) 80109b2: f043 0380 orr.w r3, r3, #128 @ 0x80 80109b6: 6013 str r3, [r2, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80109b8: f7fd fb3a bl 800e030 80109bc: 6078 str r0, [r7, #4] /* Reset CFGR register */ CLEAR_REG(RCC->CFGR); 80109be: 4b50 ldr r3, [pc, #320] @ (8010b00 ) 80109c0: 2200 movs r2, #0 80109c2: 605a str r2, [r3, #4] /* Wait till clock switch is ready */ while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) 80109c4: e00a b.n 80109dc { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 80109c6: f7fd fb33 bl 800e030 80109ca: 4602 mov r2, r0 80109cc: 687b ldr r3, [r7, #4] 80109ce: 1ad3 subs r3, r2, r3 80109d0: f241 3288 movw r2, #5000 @ 0x1388 80109d4: 4293 cmp r3, r2 80109d6: d901 bls.n 80109dc { return HAL_TIMEOUT; 80109d8: 2303 movs r3, #3 80109da: e08c b.n 8010af6 while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) 80109dc: 4b48 ldr r3, [pc, #288] @ (8010b00 ) 80109de: 685b ldr r3, [r3, #4] 80109e0: f003 030c and.w r3, r3, #12 80109e4: 2b00 cmp r3, #0 80109e6: d1ee bne.n 80109c6 } } /* Update the SystemCoreClock global variable */ SystemCoreClock = HSI_VALUE; 80109e8: 4b46 ldr r3, [pc, #280] @ (8010b04 ) 80109ea: 4a47 ldr r2, [pc, #284] @ (8010b08 ) 80109ec: 601a str r2, [r3, #0] /* Adapt Systick interrupt period */ if (HAL_InitTick(uwTickPrio) != HAL_OK) 80109ee: 4b47 ldr r3, [pc, #284] @ (8010b0c ) 80109f0: 681b ldr r3, [r3, #0] 80109f2: 4618 mov r0, r3 80109f4: f7fd fada bl 800dfac 80109f8: 4603 mov r3, r0 80109fa: 2b00 cmp r3, #0 80109fc: d001 beq.n 8010a02 { return HAL_ERROR; 80109fe: 2301 movs r3, #1 8010a00: e079 b.n 8010af6 } /* Get Start Tick */ tickstart = HAL_GetTick(); 8010a02: f7fd fb15 bl 800e030 8010a06: 6078 str r0, [r7, #4] /* Second step is to clear PLLON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLLON); 8010a08: 4b3d ldr r3, [pc, #244] @ (8010b00 ) 8010a0a: 681b ldr r3, [r3, #0] 8010a0c: 4a3c ldr r2, [pc, #240] @ (8010b00 ) 8010a0e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 8010a12: 6013 str r3, [r2, #0] /* Wait till PLL is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) 8010a14: e008 b.n 8010a28 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 8010a16: f7fd fb0b bl 800e030 8010a1a: 4602 mov r2, r0 8010a1c: 687b ldr r3, [r7, #4] 8010a1e: 1ad3 subs r3, r2, r3 8010a20: 2b02 cmp r3, #2 8010a22: d901 bls.n 8010a28 { return HAL_TIMEOUT; 8010a24: 2303 movs r3, #3 8010a26: e066 b.n 8010af6 while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) 8010a28: 4b35 ldr r3, [pc, #212] @ (8010b00 ) 8010a2a: 681b ldr r3, [r3, #0] 8010a2c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8010a30: 2b00 cmp r3, #0 8010a32: d1f0 bne.n 8010a16 } } /* Ensure to reset PLLSRC and PLLMUL bits */ CLEAR_REG(RCC->CFGR); 8010a34: 4b32 ldr r3, [pc, #200] @ (8010b00 ) 8010a36: 2200 movs r2, #0 8010a38: 605a str r2, [r3, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010a3a: f7fd faf9 bl 800e030 8010a3e: 6078 str r0, [r7, #4] /* Reset HSEON & CSSON bits */ CLEAR_BIT(RCC->CR, RCC_CR_HSEON | RCC_CR_CSSON); 8010a40: 4b2f ldr r3, [pc, #188] @ (8010b00 ) 8010a42: 681b ldr r3, [r3, #0] 8010a44: 4a2e ldr r2, [pc, #184] @ (8010b00 ) 8010a46: f423 2310 bic.w r3, r3, #589824 @ 0x90000 8010a4a: 6013 str r3, [r2, #0] /* Wait till HSE is disabled */ while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) 8010a4c: e008 b.n 8010a60 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010a4e: f7fd faef bl 800e030 8010a52: 4602 mov r2, r0 8010a54: 687b ldr r3, [r7, #4] 8010a56: 1ad3 subs r3, r2, r3 8010a58: 2b64 cmp r3, #100 @ 0x64 8010a5a: d901 bls.n 8010a60 { return HAL_TIMEOUT; 8010a5c: 2303 movs r3, #3 8010a5e: e04a b.n 8010af6 while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) 8010a60: 4b27 ldr r3, [pc, #156] @ (8010b00 ) 8010a62: 681b ldr r3, [r3, #0] 8010a64: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010a68: 2b00 cmp r3, #0 8010a6a: d1f0 bne.n 8010a4e } } /* Reset HSEBYP bit */ CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); 8010a6c: 4b24 ldr r3, [pc, #144] @ (8010b00 ) 8010a6e: 681b ldr r3, [r3, #0] 8010a70: 4a23 ldr r2, [pc, #140] @ (8010b00 ) 8010a72: f423 2380 bic.w r3, r3, #262144 @ 0x40000 8010a76: 6013 str r3, [r2, #0] #if defined(RCC_PLL2_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); 8010a78: f7fd fada bl 800e030 8010a7c: 6078 str r0, [r7, #4] /* Clear PLL2ON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLL2ON); 8010a7e: 4b20 ldr r3, [pc, #128] @ (8010b00 ) 8010a80: 681b ldr r3, [r3, #0] 8010a82: 4a1f ldr r2, [pc, #124] @ (8010b00 ) 8010a84: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 8010a88: 6013 str r3, [r2, #0] /* Wait till PLL2 is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != RESET) 8010a8a: e008 b.n 8010a9e { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010a8c: f7fd fad0 bl 800e030 8010a90: 4602 mov r2, r0 8010a92: 687b ldr r3, [r7, #4] 8010a94: 1ad3 subs r3, r2, r3 8010a96: 2b64 cmp r3, #100 @ 0x64 8010a98: d901 bls.n 8010a9e { return HAL_TIMEOUT; 8010a9a: 2303 movs r3, #3 8010a9c: e02b b.n 8010af6 while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != RESET) 8010a9e: 4b18 ldr r3, [pc, #96] @ (8010b00 ) 8010aa0: 681b ldr r3, [r3, #0] 8010aa2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010aa6: 2b00 cmp r3, #0 8010aa8: d1f0 bne.n 8010a8c } #endif /* RCC_PLL2_SUPPORT */ #if defined(RCC_PLLI2S_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); 8010aaa: f7fd fac1 bl 800e030 8010aae: 6078 str r0, [r7, #4] /* Clear PLL3ON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLL3ON); 8010ab0: 4b13 ldr r3, [pc, #76] @ (8010b00 ) 8010ab2: 681b ldr r3, [r3, #0] 8010ab4: 4a12 ldr r2, [pc, #72] @ (8010b00 ) 8010ab6: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8010aba: 6013 str r3, [r2, #0] /* Wait till PLL3 is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != RESET) 8010abc: e008 b.n 8010ad0 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) 8010abe: f7fd fab7 bl 800e030 8010ac2: 4602 mov r2, r0 8010ac4: 687b ldr r3, [r7, #4] 8010ac6: 1ad3 subs r3, r2, r3 8010ac8: 2b64 cmp r3, #100 @ 0x64 8010aca: d901 bls.n 8010ad0 { return HAL_TIMEOUT; 8010acc: 2303 movs r3, #3 8010ace: e012 b.n 8010af6 while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != RESET) 8010ad0: 4b0b ldr r3, [pc, #44] @ (8010b00 ) 8010ad2: 681b ldr r3, [r3, #0] 8010ad4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 8010ad8: 2b00 cmp r3, #0 8010ada: d1f0 bne.n 8010abe } #endif /* RCC_PLLI2S_SUPPORT */ #if defined(RCC_CFGR2_PREDIV1) /* Reset CFGR2 register */ CLEAR_REG(RCC->CFGR2); 8010adc: 4b08 ldr r3, [pc, #32] @ (8010b00 ) 8010ade: 2200 movs r2, #0 8010ae0: 62da str r2, [r3, #44] @ 0x2c #endif /* RCC_CFGR2_PREDIV1 */ /* Reset all CSR flags */ SET_BIT(RCC->CSR, RCC_CSR_RMVF); 8010ae2: 4b07 ldr r3, [pc, #28] @ (8010b00 ) 8010ae4: 6a5b ldr r3, [r3, #36] @ 0x24 8010ae6: 4a06 ldr r2, [pc, #24] @ (8010b00 ) 8010ae8: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 8010aec: 6253 str r3, [r2, #36] @ 0x24 /* Disable all interrupts */ CLEAR_REG(RCC->CIR); 8010aee: 4b04 ldr r3, [pc, #16] @ (8010b00 ) 8010af0: 2200 movs r2, #0 8010af2: 609a str r2, [r3, #8] return HAL_OK; 8010af4: 2300 movs r3, #0 } 8010af6: 4618 mov r0, r3 8010af8: 3708 adds r7, #8 8010afa: 46bd mov sp, r7 8010afc: bd80 pop {r7, pc} 8010afe: bf00 nop 8010b00: 40021000 .word 0x40021000 8010b04: 20000084 .word 0x20000084 8010b08: 007a1200 .word 0x007a1200 8010b0c: 20000088 .word 0x20000088 08010b10 : * 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) { 8010b10: b580 push {r7, lr} 8010b12: b086 sub sp, #24 8010b14: af00 add r7, sp, #0 8010b16: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) 8010b18: 687b ldr r3, [r7, #4] 8010b1a: 2b00 cmp r3, #0 8010b1c: d101 bne.n 8010b22 { return HAL_ERROR; 8010b1e: 2301 movs r3, #1 8010b20: e304 b.n 801112c /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) 8010b22: 687b ldr r3, [r7, #4] 8010b24: 681b ldr r3, [r3, #0] 8010b26: f003 0301 and.w r3, r3, #1 8010b2a: 2b00 cmp r3, #0 8010b2c: f000 8087 beq.w 8010c3e { /* 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) 8010b30: 4b92 ldr r3, [pc, #584] @ (8010d7c ) 8010b32: 685b ldr r3, [r3, #4] 8010b34: f003 030c and.w r3, r3, #12 8010b38: 2b04 cmp r3, #4 8010b3a: d00c beq.n 8010b56 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) 8010b3c: 4b8f ldr r3, [pc, #572] @ (8010d7c ) 8010b3e: 685b ldr r3, [r3, #4] 8010b40: f003 030c and.w r3, r3, #12 8010b44: 2b08 cmp r3, #8 8010b46: d112 bne.n 8010b6e 8010b48: 4b8c ldr r3, [pc, #560] @ (8010d7c ) 8010b4a: 685b ldr r3, [r3, #4] 8010b4c: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010b50: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010b54: d10b bne.n 8010b6e { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8010b56: 4b89 ldr r3, [pc, #548] @ (8010d7c ) 8010b58: 681b ldr r3, [r3, #0] 8010b5a: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010b5e: 2b00 cmp r3, #0 8010b60: d06c beq.n 8010c3c 8010b62: 687b ldr r3, [r7, #4] 8010b64: 689b ldr r3, [r3, #8] 8010b66: 2b00 cmp r3, #0 8010b68: d168 bne.n 8010c3c { return HAL_ERROR; 8010b6a: 2301 movs r3, #1 8010b6c: e2de b.n 801112c } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); 8010b6e: 687b ldr r3, [r7, #4] 8010b70: 689b ldr r3, [r3, #8] 8010b72: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010b76: d106 bne.n 8010b86 8010b78: 4b80 ldr r3, [pc, #512] @ (8010d7c ) 8010b7a: 681b ldr r3, [r3, #0] 8010b7c: 4a7f ldr r2, [pc, #508] @ (8010d7c ) 8010b7e: f443 3380 orr.w r3, r3, #65536 @ 0x10000 8010b82: 6013 str r3, [r2, #0] 8010b84: e02e b.n 8010be4 8010b86: 687b ldr r3, [r7, #4] 8010b88: 689b ldr r3, [r3, #8] 8010b8a: 2b00 cmp r3, #0 8010b8c: d10c bne.n 8010ba8 8010b8e: 4b7b ldr r3, [pc, #492] @ (8010d7c ) 8010b90: 681b ldr r3, [r3, #0] 8010b92: 4a7a ldr r2, [pc, #488] @ (8010d7c ) 8010b94: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010b98: 6013 str r3, [r2, #0] 8010b9a: 4b78 ldr r3, [pc, #480] @ (8010d7c ) 8010b9c: 681b ldr r3, [r3, #0] 8010b9e: 4a77 ldr r2, [pc, #476] @ (8010d7c ) 8010ba0: f423 2380 bic.w r3, r3, #262144 @ 0x40000 8010ba4: 6013 str r3, [r2, #0] 8010ba6: e01d b.n 8010be4 8010ba8: 687b ldr r3, [r7, #4] 8010baa: 689b ldr r3, [r3, #8] 8010bac: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 8010bb0: d10c bne.n 8010bcc 8010bb2: 4b72 ldr r3, [pc, #456] @ (8010d7c ) 8010bb4: 681b ldr r3, [r3, #0] 8010bb6: 4a71 ldr r2, [pc, #452] @ (8010d7c ) 8010bb8: f443 2380 orr.w r3, r3, #262144 @ 0x40000 8010bbc: 6013 str r3, [r2, #0] 8010bbe: 4b6f ldr r3, [pc, #444] @ (8010d7c ) 8010bc0: 681b ldr r3, [r3, #0] 8010bc2: 4a6e ldr r2, [pc, #440] @ (8010d7c ) 8010bc4: f443 3380 orr.w r3, r3, #65536 @ 0x10000 8010bc8: 6013 str r3, [r2, #0] 8010bca: e00b b.n 8010be4 8010bcc: 4b6b ldr r3, [pc, #428] @ (8010d7c ) 8010bce: 681b ldr r3, [r3, #0] 8010bd0: 4a6a ldr r2, [pc, #424] @ (8010d7c ) 8010bd2: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010bd6: 6013 str r3, [r2, #0] 8010bd8: 4b68 ldr r3, [pc, #416] @ (8010d7c ) 8010bda: 681b ldr r3, [r3, #0] 8010bdc: 4a67 ldr r2, [pc, #412] @ (8010d7c ) 8010bde: f423 2380 bic.w r3, r3, #262144 @ 0x40000 8010be2: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) 8010be4: 687b ldr r3, [r7, #4] 8010be6: 689b ldr r3, [r3, #8] 8010be8: 2b00 cmp r3, #0 8010bea: d013 beq.n 8010c14 { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010bec: f7fd fa20 bl 800e030 8010bf0: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8010bf2: e008 b.n 8010c06 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010bf4: f7fd fa1c bl 800e030 8010bf8: 4602 mov r2, r0 8010bfa: 693b ldr r3, [r7, #16] 8010bfc: 1ad3 subs r3, r2, r3 8010bfe: 2b64 cmp r3, #100 @ 0x64 8010c00: d901 bls.n 8010c06 { return HAL_TIMEOUT; 8010c02: 2303 movs r3, #3 8010c04: e292 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8010c06: 4b5d ldr r3, [pc, #372] @ (8010d7c ) 8010c08: 681b ldr r3, [r3, #0] 8010c0a: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010c0e: 2b00 cmp r3, #0 8010c10: d0f0 beq.n 8010bf4 8010c12: e014 b.n 8010c3e } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010c14: f7fd fa0c bl 800e030 8010c18: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 8010c1a: e008 b.n 8010c2e { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010c1c: f7fd fa08 bl 800e030 8010c20: 4602 mov r2, r0 8010c22: 693b ldr r3, [r7, #16] 8010c24: 1ad3 subs r3, r2, r3 8010c26: 2b64 cmp r3, #100 @ 0x64 8010c28: d901 bls.n 8010c2e { return HAL_TIMEOUT; 8010c2a: 2303 movs r3, #3 8010c2c: e27e b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 8010c2e: 4b53 ldr r3, [pc, #332] @ (8010d7c ) 8010c30: 681b ldr r3, [r3, #0] 8010c32: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010c36: 2b00 cmp r3, #0 8010c38: d1f0 bne.n 8010c1c 8010c3a: e000 b.n 8010c3e if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8010c3c: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) 8010c3e: 687b ldr r3, [r7, #4] 8010c40: 681b ldr r3, [r3, #0] 8010c42: f003 0302 and.w r3, r3, #2 8010c46: 2b00 cmp r3, #0 8010c48: d063 beq.n 8010d12 /* 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) 8010c4a: 4b4c ldr r3, [pc, #304] @ (8010d7c ) 8010c4c: 685b ldr r3, [r3, #4] 8010c4e: f003 030c and.w r3, r3, #12 8010c52: 2b00 cmp r3, #0 8010c54: d00b beq.n 8010c6e || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) 8010c56: 4b49 ldr r3, [pc, #292] @ (8010d7c ) 8010c58: 685b ldr r3, [r3, #4] 8010c5a: f003 030c and.w r3, r3, #12 8010c5e: 2b08 cmp r3, #8 8010c60: d11c bne.n 8010c9c 8010c62: 4b46 ldr r3, [pc, #280] @ (8010d7c ) 8010c64: 685b ldr r3, [r3, #4] 8010c66: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010c6a: 2b00 cmp r3, #0 8010c6c: d116 bne.n 8010c9c { /* 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)) 8010c6e: 4b43 ldr r3, [pc, #268] @ (8010d7c ) 8010c70: 681b ldr r3, [r3, #0] 8010c72: f003 0302 and.w r3, r3, #2 8010c76: 2b00 cmp r3, #0 8010c78: d005 beq.n 8010c86 8010c7a: 687b ldr r3, [r7, #4] 8010c7c: 695b ldr r3, [r3, #20] 8010c7e: 2b01 cmp r3, #1 8010c80: d001 beq.n 8010c86 { return HAL_ERROR; 8010c82: 2301 movs r3, #1 8010c84: e252 b.n 801112c } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8010c86: 4b3d ldr r3, [pc, #244] @ (8010d7c ) 8010c88: 681b ldr r3, [r3, #0] 8010c8a: f023 02f8 bic.w r2, r3, #248 @ 0xf8 8010c8e: 687b ldr r3, [r7, #4] 8010c90: 699b ldr r3, [r3, #24] 8010c92: 00db lsls r3, r3, #3 8010c94: 4939 ldr r1, [pc, #228] @ (8010d7c ) 8010c96: 4313 orrs r3, r2 8010c98: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) 8010c9a: e03a b.n 8010d12 } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) 8010c9c: 687b ldr r3, [r7, #4] 8010c9e: 695b ldr r3, [r3, #20] 8010ca0: 2b00 cmp r3, #0 8010ca2: d020 beq.n 8010ce6 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); 8010ca4: 4b36 ldr r3, [pc, #216] @ (8010d80 ) 8010ca6: 2201 movs r2, #1 8010ca8: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010caa: f7fd f9c1 bl 800e030 8010cae: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010cb0: e008 b.n 8010cc4 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010cb2: f7fd f9bd bl 800e030 8010cb6: 4602 mov r2, r0 8010cb8: 693b ldr r3, [r7, #16] 8010cba: 1ad3 subs r3, r2, r3 8010cbc: 2b02 cmp r3, #2 8010cbe: d901 bls.n 8010cc4 { return HAL_TIMEOUT; 8010cc0: 2303 movs r3, #3 8010cc2: e233 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010cc4: 4b2d ldr r3, [pc, #180] @ (8010d7c ) 8010cc6: 681b ldr r3, [r3, #0] 8010cc8: f003 0302 and.w r3, r3, #2 8010ccc: 2b00 cmp r3, #0 8010cce: d0f0 beq.n 8010cb2 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8010cd0: 4b2a ldr r3, [pc, #168] @ (8010d7c ) 8010cd2: 681b ldr r3, [r3, #0] 8010cd4: f023 02f8 bic.w r2, r3, #248 @ 0xf8 8010cd8: 687b ldr r3, [r7, #4] 8010cda: 699b ldr r3, [r3, #24] 8010cdc: 00db lsls r3, r3, #3 8010cde: 4927 ldr r1, [pc, #156] @ (8010d7c ) 8010ce0: 4313 orrs r3, r2 8010ce2: 600b str r3, [r1, #0] 8010ce4: e015 b.n 8010d12 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); 8010ce6: 4b26 ldr r3, [pc, #152] @ (8010d80 ) 8010ce8: 2200 movs r2, #0 8010cea: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010cec: f7fd f9a0 bl 800e030 8010cf0: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8010cf2: e008 b.n 8010d06 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010cf4: f7fd f99c bl 800e030 8010cf8: 4602 mov r2, r0 8010cfa: 693b ldr r3, [r7, #16] 8010cfc: 1ad3 subs r3, r2, r3 8010cfe: 2b02 cmp r3, #2 8010d00: d901 bls.n 8010d06 { return HAL_TIMEOUT; 8010d02: 2303 movs r3, #3 8010d04: e212 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8010d06: 4b1d ldr r3, [pc, #116] @ (8010d7c ) 8010d08: 681b ldr r3, [r3, #0] 8010d0a: f003 0302 and.w r3, r3, #2 8010d0e: 2b00 cmp r3, #0 8010d10: d1f0 bne.n 8010cf4 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) 8010d12: 687b ldr r3, [r7, #4] 8010d14: 681b ldr r3, [r3, #0] 8010d16: f003 0308 and.w r3, r3, #8 8010d1a: 2b00 cmp r3, #0 8010d1c: d03a beq.n 8010d94 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) 8010d1e: 687b ldr r3, [r7, #4] 8010d20: 69db ldr r3, [r3, #28] 8010d22: 2b00 cmp r3, #0 8010d24: d019 beq.n 8010d5a { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); 8010d26: 4b17 ldr r3, [pc, #92] @ (8010d84 ) 8010d28: 2201 movs r2, #1 8010d2a: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010d2c: f7fd f980 bl 800e030 8010d30: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8010d32: e008 b.n 8010d46 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8010d34: f7fd f97c bl 800e030 8010d38: 4602 mov r2, r0 8010d3a: 693b ldr r3, [r7, #16] 8010d3c: 1ad3 subs r3, r2, r3 8010d3e: 2b02 cmp r3, #2 8010d40: d901 bls.n 8010d46 { return HAL_TIMEOUT; 8010d42: 2303 movs r3, #3 8010d44: e1f2 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8010d46: 4b0d ldr r3, [pc, #52] @ (8010d7c ) 8010d48: 6a5b ldr r3, [r3, #36] @ 0x24 8010d4a: f003 0302 and.w r3, r3, #2 8010d4e: 2b00 cmp r3, #0 8010d50: d0f0 beq.n 8010d34 } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); 8010d52: 2001 movs r0, #1 8010d54: f000 fbca bl 80114ec 8010d58: e01c b.n 8010d94 } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); 8010d5a: 4b0a ldr r3, [pc, #40] @ (8010d84 ) 8010d5c: 2200 movs r2, #0 8010d5e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010d60: f7fd f966 bl 800e030 8010d64: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 8010d66: e00f b.n 8010d88 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8010d68: f7fd f962 bl 800e030 8010d6c: 4602 mov r2, r0 8010d6e: 693b ldr r3, [r7, #16] 8010d70: 1ad3 subs r3, r2, r3 8010d72: 2b02 cmp r3, #2 8010d74: d908 bls.n 8010d88 { return HAL_TIMEOUT; 8010d76: 2303 movs r3, #3 8010d78: e1d8 b.n 801112c 8010d7a: bf00 nop 8010d7c: 40021000 .word 0x40021000 8010d80: 42420000 .word 0x42420000 8010d84: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 8010d88: 4b9b ldr r3, [pc, #620] @ (8010ff8 ) 8010d8a: 6a5b ldr r3, [r3, #36] @ 0x24 8010d8c: f003 0302 and.w r3, r3, #2 8010d90: 2b00 cmp r3, #0 8010d92: d1e9 bne.n 8010d68 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) 8010d94: 687b ldr r3, [r7, #4] 8010d96: 681b ldr r3, [r3, #0] 8010d98: f003 0304 and.w r3, r3, #4 8010d9c: 2b00 cmp r3, #0 8010d9e: f000 80a6 beq.w 8010eee { FlagStatus pwrclkchanged = RESET; 8010da2: 2300 movs r3, #0 8010da4: 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()) 8010da6: 4b94 ldr r3, [pc, #592] @ (8010ff8 ) 8010da8: 69db ldr r3, [r3, #28] 8010daa: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010dae: 2b00 cmp r3, #0 8010db0: d10d bne.n 8010dce { __HAL_RCC_PWR_CLK_ENABLE(); 8010db2: 4b91 ldr r3, [pc, #580] @ (8010ff8 ) 8010db4: 69db ldr r3, [r3, #28] 8010db6: 4a90 ldr r2, [pc, #576] @ (8010ff8 ) 8010db8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 8010dbc: 61d3 str r3, [r2, #28] 8010dbe: 4b8e ldr r3, [pc, #568] @ (8010ff8 ) 8010dc0: 69db ldr r3, [r3, #28] 8010dc2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010dc6: 60bb str r3, [r7, #8] 8010dc8: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; 8010dca: 2301 movs r3, #1 8010dcc: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010dce: 4b8b ldr r3, [pc, #556] @ (8010ffc ) 8010dd0: 681b ldr r3, [r3, #0] 8010dd2: f403 7380 and.w r3, r3, #256 @ 0x100 8010dd6: 2b00 cmp r3, #0 8010dd8: d118 bne.n 8010e0c { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8010dda: 4b88 ldr r3, [pc, #544] @ (8010ffc ) 8010ddc: 681b ldr r3, [r3, #0] 8010dde: 4a87 ldr r2, [pc, #540] @ (8010ffc ) 8010de0: f443 7380 orr.w r3, r3, #256 @ 0x100 8010de4: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 8010de6: f7fd f923 bl 800e030 8010dea: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010dec: e008 b.n 8010e00 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 8010dee: f7fd f91f bl 800e030 8010df2: 4602 mov r2, r0 8010df4: 693b ldr r3, [r7, #16] 8010df6: 1ad3 subs r3, r2, r3 8010df8: 2b64 cmp r3, #100 @ 0x64 8010dfa: d901 bls.n 8010e00 { return HAL_TIMEOUT; 8010dfc: 2303 movs r3, #3 8010dfe: e195 b.n 801112c while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010e00: 4b7e ldr r3, [pc, #504] @ (8010ffc ) 8010e02: 681b ldr r3, [r3, #0] 8010e04: f403 7380 and.w r3, r3, #256 @ 0x100 8010e08: 2b00 cmp r3, #0 8010e0a: d0f0 beq.n 8010dee } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); 8010e0c: 687b ldr r3, [r7, #4] 8010e0e: 691b ldr r3, [r3, #16] 8010e10: 2b01 cmp r3, #1 8010e12: d106 bne.n 8010e22 8010e14: 4b78 ldr r3, [pc, #480] @ (8010ff8 ) 8010e16: 6a1b ldr r3, [r3, #32] 8010e18: 4a77 ldr r2, [pc, #476] @ (8010ff8 ) 8010e1a: f043 0301 orr.w r3, r3, #1 8010e1e: 6213 str r3, [r2, #32] 8010e20: e02d b.n 8010e7e 8010e22: 687b ldr r3, [r7, #4] 8010e24: 691b ldr r3, [r3, #16] 8010e26: 2b00 cmp r3, #0 8010e28: d10c bne.n 8010e44 8010e2a: 4b73 ldr r3, [pc, #460] @ (8010ff8 ) 8010e2c: 6a1b ldr r3, [r3, #32] 8010e2e: 4a72 ldr r2, [pc, #456] @ (8010ff8 ) 8010e30: f023 0301 bic.w r3, r3, #1 8010e34: 6213 str r3, [r2, #32] 8010e36: 4b70 ldr r3, [pc, #448] @ (8010ff8 ) 8010e38: 6a1b ldr r3, [r3, #32] 8010e3a: 4a6f ldr r2, [pc, #444] @ (8010ff8 ) 8010e3c: f023 0304 bic.w r3, r3, #4 8010e40: 6213 str r3, [r2, #32] 8010e42: e01c b.n 8010e7e 8010e44: 687b ldr r3, [r7, #4] 8010e46: 691b ldr r3, [r3, #16] 8010e48: 2b05 cmp r3, #5 8010e4a: d10c bne.n 8010e66 8010e4c: 4b6a ldr r3, [pc, #424] @ (8010ff8 ) 8010e4e: 6a1b ldr r3, [r3, #32] 8010e50: 4a69 ldr r2, [pc, #420] @ (8010ff8 ) 8010e52: f043 0304 orr.w r3, r3, #4 8010e56: 6213 str r3, [r2, #32] 8010e58: 4b67 ldr r3, [pc, #412] @ (8010ff8 ) 8010e5a: 6a1b ldr r3, [r3, #32] 8010e5c: 4a66 ldr r2, [pc, #408] @ (8010ff8 ) 8010e5e: f043 0301 orr.w r3, r3, #1 8010e62: 6213 str r3, [r2, #32] 8010e64: e00b b.n 8010e7e 8010e66: 4b64 ldr r3, [pc, #400] @ (8010ff8 ) 8010e68: 6a1b ldr r3, [r3, #32] 8010e6a: 4a63 ldr r2, [pc, #396] @ (8010ff8 ) 8010e6c: f023 0301 bic.w r3, r3, #1 8010e70: 6213 str r3, [r2, #32] 8010e72: 4b61 ldr r3, [pc, #388] @ (8010ff8 ) 8010e74: 6a1b ldr r3, [r3, #32] 8010e76: 4a60 ldr r2, [pc, #384] @ (8010ff8 ) 8010e78: f023 0304 bic.w r3, r3, #4 8010e7c: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) 8010e7e: 687b ldr r3, [r7, #4] 8010e80: 691b ldr r3, [r3, #16] 8010e82: 2b00 cmp r3, #0 8010e84: d015 beq.n 8010eb2 { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010e86: f7fd f8d3 bl 800e030 8010e8a: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8010e8c: e00a b.n 8010ea4 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8010e8e: f7fd f8cf bl 800e030 8010e92: 4602 mov r2, r0 8010e94: 693b ldr r3, [r7, #16] 8010e96: 1ad3 subs r3, r2, r3 8010e98: f241 3288 movw r2, #5000 @ 0x1388 8010e9c: 4293 cmp r3, r2 8010e9e: d901 bls.n 8010ea4 { return HAL_TIMEOUT; 8010ea0: 2303 movs r3, #3 8010ea2: e143 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8010ea4: 4b54 ldr r3, [pc, #336] @ (8010ff8 ) 8010ea6: 6a1b ldr r3, [r3, #32] 8010ea8: f003 0302 and.w r3, r3, #2 8010eac: 2b00 cmp r3, #0 8010eae: d0ee beq.n 8010e8e 8010eb0: e014 b.n 8010edc } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010eb2: f7fd f8bd bl 800e030 8010eb6: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8010eb8: e00a b.n 8010ed0 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8010eba: f7fd f8b9 bl 800e030 8010ebe: 4602 mov r2, r0 8010ec0: 693b ldr r3, [r7, #16] 8010ec2: 1ad3 subs r3, r2, r3 8010ec4: f241 3288 movw r2, #5000 @ 0x1388 8010ec8: 4293 cmp r3, r2 8010eca: d901 bls.n 8010ed0 { return HAL_TIMEOUT; 8010ecc: 2303 movs r3, #3 8010ece: e12d b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8010ed0: 4b49 ldr r3, [pc, #292] @ (8010ff8 ) 8010ed2: 6a1b ldr r3, [r3, #32] 8010ed4: f003 0302 and.w r3, r3, #2 8010ed8: 2b00 cmp r3, #0 8010eda: d1ee bne.n 8010eba } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 8010edc: 7dfb ldrb r3, [r7, #23] 8010ede: 2b01 cmp r3, #1 8010ee0: d105 bne.n 8010eee { __HAL_RCC_PWR_CLK_DISABLE(); 8010ee2: 4b45 ldr r3, [pc, #276] @ (8010ff8 ) 8010ee4: 69db ldr r3, [r3, #28] 8010ee6: 4a44 ldr r2, [pc, #272] @ (8010ff8 ) 8010ee8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8010eec: 61d3 str r3, [r2, #28] #if defined(RCC_CR_PLL2ON) /*-------------------------------- PLL2 Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL2(RCC_OscInitStruct->PLL2.PLL2State)); if ((RCC_OscInitStruct->PLL2.PLL2State) != RCC_PLL2_NONE) 8010eee: 687b ldr r3, [r7, #4] 8010ef0: 6adb ldr r3, [r3, #44] @ 0x2c 8010ef2: 2b00 cmp r3, #0 8010ef4: f000 808c beq.w 8011010 { /* This bit can not be cleared if the PLL2 clock is used indirectly as system clock (i.e. it is used as PLL clock entry that is used as system clock). */ if ((__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE) && \ 8010ef8: 4b3f ldr r3, [pc, #252] @ (8010ff8 ) 8010efa: 685b ldr r3, [r3, #4] 8010efc: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010f00: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010f04: d10e bne.n 8010f24 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ 8010f06: 4b3c ldr r3, [pc, #240] @ (8010ff8 ) 8010f08: 685b ldr r3, [r3, #4] 8010f0a: f003 030c and.w r3, r3, #12 if ((__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE) && \ 8010f0e: 2b08 cmp r3, #8 8010f10: d108 bne.n 8010f24 ((READ_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) == RCC_CFGR2_PREDIV1SRC_PLL2)) 8010f12: 4b39 ldr r3, [pc, #228] @ (8010ff8 ) 8010f14: 6adb ldr r3, [r3, #44] @ 0x2c 8010f16: f403 3380 and.w r3, r3, #65536 @ 0x10000 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ 8010f1a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010f1e: d101 bne.n 8010f24 { return HAL_ERROR; 8010f20: 2301 movs r3, #1 8010f22: e103 b.n 801112c } else { if ((RCC_OscInitStruct->PLL2.PLL2State) == RCC_PLL2_ON) 8010f24: 687b ldr r3, [r7, #4] 8010f26: 6adb ldr r3, [r3, #44] @ 0x2c 8010f28: 2b02 cmp r3, #2 8010f2a: d14e bne.n 8010fca assert_param(IS_RCC_PLL2_MUL(RCC_OscInitStruct->PLL2.PLL2MUL)); assert_param(IS_RCC_HSE_PREDIV2(RCC_OscInitStruct->PLL2.HSEPrediv2Value)); /* Prediv2 can be written only when the PLLI2S is disabled. */ /* Return an error only if new value is different from the programmed value */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON) && \ 8010f2c: 4b32 ldr r3, [pc, #200] @ (8010ff8 ) 8010f2e: 681b ldr r3, [r3, #0] 8010f30: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010f34: 2b00 cmp r3, #0 8010f36: d009 beq.n 8010f4c (__HAL_RCC_HSE_GET_PREDIV2() != RCC_OscInitStruct->PLL2.HSEPrediv2Value)) 8010f38: 4b2f ldr r3, [pc, #188] @ (8010ff8 ) 8010f3a: 6adb ldr r3, [r3, #44] @ 0x2c 8010f3c: f003 02f0 and.w r2, r3, #240 @ 0xf0 8010f40: 687b ldr r3, [r7, #4] 8010f42: 6b5b ldr r3, [r3, #52] @ 0x34 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON) && \ 8010f44: 429a cmp r2, r3 8010f46: d001 beq.n 8010f4c { return HAL_ERROR; 8010f48: 2301 movs r3, #1 8010f4a: e0ef b.n 801112c } /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); 8010f4c: 4b2c ldr r3, [pc, #176] @ (8011000 ) 8010f4e: 2200 movs r2, #0 8010f50: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010f52: f7fd f86d bl 800e030 8010f56: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010f58: e008 b.n 8010f6c { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010f5a: f7fd f869 bl 800e030 8010f5e: 4602 mov r2, r0 8010f60: 693b ldr r3, [r7, #16] 8010f62: 1ad3 subs r3, r2, r3 8010f64: 2b64 cmp r3, #100 @ 0x64 8010f66: d901 bls.n 8010f6c { return HAL_TIMEOUT; 8010f68: 2303 movs r3, #3 8010f6a: e0df b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010f6c: 4b22 ldr r3, [pc, #136] @ (8010ff8 ) 8010f6e: 681b ldr r3, [r3, #0] 8010f70: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010f74: 2b00 cmp r3, #0 8010f76: d1f0 bne.n 8010f5a } } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(RCC_OscInitStruct->PLL2.HSEPrediv2Value); 8010f78: 4b1f ldr r3, [pc, #124] @ (8010ff8 ) 8010f7a: 6adb ldr r3, [r3, #44] @ 0x2c 8010f7c: f023 02f0 bic.w r2, r3, #240 @ 0xf0 8010f80: 687b ldr r3, [r7, #4] 8010f82: 6b5b ldr r3, [r3, #52] @ 0x34 8010f84: 491c ldr r1, [pc, #112] @ (8010ff8 ) 8010f86: 4313 orrs r3, r2 8010f88: 62cb str r3, [r1, #44] @ 0x2c /* Configure the main PLL2 multiplication factors. */ __HAL_RCC_PLL2_CONFIG(RCC_OscInitStruct->PLL2.PLL2MUL); 8010f8a: 4b1b ldr r3, [pc, #108] @ (8010ff8 ) 8010f8c: 6adb ldr r3, [r3, #44] @ 0x2c 8010f8e: f423 6270 bic.w r2, r3, #3840 @ 0xf00 8010f92: 687b ldr r3, [r7, #4] 8010f94: 6b1b ldr r3, [r3, #48] @ 0x30 8010f96: 4918 ldr r1, [pc, #96] @ (8010ff8 ) 8010f98: 4313 orrs r3, r2 8010f9a: 62cb str r3, [r1, #44] @ 0x2c /* Enable the main PLL2. */ __HAL_RCC_PLL2_ENABLE(); 8010f9c: 4b18 ldr r3, [pc, #96] @ (8011000 ) 8010f9e: 2201 movs r2, #1 8010fa0: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010fa2: f7fd f845 bl 800e030 8010fa6: 6138 str r0, [r7, #16] /* Wait till PLL2 is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) 8010fa8: e008 b.n 8010fbc { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010faa: f7fd f841 bl 800e030 8010fae: 4602 mov r2, r0 8010fb0: 693b ldr r3, [r7, #16] 8010fb2: 1ad3 subs r3, r2, r3 8010fb4: 2b64 cmp r3, #100 @ 0x64 8010fb6: d901 bls.n 8010fbc { return HAL_TIMEOUT; 8010fb8: 2303 movs r3, #3 8010fba: e0b7 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) 8010fbc: 4b0e ldr r3, [pc, #56] @ (8010ff8 ) 8010fbe: 681b ldr r3, [r3, #0] 8010fc0: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010fc4: 2b00 cmp r3, #0 8010fc6: d0f0 beq.n 8010faa 8010fc8: e022 b.n 8011010 } } else { /* Set PREDIV1 source to HSE */ CLEAR_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC); 8010fca: 4b0b ldr r3, [pc, #44] @ (8010ff8 ) 8010fcc: 6adb ldr r3, [r3, #44] @ 0x2c 8010fce: 4a0a ldr r2, [pc, #40] @ (8010ff8 ) 8010fd0: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010fd4: 62d3 str r3, [r2, #44] @ 0x2c /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); 8010fd6: 4b0a ldr r3, [pc, #40] @ (8011000 ) 8010fd8: 2200 movs r2, #0 8010fda: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010fdc: f7fd f828 bl 800e030 8010fe0: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010fe2: e00f b.n 8011004 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010fe4: f7fd f824 bl 800e030 8010fe8: 4602 mov r2, r0 8010fea: 693b ldr r3, [r7, #16] 8010fec: 1ad3 subs r3, r2, r3 8010fee: 2b64 cmp r3, #100 @ 0x64 8010ff0: d908 bls.n 8011004 { return HAL_TIMEOUT; 8010ff2: 2303 movs r3, #3 8010ff4: e09a b.n 801112c 8010ff6: bf00 nop 8010ff8: 40021000 .word 0x40021000 8010ffc: 40007000 .word 0x40007000 8011000: 42420068 .word 0x42420068 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8011004: 4b4b ldr r3, [pc, #300] @ (8011134 ) 8011006: 681b ldr r3, [r3, #0] 8011008: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 801100c: 2b00 cmp r3, #0 801100e: d1e9 bne.n 8010fe4 #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) 8011010: 687b ldr r3, [r7, #4] 8011012: 6a1b ldr r3, [r3, #32] 8011014: 2b00 cmp r3, #0 8011016: f000 8088 beq.w 801112a { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) 801101a: 4b46 ldr r3, [pc, #280] @ (8011134 ) 801101c: 685b ldr r3, [r3, #4] 801101e: f003 030c and.w r3, r3, #12 8011022: 2b08 cmp r3, #8 8011024: d068 beq.n 80110f8 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) 8011026: 687b ldr r3, [r7, #4] 8011028: 6a1b ldr r3, [r3, #32] 801102a: 2b02 cmp r3, #2 801102c: d14d bne.n 80110ca /* 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(); 801102e: 4b42 ldr r3, [pc, #264] @ (8011138 ) 8011030: 2200 movs r2, #0 8011032: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8011034: f7fc fffc bl 800e030 8011038: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 801103a: e008 b.n 801104e { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 801103c: f7fc fff8 bl 800e030 8011040: 4602 mov r2, r0 8011042: 693b ldr r3, [r7, #16] 8011044: 1ad3 subs r3, r2, r3 8011046: 2b02 cmp r3, #2 8011048: d901 bls.n 801104e { return HAL_TIMEOUT; 801104a: 2303 movs r3, #3 801104c: e06e b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 801104e: 4b39 ldr r3, [pc, #228] @ (8011134 ) 8011050: 681b ldr r3, [r3, #0] 8011052: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8011056: 2b00 cmp r3, #0 8011058: d1f0 bne.n 801103c } } /* 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) 801105a: 687b ldr r3, [r7, #4] 801105c: 6a5b ldr r3, [r3, #36] @ 0x24 801105e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8011062: d10f bne.n 8011084 assert_param(IS_RCC_HSE_PREDIV(RCC_OscInitStruct->HSEPredivValue)); #if defined(RCC_CFGR2_PREDIV1SRC) assert_param(IS_RCC_PREDIV1_SOURCE(RCC_OscInitStruct->Prediv1Source)); /* Set PREDIV1 source */ SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source); 8011064: 4b33 ldr r3, [pc, #204] @ (8011134 ) 8011066: 6ada ldr r2, [r3, #44] @ 0x2c 8011068: 687b ldr r3, [r7, #4] 801106a: 685b ldr r3, [r3, #4] 801106c: 4931 ldr r1, [pc, #196] @ (8011134 ) 801106e: 4313 orrs r3, r2 8011070: 62cb str r3, [r1, #44] @ 0x2c #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); 8011072: 4b30 ldr r3, [pc, #192] @ (8011134 ) 8011074: 6adb ldr r3, [r3, #44] @ 0x2c 8011076: f023 020f bic.w r2, r3, #15 801107a: 687b ldr r3, [r7, #4] 801107c: 68db ldr r3, [r3, #12] 801107e: 492d ldr r1, [pc, #180] @ (8011134 ) 8011080: 4313 orrs r3, r2 8011082: 62cb str r3, [r1, #44] @ 0x2c } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, 8011084: 4b2b ldr r3, [pc, #172] @ (8011134 ) 8011086: 685b ldr r3, [r3, #4] 8011088: f423 1274 bic.w r2, r3, #3997696 @ 0x3d0000 801108c: 687b ldr r3, [r7, #4] 801108e: 6a59 ldr r1, [r3, #36] @ 0x24 8011090: 687b ldr r3, [r7, #4] 8011092: 6a9b ldr r3, [r3, #40] @ 0x28 8011094: 430b orrs r3, r1 8011096: 4927 ldr r1, [pc, #156] @ (8011134 ) 8011098: 4313 orrs r3, r2 801109a: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); 801109c: 4b26 ldr r3, [pc, #152] @ (8011138 ) 801109e: 2201 movs r2, #1 80110a0: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80110a2: f7fc ffc5 bl 800e030 80110a6: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80110a8: e008 b.n 80110bc { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80110aa: f7fc ffc1 bl 800e030 80110ae: 4602 mov r2, r0 80110b0: 693b ldr r3, [r7, #16] 80110b2: 1ad3 subs r3, r2, r3 80110b4: 2b02 cmp r3, #2 80110b6: d901 bls.n 80110bc { return HAL_TIMEOUT; 80110b8: 2303 movs r3, #3 80110ba: e037 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80110bc: 4b1d ldr r3, [pc, #116] @ (8011134 ) 80110be: 681b ldr r3, [r3, #0] 80110c0: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 80110c4: 2b00 cmp r3, #0 80110c6: d0f0 beq.n 80110aa 80110c8: e02f b.n 801112a } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 80110ca: 4b1b ldr r3, [pc, #108] @ (8011138 ) 80110cc: 2200 movs r2, #0 80110ce: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80110d0: f7fc ffae bl 800e030 80110d4: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 80110d6: e008 b.n 80110ea { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80110d8: f7fc ffaa bl 800e030 80110dc: 4602 mov r2, r0 80110de: 693b ldr r3, [r7, #16] 80110e0: 1ad3 subs r3, r2, r3 80110e2: 2b02 cmp r3, #2 80110e4: d901 bls.n 80110ea { return HAL_TIMEOUT; 80110e6: 2303 movs r3, #3 80110e8: e020 b.n 801112c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 80110ea: 4b12 ldr r3, [pc, #72] @ (8011134 ) 80110ec: 681b ldr r3, [r3, #0] 80110ee: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 80110f2: 2b00 cmp r3, #0 80110f4: d1f0 bne.n 80110d8 80110f6: e018 b.n 801112a } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) 80110f8: 687b ldr r3, [r7, #4] 80110fa: 6a1b ldr r3, [r3, #32] 80110fc: 2b01 cmp r3, #1 80110fe: d101 bne.n 8011104 { return HAL_ERROR; 8011100: 2301 movs r3, #1 8011102: e013 b.n 801112c } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; 8011104: 4b0b ldr r3, [pc, #44] @ (8011134 ) 8011106: 685b ldr r3, [r3, #4] 8011108: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 801110a: 68fb ldr r3, [r7, #12] 801110c: f403 3280 and.w r2, r3, #65536 @ 0x10000 8011110: 687b ldr r3, [r7, #4] 8011112: 6a5b ldr r3, [r3, #36] @ 0x24 8011114: 429a cmp r2, r3 8011116: d106 bne.n 8011126 (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) 8011118: 68fb ldr r3, [r7, #12] 801111a: f403 1270 and.w r2, r3, #3932160 @ 0x3c0000 801111e: 687b ldr r3, [r7, #4] 8011120: 6a9b ldr r3, [r3, #40] @ 0x28 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8011122: 429a cmp r2, r3 8011124: d001 beq.n 801112a { return HAL_ERROR; 8011126: 2301 movs r3, #1 8011128: e000 b.n 801112c } } } } return HAL_OK; 801112a: 2300 movs r3, #0 } 801112c: 4618 mov r0, r3 801112e: 3718 adds r7, #24 8011130: 46bd mov sp, r7 8011132: bd80 pop {r7, pc} 8011134: 40021000 .word 0x40021000 8011138: 42420060 .word 0x42420060 0801113c : * 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) { 801113c: b580 push {r7, lr} 801113e: b084 sub sp, #16 8011140: af00 add r7, sp, #0 8011142: 6078 str r0, [r7, #4] 8011144: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) 8011146: 687b ldr r3, [r7, #4] 8011148: 2b00 cmp r3, #0 801114a: d101 bne.n 8011150 { return HAL_ERROR; 801114c: 2301 movs r3, #1 801114e: e0d0 b.n 80112f2 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()) 8011150: 4b6a ldr r3, [pc, #424] @ (80112fc ) 8011152: 681b ldr r3, [r3, #0] 8011154: f003 0307 and.w r3, r3, #7 8011158: 683a ldr r2, [r7, #0] 801115a: 429a cmp r2, r3 801115c: d910 bls.n 8011180 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 801115e: 4b67 ldr r3, [pc, #412] @ (80112fc ) 8011160: 681b ldr r3, [r3, #0] 8011162: f023 0207 bic.w r2, r3, #7 8011166: 4965 ldr r1, [pc, #404] @ (80112fc ) 8011168: 683b ldr r3, [r7, #0] 801116a: 4313 orrs r3, r2 801116c: 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) 801116e: 4b63 ldr r3, [pc, #396] @ (80112fc ) 8011170: 681b ldr r3, [r3, #0] 8011172: f003 0307 and.w r3, r3, #7 8011176: 683a ldr r2, [r7, #0] 8011178: 429a cmp r2, r3 801117a: d001 beq.n 8011180 { return HAL_ERROR; 801117c: 2301 movs r3, #1 801117e: e0b8 b.n 80112f2 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) 8011180: 687b ldr r3, [r7, #4] 8011182: 681b ldr r3, [r3, #0] 8011184: f003 0302 and.w r3, r3, #2 8011188: 2b00 cmp r3, #0 801118a: d020 beq.n 80111ce { /* 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) 801118c: 687b ldr r3, [r7, #4] 801118e: 681b ldr r3, [r3, #0] 8011190: f003 0304 and.w r3, r3, #4 8011194: 2b00 cmp r3, #0 8011196: d005 beq.n 80111a4 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); 8011198: 4b59 ldr r3, [pc, #356] @ (8011300 ) 801119a: 685b ldr r3, [r3, #4] 801119c: 4a58 ldr r2, [pc, #352] @ (8011300 ) 801119e: f443 63e0 orr.w r3, r3, #1792 @ 0x700 80111a2: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 80111a4: 687b ldr r3, [r7, #4] 80111a6: 681b ldr r3, [r3, #0] 80111a8: f003 0308 and.w r3, r3, #8 80111ac: 2b00 cmp r3, #0 80111ae: d005 beq.n 80111bc { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); 80111b0: 4b53 ldr r3, [pc, #332] @ (8011300 ) 80111b2: 685b ldr r3, [r3, #4] 80111b4: 4a52 ldr r2, [pc, #328] @ (8011300 ) 80111b6: f443 5360 orr.w r3, r3, #14336 @ 0x3800 80111ba: 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); 80111bc: 4b50 ldr r3, [pc, #320] @ (8011300 ) 80111be: 685b ldr r3, [r3, #4] 80111c0: f023 02f0 bic.w r2, r3, #240 @ 0xf0 80111c4: 687b ldr r3, [r7, #4] 80111c6: 689b ldr r3, [r3, #8] 80111c8: 494d ldr r1, [pc, #308] @ (8011300 ) 80111ca: 4313 orrs r3, r2 80111cc: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) 80111ce: 687b ldr r3, [r7, #4] 80111d0: 681b ldr r3, [r3, #0] 80111d2: f003 0301 and.w r3, r3, #1 80111d6: 2b00 cmp r3, #0 80111d8: d040 beq.n 801125c { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) 80111da: 687b ldr r3, [r7, #4] 80111dc: 685b ldr r3, [r3, #4] 80111de: 2b01 cmp r3, #1 80111e0: d107 bne.n 80111f2 { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 80111e2: 4b47 ldr r3, [pc, #284] @ (8011300 ) 80111e4: 681b ldr r3, [r3, #0] 80111e6: f403 3300 and.w r3, r3, #131072 @ 0x20000 80111ea: 2b00 cmp r3, #0 80111ec: d115 bne.n 801121a { return HAL_ERROR; 80111ee: 2301 movs r3, #1 80111f0: e07f b.n 80112f2 } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) 80111f2: 687b ldr r3, [r7, #4] 80111f4: 685b ldr r3, [r3, #4] 80111f6: 2b02 cmp r3, #2 80111f8: d107 bne.n 801120a { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80111fa: 4b41 ldr r3, [pc, #260] @ (8011300 ) 80111fc: 681b ldr r3, [r3, #0] 80111fe: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8011202: 2b00 cmp r3, #0 8011204: d109 bne.n 801121a { return HAL_ERROR; 8011206: 2301 movs r3, #1 8011208: e073 b.n 80112f2 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 801120a: 4b3d ldr r3, [pc, #244] @ (8011300 ) 801120c: 681b ldr r3, [r3, #0] 801120e: f003 0302 and.w r3, r3, #2 8011212: 2b00 cmp r3, #0 8011214: d101 bne.n 801121a { return HAL_ERROR; 8011216: 2301 movs r3, #1 8011218: e06b b.n 80112f2 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); 801121a: 4b39 ldr r3, [pc, #228] @ (8011300 ) 801121c: 685b ldr r3, [r3, #4] 801121e: f023 0203 bic.w r2, r3, #3 8011222: 687b ldr r3, [r7, #4] 8011224: 685b ldr r3, [r3, #4] 8011226: 4936 ldr r1, [pc, #216] @ (8011300 ) 8011228: 4313 orrs r3, r2 801122a: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 801122c: f7fc ff00 bl 800e030 8011230: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8011232: e00a b.n 801124a { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 8011234: f7fc fefc bl 800e030 8011238: 4602 mov r2, r0 801123a: 68fb ldr r3, [r7, #12] 801123c: 1ad3 subs r3, r2, r3 801123e: f241 3288 movw r2, #5000 @ 0x1388 8011242: 4293 cmp r3, r2 8011244: d901 bls.n 801124a { return HAL_TIMEOUT; 8011246: 2303 movs r3, #3 8011248: e053 b.n 80112f2 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 801124a: 4b2d ldr r3, [pc, #180] @ (8011300 ) 801124c: 685b ldr r3, [r3, #4] 801124e: f003 020c and.w r2, r3, #12 8011252: 687b ldr r3, [r7, #4] 8011254: 685b ldr r3, [r3, #4] 8011256: 009b lsls r3, r3, #2 8011258: 429a cmp r2, r3 801125a: d1eb bne.n 8011234 } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) 801125c: 4b27 ldr r3, [pc, #156] @ (80112fc ) 801125e: 681b ldr r3, [r3, #0] 8011260: f003 0307 and.w r3, r3, #7 8011264: 683a ldr r2, [r7, #0] 8011266: 429a cmp r2, r3 8011268: d210 bcs.n 801128c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 801126a: 4b24 ldr r3, [pc, #144] @ (80112fc ) 801126c: 681b ldr r3, [r3, #0] 801126e: f023 0207 bic.w r2, r3, #7 8011272: 4922 ldr r1, [pc, #136] @ (80112fc ) 8011274: 683b ldr r3, [r7, #0] 8011276: 4313 orrs r3, r2 8011278: 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) 801127a: 4b20 ldr r3, [pc, #128] @ (80112fc ) 801127c: 681b ldr r3, [r3, #0] 801127e: f003 0307 and.w r3, r3, #7 8011282: 683a ldr r2, [r7, #0] 8011284: 429a cmp r2, r3 8011286: d001 beq.n 801128c { return HAL_ERROR; 8011288: 2301 movs r3, #1 801128a: e032 b.n 80112f2 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) 801128c: 687b ldr r3, [r7, #4] 801128e: 681b ldr r3, [r3, #0] 8011290: f003 0304 and.w r3, r3, #4 8011294: 2b00 cmp r3, #0 8011296: d008 beq.n 80112aa { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); 8011298: 4b19 ldr r3, [pc, #100] @ (8011300 ) 801129a: 685b ldr r3, [r3, #4] 801129c: f423 62e0 bic.w r2, r3, #1792 @ 0x700 80112a0: 687b ldr r3, [r7, #4] 80112a2: 68db ldr r3, [r3, #12] 80112a4: 4916 ldr r1, [pc, #88] @ (8011300 ) 80112a6: 4313 orrs r3, r2 80112a8: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 80112aa: 687b ldr r3, [r7, #4] 80112ac: 681b ldr r3, [r3, #0] 80112ae: f003 0308 and.w r3, r3, #8 80112b2: 2b00 cmp r3, #0 80112b4: d009 beq.n 80112ca { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); 80112b6: 4b12 ldr r3, [pc, #72] @ (8011300 ) 80112b8: 685b ldr r3, [r3, #4] 80112ba: f423 5260 bic.w r2, r3, #14336 @ 0x3800 80112be: 687b ldr r3, [r7, #4] 80112c0: 691b ldr r3, [r3, #16] 80112c2: 00db lsls r3, r3, #3 80112c4: 490e ldr r1, [pc, #56] @ (8011300 ) 80112c6: 4313 orrs r3, r2 80112c8: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; 80112ca: f000 f821 bl 8011310 80112ce: 4602 mov r2, r0 80112d0: 4b0b ldr r3, [pc, #44] @ (8011300 ) 80112d2: 685b ldr r3, [r3, #4] 80112d4: 091b lsrs r3, r3, #4 80112d6: f003 030f and.w r3, r3, #15 80112da: 490a ldr r1, [pc, #40] @ (8011304 ) 80112dc: 5ccb ldrb r3, [r1, r3] 80112de: fa22 f303 lsr.w r3, r2, r3 80112e2: 4a09 ldr r2, [pc, #36] @ (8011308 ) 80112e4: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); 80112e6: 4b09 ldr r3, [pc, #36] @ (801130c ) 80112e8: 681b ldr r3, [r3, #0] 80112ea: 4618 mov r0, r3 80112ec: f7fc fe5e bl 800dfac return HAL_OK; 80112f0: 2300 movs r3, #0 } 80112f2: 4618 mov r0, r3 80112f4: 3710 adds r7, #16 80112f6: 46bd mov sp, r7 80112f8: bd80 pop {r7, pc} 80112fa: bf00 nop 80112fc: 40022000 .word 0x40022000 8011300: 40021000 .word 0x40021000 8011304: 08017214 .word 0x08017214 8011308: 20000084 .word 0x20000084 801130c: 20000088 .word 0x20000088 08011310 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { 8011310: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} 8011314: b08e sub sp, #56 @ 0x38 8011316: af00 add r7, sp, #0 #else static const uint8_t aPredivFactorTable[2U] = {1, 2}; #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; 8011318: 2300 movs r3, #0 801131a: 62fb str r3, [r7, #44] @ 0x2c 801131c: 2300 movs r3, #0 801131e: 62bb str r3, [r7, #40] @ 0x28 8011320: 2300 movs r3, #0 8011322: 637b str r3, [r7, #52] @ 0x34 8011324: 2300 movs r3, #0 8011326: 627b str r3, [r7, #36] @ 0x24 uint32_t sysclockfreq = 0U; 8011328: 2300 movs r3, #0 801132a: 633b str r3, [r7, #48] @ 0x30 #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; 801132c: 2300 movs r3, #0 801132e: 623b str r3, [r7, #32] 8011330: 2300 movs r3, #0 8011332: 61fb str r3, [r7, #28] #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; 8011334: 4b4e ldr r3, [pc, #312] @ (8011470 ) 8011336: 685b ldr r3, [r3, #4] 8011338: 62fb str r3, [r7, #44] @ 0x2c /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) 801133a: 6afb ldr r3, [r7, #44] @ 0x2c 801133c: f003 030c and.w r3, r3, #12 8011340: 2b04 cmp r3, #4 8011342: d002 beq.n 801134a 8011344: 2b08 cmp r3, #8 8011346: d003 beq.n 8011350 8011348: e089 b.n 801145e { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; 801134a: 4b4a ldr r3, [pc, #296] @ (8011474 ) 801134c: 633b str r3, [r7, #48] @ 0x30 break; 801134e: e089 b.n 8011464 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 8011350: 6afb ldr r3, [r7, #44] @ 0x2c 8011352: 0c9b lsrs r3, r3, #18 8011354: f003 020f and.w r2, r3, #15 8011358: 4b47 ldr r3, [pc, #284] @ (8011478 ) 801135a: 5c9b ldrb r3, [r3, r2] 801135c: 627b str r3, [r7, #36] @ 0x24 if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 801135e: 6afb ldr r3, [r7, #44] @ 0x2c 8011360: f403 3380 and.w r3, r3, #65536 @ 0x10000 8011364: 2b00 cmp r3, #0 8011366: d072 beq.n 801144e { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; 8011368: 4b41 ldr r3, [pc, #260] @ (8011470 ) 801136a: 6adb ldr r3, [r3, #44] @ 0x2c 801136c: f003 020f and.w r2, r3, #15 8011370: 4b42 ldr r3, [pc, #264] @ (801147c ) 8011372: 5c9b ldrb r3, [r3, r2] 8011374: 62bb str r3, [r7, #40] @ 0x28 #else prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; #endif /*RCC_CFGR2_PREDIV1*/ #if defined(RCC_CFGR2_PREDIV1SRC) if (HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) 8011376: 4b3e ldr r3, [pc, #248] @ (8011470 ) 8011378: 6adb ldr r3, [r3, #44] @ 0x2c 801137a: f403 3380 and.w r3, r3, #65536 @ 0x10000 801137e: 2b00 cmp r3, #0 8011380: d053 beq.n 801142a { /* PLL2 selected as Prediv1 source */ /* PLLCLK = PLL2CLK / PREDIV1 * PLLMUL with PLL2CLK = HSE/PREDIV2 * PLL2MUL */ prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 8011382: 4b3b ldr r3, [pc, #236] @ (8011470 ) 8011384: 6adb ldr r3, [r3, #44] @ 0x2c 8011386: 091b lsrs r3, r3, #4 8011388: f003 030f and.w r3, r3, #15 801138c: 3301 adds r3, #1 801138e: 623b str r3, [r7, #32] pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; 8011390: 4b37 ldr r3, [pc, #220] @ (8011470 ) 8011392: 6adb ldr r3, [r3, #44] @ 0x2c 8011394: 0a1b lsrs r3, r3, #8 8011396: f003 030f and.w r3, r3, #15 801139a: 3302 adds r3, #2 801139c: 61fb str r3, [r7, #28] pllclk = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pll2mul * (uint64_t)pllmul) / ((uint64_t)prediv2 * (uint64_t)prediv)); 801139e: 69fb ldr r3, [r7, #28] 80113a0: 2200 movs r2, #0 80113a2: 469a mov sl, r3 80113a4: 4693 mov fp, r2 80113a6: 6a7b ldr r3, [r7, #36] @ 0x24 80113a8: 2200 movs r2, #0 80113aa: 613b str r3, [r7, #16] 80113ac: 617a str r2, [r7, #20] 80113ae: 693b ldr r3, [r7, #16] 80113b0: fb03 f20b mul.w r2, r3, fp 80113b4: 697b ldr r3, [r7, #20] 80113b6: fb0a f303 mul.w r3, sl, r3 80113ba: 4413 add r3, r2 80113bc: 693a ldr r2, [r7, #16] 80113be: fbaa 0102 umull r0, r1, sl, r2 80113c2: 440b add r3, r1 80113c4: 4619 mov r1, r3 80113c6: 4b2b ldr r3, [pc, #172] @ (8011474 ) 80113c8: fb03 f201 mul.w r2, r3, r1 80113cc: 2300 movs r3, #0 80113ce: fb00 f303 mul.w r3, r0, r3 80113d2: 4413 add r3, r2 80113d4: 4a27 ldr r2, [pc, #156] @ (8011474 ) 80113d6: fba0 4502 umull r4, r5, r0, r2 80113da: 442b add r3, r5 80113dc: 461d mov r5, r3 80113de: 6a3b ldr r3, [r7, #32] 80113e0: 2200 movs r2, #0 80113e2: 60bb str r3, [r7, #8] 80113e4: 60fa str r2, [r7, #12] 80113e6: 6abb ldr r3, [r7, #40] @ 0x28 80113e8: 2200 movs r2, #0 80113ea: 603b str r3, [r7, #0] 80113ec: 607a str r2, [r7, #4] 80113ee: e9d7 0102 ldrd r0, r1, [r7, #8] 80113f2: 460b mov r3, r1 80113f4: e9d7 ab00 ldrd sl, fp, [r7] 80113f8: 4652 mov r2, sl 80113fa: fb02 f203 mul.w r2, r2, r3 80113fe: 465b mov r3, fp 8011400: 4684 mov ip, r0 8011402: fb0c f303 mul.w r3, ip, r3 8011406: 4413 add r3, r2 8011408: 4602 mov r2, r0 801140a: 4651 mov r1, sl 801140c: fba2 8901 umull r8, r9, r2, r1 8011410: 444b add r3, r9 8011412: 4699 mov r9, r3 8011414: 4642 mov r2, r8 8011416: 464b mov r3, r9 8011418: 4620 mov r0, r4 801141a: 4629 mov r1, r5 801141c: f7f7 feea bl 80091f4 <__aeabi_uldivmod> 8011420: 4602 mov r2, r0 8011422: 460b mov r3, r1 8011424: 4613 mov r3, r2 8011426: 637b str r3, [r7, #52] @ 0x34 8011428: e007 b.n 801143a } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); 801142a: 6a7b ldr r3, [r7, #36] @ 0x24 801142c: 4a11 ldr r2, [pc, #68] @ (8011474 ) 801142e: fb03 f202 mul.w r2, r3, r2 8011432: 6abb ldr r3, [r7, #40] @ 0x28 8011434: fbb2 f3f3 udiv r3, r2, r3 8011438: 637b str r3, [r7, #52] @ 0x34 } /* If PLLMUL was set to 13 means that it was to cover the case PLLMUL 6.5 (avoid using float) */ /* In this case need to divide pllclk by 2 */ if (pllmul == aPLLMULFactorTable[(uint32_t)(RCC_CFGR_PLLMULL6_5) >> RCC_CFGR_PLLMULL_Pos]) 801143a: 4b0f ldr r3, [pc, #60] @ (8011478 ) 801143c: 7b5b ldrb r3, [r3, #13] 801143e: 461a mov r2, r3 8011440: 6a7b ldr r3, [r7, #36] @ 0x24 8011442: 4293 cmp r3, r2 8011444: d108 bne.n 8011458 { pllclk = pllclk / 2; 8011446: 6b7b ldr r3, [r7, #52] @ 0x34 8011448: 085b lsrs r3, r3, #1 801144a: 637b str r3, [r7, #52] @ 0x34 801144c: e004 b.n 8011458 #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 801144e: 6a7b ldr r3, [r7, #36] @ 0x24 8011450: 4a0b ldr r2, [pc, #44] @ (8011480 ) 8011452: fb02 f303 mul.w r3, r2, r3 8011456: 637b str r3, [r7, #52] @ 0x34 } sysclockfreq = pllclk; 8011458: 6b7b ldr r3, [r7, #52] @ 0x34 801145a: 633b str r3, [r7, #48] @ 0x30 break; 801145c: e002 b.n 8011464 } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; 801145e: 4b09 ldr r3, [pc, #36] @ (8011484 ) 8011460: 633b str r3, [r7, #48] @ 0x30 break; 8011462: bf00 nop } } return sysclockfreq; 8011464: 6b3b ldr r3, [r7, #48] @ 0x30 } 8011466: 4618 mov r0, r3 8011468: 3738 adds r7, #56 @ 0x38 801146a: 46bd mov sp, r7 801146c: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} 8011470: 40021000 .word 0x40021000 8011474: 017d7840 .word 0x017d7840 8011478: 0801722c .word 0x0801722c 801147c: 0801723c .word 0x0801723c 8011480: 003d0900 .word 0x003d0900 8011484: 007a1200 .word 0x007a1200 08011488 : * @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) { 8011488: b480 push {r7} 801148a: af00 add r7, sp, #0 return SystemCoreClock; 801148c: 4b02 ldr r3, [pc, #8] @ (8011498 ) 801148e: 681b ldr r3, [r3, #0] } 8011490: 4618 mov r0, r3 8011492: 46bd mov sp, r7 8011494: bc80 pop {r7} 8011496: 4770 bx lr 8011498: 20000084 .word 0x20000084 0801149c : * @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) { 801149c: b580 push {r7, lr} 801149e: 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]); 80114a0: f7ff fff2 bl 8011488 80114a4: 4602 mov r2, r0 80114a6: 4b05 ldr r3, [pc, #20] @ (80114bc ) 80114a8: 685b ldr r3, [r3, #4] 80114aa: 0a1b lsrs r3, r3, #8 80114ac: f003 0307 and.w r3, r3, #7 80114b0: 4903 ldr r1, [pc, #12] @ (80114c0 ) 80114b2: 5ccb ldrb r3, [r1, r3] 80114b4: fa22 f303 lsr.w r3, r2, r3 } 80114b8: 4618 mov r0, r3 80114ba: bd80 pop {r7, pc} 80114bc: 40021000 .word 0x40021000 80114c0: 08017224 .word 0x08017224 080114c4 : * @note Each time PCLK2 changes, this function must be called to update the * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK2 frequency */ uint32_t HAL_RCC_GetPCLK2Freq(void) { 80114c4: b580 push {r7, lr} 80114c6: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]); 80114c8: f7ff ffde bl 8011488 80114cc: 4602 mov r2, r0 80114ce: 4b05 ldr r3, [pc, #20] @ (80114e4 ) 80114d0: 685b ldr r3, [r3, #4] 80114d2: 0adb lsrs r3, r3, #11 80114d4: f003 0307 and.w r3, r3, #7 80114d8: 4903 ldr r1, [pc, #12] @ (80114e8 ) 80114da: 5ccb ldrb r3, [r1, r3] 80114dc: fa22 f303 lsr.w r3, r2, r3 } 80114e0: 4618 mov r0, r3 80114e2: bd80 pop {r7, pc} 80114e4: 40021000 .word 0x40021000 80114e8: 08017224 .word 0x08017224 080114ec : * @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) { 80114ec: b480 push {r7} 80114ee: b085 sub sp, #20 80114f0: af00 add r7, sp, #0 80114f2: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); 80114f4: 4b0a ldr r3, [pc, #40] @ (8011520 ) 80114f6: 681b ldr r3, [r3, #0] 80114f8: 4a0a ldr r2, [pc, #40] @ (8011524 ) 80114fa: fba2 2303 umull r2, r3, r2, r3 80114fe: 0a5b lsrs r3, r3, #9 8011500: 687a ldr r2, [r7, #4] 8011502: fb02 f303 mul.w r3, r2, r3 8011506: 60fb str r3, [r7, #12] do { __NOP(); 8011508: bf00 nop } while (Delay --); 801150a: 68fb ldr r3, [r7, #12] 801150c: 1e5a subs r2, r3, #1 801150e: 60fa str r2, [r7, #12] 8011510: 2b00 cmp r3, #0 8011512: d1f9 bne.n 8011508 } 8011514: bf00 nop 8011516: bf00 nop 8011518: 3714 adds r7, #20 801151a: 46bd mov sp, r7 801151c: bc80 pop {r7} 801151e: 4770 bx lr 8011520: 20000084 .word 0x20000084 8011524: 10624dd3 .word 0x10624dd3 08011528 : * manually disable it. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { 8011528: b580 push {r7, lr} 801152a: b088 sub sp, #32 801152c: af00 add r7, sp, #0 801152e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U, temp_reg = 0U; 8011530: 2300 movs r3, #0 8011532: 617b str r3, [r7, #20] 8011534: 2300 movs r3, #0 8011536: 613b str r3, [r7, #16] #if defined(STM32F105xC) || defined(STM32F107xC) uint32_t pllactive = 0U; 8011538: 2300 movs r3, #0 801153a: 61fb str r3, [r7, #28] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*------------------------------- RTC/LCD Configuration ------------------------*/ if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)) 801153c: 687b ldr r3, [r7, #4] 801153e: 681b ldr r3, [r3, #0] 8011540: f003 0301 and.w r3, r3, #1 8011544: 2b00 cmp r3, #0 8011546: d07d beq.n 8011644 { FlagStatus pwrclkchanged = RESET; 8011548: 2300 movs r3, #0 801154a: 76fb strb r3, [r7, #27] assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* As soon as function is called to change RTC clock source, activation of the power domain is done. */ /* Requires to enable write access to Backup Domain of necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED()) 801154c: 4b8b ldr r3, [pc, #556] @ (801177c ) 801154e: 69db ldr r3, [r3, #28] 8011550: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011554: 2b00 cmp r3, #0 8011556: d10d bne.n 8011574 { __HAL_RCC_PWR_CLK_ENABLE(); 8011558: 4b88 ldr r3, [pc, #544] @ (801177c ) 801155a: 69db ldr r3, [r3, #28] 801155c: 4a87 ldr r2, [pc, #540] @ (801177c ) 801155e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 8011562: 61d3 str r3, [r2, #28] 8011564: 4b85 ldr r3, [pc, #532] @ (801177c ) 8011566: 69db ldr r3, [r3, #28] 8011568: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 801156c: 60fb str r3, [r7, #12] 801156e: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; 8011570: 2301 movs r3, #1 8011572: 76fb strb r3, [r7, #27] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8011574: 4b82 ldr r3, [pc, #520] @ (8011780 ) 8011576: 681b ldr r3, [r3, #0] 8011578: f403 7380 and.w r3, r3, #256 @ 0x100 801157c: 2b00 cmp r3, #0 801157e: d118 bne.n 80115b2 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8011580: 4b7f ldr r3, [pc, #508] @ (8011780 ) 8011582: 681b ldr r3, [r3, #0] 8011584: 4a7e ldr r2, [pc, #504] @ (8011780 ) 8011586: f443 7380 orr.w r3, r3, #256 @ 0x100 801158a: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 801158c: f7fc fd50 bl 800e030 8011590: 6178 str r0, [r7, #20] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8011592: e008 b.n 80115a6 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 8011594: f7fc fd4c bl 800e030 8011598: 4602 mov r2, r0 801159a: 697b ldr r3, [r7, #20] 801159c: 1ad3 subs r3, r2, r3 801159e: 2b64 cmp r3, #100 @ 0x64 80115a0: d901 bls.n 80115a6 { return HAL_TIMEOUT; 80115a2: 2303 movs r3, #3 80115a4: e0e5 b.n 8011772 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80115a6: 4b76 ldr r3, [pc, #472] @ (8011780 ) 80115a8: 681b ldr r3, [r3, #0] 80115aa: f403 7380 and.w r3, r3, #256 @ 0x100 80115ae: 2b00 cmp r3, #0 80115b0: d0f0 beq.n 8011594 } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); 80115b2: 4b72 ldr r3, [pc, #456] @ (801177c ) 80115b4: 6a1b ldr r3, [r3, #32] 80115b6: f403 7340 and.w r3, r3, #768 @ 0x300 80115ba: 613b str r3, [r7, #16] if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) 80115bc: 693b ldr r3, [r7, #16] 80115be: 2b00 cmp r3, #0 80115c0: d02e beq.n 8011620 80115c2: 687b ldr r3, [r7, #4] 80115c4: 685b ldr r3, [r3, #4] 80115c6: f403 7340 and.w r3, r3, #768 @ 0x300 80115ca: 693a ldr r2, [r7, #16] 80115cc: 429a cmp r2, r3 80115ce: d027 beq.n 8011620 { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); 80115d0: 4b6a ldr r3, [pc, #424] @ (801177c ) 80115d2: 6a1b ldr r3, [r3, #32] 80115d4: f423 7340 bic.w r3, r3, #768 @ 0x300 80115d8: 613b str r3, [r7, #16] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); 80115da: 4b6a ldr r3, [pc, #424] @ (8011784 ) 80115dc: 2201 movs r2, #1 80115de: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); 80115e0: 4b68 ldr r3, [pc, #416] @ (8011784 ) 80115e2: 2200 movs r2, #0 80115e4: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; 80115e6: 4a65 ldr r2, [pc, #404] @ (801177c ) 80115e8: 693b ldr r3, [r7, #16] 80115ea: 6213 str r3, [r2, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) 80115ec: 693b ldr r3, [r7, #16] 80115ee: f003 0301 and.w r3, r3, #1 80115f2: 2b00 cmp r3, #0 80115f4: d014 beq.n 8011620 { /* Get Start Tick */ tickstart = HAL_GetTick(); 80115f6: f7fc fd1b bl 800e030 80115fa: 6178 str r0, [r7, #20] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 80115fc: e00a b.n 8011614 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 80115fe: f7fc fd17 bl 800e030 8011602: 4602 mov r2, r0 8011604: 697b ldr r3, [r7, #20] 8011606: 1ad3 subs r3, r2, r3 8011608: f241 3288 movw r2, #5000 @ 0x1388 801160c: 4293 cmp r3, r2 801160e: d901 bls.n 8011614 { return HAL_TIMEOUT; 8011610: 2303 movs r3, #3 8011612: e0ae b.n 8011772 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8011614: 4b59 ldr r3, [pc, #356] @ (801177c ) 8011616: 6a1b ldr r3, [r3, #32] 8011618: f003 0302 and.w r3, r3, #2 801161c: 2b00 cmp r3, #0 801161e: d0ee beq.n 80115fe } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); 8011620: 4b56 ldr r3, [pc, #344] @ (801177c ) 8011622: 6a1b ldr r3, [r3, #32] 8011624: f423 7240 bic.w r2, r3, #768 @ 0x300 8011628: 687b ldr r3, [r7, #4] 801162a: 685b ldr r3, [r3, #4] 801162c: 4953 ldr r1, [pc, #332] @ (801177c ) 801162e: 4313 orrs r3, r2 8011630: 620b str r3, [r1, #32] /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 8011632: 7efb ldrb r3, [r7, #27] 8011634: 2b01 cmp r3, #1 8011636: d105 bne.n 8011644 { __HAL_RCC_PWR_CLK_DISABLE(); 8011638: 4b50 ldr r3, [pc, #320] @ (801177c ) 801163a: 69db ldr r3, [r3, #28] 801163c: 4a4f ldr r2, [pc, #316] @ (801177c ) 801163e: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8011642: 61d3 str r3, [r2, #28] } } /*------------------------------ ADC clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) 8011644: 687b ldr r3, [r7, #4] 8011646: 681b ldr r3, [r3, #0] 8011648: f003 0302 and.w r3, r3, #2 801164c: 2b00 cmp r3, #0 801164e: d008 beq.n 8011662 { /* Check the parameters */ assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection)); /* Configure the ADC clock source */ __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); 8011650: 4b4a ldr r3, [pc, #296] @ (801177c ) 8011652: 685b ldr r3, [r3, #4] 8011654: f423 4240 bic.w r2, r3, #49152 @ 0xc000 8011658: 687b ldr r3, [r7, #4] 801165a: 689b ldr r3, [r3, #8] 801165c: 4947 ldr r1, [pc, #284] @ (801177c ) 801165e: 4313 orrs r3, r2 8011660: 604b str r3, [r1, #4] } #if defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ I2S2 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S2) == RCC_PERIPHCLK_I2S2) 8011662: 687b ldr r3, [r7, #4] 8011664: 681b ldr r3, [r3, #0] 8011666: f003 0304 and.w r3, r3, #4 801166a: 2b00 cmp r3, #0 801166c: d008 beq.n 8011680 { /* Check the parameters */ assert_param(IS_RCC_I2S2CLKSOURCE(PeriphClkInit->I2s2ClockSelection)); /* Configure the I2S2 clock source */ __HAL_RCC_I2S2_CONFIG(PeriphClkInit->I2s2ClockSelection); 801166e: 4b43 ldr r3, [pc, #268] @ (801177c ) 8011670: 6adb ldr r3, [r3, #44] @ 0x2c 8011672: f423 3200 bic.w r2, r3, #131072 @ 0x20000 8011676: 687b ldr r3, [r7, #4] 8011678: 68db ldr r3, [r3, #12] 801167a: 4940 ldr r1, [pc, #256] @ (801177c ) 801167c: 4313 orrs r3, r2 801167e: 62cb str r3, [r1, #44] @ 0x2c } /*------------------------------ I2S3 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S3) == RCC_PERIPHCLK_I2S3) 8011680: 687b ldr r3, [r7, #4] 8011682: 681b ldr r3, [r3, #0] 8011684: f003 0308 and.w r3, r3, #8 8011688: 2b00 cmp r3, #0 801168a: d008 beq.n 801169e { /* Check the parameters */ assert_param(IS_RCC_I2S3CLKSOURCE(PeriphClkInit->I2s3ClockSelection)); /* Configure the I2S3 clock source */ __HAL_RCC_I2S3_CONFIG(PeriphClkInit->I2s3ClockSelection); 801168c: 4b3b ldr r3, [pc, #236] @ (801177c ) 801168e: 6adb ldr r3, [r3, #44] @ 0x2c 8011690: f423 2280 bic.w r2, r3, #262144 @ 0x40000 8011694: 687b ldr r3, [r7, #4] 8011696: 691b ldr r3, [r3, #16] 8011698: 4938 ldr r1, [pc, #224] @ (801177c ) 801169a: 4313 orrs r3, r2 801169c: 62cb str r3, [r1, #44] @ 0x2c } /*------------------------------ PLL I2S Configuration ----------------------*/ /* Check that PLLI2S need to be enabled */ if (HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_I2S2SRC) || HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_I2S3SRC)) 801169e: 4b37 ldr r3, [pc, #220] @ (801177c ) 80116a0: 6adb ldr r3, [r3, #44] @ 0x2c 80116a2: f403 3300 and.w r3, r3, #131072 @ 0x20000 80116a6: 2b00 cmp r3, #0 80116a8: d105 bne.n 80116b6 80116aa: 4b34 ldr r3, [pc, #208] @ (801177c ) 80116ac: 6adb ldr r3, [r3, #44] @ 0x2c 80116ae: f403 2380 and.w r3, r3, #262144 @ 0x40000 80116b2: 2b00 cmp r3, #0 80116b4: d001 beq.n 80116ba { /* Update flag to indicate that PLL I2S should be active */ pllactive = 1; 80116b6: 2301 movs r3, #1 80116b8: 61fb str r3, [r7, #28] } /* Check if PLL I2S need to be enabled */ if (pllactive == 1) 80116ba: 69fb ldr r3, [r7, #28] 80116bc: 2b01 cmp r3, #1 80116be: d148 bne.n 8011752 { /* Enable PLL I2S only if not active */ if (HAL_IS_BIT_CLR(RCC->CR, RCC_CR_PLL3ON)) 80116c0: 4b2e ldr r3, [pc, #184] @ (801177c ) 80116c2: 681b ldr r3, [r3, #0] 80116c4: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80116c8: 2b00 cmp r3, #0 80116ca: d138 bne.n 801173e assert_param(IS_RCC_PLLI2S_MUL(PeriphClkInit->PLLI2S.PLLI2SMUL)); assert_param(IS_RCC_HSE_PREDIV2(PeriphClkInit->PLLI2S.HSEPrediv2Value)); /* Prediv2 can be written only when the PLL2 is disabled. */ /* Return an error only if new value is different from the programmed value */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2ON) && \ 80116cc: 4b2b ldr r3, [pc, #172] @ (801177c ) 80116ce: 681b ldr r3, [r3, #0] 80116d0: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 80116d4: 2b00 cmp r3, #0 80116d6: d009 beq.n 80116ec (__HAL_RCC_HSE_GET_PREDIV2() != PeriphClkInit->PLLI2S.HSEPrediv2Value)) 80116d8: 4b28 ldr r3, [pc, #160] @ (801177c ) 80116da: 6adb ldr r3, [r3, #44] @ 0x2c 80116dc: f003 02f0 and.w r2, r3, #240 @ 0xf0 80116e0: 687b ldr r3, [r7, #4] 80116e2: 699b ldr r3, [r3, #24] if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2ON) && \ 80116e4: 429a cmp r2, r3 80116e6: d001 beq.n 80116ec { return HAL_ERROR; 80116e8: 2301 movs r3, #1 80116ea: e042 b.n 8011772 } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(PeriphClkInit->PLLI2S.HSEPrediv2Value); 80116ec: 4b23 ldr r3, [pc, #140] @ (801177c ) 80116ee: 6adb ldr r3, [r3, #44] @ 0x2c 80116f0: f023 02f0 bic.w r2, r3, #240 @ 0xf0 80116f4: 687b ldr r3, [r7, #4] 80116f6: 699b ldr r3, [r3, #24] 80116f8: 4920 ldr r1, [pc, #128] @ (801177c ) 80116fa: 4313 orrs r3, r2 80116fc: 62cb str r3, [r1, #44] @ 0x2c /* Configure the main PLLI2S multiplication factors. */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SMUL); 80116fe: 4b1f ldr r3, [pc, #124] @ (801177c ) 8011700: 6adb ldr r3, [r3, #44] @ 0x2c 8011702: f423 4270 bic.w r2, r3, #61440 @ 0xf000 8011706: 687b ldr r3, [r7, #4] 8011708: 695b ldr r3, [r3, #20] 801170a: 491c ldr r1, [pc, #112] @ (801177c ) 801170c: 4313 orrs r3, r2 801170e: 62cb str r3, [r1, #44] @ 0x2c /* Enable the main PLLI2S. */ __HAL_RCC_PLLI2S_ENABLE(); 8011710: 4b1d ldr r3, [pc, #116] @ (8011788 ) 8011712: 2201 movs r2, #1 8011714: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); 8011716: f7fc fc8b bl 800e030 801171a: 6178 str r0, [r7, #20] /* Wait till PLLI2S is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) 801171c: e008 b.n 8011730 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) 801171e: f7fc fc87 bl 800e030 8011722: 4602 mov r2, r0 8011724: 697b ldr r3, [r7, #20] 8011726: 1ad3 subs r3, r2, r3 8011728: 2b64 cmp r3, #100 @ 0x64 801172a: d901 bls.n 8011730 { return HAL_TIMEOUT; 801172c: 2303 movs r3, #3 801172e: e020 b.n 8011772 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) 8011730: 4b12 ldr r3, [pc, #72] @ (801177c ) 8011732: 681b ldr r3, [r3, #0] 8011734: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 8011738: 2b00 cmp r3, #0 801173a: d0f0 beq.n 801171e 801173c: e009 b.n 8011752 } } else { /* Return an error only if user wants to change the PLLI2SMUL whereas PLLI2S is active */ if (READ_BIT(RCC->CFGR2, RCC_CFGR2_PLL3MUL) != PeriphClkInit->PLLI2S.PLLI2SMUL) 801173e: 4b0f ldr r3, [pc, #60] @ (801177c ) 8011740: 6adb ldr r3, [r3, #44] @ 0x2c 8011742: f403 4270 and.w r2, r3, #61440 @ 0xf000 8011746: 687b ldr r3, [r7, #4] 8011748: 695b ldr r3, [r3, #20] 801174a: 429a cmp r2, r3 801174c: d001 beq.n 8011752 { return HAL_ERROR; 801174e: 2301 movs r3, #1 8011750: e00f b.n 8011772 #if defined(STM32F102x6) || defined(STM32F102xB) || defined(STM32F103x6)\ || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ USB clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) 8011752: 687b ldr r3, [r7, #4] 8011754: 681b ldr r3, [r3, #0] 8011756: f003 0310 and.w r3, r3, #16 801175a: 2b00 cmp r3, #0 801175c: d008 beq.n 8011770 { /* Check the parameters */ assert_param(IS_RCC_USBPLLCLK_DIV(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); 801175e: 4b07 ldr r3, [pc, #28] @ (801177c ) 8011760: 685b ldr r3, [r3, #4] 8011762: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 8011766: 687b ldr r3, [r7, #4] 8011768: 69db ldr r3, [r3, #28] 801176a: 4904 ldr r1, [pc, #16] @ (801177c ) 801176c: 4313 orrs r3, r2 801176e: 604b str r3, [r1, #4] } #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ return HAL_OK; 8011770: 2300 movs r3, #0 } 8011772: 4618 mov r0, r3 8011774: 3720 adds r7, #32 8011776: 46bd mov sp, r7 8011778: bd80 pop {r7, pc} 801177a: bf00 nop 801177c: 40021000 .word 0x40021000 8011780: 40007000 .word 0x40007000 8011784: 42420440 .word 0x42420440 8011788: 42420070 .word 0x42420070 0801178c : * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock @endif * @retval Frequency in Hz (0: means that no available frequency for the peripheral) */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { 801178c: b580 push {r7, lr} 801178e: b08a sub sp, #40 @ 0x28 8011790: af00 add r7, sp, #0 8011792: 6078 str r0, [r7, #4] #if defined(STM32F105xC) || defined(STM32F107xC) static const uint8_t aPLLMULFactorTable[14U] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13}; static const uint8_t aPredivFactorTable[16U] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U; 8011794: 2300 movs r3, #0 8011796: 61fb str r3, [r7, #28] 8011798: 2300 movs r3, #0 801179a: 627b str r3, [r7, #36] @ 0x24 801179c: 2300 movs r3, #0 801179e: 61bb str r3, [r7, #24] uint32_t pll2mul = 0U, pll3mul = 0U, prediv2 = 0U; 80117a0: 2300 movs r3, #0 80117a2: 617b str r3, [r7, #20] 80117a4: 2300 movs r3, #0 80117a6: 613b str r3, [r7, #16] 80117a8: 2300 movs r3, #0 80117aa: 60fb str r3, [r7, #12] static const uint8_t aPLLMULFactorTable[16U] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16}; static const uint8_t aPredivFactorTable[2U] = {1, 2}; uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U; #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG */ uint32_t temp_reg = 0U, frequency = 0U; 80117ac: 2300 movs r3, #0 80117ae: 60bb str r3, [r7, #8] 80117b0: 2300 movs r3, #0 80117b2: 623b str r3, [r7, #32] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClk)); switch (PeriphClk) 80117b4: 687b ldr r3, [r7, #4] 80117b6: 3b01 subs r3, #1 80117b8: 2b0f cmp r3, #15 80117ba: f200 811d bhi.w 80119f8 80117be: a201 add r2, pc, #4 @ (adr r2, 80117c4 ) 80117c0: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80117c4: 08011979 .word 0x08011979 80117c8: 080119dd .word 0x080119dd 80117cc: 080119f9 .word 0x080119f9 80117d0: 080118d7 .word 0x080118d7 80117d4: 080119f9 .word 0x080119f9 80117d8: 080119f9 .word 0x080119f9 80117dc: 080119f9 .word 0x080119f9 80117e0: 08011929 .word 0x08011929 80117e4: 080119f9 .word 0x080119f9 80117e8: 080119f9 .word 0x080119f9 80117ec: 080119f9 .word 0x080119f9 80117f0: 080119f9 .word 0x080119f9 80117f4: 080119f9 .word 0x080119f9 80117f8: 080119f9 .word 0x080119f9 80117fc: 080119f9 .word 0x080119f9 8011800: 08011805 .word 0x08011805 || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) case RCC_PERIPHCLK_USB: { /* Get RCC configuration ------------------------------------------------------*/ temp_reg = RCC->CFGR; 8011804: 4b83 ldr r3, [pc, #524] @ (8011a14 ) 8011806: 685b ldr r3, [r3, #4] 8011808: 60bb str r3, [r7, #8] /* Check if PLL is enabled */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLLON)) 801180a: 4b82 ldr r3, [pc, #520] @ (8011a14 ) 801180c: 681b ldr r3, [r3, #0] 801180e: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 8011812: 2b00 cmp r3, #0 8011814: f000 80f2 beq.w 80119fc { pllmul = aPLLMULFactorTable[(uint32_t)(temp_reg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 8011818: 68bb ldr r3, [r7, #8] 801181a: 0c9b lsrs r3, r3, #18 801181c: f003 030f and.w r3, r3, #15 8011820: 4a7d ldr r2, [pc, #500] @ (8011a18 ) 8011822: 5cd3 ldrb r3, [r2, r3] 8011824: 61bb str r3, [r7, #24] if ((temp_reg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 8011826: 68bb ldr r3, [r7, #8] 8011828: f403 3380 and.w r3, r3, #65536 @ 0x10000 801182c: 2b00 cmp r3, #0 801182e: d03b beq.n 80118a8 { #if defined(STM32F105xC) || defined(STM32F107xC) || defined(STM32F100xB)\ || defined(STM32F100xE) prediv1 = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; 8011830: 4b78 ldr r3, [pc, #480] @ (8011a14 ) 8011832: 6adb ldr r3, [r3, #44] @ 0x2c 8011834: f003 030f and.w r3, r3, #15 8011838: 4a78 ldr r2, [pc, #480] @ (8011a1c ) 801183a: 5cd3 ldrb r3, [r2, r3] 801183c: 61fb str r3, [r7, #28] #else prediv1 = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; #endif /* STM32F105xC || STM32F107xC || STM32F100xB || STM32F100xE */ #if defined(STM32F105xC) || defined(STM32F107xC) if (HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) 801183e: 4b75 ldr r3, [pc, #468] @ (8011a14 ) 8011840: 6adb ldr r3, [r3, #44] @ 0x2c 8011842: f403 3380 and.w r3, r3, #65536 @ 0x10000 8011846: 2b00 cmp r3, #0 8011848: d01c beq.n 8011884 { /* PLL2 selected as Prediv1 source */ /* PLLCLK = PLL2CLK / PREDIV1 * PLLMUL with PLL2CLK = HSE/PREDIV2 * PLL2MUL */ prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 801184a: 4b72 ldr r3, [pc, #456] @ (8011a14 ) 801184c: 6adb ldr r3, [r3, #44] @ 0x2c 801184e: 091b lsrs r3, r3, #4 8011850: f003 030f and.w r3, r3, #15 8011854: 3301 adds r3, #1 8011856: 60fb str r3, [r7, #12] pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; 8011858: 4b6e ldr r3, [pc, #440] @ (8011a14 ) 801185a: 6adb ldr r3, [r3, #44] @ 0x2c 801185c: 0a1b lsrs r3, r3, #8 801185e: f003 030f and.w r3, r3, #15 8011862: 3302 adds r3, #2 8011864: 617b str r3, [r7, #20] pllclk = (uint32_t)((((HSE_VALUE / prediv2) * pll2mul) / prediv1) * pllmul); 8011866: 4a6e ldr r2, [pc, #440] @ (8011a20 ) 8011868: 68fb ldr r3, [r7, #12] 801186a: fbb2 f3f3 udiv r3, r2, r3 801186e: 697a ldr r2, [r7, #20] 8011870: fb03 f202 mul.w r2, r3, r2 8011874: 69fb ldr r3, [r7, #28] 8011876: fbb2 f2f3 udiv r2, r2, r3 801187a: 69bb ldr r3, [r7, #24] 801187c: fb02 f303 mul.w r3, r2, r3 8011880: 627b str r3, [r7, #36] @ 0x24 8011882: e007 b.n 8011894 } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE / prediv1) * pllmul); 8011884: 4a66 ldr r2, [pc, #408] @ (8011a20 ) 8011886: 69fb ldr r3, [r7, #28] 8011888: fbb2 f2f3 udiv r2, r2, r3 801188c: 69bb ldr r3, [r7, #24] 801188e: fb02 f303 mul.w r3, r2, r3 8011892: 627b str r3, [r7, #36] @ 0x24 } /* If PLLMUL was set to 13 means that it was to cover the case PLLMUL 6.5 (avoid using float) */ /* In this case need to divide pllclk by 2 */ if (pllmul == aPLLMULFactorTable[(uint32_t)(RCC_CFGR_PLLMULL6_5) >> RCC_CFGR_PLLMULL_Pos]) 8011894: 4b60 ldr r3, [pc, #384] @ (8011a18 ) 8011896: 7b5b ldrb r3, [r3, #13] 8011898: 461a mov r2, r3 801189a: 69bb ldr r3, [r7, #24] 801189c: 4293 cmp r3, r2 801189e: d108 bne.n 80118b2 { pllclk = pllclk / 2; 80118a0: 6a7b ldr r3, [r7, #36] @ 0x24 80118a2: 085b lsrs r3, r3, #1 80118a4: 627b str r3, [r7, #36] @ 0x24 80118a6: e004 b.n 80118b2 #endif /* STM32F105xC || STM32F107xC */ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 80118a8: 69bb ldr r3, [r7, #24] 80118aa: 4a5e ldr r2, [pc, #376] @ (8011a24 ) 80118ac: fb02 f303 mul.w r3, r2, r3 80118b0: 627b str r3, [r7, #36] @ 0x24 } /* Calcul of the USB frequency*/ #if defined(STM32F105xC) || defined(STM32F107xC) /* USBCLK = PLLVCO = (2 x PLLCLK) / USB prescaler */ if (__HAL_RCC_GET_USB_SOURCE() == RCC_USBCLKSOURCE_PLL_DIV2) 80118b2: 4b58 ldr r3, [pc, #352] @ (8011a14 ) 80118b4: 685b ldr r3, [r3, #4] 80118b6: f403 0380 and.w r3, r3, #4194304 @ 0x400000 80118ba: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 80118be: d102 bne.n 80118c6 { /* Prescaler of 2 selected for USB */ frequency = pllclk; 80118c0: 6a7b ldr r3, [r7, #36] @ 0x24 80118c2: 623b str r3, [r7, #32] /* Prescaler of 1.5 selected for USB */ frequency = (pllclk * 2) / 3; } #endif } break; 80118c4: e09a b.n 80119fc frequency = (2 * pllclk) / 3; 80118c6: 6a7b ldr r3, [r7, #36] @ 0x24 80118c8: 005b lsls r3, r3, #1 80118ca: 4a57 ldr r2, [pc, #348] @ (8011a28 ) 80118cc: fba2 2303 umull r2, r3, r2, r3 80118d0: 085b lsrs r3, r3, #1 80118d2: 623b str r3, [r7, #32] break; 80118d4: e092 b.n 80119fc { #if defined(STM32F103xE) || defined(STM32F103xG) /* SYSCLK used as source clock for I2S2 */ frequency = HAL_RCC_GetSysClockFreq(); #else if (__HAL_RCC_GET_I2S2_SOURCE() == RCC_I2S2CLKSOURCE_SYSCLK) 80118d6: 4b4f ldr r3, [pc, #316] @ (8011a14 ) 80118d8: 6adb ldr r3, [r3, #44] @ 0x2c 80118da: f403 3300 and.w r3, r3, #131072 @ 0x20000 80118de: 2b00 cmp r3, #0 80118e0: d103 bne.n 80118ea { /* SYSCLK used as source clock for I2S2 */ frequency = HAL_RCC_GetSysClockFreq(); 80118e2: f7ff fd15 bl 8011310 80118e6: 6238 str r0, [r7, #32] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); } } #endif /* STM32F103xE || STM32F103xG */ break; 80118e8: e08a b.n 8011a00 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) 80118ea: 4b4a ldr r3, [pc, #296] @ (8011a14 ) 80118ec: 681b ldr r3, [r3, #0] 80118ee: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80118f2: 2b00 cmp r3, #0 80118f4: f000 8084 beq.w 8011a00 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 80118f8: 4b46 ldr r3, [pc, #280] @ (8011a14 ) 80118fa: 6adb ldr r3, [r3, #44] @ 0x2c 80118fc: 091b lsrs r3, r3, #4 80118fe: f003 030f and.w r3, r3, #15 8011902: 3301 adds r3, #1 8011904: 60fb str r3, [r7, #12] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; 8011906: 4b43 ldr r3, [pc, #268] @ (8011a14 ) 8011908: 6adb ldr r3, [r3, #44] @ 0x2c 801190a: 0b1b lsrs r3, r3, #12 801190c: f003 030f and.w r3, r3, #15 8011910: 3302 adds r3, #2 8011912: 613b str r3, [r7, #16] frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); 8011914: 4a42 ldr r2, [pc, #264] @ (8011a20 ) 8011916: 68fb ldr r3, [r7, #12] 8011918: fbb2 f3f3 udiv r3, r2, r3 801191c: 693a ldr r2, [r7, #16] 801191e: fb02 f303 mul.w r3, r2, r3 8011922: 005b lsls r3, r3, #1 8011924: 623b str r3, [r7, #32] break; 8011926: e06b b.n 8011a00 { #if defined(STM32F103xE) || defined(STM32F103xG) /* SYSCLK used as source clock for I2S3 */ frequency = HAL_RCC_GetSysClockFreq(); #else if (__HAL_RCC_GET_I2S3_SOURCE() == RCC_I2S3CLKSOURCE_SYSCLK) 8011928: 4b3a ldr r3, [pc, #232] @ (8011a14 ) 801192a: 6adb ldr r3, [r3, #44] @ 0x2c 801192c: f403 2380 and.w r3, r3, #262144 @ 0x40000 8011930: 2b00 cmp r3, #0 8011932: d103 bne.n 801193c { /* SYSCLK used as source clock for I2S3 */ frequency = HAL_RCC_GetSysClockFreq(); 8011934: f7ff fcec bl 8011310 8011938: 6238 str r0, [r7, #32] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); } } #endif /* STM32F103xE || STM32F103xG */ break; 801193a: e063 b.n 8011a04 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) 801193c: 4b35 ldr r3, [pc, #212] @ (8011a14 ) 801193e: 681b ldr r3, [r3, #0] 8011940: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011944: 2b00 cmp r3, #0 8011946: d05d beq.n 8011a04 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 8011948: 4b32 ldr r3, [pc, #200] @ (8011a14 ) 801194a: 6adb ldr r3, [r3, #44] @ 0x2c 801194c: 091b lsrs r3, r3, #4 801194e: f003 030f and.w r3, r3, #15 8011952: 3301 adds r3, #1 8011954: 60fb str r3, [r7, #12] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; 8011956: 4b2f ldr r3, [pc, #188] @ (8011a14 ) 8011958: 6adb ldr r3, [r3, #44] @ 0x2c 801195a: 0b1b lsrs r3, r3, #12 801195c: f003 030f and.w r3, r3, #15 8011960: 3302 adds r3, #2 8011962: 613b str r3, [r7, #16] frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); 8011964: 4a2e ldr r2, [pc, #184] @ (8011a20 ) 8011966: 68fb ldr r3, [r7, #12] 8011968: fbb2 f3f3 udiv r3, r2, r3 801196c: 693a ldr r2, [r7, #16] 801196e: fb02 f303 mul.w r3, r2, r3 8011972: 005b lsls r3, r3, #1 8011974: 623b str r3, [r7, #32] break; 8011976: e045 b.n 8011a04 } #endif /* STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ case RCC_PERIPHCLK_RTC: { /* Get RCC BDCR configuration ------------------------------------------------------*/ temp_reg = RCC->BDCR; 8011978: 4b26 ldr r3, [pc, #152] @ (8011a14 ) 801197a: 6a1b ldr r3, [r3, #32] 801197c: 60bb str r3, [r7, #8] /* Check if LSE is ready if RTC clock selection is LSE */ if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSERDY))) 801197e: 68bb ldr r3, [r7, #8] 8011980: f403 7340 and.w r3, r3, #768 @ 0x300 8011984: f5b3 7f80 cmp.w r3, #256 @ 0x100 8011988: d108 bne.n 801199c 801198a: 68bb ldr r3, [r7, #8] 801198c: f003 0302 and.w r3, r3, #2 8011990: 2b00 cmp r3, #0 8011992: d003 beq.n 801199c { frequency = LSE_VALUE; 8011994: f44f 4300 mov.w r3, #32768 @ 0x8000 8011998: 623b str r3, [r7, #32] 801199a: e01e b.n 80119da } /* Check if LSI is ready if RTC clock selection is LSI */ else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY))) 801199c: 68bb ldr r3, [r7, #8] 801199e: f403 7340 and.w r3, r3, #768 @ 0x300 80119a2: f5b3 7f00 cmp.w r3, #512 @ 0x200 80119a6: d109 bne.n 80119bc 80119a8: 4b1a ldr r3, [pc, #104] @ (8011a14 ) 80119aa: 6a5b ldr r3, [r3, #36] @ 0x24 80119ac: f003 0302 and.w r3, r3, #2 80119b0: 2b00 cmp r3, #0 80119b2: d003 beq.n 80119bc { frequency = LSI_VALUE; 80119b4: f649 4340 movw r3, #40000 @ 0x9c40 80119b8: 623b str r3, [r7, #32] 80119ba: e00e b.n 80119da } else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))) 80119bc: 68bb ldr r3, [r7, #8] 80119be: f403 7340 and.w r3, r3, #768 @ 0x300 80119c2: f5b3 7f40 cmp.w r3, #768 @ 0x300 80119c6: d11f bne.n 8011a08 80119c8: 4b12 ldr r3, [pc, #72] @ (8011a14 ) 80119ca: 681b ldr r3, [r3, #0] 80119cc: f403 3300 and.w r3, r3, #131072 @ 0x20000 80119d0: 2b00 cmp r3, #0 80119d2: d019 beq.n 8011a08 { frequency = HSE_VALUE / 128U; 80119d4: 4b15 ldr r3, [pc, #84] @ (8011a2c ) 80119d6: 623b str r3, [r7, #32] /* Clock not enabled for RTC*/ else { /* nothing to do: frequency already initialized to 0U */ } break; 80119d8: e016 b.n 8011a08 80119da: e015 b.n 8011a08 } case RCC_PERIPHCLK_ADC: { frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2); 80119dc: f7ff fd72 bl 80114c4 80119e0: 4602 mov r2, r0 80119e2: 4b0c ldr r3, [pc, #48] @ (8011a14 ) 80119e4: 685b ldr r3, [r3, #4] 80119e6: 0b9b lsrs r3, r3, #14 80119e8: f003 0303 and.w r3, r3, #3 80119ec: 3301 adds r3, #1 80119ee: 005b lsls r3, r3, #1 80119f0: fbb2 f3f3 udiv r3, r2, r3 80119f4: 623b str r3, [r7, #32] break; 80119f6: e008 b.n 8011a0a } default: { break; 80119f8: bf00 nop 80119fa: e006 b.n 8011a0a break; 80119fc: bf00 nop 80119fe: e004 b.n 8011a0a break; 8011a00: bf00 nop 8011a02: e002 b.n 8011a0a break; 8011a04: bf00 nop 8011a06: e000 b.n 8011a0a break; 8011a08: bf00 nop } } return (frequency); 8011a0a: 6a3b ldr r3, [r7, #32] } 8011a0c: 4618 mov r0, r3 8011a0e: 3728 adds r7, #40 @ 0x28 8011a10: 46bd mov sp, r7 8011a12: bd80 pop {r7, pc} 8011a14: 40021000 .word 0x40021000 8011a18: 0801724c .word 0x0801724c 8011a1c: 0801725c .word 0x0801725c 8011a20: 017d7840 .word 0x017d7840 8011a24: 003d0900 .word 0x003d0900 8011a28: aaaaaaab .word 0xaaaaaaab 8011a2c: 0002faf0 .word 0x0002faf0 08011a30 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc) { 8011a30: b580 push {r7, lr} 8011a32: b084 sub sp, #16 8011a34: af00 add r7, sp, #0 8011a36: 6078 str r0, [r7, #4] uint32_t prescaler = 0U; 8011a38: 2300 movs r3, #0 8011a3a: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) 8011a3c: 687b ldr r3, [r7, #4] 8011a3e: 2b00 cmp r3, #0 8011a40: d101 bne.n 8011a46 { return HAL_ERROR; 8011a42: 2301 movs r3, #1 8011a44: e07a b.n 8011b3c { hrtc->MspDeInitCallback = HAL_RTC_MspDeInit; } } #else if (hrtc->State == HAL_RTC_STATE_RESET) 8011a46: 687b ldr r3, [r7, #4] 8011a48: 7c5b ldrb r3, [r3, #17] 8011a4a: b2db uxtb r3, r3 8011a4c: 2b00 cmp r3, #0 8011a4e: d105 bne.n 8011a5c { /* Allocate lock resource and initialize it */ hrtc->Lock = HAL_UNLOCKED; 8011a50: 687b ldr r3, [r7, #4] 8011a52: 2200 movs r2, #0 8011a54: 741a strb r2, [r3, #16] /* Initialize RTC MSP */ HAL_RTC_MspInit(hrtc); 8011a56: 6878 ldr r0, [r7, #4] 8011a58: f7fa f80a bl 800ba70 } #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */ /* Set RTC state */ hrtc->State = HAL_RTC_STATE_BUSY; 8011a5c: 687b ldr r3, [r7, #4] 8011a5e: 2202 movs r2, #2 8011a60: 745a strb r2, [r3, #17] /* Waiting for synchro */ if (HAL_RTC_WaitForSynchro(hrtc) != HAL_OK) 8011a62: 6878 ldr r0, [r7, #4] 8011a64: f000 f870 bl 8011b48 8011a68: 4603 mov r3, r0 8011a6a: 2b00 cmp r3, #0 8011a6c: d004 beq.n 8011a78 { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; 8011a6e: 687b ldr r3, [r7, #4] 8011a70: 2204 movs r2, #4 8011a72: 745a strb r2, [r3, #17] return HAL_ERROR; 8011a74: 2301 movs r3, #1 8011a76: e061 b.n 8011b3c } /* Set Initialization mode */ if (RTC_EnterInitMode(hrtc) != HAL_OK) 8011a78: 6878 ldr r0, [r7, #4] 8011a7a: f000 f892 bl 8011ba2 8011a7e: 4603 mov r3, r0 8011a80: 2b00 cmp r3, #0 8011a82: d004 beq.n 8011a8e { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; 8011a84: 687b ldr r3, [r7, #4] 8011a86: 2204 movs r2, #4 8011a88: 745a strb r2, [r3, #17] return HAL_ERROR; 8011a8a: 2301 movs r3, #1 8011a8c: e056 b.n 8011b3c } else { /* Clear Flags Bits */ CLEAR_BIT(hrtc->Instance->CRL, (RTC_FLAG_OW | RTC_FLAG_ALRAF | RTC_FLAG_SEC)); 8011a8e: 687b ldr r3, [r7, #4] 8011a90: 681b ldr r3, [r3, #0] 8011a92: 685a ldr r2, [r3, #4] 8011a94: 687b ldr r3, [r7, #4] 8011a96: 681b ldr r3, [r3, #0] 8011a98: f022 0207 bic.w r2, r2, #7 8011a9c: 605a str r2, [r3, #4] if (hrtc->Init.OutPut != RTC_OUTPUTSOURCE_NONE) 8011a9e: 687b ldr r3, [r7, #4] 8011aa0: 689b ldr r3, [r3, #8] 8011aa2: 2b00 cmp r3, #0 8011aa4: d005 beq.n 8011ab2 { /* Disable the selected Tamper pin */ CLEAR_BIT(BKP->CR, BKP_CR_TPE); 8011aa6: 4b27 ldr r3, [pc, #156] @ (8011b44 ) 8011aa8: 6b1b ldr r3, [r3, #48] @ 0x30 8011aaa: 4a26 ldr r2, [pc, #152] @ (8011b44 ) 8011aac: f023 0301 bic.w r3, r3, #1 8011ab0: 6313 str r3, [r2, #48] @ 0x30 } /* Set the signal which will be routed to RTC Tamper pin*/ MODIFY_REG(BKP->RTCCR, (BKP_RTCCR_CCO | BKP_RTCCR_ASOE | BKP_RTCCR_ASOS), hrtc->Init.OutPut); 8011ab2: 4b24 ldr r3, [pc, #144] @ (8011b44 ) 8011ab4: 6adb ldr r3, [r3, #44] @ 0x2c 8011ab6: f423 7260 bic.w r2, r3, #896 @ 0x380 8011aba: 687b ldr r3, [r7, #4] 8011abc: 689b ldr r3, [r3, #8] 8011abe: 4921 ldr r1, [pc, #132] @ (8011b44 ) 8011ac0: 4313 orrs r3, r2 8011ac2: 62cb str r3, [r1, #44] @ 0x2c if (hrtc->Init.AsynchPrediv != RTC_AUTO_1_SECOND) 8011ac4: 687b ldr r3, [r7, #4] 8011ac6: 685b ldr r3, [r3, #4] 8011ac8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 8011acc: d003 beq.n 8011ad6 { /* RTC Prescaler provided directly by end-user*/ prescaler = hrtc->Init.AsynchPrediv; 8011ace: 687b ldr r3, [r7, #4] 8011ad0: 685b ldr r3, [r3, #4] 8011ad2: 60fb str r3, [r7, #12] 8011ad4: e00e b.n 8011af4 } else { /* RTC Prescaler will be automatically calculated to get 1 second timebase */ /* Get the RTCCLK frequency */ prescaler = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_RTC); 8011ad6: 2001 movs r0, #1 8011ad8: f7ff fe58 bl 801178c 8011adc: 60f8 str r0, [r7, #12] /* Check that RTC clock is enabled*/ if (prescaler == 0U) 8011ade: 68fb ldr r3, [r7, #12] 8011ae0: 2b00 cmp r3, #0 8011ae2: d104 bne.n 8011aee { /* Should not happen. Frequency is not available*/ hrtc->State = HAL_RTC_STATE_ERROR; 8011ae4: 687b ldr r3, [r7, #4] 8011ae6: 2204 movs r2, #4 8011ae8: 745a strb r2, [r3, #17] return HAL_ERROR; 8011aea: 2301 movs r3, #1 8011aec: e026 b.n 8011b3c } else { /* RTC period = RTCCLK/(RTC_PR + 1) */ prescaler = prescaler - 1U; 8011aee: 68fb ldr r3, [r7, #12] 8011af0: 3b01 subs r3, #1 8011af2: 60fb str r3, [r7, #12] } } /* Configure the RTC_PRLH / RTC_PRLL */ WRITE_REG(hrtc->Instance->PRLH, ((prescaler >> 16U) & RTC_PRLH_PRL)); 8011af4: 68fb ldr r3, [r7, #12] 8011af6: 0c1a lsrs r2, r3, #16 8011af8: 687b ldr r3, [r7, #4] 8011afa: 681b ldr r3, [r3, #0] 8011afc: f002 020f and.w r2, r2, #15 8011b00: 609a str r2, [r3, #8] WRITE_REG(hrtc->Instance->PRLL, (prescaler & RTC_PRLL_PRL)); 8011b02: 687b ldr r3, [r7, #4] 8011b04: 681b ldr r3, [r3, #0] 8011b06: 68fa ldr r2, [r7, #12] 8011b08: b292 uxth r2, r2 8011b0a: 60da str r2, [r3, #12] /* Wait for synchro */ if (RTC_ExitInitMode(hrtc) != HAL_OK) 8011b0c: 6878 ldr r0, [r7, #4] 8011b0e: f000 f870 bl 8011bf2 8011b12: 4603 mov r3, r0 8011b14: 2b00 cmp r3, #0 8011b16: d004 beq.n 8011b22 { hrtc->State = HAL_RTC_STATE_ERROR; 8011b18: 687b ldr r3, [r7, #4] 8011b1a: 2204 movs r2, #4 8011b1c: 745a strb r2, [r3, #17] return HAL_ERROR; 8011b1e: 2301 movs r3, #1 8011b20: e00c b.n 8011b3c } /* Initialize date to 1st of January 2000 */ hrtc->DateToUpdate.Year = 0x00U; 8011b22: 687b ldr r3, [r7, #4] 8011b24: 2200 movs r2, #0 8011b26: 73da strb r2, [r3, #15] hrtc->DateToUpdate.Month = RTC_MONTH_JANUARY; 8011b28: 687b ldr r3, [r7, #4] 8011b2a: 2201 movs r2, #1 8011b2c: 735a strb r2, [r3, #13] hrtc->DateToUpdate.Date = 0x01U; 8011b2e: 687b ldr r3, [r7, #4] 8011b30: 2201 movs r2, #1 8011b32: 739a strb r2, [r3, #14] /* Set RTC state */ hrtc->State = HAL_RTC_STATE_READY; 8011b34: 687b ldr r3, [r7, #4] 8011b36: 2201 movs r2, #1 8011b38: 745a strb r2, [r3, #17] return HAL_OK; 8011b3a: 2300 movs r3, #0 } } 8011b3c: 4618 mov r0, r3 8011b3e: 3710 adds r7, #16 8011b40: 46bd mov sp, r7 8011b42: bd80 pop {r7, pc} 8011b44: 40006c00 .word 0x40006c00 08011b48 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef *hrtc) { 8011b48: b580 push {r7, lr} 8011b4a: b084 sub sp, #16 8011b4c: af00 add r7, sp, #0 8011b4e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011b50: 2300 movs r3, #0 8011b52: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) 8011b54: 687b ldr r3, [r7, #4] 8011b56: 2b00 cmp r3, #0 8011b58: d101 bne.n 8011b5e { return HAL_ERROR; 8011b5a: 2301 movs r3, #1 8011b5c: e01d b.n 8011b9a } /* Clear RSF flag */ CLEAR_BIT(hrtc->Instance->CRL, RTC_FLAG_RSF); 8011b5e: 687b ldr r3, [r7, #4] 8011b60: 681b ldr r3, [r3, #0] 8011b62: 685a ldr r2, [r3, #4] 8011b64: 687b ldr r3, [r7, #4] 8011b66: 681b ldr r3, [r3, #0] 8011b68: f022 0208 bic.w r2, r2, #8 8011b6c: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); 8011b6e: f7fc fa5f bl 800e030 8011b72: 60f8 str r0, [r7, #12] /* Wait the registers to be synchronised */ while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) 8011b74: e009 b.n 8011b8a { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 8011b76: f7fc fa5b bl 800e030 8011b7a: 4602 mov r2, r0 8011b7c: 68fb ldr r3, [r7, #12] 8011b7e: 1ad3 subs r3, r2, r3 8011b80: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 8011b84: d901 bls.n 8011b8a { return HAL_TIMEOUT; 8011b86: 2303 movs r3, #3 8011b88: e007 b.n 8011b9a while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) 8011b8a: 687b ldr r3, [r7, #4] 8011b8c: 681b ldr r3, [r3, #0] 8011b8e: 685b ldr r3, [r3, #4] 8011b90: f003 0308 and.w r3, r3, #8 8011b94: 2b00 cmp r3, #0 8011b96: d0ee beq.n 8011b76 } } return HAL_OK; 8011b98: 2300 movs r3, #0 } 8011b9a: 4618 mov r0, r3 8011b9c: 3710 adds r7, #16 8011b9e: 46bd mov sp, r7 8011ba0: bd80 pop {r7, pc} 08011ba2 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ static HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef *hrtc) { 8011ba2: b580 push {r7, lr} 8011ba4: b084 sub sp, #16 8011ba6: af00 add r7, sp, #0 8011ba8: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011baa: 2300 movs r3, #0 8011bac: 60fb str r3, [r7, #12] tickstart = HAL_GetTick(); 8011bae: f7fc fa3f bl 800e030 8011bb2: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011bb4: e009 b.n 8011bca { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 8011bb6: f7fc fa3b bl 800e030 8011bba: 4602 mov r2, r0 8011bbc: 68fb ldr r3, [r7, #12] 8011bbe: 1ad3 subs r3, r2, r3 8011bc0: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 8011bc4: d901 bls.n 8011bca { return HAL_TIMEOUT; 8011bc6: 2303 movs r3, #3 8011bc8: e00f b.n 8011bea while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011bca: 687b ldr r3, [r7, #4] 8011bcc: 681b ldr r3, [r3, #0] 8011bce: 685b ldr r3, [r3, #4] 8011bd0: f003 0320 and.w r3, r3, #32 8011bd4: 2b00 cmp r3, #0 8011bd6: d0ee beq.n 8011bb6 } } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); 8011bd8: 687b ldr r3, [r7, #4] 8011bda: 681b ldr r3, [r3, #0] 8011bdc: 685a ldr r2, [r3, #4] 8011bde: 687b ldr r3, [r7, #4] 8011be0: 681b ldr r3, [r3, #0] 8011be2: f042 0210 orr.w r2, r2, #16 8011be6: 605a str r2, [r3, #4] return HAL_OK; 8011be8: 2300 movs r3, #0 } 8011bea: 4618 mov r0, r3 8011bec: 3710 adds r7, #16 8011bee: 46bd mov sp, r7 8011bf0: bd80 pop {r7, pc} 08011bf2 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ static HAL_StatusTypeDef RTC_ExitInitMode(RTC_HandleTypeDef *hrtc) { 8011bf2: b580 push {r7, lr} 8011bf4: b084 sub sp, #16 8011bf6: af00 add r7, sp, #0 8011bf8: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011bfa: 2300 movs r3, #0 8011bfc: 60fb str r3, [r7, #12] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); 8011bfe: 687b ldr r3, [r7, #4] 8011c00: 681b ldr r3, [r3, #0] 8011c02: 685a ldr r2, [r3, #4] 8011c04: 687b ldr r3, [r7, #4] 8011c06: 681b ldr r3, [r3, #0] 8011c08: f022 0210 bic.w r2, r2, #16 8011c0c: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); 8011c0e: f7fc fa0f bl 800e030 8011c12: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011c14: e009 b.n 8011c2a { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 8011c16: f7fc fa0b bl 800e030 8011c1a: 4602 mov r2, r0 8011c1c: 68fb ldr r3, [r7, #12] 8011c1e: 1ad3 subs r3, r2, r3 8011c20: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 8011c24: d901 bls.n 8011c2a { return HAL_TIMEOUT; 8011c26: 2303 movs r3, #3 8011c28: e007 b.n 8011c3a while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011c2a: 687b ldr r3, [r7, #4] 8011c2c: 681b ldr r3, [r3, #0] 8011c2e: 685b ldr r3, [r3, #4] 8011c30: f003 0320 and.w r3, r3, #32 8011c34: 2b00 cmp r3, #0 8011c36: d0ee beq.n 8011c16 } } return HAL_OK; 8011c38: 2300 movs r3, #0 } 8011c3a: 4618 mov r0, r3 8011c3c: 3710 adds r7, #16 8011c3e: 46bd mov sp, r7 8011c40: bd80 pop {r7, pc} 08011c42 : * 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) { 8011c42: b580 push {r7, lr} 8011c44: b082 sub sp, #8 8011c46: af00 add r7, sp, #0 8011c48: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011c4a: 687b ldr r3, [r7, #4] 8011c4c: 2b00 cmp r3, #0 8011c4e: d101 bne.n 8011c54 { return HAL_ERROR; 8011c50: 2301 movs r3, #1 8011c52: e041 b.n 8011cd8 assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_PERIOD(htim->Init.Period)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) 8011c54: 687b ldr r3, [r7, #4] 8011c56: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011c5a: b2db uxtb r3, r3 8011c5c: 2b00 cmp r3, #0 8011c5e: d106 bne.n 8011c6e { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011c60: 687b ldr r3, [r7, #4] 8011c62: 2200 movs r2, #0 8011c64: 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); 8011c68: 6878 ldr r0, [r7, #4] 8011c6a: f7fb fe67 bl 800d93c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011c6e: 687b ldr r3, [r7, #4] 8011c70: 2202 movs r2, #2 8011c72: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011c76: 687b ldr r3, [r7, #4] 8011c78: 681a ldr r2, [r3, #0] 8011c7a: 687b ldr r3, [r7, #4] 8011c7c: 3304 adds r3, #4 8011c7e: 4619 mov r1, r3 8011c80: 4610 mov r0, r2 8011c82: f000 fd33 bl 80126ec /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011c86: 687b ldr r3, [r7, #4] 8011c88: 2201 movs r2, #1 8011c8a: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011c8e: 687b ldr r3, [r7, #4] 8011c90: 2201 movs r2, #1 8011c92: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011c96: 687b ldr r3, [r7, #4] 8011c98: 2201 movs r2, #1 8011c9a: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011c9e: 687b ldr r3, [r7, #4] 8011ca0: 2201 movs r2, #1 8011ca2: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011ca6: 687b ldr r3, [r7, #4] 8011ca8: 2201 movs r2, #1 8011caa: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011cae: 687b ldr r3, [r7, #4] 8011cb0: 2201 movs r2, #1 8011cb2: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011cb6: 687b ldr r3, [r7, #4] 8011cb8: 2201 movs r2, #1 8011cba: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011cbe: 687b ldr r3, [r7, #4] 8011cc0: 2201 movs r2, #1 8011cc2: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011cc6: 687b ldr r3, [r7, #4] 8011cc8: 2201 movs r2, #1 8011cca: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011cce: 687b ldr r3, [r7, #4] 8011cd0: 2201 movs r2, #1 8011cd2: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011cd6: 2300 movs r3, #0 } 8011cd8: 4618 mov r0, r3 8011cda: 3708 adds r7, #8 8011cdc: 46bd mov sp, r7 8011cde: bd80 pop {r7, pc} 08011ce0 : * Ex: call @ref HAL_TIM_OC_DeInit() before HAL_TIM_OC_Init() * @param htim TIM Output Compare handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef *htim) { 8011ce0: b580 push {r7, lr} 8011ce2: b082 sub sp, #8 8011ce4: af00 add r7, sp, #0 8011ce6: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011ce8: 687b ldr r3, [r7, #4] 8011cea: 2b00 cmp r3, #0 8011cec: d101 bne.n 8011cf2 { return HAL_ERROR; 8011cee: 2301 movs r3, #1 8011cf0: e041 b.n 8011d76 assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_PERIOD(htim->Init.Period)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) 8011cf2: 687b ldr r3, [r7, #4] 8011cf4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011cf8: b2db uxtb r3, r3 8011cfa: 2b00 cmp r3, #0 8011cfc: d106 bne.n 8011d0c { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011cfe: 687b ldr r3, [r7, #4] 8011d00: 2200 movs r2, #0 8011d02: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->OC_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_OC_MspInit(htim); 8011d06: 6878 ldr r0, [r7, #4] 8011d08: f000 f839 bl 8011d7e #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011d0c: 687b ldr r3, [r7, #4] 8011d0e: 2202 movs r2, #2 8011d10: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the Output Compare */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011d14: 687b ldr r3, [r7, #4] 8011d16: 681a ldr r2, [r3, #0] 8011d18: 687b ldr r3, [r7, #4] 8011d1a: 3304 adds r3, #4 8011d1c: 4619 mov r1, r3 8011d1e: 4610 mov r0, r2 8011d20: f000 fce4 bl 80126ec /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011d24: 687b ldr r3, [r7, #4] 8011d26: 2201 movs r2, #1 8011d28: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011d2c: 687b ldr r3, [r7, #4] 8011d2e: 2201 movs r2, #1 8011d30: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011d34: 687b ldr r3, [r7, #4] 8011d36: 2201 movs r2, #1 8011d38: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011d3c: 687b ldr r3, [r7, #4] 8011d3e: 2201 movs r2, #1 8011d40: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011d44: 687b ldr r3, [r7, #4] 8011d46: 2201 movs r2, #1 8011d48: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011d4c: 687b ldr r3, [r7, #4] 8011d4e: 2201 movs r2, #1 8011d50: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011d54: 687b ldr r3, [r7, #4] 8011d56: 2201 movs r2, #1 8011d58: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011d5c: 687b ldr r3, [r7, #4] 8011d5e: 2201 movs r2, #1 8011d60: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011d64: 687b ldr r3, [r7, #4] 8011d66: 2201 movs r2, #1 8011d68: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011d6c: 687b ldr r3, [r7, #4] 8011d6e: 2201 movs r2, #1 8011d70: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011d74: 2300 movs r3, #0 } 8011d76: 4618 mov r0, r3 8011d78: 3708 adds r7, #8 8011d7a: 46bd mov sp, r7 8011d7c: bd80 pop {r7, pc} 08011d7e : * @brief Initializes the TIM Output Compare MSP. * @param htim TIM Output Compare handle * @retval None */ __weak void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim) { 8011d7e: b480 push {r7} 8011d80: b083 sub sp, #12 8011d82: af00 add r7, sp, #0 8011d84: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_MspInit could be implemented in the user file */ } 8011d86: bf00 nop 8011d88: 370c adds r7, #12 8011d8a: 46bd mov sp, r7 8011d8c: bc80 pop {r7} 8011d8e: 4770 bx lr 08011d90 : * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { 8011d90: b580 push {r7, lr} 8011d92: b084 sub sp, #16 8011d94: af00 add r7, sp, #0 8011d96: 6078 str r0, [r7, #4] 8011d98: 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) 8011d9a: 683b ldr r3, [r7, #0] 8011d9c: 2b00 cmp r3, #0 8011d9e: d109 bne.n 8011db4 8011da0: 687b ldr r3, [r7, #4] 8011da2: f893 303e ldrb.w r3, [r3, #62] @ 0x3e 8011da6: b2db uxtb r3, r3 8011da8: 2b01 cmp r3, #1 8011daa: bf14 ite ne 8011dac: 2301 movne r3, #1 8011dae: 2300 moveq r3, #0 8011db0: b2db uxtb r3, r3 8011db2: e022 b.n 8011dfa 8011db4: 683b ldr r3, [r7, #0] 8011db6: 2b04 cmp r3, #4 8011db8: d109 bne.n 8011dce 8011dba: 687b ldr r3, [r7, #4] 8011dbc: f893 303f ldrb.w r3, [r3, #63] @ 0x3f 8011dc0: b2db uxtb r3, r3 8011dc2: 2b01 cmp r3, #1 8011dc4: bf14 ite ne 8011dc6: 2301 movne r3, #1 8011dc8: 2300 moveq r3, #0 8011dca: b2db uxtb r3, r3 8011dcc: e015 b.n 8011dfa 8011dce: 683b ldr r3, [r7, #0] 8011dd0: 2b08 cmp r3, #8 8011dd2: d109 bne.n 8011de8 8011dd4: 687b ldr r3, [r7, #4] 8011dd6: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 8011dda: b2db uxtb r3, r3 8011ddc: 2b01 cmp r3, #1 8011dde: bf14 ite ne 8011de0: 2301 movne r3, #1 8011de2: 2300 moveq r3, #0 8011de4: b2db uxtb r3, r3 8011de6: e008 b.n 8011dfa 8011de8: 687b ldr r3, [r7, #4] 8011dea: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8011dee: b2db uxtb r3, r3 8011df0: 2b01 cmp r3, #1 8011df2: bf14 ite ne 8011df4: 2301 movne r3, #1 8011df6: 2300 moveq r3, #0 8011df8: b2db uxtb r3, r3 8011dfa: 2b00 cmp r3, #0 8011dfc: d001 beq.n 8011e02 { return HAL_ERROR; 8011dfe: 2301 movs r3, #1 8011e00: e063 b.n 8011eca } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8011e02: 683b ldr r3, [r7, #0] 8011e04: 2b00 cmp r3, #0 8011e06: d104 bne.n 8011e12 8011e08: 687b ldr r3, [r7, #4] 8011e0a: 2202 movs r2, #2 8011e0c: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011e10: e013 b.n 8011e3a 8011e12: 683b ldr r3, [r7, #0] 8011e14: 2b04 cmp r3, #4 8011e16: d104 bne.n 8011e22 8011e18: 687b ldr r3, [r7, #4] 8011e1a: 2202 movs r2, #2 8011e1c: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011e20: e00b b.n 8011e3a 8011e22: 683b ldr r3, [r7, #0] 8011e24: 2b08 cmp r3, #8 8011e26: d104 bne.n 8011e32 8011e28: 687b ldr r3, [r7, #4] 8011e2a: 2202 movs r2, #2 8011e2c: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011e30: e003 b.n 8011e3a 8011e32: 687b ldr r3, [r7, #4] 8011e34: 2202 movs r2, #2 8011e36: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 8011e3a: 687b ldr r3, [r7, #4] 8011e3c: 681b ldr r3, [r3, #0] 8011e3e: 2201 movs r2, #1 8011e40: 6839 ldr r1, [r7, #0] 8011e42: 4618 mov r0, r3 8011e44: f000 fee8 bl 8012c18 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 8011e48: 687b ldr r3, [r7, #4] 8011e4a: 681b ldr r3, [r3, #0] 8011e4c: 4a21 ldr r2, [pc, #132] @ (8011ed4 ) 8011e4e: 4293 cmp r3, r2 8011e50: d107 bne.n 8011e62 { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8011e52: 687b ldr r3, [r7, #4] 8011e54: 681b ldr r3, [r3, #0] 8011e56: 6c5a ldr r2, [r3, #68] @ 0x44 8011e58: 687b ldr r3, [r7, #4] 8011e5a: 681b ldr r3, [r3, #0] 8011e5c: f442 4200 orr.w r2, r2, #32768 @ 0x8000 8011e60: 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)) 8011e62: 687b ldr r3, [r7, #4] 8011e64: 681b ldr r3, [r3, #0] 8011e66: 4a1b ldr r2, [pc, #108] @ (8011ed4 ) 8011e68: 4293 cmp r3, r2 8011e6a: d013 beq.n 8011e94 8011e6c: 687b ldr r3, [r7, #4] 8011e6e: 681b ldr r3, [r3, #0] 8011e70: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8011e74: d00e beq.n 8011e94 8011e76: 687b ldr r3, [r7, #4] 8011e78: 681b ldr r3, [r3, #0] 8011e7a: 4a17 ldr r2, [pc, #92] @ (8011ed8 ) 8011e7c: 4293 cmp r3, r2 8011e7e: d009 beq.n 8011e94 8011e80: 687b ldr r3, [r7, #4] 8011e82: 681b ldr r3, [r3, #0] 8011e84: 4a15 ldr r2, [pc, #84] @ (8011edc ) 8011e86: 4293 cmp r3, r2 8011e88: d004 beq.n 8011e94 8011e8a: 687b ldr r3, [r7, #4] 8011e8c: 681b ldr r3, [r3, #0] 8011e8e: 4a14 ldr r2, [pc, #80] @ (8011ee0 ) 8011e90: 4293 cmp r3, r2 8011e92: d111 bne.n 8011eb8 { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8011e94: 687b ldr r3, [r7, #4] 8011e96: 681b ldr r3, [r3, #0] 8011e98: 689b ldr r3, [r3, #8] 8011e9a: f003 0307 and.w r3, r3, #7 8011e9e: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011ea0: 68fb ldr r3, [r7, #12] 8011ea2: 2b06 cmp r3, #6 8011ea4: d010 beq.n 8011ec8 { __HAL_TIM_ENABLE(htim); 8011ea6: 687b ldr r3, [r7, #4] 8011ea8: 681b ldr r3, [r3, #0] 8011eaa: 681a ldr r2, [r3, #0] 8011eac: 687b ldr r3, [r7, #4] 8011eae: 681b ldr r3, [r3, #0] 8011eb0: f042 0201 orr.w r2, r2, #1 8011eb4: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011eb6: e007 b.n 8011ec8 } } else { __HAL_TIM_ENABLE(htim); 8011eb8: 687b ldr r3, [r7, #4] 8011eba: 681b ldr r3, [r3, #0] 8011ebc: 681a ldr r2, [r3, #0] 8011ebe: 687b ldr r3, [r7, #4] 8011ec0: 681b ldr r3, [r3, #0] 8011ec2: f042 0201 orr.w r2, r2, #1 8011ec6: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 8011ec8: 2300 movs r3, #0 } 8011eca: 4618 mov r0, r3 8011ecc: 3710 adds r7, #16 8011ece: 46bd mov sp, r7 8011ed0: bd80 pop {r7, pc} 8011ed2: bf00 nop 8011ed4: 40012c00 .word 0x40012c00 8011ed8: 40000400 .word 0x40000400 8011edc: 40000800 .word 0x40000800 8011ee0: 40000c00 .word 0x40000c00 08011ee4 : * 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) { 8011ee4: b580 push {r7, lr} 8011ee6: b082 sub sp, #8 8011ee8: af00 add r7, sp, #0 8011eea: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011eec: 687b ldr r3, [r7, #4] 8011eee: 2b00 cmp r3, #0 8011ef0: d101 bne.n 8011ef6 { return HAL_ERROR; 8011ef2: 2301 movs r3, #1 8011ef4: e041 b.n 8011f7a assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_PERIOD(htim->Init.Period)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) 8011ef6: 687b ldr r3, [r7, #4] 8011ef8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011efc: b2db uxtb r3, r3 8011efe: 2b00 cmp r3, #0 8011f00: d106 bne.n 8011f10 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011f02: 687b ldr r3, [r7, #4] 8011f04: 2200 movs r2, #0 8011f06: 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); 8011f0a: 6878 ldr r0, [r7, #4] 8011f0c: f000 f839 bl 8011f82 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011f10: 687b ldr r3, [r7, #4] 8011f12: 2202 movs r2, #2 8011f14: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011f18: 687b ldr r3, [r7, #4] 8011f1a: 681a ldr r2, [r3, #0] 8011f1c: 687b ldr r3, [r7, #4] 8011f1e: 3304 adds r3, #4 8011f20: 4619 mov r1, r3 8011f22: 4610 mov r0, r2 8011f24: f000 fbe2 bl 80126ec /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011f28: 687b ldr r3, [r7, #4] 8011f2a: 2201 movs r2, #1 8011f2c: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011f30: 687b ldr r3, [r7, #4] 8011f32: 2201 movs r2, #1 8011f34: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011f38: 687b ldr r3, [r7, #4] 8011f3a: 2201 movs r2, #1 8011f3c: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011f40: 687b ldr r3, [r7, #4] 8011f42: 2201 movs r2, #1 8011f44: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011f48: 687b ldr r3, [r7, #4] 8011f4a: 2201 movs r2, #1 8011f4c: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011f50: 687b ldr r3, [r7, #4] 8011f52: 2201 movs r2, #1 8011f54: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011f58: 687b ldr r3, [r7, #4] 8011f5a: 2201 movs r2, #1 8011f5c: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011f60: 687b ldr r3, [r7, #4] 8011f62: 2201 movs r2, #1 8011f64: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011f68: 687b ldr r3, [r7, #4] 8011f6a: 2201 movs r2, #1 8011f6c: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011f70: 687b ldr r3, [r7, #4] 8011f72: 2201 movs r2, #1 8011f74: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011f78: 2300 movs r3, #0 } 8011f7a: 4618 mov r0, r3 8011f7c: 3708 adds r7, #8 8011f7e: 46bd mov sp, r7 8011f80: bd80 pop {r7, pc} 08011f82 : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { 8011f82: b480 push {r7} 8011f84: b083 sub sp, #12 8011f86: af00 add r7, sp, #0 8011f88: 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 */ } 8011f8a: bf00 nop 8011f8c: 370c adds r7, #12 8011f8e: 46bd mov sp, r7 8011f90: bc80 pop {r7} 8011f92: 4770 bx lr 08011f94 : * @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) { 8011f94: b580 push {r7, lr} 8011f96: b084 sub sp, #16 8011f98: af00 add r7, sp, #0 8011f9a: 6078 str r0, [r7, #4] 8011f9c: 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) 8011f9e: 683b ldr r3, [r7, #0] 8011fa0: 2b00 cmp r3, #0 8011fa2: d109 bne.n 8011fb8 8011fa4: 687b ldr r3, [r7, #4] 8011fa6: f893 303e ldrb.w r3, [r3, #62] @ 0x3e 8011faa: b2db uxtb r3, r3 8011fac: 2b01 cmp r3, #1 8011fae: bf14 ite ne 8011fb0: 2301 movne r3, #1 8011fb2: 2300 moveq r3, #0 8011fb4: b2db uxtb r3, r3 8011fb6: e022 b.n 8011ffe 8011fb8: 683b ldr r3, [r7, #0] 8011fba: 2b04 cmp r3, #4 8011fbc: d109 bne.n 8011fd2 8011fbe: 687b ldr r3, [r7, #4] 8011fc0: f893 303f ldrb.w r3, [r3, #63] @ 0x3f 8011fc4: b2db uxtb r3, r3 8011fc6: 2b01 cmp r3, #1 8011fc8: bf14 ite ne 8011fca: 2301 movne r3, #1 8011fcc: 2300 moveq r3, #0 8011fce: b2db uxtb r3, r3 8011fd0: e015 b.n 8011ffe 8011fd2: 683b ldr r3, [r7, #0] 8011fd4: 2b08 cmp r3, #8 8011fd6: d109 bne.n 8011fec 8011fd8: 687b ldr r3, [r7, #4] 8011fda: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 8011fde: b2db uxtb r3, r3 8011fe0: 2b01 cmp r3, #1 8011fe2: bf14 ite ne 8011fe4: 2301 movne r3, #1 8011fe6: 2300 moveq r3, #0 8011fe8: b2db uxtb r3, r3 8011fea: e008 b.n 8011ffe 8011fec: 687b ldr r3, [r7, #4] 8011fee: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8011ff2: b2db uxtb r3, r3 8011ff4: 2b01 cmp r3, #1 8011ff6: bf14 ite ne 8011ff8: 2301 movne r3, #1 8011ffa: 2300 moveq r3, #0 8011ffc: b2db uxtb r3, r3 8011ffe: 2b00 cmp r3, #0 8012000: d001 beq.n 8012006 { return HAL_ERROR; 8012002: 2301 movs r3, #1 8012004: e063 b.n 80120ce } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8012006: 683b ldr r3, [r7, #0] 8012008: 2b00 cmp r3, #0 801200a: d104 bne.n 8012016 801200c: 687b ldr r3, [r7, #4] 801200e: 2202 movs r2, #2 8012010: f883 203e strb.w r2, [r3, #62] @ 0x3e 8012014: e013 b.n 801203e 8012016: 683b ldr r3, [r7, #0] 8012018: 2b04 cmp r3, #4 801201a: d104 bne.n 8012026 801201c: 687b ldr r3, [r7, #4] 801201e: 2202 movs r2, #2 8012020: f883 203f strb.w r2, [r3, #63] @ 0x3f 8012024: e00b b.n 801203e 8012026: 683b ldr r3, [r7, #0] 8012028: 2b08 cmp r3, #8 801202a: d104 bne.n 8012036 801202c: 687b ldr r3, [r7, #4] 801202e: 2202 movs r2, #2 8012030: f883 2040 strb.w r2, [r3, #64] @ 0x40 8012034: e003 b.n 801203e 8012036: 687b ldr r3, [r7, #4] 8012038: 2202 movs r2, #2 801203a: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 801203e: 687b ldr r3, [r7, #4] 8012040: 681b ldr r3, [r3, #0] 8012042: 2201 movs r2, #1 8012044: 6839 ldr r1, [r7, #0] 8012046: 4618 mov r0, r3 8012048: f000 fde6 bl 8012c18 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 801204c: 687b ldr r3, [r7, #4] 801204e: 681b ldr r3, [r3, #0] 8012050: 4a21 ldr r2, [pc, #132] @ (80120d8 ) 8012052: 4293 cmp r3, r2 8012054: d107 bne.n 8012066 { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8012056: 687b ldr r3, [r7, #4] 8012058: 681b ldr r3, [r3, #0] 801205a: 6c5a ldr r2, [r3, #68] @ 0x44 801205c: 687b ldr r3, [r7, #4] 801205e: 681b ldr r3, [r3, #0] 8012060: f442 4200 orr.w r2, r2, #32768 @ 0x8000 8012064: 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)) 8012066: 687b ldr r3, [r7, #4] 8012068: 681b ldr r3, [r3, #0] 801206a: 4a1b ldr r2, [pc, #108] @ (80120d8 ) 801206c: 4293 cmp r3, r2 801206e: d013 beq.n 8012098 8012070: 687b ldr r3, [r7, #4] 8012072: 681b ldr r3, [r3, #0] 8012074: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012078: d00e beq.n 8012098 801207a: 687b ldr r3, [r7, #4] 801207c: 681b ldr r3, [r3, #0] 801207e: 4a17 ldr r2, [pc, #92] @ (80120dc ) 8012080: 4293 cmp r3, r2 8012082: d009 beq.n 8012098 8012084: 687b ldr r3, [r7, #4] 8012086: 681b ldr r3, [r3, #0] 8012088: 4a15 ldr r2, [pc, #84] @ (80120e0 ) 801208a: 4293 cmp r3, r2 801208c: d004 beq.n 8012098 801208e: 687b ldr r3, [r7, #4] 8012090: 681b ldr r3, [r3, #0] 8012092: 4a14 ldr r2, [pc, #80] @ (80120e4 ) 8012094: 4293 cmp r3, r2 8012096: d111 bne.n 80120bc { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8012098: 687b ldr r3, [r7, #4] 801209a: 681b ldr r3, [r3, #0] 801209c: 689b ldr r3, [r3, #8] 801209e: f003 0307 and.w r3, r3, #7 80120a2: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 80120a4: 68fb ldr r3, [r7, #12] 80120a6: 2b06 cmp r3, #6 80120a8: d010 beq.n 80120cc { __HAL_TIM_ENABLE(htim); 80120aa: 687b ldr r3, [r7, #4] 80120ac: 681b ldr r3, [r3, #0] 80120ae: 681a ldr r2, [r3, #0] 80120b0: 687b ldr r3, [r7, #4] 80120b2: 681b ldr r3, [r3, #0] 80120b4: f042 0201 orr.w r2, r2, #1 80120b8: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 80120ba: e007 b.n 80120cc } } else { __HAL_TIM_ENABLE(htim); 80120bc: 687b ldr r3, [r7, #4] 80120be: 681b ldr r3, [r3, #0] 80120c0: 681a ldr r2, [r3, #0] 80120c2: 687b ldr r3, [r7, #4] 80120c4: 681b ldr r3, [r3, #0] 80120c6: f042 0201 orr.w r2, r2, #1 80120ca: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 80120cc: 2300 movs r3, #0 } 80120ce: 4618 mov r0, r3 80120d0: 3710 adds r7, #16 80120d2: 46bd mov sp, r7 80120d4: bd80 pop {r7, pc} 80120d6: bf00 nop 80120d8: 40012c00 .word 0x40012c00 80120dc: 40000400 .word 0x40000400 80120e0: 40000800 .word 0x40000800 80120e4: 40000c00 .word 0x40000c00 080120e8 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { 80120e8: b580 push {r7, lr} 80120ea: b084 sub sp, #16 80120ec: af00 add r7, sp, #0 80120ee: 6078 str r0, [r7, #4] uint32_t itsource = htim->Instance->DIER; 80120f0: 687b ldr r3, [r7, #4] 80120f2: 681b ldr r3, [r3, #0] 80120f4: 68db ldr r3, [r3, #12] 80120f6: 60fb str r3, [r7, #12] uint32_t itflag = htim->Instance->SR; 80120f8: 687b ldr r3, [r7, #4] 80120fa: 681b ldr r3, [r3, #0] 80120fc: 691b ldr r3, [r3, #16] 80120fe: 60bb str r3, [r7, #8] /* Capture compare 1 event */ if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1)) 8012100: 68bb ldr r3, [r7, #8] 8012102: f003 0302 and.w r3, r3, #2 8012106: 2b00 cmp r3, #0 8012108: d020 beq.n 801214c { if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1)) 801210a: 68fb ldr r3, [r7, #12] 801210c: f003 0302 and.w r3, r3, #2 8012110: 2b00 cmp r3, #0 8012112: d01b beq.n 801214c { { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1); 8012114: 687b ldr r3, [r7, #4] 8012116: 681b ldr r3, [r3, #0] 8012118: f06f 0202 mvn.w r2, #2 801211c: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; 801211e: 687b ldr r3, [r7, #4] 8012120: 2201 movs r2, #1 8012122: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) 8012124: 687b ldr r3, [r7, #4] 8012126: 681b ldr r3, [r3, #0] 8012128: 699b ldr r3, [r3, #24] 801212a: f003 0303 and.w r3, r3, #3 801212e: 2b00 cmp r3, #0 8012130: d003 beq.n 801213a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8012132: 6878 ldr r0, [r7, #4] 8012134: f000 fabf bl 80126b6 8012138: e005 b.n 8012146 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 801213a: 6878 ldr r0, [r7, #4] 801213c: f000 fab2 bl 80126a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 8012140: 6878 ldr r0, [r7, #4] 8012142: f000 fac1 bl 80126c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8012146: 687b ldr r3, [r7, #4] 8012148: 2200 movs r2, #0 801214a: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2)) 801214c: 68bb ldr r3, [r7, #8] 801214e: f003 0304 and.w r3, r3, #4 8012152: 2b00 cmp r3, #0 8012154: d020 beq.n 8012198 { if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2)) 8012156: 68fb ldr r3, [r7, #12] 8012158: f003 0304 and.w r3, r3, #4 801215c: 2b00 cmp r3, #0 801215e: d01b beq.n 8012198 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2); 8012160: 687b ldr r3, [r7, #4] 8012162: 681b ldr r3, [r3, #0] 8012164: f06f 0204 mvn.w r2, #4 8012168: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; 801216a: 687b ldr r3, [r7, #4] 801216c: 2202 movs r2, #2 801216e: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) 8012170: 687b ldr r3, [r7, #4] 8012172: 681b ldr r3, [r3, #0] 8012174: 699b ldr r3, [r3, #24] 8012176: f403 7340 and.w r3, r3, #768 @ 0x300 801217a: 2b00 cmp r3, #0 801217c: d003 beq.n 8012186 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 801217e: 6878 ldr r0, [r7, #4] 8012180: f000 fa99 bl 80126b6 8012184: e005 b.n 8012192 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8012186: 6878 ldr r0, [r7, #4] 8012188: f000 fa8c bl 80126a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 801218c: 6878 ldr r0, [r7, #4] 801218e: f000 fa9b bl 80126c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8012192: 687b ldr r3, [r7, #4] 8012194: 2200 movs r2, #0 8012196: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3)) 8012198: 68bb ldr r3, [r7, #8] 801219a: f003 0308 and.w r3, r3, #8 801219e: 2b00 cmp r3, #0 80121a0: d020 beq.n 80121e4 { if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3)) 80121a2: 68fb ldr r3, [r7, #12] 80121a4: f003 0308 and.w r3, r3, #8 80121a8: 2b00 cmp r3, #0 80121aa: d01b beq.n 80121e4 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3); 80121ac: 687b ldr r3, [r7, #4] 80121ae: 681b ldr r3, [r3, #0] 80121b0: f06f 0208 mvn.w r2, #8 80121b4: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; 80121b6: 687b ldr r3, [r7, #4] 80121b8: 2204 movs r2, #4 80121ba: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) 80121bc: 687b ldr r3, [r7, #4] 80121be: 681b ldr r3, [r3, #0] 80121c0: 69db ldr r3, [r3, #28] 80121c2: f003 0303 and.w r3, r3, #3 80121c6: 2b00 cmp r3, #0 80121c8: d003 beq.n 80121d2 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 80121ca: 6878 ldr r0, [r7, #4] 80121cc: f000 fa73 bl 80126b6 80121d0: e005 b.n 80121de { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 80121d2: 6878 ldr r0, [r7, #4] 80121d4: f000 fa66 bl 80126a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 80121d8: 6878 ldr r0, [r7, #4] 80121da: f000 fa75 bl 80126c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 80121de: 687b ldr r3, [r7, #4] 80121e0: 2200 movs r2, #0 80121e2: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4)) 80121e4: 68bb ldr r3, [r7, #8] 80121e6: f003 0310 and.w r3, r3, #16 80121ea: 2b00 cmp r3, #0 80121ec: d020 beq.n 8012230 { if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4)) 80121ee: 68fb ldr r3, [r7, #12] 80121f0: f003 0310 and.w r3, r3, #16 80121f4: 2b00 cmp r3, #0 80121f6: d01b beq.n 8012230 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4); 80121f8: 687b ldr r3, [r7, #4] 80121fa: 681b ldr r3, [r3, #0] 80121fc: f06f 0210 mvn.w r2, #16 8012200: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; 8012202: 687b ldr r3, [r7, #4] 8012204: 2208 movs r2, #8 8012206: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) 8012208: 687b ldr r3, [r7, #4] 801220a: 681b ldr r3, [r3, #0] 801220c: 69db ldr r3, [r3, #28] 801220e: f403 7340 and.w r3, r3, #768 @ 0x300 8012212: 2b00 cmp r3, #0 8012214: d003 beq.n 801221e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8012216: 6878 ldr r0, [r7, #4] 8012218: f000 fa4d bl 80126b6 801221c: e005 b.n 801222a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 801221e: 6878 ldr r0, [r7, #4] 8012220: f000 fa40 bl 80126a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 8012224: 6878 ldr r0, [r7, #4] 8012226: f000 fa4f bl 80126c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 801222a: 687b ldr r3, [r7, #4] 801222c: 2200 movs r2, #0 801222e: 771a strb r2, [r3, #28] } } /* TIM Update event */ if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE)) 8012230: 68bb ldr r3, [r7, #8] 8012232: f003 0301 and.w r3, r3, #1 8012236: 2b00 cmp r3, #0 8012238: d00c beq.n 8012254 { if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE)) 801223a: 68fb ldr r3, [r7, #12] 801223c: f003 0301 and.w r3, r3, #1 8012240: 2b00 cmp r3, #0 8012242: d007 beq.n 8012254 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE); 8012244: 687b ldr r3, [r7, #4] 8012246: 681b ldr r3, [r3, #0] 8012248: f06f 0201 mvn.w r2, #1 801224c: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); 801224e: 6878 ldr r0, [r7, #4] 8012250: f000 fa1f bl 8012692 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if ((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) 8012254: 68bb ldr r3, [r7, #8] 8012256: f003 0380 and.w r3, r3, #128 @ 0x80 801225a: 2b00 cmp r3, #0 801225c: d00c beq.n 8012278 { if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK)) 801225e: 68fb ldr r3, [r7, #12] 8012260: f003 0380 and.w r3, r3, #128 @ 0x80 8012264: 2b00 cmp r3, #0 8012266: d007 beq.n 8012278 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK); 8012268: 687b ldr r3, [r7, #4] 801226a: 681b ldr r3, [r3, #0] 801226c: f06f 0280 mvn.w r2, #128 @ 0x80 8012270: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); 8012272: 6878 ldr r0, [r7, #4] 8012274: f000 fd63 bl 8012d3e #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER)) 8012278: 68bb ldr r3, [r7, #8] 801227a: f003 0340 and.w r3, r3, #64 @ 0x40 801227e: 2b00 cmp r3, #0 8012280: d00c beq.n 801229c { if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER)) 8012282: 68fb ldr r3, [r7, #12] 8012284: f003 0340 and.w r3, r3, #64 @ 0x40 8012288: 2b00 cmp r3, #0 801228a: d007 beq.n 801229c { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER); 801228c: 687b ldr r3, [r7, #4] 801228e: 681b ldr r3, [r3, #0] 8012290: f06f 0240 mvn.w r2, #64 @ 0x40 8012294: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); 8012296: 6878 ldr r0, [r7, #4] 8012298: f000 fa1f bl 80126da #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM)) 801229c: 68bb ldr r3, [r7, #8] 801229e: f003 0320 and.w r3, r3, #32 80122a2: 2b00 cmp r3, #0 80122a4: d00c beq.n 80122c0 { if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM)) 80122a6: 68fb ldr r3, [r7, #12] 80122a8: f003 0320 and.w r3, r3, #32 80122ac: 2b00 cmp r3, #0 80122ae: d007 beq.n 80122c0 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM); 80122b0: 687b ldr r3, [r7, #4] 80122b2: 681b ldr r3, [r3, #0] 80122b4: f06f 0220 mvn.w r2, #32 80122b8: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); 80122ba: 6878 ldr r0, [r7, #4] 80122bc: f000 fd36 bl 8012d2c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } 80122c0: bf00 nop 80122c2: 3710 adds r7, #16 80122c4: 46bd mov sp, r7 80122c6: bd80 pop {r7, pc} 080122c8 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 80122c8: b580 push {r7, lr} 80122ca: b086 sub sp, #24 80122cc: af00 add r7, sp, #0 80122ce: 60f8 str r0, [r7, #12] 80122d0: 60b9 str r1, [r7, #8] 80122d2: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 80122d4: 2300 movs r3, #0 80122d6: 75fb strb r3, [r7, #23] assert_param(IS_TIM_CHANNELS(Channel)); assert_param(IS_TIM_OC_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); /* Process Locked */ __HAL_LOCK(htim); 80122d8: 68fb ldr r3, [r7, #12] 80122da: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 80122de: 2b01 cmp r3, #1 80122e0: d101 bne.n 80122e6 80122e2: 2302 movs r3, #2 80122e4: e048 b.n 8012378 80122e6: 68fb ldr r3, [r7, #12] 80122e8: 2201 movs r2, #1 80122ea: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) 80122ee: 687b ldr r3, [r7, #4] 80122f0: 2b0c cmp r3, #12 80122f2: d839 bhi.n 8012368 80122f4: a201 add r2, pc, #4 @ (adr r2, 80122fc ) 80122f6: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80122fa: bf00 nop 80122fc: 08012331 .word 0x08012331 8012300: 08012369 .word 0x08012369 8012304: 08012369 .word 0x08012369 8012308: 08012369 .word 0x08012369 801230c: 0801233f .word 0x0801233f 8012310: 08012369 .word 0x08012369 8012314: 08012369 .word 0x08012369 8012318: 08012369 .word 0x08012369 801231c: 0801234d .word 0x0801234d 8012320: 08012369 .word 0x08012369 8012324: 08012369 .word 0x08012369 8012328: 08012369 .word 0x08012369 801232c: 0801235b .word 0x0801235b { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the TIM Channel 1 in Output Compare */ TIM_OC1_SetConfig(htim->Instance, sConfig); 8012330: 68fb ldr r3, [r7, #12] 8012332: 681b ldr r3, [r3, #0] 8012334: 68b9 ldr r1, [r7, #8] 8012336: 4618 mov r0, r3 8012338: f000 fa50 bl 80127dc break; 801233c: e017 b.n 801236e { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the TIM Channel 2 in Output Compare */ TIM_OC2_SetConfig(htim->Instance, sConfig); 801233e: 68fb ldr r3, [r7, #12] 8012340: 681b ldr r3, [r3, #0] 8012342: 68b9 ldr r1, [r7, #8] 8012344: 4618 mov r0, r3 8012346: f000 faaf bl 80128a8 break; 801234a: e010 b.n 801236e { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the TIM Channel 3 in Output Compare */ TIM_OC3_SetConfig(htim->Instance, sConfig); 801234c: 68fb ldr r3, [r7, #12] 801234e: 681b ldr r3, [r3, #0] 8012350: 68b9 ldr r1, [r7, #8] 8012352: 4618 mov r0, r3 8012354: f000 fb12 bl 801297c break; 8012358: e009 b.n 801236e { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the TIM Channel 4 in Output Compare */ TIM_OC4_SetConfig(htim->Instance, sConfig); 801235a: 68fb ldr r3, [r7, #12] 801235c: 681b ldr r3, [r3, #0] 801235e: 68b9 ldr r1, [r7, #8] 8012360: 4618 mov r0, r3 8012362: f000 fb75 bl 8012a50 break; 8012366: e002 b.n 801236e } default: status = HAL_ERROR; 8012368: 2301 movs r3, #1 801236a: 75fb strb r3, [r7, #23] break; 801236c: bf00 nop } __HAL_UNLOCK(htim); 801236e: 68fb ldr r3, [r7, #12] 8012370: 2200 movs r2, #0 8012372: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 8012376: 7dfb ldrb r3, [r7, #23] } 8012378: 4618 mov r0, r3 801237a: 3718 adds r7, #24 801237c: 46bd mov sp, r7 801237e: bd80 pop {r7, pc} 08012380 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 8012380: b580 push {r7, lr} 8012382: b086 sub sp, #24 8012384: af00 add r7, sp, #0 8012386: 60f8 str r0, [r7, #12] 8012388: 60b9 str r1, [r7, #8] 801238a: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 801238c: 2300 movs r3, #0 801238e: 75fb strb r3, [r7, #23] assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); /* Process Locked */ __HAL_LOCK(htim); 8012390: 68fb ldr r3, [r7, #12] 8012392: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012396: 2b01 cmp r3, #1 8012398: d101 bne.n 801239e 801239a: 2302 movs r3, #2 801239c: e0ae b.n 80124fc 801239e: 68fb ldr r3, [r7, #12] 80123a0: 2201 movs r2, #1 80123a2: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) 80123a6: 687b ldr r3, [r7, #4] 80123a8: 2b0c cmp r3, #12 80123aa: f200 809f bhi.w 80124ec 80123ae: a201 add r2, pc, #4 @ (adr r2, 80123b4 ) 80123b0: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80123b4: 080123e9 .word 0x080123e9 80123b8: 080124ed .word 0x080124ed 80123bc: 080124ed .word 0x080124ed 80123c0: 080124ed .word 0x080124ed 80123c4: 08012429 .word 0x08012429 80123c8: 080124ed .word 0x080124ed 80123cc: 080124ed .word 0x080124ed 80123d0: 080124ed .word 0x080124ed 80123d4: 0801246b .word 0x0801246b 80123d8: 080124ed .word 0x080124ed 80123dc: 080124ed .word 0x080124ed 80123e0: 080124ed .word 0x080124ed 80123e4: 080124ab .word 0x080124ab { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); 80123e8: 68fb ldr r3, [r7, #12] 80123ea: 681b ldr r3, [r3, #0] 80123ec: 68b9 ldr r1, [r7, #8] 80123ee: 4618 mov r0, r3 80123f0: f000 f9f4 bl 80127dc /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; 80123f4: 68fb ldr r3, [r7, #12] 80123f6: 681b ldr r3, [r3, #0] 80123f8: 699a ldr r2, [r3, #24] 80123fa: 68fb ldr r3, [r7, #12] 80123fc: 681b ldr r3, [r3, #0] 80123fe: f042 0208 orr.w r2, r2, #8 8012402: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; 8012404: 68fb ldr r3, [r7, #12] 8012406: 681b ldr r3, [r3, #0] 8012408: 699a ldr r2, [r3, #24] 801240a: 68fb ldr r3, [r7, #12] 801240c: 681b ldr r3, [r3, #0] 801240e: f022 0204 bic.w r2, r2, #4 8012412: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; 8012414: 68fb ldr r3, [r7, #12] 8012416: 681b ldr r3, [r3, #0] 8012418: 6999 ldr r1, [r3, #24] 801241a: 68bb ldr r3, [r7, #8] 801241c: 691a ldr r2, [r3, #16] 801241e: 68fb ldr r3, [r7, #12] 8012420: 681b ldr r3, [r3, #0] 8012422: 430a orrs r2, r1 8012424: 619a str r2, [r3, #24] break; 8012426: e064 b.n 80124f2 { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); 8012428: 68fb ldr r3, [r7, #12] 801242a: 681b ldr r3, [r3, #0] 801242c: 68b9 ldr r1, [r7, #8] 801242e: 4618 mov r0, r3 8012430: f000 fa3a bl 80128a8 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; 8012434: 68fb ldr r3, [r7, #12] 8012436: 681b ldr r3, [r3, #0] 8012438: 699a ldr r2, [r3, #24] 801243a: 68fb ldr r3, [r7, #12] 801243c: 681b ldr r3, [r3, #0] 801243e: f442 6200 orr.w r2, r2, #2048 @ 0x800 8012442: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; 8012444: 68fb ldr r3, [r7, #12] 8012446: 681b ldr r3, [r3, #0] 8012448: 699a ldr r2, [r3, #24] 801244a: 68fb ldr r3, [r7, #12] 801244c: 681b ldr r3, [r3, #0] 801244e: f422 6280 bic.w r2, r2, #1024 @ 0x400 8012452: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; 8012454: 68fb ldr r3, [r7, #12] 8012456: 681b ldr r3, [r3, #0] 8012458: 6999 ldr r1, [r3, #24] 801245a: 68bb ldr r3, [r7, #8] 801245c: 691b ldr r3, [r3, #16] 801245e: 021a lsls r2, r3, #8 8012460: 68fb ldr r3, [r7, #12] 8012462: 681b ldr r3, [r3, #0] 8012464: 430a orrs r2, r1 8012466: 619a str r2, [r3, #24] break; 8012468: e043 b.n 80124f2 { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); 801246a: 68fb ldr r3, [r7, #12] 801246c: 681b ldr r3, [r3, #0] 801246e: 68b9 ldr r1, [r7, #8] 8012470: 4618 mov r0, r3 8012472: f000 fa83 bl 801297c /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; 8012476: 68fb ldr r3, [r7, #12] 8012478: 681b ldr r3, [r3, #0] 801247a: 69da ldr r2, [r3, #28] 801247c: 68fb ldr r3, [r7, #12] 801247e: 681b ldr r3, [r3, #0] 8012480: f042 0208 orr.w r2, r2, #8 8012484: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; 8012486: 68fb ldr r3, [r7, #12] 8012488: 681b ldr r3, [r3, #0] 801248a: 69da ldr r2, [r3, #28] 801248c: 68fb ldr r3, [r7, #12] 801248e: 681b ldr r3, [r3, #0] 8012490: f022 0204 bic.w r2, r2, #4 8012494: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; 8012496: 68fb ldr r3, [r7, #12] 8012498: 681b ldr r3, [r3, #0] 801249a: 69d9 ldr r1, [r3, #28] 801249c: 68bb ldr r3, [r7, #8] 801249e: 691a ldr r2, [r3, #16] 80124a0: 68fb ldr r3, [r7, #12] 80124a2: 681b ldr r3, [r3, #0] 80124a4: 430a orrs r2, r1 80124a6: 61da str r2, [r3, #28] break; 80124a8: e023 b.n 80124f2 { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); 80124aa: 68fb ldr r3, [r7, #12] 80124ac: 681b ldr r3, [r3, #0] 80124ae: 68b9 ldr r1, [r7, #8] 80124b0: 4618 mov r0, r3 80124b2: f000 facd bl 8012a50 /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; 80124b6: 68fb ldr r3, [r7, #12] 80124b8: 681b ldr r3, [r3, #0] 80124ba: 69da ldr r2, [r3, #28] 80124bc: 68fb ldr r3, [r7, #12] 80124be: 681b ldr r3, [r3, #0] 80124c0: f442 6200 orr.w r2, r2, #2048 @ 0x800 80124c4: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; 80124c6: 68fb ldr r3, [r7, #12] 80124c8: 681b ldr r3, [r3, #0] 80124ca: 69da ldr r2, [r3, #28] 80124cc: 68fb ldr r3, [r7, #12] 80124ce: 681b ldr r3, [r3, #0] 80124d0: f422 6280 bic.w r2, r2, #1024 @ 0x400 80124d4: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; 80124d6: 68fb ldr r3, [r7, #12] 80124d8: 681b ldr r3, [r3, #0] 80124da: 69d9 ldr r1, [r3, #28] 80124dc: 68bb ldr r3, [r7, #8] 80124de: 691b ldr r3, [r3, #16] 80124e0: 021a lsls r2, r3, #8 80124e2: 68fb ldr r3, [r7, #12] 80124e4: 681b ldr r3, [r3, #0] 80124e6: 430a orrs r2, r1 80124e8: 61da str r2, [r3, #28] break; 80124ea: e002 b.n 80124f2 } default: status = HAL_ERROR; 80124ec: 2301 movs r3, #1 80124ee: 75fb strb r3, [r7, #23] break; 80124f0: bf00 nop } __HAL_UNLOCK(htim); 80124f2: 68fb ldr r3, [r7, #12] 80124f4: 2200 movs r2, #0 80124f6: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 80124fa: 7dfb ldrb r3, [r7, #23] } 80124fc: 4618 mov r0, r3 80124fe: 3718 adds r7, #24 8012500: 46bd mov sp, r7 8012502: bd80 pop {r7, pc} 08012504 : * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that * contains the clock source information for the TIM peripheral. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig) { 8012504: b580 push {r7, lr} 8012506: b084 sub sp, #16 8012508: af00 add r7, sp, #0 801250a: 6078 str r0, [r7, #4] 801250c: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; 801250e: 2300 movs r3, #0 8012510: 73fb strb r3, [r7, #15] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); 8012512: 687b ldr r3, [r7, #4] 8012514: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012518: 2b01 cmp r3, #1 801251a: d101 bne.n 8012520 801251c: 2302 movs r3, #2 801251e: e0b4 b.n 801268a 8012520: 687b ldr r3, [r7, #4] 8012522: 2201 movs r2, #1 8012524: f883 203c strb.w r2, [r3, #60] @ 0x3c htim->State = HAL_TIM_STATE_BUSY; 8012528: 687b ldr r3, [r7, #4] 801252a: 2202 movs r2, #2 801252c: 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; 8012530: 687b ldr r3, [r7, #4] 8012532: 681b ldr r3, [r3, #0] 8012534: 689b ldr r3, [r3, #8] 8012536: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); 8012538: 68bb ldr r3, [r7, #8] 801253a: f023 0377 bic.w r3, r3, #119 @ 0x77 801253e: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 8012540: 68bb ldr r3, [r7, #8] 8012542: f423 437f bic.w r3, r3, #65280 @ 0xff00 8012546: 60bb str r3, [r7, #8] htim->Instance->SMCR = tmpsmcr; 8012548: 687b ldr r3, [r7, #4] 801254a: 681b ldr r3, [r3, #0] 801254c: 68ba ldr r2, [r7, #8] 801254e: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) 8012550: 683b ldr r3, [r7, #0] 8012552: 681b ldr r3, [r3, #0] 8012554: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 8012558: d03e beq.n 80125d8 801255a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 801255e: f200 8087 bhi.w 8012670 8012562: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8012566: f000 8086 beq.w 8012676 801256a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 801256e: d87f bhi.n 8012670 8012570: 2b70 cmp r3, #112 @ 0x70 8012572: d01a beq.n 80125aa 8012574: 2b70 cmp r3, #112 @ 0x70 8012576: d87b bhi.n 8012670 8012578: 2b60 cmp r3, #96 @ 0x60 801257a: d050 beq.n 801261e 801257c: 2b60 cmp r3, #96 @ 0x60 801257e: d877 bhi.n 8012670 8012580: 2b50 cmp r3, #80 @ 0x50 8012582: d03c beq.n 80125fe 8012584: 2b50 cmp r3, #80 @ 0x50 8012586: d873 bhi.n 8012670 8012588: 2b40 cmp r3, #64 @ 0x40 801258a: d058 beq.n 801263e 801258c: 2b40 cmp r3, #64 @ 0x40 801258e: d86f bhi.n 8012670 8012590: 2b30 cmp r3, #48 @ 0x30 8012592: d064 beq.n 801265e 8012594: 2b30 cmp r3, #48 @ 0x30 8012596: d86b bhi.n 8012670 8012598: 2b20 cmp r3, #32 801259a: d060 beq.n 801265e 801259c: 2b20 cmp r3, #32 801259e: d867 bhi.n 8012670 80125a0: 2b00 cmp r3, #0 80125a2: d05c beq.n 801265e 80125a4: 2b10 cmp r3, #16 80125a6: d05a beq.n 801265e 80125a8: e062 b.n 8012670 assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); /* Configure the ETR Clock source */ TIM_ETR_SetConfig(htim->Instance, 80125aa: 687b ldr r3, [r7, #4] 80125ac: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, 80125ae: 683b ldr r3, [r7, #0] 80125b0: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, 80125b2: 683b ldr r3, [r7, #0] 80125b4: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); 80125b6: 683b ldr r3, [r7, #0] 80125b8: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, 80125ba: f000 fb0e bl 8012bda /* Select the External clock mode1 and the ETRF trigger */ tmpsmcr = htim->Instance->SMCR; 80125be: 687b ldr r3, [r7, #4] 80125c0: 681b ldr r3, [r3, #0] 80125c2: 689b ldr r3, [r3, #8] 80125c4: 60bb str r3, [r7, #8] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); 80125c6: 68bb ldr r3, [r7, #8] 80125c8: f043 0377 orr.w r3, r3, #119 @ 0x77 80125cc: 60bb str r3, [r7, #8] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 80125ce: 687b ldr r3, [r7, #4] 80125d0: 681b ldr r3, [r3, #0] 80125d2: 68ba ldr r2, [r7, #8] 80125d4: 609a str r2, [r3, #8] break; 80125d6: e04f b.n 8012678 assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); /* Configure the ETR Clock source */ TIM_ETR_SetConfig(htim->Instance, 80125d8: 687b ldr r3, [r7, #4] 80125da: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, 80125dc: 683b ldr r3, [r7, #0] 80125de: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, 80125e0: 683b ldr r3, [r7, #0] 80125e2: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); 80125e4: 683b ldr r3, [r7, #0] 80125e6: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, 80125e8: f000 faf7 bl 8012bda /* Enable the External clock mode2 */ htim->Instance->SMCR |= TIM_SMCR_ECE; 80125ec: 687b ldr r3, [r7, #4] 80125ee: 681b ldr r3, [r3, #0] 80125f0: 689a ldr r2, [r3, #8] 80125f2: 687b ldr r3, [r7, #4] 80125f4: 681b ldr r3, [r3, #0] 80125f6: f442 4280 orr.w r2, r2, #16384 @ 0x4000 80125fa: 609a str r2, [r3, #8] break; 80125fc: e03c b.n 8012678 /* Check TI1 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI1_ConfigInputStage(htim->Instance, 80125fe: 687b ldr r3, [r7, #4] 8012600: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 8012602: 683b ldr r3, [r7, #0] 8012604: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 8012606: 683b ldr r3, [r7, #0] 8012608: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, 801260a: 461a mov r2, r3 801260c: f000 fa6e bl 8012aec TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); 8012610: 687b ldr r3, [r7, #4] 8012612: 681b ldr r3, [r3, #0] 8012614: 2150 movs r1, #80 @ 0x50 8012616: 4618 mov r0, r3 8012618: f000 fac5 bl 8012ba6 break; 801261c: e02c b.n 8012678 /* Check TI2 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI2_ConfigInputStage(htim->Instance, 801261e: 687b ldr r3, [r7, #4] 8012620: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 8012622: 683b ldr r3, [r7, #0] 8012624: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 8012626: 683b ldr r3, [r7, #0] 8012628: 68db ldr r3, [r3, #12] TIM_TI2_ConfigInputStage(htim->Instance, 801262a: 461a mov r2, r3 801262c: f000 fa8c bl 8012b48 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); 8012630: 687b ldr r3, [r7, #4] 8012632: 681b ldr r3, [r3, #0] 8012634: 2160 movs r1, #96 @ 0x60 8012636: 4618 mov r0, r3 8012638: f000 fab5 bl 8012ba6 break; 801263c: e01c b.n 8012678 /* Check TI1 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI1_ConfigInputStage(htim->Instance, 801263e: 687b ldr r3, [r7, #4] 8012640: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 8012642: 683b ldr r3, [r7, #0] 8012644: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 8012646: 683b ldr r3, [r7, #0] 8012648: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, 801264a: 461a mov r2, r3 801264c: f000 fa4e bl 8012aec TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); 8012650: 687b ldr r3, [r7, #4] 8012652: 681b ldr r3, [r3, #0] 8012654: 2140 movs r1, #64 @ 0x40 8012656: 4618 mov r0, r3 8012658: f000 faa5 bl 8012ba6 break; 801265c: e00c b.n 8012678 case TIM_CLOCKSOURCE_ITR3: { /* Check whether or not the timer instance supports internal trigger input */ assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); 801265e: 687b ldr r3, [r7, #4] 8012660: 681a ldr r2, [r3, #0] 8012662: 683b ldr r3, [r7, #0] 8012664: 681b ldr r3, [r3, #0] 8012666: 4619 mov r1, r3 8012668: 4610 mov r0, r2 801266a: f000 fa9c bl 8012ba6 break; 801266e: e003 b.n 8012678 } default: status = HAL_ERROR; 8012670: 2301 movs r3, #1 8012672: 73fb strb r3, [r7, #15] break; 8012674: e000 b.n 8012678 break; 8012676: bf00 nop } htim->State = HAL_TIM_STATE_READY; 8012678: 687b ldr r3, [r7, #4] 801267a: 2201 movs r2, #1 801267c: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); 8012680: 687b ldr r3, [r7, #4] 8012682: 2200 movs r2, #0 8012684: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 8012688: 7bfb ldrb r3, [r7, #15] } 801268a: 4618 mov r0, r3 801268c: 3710 adds r7, #16 801268e: 46bd mov sp, r7 8012690: bd80 pop {r7, pc} 08012692 : * @brief Period elapsed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { 8012692: b480 push {r7} 8012694: b083 sub sp, #12 8012696: af00 add r7, sp, #0 8012698: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PeriodElapsedCallback could be implemented in the user file */ } 801269a: bf00 nop 801269c: 370c adds r7, #12 801269e: 46bd mov sp, r7 80126a0: bc80 pop {r7} 80126a2: 4770 bx lr 080126a4 : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { 80126a4: b480 push {r7} 80126a6: b083 sub sp, #12 80126a8: af00 add r7, sp, #0 80126aa: 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 */ } 80126ac: bf00 nop 80126ae: 370c adds r7, #12 80126b0: 46bd mov sp, r7 80126b2: bc80 pop {r7} 80126b4: 4770 bx lr 080126b6 : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { 80126b6: b480 push {r7} 80126b8: b083 sub sp, #12 80126ba: af00 add r7, sp, #0 80126bc: 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 */ } 80126be: bf00 nop 80126c0: 370c adds r7, #12 80126c2: 46bd mov sp, r7 80126c4: bc80 pop {r7} 80126c6: 4770 bx lr 080126c8 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { 80126c8: b480 push {r7} 80126ca: b083 sub sp, #12 80126cc: af00 add r7, sp, #0 80126ce: 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 */ } 80126d0: bf00 nop 80126d2: 370c adds r7, #12 80126d4: 46bd mov sp, r7 80126d6: bc80 pop {r7} 80126d8: 4770 bx lr 080126da : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { 80126da: b480 push {r7} 80126dc: b083 sub sp, #12 80126de: af00 add r7, sp, #0 80126e0: 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 */ } 80126e2: bf00 nop 80126e4: 370c adds r7, #12 80126e6: 46bd mov sp, r7 80126e8: bc80 pop {r7} 80126ea: 4770 bx lr 080126ec : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { 80126ec: b480 push {r7} 80126ee: b085 sub sp, #20 80126f0: af00 add r7, sp, #0 80126f2: 6078 str r0, [r7, #4] 80126f4: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; 80126f6: 687b ldr r3, [r7, #4] 80126f8: 681b ldr r3, [r3, #0] 80126fa: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) 80126fc: 687b ldr r3, [r7, #4] 80126fe: 4a33 ldr r2, [pc, #204] @ (80127cc ) 8012700: 4293 cmp r3, r2 8012702: d00f beq.n 8012724 8012704: 687b ldr r3, [r7, #4] 8012706: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 801270a: d00b beq.n 8012724 801270c: 687b ldr r3, [r7, #4] 801270e: 4a30 ldr r2, [pc, #192] @ (80127d0 ) 8012710: 4293 cmp r3, r2 8012712: d007 beq.n 8012724 8012714: 687b ldr r3, [r7, #4] 8012716: 4a2f ldr r2, [pc, #188] @ (80127d4 ) 8012718: 4293 cmp r3, r2 801271a: d003 beq.n 8012724 801271c: 687b ldr r3, [r7, #4] 801271e: 4a2e ldr r2, [pc, #184] @ (80127d8 ) 8012720: 4293 cmp r3, r2 8012722: d108 bne.n 8012736 { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); 8012724: 68fb ldr r3, [r7, #12] 8012726: f023 0370 bic.w r3, r3, #112 @ 0x70 801272a: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; 801272c: 683b ldr r3, [r7, #0] 801272e: 685b ldr r3, [r3, #4] 8012730: 68fa ldr r2, [r7, #12] 8012732: 4313 orrs r3, r2 8012734: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) 8012736: 687b ldr r3, [r7, #4] 8012738: 4a24 ldr r2, [pc, #144] @ (80127cc ) 801273a: 4293 cmp r3, r2 801273c: d00f beq.n 801275e 801273e: 687b ldr r3, [r7, #4] 8012740: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012744: d00b beq.n 801275e 8012746: 687b ldr r3, [r7, #4] 8012748: 4a21 ldr r2, [pc, #132] @ (80127d0 ) 801274a: 4293 cmp r3, r2 801274c: d007 beq.n 801275e 801274e: 687b ldr r3, [r7, #4] 8012750: 4a20 ldr r2, [pc, #128] @ (80127d4 ) 8012752: 4293 cmp r3, r2 8012754: d003 beq.n 801275e 8012756: 687b ldr r3, [r7, #4] 8012758: 4a1f ldr r2, [pc, #124] @ (80127d8 ) 801275a: 4293 cmp r3, r2 801275c: d108 bne.n 8012770 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; 801275e: 68fb ldr r3, [r7, #12] 8012760: f423 7340 bic.w r3, r3, #768 @ 0x300 8012764: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; 8012766: 683b ldr r3, [r7, #0] 8012768: 68db ldr r3, [r3, #12] 801276a: 68fa ldr r2, [r7, #12] 801276c: 4313 orrs r3, r2 801276e: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); 8012770: 68fb ldr r3, [r7, #12] 8012772: f023 0280 bic.w r2, r3, #128 @ 0x80 8012776: 683b ldr r3, [r7, #0] 8012778: 695b ldr r3, [r3, #20] 801277a: 4313 orrs r3, r2 801277c: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; 801277e: 687b ldr r3, [r7, #4] 8012780: 68fa ldr r2, [r7, #12] 8012782: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; 8012784: 683b ldr r3, [r7, #0] 8012786: 689a ldr r2, [r3, #8] 8012788: 687b ldr r3, [r7, #4] 801278a: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; 801278c: 683b ldr r3, [r7, #0] 801278e: 681a ldr r2, [r3, #0] 8012790: 687b ldr r3, [r7, #4] 8012792: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) 8012794: 687b ldr r3, [r7, #4] 8012796: 4a0d ldr r2, [pc, #52] @ (80127cc ) 8012798: 4293 cmp r3, r2 801279a: d103 bne.n 80127a4 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; 801279c: 683b ldr r3, [r7, #0] 801279e: 691a ldr r2, [r3, #16] 80127a0: 687b ldr r3, [r7, #4] 80127a2: 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; 80127a4: 687b ldr r3, [r7, #4] 80127a6: 2201 movs r2, #1 80127a8: 615a str r2, [r3, #20] /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */ if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE)) 80127aa: 687b ldr r3, [r7, #4] 80127ac: 691b ldr r3, [r3, #16] 80127ae: f003 0301 and.w r3, r3, #1 80127b2: 2b00 cmp r3, #0 80127b4: d005 beq.n 80127c2 { /* Clear the update flag */ CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE); 80127b6: 687b ldr r3, [r7, #4] 80127b8: 691b ldr r3, [r3, #16] 80127ba: f023 0201 bic.w r2, r3, #1 80127be: 687b ldr r3, [r7, #4] 80127c0: 611a str r2, [r3, #16] } } 80127c2: bf00 nop 80127c4: 3714 adds r7, #20 80127c6: 46bd mov sp, r7 80127c8: bc80 pop {r7} 80127ca: 4770 bx lr 80127cc: 40012c00 .word 0x40012c00 80127d0: 40000400 .word 0x40000400 80127d4: 40000800 .word 0x40000800 80127d8: 40000c00 .word 0x40000c00 080127dc : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { 80127dc: b480 push {r7} 80127de: b087 sub sp, #28 80127e0: af00 add r7, sp, #0 80127e2: 6078 str r0, [r7, #4] 80127e4: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 80127e6: 687b ldr r3, [r7, #4] 80127e8: 6a1b ldr r3, [r3, #32] 80127ea: 617b str r3, [r7, #20] /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; 80127ec: 687b ldr r3, [r7, #4] 80127ee: 6a1b ldr r3, [r3, #32] 80127f0: f023 0201 bic.w r2, r3, #1 80127f4: 687b ldr r3, [r7, #4] 80127f6: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 80127f8: 687b ldr r3, [r7, #4] 80127fa: 685b ldr r3, [r3, #4] 80127fc: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 80127fe: 687b ldr r3, [r7, #4] 8012800: 699b ldr r3, [r3, #24] 8012802: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; 8012804: 68fb ldr r3, [r7, #12] 8012806: f023 0370 bic.w r3, r3, #112 @ 0x70 801280a: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; 801280c: 68fb ldr r3, [r7, #12] 801280e: f023 0303 bic.w r3, r3, #3 8012812: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 8012814: 683b ldr r3, [r7, #0] 8012816: 681b ldr r3, [r3, #0] 8012818: 68fa ldr r2, [r7, #12] 801281a: 4313 orrs r3, r2 801281c: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; 801281e: 697b ldr r3, [r7, #20] 8012820: f023 0302 bic.w r3, r3, #2 8012824: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; 8012826: 683b ldr r3, [r7, #0] 8012828: 689b ldr r3, [r3, #8] 801282a: 697a ldr r2, [r7, #20] 801282c: 4313 orrs r3, r2 801282e: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) 8012830: 687b ldr r3, [r7, #4] 8012832: 4a1c ldr r2, [pc, #112] @ (80128a4 ) 8012834: 4293 cmp r3, r2 8012836: d10c bne.n 8012852 { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; 8012838: 697b ldr r3, [r7, #20] 801283a: f023 0308 bic.w r3, r3, #8 801283e: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; 8012840: 683b ldr r3, [r7, #0] 8012842: 68db ldr r3, [r3, #12] 8012844: 697a ldr r2, [r7, #20] 8012846: 4313 orrs r3, r2 8012848: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; 801284a: 697b ldr r3, [r7, #20] 801284c: f023 0304 bic.w r3, r3, #4 8012850: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012852: 687b ldr r3, [r7, #4] 8012854: 4a13 ldr r2, [pc, #76] @ (80128a4 ) 8012856: 4293 cmp r3, r2 8012858: d111 bne.n 801287e /* 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; 801285a: 693b ldr r3, [r7, #16] 801285c: f423 7380 bic.w r3, r3, #256 @ 0x100 8012860: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; 8012862: 693b ldr r3, [r7, #16] 8012864: f423 7300 bic.w r3, r3, #512 @ 0x200 8012868: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; 801286a: 683b ldr r3, [r7, #0] 801286c: 695b ldr r3, [r3, #20] 801286e: 693a ldr r2, [r7, #16] 8012870: 4313 orrs r3, r2 8012872: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; 8012874: 683b ldr r3, [r7, #0] 8012876: 699b ldr r3, [r3, #24] 8012878: 693a ldr r2, [r7, #16] 801287a: 4313 orrs r3, r2 801287c: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 801287e: 687b ldr r3, [r7, #4] 8012880: 693a ldr r2, [r7, #16] 8012882: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 8012884: 687b ldr r3, [r7, #4] 8012886: 68fa ldr r2, [r7, #12] 8012888: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; 801288a: 683b ldr r3, [r7, #0] 801288c: 685a ldr r2, [r3, #4] 801288e: 687b ldr r3, [r7, #4] 8012890: 635a str r2, [r3, #52] @ 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012892: 687b ldr r3, [r7, #4] 8012894: 697a ldr r2, [r7, #20] 8012896: 621a str r2, [r3, #32] } 8012898: bf00 nop 801289a: 371c adds r7, #28 801289c: 46bd mov sp, r7 801289e: bc80 pop {r7} 80128a0: 4770 bx lr 80128a2: bf00 nop 80128a4: 40012c00 .word 0x40012c00 080128a8 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { 80128a8: b480 push {r7} 80128aa: b087 sub sp, #28 80128ac: af00 add r7, sp, #0 80128ae: 6078 str r0, [r7, #4] 80128b0: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 80128b2: 687b ldr r3, [r7, #4] 80128b4: 6a1b ldr r3, [r3, #32] 80128b6: 617b str r3, [r7, #20] /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; 80128b8: 687b ldr r3, [r7, #4] 80128ba: 6a1b ldr r3, [r3, #32] 80128bc: f023 0210 bic.w r2, r3, #16 80128c0: 687b ldr r3, [r7, #4] 80128c2: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 80128c4: 687b ldr r3, [r7, #4] 80128c6: 685b ldr r3, [r3, #4] 80128c8: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 80128ca: 687b ldr r3, [r7, #4] 80128cc: 699b ldr r3, [r3, #24] 80128ce: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; 80128d0: 68fb ldr r3, [r7, #12] 80128d2: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 80128d6: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; 80128d8: 68fb ldr r3, [r7, #12] 80128da: f423 7340 bic.w r3, r3, #768 @ 0x300 80128de: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 80128e0: 683b ldr r3, [r7, #0] 80128e2: 681b ldr r3, [r3, #0] 80128e4: 021b lsls r3, r3, #8 80128e6: 68fa ldr r2, [r7, #12] 80128e8: 4313 orrs r3, r2 80128ea: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; 80128ec: 697b ldr r3, [r7, #20] 80128ee: f023 0320 bic.w r3, r3, #32 80128f2: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); 80128f4: 683b ldr r3, [r7, #0] 80128f6: 689b ldr r3, [r3, #8] 80128f8: 011b lsls r3, r3, #4 80128fa: 697a ldr r2, [r7, #20] 80128fc: 4313 orrs r3, r2 80128fe: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) 8012900: 687b ldr r3, [r7, #4] 8012902: 4a1d ldr r2, [pc, #116] @ (8012978 ) 8012904: 4293 cmp r3, r2 8012906: d10d bne.n 8012924 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; 8012908: 697b ldr r3, [r7, #20] 801290a: f023 0380 bic.w r3, r3, #128 @ 0x80 801290e: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); 8012910: 683b ldr r3, [r7, #0] 8012912: 68db ldr r3, [r3, #12] 8012914: 011b lsls r3, r3, #4 8012916: 697a ldr r2, [r7, #20] 8012918: 4313 orrs r3, r2 801291a: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; 801291c: 697b ldr r3, [r7, #20] 801291e: f023 0340 bic.w r3, r3, #64 @ 0x40 8012922: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012924: 687b ldr r3, [r7, #4] 8012926: 4a14 ldr r2, [pc, #80] @ (8012978 ) 8012928: 4293 cmp r3, r2 801292a: d113 bne.n 8012954 /* 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; 801292c: 693b ldr r3, [r7, #16] 801292e: f423 6380 bic.w r3, r3, #1024 @ 0x400 8012932: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; 8012934: 693b ldr r3, [r7, #16] 8012936: f423 6300 bic.w r3, r3, #2048 @ 0x800 801293a: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); 801293c: 683b ldr r3, [r7, #0] 801293e: 695b ldr r3, [r3, #20] 8012940: 009b lsls r3, r3, #2 8012942: 693a ldr r2, [r7, #16] 8012944: 4313 orrs r3, r2 8012946: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); 8012948: 683b ldr r3, [r7, #0] 801294a: 699b ldr r3, [r3, #24] 801294c: 009b lsls r3, r3, #2 801294e: 693a ldr r2, [r7, #16] 8012950: 4313 orrs r3, r2 8012952: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012954: 687b ldr r3, [r7, #4] 8012956: 693a ldr r2, [r7, #16] 8012958: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 801295a: 687b ldr r3, [r7, #4] 801295c: 68fa ldr r2, [r7, #12] 801295e: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; 8012960: 683b ldr r3, [r7, #0] 8012962: 685a ldr r2, [r3, #4] 8012964: 687b ldr r3, [r7, #4] 8012966: 639a str r2, [r3, #56] @ 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012968: 687b ldr r3, [r7, #4] 801296a: 697a ldr r2, [r7, #20] 801296c: 621a str r2, [r3, #32] } 801296e: bf00 nop 8012970: 371c adds r7, #28 8012972: 46bd mov sp, r7 8012974: bc80 pop {r7} 8012976: 4770 bx lr 8012978: 40012c00 .word 0x40012c00 0801297c : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { 801297c: b480 push {r7} 801297e: b087 sub sp, #28 8012980: af00 add r7, sp, #0 8012982: 6078 str r0, [r7, #4] 8012984: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 8012986: 687b ldr r3, [r7, #4] 8012988: 6a1b ldr r3, [r3, #32] 801298a: 617b str r3, [r7, #20] /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; 801298c: 687b ldr r3, [r7, #4] 801298e: 6a1b ldr r3, [r3, #32] 8012990: f423 7280 bic.w r2, r3, #256 @ 0x100 8012994: 687b ldr r3, [r7, #4] 8012996: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8012998: 687b ldr r3, [r7, #4] 801299a: 685b ldr r3, [r3, #4] 801299c: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 801299e: 687b ldr r3, [r7, #4] 80129a0: 69db ldr r3, [r3, #28] 80129a2: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; 80129a4: 68fb ldr r3, [r7, #12] 80129a6: f023 0370 bic.w r3, r3, #112 @ 0x70 80129aa: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; 80129ac: 68fb ldr r3, [r7, #12] 80129ae: f023 0303 bic.w r3, r3, #3 80129b2: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 80129b4: 683b ldr r3, [r7, #0] 80129b6: 681b ldr r3, [r3, #0] 80129b8: 68fa ldr r2, [r7, #12] 80129ba: 4313 orrs r3, r2 80129bc: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; 80129be: 697b ldr r3, [r7, #20] 80129c0: f423 7300 bic.w r3, r3, #512 @ 0x200 80129c4: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); 80129c6: 683b ldr r3, [r7, #0] 80129c8: 689b ldr r3, [r3, #8] 80129ca: 021b lsls r3, r3, #8 80129cc: 697a ldr r2, [r7, #20] 80129ce: 4313 orrs r3, r2 80129d0: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) 80129d2: 687b ldr r3, [r7, #4] 80129d4: 4a1d ldr r2, [pc, #116] @ (8012a4c ) 80129d6: 4293 cmp r3, r2 80129d8: d10d bne.n 80129f6 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; 80129da: 697b ldr r3, [r7, #20] 80129dc: f423 6300 bic.w r3, r3, #2048 @ 0x800 80129e0: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); 80129e2: 683b ldr r3, [r7, #0] 80129e4: 68db ldr r3, [r3, #12] 80129e6: 021b lsls r3, r3, #8 80129e8: 697a ldr r2, [r7, #20] 80129ea: 4313 orrs r3, r2 80129ec: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; 80129ee: 697b ldr r3, [r7, #20] 80129f0: f423 6380 bic.w r3, r3, #1024 @ 0x400 80129f4: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 80129f6: 687b ldr r3, [r7, #4] 80129f8: 4a14 ldr r2, [pc, #80] @ (8012a4c ) 80129fa: 4293 cmp r3, r2 80129fc: d113 bne.n 8012a26 /* 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; 80129fe: 693b ldr r3, [r7, #16] 8012a00: f423 5380 bic.w r3, r3, #4096 @ 0x1000 8012a04: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; 8012a06: 693b ldr r3, [r7, #16] 8012a08: f423 5300 bic.w r3, r3, #8192 @ 0x2000 8012a0c: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); 8012a0e: 683b ldr r3, [r7, #0] 8012a10: 695b ldr r3, [r3, #20] 8012a12: 011b lsls r3, r3, #4 8012a14: 693a ldr r2, [r7, #16] 8012a16: 4313 orrs r3, r2 8012a18: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); 8012a1a: 683b ldr r3, [r7, #0] 8012a1c: 699b ldr r3, [r3, #24] 8012a1e: 011b lsls r3, r3, #4 8012a20: 693a ldr r2, [r7, #16] 8012a22: 4313 orrs r3, r2 8012a24: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012a26: 687b ldr r3, [r7, #4] 8012a28: 693a ldr r2, [r7, #16] 8012a2a: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 8012a2c: 687b ldr r3, [r7, #4] 8012a2e: 68fa ldr r2, [r7, #12] 8012a30: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; 8012a32: 683b ldr r3, [r7, #0] 8012a34: 685a ldr r2, [r3, #4] 8012a36: 687b ldr r3, [r7, #4] 8012a38: 63da str r2, [r3, #60] @ 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012a3a: 687b ldr r3, [r7, #4] 8012a3c: 697a ldr r2, [r7, #20] 8012a3e: 621a str r2, [r3, #32] } 8012a40: bf00 nop 8012a42: 371c adds r7, #28 8012a44: 46bd mov sp, r7 8012a46: bc80 pop {r7} 8012a48: 4770 bx lr 8012a4a: bf00 nop 8012a4c: 40012c00 .word 0x40012c00 08012a50 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { 8012a50: b480 push {r7} 8012a52: b087 sub sp, #28 8012a54: af00 add r7, sp, #0 8012a56: 6078 str r0, [r7, #4] 8012a58: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 8012a5a: 687b ldr r3, [r7, #4] 8012a5c: 6a1b ldr r3, [r3, #32] 8012a5e: 613b str r3, [r7, #16] /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; 8012a60: 687b ldr r3, [r7, #4] 8012a62: 6a1b ldr r3, [r3, #32] 8012a64: f423 5280 bic.w r2, r3, #4096 @ 0x1000 8012a68: 687b ldr r3, [r7, #4] 8012a6a: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8012a6c: 687b ldr r3, [r7, #4] 8012a6e: 685b ldr r3, [r3, #4] 8012a70: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 8012a72: 687b ldr r3, [r7, #4] 8012a74: 69db ldr r3, [r3, #28] 8012a76: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; 8012a78: 68fb ldr r3, [r7, #12] 8012a7a: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 8012a7e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; 8012a80: 68fb ldr r3, [r7, #12] 8012a82: f423 7340 bic.w r3, r3, #768 @ 0x300 8012a86: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 8012a88: 683b ldr r3, [r7, #0] 8012a8a: 681b ldr r3, [r3, #0] 8012a8c: 021b lsls r3, r3, #8 8012a8e: 68fa ldr r2, [r7, #12] 8012a90: 4313 orrs r3, r2 8012a92: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; 8012a94: 693b ldr r3, [r7, #16] 8012a96: f423 5300 bic.w r3, r3, #8192 @ 0x2000 8012a9a: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); 8012a9c: 683b ldr r3, [r7, #0] 8012a9e: 689b ldr r3, [r3, #8] 8012aa0: 031b lsls r3, r3, #12 8012aa2: 693a ldr r2, [r7, #16] 8012aa4: 4313 orrs r3, r2 8012aa6: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012aa8: 687b ldr r3, [r7, #4] 8012aaa: 4a0f ldr r2, [pc, #60] @ (8012ae8 ) 8012aac: 4293 cmp r3, r2 8012aae: d109 bne.n 8012ac4 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; 8012ab0: 697b ldr r3, [r7, #20] 8012ab2: f423 4380 bic.w r3, r3, #16384 @ 0x4000 8012ab6: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); 8012ab8: 683b ldr r3, [r7, #0] 8012aba: 695b ldr r3, [r3, #20] 8012abc: 019b lsls r3, r3, #6 8012abe: 697a ldr r2, [r7, #20] 8012ac0: 4313 orrs r3, r2 8012ac2: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012ac4: 687b ldr r3, [r7, #4] 8012ac6: 697a ldr r2, [r7, #20] 8012ac8: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 8012aca: 687b ldr r3, [r7, #4] 8012acc: 68fa ldr r2, [r7, #12] 8012ace: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; 8012ad0: 683b ldr r3, [r7, #0] 8012ad2: 685a ldr r2, [r3, #4] 8012ad4: 687b ldr r3, [r7, #4] 8012ad6: 641a str r2, [r3, #64] @ 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012ad8: 687b ldr r3, [r7, #4] 8012ada: 693a ldr r2, [r7, #16] 8012adc: 621a str r2, [r3, #32] } 8012ade: bf00 nop 8012ae0: 371c adds r7, #28 8012ae2: 46bd mov sp, r7 8012ae4: bc80 pop {r7} 8012ae6: 4770 bx lr 8012ae8: 40012c00 .word 0x40012c00 08012aec : * @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) { 8012aec: b480 push {r7} 8012aee: b087 sub sp, #28 8012af0: af00 add r7, sp, #0 8012af2: 60f8 str r0, [r7, #12] 8012af4: 60b9 str r1, [r7, #8] 8012af6: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; 8012af8: 68fb ldr r3, [r7, #12] 8012afa: 6a1b ldr r3, [r3, #32] 8012afc: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; 8012afe: 68fb ldr r3, [r7, #12] 8012b00: 6a1b ldr r3, [r3, #32] 8012b02: f023 0201 bic.w r2, r3, #1 8012b06: 68fb ldr r3, [r7, #12] 8012b08: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 8012b0a: 68fb ldr r3, [r7, #12] 8012b0c: 699b ldr r3, [r3, #24] 8012b0e: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; 8012b10: 693b ldr r3, [r7, #16] 8012b12: f023 03f0 bic.w r3, r3, #240 @ 0xf0 8012b16: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); 8012b18: 687b ldr r3, [r7, #4] 8012b1a: 011b lsls r3, r3, #4 8012b1c: 693a ldr r2, [r7, #16] 8012b1e: 4313 orrs r3, r2 8012b20: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); 8012b22: 697b ldr r3, [r7, #20] 8012b24: f023 030a bic.w r3, r3, #10 8012b28: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; 8012b2a: 697a ldr r2, [r7, #20] 8012b2c: 68bb ldr r3, [r7, #8] 8012b2e: 4313 orrs r3, r2 8012b30: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; 8012b32: 68fb ldr r3, [r7, #12] 8012b34: 693a ldr r2, [r7, #16] 8012b36: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 8012b38: 68fb ldr r3, [r7, #12] 8012b3a: 697a ldr r2, [r7, #20] 8012b3c: 621a str r2, [r3, #32] } 8012b3e: bf00 nop 8012b40: 371c adds r7, #28 8012b42: 46bd mov sp, r7 8012b44: bc80 pop {r7} 8012b46: 4770 bx lr 08012b48 : * @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) { 8012b48: b480 push {r7} 8012b4a: b087 sub sp, #28 8012b4c: af00 add r7, sp, #0 8012b4e: 60f8 str r0, [r7, #12] 8012b50: 60b9 str r1, [r7, #8] 8012b52: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ tmpccer = TIMx->CCER; 8012b54: 68fb ldr r3, [r7, #12] 8012b56: 6a1b ldr r3, [r3, #32] 8012b58: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC2E; 8012b5a: 68fb ldr r3, [r7, #12] 8012b5c: 6a1b ldr r3, [r3, #32] 8012b5e: f023 0210 bic.w r2, r3, #16 8012b62: 68fb ldr r3, [r7, #12] 8012b64: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 8012b66: 68fb ldr r3, [r7, #12] 8012b68: 699b ldr r3, [r3, #24] 8012b6a: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; 8012b6c: 693b ldr r3, [r7, #16] 8012b6e: f423 4370 bic.w r3, r3, #61440 @ 0xf000 8012b72: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 12U); 8012b74: 687b ldr r3, [r7, #4] 8012b76: 031b lsls r3, r3, #12 8012b78: 693a ldr r2, [r7, #16] 8012b7a: 4313 orrs r3, r2 8012b7c: 613b str r3, [r7, #16] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); 8012b7e: 697b ldr r3, [r7, #20] 8012b80: f023 03a0 bic.w r3, r3, #160 @ 0xa0 8012b84: 617b str r3, [r7, #20] tmpccer |= (TIM_ICPolarity << 4U); 8012b86: 68bb ldr r3, [r7, #8] 8012b88: 011b lsls r3, r3, #4 8012b8a: 697a ldr r2, [r7, #20] 8012b8c: 4313 orrs r3, r2 8012b8e: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; 8012b90: 68fb ldr r3, [r7, #12] 8012b92: 693a ldr r2, [r7, #16] 8012b94: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 8012b96: 68fb ldr r3, [r7, #12] 8012b98: 697a ldr r2, [r7, #20] 8012b9a: 621a str r2, [r3, #32] } 8012b9c: bf00 nop 8012b9e: 371c adds r7, #28 8012ba0: 46bd mov sp, r7 8012ba2: bc80 pop {r7} 8012ba4: 4770 bx lr 08012ba6 : * @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) { 8012ba6: b480 push {r7} 8012ba8: b085 sub sp, #20 8012baa: af00 add r7, sp, #0 8012bac: 6078 str r0, [r7, #4] 8012bae: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; 8012bb0: 687b ldr r3, [r7, #4] 8012bb2: 689b ldr r3, [r3, #8] 8012bb4: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; 8012bb6: 68fb ldr r3, [r7, #12] 8012bb8: f023 0370 bic.w r3, r3, #112 @ 0x70 8012bbc: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); 8012bbe: 683a ldr r2, [r7, #0] 8012bc0: 68fb ldr r3, [r7, #12] 8012bc2: 4313 orrs r3, r2 8012bc4: f043 0307 orr.w r3, r3, #7 8012bc8: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8012bca: 687b ldr r3, [r7, #4] 8012bcc: 68fa ldr r2, [r7, #12] 8012bce: 609a str r2, [r3, #8] } 8012bd0: bf00 nop 8012bd2: 3714 adds r7, #20 8012bd4: 46bd mov sp, r7 8012bd6: bc80 pop {r7} 8012bd8: 4770 bx lr 08012bda : * 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) { 8012bda: b480 push {r7} 8012bdc: b087 sub sp, #28 8012bde: af00 add r7, sp, #0 8012be0: 60f8 str r0, [r7, #12] 8012be2: 60b9 str r1, [r7, #8] 8012be4: 607a str r2, [r7, #4] 8012be6: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; 8012be8: 68fb ldr r3, [r7, #12] 8012bea: 689b ldr r3, [r3, #8] 8012bec: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 8012bee: 697b ldr r3, [r7, #20] 8012bf0: f423 437f bic.w r3, r3, #65280 @ 0xff00 8012bf4: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); 8012bf6: 683b ldr r3, [r7, #0] 8012bf8: 021a lsls r2, r3, #8 8012bfa: 687b ldr r3, [r7, #4] 8012bfc: 431a orrs r2, r3 8012bfe: 68bb ldr r3, [r7, #8] 8012c00: 4313 orrs r3, r2 8012c02: 697a ldr r2, [r7, #20] 8012c04: 4313 orrs r3, r2 8012c06: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8012c08: 68fb ldr r3, [r7, #12] 8012c0a: 697a ldr r2, [r7, #20] 8012c0c: 609a str r2, [r3, #8] } 8012c0e: bf00 nop 8012c10: 371c adds r7, #28 8012c12: 46bd mov sp, r7 8012c14: bc80 pop {r7} 8012c16: 4770 bx lr 08012c18 : * @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) { 8012c18: b480 push {r7} 8012c1a: b087 sub sp, #28 8012c1c: af00 add r7, sp, #0 8012c1e: 60f8 str r0, [r7, #12] 8012c20: 60b9 str r1, [r7, #8] 8012c22: 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 */ 8012c24: 68bb ldr r3, [r7, #8] 8012c26: f003 031f and.w r3, r3, #31 8012c2a: 2201 movs r2, #1 8012c2c: fa02 f303 lsl.w r3, r2, r3 8012c30: 617b str r3, [r7, #20] /* Reset the CCxE Bit */ TIMx->CCER &= ~tmp; 8012c32: 68fb ldr r3, [r7, #12] 8012c34: 6a1a ldr r2, [r3, #32] 8012c36: 697b ldr r3, [r7, #20] 8012c38: 43db mvns r3, r3 8012c3a: 401a ands r2, r3 8012c3c: 68fb ldr r3, [r7, #12] 8012c3e: 621a str r2, [r3, #32] /* Set or reset the CCxE Bit */ TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ 8012c40: 68fb ldr r3, [r7, #12] 8012c42: 6a1a ldr r2, [r3, #32] 8012c44: 68bb ldr r3, [r7, #8] 8012c46: f003 031f and.w r3, r3, #31 8012c4a: 6879 ldr r1, [r7, #4] 8012c4c: fa01 f303 lsl.w r3, r1, r3 8012c50: 431a orrs r2, r3 8012c52: 68fb ldr r3, [r7, #12] 8012c54: 621a str r2, [r3, #32] } 8012c56: bf00 nop 8012c58: 371c adds r7, #28 8012c5a: 46bd mov sp, r7 8012c5c: bc80 pop {r7} 8012c5e: 4770 bx lr 08012c60 : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { 8012c60: b480 push {r7} 8012c62: b085 sub sp, #20 8012c64: af00 add r7, sp, #0 8012c66: 6078 str r0, [r7, #4] 8012c68: 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); 8012c6a: 687b ldr r3, [r7, #4] 8012c6c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012c70: 2b01 cmp r3, #1 8012c72: d101 bne.n 8012c78 8012c74: 2302 movs r3, #2 8012c76: e04b b.n 8012d10 8012c78: 687b ldr r3, [r7, #4] 8012c7a: 2201 movs r2, #1 8012c7c: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; 8012c80: 687b ldr r3, [r7, #4] 8012c82: 2202 movs r2, #2 8012c84: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; 8012c88: 687b ldr r3, [r7, #4] 8012c8a: 681b ldr r3, [r3, #0] 8012c8c: 685b ldr r3, [r3, #4] 8012c8e: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; 8012c90: 687b ldr r3, [r7, #4] 8012c92: 681b ldr r3, [r3, #0] 8012c94: 689b ldr r3, [r3, #8] 8012c96: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; 8012c98: 68fb ldr r3, [r7, #12] 8012c9a: f023 0370 bic.w r3, r3, #112 @ 0x70 8012c9e: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; 8012ca0: 683b ldr r3, [r7, #0] 8012ca2: 681b ldr r3, [r3, #0] 8012ca4: 68fa ldr r2, [r7, #12] 8012ca6: 4313 orrs r3, r2 8012ca8: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; 8012caa: 687b ldr r3, [r7, #4] 8012cac: 681b ldr r3, [r3, #0] 8012cae: 68fa ldr r2, [r7, #12] 8012cb0: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) 8012cb2: 687b ldr r3, [r7, #4] 8012cb4: 681b ldr r3, [r3, #0] 8012cb6: 4a19 ldr r2, [pc, #100] @ (8012d1c ) 8012cb8: 4293 cmp r3, r2 8012cba: d013 beq.n 8012ce4 8012cbc: 687b ldr r3, [r7, #4] 8012cbe: 681b ldr r3, [r3, #0] 8012cc0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012cc4: d00e beq.n 8012ce4 8012cc6: 687b ldr r3, [r7, #4] 8012cc8: 681b ldr r3, [r3, #0] 8012cca: 4a15 ldr r2, [pc, #84] @ (8012d20 ) 8012ccc: 4293 cmp r3, r2 8012cce: d009 beq.n 8012ce4 8012cd0: 687b ldr r3, [r7, #4] 8012cd2: 681b ldr r3, [r3, #0] 8012cd4: 4a13 ldr r2, [pc, #76] @ (8012d24 ) 8012cd6: 4293 cmp r3, r2 8012cd8: d004 beq.n 8012ce4 8012cda: 687b ldr r3, [r7, #4] 8012cdc: 681b ldr r3, [r3, #0] 8012cde: 4a12 ldr r2, [pc, #72] @ (8012d28 ) 8012ce0: 4293 cmp r3, r2 8012ce2: d10c bne.n 8012cfe { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; 8012ce4: 68bb ldr r3, [r7, #8] 8012ce6: f023 0380 bic.w r3, r3, #128 @ 0x80 8012cea: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; 8012cec: 683b ldr r3, [r7, #0] 8012cee: 685b ldr r3, [r3, #4] 8012cf0: 68ba ldr r2, [r7, #8] 8012cf2: 4313 orrs r3, r2 8012cf4: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 8012cf6: 687b ldr r3, [r7, #4] 8012cf8: 681b ldr r3, [r3, #0] 8012cfa: 68ba ldr r2, [r7, #8] 8012cfc: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; 8012cfe: 687b ldr r3, [r7, #4] 8012d00: 2201 movs r2, #1 8012d02: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); 8012d06: 687b ldr r3, [r7, #4] 8012d08: 2200 movs r2, #0 8012d0a: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; 8012d0e: 2300 movs r3, #0 } 8012d10: 4618 mov r0, r3 8012d12: 3714 adds r7, #20 8012d14: 46bd mov sp, r7 8012d16: bc80 pop {r7} 8012d18: 4770 bx lr 8012d1a: bf00 nop 8012d1c: 40012c00 .word 0x40012c00 8012d20: 40000400 .word 0x40000400 8012d24: 40000800 .word 0x40000800 8012d28: 40000c00 .word 0x40000c00 08012d2c : * @brief Commutation callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { 8012d2c: b480 push {r7} 8012d2e: b083 sub sp, #12 8012d30: af00 add r7, sp, #0 8012d32: 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 */ } 8012d34: bf00 nop 8012d36: 370c adds r7, #12 8012d38: 46bd mov sp, r7 8012d3a: bc80 pop {r7} 8012d3c: 4770 bx lr 08012d3e : * @brief Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { 8012d3e: b480 push {r7} 8012d40: b083 sub sp, #12 8012d42: af00 add r7, sp, #0 8012d44: 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 */ } 8012d46: bf00 nop 8012d48: 370c adds r7, #12 8012d4a: 46bd mov sp, r7 8012d4c: bc80 pop {r7} 8012d4e: 4770 bx lr 08012d50 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { 8012d50: b580 push {r7, lr} 8012d52: b082 sub sp, #8 8012d54: af00 add r7, sp, #0 8012d56: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) 8012d58: 687b ldr r3, [r7, #4] 8012d5a: 2b00 cmp r3, #0 8012d5c: d101 bne.n 8012d62 { return HAL_ERROR; 8012d5e: 2301 movs r3, #1 8012d60: e042 b.n 8012de8 assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); #if defined(USART_CR1_OVER8) assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); #endif /* USART_CR1_OVER8 */ if (huart->gState == HAL_UART_STATE_RESET) 8012d62: 687b ldr r3, [r7, #4] 8012d64: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8012d68: b2db uxtb r3, r3 8012d6a: 2b00 cmp r3, #0 8012d6c: d106 bne.n 8012d7c { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; 8012d6e: 687b ldr r3, [r7, #4] 8012d70: 2200 movs r2, #0 8012d72: f883 2040 strb.w r2, [r3, #64] @ 0x40 /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); 8012d76: 6878 ldr r0, [r7, #4] 8012d78: f7fa ff28 bl 800dbcc #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; 8012d7c: 687b ldr r3, [r7, #4] 8012d7e: 2224 movs r2, #36 @ 0x24 8012d80: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); 8012d84: 687b ldr r3, [r7, #4] 8012d86: 681b ldr r3, [r3, #0] 8012d88: 68da ldr r2, [r3, #12] 8012d8a: 687b ldr r3, [r7, #4] 8012d8c: 681b ldr r3, [r3, #0] 8012d8e: f422 5200 bic.w r2, r2, #8192 @ 0x2000 8012d92: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); 8012d94: 6878 ldr r0, [r7, #4] 8012d96: f000 fee7 bl 8013b68 /* In asynchronous mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); 8012d9a: 687b ldr r3, [r7, #4] 8012d9c: 681b ldr r3, [r3, #0] 8012d9e: 691a ldr r2, [r3, #16] 8012da0: 687b ldr r3, [r7, #4] 8012da2: 681b ldr r3, [r3, #0] 8012da4: f422 4290 bic.w r2, r2, #18432 @ 0x4800 8012da8: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); 8012daa: 687b ldr r3, [r7, #4] 8012dac: 681b ldr r3, [r3, #0] 8012dae: 695a ldr r2, [r3, #20] 8012db0: 687b ldr r3, [r7, #4] 8012db2: 681b ldr r3, [r3, #0] 8012db4: f022 022a bic.w r2, r2, #42 @ 0x2a 8012db8: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); 8012dba: 687b ldr r3, [r7, #4] 8012dbc: 681b ldr r3, [r3, #0] 8012dbe: 68da ldr r2, [r3, #12] 8012dc0: 687b ldr r3, [r7, #4] 8012dc2: 681b ldr r3, [r3, #0] 8012dc4: f442 5200 orr.w r2, r2, #8192 @ 0x2000 8012dc8: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8012dca: 687b ldr r3, [r7, #4] 8012dcc: 2200 movs r2, #0 8012dce: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; 8012dd0: 687b ldr r3, [r7, #4] 8012dd2: 2220 movs r2, #32 8012dd4: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 8012dd8: 687b ldr r3, [r7, #4] 8012dda: 2220 movs r2, #32 8012ddc: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012de0: 687b ldr r3, [r7, #4] 8012de2: 2200 movs r2, #0 8012de4: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; 8012de6: 2300 movs r3, #0 } 8012de8: 4618 mov r0, r3 8012dea: 3708 adds r7, #8 8012dec: 46bd mov sp, r7 8012dee: bd80 pop {r7, pc} 08012df0 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart) { 8012df0: b580 push {r7, lr} 8012df2: b082 sub sp, #8 8012df4: af00 add r7, sp, #0 8012df6: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) 8012df8: 687b ldr r3, [r7, #4] 8012dfa: 2b00 cmp r3, #0 8012dfc: d101 bne.n 8012e02 { return HAL_ERROR; 8012dfe: 2301 movs r3, #1 8012e00: e024 b.n 8012e4c } /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); huart->gState = HAL_UART_STATE_BUSY; 8012e02: 687b ldr r3, [r7, #4] 8012e04: 2224 movs r2, #36 @ 0x24 8012e06: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the Peripheral */ __HAL_UART_DISABLE(huart); 8012e0a: 687b ldr r3, [r7, #4] 8012e0c: 681b ldr r3, [r3, #0] 8012e0e: 68da ldr r2, [r3, #12] 8012e10: 687b ldr r3, [r7, #4] 8012e12: 681b ldr r3, [r3, #0] 8012e14: f422 5200 bic.w r2, r2, #8192 @ 0x2000 8012e18: 60da str r2, [r3, #12] } /* DeInit the low level hardware */ huart->MspDeInitCallback(huart); #else /* DeInit the low level hardware */ HAL_UART_MspDeInit(huart); 8012e1a: 6878 ldr r0, [r7, #4] 8012e1c: f7fb f820 bl 800de60 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8012e20: 687b ldr r3, [r7, #4] 8012e22: 2200 movs r2, #0 8012e24: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_RESET; 8012e26: 687b ldr r3, [r7, #4] 8012e28: 2200 movs r2, #0 8012e2a: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_RESET; 8012e2e: 687b ldr r3, [r7, #4] 8012e30: 2200 movs r2, #0 8012e32: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8012e36: 687b ldr r3, [r7, #4] 8012e38: 2200 movs r2, #0 8012e3a: 631a str r2, [r3, #48] @ 0x30 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012e3c: 687b ldr r3, [r7, #4] 8012e3e: 2200 movs r2, #0 8012e40: 635a str r2, [r3, #52] @ 0x34 /* Process Unlock */ __HAL_UNLOCK(huart); 8012e42: 687b ldr r3, [r7, #4] 8012e44: 2200 movs r2, #0 8012e46: f883 2040 strb.w r2, [r3, #64] @ 0x40 return HAL_OK; 8012e4a: 2300 movs r3, #0 } 8012e4c: 4618 mov r0, r3 8012e4e: 3708 adds r7, #8 8012e50: 46bd mov sp, r7 8012e52: bd80 pop {r7, pc} 08012e54 : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size) { 8012e54: b480 push {r7} 8012e56: b085 sub sp, #20 8012e58: af00 add r7, sp, #0 8012e5a: 60f8 str r0, [r7, #12] 8012e5c: 60b9 str r1, [r7, #8] 8012e5e: 4613 mov r3, r2 8012e60: 80fb strh r3, [r7, #6] /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) 8012e62: 68fb ldr r3, [r7, #12] 8012e64: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8012e68: b2db uxtb r3, r3 8012e6a: 2b20 cmp r3, #32 8012e6c: d121 bne.n 8012eb2 { if ((pData == NULL) || (Size == 0U)) 8012e6e: 68bb ldr r3, [r7, #8] 8012e70: 2b00 cmp r3, #0 8012e72: d002 beq.n 8012e7a 8012e74: 88fb ldrh r3, [r7, #6] 8012e76: 2b00 cmp r3, #0 8012e78: d101 bne.n 8012e7e { return HAL_ERROR; 8012e7a: 2301 movs r3, #1 8012e7c: e01a b.n 8012eb4 } huart->pTxBuffPtr = pData; 8012e7e: 68fb ldr r3, [r7, #12] 8012e80: 68ba ldr r2, [r7, #8] 8012e82: 621a str r2, [r3, #32] huart->TxXferSize = Size; 8012e84: 68fb ldr r3, [r7, #12] 8012e86: 88fa ldrh r2, [r7, #6] 8012e88: 849a strh r2, [r3, #36] @ 0x24 huart->TxXferCount = Size; 8012e8a: 68fb ldr r3, [r7, #12] 8012e8c: 88fa ldrh r2, [r7, #6] 8012e8e: 84da strh r2, [r3, #38] @ 0x26 huart->ErrorCode = HAL_UART_ERROR_NONE; 8012e90: 68fb ldr r3, [r7, #12] 8012e92: 2200 movs r2, #0 8012e94: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_BUSY_TX; 8012e96: 68fb ldr r3, [r7, #12] 8012e98: 2221 movs r2, #33 @ 0x21 8012e9a: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the UART Transmit data register empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TXE); 8012e9e: 68fb ldr r3, [r7, #12] 8012ea0: 681b ldr r3, [r3, #0] 8012ea2: 68da ldr r2, [r3, #12] 8012ea4: 68fb ldr r3, [r7, #12] 8012ea6: 681b ldr r3, [r3, #0] 8012ea8: f042 0280 orr.w r2, r2, #128 @ 0x80 8012eac: 60da str r2, [r3, #12] return HAL_OK; 8012eae: 2300 movs r3, #0 8012eb0: e000 b.n 8012eb4 } else { return HAL_BUSY; 8012eb2: 2302 movs r3, #2 } } 8012eb4: 4618 mov r0, r3 8012eb6: 3714 adds r7, #20 8012eb8: 46bd mov sp, r7 8012eba: bc80 pop {r7} 8012ebc: 4770 bx lr 08012ebe : * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). * @param Size Amount of data elements (uint8_t or uint16_t) to be received. * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { 8012ebe: b580 push {r7, lr} 8012ec0: b08c sub sp, #48 @ 0x30 8012ec2: af00 add r7, sp, #0 8012ec4: 60f8 str r0, [r7, #12] 8012ec6: 60b9 str r1, [r7, #8] 8012ec8: 4613 mov r3, r2 8012eca: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) 8012ecc: 68fb ldr r3, [r7, #12] 8012ece: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 8012ed2: b2db uxtb r3, r3 8012ed4: 2b20 cmp r3, #32 8012ed6: d14a bne.n 8012f6e { if ((pData == NULL) || (Size == 0U)) 8012ed8: 68bb ldr r3, [r7, #8] 8012eda: 2b00 cmp r3, #0 8012edc: d002 beq.n 8012ee4 8012ede: 88fb ldrh r3, [r7, #6] 8012ee0: 2b00 cmp r3, #0 8012ee2: d101 bne.n 8012ee8 { return HAL_ERROR; 8012ee4: 2301 movs r3, #1 8012ee6: e043 b.n 8012f70 } /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; 8012ee8: 68fb ldr r3, [r7, #12] 8012eea: 2201 movs r2, #1 8012eec: 631a str r2, [r3, #48] @ 0x30 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012eee: 68fb ldr r3, [r7, #12] 8012ef0: 2200 movs r2, #0 8012ef2: 635a str r2, [r3, #52] @ 0x34 status = UART_Start_Receive_IT(huart, pData, Size); 8012ef4: 88fb ldrh r3, [r7, #6] 8012ef6: 461a mov r2, r3 8012ef8: 68b9 ldr r1, [r7, #8] 8012efa: 68f8 ldr r0, [r7, #12] 8012efc: f000 fbff bl 80136fe 8012f00: 4603 mov r3, r0 8012f02: f887 302f strb.w r3, [r7, #47] @ 0x2f /* Check Rx process has been successfully started */ if (status == HAL_OK) 8012f06: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 8012f0a: 2b00 cmp r3, #0 8012f0c: d12c bne.n 8012f68 { if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8012f0e: 68fb ldr r3, [r7, #12] 8012f10: 6b1b ldr r3, [r3, #48] @ 0x30 8012f12: 2b01 cmp r3, #1 8012f14: d125 bne.n 8012f62 { __HAL_UART_CLEAR_IDLEFLAG(huart); 8012f16: 2300 movs r3, #0 8012f18: 613b str r3, [r7, #16] 8012f1a: 68fb ldr r3, [r7, #12] 8012f1c: 681b ldr r3, [r3, #0] 8012f1e: 681b ldr r3, [r3, #0] 8012f20: 613b str r3, [r7, #16] 8012f22: 68fb ldr r3, [r7, #12] 8012f24: 681b ldr r3, [r3, #0] 8012f26: 685b ldr r3, [r3, #4] 8012f28: 613b str r3, [r7, #16] 8012f2a: 693b ldr r3, [r7, #16] ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8012f2c: 68fb ldr r3, [r7, #12] 8012f2e: 681b ldr r3, [r3, #0] 8012f30: 330c adds r3, #12 8012f32: 61bb str r3, [r7, #24] */ __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) { uint32_t result; __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012f34: 69bb ldr r3, [r7, #24] 8012f36: e853 3f00 ldrex r3, [r3] 8012f3a: 617b str r3, [r7, #20] return(result); 8012f3c: 697b ldr r3, [r7, #20] 8012f3e: f043 0310 orr.w r3, r3, #16 8012f42: 62bb str r3, [r7, #40] @ 0x28 8012f44: 68fb ldr r3, [r7, #12] 8012f46: 681b ldr r3, [r3, #0] 8012f48: 330c adds r3, #12 8012f4a: 6aba ldr r2, [r7, #40] @ 0x28 8012f4c: 627a str r2, [r7, #36] @ 0x24 8012f4e: 623b str r3, [r7, #32] */ __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) { uint32_t result; __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012f50: 6a39 ldr r1, [r7, #32] 8012f52: 6a7a ldr r2, [r7, #36] @ 0x24 8012f54: e841 2300 strex r3, r2, [r1] 8012f58: 61fb str r3, [r7, #28] return(result); 8012f5a: 69fb ldr r3, [r7, #28] 8012f5c: 2b00 cmp r3, #0 8012f5e: d1e5 bne.n 8012f2c 8012f60: e002 b.n 8012f68 { /* In case of errors already pending when reception is started, Interrupts may have already been raised and lead to reception abortion. (Overrun error for instance). In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */ status = HAL_ERROR; 8012f62: 2301 movs r3, #1 8012f64: f887 302f strb.w r3, [r7, #47] @ 0x2f } } return status; 8012f68: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 8012f6c: e000 b.n 8012f70 } else { return HAL_BUSY; 8012f6e: 2302 movs r3, #2 } } 8012f70: 4618 mov r0, r3 8012f72: 3730 adds r7, #48 @ 0x30 8012f74: 46bd mov sp, r7 8012f76: bd80 pop {r7, pc} 08012f78 : * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be * considered as completed only when user abort complete callback is executed (not when exiting function). * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Abort_IT(UART_HandleTypeDef *huart) { 8012f78: b580 push {r7, lr} 8012f7a: b0a2 sub sp, #136 @ 0x88 8012f7c: af00 add r7, sp, #0 8012f7e: 6078 str r0, [r7, #4] uint32_t AbortCplt = 0x01U; 8012f80: 2301 movs r3, #1 8012f82: f8c7 3084 str.w r3, [r7, #132] @ 0x84 /* Disable TXEIE, TCIE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_TCIE)); 8012f86: 687b ldr r3, [r7, #4] 8012f88: 681b ldr r3, [r3, #0] 8012f8a: 330c adds r3, #12 8012f8c: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012f8e: 6e3b ldr r3, [r7, #96] @ 0x60 8012f90: e853 3f00 ldrex r3, [r3] 8012f94: 65fb str r3, [r7, #92] @ 0x5c return(result); 8012f96: 6dfb ldr r3, [r7, #92] @ 0x5c 8012f98: f423 73f0 bic.w r3, r3, #480 @ 0x1e0 8012f9c: f8c7 3080 str.w r3, [r7, #128] @ 0x80 8012fa0: 687b ldr r3, [r7, #4] 8012fa2: 681b ldr r3, [r3, #0] 8012fa4: 330c adds r3, #12 8012fa6: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 8012faa: 66fa str r2, [r7, #108] @ 0x6c 8012fac: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012fae: 6eb9 ldr r1, [r7, #104] @ 0x68 8012fb0: 6efa ldr r2, [r7, #108] @ 0x6c 8012fb2: e841 2300 strex r3, r2, [r1] 8012fb6: 667b str r3, [r7, #100] @ 0x64 return(result); 8012fb8: 6e7b ldr r3, [r7, #100] @ 0x64 8012fba: 2b00 cmp r3, #0 8012fbc: d1e3 bne.n 8012f86 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8012fbe: 687b ldr r3, [r7, #4] 8012fc0: 681b ldr r3, [r3, #0] 8012fc2: 3314 adds r3, #20 8012fc4: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012fc6: 6cfb ldr r3, [r7, #76] @ 0x4c 8012fc8: e853 3f00 ldrex r3, [r3] 8012fcc: 64bb str r3, [r7, #72] @ 0x48 return(result); 8012fce: 6cbb ldr r3, [r7, #72] @ 0x48 8012fd0: f023 0301 bic.w r3, r3, #1 8012fd4: 67fb str r3, [r7, #124] @ 0x7c 8012fd6: 687b ldr r3, [r7, #4] 8012fd8: 681b ldr r3, [r3, #0] 8012fda: 3314 adds r3, #20 8012fdc: 6ffa ldr r2, [r7, #124] @ 0x7c 8012fde: 65ba str r2, [r7, #88] @ 0x58 8012fe0: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012fe2: 6d79 ldr r1, [r7, #84] @ 0x54 8012fe4: 6dba ldr r2, [r7, #88] @ 0x58 8012fe6: e841 2300 strex r3, r2, [r1] 8012fea: 653b str r3, [r7, #80] @ 0x50 return(result); 8012fec: 6d3b ldr r3, [r7, #80] @ 0x50 8012fee: 2b00 cmp r3, #0 8012ff0: d1e5 bne.n 8012fbe /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8012ff2: 687b ldr r3, [r7, #4] 8012ff4: 6b1b ldr r3, [r3, #48] @ 0x30 8012ff6: 2b01 cmp r3, #1 8012ff8: d119 bne.n 801302e { ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); 8012ffa: 687b ldr r3, [r7, #4] 8012ffc: 681b ldr r3, [r3, #0] 8012ffe: 330c adds r3, #12 8013000: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013002: 6bbb ldr r3, [r7, #56] @ 0x38 8013004: e853 3f00 ldrex r3, [r3] 8013008: 637b str r3, [r7, #52] @ 0x34 return(result); 801300a: 6b7b ldr r3, [r7, #52] @ 0x34 801300c: f023 0310 bic.w r3, r3, #16 8013010: 67bb str r3, [r7, #120] @ 0x78 8013012: 687b ldr r3, [r7, #4] 8013014: 681b ldr r3, [r3, #0] 8013016: 330c adds r3, #12 8013018: 6fba ldr r2, [r7, #120] @ 0x78 801301a: 647a str r2, [r7, #68] @ 0x44 801301c: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801301e: 6c39 ldr r1, [r7, #64] @ 0x40 8013020: 6c7a ldr r2, [r7, #68] @ 0x44 8013022: e841 2300 strex r3, r2, [r1] 8013026: 63fb str r3, [r7, #60] @ 0x3c return(result); 8013028: 6bfb ldr r3, [r7, #60] @ 0x3c 801302a: 2b00 cmp r3, #0 801302c: d1e5 bne.n 8012ffa } /* If DMA Tx and/or DMA Rx Handles are associated to UART Handle, DMA Abort complete callbacks should be initialised before any call to DMA Abort functions */ /* DMA Tx Handle is valid */ if (huart->hdmatx != NULL) 801302e: 687b ldr r3, [r7, #4] 8013030: 6b9b ldr r3, [r3, #56] @ 0x38 8013032: 2b00 cmp r3, #0 8013034: d00f beq.n 8013056 { /* Set DMA Abort Complete callback if UART DMA Tx request if enabled. Otherwise, set it to NULL */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) 8013036: 687b ldr r3, [r7, #4] 8013038: 681b ldr r3, [r3, #0] 801303a: 695b ldr r3, [r3, #20] 801303c: f003 0380 and.w r3, r3, #128 @ 0x80 8013040: 2b00 cmp r3, #0 8013042: d004 beq.n 801304e { huart->hdmatx->XferAbortCallback = UART_DMATxAbortCallback; 8013044: 687b ldr r3, [r7, #4] 8013046: 6b9b ldr r3, [r3, #56] @ 0x38 8013048: 4a53 ldr r2, [pc, #332] @ (8013198 ) 801304a: 635a str r2, [r3, #52] @ 0x34 801304c: e003 b.n 8013056 } else { huart->hdmatx->XferAbortCallback = NULL; 801304e: 687b ldr r3, [r7, #4] 8013050: 6b9b ldr r3, [r3, #56] @ 0x38 8013052: 2200 movs r2, #0 8013054: 635a str r2, [r3, #52] @ 0x34 } } /* DMA Rx Handle is valid */ if (huart->hdmarx != NULL) 8013056: 687b ldr r3, [r7, #4] 8013058: 6bdb ldr r3, [r3, #60] @ 0x3c 801305a: 2b00 cmp r3, #0 801305c: d00f beq.n 801307e { /* Set DMA Abort Complete callback if UART DMA Rx request if enabled. Otherwise, set it to NULL */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 801305e: 687b ldr r3, [r7, #4] 8013060: 681b ldr r3, [r3, #0] 8013062: 695b ldr r3, [r3, #20] 8013064: f003 0340 and.w r3, r3, #64 @ 0x40 8013068: 2b00 cmp r3, #0 801306a: d004 beq.n 8013076 { huart->hdmarx->XferAbortCallback = UART_DMARxAbortCallback; 801306c: 687b ldr r3, [r7, #4] 801306e: 6bdb ldr r3, [r3, #60] @ 0x3c 8013070: 4a4a ldr r2, [pc, #296] @ (801319c ) 8013072: 635a str r2, [r3, #52] @ 0x34 8013074: e003 b.n 801307e } else { huart->hdmarx->XferAbortCallback = NULL; 8013076: 687b ldr r3, [r7, #4] 8013078: 6bdb ldr r3, [r3, #60] @ 0x3c 801307a: 2200 movs r2, #0 801307c: 635a str r2, [r3, #52] @ 0x34 } } /* Disable the UART DMA Tx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) 801307e: 687b ldr r3, [r7, #4] 8013080: 681b ldr r3, [r3, #0] 8013082: 695b ldr r3, [r3, #20] 8013084: f003 0380 and.w r3, r3, #128 @ 0x80 8013088: 2b00 cmp r3, #0 801308a: d02d beq.n 80130e8 { /* Disable DMA Tx at UART level */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); 801308c: 687b ldr r3, [r7, #4] 801308e: 681b ldr r3, [r3, #0] 8013090: 3314 adds r3, #20 8013092: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013094: 6a7b ldr r3, [r7, #36] @ 0x24 8013096: e853 3f00 ldrex r3, [r3] 801309a: 623b str r3, [r7, #32] return(result); 801309c: 6a3b ldr r3, [r7, #32] 801309e: f023 0380 bic.w r3, r3, #128 @ 0x80 80130a2: 677b str r3, [r7, #116] @ 0x74 80130a4: 687b ldr r3, [r7, #4] 80130a6: 681b ldr r3, [r3, #0] 80130a8: 3314 adds r3, #20 80130aa: 6f7a ldr r2, [r7, #116] @ 0x74 80130ac: 633a str r2, [r7, #48] @ 0x30 80130ae: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80130b0: 6af9 ldr r1, [r7, #44] @ 0x2c 80130b2: 6b3a ldr r2, [r7, #48] @ 0x30 80130b4: e841 2300 strex r3, r2, [r1] 80130b8: 62bb str r3, [r7, #40] @ 0x28 return(result); 80130ba: 6abb ldr r3, [r7, #40] @ 0x28 80130bc: 2b00 cmp r3, #0 80130be: d1e5 bne.n 801308c /* Abort the UART DMA Tx channel : use non blocking DMA Abort API (callback) */ if (huart->hdmatx != NULL) 80130c0: 687b ldr r3, [r7, #4] 80130c2: 6b9b ldr r3, [r3, #56] @ 0x38 80130c4: 2b00 cmp r3, #0 80130c6: d00f beq.n 80130e8 { /* UART Tx DMA Abort callback has already been initialised : will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ /* Abort DMA TX */ if (HAL_DMA_Abort_IT(huart->hdmatx) != HAL_OK) 80130c8: 687b ldr r3, [r7, #4] 80130ca: 6b9b ldr r3, [r3, #56] @ 0x38 80130cc: 4618 mov r0, r3 80130ce: f7fc fe61 bl 800fd94 80130d2: 4603 mov r3, r0 80130d4: 2b00 cmp r3, #0 80130d6: d004 beq.n 80130e2 { huart->hdmatx->XferAbortCallback = NULL; 80130d8: 687b ldr r3, [r7, #4] 80130da: 6b9b ldr r3, [r3, #56] @ 0x38 80130dc: 2200 movs r2, #0 80130de: 635a str r2, [r3, #52] @ 0x34 80130e0: e002 b.n 80130e8 } else { AbortCplt = 0x00U; 80130e2: 2300 movs r3, #0 80130e4: f8c7 3084 str.w r3, [r7, #132] @ 0x84 } } } /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80130e8: 687b ldr r3, [r7, #4] 80130ea: 681b ldr r3, [r3, #0] 80130ec: 695b ldr r3, [r3, #20] 80130ee: f003 0340 and.w r3, r3, #64 @ 0x40 80130f2: 2b00 cmp r3, #0 80130f4: d030 beq.n 8013158 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 80130f6: 687b ldr r3, [r7, #4] 80130f8: 681b ldr r3, [r3, #0] 80130fa: 3314 adds r3, #20 80130fc: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80130fe: 693b ldr r3, [r7, #16] 8013100: e853 3f00 ldrex r3, [r3] 8013104: 60fb str r3, [r7, #12] return(result); 8013106: 68fb ldr r3, [r7, #12] 8013108: f023 0340 bic.w r3, r3, #64 @ 0x40 801310c: 673b str r3, [r7, #112] @ 0x70 801310e: 687b ldr r3, [r7, #4] 8013110: 681b ldr r3, [r3, #0] 8013112: 3314 adds r3, #20 8013114: 6f3a ldr r2, [r7, #112] @ 0x70 8013116: 61fa str r2, [r7, #28] 8013118: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801311a: 69b9 ldr r1, [r7, #24] 801311c: 69fa ldr r2, [r7, #28] 801311e: e841 2300 strex r3, r2, [r1] 8013122: 617b str r3, [r7, #20] return(result); 8013124: 697b ldr r3, [r7, #20] 8013126: 2b00 cmp r3, #0 8013128: d1e5 bne.n 80130f6 /* Abort the UART DMA Rx channel : use non blocking DMA Abort API (callback) */ if (huart->hdmarx != NULL) 801312a: 687b ldr r3, [r7, #4] 801312c: 6bdb ldr r3, [r3, #60] @ 0x3c 801312e: 2b00 cmp r3, #0 8013130: d012 beq.n 8013158 { /* UART Rx DMA Abort callback has already been initialised : will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ /* Abort DMA RX */ if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) 8013132: 687b ldr r3, [r7, #4] 8013134: 6bdb ldr r3, [r3, #60] @ 0x3c 8013136: 4618 mov r0, r3 8013138: f7fc fe2c bl 800fd94 801313c: 4603 mov r3, r0 801313e: 2b00 cmp r3, #0 8013140: d007 beq.n 8013152 { huart->hdmarx->XferAbortCallback = NULL; 8013142: 687b ldr r3, [r7, #4] 8013144: 6bdb ldr r3, [r3, #60] @ 0x3c 8013146: 2200 movs r2, #0 8013148: 635a str r2, [r3, #52] @ 0x34 AbortCplt = 0x01U; 801314a: 2301 movs r3, #1 801314c: f8c7 3084 str.w r3, [r7, #132] @ 0x84 8013150: e002 b.n 8013158 } else { AbortCplt = 0x00U; 8013152: 2300 movs r3, #0 8013154: f8c7 3084 str.w r3, [r7, #132] @ 0x84 } } } /* if no DMA abort complete callback execution is required => call user Abort Complete callback */ if (AbortCplt == 0x01U) 8013158: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 801315c: 2b01 cmp r3, #1 801315e: d116 bne.n 801318e { /* Reset Tx and Rx transfer counters */ huart->TxXferCount = 0x00U; 8013160: 687b ldr r3, [r7, #4] 8013162: 2200 movs r2, #0 8013164: 84da strh r2, [r3, #38] @ 0x26 huart->RxXferCount = 0x00U; 8013166: 687b ldr r3, [r7, #4] 8013168: 2200 movs r2, #0 801316a: 85da strh r2, [r3, #46] @ 0x2e /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; 801316c: 687b ldr r3, [r7, #4] 801316e: 2200 movs r2, #0 8013170: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; 8013172: 687b ldr r3, [r7, #4] 8013174: 2220 movs r2, #32 8013176: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 801317a: 687b ldr r3, [r7, #4] 801317c: 2220 movs r2, #32 801317e: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013182: 687b ldr r3, [r7, #4] 8013184: 2200 movs r2, #0 8013186: 631a str r2, [r3, #48] @ 0x30 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort complete callback */ huart->AbortCpltCallback(huart); #else /* Call legacy weak Abort complete callback */ HAL_UART_AbortCpltCallback(huart); 8013188: 6878 ldr r0, [r7, #4] 801318a: f000 faa4 bl 80136d6 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; 801318e: 2300 movs r3, #0 } 8013190: 4618 mov r0, r3 8013192: 3788 adds r7, #136 @ 0x88 8013194: 46bd mov sp, r7 8013196: bd80 pop {r7, pc} 8013198: 0801385d .word 0x0801385d 801319c: 080138bd .word 0x080138bd 080131a0 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { 80131a0: b580 push {r7, lr} 80131a2: b0ba sub sp, #232 @ 0xe8 80131a4: af00 add r7, sp, #0 80131a6: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); 80131a8: 687b ldr r3, [r7, #4] 80131aa: 681b ldr r3, [r3, #0] 80131ac: 681b ldr r3, [r3, #0] 80131ae: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); 80131b2: 687b ldr r3, [r7, #4] 80131b4: 681b ldr r3, [r3, #0] 80131b6: 68db ldr r3, [r3, #12] 80131b8: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); 80131bc: 687b ldr r3, [r7, #4] 80131be: 681b ldr r3, [r3, #0] 80131c0: 695b ldr r3, [r3, #20] 80131c2: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags = 0x00U; 80131c6: 2300 movs r3, #0 80131c8: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 uint32_t dmarequest = 0x00U; 80131cc: 2300 movs r3, #0 80131ce: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 /* If no error occurs */ errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE)); 80131d2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 80131d6: f003 030f and.w r3, r3, #15 80131da: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == RESET) 80131de: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 80131e2: 2b00 cmp r3, #0 80131e4: d10f bne.n 8013206 { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) 80131e6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 80131ea: f003 0320 and.w r3, r3, #32 80131ee: 2b00 cmp r3, #0 80131f0: d009 beq.n 8013206 80131f2: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80131f6: f003 0320 and.w r3, r3, #32 80131fa: 2b00 cmp r3, #0 80131fc: d003 beq.n 8013206 { UART_Receive_IT(huart); 80131fe: 6878 ldr r0, [r7, #4] 8013200: f000 fbf3 bl 80139ea return; 8013204: e25b b.n 80136be } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) 8013206: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 801320a: 2b00 cmp r3, #0 801320c: f000 80de beq.w 80133cc 8013210: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8013214: f003 0301 and.w r3, r3, #1 8013218: 2b00 cmp r3, #0 801321a: d106 bne.n 801322a || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) 801321c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8013220: f403 7390 and.w r3, r3, #288 @ 0x120 8013224: 2b00 cmp r3, #0 8013226: f000 80d1 beq.w 80133cc { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) 801322a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801322e: f003 0301 and.w r3, r3, #1 8013232: 2b00 cmp r3, #0 8013234: d00b beq.n 801324e 8013236: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 801323a: f403 7380 and.w r3, r3, #256 @ 0x100 801323e: 2b00 cmp r3, #0 8013240: d005 beq.n 801324e { huart->ErrorCode |= HAL_UART_ERROR_PE; 8013242: 687b ldr r3, [r7, #4] 8013244: 6c5b ldr r3, [r3, #68] @ 0x44 8013246: f043 0201 orr.w r2, r3, #1 801324a: 687b ldr r3, [r7, #4] 801324c: 645a str r2, [r3, #68] @ 0x44 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) 801324e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013252: f003 0304 and.w r3, r3, #4 8013256: 2b00 cmp r3, #0 8013258: d00b beq.n 8013272 801325a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 801325e: f003 0301 and.w r3, r3, #1 8013262: 2b00 cmp r3, #0 8013264: d005 beq.n 8013272 { huart->ErrorCode |= HAL_UART_ERROR_NE; 8013266: 687b ldr r3, [r7, #4] 8013268: 6c5b ldr r3, [r3, #68] @ 0x44 801326a: f043 0202 orr.w r2, r3, #2 801326e: 687b ldr r3, [r7, #4] 8013270: 645a str r2, [r3, #68] @ 0x44 } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) 8013272: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013276: f003 0302 and.w r3, r3, #2 801327a: 2b00 cmp r3, #0 801327c: d00b beq.n 8013296 801327e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8013282: f003 0301 and.w r3, r3, #1 8013286: 2b00 cmp r3, #0 8013288: d005 beq.n 8013296 { huart->ErrorCode |= HAL_UART_ERROR_FE; 801328a: 687b ldr r3, [r7, #4] 801328c: 6c5b ldr r3, [r3, #68] @ 0x44 801328e: f043 0204 orr.w r2, r3, #4 8013292: 687b ldr r3, [r7, #4] 8013294: 645a str r2, [r3, #68] @ 0x44 } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) 8013296: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801329a: f003 0308 and.w r3, r3, #8 801329e: 2b00 cmp r3, #0 80132a0: d011 beq.n 80132c6 80132a2: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80132a6: f003 0320 and.w r3, r3, #32 80132aa: 2b00 cmp r3, #0 80132ac: d105 bne.n 80132ba || ((cr3its & USART_CR3_EIE) != RESET))) 80132ae: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 80132b2: f003 0301 and.w r3, r3, #1 80132b6: 2b00 cmp r3, #0 80132b8: d005 beq.n 80132c6 { huart->ErrorCode |= HAL_UART_ERROR_ORE; 80132ba: 687b ldr r3, [r7, #4] 80132bc: 6c5b ldr r3, [r3, #68] @ 0x44 80132be: f043 0208 orr.w r2, r3, #8 80132c2: 687b ldr r3, [r7, #4] 80132c4: 645a str r2, [r3, #68] @ 0x44 } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) 80132c6: 687b ldr r3, [r7, #4] 80132c8: 6c5b ldr r3, [r3, #68] @ 0x44 80132ca: 2b00 cmp r3, #0 80132cc: f000 81f2 beq.w 80136b4 { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) 80132d0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 80132d4: f003 0320 and.w r3, r3, #32 80132d8: 2b00 cmp r3, #0 80132da: d008 beq.n 80132ee 80132dc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80132e0: f003 0320 and.w r3, r3, #32 80132e4: 2b00 cmp r3, #0 80132e6: d002 beq.n 80132ee { UART_Receive_IT(huart); 80132e8: 6878 ldr r0, [r7, #4] 80132ea: f000 fb7e bl 80139ea } /* If Overrun error occurs, or if any error occurs in DMA mode reception, consider error as blocking */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); 80132ee: 687b ldr r3, [r7, #4] 80132f0: 681b ldr r3, [r3, #0] 80132f2: 695b ldr r3, [r3, #20] 80132f4: f003 0340 and.w r3, r3, #64 @ 0x40 80132f8: 2b00 cmp r3, #0 80132fa: bf14 ite ne 80132fc: 2301 movne r3, #1 80132fe: 2300 moveq r3, #0 8013300: b2db uxtb r3, r3 8013302: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) 8013306: 687b ldr r3, [r7, #4] 8013308: 6c5b ldr r3, [r3, #68] @ 0x44 801330a: f003 0308 and.w r3, r3, #8 801330e: 2b00 cmp r3, #0 8013310: d103 bne.n 801331a 8013312: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 8013316: 2b00 cmp r3, #0 8013318: d04f beq.n 80133ba { /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts, and disable Rx DMA request, if ongoing */ UART_EndRxTransfer(huart); 801331a: 6878 ldr r0, [r7, #4] 801331c: f000 fa28 bl 8013770 /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013320: 687b ldr r3, [r7, #4] 8013322: 681b ldr r3, [r3, #0] 8013324: 695b ldr r3, [r3, #20] 8013326: f003 0340 and.w r3, r3, #64 @ 0x40 801332a: 2b00 cmp r3, #0 801332c: d041 beq.n 80133b2 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 801332e: 687b ldr r3, [r7, #4] 8013330: 681b ldr r3, [r3, #0] 8013332: 3314 adds r3, #20 8013334: f8c7 309c str.w r3, [r7, #156] @ 0x9c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013338: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c 801333c: e853 3f00 ldrex r3, [r3] 8013340: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); 8013344: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 8013348: f023 0340 bic.w r3, r3, #64 @ 0x40 801334c: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 8013350: 687b ldr r3, [r7, #4] 8013352: 681b ldr r3, [r3, #0] 8013354: 3314 adds r3, #20 8013356: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 801335a: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 801335e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013362: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 8013366: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 801336a: e841 2300 strex r3, r2, [r1] 801336e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); 8013372: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 8013376: 2b00 cmp r3, #0 8013378: d1d9 bne.n 801332e /* Abort the UART DMA Rx channel */ if (huart->hdmarx != NULL) 801337a: 687b ldr r3, [r7, #4] 801337c: 6bdb ldr r3, [r3, #60] @ 0x3c 801337e: 2b00 cmp r3, #0 8013380: d013 beq.n 80133aa { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; 8013382: 687b ldr r3, [r7, #4] 8013384: 6bdb ldr r3, [r3, #60] @ 0x3c 8013386: 4a7e ldr r2, [pc, #504] @ (8013580 ) 8013388: 635a str r2, [r3, #52] @ 0x34 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) 801338a: 687b ldr r3, [r7, #4] 801338c: 6bdb ldr r3, [r3, #60] @ 0x3c 801338e: 4618 mov r0, r3 8013390: f7fc fd00 bl 800fd94 8013394: 4603 mov r3, r0 8013396: 2b00 cmp r3, #0 8013398: d016 beq.n 80133c8 { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); 801339a: 687b ldr r3, [r7, #4] 801339c: 6bdb ldr r3, [r3, #60] @ 0x3c 801339e: 6b5b ldr r3, [r3, #52] @ 0x34 80133a0: 687a ldr r2, [r7, #4] 80133a2: 6bd2 ldr r2, [r2, #60] @ 0x3c 80133a4: 4610 mov r0, r2 80133a6: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80133a8: e00e b.n 80133c8 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 80133aa: 6878 ldr r0, [r7, #4] 80133ac: f7f8 fc38 bl 800bc20 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80133b0: e00a b.n 80133c8 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 80133b2: 6878 ldr r0, [r7, #4] 80133b4: f7f8 fc34 bl 800bc20 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80133b8: e006 b.n 80133c8 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 80133ba: 6878 ldr r0, [r7, #4] 80133bc: f7f8 fc30 bl 800bc20 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; 80133c0: 687b ldr r3, [r7, #4] 80133c2: 2200 movs r2, #0 80133c4: 645a str r2, [r3, #68] @ 0x44 } } return; 80133c6: e175 b.n 80136b4 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80133c8: bf00 nop return; 80133ca: e173 b.n 80136b4 } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 80133cc: 687b ldr r3, [r7, #4] 80133ce: 6b1b ldr r3, [r3, #48] @ 0x30 80133d0: 2b01 cmp r3, #1 80133d2: f040 814f bne.w 8013674 && ((isrflags & USART_SR_IDLE) != 0U) 80133d6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 80133da: f003 0310 and.w r3, r3, #16 80133de: 2b00 cmp r3, #0 80133e0: f000 8148 beq.w 8013674 && ((cr1its & USART_SR_IDLE) != 0U)) 80133e4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80133e8: f003 0310 and.w r3, r3, #16 80133ec: 2b00 cmp r3, #0 80133ee: f000 8141 beq.w 8013674 { __HAL_UART_CLEAR_IDLEFLAG(huart); 80133f2: 2300 movs r3, #0 80133f4: 60bb str r3, [r7, #8] 80133f6: 687b ldr r3, [r7, #4] 80133f8: 681b ldr r3, [r3, #0] 80133fa: 681b ldr r3, [r3, #0] 80133fc: 60bb str r3, [r7, #8] 80133fe: 687b ldr r3, [r7, #4] 8013400: 681b ldr r3, [r3, #0] 8013402: 685b ldr r3, [r3, #4] 8013404: 60bb str r3, [r7, #8] 8013406: 68bb ldr r3, [r7, #8] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013408: 687b ldr r3, [r7, #4] 801340a: 681b ldr r3, [r3, #0] 801340c: 695b ldr r3, [r3, #20] 801340e: f003 0340 and.w r3, r3, #64 @ 0x40 8013412: 2b00 cmp r3, #0 8013414: f000 80b6 beq.w 8013584 { /* DMA mode enabled */ /* Check received length : If all expected data are received, do nothing, (DMA cplt callback will be called). Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); 8013418: 687b ldr r3, [r7, #4] 801341a: 6bdb ldr r3, [r3, #60] @ 0x3c 801341c: 681b ldr r3, [r3, #0] 801341e: 685b ldr r3, [r3, #4] 8013420: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) 8013424: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe 8013428: 2b00 cmp r3, #0 801342a: f000 8145 beq.w 80136b8 && (nb_remaining_rx_data < huart->RxXferSize)) 801342e: 687b ldr r3, [r7, #4] 8013430: 8d9b ldrh r3, [r3, #44] @ 0x2c 8013432: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe 8013436: 429a cmp r2, r3 8013438: f080 813e bcs.w 80136b8 { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; 801343c: 687b ldr r3, [r7, #4] 801343e: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe 8013442: 85da strh r2, [r3, #46] @ 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) 8013444: 687b ldr r3, [r7, #4] 8013446: 6bdb ldr r3, [r3, #60] @ 0x3c 8013448: 699b ldr r3, [r3, #24] 801344a: 2b20 cmp r3, #32 801344c: f000 8088 beq.w 8013560 { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); 8013450: 687b ldr r3, [r7, #4] 8013452: 681b ldr r3, [r3, #0] 8013454: 330c adds r3, #12 8013456: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801345a: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 801345e: e853 3f00 ldrex r3, [r3] 8013462: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); 8013466: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 801346a: f423 7380 bic.w r3, r3, #256 @ 0x100 801346e: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 8013472: 687b ldr r3, [r7, #4] 8013474: 681b ldr r3, [r3, #0] 8013476: 330c adds r3, #12 8013478: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 801347c: f8c7 2094 str.w r2, [r7, #148] @ 0x94 8013480: f8c7 3090 str.w r3, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013484: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 8013488: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 801348c: e841 2300 strex r3, r2, [r1] 8013490: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); 8013494: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c 8013498: 2b00 cmp r3, #0 801349a: d1d9 bne.n 8013450 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 801349c: 687b ldr r3, [r7, #4] 801349e: 681b ldr r3, [r3, #0] 80134a0: 3314 adds r3, #20 80134a2: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80134a4: 6f7b ldr r3, [r7, #116] @ 0x74 80134a6: e853 3f00 ldrex r3, [r3] 80134aa: 673b str r3, [r7, #112] @ 0x70 return(result); 80134ac: 6f3b ldr r3, [r7, #112] @ 0x70 80134ae: f023 0301 bic.w r3, r3, #1 80134b2: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 80134b6: 687b ldr r3, [r7, #4] 80134b8: 681b ldr r3, [r3, #0] 80134ba: 3314 adds r3, #20 80134bc: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 80134c0: f8c7 2080 str.w r2, [r7, #128] @ 0x80 80134c4: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80134c6: 6ff9 ldr r1, [r7, #124] @ 0x7c 80134c8: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 80134cc: e841 2300 strex r3, r2, [r1] 80134d0: 67bb str r3, [r7, #120] @ 0x78 return(result); 80134d2: 6fbb ldr r3, [r7, #120] @ 0x78 80134d4: 2b00 cmp r3, #0 80134d6: d1e1 bne.n 801349c /* Disable the DMA transfer for the receiver request by resetting the DMAR bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 80134d8: 687b ldr r3, [r7, #4] 80134da: 681b ldr r3, [r3, #0] 80134dc: 3314 adds r3, #20 80134de: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80134e0: 6e3b ldr r3, [r7, #96] @ 0x60 80134e2: e853 3f00 ldrex r3, [r3] 80134e6: 65fb str r3, [r7, #92] @ 0x5c return(result); 80134e8: 6dfb ldr r3, [r7, #92] @ 0x5c 80134ea: f023 0340 bic.w r3, r3, #64 @ 0x40 80134ee: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 80134f2: 687b ldr r3, [r7, #4] 80134f4: 681b ldr r3, [r3, #0] 80134f6: 3314 adds r3, #20 80134f8: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 80134fc: 66fa str r2, [r7, #108] @ 0x6c 80134fe: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013500: 6eb9 ldr r1, [r7, #104] @ 0x68 8013502: 6efa ldr r2, [r7, #108] @ 0x6c 8013504: e841 2300 strex r3, r2, [r1] 8013508: 667b str r3, [r7, #100] @ 0x64 return(result); 801350a: 6e7b ldr r3, [r7, #100] @ 0x64 801350c: 2b00 cmp r3, #0 801350e: d1e3 bne.n 80134d8 /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 8013510: 687b ldr r3, [r7, #4] 8013512: 2220 movs r2, #32 8013514: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013518: 687b ldr r3, [r7, #4] 801351a: 2200 movs r2, #0 801351c: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 801351e: 687b ldr r3, [r7, #4] 8013520: 681b ldr r3, [r3, #0] 8013522: 330c adds r3, #12 8013524: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013526: 6cfb ldr r3, [r7, #76] @ 0x4c 8013528: e853 3f00 ldrex r3, [r3] 801352c: 64bb str r3, [r7, #72] @ 0x48 return(result); 801352e: 6cbb ldr r3, [r7, #72] @ 0x48 8013530: f023 0310 bic.w r3, r3, #16 8013534: f8c7 30ac str.w r3, [r7, #172] @ 0xac 8013538: 687b ldr r3, [r7, #4] 801353a: 681b ldr r3, [r3, #0] 801353c: 330c adds r3, #12 801353e: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac 8013542: 65ba str r2, [r7, #88] @ 0x58 8013544: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013546: 6d79 ldr r1, [r7, #84] @ 0x54 8013548: 6dba ldr r2, [r7, #88] @ 0x58 801354a: e841 2300 strex r3, r2, [r1] 801354e: 653b str r3, [r7, #80] @ 0x50 return(result); 8013550: 6d3b ldr r3, [r7, #80] @ 0x50 8013552: 2b00 cmp r3, #0 8013554: d1e3 bne.n 801351e /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); 8013556: 687b ldr r3, [r7, #4] 8013558: 6bdb ldr r3, [r3, #60] @ 0x3c 801355a: 4618 mov r0, r3 801355c: f7fc fbde bl 800fd1c } /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; 8013560: 687b ldr r3, [r7, #4] 8013562: 2202 movs r2, #2 8013564: 635a str r2, [r3, #52] @ 0x34 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); 8013566: 687b ldr r3, [r7, #4] 8013568: 8d9a ldrh r2, [r3, #44] @ 0x2c 801356a: 687b ldr r3, [r7, #4] 801356c: 8ddb ldrh r3, [r3, #46] @ 0x2e 801356e: b29b uxth r3, r3 8013570: 1ad3 subs r3, r2, r3 8013572: b29b uxth r3, r3 8013574: 4619 mov r1, r3 8013576: 6878 ldr r0, [r7, #4] 8013578: f7f9 fa44 bl 800ca04 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; 801357c: e09c b.n 80136b8 801357e: bf00 nop 8013580: 08013835 .word 0x08013835 else { /* DMA mode not enabled */ /* Check received length : If all expected data are received, do nothing. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; 8013584: 687b ldr r3, [r7, #4] 8013586: 8d9a ldrh r2, [r3, #44] @ 0x2c 8013588: 687b ldr r3, [r7, #4] 801358a: 8ddb ldrh r3, [r3, #46] @ 0x2e 801358c: b29b uxth r3, r3 801358e: 1ad3 subs r3, r2, r3 8013590: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) 8013594: 687b ldr r3, [r7, #4] 8013596: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013598: b29b uxth r3, r3 801359a: 2b00 cmp r3, #0 801359c: f000 808e beq.w 80136bc && (nb_rx_data > 0U)) 80135a0: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce 80135a4: 2b00 cmp r3, #0 80135a6: f000 8089 beq.w 80136bc { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); 80135aa: 687b ldr r3, [r7, #4] 80135ac: 681b ldr r3, [r3, #0] 80135ae: 330c adds r3, #12 80135b0: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80135b2: 6bbb ldr r3, [r7, #56] @ 0x38 80135b4: e853 3f00 ldrex r3, [r3] 80135b8: 637b str r3, [r7, #52] @ 0x34 return(result); 80135ba: 6b7b ldr r3, [r7, #52] @ 0x34 80135bc: f423 7390 bic.w r3, r3, #288 @ 0x120 80135c0: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 80135c4: 687b ldr r3, [r7, #4] 80135c6: 681b ldr r3, [r3, #0] 80135c8: 330c adds r3, #12 80135ca: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 80135ce: 647a str r2, [r7, #68] @ 0x44 80135d0: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80135d2: 6c39 ldr r1, [r7, #64] @ 0x40 80135d4: 6c7a ldr r2, [r7, #68] @ 0x44 80135d6: e841 2300 strex r3, r2, [r1] 80135da: 63fb str r3, [r7, #60] @ 0x3c return(result); 80135dc: 6bfb ldr r3, [r7, #60] @ 0x3c 80135de: 2b00 cmp r3, #0 80135e0: d1e3 bne.n 80135aa /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 80135e2: 687b ldr r3, [r7, #4] 80135e4: 681b ldr r3, [r3, #0] 80135e6: 3314 adds r3, #20 80135e8: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80135ea: 6a7b ldr r3, [r7, #36] @ 0x24 80135ec: e853 3f00 ldrex r3, [r3] 80135f0: 623b str r3, [r7, #32] return(result); 80135f2: 6a3b ldr r3, [r7, #32] 80135f4: f023 0301 bic.w r3, r3, #1 80135f8: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 80135fc: 687b ldr r3, [r7, #4] 80135fe: 681b ldr r3, [r3, #0] 8013600: 3314 adds r3, #20 8013602: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 8013606: 633a str r2, [r7, #48] @ 0x30 8013608: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801360a: 6af9 ldr r1, [r7, #44] @ 0x2c 801360c: 6b3a ldr r2, [r7, #48] @ 0x30 801360e: e841 2300 strex r3, r2, [r1] 8013612: 62bb str r3, [r7, #40] @ 0x28 return(result); 8013614: 6abb ldr r3, [r7, #40] @ 0x28 8013616: 2b00 cmp r3, #0 8013618: d1e3 bne.n 80135e2 /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 801361a: 687b ldr r3, [r7, #4] 801361c: 2220 movs r2, #32 801361e: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013622: 687b ldr r3, [r7, #4] 8013624: 2200 movs r2, #0 8013626: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8013628: 687b ldr r3, [r7, #4] 801362a: 681b ldr r3, [r3, #0] 801362c: 330c adds r3, #12 801362e: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013630: 693b ldr r3, [r7, #16] 8013632: e853 3f00 ldrex r3, [r3] 8013636: 60fb str r3, [r7, #12] return(result); 8013638: 68fb ldr r3, [r7, #12] 801363a: f023 0310 bic.w r3, r3, #16 801363e: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 8013642: 687b ldr r3, [r7, #4] 8013644: 681b ldr r3, [r3, #0] 8013646: 330c adds r3, #12 8013648: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 801364c: 61fa str r2, [r7, #28] 801364e: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013650: 69b9 ldr r1, [r7, #24] 8013652: 69fa ldr r2, [r7, #28] 8013654: e841 2300 strex r3, r2, [r1] 8013658: 617b str r3, [r7, #20] return(result); 801365a: 697b ldr r3, [r7, #20] 801365c: 2b00 cmp r3, #0 801365e: d1e3 bne.n 8013628 /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; 8013660: 687b ldr r3, [r7, #4] 8013662: 2202 movs r2, #2 8013664: 635a str r2, [r3, #52] @ 0x34 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxEventCallback(huart, nb_rx_data); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, nb_rx_data); 8013666: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce 801366a: 4619 mov r1, r3 801366c: 6878 ldr r0, [r7, #4] 801366e: f7f9 f9c9 bl 800ca04 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; 8013672: e023 b.n 80136bc } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) 8013674: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013678: f003 0380 and.w r3, r3, #128 @ 0x80 801367c: 2b00 cmp r3, #0 801367e: d009 beq.n 8013694 8013680: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8013684: f003 0380 and.w r3, r3, #128 @ 0x80 8013688: 2b00 cmp r3, #0 801368a: d003 beq.n 8013694 { UART_Transmit_IT(huart); 801368c: 6878 ldr r0, [r7, #4] 801368e: f000 f945 bl 801391c return; 8013692: e014 b.n 80136be } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) 8013694: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013698: f003 0340 and.w r3, r3, #64 @ 0x40 801369c: 2b00 cmp r3, #0 801369e: d00e beq.n 80136be 80136a0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80136a4: f003 0340 and.w r3, r3, #64 @ 0x40 80136a8: 2b00 cmp r3, #0 80136aa: d008 beq.n 80136be { UART_EndTransmit_IT(huart); 80136ac: 6878 ldr r0, [r7, #4] 80136ae: f000 f984 bl 80139ba return; 80136b2: e004 b.n 80136be return; 80136b4: bf00 nop 80136b6: e002 b.n 80136be return; 80136b8: bf00 nop 80136ba: e000 b.n 80136be return; 80136bc: bf00 nop } } 80136be: 37e8 adds r7, #232 @ 0xe8 80136c0: 46bd mov sp, r7 80136c2: bd80 pop {r7, pc} 080136c4 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { 80136c4: b480 push {r7} 80136c6: b083 sub sp, #12 80136c8: af00 add r7, sp, #0 80136ca: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_RxCpltCallback could be implemented in the user file */ } 80136cc: bf00 nop 80136ce: 370c adds r7, #12 80136d0: 46bd mov sp, r7 80136d2: bc80 pop {r7} 80136d4: 4770 bx lr 080136d6 : * @brief UART Abort Complete callback. * @param huart UART handle. * @retval None */ __weak void HAL_UART_AbortCpltCallback(UART_HandleTypeDef *huart) { 80136d6: b480 push {r7} 80136d8: b083 sub sp, #12 80136da: af00 add r7, sp, #0 80136dc: 6078 str r0, [r7, #4] UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UART_AbortCpltCallback can be implemented in the user file. */ } 80136de: bf00 nop 80136e0: 370c adds r7, #12 80136e2: 46bd mov sp, r7 80136e4: bc80 pop {r7} 80136e6: 4770 bx lr 080136e8 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART. * @retval UART Error Code */ uint32_t HAL_UART_GetError(const UART_HandleTypeDef *huart) { 80136e8: b480 push {r7} 80136ea: b083 sub sp, #12 80136ec: af00 add r7, sp, #0 80136ee: 6078 str r0, [r7, #4] return huart->ErrorCode; 80136f0: 687b ldr r3, [r7, #4] 80136f2: 6c5b ldr r3, [r3, #68] @ 0x44 } 80136f4: 4618 mov r0, r3 80136f6: 370c adds r7, #12 80136f8: 46bd mov sp, r7 80136fa: bc80 pop {r7} 80136fc: 4770 bx lr 080136fe : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { 80136fe: b480 push {r7} 8013700: b085 sub sp, #20 8013702: af00 add r7, sp, #0 8013704: 60f8 str r0, [r7, #12] 8013706: 60b9 str r1, [r7, #8] 8013708: 4613 mov r3, r2 801370a: 80fb strh r3, [r7, #6] huart->pRxBuffPtr = pData; 801370c: 68fb ldr r3, [r7, #12] 801370e: 68ba ldr r2, [r7, #8] 8013710: 629a str r2, [r3, #40] @ 0x28 huart->RxXferSize = Size; 8013712: 68fb ldr r3, [r7, #12] 8013714: 88fa ldrh r2, [r7, #6] 8013716: 859a strh r2, [r3, #44] @ 0x2c huart->RxXferCount = Size; 8013718: 68fb ldr r3, [r7, #12] 801371a: 88fa ldrh r2, [r7, #6] 801371c: 85da strh r2, [r3, #46] @ 0x2e huart->ErrorCode = HAL_UART_ERROR_NONE; 801371e: 68fb ldr r3, [r7, #12] 8013720: 2200 movs r2, #0 8013722: 645a str r2, [r3, #68] @ 0x44 huart->RxState = HAL_UART_STATE_BUSY_RX; 8013724: 68fb ldr r3, [r7, #12] 8013726: 2222 movs r2, #34 @ 0x22 8013728: f883 2042 strb.w r2, [r3, #66] @ 0x42 if (huart->Init.Parity != UART_PARITY_NONE) 801372c: 68fb ldr r3, [r7, #12] 801372e: 691b ldr r3, [r3, #16] 8013730: 2b00 cmp r3, #0 8013732: d007 beq.n 8013744 { /* Enable the UART Parity Error Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_PE); 8013734: 68fb ldr r3, [r7, #12] 8013736: 681b ldr r3, [r3, #0] 8013738: 68da ldr r2, [r3, #12] 801373a: 68fb ldr r3, [r7, #12] 801373c: 681b ldr r3, [r3, #0] 801373e: f442 7280 orr.w r2, r2, #256 @ 0x100 8013742: 60da str r2, [r3, #12] } /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_ENABLE_IT(huart, UART_IT_ERR); 8013744: 68fb ldr r3, [r7, #12] 8013746: 681b ldr r3, [r3, #0] 8013748: 695a ldr r2, [r3, #20] 801374a: 68fb ldr r3, [r7, #12] 801374c: 681b ldr r3, [r3, #0] 801374e: f042 0201 orr.w r2, r2, #1 8013752: 615a str r2, [r3, #20] /* Enable the UART Data Register not empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE); 8013754: 68fb ldr r3, [r7, #12] 8013756: 681b ldr r3, [r3, #0] 8013758: 68da ldr r2, [r3, #12] 801375a: 68fb ldr r3, [r7, #12] 801375c: 681b ldr r3, [r3, #0] 801375e: f042 0220 orr.w r2, r2, #32 8013762: 60da str r2, [r3, #12] return HAL_OK; 8013764: 2300 movs r3, #0 } 8013766: 4618 mov r0, r3 8013768: 3714 adds r7, #20 801376a: 46bd mov sp, r7 801376c: bc80 pop {r7} 801376e: 4770 bx lr 08013770 : * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). * @param huart UART handle. * @retval None */ static void UART_EndRxTransfer(UART_HandleTypeDef *huart) { 8013770: b480 push {r7} 8013772: b095 sub sp, #84 @ 0x54 8013774: af00 add r7, sp, #0 8013776: 6078 str r0, [r7, #4] /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); 8013778: 687b ldr r3, [r7, #4] 801377a: 681b ldr r3, [r3, #0] 801377c: 330c adds r3, #12 801377e: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013780: 6b7b ldr r3, [r7, #52] @ 0x34 8013782: e853 3f00 ldrex r3, [r3] 8013786: 633b str r3, [r7, #48] @ 0x30 return(result); 8013788: 6b3b ldr r3, [r7, #48] @ 0x30 801378a: f423 7390 bic.w r3, r3, #288 @ 0x120 801378e: 64fb str r3, [r7, #76] @ 0x4c 8013790: 687b ldr r3, [r7, #4] 8013792: 681b ldr r3, [r3, #0] 8013794: 330c adds r3, #12 8013796: 6cfa ldr r2, [r7, #76] @ 0x4c 8013798: 643a str r2, [r7, #64] @ 0x40 801379a: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801379c: 6bf9 ldr r1, [r7, #60] @ 0x3c 801379e: 6c3a ldr r2, [r7, #64] @ 0x40 80137a0: e841 2300 strex r3, r2, [r1] 80137a4: 63bb str r3, [r7, #56] @ 0x38 return(result); 80137a6: 6bbb ldr r3, [r7, #56] @ 0x38 80137a8: 2b00 cmp r3, #0 80137aa: d1e5 bne.n 8013778 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 80137ac: 687b ldr r3, [r7, #4] 80137ae: 681b ldr r3, [r3, #0] 80137b0: 3314 adds r3, #20 80137b2: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80137b4: 6a3b ldr r3, [r7, #32] 80137b6: e853 3f00 ldrex r3, [r3] 80137ba: 61fb str r3, [r7, #28] return(result); 80137bc: 69fb ldr r3, [r7, #28] 80137be: f023 0301 bic.w r3, r3, #1 80137c2: 64bb str r3, [r7, #72] @ 0x48 80137c4: 687b ldr r3, [r7, #4] 80137c6: 681b ldr r3, [r3, #0] 80137c8: 3314 adds r3, #20 80137ca: 6cba ldr r2, [r7, #72] @ 0x48 80137cc: 62fa str r2, [r7, #44] @ 0x2c 80137ce: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80137d0: 6ab9 ldr r1, [r7, #40] @ 0x28 80137d2: 6afa ldr r2, [r7, #44] @ 0x2c 80137d4: e841 2300 strex r3, r2, [r1] 80137d8: 627b str r3, [r7, #36] @ 0x24 return(result); 80137da: 6a7b ldr r3, [r7, #36] @ 0x24 80137dc: 2b00 cmp r3, #0 80137de: d1e5 bne.n 80137ac /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 80137e0: 687b ldr r3, [r7, #4] 80137e2: 6b1b ldr r3, [r3, #48] @ 0x30 80137e4: 2b01 cmp r3, #1 80137e6: d119 bne.n 801381c { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80137e8: 687b ldr r3, [r7, #4] 80137ea: 681b ldr r3, [r3, #0] 80137ec: 330c adds r3, #12 80137ee: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80137f0: 68fb ldr r3, [r7, #12] 80137f2: e853 3f00 ldrex r3, [r3] 80137f6: 60bb str r3, [r7, #8] return(result); 80137f8: 68bb ldr r3, [r7, #8] 80137fa: f023 0310 bic.w r3, r3, #16 80137fe: 647b str r3, [r7, #68] @ 0x44 8013800: 687b ldr r3, [r7, #4] 8013802: 681b ldr r3, [r3, #0] 8013804: 330c adds r3, #12 8013806: 6c7a ldr r2, [r7, #68] @ 0x44 8013808: 61ba str r2, [r7, #24] 801380a: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801380c: 6979 ldr r1, [r7, #20] 801380e: 69ba ldr r2, [r7, #24] 8013810: e841 2300 strex r3, r2, [r1] 8013814: 613b str r3, [r7, #16] return(result); 8013816: 693b ldr r3, [r7, #16] 8013818: 2b00 cmp r3, #0 801381a: d1e5 bne.n 80137e8 } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 801381c: 687b ldr r3, [r7, #4] 801381e: 2220 movs r2, #32 8013820: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013824: 687b ldr r3, [r7, #4] 8013826: 2200 movs r2, #0 8013828: 631a str r2, [r3, #48] @ 0x30 } 801382a: bf00 nop 801382c: 3754 adds r7, #84 @ 0x54 801382e: 46bd mov sp, r7 8013830: bc80 pop {r7} 8013832: 4770 bx lr 08013834 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) { 8013834: b580 push {r7, lr} 8013836: b084 sub sp, #16 8013838: af00 add r7, sp, #0 801383a: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 801383c: 687b ldr r3, [r7, #4] 801383e: 6a5b ldr r3, [r3, #36] @ 0x24 8013840: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; 8013842: 68fb ldr r3, [r7, #12] 8013844: 2200 movs r2, #0 8013846: 85da strh r2, [r3, #46] @ 0x2e huart->TxXferCount = 0x00U; 8013848: 68fb ldr r3, [r7, #12] 801384a: 2200 movs r2, #0 801384c: 84da strh r2, [r3, #38] @ 0x26 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 801384e: 68f8 ldr r0, [r7, #12] 8013850: f7f8 f9e6 bl 800bc20 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 8013854: bf00 nop 8013856: 3710 adds r7, #16 8013858: 46bd mov sp, r7 801385a: bd80 pop {r7, pc} 0801385c : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATxAbortCallback(DMA_HandleTypeDef *hdma) { 801385c: b580 push {r7, lr} 801385e: b084 sub sp, #16 8013860: af00 add r7, sp, #0 8013862: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 8013864: 687b ldr r3, [r7, #4] 8013866: 6a5b ldr r3, [r3, #36] @ 0x24 8013868: 60fb str r3, [r7, #12] huart->hdmatx->XferAbortCallback = NULL; 801386a: 68fb ldr r3, [r7, #12] 801386c: 6b9b ldr r3, [r3, #56] @ 0x38 801386e: 2200 movs r2, #0 8013870: 635a str r2, [r3, #52] @ 0x34 /* Check if an Abort process is still ongoing */ if (huart->hdmarx != NULL) 8013872: 68fb ldr r3, [r7, #12] 8013874: 6bdb ldr r3, [r3, #60] @ 0x3c 8013876: 2b00 cmp r3, #0 8013878: d004 beq.n 8013884 { if (huart->hdmarx->XferAbortCallback != NULL) 801387a: 68fb ldr r3, [r7, #12] 801387c: 6bdb ldr r3, [r3, #60] @ 0x3c 801387e: 6b5b ldr r3, [r3, #52] @ 0x34 8013880: 2b00 cmp r3, #0 8013882: d117 bne.n 80138b4 return; } } /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ huart->TxXferCount = 0x00U; 8013884: 68fb ldr r3, [r7, #12] 8013886: 2200 movs r2, #0 8013888: 84da strh r2, [r3, #38] @ 0x26 huart->RxXferCount = 0x00U; 801388a: 68fb ldr r3, [r7, #12] 801388c: 2200 movs r2, #0 801388e: 85da strh r2, [r3, #46] @ 0x2e /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8013890: 68fb ldr r3, [r7, #12] 8013892: 2200 movs r2, #0 8013894: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; 8013896: 68fb ldr r3, [r7, #12] 8013898: 2220 movs r2, #32 801389a: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 801389e: 68fb ldr r3, [r7, #12] 80138a0: 2220 movs r2, #32 80138a2: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80138a6: 68fb ldr r3, [r7, #12] 80138a8: 2200 movs r2, #0 80138aa: 631a str r2, [r3, #48] @ 0x30 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort complete callback */ huart->AbortCpltCallback(huart); #else /* Call legacy weak Abort complete callback */ HAL_UART_AbortCpltCallback(huart); 80138ac: 68f8 ldr r0, [r7, #12] 80138ae: f7ff ff12 bl 80136d6 80138b2: e000 b.n 80138b6 return; 80138b4: bf00 nop #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 80138b6: 3710 adds r7, #16 80138b8: 46bd mov sp, r7 80138ba: bd80 pop {r7, pc} 080138bc : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMARxAbortCallback(DMA_HandleTypeDef *hdma) { 80138bc: b580 push {r7, lr} 80138be: b084 sub sp, #16 80138c0: af00 add r7, sp, #0 80138c2: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 80138c4: 687b ldr r3, [r7, #4] 80138c6: 6a5b ldr r3, [r3, #36] @ 0x24 80138c8: 60fb str r3, [r7, #12] huart->hdmarx->XferAbortCallback = NULL; 80138ca: 68fb ldr r3, [r7, #12] 80138cc: 6bdb ldr r3, [r3, #60] @ 0x3c 80138ce: 2200 movs r2, #0 80138d0: 635a str r2, [r3, #52] @ 0x34 /* Check if an Abort process is still ongoing */ if (huart->hdmatx != NULL) 80138d2: 68fb ldr r3, [r7, #12] 80138d4: 6b9b ldr r3, [r3, #56] @ 0x38 80138d6: 2b00 cmp r3, #0 80138d8: d004 beq.n 80138e4 { if (huart->hdmatx->XferAbortCallback != NULL) 80138da: 68fb ldr r3, [r7, #12] 80138dc: 6b9b ldr r3, [r3, #56] @ 0x38 80138de: 6b5b ldr r3, [r3, #52] @ 0x34 80138e0: 2b00 cmp r3, #0 80138e2: d117 bne.n 8013914 return; } } /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ huart->TxXferCount = 0x00U; 80138e4: 68fb ldr r3, [r7, #12] 80138e6: 2200 movs r2, #0 80138e8: 84da strh r2, [r3, #38] @ 0x26 huart->RxXferCount = 0x00U; 80138ea: 68fb ldr r3, [r7, #12] 80138ec: 2200 movs r2, #0 80138ee: 85da strh r2, [r3, #46] @ 0x2e /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; 80138f0: 68fb ldr r3, [r7, #12] 80138f2: 2200 movs r2, #0 80138f4: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; 80138f6: 68fb ldr r3, [r7, #12] 80138f8: 2220 movs r2, #32 80138fa: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 80138fe: 68fb ldr r3, [r7, #12] 8013900: 2220 movs r2, #32 8013902: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013906: 68fb ldr r3, [r7, #12] 8013908: 2200 movs r2, #0 801390a: 631a str r2, [r3, #48] @ 0x30 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Abort complete callback */ huart->AbortCpltCallback(huart); #else /* Call legacy weak Abort complete callback */ HAL_UART_AbortCpltCallback(huart); 801390c: 68f8 ldr r0, [r7, #12] 801390e: f7ff fee2 bl 80136d6 8013912: e000 b.n 8013916 return; 8013914: bf00 nop #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 8013916: 3710 adds r7, #16 8013918: 46bd mov sp, r7 801391a: bd80 pop {r7, pc} 0801391c : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart) { 801391c: b480 push {r7} 801391e: b085 sub sp, #20 8013920: af00 add r7, sp, #0 8013922: 6078 str r0, [r7, #4] const uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) 8013924: 687b ldr r3, [r7, #4] 8013926: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 801392a: b2db uxtb r3, r3 801392c: 2b21 cmp r3, #33 @ 0x21 801392e: d13e bne.n 80139ae { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) 8013930: 687b ldr r3, [r7, #4] 8013932: 689b ldr r3, [r3, #8] 8013934: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013938: d114 bne.n 8013964 801393a: 687b ldr r3, [r7, #4] 801393c: 691b ldr r3, [r3, #16] 801393e: 2b00 cmp r3, #0 8013940: d110 bne.n 8013964 { tmp = (const uint16_t *) huart->pTxBuffPtr; 8013942: 687b ldr r3, [r7, #4] 8013944: 6a1b ldr r3, [r3, #32] 8013946: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); 8013948: 68fb ldr r3, [r7, #12] 801394a: 881b ldrh r3, [r3, #0] 801394c: 461a mov r2, r3 801394e: 687b ldr r3, [r7, #4] 8013950: 681b ldr r3, [r3, #0] 8013952: f3c2 0208 ubfx r2, r2, #0, #9 8013956: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; 8013958: 687b ldr r3, [r7, #4] 801395a: 6a1b ldr r3, [r3, #32] 801395c: 1c9a adds r2, r3, #2 801395e: 687b ldr r3, [r7, #4] 8013960: 621a str r2, [r3, #32] 8013962: e008 b.n 8013976 } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); 8013964: 687b ldr r3, [r7, #4] 8013966: 6a1b ldr r3, [r3, #32] 8013968: 1c59 adds r1, r3, #1 801396a: 687a ldr r2, [r7, #4] 801396c: 6211 str r1, [r2, #32] 801396e: 781a ldrb r2, [r3, #0] 8013970: 687b ldr r3, [r7, #4] 8013972: 681b ldr r3, [r3, #0] 8013974: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) 8013976: 687b ldr r3, [r7, #4] 8013978: 8cdb ldrh r3, [r3, #38] @ 0x26 801397a: b29b uxth r3, r3 801397c: 3b01 subs r3, #1 801397e: b29b uxth r3, r3 8013980: 687a ldr r2, [r7, #4] 8013982: 4619 mov r1, r3 8013984: 84d1 strh r1, [r2, #38] @ 0x26 8013986: 2b00 cmp r3, #0 8013988: d10f bne.n 80139aa { /* Disable the UART Transmit Data Register Empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); 801398a: 687b ldr r3, [r7, #4] 801398c: 681b ldr r3, [r3, #0] 801398e: 68da ldr r2, [r3, #12] 8013990: 687b ldr r3, [r7, #4] 8013992: 681b ldr r3, [r3, #0] 8013994: f022 0280 bic.w r2, r2, #128 @ 0x80 8013998: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); 801399a: 687b ldr r3, [r7, #4] 801399c: 681b ldr r3, [r3, #0] 801399e: 68da ldr r2, [r3, #12] 80139a0: 687b ldr r3, [r7, #4] 80139a2: 681b ldr r3, [r3, #0] 80139a4: f042 0240 orr.w r2, r2, #64 @ 0x40 80139a8: 60da str r2, [r3, #12] } return HAL_OK; 80139aa: 2300 movs r3, #0 80139ac: e000 b.n 80139b0 } else { return HAL_BUSY; 80139ae: 2302 movs r3, #2 } } 80139b0: 4618 mov r0, r3 80139b2: 3714 adds r7, #20 80139b4: 46bd mov sp, r7 80139b6: bc80 pop {r7} 80139b8: 4770 bx lr 080139ba : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart) { 80139ba: b580 push {r7, lr} 80139bc: b082 sub sp, #8 80139be: af00 add r7, sp, #0 80139c0: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); 80139c2: 687b ldr r3, [r7, #4] 80139c4: 681b ldr r3, [r3, #0] 80139c6: 68da ldr r2, [r3, #12] 80139c8: 687b ldr r3, [r7, #4] 80139ca: 681b ldr r3, [r3, #0] 80139cc: f022 0240 bic.w r2, r2, #64 @ 0x40 80139d0: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; 80139d2: 687b ldr r3, [r7, #4] 80139d4: 2220 movs r2, #32 80139d6: f883 2041 strb.w r2, [r3, #65] @ 0x41 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); 80139da: 6878 ldr r0, [r7, #4] 80139dc: f7f9 f87a bl 800cad4 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; 80139e0: 2300 movs r3, #0 } 80139e2: 4618 mov r0, r3 80139e4: 3708 adds r7, #8 80139e6: 46bd mov sp, r7 80139e8: bd80 pop {r7, pc} 080139ea : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart) { 80139ea: b580 push {r7, lr} 80139ec: b08c sub sp, #48 @ 0x30 80139ee: af00 add r7, sp, #0 80139f0: 6078 str r0, [r7, #4] uint8_t *pdata8bits; uint16_t *pdata16bits; /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) 80139f2: 687b ldr r3, [r7, #4] 80139f4: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 80139f8: b2db uxtb r3, r3 80139fa: 2b22 cmp r3, #34 @ 0x22 80139fc: f040 80ae bne.w 8013b5c { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) 8013a00: 687b ldr r3, [r7, #4] 8013a02: 689b ldr r3, [r3, #8] 8013a04: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013a08: d117 bne.n 8013a3a 8013a0a: 687b ldr r3, [r7, #4] 8013a0c: 691b ldr r3, [r3, #16] 8013a0e: 2b00 cmp r3, #0 8013a10: d113 bne.n 8013a3a { pdata8bits = NULL; 8013a12: 2300 movs r3, #0 8013a14: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = (uint16_t *) huart->pRxBuffPtr; 8013a16: 687b ldr r3, [r7, #4] 8013a18: 6a9b ldr r3, [r3, #40] @ 0x28 8013a1a: 62bb str r3, [r7, #40] @ 0x28 *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); 8013a1c: 687b ldr r3, [r7, #4] 8013a1e: 681b ldr r3, [r3, #0] 8013a20: 685b ldr r3, [r3, #4] 8013a22: b29b uxth r3, r3 8013a24: f3c3 0308 ubfx r3, r3, #0, #9 8013a28: b29a uxth r2, r3 8013a2a: 6abb ldr r3, [r7, #40] @ 0x28 8013a2c: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; 8013a2e: 687b ldr r3, [r7, #4] 8013a30: 6a9b ldr r3, [r3, #40] @ 0x28 8013a32: 1c9a adds r2, r3, #2 8013a34: 687b ldr r3, [r7, #4] 8013a36: 629a str r2, [r3, #40] @ 0x28 8013a38: e026 b.n 8013a88 } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; 8013a3a: 687b ldr r3, [r7, #4] 8013a3c: 6a9b ldr r3, [r3, #40] @ 0x28 8013a3e: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = NULL; 8013a40: 2300 movs r3, #0 8013a42: 62bb str r3, [r7, #40] @ 0x28 if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) 8013a44: 687b ldr r3, [r7, #4] 8013a46: 689b ldr r3, [r3, #8] 8013a48: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013a4c: d007 beq.n 8013a5e 8013a4e: 687b ldr r3, [r7, #4] 8013a50: 689b ldr r3, [r3, #8] 8013a52: 2b00 cmp r3, #0 8013a54: d10a bne.n 8013a6c 8013a56: 687b ldr r3, [r7, #4] 8013a58: 691b ldr r3, [r3, #16] 8013a5a: 2b00 cmp r3, #0 8013a5c: d106 bne.n 8013a6c { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); 8013a5e: 687b ldr r3, [r7, #4] 8013a60: 681b ldr r3, [r3, #0] 8013a62: 685b ldr r3, [r3, #4] 8013a64: b2da uxtb r2, r3 8013a66: 6afb ldr r3, [r7, #44] @ 0x2c 8013a68: 701a strb r2, [r3, #0] 8013a6a: e008 b.n 8013a7e } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); 8013a6c: 687b ldr r3, [r7, #4] 8013a6e: 681b ldr r3, [r3, #0] 8013a70: 685b ldr r3, [r3, #4] 8013a72: b2db uxtb r3, r3 8013a74: f003 037f and.w r3, r3, #127 @ 0x7f 8013a78: b2da uxtb r2, r3 8013a7a: 6afb ldr r3, [r7, #44] @ 0x2c 8013a7c: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; 8013a7e: 687b ldr r3, [r7, #4] 8013a80: 6a9b ldr r3, [r3, #40] @ 0x28 8013a82: 1c5a adds r2, r3, #1 8013a84: 687b ldr r3, [r7, #4] 8013a86: 629a str r2, [r3, #40] @ 0x28 } if (--huart->RxXferCount == 0U) 8013a88: 687b ldr r3, [r7, #4] 8013a8a: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013a8c: b29b uxth r3, r3 8013a8e: 3b01 subs r3, #1 8013a90: b29b uxth r3, r3 8013a92: 687a ldr r2, [r7, #4] 8013a94: 4619 mov r1, r3 8013a96: 85d1 strh r1, [r2, #46] @ 0x2e 8013a98: 2b00 cmp r3, #0 8013a9a: d15d bne.n 8013b58 { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); 8013a9c: 687b ldr r3, [r7, #4] 8013a9e: 681b ldr r3, [r3, #0] 8013aa0: 68da ldr r2, [r3, #12] 8013aa2: 687b ldr r3, [r7, #4] 8013aa4: 681b ldr r3, [r3, #0] 8013aa6: f022 0220 bic.w r2, r2, #32 8013aaa: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); 8013aac: 687b ldr r3, [r7, #4] 8013aae: 681b ldr r3, [r3, #0] 8013ab0: 68da ldr r2, [r3, #12] 8013ab2: 687b ldr r3, [r7, #4] 8013ab4: 681b ldr r3, [r3, #0] 8013ab6: f422 7280 bic.w r2, r2, #256 @ 0x100 8013aba: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); 8013abc: 687b ldr r3, [r7, #4] 8013abe: 681b ldr r3, [r3, #0] 8013ac0: 695a ldr r2, [r3, #20] 8013ac2: 687b ldr r3, [r7, #4] 8013ac4: 681b ldr r3, [r3, #0] 8013ac6: f022 0201 bic.w r2, r2, #1 8013aca: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 8013acc: 687b ldr r3, [r7, #4] 8013ace: 2220 movs r2, #32 8013ad0: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; 8013ad4: 687b ldr r3, [r7, #4] 8013ad6: 2200 movs r2, #0 8013ad8: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013ada: 687b ldr r3, [r7, #4] 8013adc: 6b1b ldr r3, [r3, #48] @ 0x30 8013ade: 2b01 cmp r3, #1 8013ae0: d135 bne.n 8013b4e { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013ae2: 687b ldr r3, [r7, #4] 8013ae4: 2200 movs r2, #0 8013ae6: 631a str r2, [r3, #48] @ 0x30 /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8013ae8: 687b ldr r3, [r7, #4] 8013aea: 681b ldr r3, [r3, #0] 8013aec: 330c adds r3, #12 8013aee: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013af0: 697b ldr r3, [r7, #20] 8013af2: e853 3f00 ldrex r3, [r3] 8013af6: 613b str r3, [r7, #16] return(result); 8013af8: 693b ldr r3, [r7, #16] 8013afa: f023 0310 bic.w r3, r3, #16 8013afe: 627b str r3, [r7, #36] @ 0x24 8013b00: 687b ldr r3, [r7, #4] 8013b02: 681b ldr r3, [r3, #0] 8013b04: 330c adds r3, #12 8013b06: 6a7a ldr r2, [r7, #36] @ 0x24 8013b08: 623a str r2, [r7, #32] 8013b0a: 61fb str r3, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013b0c: 69f9 ldr r1, [r7, #28] 8013b0e: 6a3a ldr r2, [r7, #32] 8013b10: e841 2300 strex r3, r2, [r1] 8013b14: 61bb str r3, [r7, #24] return(result); 8013b16: 69bb ldr r3, [r7, #24] 8013b18: 2b00 cmp r3, #0 8013b1a: d1e5 bne.n 8013ae8 /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) 8013b1c: 687b ldr r3, [r7, #4] 8013b1e: 681b ldr r3, [r3, #0] 8013b20: 681b ldr r3, [r3, #0] 8013b22: f003 0310 and.w r3, r3, #16 8013b26: 2b10 cmp r3, #16 8013b28: d10a bne.n 8013b40 { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); 8013b2a: 2300 movs r3, #0 8013b2c: 60fb str r3, [r7, #12] 8013b2e: 687b ldr r3, [r7, #4] 8013b30: 681b ldr r3, [r3, #0] 8013b32: 681b ldr r3, [r3, #0] 8013b34: 60fb str r3, [r7, #12] 8013b36: 687b ldr r3, [r7, #4] 8013b38: 681b ldr r3, [r3, #0] 8013b3a: 685b ldr r3, [r3, #4] 8013b3c: 60fb str r3, [r7, #12] 8013b3e: 68fb ldr r3, [r7, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); 8013b40: 687b ldr r3, [r7, #4] 8013b42: 8d9b ldrh r3, [r3, #44] @ 0x2c 8013b44: 4619 mov r1, r3 8013b46: 6878 ldr r0, [r7, #4] 8013b48: f7f8 ff5c bl 800ca04 8013b4c: e002 b.n 8013b54 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxCpltCallback(huart); #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); 8013b4e: 6878 ldr r0, [r7, #4] 8013b50: f7ff fdb8 bl 80136c4 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; 8013b54: 2300 movs r3, #0 8013b56: e002 b.n 8013b5e } return HAL_OK; 8013b58: 2300 movs r3, #0 8013b5a: e000 b.n 8013b5e } else { return HAL_BUSY; 8013b5c: 2302 movs r3, #2 } } 8013b5e: 4618 mov r0, r3 8013b60: 3730 adds r7, #48 @ 0x30 8013b62: 46bd mov sp, r7 8013b64: bd80 pop {r7, pc} ... 08013b68 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_SetConfig(UART_HandleTypeDef *huart) { 8013b68: b580 push {r7, lr} 8013b6a: b084 sub sp, #16 8013b6c: af00 add r7, sp, #0 8013b6e: 6078 str r0, [r7, #4] assert_param(IS_UART_MODE(huart->Init.Mode)); /*-------------------------- USART CR2 Configuration -----------------------*/ /* Configure the UART Stop Bits: Set STOP[13:12] bits according to huart->Init.StopBits value */ MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits); 8013b70: 687b ldr r3, [r7, #4] 8013b72: 681b ldr r3, [r3, #0] 8013b74: 691b ldr r3, [r3, #16] 8013b76: f423 5140 bic.w r1, r3, #12288 @ 0x3000 8013b7a: 687b ldr r3, [r7, #4] 8013b7c: 68da ldr r2, [r3, #12] 8013b7e: 687b ldr r3, [r7, #4] 8013b80: 681b ldr r3, [r3, #0] 8013b82: 430a orrs r2, r1 8013b84: 611a str r2, [r3, #16] tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling; MODIFY_REG(huart->Instance->CR1, (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8), tmpreg); #else tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode; 8013b86: 687b ldr r3, [r7, #4] 8013b88: 689a ldr r2, [r3, #8] 8013b8a: 687b ldr r3, [r7, #4] 8013b8c: 691b ldr r3, [r3, #16] 8013b8e: 431a orrs r2, r3 8013b90: 687b ldr r3, [r7, #4] 8013b92: 695b ldr r3, [r3, #20] 8013b94: 4313 orrs r3, r2 8013b96: 60bb str r3, [r7, #8] MODIFY_REG(huart->Instance->CR1, 8013b98: 687b ldr r3, [r7, #4] 8013b9a: 681b ldr r3, [r3, #0] 8013b9c: 68db ldr r3, [r3, #12] 8013b9e: f423 53b0 bic.w r3, r3, #5632 @ 0x1600 8013ba2: f023 030c bic.w r3, r3, #12 8013ba6: 687a ldr r2, [r7, #4] 8013ba8: 6812 ldr r2, [r2, #0] 8013baa: 68b9 ldr r1, [r7, #8] 8013bac: 430b orrs r3, r1 8013bae: 60d3 str r3, [r2, #12] tmpreg); #endif /* USART_CR1_OVER8 */ /*-------------------------- USART CR3 Configuration -----------------------*/ /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */ MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl); 8013bb0: 687b ldr r3, [r7, #4] 8013bb2: 681b ldr r3, [r3, #0] 8013bb4: 695b ldr r3, [r3, #20] 8013bb6: f423 7140 bic.w r1, r3, #768 @ 0x300 8013bba: 687b ldr r3, [r7, #4] 8013bbc: 699a ldr r2, [r3, #24] 8013bbe: 687b ldr r3, [r7, #4] 8013bc0: 681b ldr r3, [r3, #0] 8013bc2: 430a orrs r2, r1 8013bc4: 615a str r2, [r3, #20] if(huart->Instance == USART1) 8013bc6: 687b ldr r3, [r7, #4] 8013bc8: 681b ldr r3, [r3, #0] 8013bca: 4a2c ldr r2, [pc, #176] @ (8013c7c ) 8013bcc: 4293 cmp r3, r2 8013bce: d103 bne.n 8013bd8 { pclk = HAL_RCC_GetPCLK2Freq(); 8013bd0: f7fd fc78 bl 80114c4 8013bd4: 60f8 str r0, [r7, #12] 8013bd6: e002 b.n 8013bde } else { pclk = HAL_RCC_GetPCLK1Freq(); 8013bd8: f7fd fc60 bl 801149c 8013bdc: 60f8 str r0, [r7, #12] else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } #else huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); 8013bde: 68fa ldr r2, [r7, #12] 8013be0: 4613 mov r3, r2 8013be2: 009b lsls r3, r3, #2 8013be4: 4413 add r3, r2 8013be6: 009a lsls r2, r3, #2 8013be8: 441a add r2, r3 8013bea: 687b ldr r3, [r7, #4] 8013bec: 685b ldr r3, [r3, #4] 8013bee: 009b lsls r3, r3, #2 8013bf0: fbb2 f3f3 udiv r3, r2, r3 8013bf4: 4a22 ldr r2, [pc, #136] @ (8013c80 ) 8013bf6: fba2 2303 umull r2, r3, r2, r3 8013bfa: 095b lsrs r3, r3, #5 8013bfc: 0119 lsls r1, r3, #4 8013bfe: 68fa ldr r2, [r7, #12] 8013c00: 4613 mov r3, r2 8013c02: 009b lsls r3, r3, #2 8013c04: 4413 add r3, r2 8013c06: 009a lsls r2, r3, #2 8013c08: 441a add r2, r3 8013c0a: 687b ldr r3, [r7, #4] 8013c0c: 685b ldr r3, [r3, #4] 8013c0e: 009b lsls r3, r3, #2 8013c10: fbb2 f2f3 udiv r2, r2, r3 8013c14: 4b1a ldr r3, [pc, #104] @ (8013c80 ) 8013c16: fba3 0302 umull r0, r3, r3, r2 8013c1a: 095b lsrs r3, r3, #5 8013c1c: 2064 movs r0, #100 @ 0x64 8013c1e: fb00 f303 mul.w r3, r0, r3 8013c22: 1ad3 subs r3, r2, r3 8013c24: 011b lsls r3, r3, #4 8013c26: 3332 adds r3, #50 @ 0x32 8013c28: 4a15 ldr r2, [pc, #84] @ (8013c80 ) 8013c2a: fba2 2303 umull r2, r3, r2, r3 8013c2e: 095b lsrs r3, r3, #5 8013c30: f003 03f0 and.w r3, r3, #240 @ 0xf0 8013c34: 4419 add r1, r3 8013c36: 68fa ldr r2, [r7, #12] 8013c38: 4613 mov r3, r2 8013c3a: 009b lsls r3, r3, #2 8013c3c: 4413 add r3, r2 8013c3e: 009a lsls r2, r3, #2 8013c40: 441a add r2, r3 8013c42: 687b ldr r3, [r7, #4] 8013c44: 685b ldr r3, [r3, #4] 8013c46: 009b lsls r3, r3, #2 8013c48: fbb2 f2f3 udiv r2, r2, r3 8013c4c: 4b0c ldr r3, [pc, #48] @ (8013c80 ) 8013c4e: fba3 0302 umull r0, r3, r3, r2 8013c52: 095b lsrs r3, r3, #5 8013c54: 2064 movs r0, #100 @ 0x64 8013c56: fb00 f303 mul.w r3, r0, r3 8013c5a: 1ad3 subs r3, r2, r3 8013c5c: 011b lsls r3, r3, #4 8013c5e: 3332 adds r3, #50 @ 0x32 8013c60: 4a07 ldr r2, [pc, #28] @ (8013c80 ) 8013c62: fba2 2303 umull r2, r3, r2, r3 8013c66: 095b lsrs r3, r3, #5 8013c68: f003 020f and.w r2, r3, #15 8013c6c: 687b ldr r3, [r7, #4] 8013c6e: 681b ldr r3, [r3, #0] 8013c70: 440a add r2, r1 8013c72: 609a str r2, [r3, #8] #endif /* USART_CR1_OVER8 */ } 8013c74: bf00 nop 8013c76: 3710 adds r7, #16 8013c78: 46bd mov sp, r7 8013c7a: bd80 pop {r7, pc} 8013c7c: 40013800 .word 0x40013800 8013c80: 51eb851f .word 0x51eb851f 08013c84 <__cvt>: 8013c84: 2b00 cmp r3, #0 8013c86: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8013c8a: 461d mov r5, r3 8013c8c: bfbb ittet lt 8013c8e: f103 4300 addlt.w r3, r3, #2147483648 @ 0x80000000 8013c92: 461d movlt r5, r3 8013c94: 2300 movge r3, #0 8013c96: 232d movlt r3, #45 @ 0x2d 8013c98: b088 sub sp, #32 8013c9a: 4614 mov r4, r2 8013c9c: bfb8 it lt 8013c9e: 4614 movlt r4, r2 8013ca0: 9a12 ldr r2, [sp, #72] @ 0x48 8013ca2: 9e10 ldr r6, [sp, #64] @ 0x40 8013ca4: 7013 strb r3, [r2, #0] 8013ca6: 9b14 ldr r3, [sp, #80] @ 0x50 8013ca8: f8dd a04c ldr.w sl, [sp, #76] @ 0x4c 8013cac: f023 0820 bic.w r8, r3, #32 8013cb0: f1b8 0f46 cmp.w r8, #70 @ 0x46 8013cb4: d005 beq.n 8013cc2 <__cvt+0x3e> 8013cb6: f1b8 0f45 cmp.w r8, #69 @ 0x45 8013cba: d100 bne.n 8013cbe <__cvt+0x3a> 8013cbc: 3601 adds r6, #1 8013cbe: 2302 movs r3, #2 8013cc0: e000 b.n 8013cc4 <__cvt+0x40> 8013cc2: 2303 movs r3, #3 8013cc4: aa07 add r2, sp, #28 8013cc6: 9204 str r2, [sp, #16] 8013cc8: aa06 add r2, sp, #24 8013cca: e9cd a202 strd sl, r2, [sp, #8] 8013cce: e9cd 3600 strd r3, r6, [sp] 8013cd2: 4622 mov r2, r4 8013cd4: 462b mov r3, r5 8013cd6: f000 fe3b bl 8014950 <_dtoa_r> 8013cda: f1b8 0f47 cmp.w r8, #71 @ 0x47 8013cde: 4607 mov r7, r0 8013ce0: d119 bne.n 8013d16 <__cvt+0x92> 8013ce2: 9b11 ldr r3, [sp, #68] @ 0x44 8013ce4: 07db lsls r3, r3, #31 8013ce6: d50e bpl.n 8013d06 <__cvt+0x82> 8013ce8: eb00 0906 add.w r9, r0, r6 8013cec: 2200 movs r2, #0 8013cee: 2300 movs r3, #0 8013cf0: 4620 mov r0, r4 8013cf2: 4629 mov r1, r5 8013cf4: f7f4 fec4 bl 8008a80 <__aeabi_dcmpeq> 8013cf8: b108 cbz r0, 8013cfe <__cvt+0x7a> 8013cfa: f8cd 901c str.w r9, [sp, #28] 8013cfe: 2230 movs r2, #48 @ 0x30 8013d00: 9b07 ldr r3, [sp, #28] 8013d02: 454b cmp r3, r9 8013d04: d31e bcc.n 8013d44 <__cvt+0xc0> 8013d06: 4638 mov r0, r7 8013d08: 9b07 ldr r3, [sp, #28] 8013d0a: 9a15 ldr r2, [sp, #84] @ 0x54 8013d0c: 1bdb subs r3, r3, r7 8013d0e: 6013 str r3, [r2, #0] 8013d10: b008 add sp, #32 8013d12: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8013d16: f1b8 0f46 cmp.w r8, #70 @ 0x46 8013d1a: eb00 0906 add.w r9, r0, r6 8013d1e: d1e5 bne.n 8013cec <__cvt+0x68> 8013d20: 7803 ldrb r3, [r0, #0] 8013d22: 2b30 cmp r3, #48 @ 0x30 8013d24: d10a bne.n 8013d3c <__cvt+0xb8> 8013d26: 2200 movs r2, #0 8013d28: 2300 movs r3, #0 8013d2a: 4620 mov r0, r4 8013d2c: 4629 mov r1, r5 8013d2e: f7f4 fea7 bl 8008a80 <__aeabi_dcmpeq> 8013d32: b918 cbnz r0, 8013d3c <__cvt+0xb8> 8013d34: f1c6 0601 rsb r6, r6, #1 8013d38: f8ca 6000 str.w r6, [sl] 8013d3c: f8da 3000 ldr.w r3, [sl] 8013d40: 4499 add r9, r3 8013d42: e7d3 b.n 8013cec <__cvt+0x68> 8013d44: 1c59 adds r1, r3, #1 8013d46: 9107 str r1, [sp, #28] 8013d48: 701a strb r2, [r3, #0] 8013d4a: e7d9 b.n 8013d00 <__cvt+0x7c> 08013d4c <__exponent>: 8013d4c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8013d4e: 2900 cmp r1, #0 8013d50: bfb6 itet lt 8013d52: 232d movlt r3, #45 @ 0x2d 8013d54: 232b movge r3, #43 @ 0x2b 8013d56: 4249 neglt r1, r1 8013d58: 2909 cmp r1, #9 8013d5a: 7002 strb r2, [r0, #0] 8013d5c: 7043 strb r3, [r0, #1] 8013d5e: dd29 ble.n 8013db4 <__exponent+0x68> 8013d60: f10d 0307 add.w r3, sp, #7 8013d64: 461d mov r5, r3 8013d66: 270a movs r7, #10 8013d68: fbb1 f6f7 udiv r6, r1, r7 8013d6c: 461a mov r2, r3 8013d6e: fb07 1416 mls r4, r7, r6, r1 8013d72: 3430 adds r4, #48 @ 0x30 8013d74: f802 4c01 strb.w r4, [r2, #-1] 8013d78: 460c mov r4, r1 8013d7a: 2c63 cmp r4, #99 @ 0x63 8013d7c: 4631 mov r1, r6 8013d7e: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff 8013d82: dcf1 bgt.n 8013d68 <__exponent+0x1c> 8013d84: 3130 adds r1, #48 @ 0x30 8013d86: 1e94 subs r4, r2, #2 8013d88: f803 1c01 strb.w r1, [r3, #-1] 8013d8c: 4623 mov r3, r4 8013d8e: 1c41 adds r1, r0, #1 8013d90: 42ab cmp r3, r5 8013d92: d30a bcc.n 8013daa <__exponent+0x5e> 8013d94: f10d 0309 add.w r3, sp, #9 8013d98: 1a9b subs r3, r3, r2 8013d9a: 42ac cmp r4, r5 8013d9c: bf88 it hi 8013d9e: 2300 movhi r3, #0 8013da0: 3302 adds r3, #2 8013da2: 4403 add r3, r0 8013da4: 1a18 subs r0, r3, r0 8013da6: b003 add sp, #12 8013da8: bdf0 pop {r4, r5, r6, r7, pc} 8013daa: f813 6b01 ldrb.w r6, [r3], #1 8013dae: f801 6f01 strb.w r6, [r1, #1]! 8013db2: e7ed b.n 8013d90 <__exponent+0x44> 8013db4: 2330 movs r3, #48 @ 0x30 8013db6: 3130 adds r1, #48 @ 0x30 8013db8: 7083 strb r3, [r0, #2] 8013dba: 70c1 strb r1, [r0, #3] 8013dbc: 1d03 adds r3, r0, #4 8013dbe: e7f1 b.n 8013da4 <__exponent+0x58> 08013dc0 <_printf_float>: 8013dc0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8013dc4: b091 sub sp, #68 @ 0x44 8013dc6: 460c mov r4, r1 8013dc8: f8dd 8068 ldr.w r8, [sp, #104] @ 0x68 8013dcc: 4616 mov r6, r2 8013dce: 461f mov r7, r3 8013dd0: 4605 mov r5, r0 8013dd2: f000 fcf7 bl 80147c4 <_localeconv_r> 8013dd6: 6803 ldr r3, [r0, #0] 8013dd8: 4618 mov r0, r3 8013dda: 9308 str r3, [sp, #32] 8013ddc: f7f4 fa24 bl 8008228 8013de0: 2300 movs r3, #0 8013de2: 930e str r3, [sp, #56] @ 0x38 8013de4: f8d8 3000 ldr.w r3, [r8] 8013de8: 9009 str r0, [sp, #36] @ 0x24 8013dea: 3307 adds r3, #7 8013dec: f023 0307 bic.w r3, r3, #7 8013df0: f103 0208 add.w r2, r3, #8 8013df4: f894 a018 ldrb.w sl, [r4, #24] 8013df8: f8d4 b000 ldr.w fp, [r4] 8013dfc: f8c8 2000 str.w r2, [r8] 8013e00: e9d3 8900 ldrd r8, r9, [r3] 8013e04: f029 4300 bic.w r3, r9, #2147483648 @ 0x80000000 8013e08: 930b str r3, [sp, #44] @ 0x2c 8013e0a: f8cd 8028 str.w r8, [sp, #40] @ 0x28 8013e0e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8013e12: e9dd 010a ldrd r0, r1, [sp, #40] @ 0x28 8013e16: e9c4 8912 strd r8, r9, [r4, #72] @ 0x48 8013e1a: 4b9c ldr r3, [pc, #624] @ (801408c <_printf_float+0x2cc>) 8013e1c: f7f4 fe62 bl 8008ae4 <__aeabi_dcmpun> 8013e20: bb70 cbnz r0, 8013e80 <_printf_float+0xc0> 8013e22: e9dd 010a ldrd r0, r1, [sp, #40] @ 0x28 8013e26: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8013e2a: 4b98 ldr r3, [pc, #608] @ (801408c <_printf_float+0x2cc>) 8013e2c: f7f4 fe3c bl 8008aa8 <__aeabi_dcmple> 8013e30: bb30 cbnz r0, 8013e80 <_printf_float+0xc0> 8013e32: 2200 movs r2, #0 8013e34: 2300 movs r3, #0 8013e36: 4640 mov r0, r8 8013e38: 4649 mov r1, r9 8013e3a: f7f4 fe2b bl 8008a94 <__aeabi_dcmplt> 8013e3e: b110 cbz r0, 8013e46 <_printf_float+0x86> 8013e40: 232d movs r3, #45 @ 0x2d 8013e42: f884 3043 strb.w r3, [r4, #67] @ 0x43 8013e46: 4a92 ldr r2, [pc, #584] @ (8014090 <_printf_float+0x2d0>) 8013e48: 4b92 ldr r3, [pc, #584] @ (8014094 <_printf_float+0x2d4>) 8013e4a: f1ba 0f47 cmp.w sl, #71 @ 0x47 8013e4e: bf8c ite hi 8013e50: 4690 movhi r8, r2 8013e52: 4698 movls r8, r3 8013e54: 2303 movs r3, #3 8013e56: f04f 0900 mov.w r9, #0 8013e5a: 6123 str r3, [r4, #16] 8013e5c: f02b 0304 bic.w r3, fp, #4 8013e60: 6023 str r3, [r4, #0] 8013e62: 4633 mov r3, r6 8013e64: 4621 mov r1, r4 8013e66: 4628 mov r0, r5 8013e68: 9700 str r7, [sp, #0] 8013e6a: aa0f add r2, sp, #60 @ 0x3c 8013e6c: f000 f9d4 bl 8014218 <_printf_common> 8013e70: 3001 adds r0, #1 8013e72: f040 8090 bne.w 8013f96 <_printf_float+0x1d6> 8013e76: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8013e7a: b011 add sp, #68 @ 0x44 8013e7c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8013e80: 4642 mov r2, r8 8013e82: 464b mov r3, r9 8013e84: 4640 mov r0, r8 8013e86: 4649 mov r1, r9 8013e88: f7f4 fe2c bl 8008ae4 <__aeabi_dcmpun> 8013e8c: b148 cbz r0, 8013ea2 <_printf_float+0xe2> 8013e8e: 464b mov r3, r9 8013e90: 2b00 cmp r3, #0 8013e92: bfb8 it lt 8013e94: 232d movlt r3, #45 @ 0x2d 8013e96: 4a80 ldr r2, [pc, #512] @ (8014098 <_printf_float+0x2d8>) 8013e98: bfb8 it lt 8013e9a: f884 3043 strblt.w r3, [r4, #67] @ 0x43 8013e9e: 4b7f ldr r3, [pc, #508] @ (801409c <_printf_float+0x2dc>) 8013ea0: e7d3 b.n 8013e4a <_printf_float+0x8a> 8013ea2: 6863 ldr r3, [r4, #4] 8013ea4: f00a 01df and.w r1, sl, #223 @ 0xdf 8013ea8: 1c5a adds r2, r3, #1 8013eaa: d13f bne.n 8013f2c <_printf_float+0x16c> 8013eac: 2306 movs r3, #6 8013eae: 6063 str r3, [r4, #4] 8013eb0: 2200 movs r2, #0 8013eb2: f44b 6380 orr.w r3, fp, #1024 @ 0x400 8013eb6: 6023 str r3, [r4, #0] 8013eb8: 9206 str r2, [sp, #24] 8013eba: aa0e add r2, sp, #56 @ 0x38 8013ebc: e9cd a204 strd sl, r2, [sp, #16] 8013ec0: aa0d add r2, sp, #52 @ 0x34 8013ec2: 9203 str r2, [sp, #12] 8013ec4: f10d 0233 add.w r2, sp, #51 @ 0x33 8013ec8: e9cd 3201 strd r3, r2, [sp, #4] 8013ecc: 6863 ldr r3, [r4, #4] 8013ece: 4642 mov r2, r8 8013ed0: 9300 str r3, [sp, #0] 8013ed2: 4628 mov r0, r5 8013ed4: 464b mov r3, r9 8013ed6: 910a str r1, [sp, #40] @ 0x28 8013ed8: f7ff fed4 bl 8013c84 <__cvt> 8013edc: 990a ldr r1, [sp, #40] @ 0x28 8013ede: 4680 mov r8, r0 8013ee0: 2947 cmp r1, #71 @ 0x47 8013ee2: 990d ldr r1, [sp, #52] @ 0x34 8013ee4: d128 bne.n 8013f38 <_printf_float+0x178> 8013ee6: 1cc8 adds r0, r1, #3 8013ee8: db02 blt.n 8013ef0 <_printf_float+0x130> 8013eea: 6863 ldr r3, [r4, #4] 8013eec: 4299 cmp r1, r3 8013eee: dd40 ble.n 8013f72 <_printf_float+0x1b2> 8013ef0: f1aa 0a02 sub.w sl, sl, #2 8013ef4: fa5f fa8a uxtb.w sl, sl 8013ef8: 4652 mov r2, sl 8013efa: 3901 subs r1, #1 8013efc: f104 0050 add.w r0, r4, #80 @ 0x50 8013f00: 910d str r1, [sp, #52] @ 0x34 8013f02: f7ff ff23 bl 8013d4c <__exponent> 8013f06: 9a0e ldr r2, [sp, #56] @ 0x38 8013f08: 4681 mov r9, r0 8013f0a: 1813 adds r3, r2, r0 8013f0c: 2a01 cmp r2, #1 8013f0e: 6123 str r3, [r4, #16] 8013f10: dc02 bgt.n 8013f18 <_printf_float+0x158> 8013f12: 6822 ldr r2, [r4, #0] 8013f14: 07d2 lsls r2, r2, #31 8013f16: d501 bpl.n 8013f1c <_printf_float+0x15c> 8013f18: 3301 adds r3, #1 8013f1a: 6123 str r3, [r4, #16] 8013f1c: f89d 3033 ldrb.w r3, [sp, #51] @ 0x33 8013f20: 2b00 cmp r3, #0 8013f22: d09e beq.n 8013e62 <_printf_float+0xa2> 8013f24: 232d movs r3, #45 @ 0x2d 8013f26: f884 3043 strb.w r3, [r4, #67] @ 0x43 8013f2a: e79a b.n 8013e62 <_printf_float+0xa2> 8013f2c: 2947 cmp r1, #71 @ 0x47 8013f2e: d1bf bne.n 8013eb0 <_printf_float+0xf0> 8013f30: 2b00 cmp r3, #0 8013f32: d1bd bne.n 8013eb0 <_printf_float+0xf0> 8013f34: 2301 movs r3, #1 8013f36: e7ba b.n 8013eae <_printf_float+0xee> 8013f38: f1ba 0f65 cmp.w sl, #101 @ 0x65 8013f3c: d9dc bls.n 8013ef8 <_printf_float+0x138> 8013f3e: f1ba 0f66 cmp.w sl, #102 @ 0x66 8013f42: d118 bne.n 8013f76 <_printf_float+0x1b6> 8013f44: 2900 cmp r1, #0 8013f46: 6863 ldr r3, [r4, #4] 8013f48: dd0b ble.n 8013f62 <_printf_float+0x1a2> 8013f4a: 6121 str r1, [r4, #16] 8013f4c: b913 cbnz r3, 8013f54 <_printf_float+0x194> 8013f4e: 6822 ldr r2, [r4, #0] 8013f50: 07d0 lsls r0, r2, #31 8013f52: d502 bpl.n 8013f5a <_printf_float+0x19a> 8013f54: 3301 adds r3, #1 8013f56: 440b add r3, r1 8013f58: 6123 str r3, [r4, #16] 8013f5a: f04f 0900 mov.w r9, #0 8013f5e: 65a1 str r1, [r4, #88] @ 0x58 8013f60: e7dc b.n 8013f1c <_printf_float+0x15c> 8013f62: b913 cbnz r3, 8013f6a <_printf_float+0x1aa> 8013f64: 6822 ldr r2, [r4, #0] 8013f66: 07d2 lsls r2, r2, #31 8013f68: d501 bpl.n 8013f6e <_printf_float+0x1ae> 8013f6a: 3302 adds r3, #2 8013f6c: e7f4 b.n 8013f58 <_printf_float+0x198> 8013f6e: 2301 movs r3, #1 8013f70: e7f2 b.n 8013f58 <_printf_float+0x198> 8013f72: f04f 0a67 mov.w sl, #103 @ 0x67 8013f76: 9b0e ldr r3, [sp, #56] @ 0x38 8013f78: 4299 cmp r1, r3 8013f7a: db05 blt.n 8013f88 <_printf_float+0x1c8> 8013f7c: 6823 ldr r3, [r4, #0] 8013f7e: 6121 str r1, [r4, #16] 8013f80: 07d8 lsls r0, r3, #31 8013f82: d5ea bpl.n 8013f5a <_printf_float+0x19a> 8013f84: 1c4b adds r3, r1, #1 8013f86: e7e7 b.n 8013f58 <_printf_float+0x198> 8013f88: 2900 cmp r1, #0 8013f8a: bfcc ite gt 8013f8c: 2201 movgt r2, #1 8013f8e: f1c1 0202 rsble r2, r1, #2 8013f92: 4413 add r3, r2 8013f94: e7e0 b.n 8013f58 <_printf_float+0x198> 8013f96: 6823 ldr r3, [r4, #0] 8013f98: 055a lsls r2, r3, #21 8013f9a: d407 bmi.n 8013fac <_printf_float+0x1ec> 8013f9c: 6923 ldr r3, [r4, #16] 8013f9e: 4642 mov r2, r8 8013fa0: 4631 mov r1, r6 8013fa2: 4628 mov r0, r5 8013fa4: 47b8 blx r7 8013fa6: 3001 adds r0, #1 8013fa8: d12b bne.n 8014002 <_printf_float+0x242> 8013faa: e764 b.n 8013e76 <_printf_float+0xb6> 8013fac: f1ba 0f65 cmp.w sl, #101 @ 0x65 8013fb0: f240 80dc bls.w 801416c <_printf_float+0x3ac> 8013fb4: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48 8013fb8: 2200 movs r2, #0 8013fba: 2300 movs r3, #0 8013fbc: f7f4 fd60 bl 8008a80 <__aeabi_dcmpeq> 8013fc0: 2800 cmp r0, #0 8013fc2: d033 beq.n 801402c <_printf_float+0x26c> 8013fc4: 2301 movs r3, #1 8013fc6: 4631 mov r1, r6 8013fc8: 4628 mov r0, r5 8013fca: 4a35 ldr r2, [pc, #212] @ (80140a0 <_printf_float+0x2e0>) 8013fcc: 47b8 blx r7 8013fce: 3001 adds r0, #1 8013fd0: f43f af51 beq.w 8013e76 <_printf_float+0xb6> 8013fd4: e9dd 380d ldrd r3, r8, [sp, #52] @ 0x34 8013fd8: 4543 cmp r3, r8 8013fda: db02 blt.n 8013fe2 <_printf_float+0x222> 8013fdc: 6823 ldr r3, [r4, #0] 8013fde: 07d8 lsls r0, r3, #31 8013fe0: d50f bpl.n 8014002 <_printf_float+0x242> 8013fe2: e9dd 2308 ldrd r2, r3, [sp, #32] 8013fe6: 4631 mov r1, r6 8013fe8: 4628 mov r0, r5 8013fea: 47b8 blx r7 8013fec: 3001 adds r0, #1 8013fee: f43f af42 beq.w 8013e76 <_printf_float+0xb6> 8013ff2: f04f 0900 mov.w r9, #0 8013ff6: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff 8013ffa: f104 0a1a add.w sl, r4, #26 8013ffe: 45c8 cmp r8, r9 8014000: dc09 bgt.n 8014016 <_printf_float+0x256> 8014002: 6823 ldr r3, [r4, #0] 8014004: 079b lsls r3, r3, #30 8014006: f100 8102 bmi.w 801420e <_printf_float+0x44e> 801400a: 68e0 ldr r0, [r4, #12] 801400c: 9b0f ldr r3, [sp, #60] @ 0x3c 801400e: 4298 cmp r0, r3 8014010: bfb8 it lt 8014012: 4618 movlt r0, r3 8014014: e731 b.n 8013e7a <_printf_float+0xba> 8014016: 2301 movs r3, #1 8014018: 4652 mov r2, sl 801401a: 4631 mov r1, r6 801401c: 4628 mov r0, r5 801401e: 47b8 blx r7 8014020: 3001 adds r0, #1 8014022: f43f af28 beq.w 8013e76 <_printf_float+0xb6> 8014026: f109 0901 add.w r9, r9, #1 801402a: e7e8 b.n 8013ffe <_printf_float+0x23e> 801402c: 9b0d ldr r3, [sp, #52] @ 0x34 801402e: 2b00 cmp r3, #0 8014030: dc38 bgt.n 80140a4 <_printf_float+0x2e4> 8014032: 2301 movs r3, #1 8014034: 4631 mov r1, r6 8014036: 4628 mov r0, r5 8014038: 4a19 ldr r2, [pc, #100] @ (80140a0 <_printf_float+0x2e0>) 801403a: 47b8 blx r7 801403c: 3001 adds r0, #1 801403e: f43f af1a beq.w 8013e76 <_printf_float+0xb6> 8014042: e9dd 390d ldrd r3, r9, [sp, #52] @ 0x34 8014046: ea59 0303 orrs.w r3, r9, r3 801404a: d102 bne.n 8014052 <_printf_float+0x292> 801404c: 6823 ldr r3, [r4, #0] 801404e: 07d9 lsls r1, r3, #31 8014050: d5d7 bpl.n 8014002 <_printf_float+0x242> 8014052: e9dd 2308 ldrd r2, r3, [sp, #32] 8014056: 4631 mov r1, r6 8014058: 4628 mov r0, r5 801405a: 47b8 blx r7 801405c: 3001 adds r0, #1 801405e: f43f af0a beq.w 8013e76 <_printf_float+0xb6> 8014062: f04f 0a00 mov.w sl, #0 8014066: f104 0b1a add.w fp, r4, #26 801406a: 9b0d ldr r3, [sp, #52] @ 0x34 801406c: 425b negs r3, r3 801406e: 4553 cmp r3, sl 8014070: dc01 bgt.n 8014076 <_printf_float+0x2b6> 8014072: 464b mov r3, r9 8014074: e793 b.n 8013f9e <_printf_float+0x1de> 8014076: 2301 movs r3, #1 8014078: 465a mov r2, fp 801407a: 4631 mov r1, r6 801407c: 4628 mov r0, r5 801407e: 47b8 blx r7 8014080: 3001 adds r0, #1 8014082: f43f aef8 beq.w 8013e76 <_printf_float+0xb6> 8014086: f10a 0a01 add.w sl, sl, #1 801408a: e7ee b.n 801406a <_printf_float+0x2aa> 801408c: 7fefffff .word 0x7fefffff 8014090: 08017270 .word 0x08017270 8014094: 0801726c .word 0x0801726c 8014098: 08017278 .word 0x08017278 801409c: 08017274 .word 0x08017274 80140a0: 0801727c .word 0x0801727c 80140a4: 6da3 ldr r3, [r4, #88] @ 0x58 80140a6: f8dd a038 ldr.w sl, [sp, #56] @ 0x38 80140aa: 4553 cmp r3, sl 80140ac: bfa8 it ge 80140ae: 4653 movge r3, sl 80140b0: 2b00 cmp r3, #0 80140b2: 4699 mov r9, r3 80140b4: dc36 bgt.n 8014124 <_printf_float+0x364> 80140b6: f04f 0b00 mov.w fp, #0 80140ba: ea29 79e9 bic.w r9, r9, r9, asr #31 80140be: f104 021a add.w r2, r4, #26 80140c2: 6da3 ldr r3, [r4, #88] @ 0x58 80140c4: 930a str r3, [sp, #40] @ 0x28 80140c6: eba3 0309 sub.w r3, r3, r9 80140ca: 455b cmp r3, fp 80140cc: dc31 bgt.n 8014132 <_printf_float+0x372> 80140ce: 9b0d ldr r3, [sp, #52] @ 0x34 80140d0: 459a cmp sl, r3 80140d2: dc3a bgt.n 801414a <_printf_float+0x38a> 80140d4: 6823 ldr r3, [r4, #0] 80140d6: 07da lsls r2, r3, #31 80140d8: d437 bmi.n 801414a <_printf_float+0x38a> 80140da: 9b0d ldr r3, [sp, #52] @ 0x34 80140dc: ebaa 0903 sub.w r9, sl, r3 80140e0: 9b0a ldr r3, [sp, #40] @ 0x28 80140e2: ebaa 0303 sub.w r3, sl, r3 80140e6: 4599 cmp r9, r3 80140e8: bfa8 it ge 80140ea: 4699 movge r9, r3 80140ec: f1b9 0f00 cmp.w r9, #0 80140f0: dc33 bgt.n 801415a <_printf_float+0x39a> 80140f2: f04f 0800 mov.w r8, #0 80140f6: ea29 79e9 bic.w r9, r9, r9, asr #31 80140fa: f104 0b1a add.w fp, r4, #26 80140fe: 9b0d ldr r3, [sp, #52] @ 0x34 8014100: ebaa 0303 sub.w r3, sl, r3 8014104: eba3 0309 sub.w r3, r3, r9 8014108: 4543 cmp r3, r8 801410a: f77f af7a ble.w 8014002 <_printf_float+0x242> 801410e: 2301 movs r3, #1 8014110: 465a mov r2, fp 8014112: 4631 mov r1, r6 8014114: 4628 mov r0, r5 8014116: 47b8 blx r7 8014118: 3001 adds r0, #1 801411a: f43f aeac beq.w 8013e76 <_printf_float+0xb6> 801411e: f108 0801 add.w r8, r8, #1 8014122: e7ec b.n 80140fe <_printf_float+0x33e> 8014124: 4642 mov r2, r8 8014126: 4631 mov r1, r6 8014128: 4628 mov r0, r5 801412a: 47b8 blx r7 801412c: 3001 adds r0, #1 801412e: d1c2 bne.n 80140b6 <_printf_float+0x2f6> 8014130: e6a1 b.n 8013e76 <_printf_float+0xb6> 8014132: 2301 movs r3, #1 8014134: 4631 mov r1, r6 8014136: 4628 mov r0, r5 8014138: 920a str r2, [sp, #40] @ 0x28 801413a: 47b8 blx r7 801413c: 3001 adds r0, #1 801413e: f43f ae9a beq.w 8013e76 <_printf_float+0xb6> 8014142: 9a0a ldr r2, [sp, #40] @ 0x28 8014144: f10b 0b01 add.w fp, fp, #1 8014148: e7bb b.n 80140c2 <_printf_float+0x302> 801414a: 4631 mov r1, r6 801414c: e9dd 2308 ldrd r2, r3, [sp, #32] 8014150: 4628 mov r0, r5 8014152: 47b8 blx r7 8014154: 3001 adds r0, #1 8014156: d1c0 bne.n 80140da <_printf_float+0x31a> 8014158: e68d b.n 8013e76 <_printf_float+0xb6> 801415a: 9a0a ldr r2, [sp, #40] @ 0x28 801415c: 464b mov r3, r9 801415e: 4631 mov r1, r6 8014160: 4628 mov r0, r5 8014162: 4442 add r2, r8 8014164: 47b8 blx r7 8014166: 3001 adds r0, #1 8014168: d1c3 bne.n 80140f2 <_printf_float+0x332> 801416a: e684 b.n 8013e76 <_printf_float+0xb6> 801416c: f8dd a038 ldr.w sl, [sp, #56] @ 0x38 8014170: f1ba 0f01 cmp.w sl, #1 8014174: dc01 bgt.n 801417a <_printf_float+0x3ba> 8014176: 07db lsls r3, r3, #31 8014178: d536 bpl.n 80141e8 <_printf_float+0x428> 801417a: 2301 movs r3, #1 801417c: 4642 mov r2, r8 801417e: 4631 mov r1, r6 8014180: 4628 mov r0, r5 8014182: 47b8 blx r7 8014184: 3001 adds r0, #1 8014186: f43f ae76 beq.w 8013e76 <_printf_float+0xb6> 801418a: e9dd 2308 ldrd r2, r3, [sp, #32] 801418e: 4631 mov r1, r6 8014190: 4628 mov r0, r5 8014192: 47b8 blx r7 8014194: 3001 adds r0, #1 8014196: f43f ae6e beq.w 8013e76 <_printf_float+0xb6> 801419a: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48 801419e: 2200 movs r2, #0 80141a0: 2300 movs r3, #0 80141a2: f10a 3aff add.w sl, sl, #4294967295 @ 0xffffffff 80141a6: f7f4 fc6b bl 8008a80 <__aeabi_dcmpeq> 80141aa: b9c0 cbnz r0, 80141de <_printf_float+0x41e> 80141ac: 4653 mov r3, sl 80141ae: f108 0201 add.w r2, r8, #1 80141b2: 4631 mov r1, r6 80141b4: 4628 mov r0, r5 80141b6: 47b8 blx r7 80141b8: 3001 adds r0, #1 80141ba: d10c bne.n 80141d6 <_printf_float+0x416> 80141bc: e65b b.n 8013e76 <_printf_float+0xb6> 80141be: 2301 movs r3, #1 80141c0: 465a mov r2, fp 80141c2: 4631 mov r1, r6 80141c4: 4628 mov r0, r5 80141c6: 47b8 blx r7 80141c8: 3001 adds r0, #1 80141ca: f43f ae54 beq.w 8013e76 <_printf_float+0xb6> 80141ce: f108 0801 add.w r8, r8, #1 80141d2: 45d0 cmp r8, sl 80141d4: dbf3 blt.n 80141be <_printf_float+0x3fe> 80141d6: 464b mov r3, r9 80141d8: f104 0250 add.w r2, r4, #80 @ 0x50 80141dc: e6e0 b.n 8013fa0 <_printf_float+0x1e0> 80141de: f04f 0800 mov.w r8, #0 80141e2: f104 0b1a add.w fp, r4, #26 80141e6: e7f4 b.n 80141d2 <_printf_float+0x412> 80141e8: 2301 movs r3, #1 80141ea: 4642 mov r2, r8 80141ec: e7e1 b.n 80141b2 <_printf_float+0x3f2> 80141ee: 2301 movs r3, #1 80141f0: 464a mov r2, r9 80141f2: 4631 mov r1, r6 80141f4: 4628 mov r0, r5 80141f6: 47b8 blx r7 80141f8: 3001 adds r0, #1 80141fa: f43f ae3c beq.w 8013e76 <_printf_float+0xb6> 80141fe: f108 0801 add.w r8, r8, #1 8014202: 68e3 ldr r3, [r4, #12] 8014204: 990f ldr r1, [sp, #60] @ 0x3c 8014206: 1a5b subs r3, r3, r1 8014208: 4543 cmp r3, r8 801420a: dcf0 bgt.n 80141ee <_printf_float+0x42e> 801420c: e6fd b.n 801400a <_printf_float+0x24a> 801420e: f04f 0800 mov.w r8, #0 8014212: f104 0919 add.w r9, r4, #25 8014216: e7f4 b.n 8014202 <_printf_float+0x442> 08014218 <_printf_common>: 8014218: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 801421c: 4616 mov r6, r2 801421e: 4698 mov r8, r3 8014220: 688a ldr r2, [r1, #8] 8014222: 690b ldr r3, [r1, #16] 8014224: 4607 mov r7, r0 8014226: 4293 cmp r3, r2 8014228: bfb8 it lt 801422a: 4613 movlt r3, r2 801422c: 6033 str r3, [r6, #0] 801422e: f891 2043 ldrb.w r2, [r1, #67] @ 0x43 8014232: 460c mov r4, r1 8014234: f8dd 9020 ldr.w r9, [sp, #32] 8014238: b10a cbz r2, 801423e <_printf_common+0x26> 801423a: 3301 adds r3, #1 801423c: 6033 str r3, [r6, #0] 801423e: 6823 ldr r3, [r4, #0] 8014240: 0699 lsls r1, r3, #26 8014242: bf42 ittt mi 8014244: 6833 ldrmi r3, [r6, #0] 8014246: 3302 addmi r3, #2 8014248: 6033 strmi r3, [r6, #0] 801424a: 6825 ldr r5, [r4, #0] 801424c: f015 0506 ands.w r5, r5, #6 8014250: d106 bne.n 8014260 <_printf_common+0x48> 8014252: f104 0a19 add.w sl, r4, #25 8014256: 68e3 ldr r3, [r4, #12] 8014258: 6832 ldr r2, [r6, #0] 801425a: 1a9b subs r3, r3, r2 801425c: 42ab cmp r3, r5 801425e: dc2b bgt.n 80142b8 <_printf_common+0xa0> 8014260: f894 3043 ldrb.w r3, [r4, #67] @ 0x43 8014264: 6822 ldr r2, [r4, #0] 8014266: 3b00 subs r3, #0 8014268: bf18 it ne 801426a: 2301 movne r3, #1 801426c: 0692 lsls r2, r2, #26 801426e: d430 bmi.n 80142d2 <_printf_common+0xba> 8014270: 4641 mov r1, r8 8014272: 4638 mov r0, r7 8014274: f104 0243 add.w r2, r4, #67 @ 0x43 8014278: 47c8 blx r9 801427a: 3001 adds r0, #1 801427c: d023 beq.n 80142c6 <_printf_common+0xae> 801427e: 6823 ldr r3, [r4, #0] 8014280: 6922 ldr r2, [r4, #16] 8014282: f003 0306 and.w r3, r3, #6 8014286: 2b04 cmp r3, #4 8014288: bf14 ite ne 801428a: 2500 movne r5, #0 801428c: 6833 ldreq r3, [r6, #0] 801428e: f04f 0600 mov.w r6, #0 8014292: bf08 it eq 8014294: 68e5 ldreq r5, [r4, #12] 8014296: f104 041a add.w r4, r4, #26 801429a: bf08 it eq 801429c: 1aed subeq r5, r5, r3 801429e: f854 3c12 ldr.w r3, [r4, #-18] 80142a2: bf08 it eq 80142a4: ea25 75e5 biceq.w r5, r5, r5, asr #31 80142a8: 4293 cmp r3, r2 80142aa: bfc4 itt gt 80142ac: 1a9b subgt r3, r3, r2 80142ae: 18ed addgt r5, r5, r3 80142b0: 42b5 cmp r5, r6 80142b2: d11a bne.n 80142ea <_printf_common+0xd2> 80142b4: 2000 movs r0, #0 80142b6: e008 b.n 80142ca <_printf_common+0xb2> 80142b8: 2301 movs r3, #1 80142ba: 4652 mov r2, sl 80142bc: 4641 mov r1, r8 80142be: 4638 mov r0, r7 80142c0: 47c8 blx r9 80142c2: 3001 adds r0, #1 80142c4: d103 bne.n 80142ce <_printf_common+0xb6> 80142c6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80142ca: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 80142ce: 3501 adds r5, #1 80142d0: e7c1 b.n 8014256 <_printf_common+0x3e> 80142d2: 2030 movs r0, #48 @ 0x30 80142d4: 18e1 adds r1, r4, r3 80142d6: f881 0043 strb.w r0, [r1, #67] @ 0x43 80142da: 1c5a adds r2, r3, #1 80142dc: f894 1045 ldrb.w r1, [r4, #69] @ 0x45 80142e0: 4422 add r2, r4 80142e2: 3302 adds r3, #2 80142e4: f882 1043 strb.w r1, [r2, #67] @ 0x43 80142e8: e7c2 b.n 8014270 <_printf_common+0x58> 80142ea: 2301 movs r3, #1 80142ec: 4622 mov r2, r4 80142ee: 4641 mov r1, r8 80142f0: 4638 mov r0, r7 80142f2: 47c8 blx r9 80142f4: 3001 adds r0, #1 80142f6: d0e6 beq.n 80142c6 <_printf_common+0xae> 80142f8: 3601 adds r6, #1 80142fa: e7d9 b.n 80142b0 <_printf_common+0x98> 080142fc <_printf_i>: 80142fc: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} 8014300: 7e0f ldrb r7, [r1, #24] 8014302: 4691 mov r9, r2 8014304: 2f78 cmp r7, #120 @ 0x78 8014306: 4680 mov r8, r0 8014308: 460c mov r4, r1 801430a: 469a mov sl, r3 801430c: 9e0c ldr r6, [sp, #48] @ 0x30 801430e: f101 0243 add.w r2, r1, #67 @ 0x43 8014312: d807 bhi.n 8014324 <_printf_i+0x28> 8014314: 2f62 cmp r7, #98 @ 0x62 8014316: d80a bhi.n 801432e <_printf_i+0x32> 8014318: 2f00 cmp r7, #0 801431a: f000 80d1 beq.w 80144c0 <_printf_i+0x1c4> 801431e: 2f58 cmp r7, #88 @ 0x58 8014320: f000 80b8 beq.w 8014494 <_printf_i+0x198> 8014324: f104 0642 add.w r6, r4, #66 @ 0x42 8014328: f884 7042 strb.w r7, [r4, #66] @ 0x42 801432c: e03a b.n 80143a4 <_printf_i+0xa8> 801432e: f1a7 0363 sub.w r3, r7, #99 @ 0x63 8014332: 2b15 cmp r3, #21 8014334: d8f6 bhi.n 8014324 <_printf_i+0x28> 8014336: a101 add r1, pc, #4 @ (adr r1, 801433c <_printf_i+0x40>) 8014338: f851 f023 ldr.w pc, [r1, r3, lsl #2] 801433c: 08014395 .word 0x08014395 8014340: 080143a9 .word 0x080143a9 8014344: 08014325 .word 0x08014325 8014348: 08014325 .word 0x08014325 801434c: 08014325 .word 0x08014325 8014350: 08014325 .word 0x08014325 8014354: 080143a9 .word 0x080143a9 8014358: 08014325 .word 0x08014325 801435c: 08014325 .word 0x08014325 8014360: 08014325 .word 0x08014325 8014364: 08014325 .word 0x08014325 8014368: 080144a7 .word 0x080144a7 801436c: 080143d3 .word 0x080143d3 8014370: 08014461 .word 0x08014461 8014374: 08014325 .word 0x08014325 8014378: 08014325 .word 0x08014325 801437c: 080144c9 .word 0x080144c9 8014380: 08014325 .word 0x08014325 8014384: 080143d3 .word 0x080143d3 8014388: 08014325 .word 0x08014325 801438c: 08014325 .word 0x08014325 8014390: 08014469 .word 0x08014469 8014394: 6833 ldr r3, [r6, #0] 8014396: 1d1a adds r2, r3, #4 8014398: 681b ldr r3, [r3, #0] 801439a: 6032 str r2, [r6, #0] 801439c: f104 0642 add.w r6, r4, #66 @ 0x42 80143a0: f884 3042 strb.w r3, [r4, #66] @ 0x42 80143a4: 2301 movs r3, #1 80143a6: e09c b.n 80144e2 <_printf_i+0x1e6> 80143a8: 6833 ldr r3, [r6, #0] 80143aa: 6820 ldr r0, [r4, #0] 80143ac: 1d19 adds r1, r3, #4 80143ae: 6031 str r1, [r6, #0] 80143b0: 0606 lsls r6, r0, #24 80143b2: d501 bpl.n 80143b8 <_printf_i+0xbc> 80143b4: 681d ldr r5, [r3, #0] 80143b6: e003 b.n 80143c0 <_printf_i+0xc4> 80143b8: 0645 lsls r5, r0, #25 80143ba: d5fb bpl.n 80143b4 <_printf_i+0xb8> 80143bc: f9b3 5000 ldrsh.w r5, [r3] 80143c0: 2d00 cmp r5, #0 80143c2: da03 bge.n 80143cc <_printf_i+0xd0> 80143c4: 232d movs r3, #45 @ 0x2d 80143c6: 426d negs r5, r5 80143c8: f884 3043 strb.w r3, [r4, #67] @ 0x43 80143cc: 230a movs r3, #10 80143ce: 4858 ldr r0, [pc, #352] @ (8014530 <_printf_i+0x234>) 80143d0: e011 b.n 80143f6 <_printf_i+0xfa> 80143d2: 6821 ldr r1, [r4, #0] 80143d4: 6833 ldr r3, [r6, #0] 80143d6: 0608 lsls r0, r1, #24 80143d8: f853 5b04 ldr.w r5, [r3], #4 80143dc: d402 bmi.n 80143e4 <_printf_i+0xe8> 80143de: 0649 lsls r1, r1, #25 80143e0: bf48 it mi 80143e2: b2ad uxthmi r5, r5 80143e4: 2f6f cmp r7, #111 @ 0x6f 80143e6: 6033 str r3, [r6, #0] 80143e8: bf14 ite ne 80143ea: 230a movne r3, #10 80143ec: 2308 moveq r3, #8 80143ee: 4850 ldr r0, [pc, #320] @ (8014530 <_printf_i+0x234>) 80143f0: 2100 movs r1, #0 80143f2: f884 1043 strb.w r1, [r4, #67] @ 0x43 80143f6: 6866 ldr r6, [r4, #4] 80143f8: 2e00 cmp r6, #0 80143fa: 60a6 str r6, [r4, #8] 80143fc: db05 blt.n 801440a <_printf_i+0x10e> 80143fe: 6821 ldr r1, [r4, #0] 8014400: 432e orrs r6, r5 8014402: f021 0104 bic.w r1, r1, #4 8014406: 6021 str r1, [r4, #0] 8014408: d04b beq.n 80144a2 <_printf_i+0x1a6> 801440a: 4616 mov r6, r2 801440c: fbb5 f1f3 udiv r1, r5, r3 8014410: fb03 5711 mls r7, r3, r1, r5 8014414: 5dc7 ldrb r7, [r0, r7] 8014416: f806 7d01 strb.w r7, [r6, #-1]! 801441a: 462f mov r7, r5 801441c: 42bb cmp r3, r7 801441e: 460d mov r5, r1 8014420: d9f4 bls.n 801440c <_printf_i+0x110> 8014422: 2b08 cmp r3, #8 8014424: d10b bne.n 801443e <_printf_i+0x142> 8014426: 6823 ldr r3, [r4, #0] 8014428: 07df lsls r7, r3, #31 801442a: d508 bpl.n 801443e <_printf_i+0x142> 801442c: 6923 ldr r3, [r4, #16] 801442e: 6861 ldr r1, [r4, #4] 8014430: 4299 cmp r1, r3 8014432: bfde ittt le 8014434: 2330 movle r3, #48 @ 0x30 8014436: f806 3c01 strble.w r3, [r6, #-1] 801443a: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff 801443e: 1b92 subs r2, r2, r6 8014440: 6122 str r2, [r4, #16] 8014442: 464b mov r3, r9 8014444: 4621 mov r1, r4 8014446: 4640 mov r0, r8 8014448: f8cd a000 str.w sl, [sp] 801444c: aa03 add r2, sp, #12 801444e: f7ff fee3 bl 8014218 <_printf_common> 8014452: 3001 adds r0, #1 8014454: d14a bne.n 80144ec <_printf_i+0x1f0> 8014456: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 801445a: b004 add sp, #16 801445c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8014460: 6823 ldr r3, [r4, #0] 8014462: f043 0320 orr.w r3, r3, #32 8014466: 6023 str r3, [r4, #0] 8014468: 2778 movs r7, #120 @ 0x78 801446a: 4832 ldr r0, [pc, #200] @ (8014534 <_printf_i+0x238>) 801446c: f884 7045 strb.w r7, [r4, #69] @ 0x45 8014470: 6823 ldr r3, [r4, #0] 8014472: 6831 ldr r1, [r6, #0] 8014474: 061f lsls r7, r3, #24 8014476: f851 5b04 ldr.w r5, [r1], #4 801447a: d402 bmi.n 8014482 <_printf_i+0x186> 801447c: 065f lsls r7, r3, #25 801447e: bf48 it mi 8014480: b2ad uxthmi r5, r5 8014482: 6031 str r1, [r6, #0] 8014484: 07d9 lsls r1, r3, #31 8014486: bf44 itt mi 8014488: f043 0320 orrmi.w r3, r3, #32 801448c: 6023 strmi r3, [r4, #0] 801448e: b11d cbz r5, 8014498 <_printf_i+0x19c> 8014490: 2310 movs r3, #16 8014492: e7ad b.n 80143f0 <_printf_i+0xf4> 8014494: 4826 ldr r0, [pc, #152] @ (8014530 <_printf_i+0x234>) 8014496: e7e9 b.n 801446c <_printf_i+0x170> 8014498: 6823 ldr r3, [r4, #0] 801449a: f023 0320 bic.w r3, r3, #32 801449e: 6023 str r3, [r4, #0] 80144a0: e7f6 b.n 8014490 <_printf_i+0x194> 80144a2: 4616 mov r6, r2 80144a4: e7bd b.n 8014422 <_printf_i+0x126> 80144a6: 6833 ldr r3, [r6, #0] 80144a8: 6825 ldr r5, [r4, #0] 80144aa: 1d18 adds r0, r3, #4 80144ac: 6961 ldr r1, [r4, #20] 80144ae: 6030 str r0, [r6, #0] 80144b0: 062e lsls r6, r5, #24 80144b2: 681b ldr r3, [r3, #0] 80144b4: d501 bpl.n 80144ba <_printf_i+0x1be> 80144b6: 6019 str r1, [r3, #0] 80144b8: e002 b.n 80144c0 <_printf_i+0x1c4> 80144ba: 0668 lsls r0, r5, #25 80144bc: d5fb bpl.n 80144b6 <_printf_i+0x1ba> 80144be: 8019 strh r1, [r3, #0] 80144c0: 2300 movs r3, #0 80144c2: 4616 mov r6, r2 80144c4: 6123 str r3, [r4, #16] 80144c6: e7bc b.n 8014442 <_printf_i+0x146> 80144c8: 6833 ldr r3, [r6, #0] 80144ca: 2100 movs r1, #0 80144cc: 1d1a adds r2, r3, #4 80144ce: 6032 str r2, [r6, #0] 80144d0: 681e ldr r6, [r3, #0] 80144d2: 6862 ldr r2, [r4, #4] 80144d4: 4630 mov r0, r6 80144d6: f000 f979 bl 80147cc 80144da: b108 cbz r0, 80144e0 <_printf_i+0x1e4> 80144dc: 1b80 subs r0, r0, r6 80144de: 6060 str r0, [r4, #4] 80144e0: 6863 ldr r3, [r4, #4] 80144e2: 6123 str r3, [r4, #16] 80144e4: 2300 movs r3, #0 80144e6: f884 3043 strb.w r3, [r4, #67] @ 0x43 80144ea: e7aa b.n 8014442 <_printf_i+0x146> 80144ec: 4632 mov r2, r6 80144ee: 4649 mov r1, r9 80144f0: 4640 mov r0, r8 80144f2: 6923 ldr r3, [r4, #16] 80144f4: 47d0 blx sl 80144f6: 3001 adds r0, #1 80144f8: d0ad beq.n 8014456 <_printf_i+0x15a> 80144fa: 6823 ldr r3, [r4, #0] 80144fc: 079b lsls r3, r3, #30 80144fe: d413 bmi.n 8014528 <_printf_i+0x22c> 8014500: 68e0 ldr r0, [r4, #12] 8014502: 9b03 ldr r3, [sp, #12] 8014504: 4298 cmp r0, r3 8014506: bfb8 it lt 8014508: 4618 movlt r0, r3 801450a: e7a6 b.n 801445a <_printf_i+0x15e> 801450c: 2301 movs r3, #1 801450e: 4632 mov r2, r6 8014510: 4649 mov r1, r9 8014512: 4640 mov r0, r8 8014514: 47d0 blx sl 8014516: 3001 adds r0, #1 8014518: d09d beq.n 8014456 <_printf_i+0x15a> 801451a: 3501 adds r5, #1 801451c: 68e3 ldr r3, [r4, #12] 801451e: 9903 ldr r1, [sp, #12] 8014520: 1a5b subs r3, r3, r1 8014522: 42ab cmp r3, r5 8014524: dcf2 bgt.n 801450c <_printf_i+0x210> 8014526: e7eb b.n 8014500 <_printf_i+0x204> 8014528: 2500 movs r5, #0 801452a: f104 0619 add.w r6, r4, #25 801452e: e7f5 b.n 801451c <_printf_i+0x220> 8014530: 0801727e .word 0x0801727e 8014534: 0801728f .word 0x0801728f 08014538 : 8014538: 2300 movs r3, #0 801453a: b510 push {r4, lr} 801453c: 4604 mov r4, r0 801453e: e9c0 3300 strd r3, r3, [r0] 8014542: e9c0 3304 strd r3, r3, [r0, #16] 8014546: 6083 str r3, [r0, #8] 8014548: 8181 strh r1, [r0, #12] 801454a: 6643 str r3, [r0, #100] @ 0x64 801454c: 81c2 strh r2, [r0, #14] 801454e: 6183 str r3, [r0, #24] 8014550: 4619 mov r1, r3 8014552: 2208 movs r2, #8 8014554: 305c adds r0, #92 @ 0x5c 8014556: f000 f8ff bl 8014758 801455a: 4b0d ldr r3, [pc, #52] @ (8014590 ) 801455c: 6224 str r4, [r4, #32] 801455e: 6263 str r3, [r4, #36] @ 0x24 8014560: 4b0c ldr r3, [pc, #48] @ (8014594 ) 8014562: 62a3 str r3, [r4, #40] @ 0x28 8014564: 4b0c ldr r3, [pc, #48] @ (8014598 ) 8014566: 62e3 str r3, [r4, #44] @ 0x2c 8014568: 4b0c ldr r3, [pc, #48] @ (801459c ) 801456a: 6323 str r3, [r4, #48] @ 0x30 801456c: 4b0c ldr r3, [pc, #48] @ (80145a0 ) 801456e: 429c cmp r4, r3 8014570: d006 beq.n 8014580 8014572: f103 0268 add.w r2, r3, #104 @ 0x68 8014576: 4294 cmp r4, r2 8014578: d002 beq.n 8014580 801457a: 33d0 adds r3, #208 @ 0xd0 801457c: 429c cmp r4, r3 801457e: d105 bne.n 801458c 8014580: f104 0058 add.w r0, r4, #88 @ 0x58 8014584: e8bd 4010 ldmia.w sp!, {r4, lr} 8014588: f000 b918 b.w 80147bc <__retarget_lock_init_recursive> 801458c: bd10 pop {r4, pc} 801458e: bf00 nop 8014590: 080163d9 .word 0x080163d9 8014594: 080163fb .word 0x080163fb 8014598: 08016433 .word 0x08016433 801459c: 08016457 .word 0x08016457 80145a0: 20001278 .word 0x20001278 080145a4 : 80145a4: 4a02 ldr r2, [pc, #8] @ (80145b0 ) 80145a6: 4903 ldr r1, [pc, #12] @ (80145b4 ) 80145a8: 4803 ldr r0, [pc, #12] @ (80145b8 ) 80145aa: f000 b8a5 b.w 80146f8 <_fwalk_sglue> 80145ae: bf00 nop 80145b0: 20000090 .word 0x20000090 80145b4: 08015c7d .word 0x08015c7d 80145b8: 200000a0 .word 0x200000a0 080145bc : 80145bc: 6841 ldr r1, [r0, #4] 80145be: 4b0c ldr r3, [pc, #48] @ (80145f0 ) 80145c0: b510 push {r4, lr} 80145c2: 4299 cmp r1, r3 80145c4: 4604 mov r4, r0 80145c6: d001 beq.n 80145cc 80145c8: f001 fb58 bl 8015c7c <_fflush_r> 80145cc: 68a1 ldr r1, [r4, #8] 80145ce: 4b09 ldr r3, [pc, #36] @ (80145f4 ) 80145d0: 4299 cmp r1, r3 80145d2: d002 beq.n 80145da 80145d4: 4620 mov r0, r4 80145d6: f001 fb51 bl 8015c7c <_fflush_r> 80145da: 68e1 ldr r1, [r4, #12] 80145dc: 4b06 ldr r3, [pc, #24] @ (80145f8 ) 80145de: 4299 cmp r1, r3 80145e0: d004 beq.n 80145ec 80145e2: 4620 mov r0, r4 80145e4: e8bd 4010 ldmia.w sp!, {r4, lr} 80145e8: f001 bb48 b.w 8015c7c <_fflush_r> 80145ec: bd10 pop {r4, pc} 80145ee: bf00 nop 80145f0: 20001278 .word 0x20001278 80145f4: 200012e0 .word 0x200012e0 80145f8: 20001348 .word 0x20001348 080145fc : 80145fc: b510 push {r4, lr} 80145fe: 4b0b ldr r3, [pc, #44] @ (801462c ) 8014600: 4c0b ldr r4, [pc, #44] @ (8014630 ) 8014602: 4a0c ldr r2, [pc, #48] @ (8014634 ) 8014604: 4620 mov r0, r4 8014606: 601a str r2, [r3, #0] 8014608: 2104 movs r1, #4 801460a: 2200 movs r2, #0 801460c: f7ff ff94 bl 8014538 8014610: f104 0068 add.w r0, r4, #104 @ 0x68 8014614: 2201 movs r2, #1 8014616: 2109 movs r1, #9 8014618: f7ff ff8e bl 8014538 801461c: f104 00d0 add.w r0, r4, #208 @ 0xd0 8014620: 2202 movs r2, #2 8014622: e8bd 4010 ldmia.w sp!, {r4, lr} 8014626: 2112 movs r1, #18 8014628: f7ff bf86 b.w 8014538 801462c: 200013b0 .word 0x200013b0 8014630: 20001278 .word 0x20001278 8014634: 080145a5 .word 0x080145a5 08014638 <__sfp_lock_acquire>: 8014638: 4801 ldr r0, [pc, #4] @ (8014640 <__sfp_lock_acquire+0x8>) 801463a: f000 b8c0 b.w 80147be <__retarget_lock_acquire_recursive> 801463e: bf00 nop 8014640: 200013b5 .word 0x200013b5 08014644 <__sfp_lock_release>: 8014644: 4801 ldr r0, [pc, #4] @ (801464c <__sfp_lock_release+0x8>) 8014646: f000 b8bb b.w 80147c0 <__retarget_lock_release_recursive> 801464a: bf00 nop 801464c: 200013b5 .word 0x200013b5 08014650 <__sinit>: 8014650: b510 push {r4, lr} 8014652: 4604 mov r4, r0 8014654: f7ff fff0 bl 8014638 <__sfp_lock_acquire> 8014658: 6a23 ldr r3, [r4, #32] 801465a: b11b cbz r3, 8014664 <__sinit+0x14> 801465c: e8bd 4010 ldmia.w sp!, {r4, lr} 8014660: f7ff bff0 b.w 8014644 <__sfp_lock_release> 8014664: 4b04 ldr r3, [pc, #16] @ (8014678 <__sinit+0x28>) 8014666: 6223 str r3, [r4, #32] 8014668: 4b04 ldr r3, [pc, #16] @ (801467c <__sinit+0x2c>) 801466a: 681b ldr r3, [r3, #0] 801466c: 2b00 cmp r3, #0 801466e: d1f5 bne.n 801465c <__sinit+0xc> 8014670: f7ff ffc4 bl 80145fc 8014674: e7f2 b.n 801465c <__sinit+0xc> 8014676: bf00 nop 8014678: 080145bd .word 0x080145bd 801467c: 200013b0 .word 0x200013b0 08014680 <_vsniprintf_r>: 8014680: b530 push {r4, r5, lr} 8014682: 4614 mov r4, r2 8014684: 2c00 cmp r4, #0 8014686: 4605 mov r5, r0 8014688: 461a mov r2, r3 801468a: b09b sub sp, #108 @ 0x6c 801468c: da05 bge.n 801469a <_vsniprintf_r+0x1a> 801468e: 238b movs r3, #139 @ 0x8b 8014690: 6003 str r3, [r0, #0] 8014692: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8014696: b01b add sp, #108 @ 0x6c 8014698: bd30 pop {r4, r5, pc} 801469a: f44f 7302 mov.w r3, #520 @ 0x208 801469e: f8ad 300c strh.w r3, [sp, #12] 80146a2: f04f 0300 mov.w r3, #0 80146a6: 9319 str r3, [sp, #100] @ 0x64 80146a8: bf0c ite eq 80146aa: 4623 moveq r3, r4 80146ac: f104 33ff addne.w r3, r4, #4294967295 @ 0xffffffff 80146b0: 9302 str r3, [sp, #8] 80146b2: 9305 str r3, [sp, #20] 80146b4: f64f 73ff movw r3, #65535 @ 0xffff 80146b8: 9100 str r1, [sp, #0] 80146ba: 9104 str r1, [sp, #16] 80146bc: f8ad 300e strh.w r3, [sp, #14] 80146c0: 4669 mov r1, sp 80146c2: 9b1e ldr r3, [sp, #120] @ 0x78 80146c4: f000 ff74 bl 80155b0 <_svfiprintf_r> 80146c8: 1c43 adds r3, r0, #1 80146ca: bfbc itt lt 80146cc: 238b movlt r3, #139 @ 0x8b 80146ce: 602b strlt r3, [r5, #0] 80146d0: 2c00 cmp r4, #0 80146d2: d0e0 beq.n 8014696 <_vsniprintf_r+0x16> 80146d4: 2200 movs r2, #0 80146d6: 9b00 ldr r3, [sp, #0] 80146d8: 701a strb r2, [r3, #0] 80146da: e7dc b.n 8014696 <_vsniprintf_r+0x16> 080146dc : 80146dc: b507 push {r0, r1, r2, lr} 80146de: 9300 str r3, [sp, #0] 80146e0: 4613 mov r3, r2 80146e2: 460a mov r2, r1 80146e4: 4601 mov r1, r0 80146e6: 4803 ldr r0, [pc, #12] @ (80146f4 ) 80146e8: 6800 ldr r0, [r0, #0] 80146ea: f7ff ffc9 bl 8014680 <_vsniprintf_r> 80146ee: b003 add sp, #12 80146f0: f85d fb04 ldr.w pc, [sp], #4 80146f4: 2000009c .word 0x2000009c 080146f8 <_fwalk_sglue>: 80146f8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 80146fc: 4607 mov r7, r0 80146fe: 4688 mov r8, r1 8014700: 4614 mov r4, r2 8014702: 2600 movs r6, #0 8014704: e9d4 9501 ldrd r9, r5, [r4, #4] 8014708: f1b9 0901 subs.w r9, r9, #1 801470c: d505 bpl.n 801471a <_fwalk_sglue+0x22> 801470e: 6824 ldr r4, [r4, #0] 8014710: 2c00 cmp r4, #0 8014712: d1f7 bne.n 8014704 <_fwalk_sglue+0xc> 8014714: 4630 mov r0, r6 8014716: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 801471a: 89ab ldrh r3, [r5, #12] 801471c: 2b01 cmp r3, #1 801471e: d907 bls.n 8014730 <_fwalk_sglue+0x38> 8014720: f9b5 300e ldrsh.w r3, [r5, #14] 8014724: 3301 adds r3, #1 8014726: d003 beq.n 8014730 <_fwalk_sglue+0x38> 8014728: 4629 mov r1, r5 801472a: 4638 mov r0, r7 801472c: 47c0 blx r8 801472e: 4306 orrs r6, r0 8014730: 3568 adds r5, #104 @ 0x68 8014732: e7e9 b.n 8014708 <_fwalk_sglue+0x10> 08014734 : 8014734: b40f push {r0, r1, r2, r3} 8014736: b507 push {r0, r1, r2, lr} 8014738: 4906 ldr r1, [pc, #24] @ (8014754 ) 801473a: ab04 add r3, sp, #16 801473c: 6808 ldr r0, [r1, #0] 801473e: f853 2b04 ldr.w r2, [r3], #4 8014742: 6881 ldr r1, [r0, #8] 8014744: 9301 str r3, [sp, #4] 8014746: f001 f857 bl 80157f8 <_vfiprintf_r> 801474a: b003 add sp, #12 801474c: f85d eb04 ldr.w lr, [sp], #4 8014750: b004 add sp, #16 8014752: 4770 bx lr 8014754: 2000009c .word 0x2000009c 08014758 : 8014758: 4603 mov r3, r0 801475a: 4402 add r2, r0 801475c: 4293 cmp r3, r2 801475e: d100 bne.n 8014762 8014760: 4770 bx lr 8014762: f803 1b01 strb.w r1, [r3], #1 8014766: e7f9 b.n 801475c 08014768 <__errno>: 8014768: 4b01 ldr r3, [pc, #4] @ (8014770 <__errno+0x8>) 801476a: 6818 ldr r0, [r3, #0] 801476c: 4770 bx lr 801476e: bf00 nop 8014770: 2000009c .word 0x2000009c 08014774 <__libc_init_array>: 8014774: b570 push {r4, r5, r6, lr} 8014776: 2600 movs r6, #0 8014778: 4d0c ldr r5, [pc, #48] @ (80147ac <__libc_init_array+0x38>) 801477a: 4c0d ldr r4, [pc, #52] @ (80147b0 <__libc_init_array+0x3c>) 801477c: 1b64 subs r4, r4, r5 801477e: 10a4 asrs r4, r4, #2 8014780: 42a6 cmp r6, r4 8014782: d109 bne.n 8014798 <__libc_init_array+0x24> 8014784: f002 f904 bl 8016990 <_init> 8014788: 2600 movs r6, #0 801478a: 4d0a ldr r5, [pc, #40] @ (80147b4 <__libc_init_array+0x40>) 801478c: 4c0a ldr r4, [pc, #40] @ (80147b8 <__libc_init_array+0x44>) 801478e: 1b64 subs r4, r4, r5 8014790: 10a4 asrs r4, r4, #2 8014792: 42a6 cmp r6, r4 8014794: d105 bne.n 80147a2 <__libc_init_array+0x2e> 8014796: bd70 pop {r4, r5, r6, pc} 8014798: f855 3b04 ldr.w r3, [r5], #4 801479c: 4798 blx r3 801479e: 3601 adds r6, #1 80147a0: e7ee b.n 8014780 <__libc_init_array+0xc> 80147a2: f855 3b04 ldr.w r3, [r5], #4 80147a6: 4798 blx r3 80147a8: 3601 adds r6, #1 80147aa: e7f2 b.n 8014792 <__libc_init_array+0x1e> 80147ac: 080175ec .word 0x080175ec 80147b0: 080175ec .word 0x080175ec 80147b4: 080175ec .word 0x080175ec 80147b8: 080175f0 .word 0x080175f0 080147bc <__retarget_lock_init_recursive>: 80147bc: 4770 bx lr 080147be <__retarget_lock_acquire_recursive>: 80147be: 4770 bx lr 080147c0 <__retarget_lock_release_recursive>: 80147c0: 4770 bx lr ... 080147c4 <_localeconv_r>: 80147c4: 4800 ldr r0, [pc, #0] @ (80147c8 <_localeconv_r+0x4>) 80147c6: 4770 bx lr 80147c8: 200001dc .word 0x200001dc 080147cc : 80147cc: 4603 mov r3, r0 80147ce: b510 push {r4, lr} 80147d0: b2c9 uxtb r1, r1 80147d2: 4402 add r2, r0 80147d4: 4293 cmp r3, r2 80147d6: 4618 mov r0, r3 80147d8: d101 bne.n 80147de 80147da: 2000 movs r0, #0 80147dc: e003 b.n 80147e6 80147de: 7804 ldrb r4, [r0, #0] 80147e0: 3301 adds r3, #1 80147e2: 428c cmp r4, r1 80147e4: d1f6 bne.n 80147d4 80147e6: bd10 pop {r4, pc} 080147e8 : 80147e8: 440a add r2, r1 80147ea: 4291 cmp r1, r2 80147ec: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff 80147f0: d100 bne.n 80147f4 80147f2: 4770 bx lr 80147f4: b510 push {r4, lr} 80147f6: f811 4b01 ldrb.w r4, [r1], #1 80147fa: 4291 cmp r1, r2 80147fc: f803 4f01 strb.w r4, [r3, #1]! 8014800: d1f9 bne.n 80147f6 8014802: bd10 pop {r4, pc} 08014804 <__assert_func>: 8014804: b51f push {r0, r1, r2, r3, r4, lr} 8014806: 4614 mov r4, r2 8014808: 461a mov r2, r3 801480a: 4b09 ldr r3, [pc, #36] @ (8014830 <__assert_func+0x2c>) 801480c: 4605 mov r5, r0 801480e: 681b ldr r3, [r3, #0] 8014810: 68d8 ldr r0, [r3, #12] 8014812: b14c cbz r4, 8014828 <__assert_func+0x24> 8014814: 4b07 ldr r3, [pc, #28] @ (8014834 <__assert_func+0x30>) 8014816: e9cd 3401 strd r3, r4, [sp, #4] 801481a: 9100 str r1, [sp, #0] 801481c: 462b mov r3, r5 801481e: 4906 ldr r1, [pc, #24] @ (8014838 <__assert_func+0x34>) 8014820: f001 fe1e bl 8016460 8014824: f001 ffe4 bl 80167f0 8014828: 4b04 ldr r3, [pc, #16] @ (801483c <__assert_func+0x38>) 801482a: 461c mov r4, r3 801482c: e7f3 b.n 8014816 <__assert_func+0x12> 801482e: bf00 nop 8014830: 2000009c .word 0x2000009c 8014834: 080172a0 .word 0x080172a0 8014838: 080172ad .word 0x080172ad 801483c: 080172db .word 0x080172db 08014840 : 8014840: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 8014844: 6903 ldr r3, [r0, #16] 8014846: 690c ldr r4, [r1, #16] 8014848: 4607 mov r7, r0 801484a: 42a3 cmp r3, r4 801484c: db7e blt.n 801494c 801484e: 3c01 subs r4, #1 8014850: 00a3 lsls r3, r4, #2 8014852: f100 0514 add.w r5, r0, #20 8014856: f101 0814 add.w r8, r1, #20 801485a: 9300 str r3, [sp, #0] 801485c: eb05 0384 add.w r3, r5, r4, lsl #2 8014860: 9301 str r3, [sp, #4] 8014862: f858 3024 ldr.w r3, [r8, r4, lsl #2] 8014866: f855 2024 ldr.w r2, [r5, r4, lsl #2] 801486a: 3301 adds r3, #1 801486c: 429a cmp r2, r3 801486e: fbb2 f6f3 udiv r6, r2, r3 8014872: eb08 0984 add.w r9, r8, r4, lsl #2 8014876: d32e bcc.n 80148d6 8014878: f04f 0a00 mov.w sl, #0 801487c: 46c4 mov ip, r8 801487e: 46ae mov lr, r5 8014880: 46d3 mov fp, sl 8014882: f85c 3b04 ldr.w r3, [ip], #4 8014886: b298 uxth r0, r3 8014888: fb06 a000 mla r0, r6, r0, sl 801488c: 0c1b lsrs r3, r3, #16 801488e: 0c02 lsrs r2, r0, #16 8014890: fb06 2303 mla r3, r6, r3, r2 8014894: f8de 2000 ldr.w r2, [lr] 8014898: b280 uxth r0, r0 801489a: b292 uxth r2, r2 801489c: 1a12 subs r2, r2, r0 801489e: 445a add r2, fp 80148a0: f8de 0000 ldr.w r0, [lr] 80148a4: ea4f 4a13 mov.w sl, r3, lsr #16 80148a8: b29b uxth r3, r3 80148aa: ebc3 4322 rsb r3, r3, r2, asr #16 80148ae: eb03 4310 add.w r3, r3, r0, lsr #16 80148b2: b292 uxth r2, r2 80148b4: ea42 4203 orr.w r2, r2, r3, lsl #16 80148b8: 45e1 cmp r9, ip 80148ba: ea4f 4b23 mov.w fp, r3, asr #16 80148be: f84e 2b04 str.w r2, [lr], #4 80148c2: d2de bcs.n 8014882 80148c4: 9b00 ldr r3, [sp, #0] 80148c6: 58eb ldr r3, [r5, r3] 80148c8: b92b cbnz r3, 80148d6 80148ca: 9b01 ldr r3, [sp, #4] 80148cc: 3b04 subs r3, #4 80148ce: 429d cmp r5, r3 80148d0: 461a mov r2, r3 80148d2: d32f bcc.n 8014934 80148d4: 613c str r4, [r7, #16] 80148d6: 4638 mov r0, r7 80148d8: f001 fc76 bl 80161c8 <__mcmp> 80148dc: 2800 cmp r0, #0 80148de: db25 blt.n 801492c 80148e0: 4629 mov r1, r5 80148e2: 2000 movs r0, #0 80148e4: f858 2b04 ldr.w r2, [r8], #4 80148e8: f8d1 c000 ldr.w ip, [r1] 80148ec: fa1f fe82 uxth.w lr, r2 80148f0: fa1f f38c uxth.w r3, ip 80148f4: eba3 030e sub.w r3, r3, lr 80148f8: 4403 add r3, r0 80148fa: 0c12 lsrs r2, r2, #16 80148fc: ebc2 4223 rsb r2, r2, r3, asr #16 8014900: eb02 421c add.w r2, r2, ip, lsr #16 8014904: b29b uxth r3, r3 8014906: ea43 4302 orr.w r3, r3, r2, lsl #16 801490a: 45c1 cmp r9, r8 801490c: ea4f 4022 mov.w r0, r2, asr #16 8014910: f841 3b04 str.w r3, [r1], #4 8014914: d2e6 bcs.n 80148e4 8014916: f855 2024 ldr.w r2, [r5, r4, lsl #2] 801491a: eb05 0384 add.w r3, r5, r4, lsl #2 801491e: b922 cbnz r2, 801492a 8014920: 3b04 subs r3, #4 8014922: 429d cmp r5, r3 8014924: 461a mov r2, r3 8014926: d30b bcc.n 8014940 8014928: 613c str r4, [r7, #16] 801492a: 3601 adds r6, #1 801492c: 4630 mov r0, r6 801492e: b003 add sp, #12 8014930: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8014934: 6812 ldr r2, [r2, #0] 8014936: 3b04 subs r3, #4 8014938: 2a00 cmp r2, #0 801493a: d1cb bne.n 80148d4 801493c: 3c01 subs r4, #1 801493e: e7c6 b.n 80148ce 8014940: 6812 ldr r2, [r2, #0] 8014942: 3b04 subs r3, #4 8014944: 2a00 cmp r2, #0 8014946: d1ef bne.n 8014928 8014948: 3c01 subs r4, #1 801494a: e7ea b.n 8014922 801494c: 2000 movs r0, #0 801494e: e7ee b.n 801492e 08014950 <_dtoa_r>: 8014950: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8014954: 4614 mov r4, r2 8014956: 461d mov r5, r3 8014958: 69c7 ldr r7, [r0, #28] 801495a: b097 sub sp, #92 @ 0x5c 801495c: 4681 mov r9, r0 801495e: e9cd 4506 strd r4, r5, [sp, #24] 8014962: 9e23 ldr r6, [sp, #140] @ 0x8c 8014964: b97f cbnz r7, 8014986 <_dtoa_r+0x36> 8014966: 2010 movs r0, #16 8014968: f001 f85e bl 8015a28 801496c: 4602 mov r2, r0 801496e: f8c9 001c str.w r0, [r9, #28] 8014972: b920 cbnz r0, 801497e <_dtoa_r+0x2e> 8014974: 21ef movs r1, #239 @ 0xef 8014976: 4bac ldr r3, [pc, #688] @ (8014c28 <_dtoa_r+0x2d8>) 8014978: 48ac ldr r0, [pc, #688] @ (8014c2c <_dtoa_r+0x2dc>) 801497a: f7ff ff43 bl 8014804 <__assert_func> 801497e: e9c0 7701 strd r7, r7, [r0, #4] 8014982: 6007 str r7, [r0, #0] 8014984: 60c7 str r7, [r0, #12] 8014986: f8d9 301c ldr.w r3, [r9, #28] 801498a: 6819 ldr r1, [r3, #0] 801498c: b159 cbz r1, 80149a6 <_dtoa_r+0x56> 801498e: 685a ldr r2, [r3, #4] 8014990: 2301 movs r3, #1 8014992: 4093 lsls r3, r2 8014994: 604a str r2, [r1, #4] 8014996: 608b str r3, [r1, #8] 8014998: 4648 mov r0, r9 801499a: f001 f9e3 bl 8015d64 <_Bfree> 801499e: 2200 movs r2, #0 80149a0: f8d9 301c ldr.w r3, [r9, #28] 80149a4: 601a str r2, [r3, #0] 80149a6: 1e2b subs r3, r5, #0 80149a8: bfaf iteee ge 80149aa: 2300 movge r3, #0 80149ac: 2201 movlt r2, #1 80149ae: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000 80149b2: 9307 strlt r3, [sp, #28] 80149b4: bfa8 it ge 80149b6: 6033 strge r3, [r6, #0] 80149b8: f8dd 801c ldr.w r8, [sp, #28] 80149bc: 4b9c ldr r3, [pc, #624] @ (8014c30 <_dtoa_r+0x2e0>) 80149be: bfb8 it lt 80149c0: 6032 strlt r2, [r6, #0] 80149c2: ea33 0308 bics.w r3, r3, r8 80149c6: d112 bne.n 80149ee <_dtoa_r+0x9e> 80149c8: f242 730f movw r3, #9999 @ 0x270f 80149cc: 9a22 ldr r2, [sp, #136] @ 0x88 80149ce: 6013 str r3, [r2, #0] 80149d0: f3c8 0313 ubfx r3, r8, #0, #20 80149d4: 4323 orrs r3, r4 80149d6: f000 855e beq.w 8015496 <_dtoa_r+0xb46> 80149da: 9b24 ldr r3, [sp, #144] @ 0x90 80149dc: f8df a254 ldr.w sl, [pc, #596] @ 8014c34 <_dtoa_r+0x2e4> 80149e0: 2b00 cmp r3, #0 80149e2: f000 8560 beq.w 80154a6 <_dtoa_r+0xb56> 80149e6: f10a 0303 add.w r3, sl, #3 80149ea: f000 bd5a b.w 80154a2 <_dtoa_r+0xb52> 80149ee: e9dd 2306 ldrd r2, r3, [sp, #24] 80149f2: e9cd 230c strd r2, r3, [sp, #48] @ 0x30 80149f6: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 80149fa: 2200 movs r2, #0 80149fc: 2300 movs r3, #0 80149fe: f7f4 f83f bl 8008a80 <__aeabi_dcmpeq> 8014a02: 4607 mov r7, r0 8014a04: b158 cbz r0, 8014a1e <_dtoa_r+0xce> 8014a06: 2301 movs r3, #1 8014a08: 9a22 ldr r2, [sp, #136] @ 0x88 8014a0a: 6013 str r3, [r2, #0] 8014a0c: 9b24 ldr r3, [sp, #144] @ 0x90 8014a0e: b113 cbz r3, 8014a16 <_dtoa_r+0xc6> 8014a10: 4b89 ldr r3, [pc, #548] @ (8014c38 <_dtoa_r+0x2e8>) 8014a12: 9a24 ldr r2, [sp, #144] @ 0x90 8014a14: 6013 str r3, [r2, #0] 8014a16: f8df a224 ldr.w sl, [pc, #548] @ 8014c3c <_dtoa_r+0x2ec> 8014a1a: f000 bd44 b.w 80154a6 <_dtoa_r+0xb56> 8014a1e: ab14 add r3, sp, #80 @ 0x50 8014a20: 9301 str r3, [sp, #4] 8014a22: ab15 add r3, sp, #84 @ 0x54 8014a24: 9300 str r3, [sp, #0] 8014a26: 4648 mov r0, r9 8014a28: e9dd 230c ldrd r2, r3, [sp, #48] @ 0x30 8014a2c: f001 fc7c bl 8016328 <__d2b> 8014a30: f3c8 560a ubfx r6, r8, #20, #11 8014a34: 9003 str r0, [sp, #12] 8014a36: 2e00 cmp r6, #0 8014a38: d078 beq.n 8014b2c <_dtoa_r+0x1dc> 8014a3a: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014a3e: 9b0d ldr r3, [sp, #52] @ 0x34 8014a40: f2a6 36ff subw r6, r6, #1023 @ 0x3ff 8014a44: f3c3 0313 ubfx r3, r3, #0, #20 8014a48: f043 537f orr.w r3, r3, #1069547520 @ 0x3fc00000 8014a4c: f443 1340 orr.w r3, r3, #3145728 @ 0x300000 8014a50: 9712 str r7, [sp, #72] @ 0x48 8014a52: 4619 mov r1, r3 8014a54: 2200 movs r2, #0 8014a56: 4b7a ldr r3, [pc, #488] @ (8014c40 <_dtoa_r+0x2f0>) 8014a58: f7f3 fbf2 bl 8008240 <__aeabi_dsub> 8014a5c: a36c add r3, pc, #432 @ (adr r3, 8014c10 <_dtoa_r+0x2c0>) 8014a5e: e9d3 2300 ldrd r2, r3, [r3] 8014a62: f7f3 fda5 bl 80085b0 <__aeabi_dmul> 8014a66: a36c add r3, pc, #432 @ (adr r3, 8014c18 <_dtoa_r+0x2c8>) 8014a68: e9d3 2300 ldrd r2, r3, [r3] 8014a6c: f7f3 fbea bl 8008244 <__adddf3> 8014a70: 4604 mov r4, r0 8014a72: 4630 mov r0, r6 8014a74: 460d mov r5, r1 8014a76: f7f3 fd31 bl 80084dc <__aeabi_i2d> 8014a7a: a369 add r3, pc, #420 @ (adr r3, 8014c20 <_dtoa_r+0x2d0>) 8014a7c: e9d3 2300 ldrd r2, r3, [r3] 8014a80: f7f3 fd96 bl 80085b0 <__aeabi_dmul> 8014a84: 4602 mov r2, r0 8014a86: 460b mov r3, r1 8014a88: 4620 mov r0, r4 8014a8a: 4629 mov r1, r5 8014a8c: f7f3 fbda bl 8008244 <__adddf3> 8014a90: 4604 mov r4, r0 8014a92: 460d mov r5, r1 8014a94: f7f4 f83c bl 8008b10 <__aeabi_d2iz> 8014a98: 2200 movs r2, #0 8014a9a: 4607 mov r7, r0 8014a9c: 2300 movs r3, #0 8014a9e: 4620 mov r0, r4 8014aa0: 4629 mov r1, r5 8014aa2: f7f3 fff7 bl 8008a94 <__aeabi_dcmplt> 8014aa6: b140 cbz r0, 8014aba <_dtoa_r+0x16a> 8014aa8: 4638 mov r0, r7 8014aaa: f7f3 fd17 bl 80084dc <__aeabi_i2d> 8014aae: 4622 mov r2, r4 8014ab0: 462b mov r3, r5 8014ab2: f7f3 ffe5 bl 8008a80 <__aeabi_dcmpeq> 8014ab6: b900 cbnz r0, 8014aba <_dtoa_r+0x16a> 8014ab8: 3f01 subs r7, #1 8014aba: 2f16 cmp r7, #22 8014abc: d854 bhi.n 8014b68 <_dtoa_r+0x218> 8014abe: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014ac2: 4b60 ldr r3, [pc, #384] @ (8014c44 <_dtoa_r+0x2f4>) 8014ac4: eb03 03c7 add.w r3, r3, r7, lsl #3 8014ac8: e9d3 2300 ldrd r2, r3, [r3] 8014acc: f7f3 ffe2 bl 8008a94 <__aeabi_dcmplt> 8014ad0: 2800 cmp r0, #0 8014ad2: d04b beq.n 8014b6c <_dtoa_r+0x21c> 8014ad4: 2300 movs r3, #0 8014ad6: 3f01 subs r7, #1 8014ad8: 930f str r3, [sp, #60] @ 0x3c 8014ada: 9b14 ldr r3, [sp, #80] @ 0x50 8014adc: 1b9b subs r3, r3, r6 8014ade: 1e5a subs r2, r3, #1 8014ae0: bf49 itett mi 8014ae2: f1c3 0301 rsbmi r3, r3, #1 8014ae6: 2300 movpl r3, #0 8014ae8: 9304 strmi r3, [sp, #16] 8014aea: 2300 movmi r3, #0 8014aec: 9209 str r2, [sp, #36] @ 0x24 8014aee: bf54 ite pl 8014af0: 9304 strpl r3, [sp, #16] 8014af2: 9309 strmi r3, [sp, #36] @ 0x24 8014af4: 2f00 cmp r7, #0 8014af6: db3b blt.n 8014b70 <_dtoa_r+0x220> 8014af8: 9b09 ldr r3, [sp, #36] @ 0x24 8014afa: 970e str r7, [sp, #56] @ 0x38 8014afc: 443b add r3, r7 8014afe: 9309 str r3, [sp, #36] @ 0x24 8014b00: 2300 movs r3, #0 8014b02: 930a str r3, [sp, #40] @ 0x28 8014b04: 9b20 ldr r3, [sp, #128] @ 0x80 8014b06: 2b09 cmp r3, #9 8014b08: d865 bhi.n 8014bd6 <_dtoa_r+0x286> 8014b0a: 2b05 cmp r3, #5 8014b0c: bfc4 itt gt 8014b0e: 3b04 subgt r3, #4 8014b10: 9320 strgt r3, [sp, #128] @ 0x80 8014b12: 9b20 ldr r3, [sp, #128] @ 0x80 8014b14: bfc8 it gt 8014b16: 2400 movgt r4, #0 8014b18: f1a3 0302 sub.w r3, r3, #2 8014b1c: bfd8 it le 8014b1e: 2401 movle r4, #1 8014b20: 2b03 cmp r3, #3 8014b22: d864 bhi.n 8014bee <_dtoa_r+0x29e> 8014b24: e8df f003 tbb [pc, r3] 8014b28: 2c385553 .word 0x2c385553 8014b2c: e9dd 6314 ldrd r6, r3, [sp, #80] @ 0x50 8014b30: 441e add r6, r3 8014b32: f206 4332 addw r3, r6, #1074 @ 0x432 8014b36: 2b20 cmp r3, #32 8014b38: bfc1 itttt gt 8014b3a: f1c3 0340 rsbgt r3, r3, #64 @ 0x40 8014b3e: fa08 f803 lslgt.w r8, r8, r3 8014b42: f206 4312 addwgt r3, r6, #1042 @ 0x412 8014b46: fa24 f303 lsrgt.w r3, r4, r3 8014b4a: bfd6 itet le 8014b4c: f1c3 0320 rsble r3, r3, #32 8014b50: ea48 0003 orrgt.w r0, r8, r3 8014b54: fa04 f003 lslle.w r0, r4, r3 8014b58: f7f3 fcb0 bl 80084bc <__aeabi_ui2d> 8014b5c: 2201 movs r2, #1 8014b5e: f1a1 73f8 sub.w r3, r1, #32505856 @ 0x1f00000 8014b62: 3e01 subs r6, #1 8014b64: 9212 str r2, [sp, #72] @ 0x48 8014b66: e774 b.n 8014a52 <_dtoa_r+0x102> 8014b68: 2301 movs r3, #1 8014b6a: e7b5 b.n 8014ad8 <_dtoa_r+0x188> 8014b6c: 900f str r0, [sp, #60] @ 0x3c 8014b6e: e7b4 b.n 8014ada <_dtoa_r+0x18a> 8014b70: 9b04 ldr r3, [sp, #16] 8014b72: 1bdb subs r3, r3, r7 8014b74: 9304 str r3, [sp, #16] 8014b76: 427b negs r3, r7 8014b78: 930a str r3, [sp, #40] @ 0x28 8014b7a: 2300 movs r3, #0 8014b7c: 930e str r3, [sp, #56] @ 0x38 8014b7e: e7c1 b.n 8014b04 <_dtoa_r+0x1b4> 8014b80: 2301 movs r3, #1 8014b82: 930b str r3, [sp, #44] @ 0x2c 8014b84: 9b21 ldr r3, [sp, #132] @ 0x84 8014b86: eb07 0b03 add.w fp, r7, r3 8014b8a: f10b 0301 add.w r3, fp, #1 8014b8e: 2b01 cmp r3, #1 8014b90: 9308 str r3, [sp, #32] 8014b92: bfb8 it lt 8014b94: 2301 movlt r3, #1 8014b96: e006 b.n 8014ba6 <_dtoa_r+0x256> 8014b98: 2301 movs r3, #1 8014b9a: 930b str r3, [sp, #44] @ 0x2c 8014b9c: 9b21 ldr r3, [sp, #132] @ 0x84 8014b9e: 2b00 cmp r3, #0 8014ba0: dd28 ble.n 8014bf4 <_dtoa_r+0x2a4> 8014ba2: 469b mov fp, r3 8014ba4: 9308 str r3, [sp, #32] 8014ba6: 2100 movs r1, #0 8014ba8: 2204 movs r2, #4 8014baa: f8d9 001c ldr.w r0, [r9, #28] 8014bae: f102 0514 add.w r5, r2, #20 8014bb2: 429d cmp r5, r3 8014bb4: d926 bls.n 8014c04 <_dtoa_r+0x2b4> 8014bb6: 6041 str r1, [r0, #4] 8014bb8: 4648 mov r0, r9 8014bba: f001 f893 bl 8015ce4 <_Balloc> 8014bbe: 4682 mov sl, r0 8014bc0: 2800 cmp r0, #0 8014bc2: d143 bne.n 8014c4c <_dtoa_r+0x2fc> 8014bc4: 4602 mov r2, r0 8014bc6: f240 11af movw r1, #431 @ 0x1af 8014bca: 4b1f ldr r3, [pc, #124] @ (8014c48 <_dtoa_r+0x2f8>) 8014bcc: e6d4 b.n 8014978 <_dtoa_r+0x28> 8014bce: 2300 movs r3, #0 8014bd0: e7e3 b.n 8014b9a <_dtoa_r+0x24a> 8014bd2: 2300 movs r3, #0 8014bd4: e7d5 b.n 8014b82 <_dtoa_r+0x232> 8014bd6: 2401 movs r4, #1 8014bd8: 2300 movs r3, #0 8014bda: 940b str r4, [sp, #44] @ 0x2c 8014bdc: 9320 str r3, [sp, #128] @ 0x80 8014bde: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff 8014be2: 2200 movs r2, #0 8014be4: 2312 movs r3, #18 8014be6: f8cd b020 str.w fp, [sp, #32] 8014bea: 9221 str r2, [sp, #132] @ 0x84 8014bec: e7db b.n 8014ba6 <_dtoa_r+0x256> 8014bee: 2301 movs r3, #1 8014bf0: 930b str r3, [sp, #44] @ 0x2c 8014bf2: e7f4 b.n 8014bde <_dtoa_r+0x28e> 8014bf4: f04f 0b01 mov.w fp, #1 8014bf8: 465b mov r3, fp 8014bfa: f8cd b020 str.w fp, [sp, #32] 8014bfe: f8cd b084 str.w fp, [sp, #132] @ 0x84 8014c02: e7d0 b.n 8014ba6 <_dtoa_r+0x256> 8014c04: 3101 adds r1, #1 8014c06: 0052 lsls r2, r2, #1 8014c08: e7d1 b.n 8014bae <_dtoa_r+0x25e> 8014c0a: bf00 nop 8014c0c: f3af 8000 nop.w 8014c10: 636f4361 .word 0x636f4361 8014c14: 3fd287a7 .word 0x3fd287a7 8014c18: 8b60c8b3 .word 0x8b60c8b3 8014c1c: 3fc68a28 .word 0x3fc68a28 8014c20: 509f79fb .word 0x509f79fb 8014c24: 3fd34413 .word 0x3fd34413 8014c28: 080172e9 .word 0x080172e9 8014c2c: 08017300 .word 0x08017300 8014c30: 7ff00000 .word 0x7ff00000 8014c34: 080172e5 .word 0x080172e5 8014c38: 0801727d .word 0x0801727d 8014c3c: 0801727c .word 0x0801727c 8014c40: 3ff80000 .word 0x3ff80000 8014c44: 08017418 .word 0x08017418 8014c48: 08017358 .word 0x08017358 8014c4c: f8d9 301c ldr.w r3, [r9, #28] 8014c50: 6018 str r0, [r3, #0] 8014c52: 9b08 ldr r3, [sp, #32] 8014c54: 2b0e cmp r3, #14 8014c56: f200 80a1 bhi.w 8014d9c <_dtoa_r+0x44c> 8014c5a: 2c00 cmp r4, #0 8014c5c: f000 809e beq.w 8014d9c <_dtoa_r+0x44c> 8014c60: 2f00 cmp r7, #0 8014c62: dd33 ble.n 8014ccc <_dtoa_r+0x37c> 8014c64: 4b9c ldr r3, [pc, #624] @ (8014ed8 <_dtoa_r+0x588>) 8014c66: f007 020f and.w r2, r7, #15 8014c6a: eb03 03c2 add.w r3, r3, r2, lsl #3 8014c6e: 05f8 lsls r0, r7, #23 8014c70: e9d3 3400 ldrd r3, r4, [r3] 8014c74: e9cd 3410 strd r3, r4, [sp, #64] @ 0x40 8014c78: ea4f 1427 mov.w r4, r7, asr #4 8014c7c: d516 bpl.n 8014cac <_dtoa_r+0x35c> 8014c7e: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014c82: 4b96 ldr r3, [pc, #600] @ (8014edc <_dtoa_r+0x58c>) 8014c84: 2603 movs r6, #3 8014c86: e9d3 2308 ldrd r2, r3, [r3, #32] 8014c8a: f7f3 fdbb bl 8008804 <__aeabi_ddiv> 8014c8e: e9cd 0106 strd r0, r1, [sp, #24] 8014c92: f004 040f and.w r4, r4, #15 8014c96: 4d91 ldr r5, [pc, #580] @ (8014edc <_dtoa_r+0x58c>) 8014c98: b954 cbnz r4, 8014cb0 <_dtoa_r+0x360> 8014c9a: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014c9e: e9dd 0106 ldrd r0, r1, [sp, #24] 8014ca2: f7f3 fdaf bl 8008804 <__aeabi_ddiv> 8014ca6: e9cd 0106 strd r0, r1, [sp, #24] 8014caa: e028 b.n 8014cfe <_dtoa_r+0x3ae> 8014cac: 2602 movs r6, #2 8014cae: e7f2 b.n 8014c96 <_dtoa_r+0x346> 8014cb0: 07e1 lsls r1, r4, #31 8014cb2: d508 bpl.n 8014cc6 <_dtoa_r+0x376> 8014cb4: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8014cb8: e9d5 2300 ldrd r2, r3, [r5] 8014cbc: f7f3 fc78 bl 80085b0 <__aeabi_dmul> 8014cc0: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014cc4: 3601 adds r6, #1 8014cc6: 1064 asrs r4, r4, #1 8014cc8: 3508 adds r5, #8 8014cca: e7e5 b.n 8014c98 <_dtoa_r+0x348> 8014ccc: f000 80af beq.w 8014e2e <_dtoa_r+0x4de> 8014cd0: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014cd4: 427c negs r4, r7 8014cd6: 4b80 ldr r3, [pc, #512] @ (8014ed8 <_dtoa_r+0x588>) 8014cd8: f004 020f and.w r2, r4, #15 8014cdc: eb03 03c2 add.w r3, r3, r2, lsl #3 8014ce0: e9d3 2300 ldrd r2, r3, [r3] 8014ce4: f7f3 fc64 bl 80085b0 <__aeabi_dmul> 8014ce8: 2602 movs r6, #2 8014cea: 2300 movs r3, #0 8014cec: e9cd 0106 strd r0, r1, [sp, #24] 8014cf0: 4d7a ldr r5, [pc, #488] @ (8014edc <_dtoa_r+0x58c>) 8014cf2: 1124 asrs r4, r4, #4 8014cf4: 2c00 cmp r4, #0 8014cf6: f040 808f bne.w 8014e18 <_dtoa_r+0x4c8> 8014cfa: 2b00 cmp r3, #0 8014cfc: d1d3 bne.n 8014ca6 <_dtoa_r+0x356> 8014cfe: e9dd 4506 ldrd r4, r5, [sp, #24] 8014d02: 9b0f ldr r3, [sp, #60] @ 0x3c 8014d04: 2b00 cmp r3, #0 8014d06: f000 8094 beq.w 8014e32 <_dtoa_r+0x4e2> 8014d0a: 2200 movs r2, #0 8014d0c: 4620 mov r0, r4 8014d0e: 4629 mov r1, r5 8014d10: 4b73 ldr r3, [pc, #460] @ (8014ee0 <_dtoa_r+0x590>) 8014d12: f7f3 febf bl 8008a94 <__aeabi_dcmplt> 8014d16: 2800 cmp r0, #0 8014d18: f000 808b beq.w 8014e32 <_dtoa_r+0x4e2> 8014d1c: 9b08 ldr r3, [sp, #32] 8014d1e: 2b00 cmp r3, #0 8014d20: f000 8087 beq.w 8014e32 <_dtoa_r+0x4e2> 8014d24: f1bb 0f00 cmp.w fp, #0 8014d28: dd34 ble.n 8014d94 <_dtoa_r+0x444> 8014d2a: 4620 mov r0, r4 8014d2c: 2200 movs r2, #0 8014d2e: 4629 mov r1, r5 8014d30: 4b6c ldr r3, [pc, #432] @ (8014ee4 <_dtoa_r+0x594>) 8014d32: f7f3 fc3d bl 80085b0 <__aeabi_dmul> 8014d36: 465c mov r4, fp 8014d38: e9cd 0106 strd r0, r1, [sp, #24] 8014d3c: f107 38ff add.w r8, r7, #4294967295 @ 0xffffffff 8014d40: 3601 adds r6, #1 8014d42: 4630 mov r0, r6 8014d44: f7f3 fbca bl 80084dc <__aeabi_i2d> 8014d48: e9dd 2306 ldrd r2, r3, [sp, #24] 8014d4c: f7f3 fc30 bl 80085b0 <__aeabi_dmul> 8014d50: 2200 movs r2, #0 8014d52: 4b65 ldr r3, [pc, #404] @ (8014ee8 <_dtoa_r+0x598>) 8014d54: f7f3 fa76 bl 8008244 <__adddf3> 8014d58: 4605 mov r5, r0 8014d5a: f1a1 7650 sub.w r6, r1, #54525952 @ 0x3400000 8014d5e: 2c00 cmp r4, #0 8014d60: d16a bne.n 8014e38 <_dtoa_r+0x4e8> 8014d62: e9dd 0106 ldrd r0, r1, [sp, #24] 8014d66: 2200 movs r2, #0 8014d68: 4b60 ldr r3, [pc, #384] @ (8014eec <_dtoa_r+0x59c>) 8014d6a: f7f3 fa69 bl 8008240 <__aeabi_dsub> 8014d6e: 4602 mov r2, r0 8014d70: 460b mov r3, r1 8014d72: e9cd 2306 strd r2, r3, [sp, #24] 8014d76: 462a mov r2, r5 8014d78: 4633 mov r3, r6 8014d7a: f7f3 fea9 bl 8008ad0 <__aeabi_dcmpgt> 8014d7e: 2800 cmp r0, #0 8014d80: f040 8298 bne.w 80152b4 <_dtoa_r+0x964> 8014d84: e9dd 0106 ldrd r0, r1, [sp, #24] 8014d88: 462a mov r2, r5 8014d8a: f106 4300 add.w r3, r6, #2147483648 @ 0x80000000 8014d8e: f7f3 fe81 bl 8008a94 <__aeabi_dcmplt> 8014d92: bb38 cbnz r0, 8014de4 <_dtoa_r+0x494> 8014d94: e9dd 340c ldrd r3, r4, [sp, #48] @ 0x30 8014d98: e9cd 3406 strd r3, r4, [sp, #24] 8014d9c: 9b15 ldr r3, [sp, #84] @ 0x54 8014d9e: 2b00 cmp r3, #0 8014da0: f2c0 8157 blt.w 8015052 <_dtoa_r+0x702> 8014da4: 2f0e cmp r7, #14 8014da6: f300 8154 bgt.w 8015052 <_dtoa_r+0x702> 8014daa: 4b4b ldr r3, [pc, #300] @ (8014ed8 <_dtoa_r+0x588>) 8014dac: eb03 03c7 add.w r3, r3, r7, lsl #3 8014db0: e9d3 3400 ldrd r3, r4, [r3] 8014db4: e9cd 3404 strd r3, r4, [sp, #16] 8014db8: 9b21 ldr r3, [sp, #132] @ 0x84 8014dba: 2b00 cmp r3, #0 8014dbc: f280 80e5 bge.w 8014f8a <_dtoa_r+0x63a> 8014dc0: 9b08 ldr r3, [sp, #32] 8014dc2: 2b00 cmp r3, #0 8014dc4: f300 80e1 bgt.w 8014f8a <_dtoa_r+0x63a> 8014dc8: d10c bne.n 8014de4 <_dtoa_r+0x494> 8014dca: e9dd 0104 ldrd r0, r1, [sp, #16] 8014dce: 2200 movs r2, #0 8014dd0: 4b46 ldr r3, [pc, #280] @ (8014eec <_dtoa_r+0x59c>) 8014dd2: f7f3 fbed bl 80085b0 <__aeabi_dmul> 8014dd6: e9dd 2306 ldrd r2, r3, [sp, #24] 8014dda: f7f3 fe6f bl 8008abc <__aeabi_dcmpge> 8014dde: 2800 cmp r0, #0 8014de0: f000 8266 beq.w 80152b0 <_dtoa_r+0x960> 8014de4: 2400 movs r4, #0 8014de6: 4625 mov r5, r4 8014de8: 9b21 ldr r3, [sp, #132] @ 0x84 8014dea: 4656 mov r6, sl 8014dec: ea6f 0803 mvn.w r8, r3 8014df0: 2700 movs r7, #0 8014df2: 4621 mov r1, r4 8014df4: 4648 mov r0, r9 8014df6: f000 ffb5 bl 8015d64 <_Bfree> 8014dfa: 2d00 cmp r5, #0 8014dfc: f000 80bd beq.w 8014f7a <_dtoa_r+0x62a> 8014e00: b12f cbz r7, 8014e0e <_dtoa_r+0x4be> 8014e02: 42af cmp r7, r5 8014e04: d003 beq.n 8014e0e <_dtoa_r+0x4be> 8014e06: 4639 mov r1, r7 8014e08: 4648 mov r0, r9 8014e0a: f000 ffab bl 8015d64 <_Bfree> 8014e0e: 4629 mov r1, r5 8014e10: 4648 mov r0, r9 8014e12: f000 ffa7 bl 8015d64 <_Bfree> 8014e16: e0b0 b.n 8014f7a <_dtoa_r+0x62a> 8014e18: 07e2 lsls r2, r4, #31 8014e1a: d505 bpl.n 8014e28 <_dtoa_r+0x4d8> 8014e1c: e9d5 2300 ldrd r2, r3, [r5] 8014e20: f7f3 fbc6 bl 80085b0 <__aeabi_dmul> 8014e24: 2301 movs r3, #1 8014e26: 3601 adds r6, #1 8014e28: 1064 asrs r4, r4, #1 8014e2a: 3508 adds r5, #8 8014e2c: e762 b.n 8014cf4 <_dtoa_r+0x3a4> 8014e2e: 2602 movs r6, #2 8014e30: e765 b.n 8014cfe <_dtoa_r+0x3ae> 8014e32: 46b8 mov r8, r7 8014e34: 9c08 ldr r4, [sp, #32] 8014e36: e784 b.n 8014d42 <_dtoa_r+0x3f2> 8014e38: 4b27 ldr r3, [pc, #156] @ (8014ed8 <_dtoa_r+0x588>) 8014e3a: 990b ldr r1, [sp, #44] @ 0x2c 8014e3c: eb03 03c4 add.w r3, r3, r4, lsl #3 8014e40: e953 2302 ldrd r2, r3, [r3, #-8] 8014e44: 4454 add r4, sl 8014e46: 2900 cmp r1, #0 8014e48: d054 beq.n 8014ef4 <_dtoa_r+0x5a4> 8014e4a: 2000 movs r0, #0 8014e4c: 4928 ldr r1, [pc, #160] @ (8014ef0 <_dtoa_r+0x5a0>) 8014e4e: f7f3 fcd9 bl 8008804 <__aeabi_ddiv> 8014e52: 4633 mov r3, r6 8014e54: 462a mov r2, r5 8014e56: f7f3 f9f3 bl 8008240 <__aeabi_dsub> 8014e5a: 4656 mov r6, sl 8014e5c: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014e60: e9dd 0106 ldrd r0, r1, [sp, #24] 8014e64: f7f3 fe54 bl 8008b10 <__aeabi_d2iz> 8014e68: 4605 mov r5, r0 8014e6a: f7f3 fb37 bl 80084dc <__aeabi_i2d> 8014e6e: 4602 mov r2, r0 8014e70: 460b mov r3, r1 8014e72: e9dd 0106 ldrd r0, r1, [sp, #24] 8014e76: f7f3 f9e3 bl 8008240 <__aeabi_dsub> 8014e7a: 4602 mov r2, r0 8014e7c: 460b mov r3, r1 8014e7e: 3530 adds r5, #48 @ 0x30 8014e80: e9cd 2306 strd r2, r3, [sp, #24] 8014e84: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014e88: f806 5b01 strb.w r5, [r6], #1 8014e8c: f7f3 fe02 bl 8008a94 <__aeabi_dcmplt> 8014e90: 2800 cmp r0, #0 8014e92: d172 bne.n 8014f7a <_dtoa_r+0x62a> 8014e94: e9dd 2306 ldrd r2, r3, [sp, #24] 8014e98: 2000 movs r0, #0 8014e9a: 4911 ldr r1, [pc, #68] @ (8014ee0 <_dtoa_r+0x590>) 8014e9c: f7f3 f9d0 bl 8008240 <__aeabi_dsub> 8014ea0: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014ea4: f7f3 fdf6 bl 8008a94 <__aeabi_dcmplt> 8014ea8: 2800 cmp r0, #0 8014eaa: f040 80b4 bne.w 8015016 <_dtoa_r+0x6c6> 8014eae: 42a6 cmp r6, r4 8014eb0: f43f af70 beq.w 8014d94 <_dtoa_r+0x444> 8014eb4: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8014eb8: 2200 movs r2, #0 8014eba: 4b0a ldr r3, [pc, #40] @ (8014ee4 <_dtoa_r+0x594>) 8014ebc: f7f3 fb78 bl 80085b0 <__aeabi_dmul> 8014ec0: 2200 movs r2, #0 8014ec2: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014ec6: e9dd 0106 ldrd r0, r1, [sp, #24] 8014eca: 4b06 ldr r3, [pc, #24] @ (8014ee4 <_dtoa_r+0x594>) 8014ecc: f7f3 fb70 bl 80085b0 <__aeabi_dmul> 8014ed0: e9cd 0106 strd r0, r1, [sp, #24] 8014ed4: e7c4 b.n 8014e60 <_dtoa_r+0x510> 8014ed6: bf00 nop 8014ed8: 08017418 .word 0x08017418 8014edc: 080173f0 .word 0x080173f0 8014ee0: 3ff00000 .word 0x3ff00000 8014ee4: 40240000 .word 0x40240000 8014ee8: 401c0000 .word 0x401c0000 8014eec: 40140000 .word 0x40140000 8014ef0: 3fe00000 .word 0x3fe00000 8014ef4: 4631 mov r1, r6 8014ef6: 4628 mov r0, r5 8014ef8: f7f3 fb5a bl 80085b0 <__aeabi_dmul> 8014efc: 4656 mov r6, sl 8014efe: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014f02: 9413 str r4, [sp, #76] @ 0x4c 8014f04: e9dd 0106 ldrd r0, r1, [sp, #24] 8014f08: f7f3 fe02 bl 8008b10 <__aeabi_d2iz> 8014f0c: 4605 mov r5, r0 8014f0e: f7f3 fae5 bl 80084dc <__aeabi_i2d> 8014f12: 4602 mov r2, r0 8014f14: 460b mov r3, r1 8014f16: e9dd 0106 ldrd r0, r1, [sp, #24] 8014f1a: f7f3 f991 bl 8008240 <__aeabi_dsub> 8014f1e: 4602 mov r2, r0 8014f20: 460b mov r3, r1 8014f22: 3530 adds r5, #48 @ 0x30 8014f24: f806 5b01 strb.w r5, [r6], #1 8014f28: 42a6 cmp r6, r4 8014f2a: e9cd 2306 strd r2, r3, [sp, #24] 8014f2e: f04f 0200 mov.w r2, #0 8014f32: d124 bne.n 8014f7e <_dtoa_r+0x62e> 8014f34: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8014f38: 4bae ldr r3, [pc, #696] @ (80151f4 <_dtoa_r+0x8a4>) 8014f3a: f7f3 f983 bl 8008244 <__adddf3> 8014f3e: 4602 mov r2, r0 8014f40: 460b mov r3, r1 8014f42: e9dd 0106 ldrd r0, r1, [sp, #24] 8014f46: f7f3 fdc3 bl 8008ad0 <__aeabi_dcmpgt> 8014f4a: 2800 cmp r0, #0 8014f4c: d163 bne.n 8015016 <_dtoa_r+0x6c6> 8014f4e: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014f52: 2000 movs r0, #0 8014f54: 49a7 ldr r1, [pc, #668] @ (80151f4 <_dtoa_r+0x8a4>) 8014f56: f7f3 f973 bl 8008240 <__aeabi_dsub> 8014f5a: 4602 mov r2, r0 8014f5c: 460b mov r3, r1 8014f5e: e9dd 0106 ldrd r0, r1, [sp, #24] 8014f62: f7f3 fd97 bl 8008a94 <__aeabi_dcmplt> 8014f66: 2800 cmp r0, #0 8014f68: f43f af14 beq.w 8014d94 <_dtoa_r+0x444> 8014f6c: 9e13 ldr r6, [sp, #76] @ 0x4c 8014f6e: 1e73 subs r3, r6, #1 8014f70: 9313 str r3, [sp, #76] @ 0x4c 8014f72: f816 3c01 ldrb.w r3, [r6, #-1] 8014f76: 2b30 cmp r3, #48 @ 0x30 8014f78: d0f8 beq.n 8014f6c <_dtoa_r+0x61c> 8014f7a: 4647 mov r7, r8 8014f7c: e03b b.n 8014ff6 <_dtoa_r+0x6a6> 8014f7e: 4b9e ldr r3, [pc, #632] @ (80151f8 <_dtoa_r+0x8a8>) 8014f80: f7f3 fb16 bl 80085b0 <__aeabi_dmul> 8014f84: e9cd 0106 strd r0, r1, [sp, #24] 8014f88: e7bc b.n 8014f04 <_dtoa_r+0x5b4> 8014f8a: 4656 mov r6, sl 8014f8c: e9dd 4506 ldrd r4, r5, [sp, #24] 8014f90: e9dd 2304 ldrd r2, r3, [sp, #16] 8014f94: 4620 mov r0, r4 8014f96: 4629 mov r1, r5 8014f98: f7f3 fc34 bl 8008804 <__aeabi_ddiv> 8014f9c: f7f3 fdb8 bl 8008b10 <__aeabi_d2iz> 8014fa0: 4680 mov r8, r0 8014fa2: f7f3 fa9b bl 80084dc <__aeabi_i2d> 8014fa6: e9dd 2304 ldrd r2, r3, [sp, #16] 8014faa: f7f3 fb01 bl 80085b0 <__aeabi_dmul> 8014fae: 4602 mov r2, r0 8014fb0: 460b mov r3, r1 8014fb2: 4620 mov r0, r4 8014fb4: 4629 mov r1, r5 8014fb6: f7f3 f943 bl 8008240 <__aeabi_dsub> 8014fba: f108 0430 add.w r4, r8, #48 @ 0x30 8014fbe: 9d08 ldr r5, [sp, #32] 8014fc0: f806 4b01 strb.w r4, [r6], #1 8014fc4: eba6 040a sub.w r4, r6, sl 8014fc8: 42a5 cmp r5, r4 8014fca: 4602 mov r2, r0 8014fcc: 460b mov r3, r1 8014fce: d133 bne.n 8015038 <_dtoa_r+0x6e8> 8014fd0: f7f3 f938 bl 8008244 <__adddf3> 8014fd4: e9dd 2304 ldrd r2, r3, [sp, #16] 8014fd8: 4604 mov r4, r0 8014fda: 460d mov r5, r1 8014fdc: f7f3 fd78 bl 8008ad0 <__aeabi_dcmpgt> 8014fe0: b9c0 cbnz r0, 8015014 <_dtoa_r+0x6c4> 8014fe2: e9dd 2304 ldrd r2, r3, [sp, #16] 8014fe6: 4620 mov r0, r4 8014fe8: 4629 mov r1, r5 8014fea: f7f3 fd49 bl 8008a80 <__aeabi_dcmpeq> 8014fee: b110 cbz r0, 8014ff6 <_dtoa_r+0x6a6> 8014ff0: f018 0f01 tst.w r8, #1 8014ff4: d10e bne.n 8015014 <_dtoa_r+0x6c4> 8014ff6: 4648 mov r0, r9 8014ff8: 9903 ldr r1, [sp, #12] 8014ffa: f000 feb3 bl 8015d64 <_Bfree> 8014ffe: 2300 movs r3, #0 8015000: 7033 strb r3, [r6, #0] 8015002: 9b22 ldr r3, [sp, #136] @ 0x88 8015004: 3701 adds r7, #1 8015006: 601f str r7, [r3, #0] 8015008: 9b24 ldr r3, [sp, #144] @ 0x90 801500a: 2b00 cmp r3, #0 801500c: f000 824b beq.w 80154a6 <_dtoa_r+0xb56> 8015010: 601e str r6, [r3, #0] 8015012: e248 b.n 80154a6 <_dtoa_r+0xb56> 8015014: 46b8 mov r8, r7 8015016: 4633 mov r3, r6 8015018: 461e mov r6, r3 801501a: f813 2d01 ldrb.w r2, [r3, #-1]! 801501e: 2a39 cmp r2, #57 @ 0x39 8015020: d106 bne.n 8015030 <_dtoa_r+0x6e0> 8015022: 459a cmp sl, r3 8015024: d1f8 bne.n 8015018 <_dtoa_r+0x6c8> 8015026: 2230 movs r2, #48 @ 0x30 8015028: f108 0801 add.w r8, r8, #1 801502c: f88a 2000 strb.w r2, [sl] 8015030: 781a ldrb r2, [r3, #0] 8015032: 3201 adds r2, #1 8015034: 701a strb r2, [r3, #0] 8015036: e7a0 b.n 8014f7a <_dtoa_r+0x62a> 8015038: 2200 movs r2, #0 801503a: 4b6f ldr r3, [pc, #444] @ (80151f8 <_dtoa_r+0x8a8>) 801503c: f7f3 fab8 bl 80085b0 <__aeabi_dmul> 8015040: 2200 movs r2, #0 8015042: 2300 movs r3, #0 8015044: 4604 mov r4, r0 8015046: 460d mov r5, r1 8015048: f7f3 fd1a bl 8008a80 <__aeabi_dcmpeq> 801504c: 2800 cmp r0, #0 801504e: d09f beq.n 8014f90 <_dtoa_r+0x640> 8015050: e7d1 b.n 8014ff6 <_dtoa_r+0x6a6> 8015052: 9a0b ldr r2, [sp, #44] @ 0x2c 8015054: 2a00 cmp r2, #0 8015056: f000 80ea beq.w 801522e <_dtoa_r+0x8de> 801505a: 9a20 ldr r2, [sp, #128] @ 0x80 801505c: 2a01 cmp r2, #1 801505e: f300 80cd bgt.w 80151fc <_dtoa_r+0x8ac> 8015062: 9a12 ldr r2, [sp, #72] @ 0x48 8015064: 2a00 cmp r2, #0 8015066: f000 80c1 beq.w 80151ec <_dtoa_r+0x89c> 801506a: f203 4333 addw r3, r3, #1075 @ 0x433 801506e: 9c0a ldr r4, [sp, #40] @ 0x28 8015070: 9e04 ldr r6, [sp, #16] 8015072: 9a04 ldr r2, [sp, #16] 8015074: 2101 movs r1, #1 8015076: 441a add r2, r3 8015078: 9204 str r2, [sp, #16] 801507a: 9a09 ldr r2, [sp, #36] @ 0x24 801507c: 4648 mov r0, r9 801507e: 441a add r2, r3 8015080: 9209 str r2, [sp, #36] @ 0x24 8015082: f000 ff23 bl 8015ecc <__i2b> 8015086: 4605 mov r5, r0 8015088: b166 cbz r6, 80150a4 <_dtoa_r+0x754> 801508a: 9b09 ldr r3, [sp, #36] @ 0x24 801508c: 2b00 cmp r3, #0 801508e: dd09 ble.n 80150a4 <_dtoa_r+0x754> 8015090: 42b3 cmp r3, r6 8015092: bfa8 it ge 8015094: 4633 movge r3, r6 8015096: 9a04 ldr r2, [sp, #16] 8015098: 1af6 subs r6, r6, r3 801509a: 1ad2 subs r2, r2, r3 801509c: 9204 str r2, [sp, #16] 801509e: 9a09 ldr r2, [sp, #36] @ 0x24 80150a0: 1ad3 subs r3, r2, r3 80150a2: 9309 str r3, [sp, #36] @ 0x24 80150a4: 9b0a ldr r3, [sp, #40] @ 0x28 80150a6: b30b cbz r3, 80150ec <_dtoa_r+0x79c> 80150a8: 9b0b ldr r3, [sp, #44] @ 0x2c 80150aa: 2b00 cmp r3, #0 80150ac: f000 80c6 beq.w 801523c <_dtoa_r+0x8ec> 80150b0: 2c00 cmp r4, #0 80150b2: f000 80c0 beq.w 8015236 <_dtoa_r+0x8e6> 80150b6: 4629 mov r1, r5 80150b8: 4622 mov r2, r4 80150ba: 4648 mov r0, r9 80150bc: f000 ffbe bl 801603c <__pow5mult> 80150c0: 9a03 ldr r2, [sp, #12] 80150c2: 4601 mov r1, r0 80150c4: 4605 mov r5, r0 80150c6: 4648 mov r0, r9 80150c8: f000 ff16 bl 8015ef8 <__multiply> 80150cc: 9903 ldr r1, [sp, #12] 80150ce: 4680 mov r8, r0 80150d0: 4648 mov r0, r9 80150d2: f000 fe47 bl 8015d64 <_Bfree> 80150d6: 9b0a ldr r3, [sp, #40] @ 0x28 80150d8: 1b1b subs r3, r3, r4 80150da: 930a str r3, [sp, #40] @ 0x28 80150dc: f000 80b1 beq.w 8015242 <_dtoa_r+0x8f2> 80150e0: 4641 mov r1, r8 80150e2: 9a0a ldr r2, [sp, #40] @ 0x28 80150e4: 4648 mov r0, r9 80150e6: f000 ffa9 bl 801603c <__pow5mult> 80150ea: 9003 str r0, [sp, #12] 80150ec: 2101 movs r1, #1 80150ee: 4648 mov r0, r9 80150f0: f000 feec bl 8015ecc <__i2b> 80150f4: 9b0e ldr r3, [sp, #56] @ 0x38 80150f6: 4604 mov r4, r0 80150f8: 2b00 cmp r3, #0 80150fa: f000 81d8 beq.w 80154ae <_dtoa_r+0xb5e> 80150fe: 461a mov r2, r3 8015100: 4601 mov r1, r0 8015102: 4648 mov r0, r9 8015104: f000 ff9a bl 801603c <__pow5mult> 8015108: 9b20 ldr r3, [sp, #128] @ 0x80 801510a: 4604 mov r4, r0 801510c: 2b01 cmp r3, #1 801510e: f300 809f bgt.w 8015250 <_dtoa_r+0x900> 8015112: 9b06 ldr r3, [sp, #24] 8015114: 2b00 cmp r3, #0 8015116: f040 8097 bne.w 8015248 <_dtoa_r+0x8f8> 801511a: 9b07 ldr r3, [sp, #28] 801511c: f3c3 0313 ubfx r3, r3, #0, #20 8015120: 2b00 cmp r3, #0 8015122: f040 8093 bne.w 801524c <_dtoa_r+0x8fc> 8015126: 9b07 ldr r3, [sp, #28] 8015128: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 801512c: 0d1b lsrs r3, r3, #20 801512e: 051b lsls r3, r3, #20 8015130: b133 cbz r3, 8015140 <_dtoa_r+0x7f0> 8015132: 9b04 ldr r3, [sp, #16] 8015134: 3301 adds r3, #1 8015136: 9304 str r3, [sp, #16] 8015138: 9b09 ldr r3, [sp, #36] @ 0x24 801513a: 3301 adds r3, #1 801513c: 9309 str r3, [sp, #36] @ 0x24 801513e: 2301 movs r3, #1 8015140: 930a str r3, [sp, #40] @ 0x28 8015142: 9b0e ldr r3, [sp, #56] @ 0x38 8015144: 2b00 cmp r3, #0 8015146: f000 81b8 beq.w 80154ba <_dtoa_r+0xb6a> 801514a: 6923 ldr r3, [r4, #16] 801514c: eb04 0383 add.w r3, r4, r3, lsl #2 8015150: 6918 ldr r0, [r3, #16] 8015152: f000 fe6f bl 8015e34 <__hi0bits> 8015156: f1c0 0020 rsb r0, r0, #32 801515a: 9b09 ldr r3, [sp, #36] @ 0x24 801515c: 4418 add r0, r3 801515e: f010 001f ands.w r0, r0, #31 8015162: f000 8082 beq.w 801526a <_dtoa_r+0x91a> 8015166: f1c0 0320 rsb r3, r0, #32 801516a: 2b04 cmp r3, #4 801516c: dd73 ble.n 8015256 <_dtoa_r+0x906> 801516e: 9b04 ldr r3, [sp, #16] 8015170: f1c0 001c rsb r0, r0, #28 8015174: 4403 add r3, r0 8015176: 9304 str r3, [sp, #16] 8015178: 9b09 ldr r3, [sp, #36] @ 0x24 801517a: 4406 add r6, r0 801517c: 4403 add r3, r0 801517e: 9309 str r3, [sp, #36] @ 0x24 8015180: 9b04 ldr r3, [sp, #16] 8015182: 2b00 cmp r3, #0 8015184: dd05 ble.n 8015192 <_dtoa_r+0x842> 8015186: 461a mov r2, r3 8015188: 4648 mov r0, r9 801518a: 9903 ldr r1, [sp, #12] 801518c: f000 ffb0 bl 80160f0 <__lshift> 8015190: 9003 str r0, [sp, #12] 8015192: 9b09 ldr r3, [sp, #36] @ 0x24 8015194: 2b00 cmp r3, #0 8015196: dd05 ble.n 80151a4 <_dtoa_r+0x854> 8015198: 4621 mov r1, r4 801519a: 461a mov r2, r3 801519c: 4648 mov r0, r9 801519e: f000 ffa7 bl 80160f0 <__lshift> 80151a2: 4604 mov r4, r0 80151a4: 9b0f ldr r3, [sp, #60] @ 0x3c 80151a6: 2b00 cmp r3, #0 80151a8: d061 beq.n 801526e <_dtoa_r+0x91e> 80151aa: 4621 mov r1, r4 80151ac: 9803 ldr r0, [sp, #12] 80151ae: f001 f80b bl 80161c8 <__mcmp> 80151b2: 2800 cmp r0, #0 80151b4: da5b bge.n 801526e <_dtoa_r+0x91e> 80151b6: 2300 movs r3, #0 80151b8: 220a movs r2, #10 80151ba: 4648 mov r0, r9 80151bc: 9903 ldr r1, [sp, #12] 80151be: f000 fdf3 bl 8015da8 <__multadd> 80151c2: 9b0b ldr r3, [sp, #44] @ 0x2c 80151c4: f107 38ff add.w r8, r7, #4294967295 @ 0xffffffff 80151c8: 9003 str r0, [sp, #12] 80151ca: 2b00 cmp r3, #0 80151cc: f000 8177 beq.w 80154be <_dtoa_r+0xb6e> 80151d0: 4629 mov r1, r5 80151d2: 2300 movs r3, #0 80151d4: 220a movs r2, #10 80151d6: 4648 mov r0, r9 80151d8: f000 fde6 bl 8015da8 <__multadd> 80151dc: f1bb 0f00 cmp.w fp, #0 80151e0: 4605 mov r5, r0 80151e2: dc6f bgt.n 80152c4 <_dtoa_r+0x974> 80151e4: 9b20 ldr r3, [sp, #128] @ 0x80 80151e6: 2b02 cmp r3, #2 80151e8: dc49 bgt.n 801527e <_dtoa_r+0x92e> 80151ea: e06b b.n 80152c4 <_dtoa_r+0x974> 80151ec: 9b14 ldr r3, [sp, #80] @ 0x50 80151ee: f1c3 0336 rsb r3, r3, #54 @ 0x36 80151f2: e73c b.n 801506e <_dtoa_r+0x71e> 80151f4: 3fe00000 .word 0x3fe00000 80151f8: 40240000 .word 0x40240000 80151fc: 9b08 ldr r3, [sp, #32] 80151fe: 1e5c subs r4, r3, #1 8015200: 9b0a ldr r3, [sp, #40] @ 0x28 8015202: 42a3 cmp r3, r4 8015204: db09 blt.n 801521a <_dtoa_r+0x8ca> 8015206: 1b1c subs r4, r3, r4 8015208: 9b08 ldr r3, [sp, #32] 801520a: 2b00 cmp r3, #0 801520c: f6bf af30 bge.w 8015070 <_dtoa_r+0x720> 8015210: 9b04 ldr r3, [sp, #16] 8015212: 9a08 ldr r2, [sp, #32] 8015214: 1a9e subs r6, r3, r2 8015216: 2300 movs r3, #0 8015218: e72b b.n 8015072 <_dtoa_r+0x722> 801521a: 9b0a ldr r3, [sp, #40] @ 0x28 801521c: 9a0e ldr r2, [sp, #56] @ 0x38 801521e: 1ae3 subs r3, r4, r3 8015220: 441a add r2, r3 8015222: 940a str r4, [sp, #40] @ 0x28 8015224: 9e04 ldr r6, [sp, #16] 8015226: 2400 movs r4, #0 8015228: 9b08 ldr r3, [sp, #32] 801522a: 920e str r2, [sp, #56] @ 0x38 801522c: e721 b.n 8015072 <_dtoa_r+0x722> 801522e: 9c0a ldr r4, [sp, #40] @ 0x28 8015230: 9e04 ldr r6, [sp, #16] 8015232: 9d0b ldr r5, [sp, #44] @ 0x2c 8015234: e728 b.n 8015088 <_dtoa_r+0x738> 8015236: f8dd 800c ldr.w r8, [sp, #12] 801523a: e751 b.n 80150e0 <_dtoa_r+0x790> 801523c: 9a0a ldr r2, [sp, #40] @ 0x28 801523e: 9903 ldr r1, [sp, #12] 8015240: e750 b.n 80150e4 <_dtoa_r+0x794> 8015242: f8cd 800c str.w r8, [sp, #12] 8015246: e751 b.n 80150ec <_dtoa_r+0x79c> 8015248: 2300 movs r3, #0 801524a: e779 b.n 8015140 <_dtoa_r+0x7f0> 801524c: 9b06 ldr r3, [sp, #24] 801524e: e777 b.n 8015140 <_dtoa_r+0x7f0> 8015250: 2300 movs r3, #0 8015252: 930a str r3, [sp, #40] @ 0x28 8015254: e779 b.n 801514a <_dtoa_r+0x7fa> 8015256: d093 beq.n 8015180 <_dtoa_r+0x830> 8015258: 9a04 ldr r2, [sp, #16] 801525a: 331c adds r3, #28 801525c: 441a add r2, r3 801525e: 9204 str r2, [sp, #16] 8015260: 9a09 ldr r2, [sp, #36] @ 0x24 8015262: 441e add r6, r3 8015264: 441a add r2, r3 8015266: 9209 str r2, [sp, #36] @ 0x24 8015268: e78a b.n 8015180 <_dtoa_r+0x830> 801526a: 4603 mov r3, r0 801526c: e7f4 b.n 8015258 <_dtoa_r+0x908> 801526e: 9b08 ldr r3, [sp, #32] 8015270: 46b8 mov r8, r7 8015272: 2b00 cmp r3, #0 8015274: dc20 bgt.n 80152b8 <_dtoa_r+0x968> 8015276: 469b mov fp, r3 8015278: 9b20 ldr r3, [sp, #128] @ 0x80 801527a: 2b02 cmp r3, #2 801527c: dd1e ble.n 80152bc <_dtoa_r+0x96c> 801527e: f1bb 0f00 cmp.w fp, #0 8015282: f47f adb1 bne.w 8014de8 <_dtoa_r+0x498> 8015286: 4621 mov r1, r4 8015288: 465b mov r3, fp 801528a: 2205 movs r2, #5 801528c: 4648 mov r0, r9 801528e: f000 fd8b bl 8015da8 <__multadd> 8015292: 4601 mov r1, r0 8015294: 4604 mov r4, r0 8015296: 9803 ldr r0, [sp, #12] 8015298: f000 ff96 bl 80161c8 <__mcmp> 801529c: 2800 cmp r0, #0 801529e: f77f ada3 ble.w 8014de8 <_dtoa_r+0x498> 80152a2: 4656 mov r6, sl 80152a4: 2331 movs r3, #49 @ 0x31 80152a6: f108 0801 add.w r8, r8, #1 80152aa: f806 3b01 strb.w r3, [r6], #1 80152ae: e59f b.n 8014df0 <_dtoa_r+0x4a0> 80152b0: 46b8 mov r8, r7 80152b2: 9c08 ldr r4, [sp, #32] 80152b4: 4625 mov r5, r4 80152b6: e7f4 b.n 80152a2 <_dtoa_r+0x952> 80152b8: f8dd b020 ldr.w fp, [sp, #32] 80152bc: 9b0b ldr r3, [sp, #44] @ 0x2c 80152be: 2b00 cmp r3, #0 80152c0: f000 8101 beq.w 80154c6 <_dtoa_r+0xb76> 80152c4: 2e00 cmp r6, #0 80152c6: dd05 ble.n 80152d4 <_dtoa_r+0x984> 80152c8: 4629 mov r1, r5 80152ca: 4632 mov r2, r6 80152cc: 4648 mov r0, r9 80152ce: f000 ff0f bl 80160f0 <__lshift> 80152d2: 4605 mov r5, r0 80152d4: 9b0a ldr r3, [sp, #40] @ 0x28 80152d6: 2b00 cmp r3, #0 80152d8: d05c beq.n 8015394 <_dtoa_r+0xa44> 80152da: 4648 mov r0, r9 80152dc: 6869 ldr r1, [r5, #4] 80152de: f000 fd01 bl 8015ce4 <_Balloc> 80152e2: 4606 mov r6, r0 80152e4: b928 cbnz r0, 80152f2 <_dtoa_r+0x9a2> 80152e6: 4602 mov r2, r0 80152e8: f240 21ef movw r1, #751 @ 0x2ef 80152ec: 4b80 ldr r3, [pc, #512] @ (80154f0 <_dtoa_r+0xba0>) 80152ee: f7ff bb43 b.w 8014978 <_dtoa_r+0x28> 80152f2: 692a ldr r2, [r5, #16] 80152f4: f105 010c add.w r1, r5, #12 80152f8: 3202 adds r2, #2 80152fa: 0092 lsls r2, r2, #2 80152fc: 300c adds r0, #12 80152fe: f7ff fa73 bl 80147e8 8015302: 2201 movs r2, #1 8015304: 4631 mov r1, r6 8015306: 4648 mov r0, r9 8015308: f000 fef2 bl 80160f0 <__lshift> 801530c: 462f mov r7, r5 801530e: 4605 mov r5, r0 8015310: f10a 0301 add.w r3, sl, #1 8015314: 9304 str r3, [sp, #16] 8015316: eb0a 030b add.w r3, sl, fp 801531a: 930a str r3, [sp, #40] @ 0x28 801531c: 9b06 ldr r3, [sp, #24] 801531e: f003 0301 and.w r3, r3, #1 8015322: 9309 str r3, [sp, #36] @ 0x24 8015324: 9b04 ldr r3, [sp, #16] 8015326: 4621 mov r1, r4 8015328: 9803 ldr r0, [sp, #12] 801532a: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff 801532e: f7ff fa87 bl 8014840 8015332: 4603 mov r3, r0 8015334: 4639 mov r1, r7 8015336: 3330 adds r3, #48 @ 0x30 8015338: 9006 str r0, [sp, #24] 801533a: 9803 ldr r0, [sp, #12] 801533c: 930b str r3, [sp, #44] @ 0x2c 801533e: f000 ff43 bl 80161c8 <__mcmp> 8015342: 462a mov r2, r5 8015344: 9008 str r0, [sp, #32] 8015346: 4621 mov r1, r4 8015348: 4648 mov r0, r9 801534a: f000 ff59 bl 8016200 <__mdiff> 801534e: 68c2 ldr r2, [r0, #12] 8015350: 4606 mov r6, r0 8015352: 9b0b ldr r3, [sp, #44] @ 0x2c 8015354: bb02 cbnz r2, 8015398 <_dtoa_r+0xa48> 8015356: 4601 mov r1, r0 8015358: 9803 ldr r0, [sp, #12] 801535a: f000 ff35 bl 80161c8 <__mcmp> 801535e: 4602 mov r2, r0 8015360: 9b0b ldr r3, [sp, #44] @ 0x2c 8015362: 4631 mov r1, r6 8015364: 4648 mov r0, r9 8015366: e9cd 320b strd r3, r2, [sp, #44] @ 0x2c 801536a: f000 fcfb bl 8015d64 <_Bfree> 801536e: 9b20 ldr r3, [sp, #128] @ 0x80 8015370: 9a0c ldr r2, [sp, #48] @ 0x30 8015372: 9e04 ldr r6, [sp, #16] 8015374: ea42 0103 orr.w r1, r2, r3 8015378: 9b09 ldr r3, [sp, #36] @ 0x24 801537a: 4319 orrs r1, r3 801537c: 9b0b ldr r3, [sp, #44] @ 0x2c 801537e: d10d bne.n 801539c <_dtoa_r+0xa4c> 8015380: 2b39 cmp r3, #57 @ 0x39 8015382: d027 beq.n 80153d4 <_dtoa_r+0xa84> 8015384: 9a08 ldr r2, [sp, #32] 8015386: 2a00 cmp r2, #0 8015388: dd01 ble.n 801538e <_dtoa_r+0xa3e> 801538a: 9b06 ldr r3, [sp, #24] 801538c: 3331 adds r3, #49 @ 0x31 801538e: f88b 3000 strb.w r3, [fp] 8015392: e52e b.n 8014df2 <_dtoa_r+0x4a2> 8015394: 4628 mov r0, r5 8015396: e7b9 b.n 801530c <_dtoa_r+0x9bc> 8015398: 2201 movs r2, #1 801539a: e7e2 b.n 8015362 <_dtoa_r+0xa12> 801539c: 9908 ldr r1, [sp, #32] 801539e: 2900 cmp r1, #0 80153a0: db04 blt.n 80153ac <_dtoa_r+0xa5c> 80153a2: 9820 ldr r0, [sp, #128] @ 0x80 80153a4: 4301 orrs r1, r0 80153a6: 9809 ldr r0, [sp, #36] @ 0x24 80153a8: 4301 orrs r1, r0 80153aa: d120 bne.n 80153ee <_dtoa_r+0xa9e> 80153ac: 2a00 cmp r2, #0 80153ae: ddee ble.n 801538e <_dtoa_r+0xa3e> 80153b0: 2201 movs r2, #1 80153b2: 9903 ldr r1, [sp, #12] 80153b4: 4648 mov r0, r9 80153b6: 9304 str r3, [sp, #16] 80153b8: f000 fe9a bl 80160f0 <__lshift> 80153bc: 4621 mov r1, r4 80153be: 9003 str r0, [sp, #12] 80153c0: f000 ff02 bl 80161c8 <__mcmp> 80153c4: 2800 cmp r0, #0 80153c6: 9b04 ldr r3, [sp, #16] 80153c8: dc02 bgt.n 80153d0 <_dtoa_r+0xa80> 80153ca: d1e0 bne.n 801538e <_dtoa_r+0xa3e> 80153cc: 07da lsls r2, r3, #31 80153ce: d5de bpl.n 801538e <_dtoa_r+0xa3e> 80153d0: 2b39 cmp r3, #57 @ 0x39 80153d2: d1da bne.n 801538a <_dtoa_r+0xa3a> 80153d4: 2339 movs r3, #57 @ 0x39 80153d6: f88b 3000 strb.w r3, [fp] 80153da: 4633 mov r3, r6 80153dc: 461e mov r6, r3 80153de: f816 2c01 ldrb.w r2, [r6, #-1] 80153e2: 3b01 subs r3, #1 80153e4: 2a39 cmp r2, #57 @ 0x39 80153e6: d04e beq.n 8015486 <_dtoa_r+0xb36> 80153e8: 3201 adds r2, #1 80153ea: 701a strb r2, [r3, #0] 80153ec: e501 b.n 8014df2 <_dtoa_r+0x4a2> 80153ee: 2a00 cmp r2, #0 80153f0: dd03 ble.n 80153fa <_dtoa_r+0xaaa> 80153f2: 2b39 cmp r3, #57 @ 0x39 80153f4: d0ee beq.n 80153d4 <_dtoa_r+0xa84> 80153f6: 3301 adds r3, #1 80153f8: e7c9 b.n 801538e <_dtoa_r+0xa3e> 80153fa: 9a04 ldr r2, [sp, #16] 80153fc: 990a ldr r1, [sp, #40] @ 0x28 80153fe: f802 3c01 strb.w r3, [r2, #-1] 8015402: 428a cmp r2, r1 8015404: d028 beq.n 8015458 <_dtoa_r+0xb08> 8015406: 2300 movs r3, #0 8015408: 220a movs r2, #10 801540a: 9903 ldr r1, [sp, #12] 801540c: 4648 mov r0, r9 801540e: f000 fccb bl 8015da8 <__multadd> 8015412: 42af cmp r7, r5 8015414: 9003 str r0, [sp, #12] 8015416: f04f 0300 mov.w r3, #0 801541a: f04f 020a mov.w r2, #10 801541e: 4639 mov r1, r7 8015420: 4648 mov r0, r9 8015422: d107 bne.n 8015434 <_dtoa_r+0xae4> 8015424: f000 fcc0 bl 8015da8 <__multadd> 8015428: 4607 mov r7, r0 801542a: 4605 mov r5, r0 801542c: 9b04 ldr r3, [sp, #16] 801542e: 3301 adds r3, #1 8015430: 9304 str r3, [sp, #16] 8015432: e777 b.n 8015324 <_dtoa_r+0x9d4> 8015434: f000 fcb8 bl 8015da8 <__multadd> 8015438: 4629 mov r1, r5 801543a: 4607 mov r7, r0 801543c: 2300 movs r3, #0 801543e: 220a movs r2, #10 8015440: 4648 mov r0, r9 8015442: f000 fcb1 bl 8015da8 <__multadd> 8015446: 4605 mov r5, r0 8015448: e7f0 b.n 801542c <_dtoa_r+0xadc> 801544a: f1bb 0f00 cmp.w fp, #0 801544e: bfcc ite gt 8015450: 465e movgt r6, fp 8015452: 2601 movle r6, #1 8015454: 2700 movs r7, #0 8015456: 4456 add r6, sl 8015458: 2201 movs r2, #1 801545a: 9903 ldr r1, [sp, #12] 801545c: 4648 mov r0, r9 801545e: 9304 str r3, [sp, #16] 8015460: f000 fe46 bl 80160f0 <__lshift> 8015464: 4621 mov r1, r4 8015466: 9003 str r0, [sp, #12] 8015468: f000 feae bl 80161c8 <__mcmp> 801546c: 2800 cmp r0, #0 801546e: dcb4 bgt.n 80153da <_dtoa_r+0xa8a> 8015470: d102 bne.n 8015478 <_dtoa_r+0xb28> 8015472: 9b04 ldr r3, [sp, #16] 8015474: 07db lsls r3, r3, #31 8015476: d4b0 bmi.n 80153da <_dtoa_r+0xa8a> 8015478: 4633 mov r3, r6 801547a: 461e mov r6, r3 801547c: f813 2d01 ldrb.w r2, [r3, #-1]! 8015480: 2a30 cmp r2, #48 @ 0x30 8015482: d0fa beq.n 801547a <_dtoa_r+0xb2a> 8015484: e4b5 b.n 8014df2 <_dtoa_r+0x4a2> 8015486: 459a cmp sl, r3 8015488: d1a8 bne.n 80153dc <_dtoa_r+0xa8c> 801548a: 2331 movs r3, #49 @ 0x31 801548c: f108 0801 add.w r8, r8, #1 8015490: f88a 3000 strb.w r3, [sl] 8015494: e4ad b.n 8014df2 <_dtoa_r+0x4a2> 8015496: 9b24 ldr r3, [sp, #144] @ 0x90 8015498: f8df a058 ldr.w sl, [pc, #88] @ 80154f4 <_dtoa_r+0xba4> 801549c: b11b cbz r3, 80154a6 <_dtoa_r+0xb56> 801549e: f10a 0308 add.w r3, sl, #8 80154a2: 9a24 ldr r2, [sp, #144] @ 0x90 80154a4: 6013 str r3, [r2, #0] 80154a6: 4650 mov r0, sl 80154a8: b017 add sp, #92 @ 0x5c 80154aa: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80154ae: 9b20 ldr r3, [sp, #128] @ 0x80 80154b0: 2b01 cmp r3, #1 80154b2: f77f ae2e ble.w 8015112 <_dtoa_r+0x7c2> 80154b6: 9b0e ldr r3, [sp, #56] @ 0x38 80154b8: 930a str r3, [sp, #40] @ 0x28 80154ba: 2001 movs r0, #1 80154bc: e64d b.n 801515a <_dtoa_r+0x80a> 80154be: f1bb 0f00 cmp.w fp, #0 80154c2: f77f aed9 ble.w 8015278 <_dtoa_r+0x928> 80154c6: 4656 mov r6, sl 80154c8: 4621 mov r1, r4 80154ca: 9803 ldr r0, [sp, #12] 80154cc: f7ff f9b8 bl 8014840 80154d0: f100 0330 add.w r3, r0, #48 @ 0x30 80154d4: f806 3b01 strb.w r3, [r6], #1 80154d8: eba6 020a sub.w r2, r6, sl 80154dc: 4593 cmp fp, r2 80154de: ddb4 ble.n 801544a <_dtoa_r+0xafa> 80154e0: 2300 movs r3, #0 80154e2: 220a movs r2, #10 80154e4: 4648 mov r0, r9 80154e6: 9903 ldr r1, [sp, #12] 80154e8: f000 fc5e bl 8015da8 <__multadd> 80154ec: 9003 str r0, [sp, #12] 80154ee: e7eb b.n 80154c8 <_dtoa_r+0xb78> 80154f0: 08017358 .word 0x08017358 80154f4: 080172dc .word 0x080172dc 080154f8 <__ssputs_r>: 80154f8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 80154fc: 461f mov r7, r3 80154fe: 688e ldr r6, [r1, #8] 8015500: 4682 mov sl, r0 8015502: 42be cmp r6, r7 8015504: 460c mov r4, r1 8015506: 4690 mov r8, r2 8015508: 680b ldr r3, [r1, #0] 801550a: d82d bhi.n 8015568 <__ssputs_r+0x70> 801550c: f9b1 200c ldrsh.w r2, [r1, #12] 8015510: f412 6f90 tst.w r2, #1152 @ 0x480 8015514: d026 beq.n 8015564 <__ssputs_r+0x6c> 8015516: 6965 ldr r5, [r4, #20] 8015518: 6909 ldr r1, [r1, #16] 801551a: eb05 0545 add.w r5, r5, r5, lsl #1 801551e: eba3 0901 sub.w r9, r3, r1 8015522: eb05 75d5 add.w r5, r5, r5, lsr #31 8015526: 1c7b adds r3, r7, #1 8015528: 444b add r3, r9 801552a: 106d asrs r5, r5, #1 801552c: 429d cmp r5, r3 801552e: bf38 it cc 8015530: 461d movcc r5, r3 8015532: 0553 lsls r3, r2, #21 8015534: d527 bpl.n 8015586 <__ssputs_r+0x8e> 8015536: 4629 mov r1, r5 8015538: f000 faa0 bl 8015a7c <_malloc_r> 801553c: 4606 mov r6, r0 801553e: b360 cbz r0, 801559a <__ssputs_r+0xa2> 8015540: 464a mov r2, r9 8015542: 6921 ldr r1, [r4, #16] 8015544: f7ff f950 bl 80147e8 8015548: 89a3 ldrh r3, [r4, #12] 801554a: f423 6390 bic.w r3, r3, #1152 @ 0x480 801554e: f043 0380 orr.w r3, r3, #128 @ 0x80 8015552: 81a3 strh r3, [r4, #12] 8015554: 6126 str r6, [r4, #16] 8015556: 444e add r6, r9 8015558: 6026 str r6, [r4, #0] 801555a: 463e mov r6, r7 801555c: 6165 str r5, [r4, #20] 801555e: eba5 0509 sub.w r5, r5, r9 8015562: 60a5 str r5, [r4, #8] 8015564: 42be cmp r6, r7 8015566: d900 bls.n 801556a <__ssputs_r+0x72> 8015568: 463e mov r6, r7 801556a: 4632 mov r2, r6 801556c: 4641 mov r1, r8 801556e: 6820 ldr r0, [r4, #0] 8015570: f001 f8ab bl 80166ca 8015574: 2000 movs r0, #0 8015576: 68a3 ldr r3, [r4, #8] 8015578: 1b9b subs r3, r3, r6 801557a: 60a3 str r3, [r4, #8] 801557c: 6823 ldr r3, [r4, #0] 801557e: 4433 add r3, r6 8015580: 6023 str r3, [r4, #0] 8015582: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8015586: 462a mov r2, r5 8015588: f000 ff7c bl 8016484 <_realloc_r> 801558c: 4606 mov r6, r0 801558e: 2800 cmp r0, #0 8015590: d1e0 bne.n 8015554 <__ssputs_r+0x5c> 8015592: 4650 mov r0, sl 8015594: 6921 ldr r1, [r4, #16] 8015596: f001 f947 bl 8016828 <_free_r> 801559a: 230c movs r3, #12 801559c: f8ca 3000 str.w r3, [sl] 80155a0: 89a3 ldrh r3, [r4, #12] 80155a2: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80155a6: f043 0340 orr.w r3, r3, #64 @ 0x40 80155aa: 81a3 strh r3, [r4, #12] 80155ac: e7e9 b.n 8015582 <__ssputs_r+0x8a> ... 080155b0 <_svfiprintf_r>: 80155b0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 80155b4: 4698 mov r8, r3 80155b6: 898b ldrh r3, [r1, #12] 80155b8: 4607 mov r7, r0 80155ba: 061b lsls r3, r3, #24 80155bc: 460d mov r5, r1 80155be: 4614 mov r4, r2 80155c0: b09d sub sp, #116 @ 0x74 80155c2: d510 bpl.n 80155e6 <_svfiprintf_r+0x36> 80155c4: 690b ldr r3, [r1, #16] 80155c6: b973 cbnz r3, 80155e6 <_svfiprintf_r+0x36> 80155c8: 2140 movs r1, #64 @ 0x40 80155ca: f000 fa57 bl 8015a7c <_malloc_r> 80155ce: 6028 str r0, [r5, #0] 80155d0: 6128 str r0, [r5, #16] 80155d2: b930 cbnz r0, 80155e2 <_svfiprintf_r+0x32> 80155d4: 230c movs r3, #12 80155d6: 603b str r3, [r7, #0] 80155d8: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80155dc: b01d add sp, #116 @ 0x74 80155de: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80155e2: 2340 movs r3, #64 @ 0x40 80155e4: 616b str r3, [r5, #20] 80155e6: 2300 movs r3, #0 80155e8: 9309 str r3, [sp, #36] @ 0x24 80155ea: 2320 movs r3, #32 80155ec: f88d 3029 strb.w r3, [sp, #41] @ 0x29 80155f0: 2330 movs r3, #48 @ 0x30 80155f2: f04f 0901 mov.w r9, #1 80155f6: f8cd 800c str.w r8, [sp, #12] 80155fa: f8df 8198 ldr.w r8, [pc, #408] @ 8015794 <_svfiprintf_r+0x1e4> 80155fe: f88d 302a strb.w r3, [sp, #42] @ 0x2a 8015602: 4623 mov r3, r4 8015604: 469a mov sl, r3 8015606: f813 2b01 ldrb.w r2, [r3], #1 801560a: b10a cbz r2, 8015610 <_svfiprintf_r+0x60> 801560c: 2a25 cmp r2, #37 @ 0x25 801560e: d1f9 bne.n 8015604 <_svfiprintf_r+0x54> 8015610: ebba 0b04 subs.w fp, sl, r4 8015614: d00b beq.n 801562e <_svfiprintf_r+0x7e> 8015616: 465b mov r3, fp 8015618: 4622 mov r2, r4 801561a: 4629 mov r1, r5 801561c: 4638 mov r0, r7 801561e: f7ff ff6b bl 80154f8 <__ssputs_r> 8015622: 3001 adds r0, #1 8015624: f000 80a7 beq.w 8015776 <_svfiprintf_r+0x1c6> 8015628: 9a09 ldr r2, [sp, #36] @ 0x24 801562a: 445a add r2, fp 801562c: 9209 str r2, [sp, #36] @ 0x24 801562e: f89a 3000 ldrb.w r3, [sl] 8015632: 2b00 cmp r3, #0 8015634: f000 809f beq.w 8015776 <_svfiprintf_r+0x1c6> 8015638: 2300 movs r3, #0 801563a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 801563e: e9cd 2305 strd r2, r3, [sp, #20] 8015642: f10a 0a01 add.w sl, sl, #1 8015646: 9304 str r3, [sp, #16] 8015648: 9307 str r3, [sp, #28] 801564a: f88d 3053 strb.w r3, [sp, #83] @ 0x53 801564e: 931a str r3, [sp, #104] @ 0x68 8015650: 4654 mov r4, sl 8015652: 2205 movs r2, #5 8015654: f814 1b01 ldrb.w r1, [r4], #1 8015658: 484e ldr r0, [pc, #312] @ (8015794 <_svfiprintf_r+0x1e4>) 801565a: f7ff f8b7 bl 80147cc 801565e: 9a04 ldr r2, [sp, #16] 8015660: b9d8 cbnz r0, 801569a <_svfiprintf_r+0xea> 8015662: 06d0 lsls r0, r2, #27 8015664: bf44 itt mi 8015666: 2320 movmi r3, #32 8015668: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 801566c: 0711 lsls r1, r2, #28 801566e: bf44 itt mi 8015670: 232b movmi r3, #43 @ 0x2b 8015672: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015676: f89a 3000 ldrb.w r3, [sl] 801567a: 2b2a cmp r3, #42 @ 0x2a 801567c: d015 beq.n 80156aa <_svfiprintf_r+0xfa> 801567e: 4654 mov r4, sl 8015680: 2000 movs r0, #0 8015682: f04f 0c0a mov.w ip, #10 8015686: 9a07 ldr r2, [sp, #28] 8015688: 4621 mov r1, r4 801568a: f811 3b01 ldrb.w r3, [r1], #1 801568e: 3b30 subs r3, #48 @ 0x30 8015690: 2b09 cmp r3, #9 8015692: d94b bls.n 801572c <_svfiprintf_r+0x17c> 8015694: b1b0 cbz r0, 80156c4 <_svfiprintf_r+0x114> 8015696: 9207 str r2, [sp, #28] 8015698: e014 b.n 80156c4 <_svfiprintf_r+0x114> 801569a: eba0 0308 sub.w r3, r0, r8 801569e: fa09 f303 lsl.w r3, r9, r3 80156a2: 4313 orrs r3, r2 80156a4: 46a2 mov sl, r4 80156a6: 9304 str r3, [sp, #16] 80156a8: e7d2 b.n 8015650 <_svfiprintf_r+0xa0> 80156aa: 9b03 ldr r3, [sp, #12] 80156ac: 1d19 adds r1, r3, #4 80156ae: 681b ldr r3, [r3, #0] 80156b0: 9103 str r1, [sp, #12] 80156b2: 2b00 cmp r3, #0 80156b4: bfbb ittet lt 80156b6: 425b neglt r3, r3 80156b8: f042 0202 orrlt.w r2, r2, #2 80156bc: 9307 strge r3, [sp, #28] 80156be: 9307 strlt r3, [sp, #28] 80156c0: bfb8 it lt 80156c2: 9204 strlt r2, [sp, #16] 80156c4: 7823 ldrb r3, [r4, #0] 80156c6: 2b2e cmp r3, #46 @ 0x2e 80156c8: d10a bne.n 80156e0 <_svfiprintf_r+0x130> 80156ca: 7863 ldrb r3, [r4, #1] 80156cc: 2b2a cmp r3, #42 @ 0x2a 80156ce: d132 bne.n 8015736 <_svfiprintf_r+0x186> 80156d0: 9b03 ldr r3, [sp, #12] 80156d2: 3402 adds r4, #2 80156d4: 1d1a adds r2, r3, #4 80156d6: 681b ldr r3, [r3, #0] 80156d8: 9203 str r2, [sp, #12] 80156da: ea43 73e3 orr.w r3, r3, r3, asr #31 80156de: 9305 str r3, [sp, #20] 80156e0: f8df a0b4 ldr.w sl, [pc, #180] @ 8015798 <_svfiprintf_r+0x1e8> 80156e4: 2203 movs r2, #3 80156e6: 4650 mov r0, sl 80156e8: 7821 ldrb r1, [r4, #0] 80156ea: f7ff f86f bl 80147cc 80156ee: b138 cbz r0, 8015700 <_svfiprintf_r+0x150> 80156f0: 2240 movs r2, #64 @ 0x40 80156f2: 9b04 ldr r3, [sp, #16] 80156f4: eba0 000a sub.w r0, r0, sl 80156f8: 4082 lsls r2, r0 80156fa: 4313 orrs r3, r2 80156fc: 3401 adds r4, #1 80156fe: 9304 str r3, [sp, #16] 8015700: f814 1b01 ldrb.w r1, [r4], #1 8015704: 2206 movs r2, #6 8015706: 4825 ldr r0, [pc, #148] @ (801579c <_svfiprintf_r+0x1ec>) 8015708: f88d 1028 strb.w r1, [sp, #40] @ 0x28 801570c: f7ff f85e bl 80147cc 8015710: 2800 cmp r0, #0 8015712: d036 beq.n 8015782 <_svfiprintf_r+0x1d2> 8015714: 4b22 ldr r3, [pc, #136] @ (80157a0 <_svfiprintf_r+0x1f0>) 8015716: bb1b cbnz r3, 8015760 <_svfiprintf_r+0x1b0> 8015718: 9b03 ldr r3, [sp, #12] 801571a: 3307 adds r3, #7 801571c: f023 0307 bic.w r3, r3, #7 8015720: 3308 adds r3, #8 8015722: 9303 str r3, [sp, #12] 8015724: 9b09 ldr r3, [sp, #36] @ 0x24 8015726: 4433 add r3, r6 8015728: 9309 str r3, [sp, #36] @ 0x24 801572a: e76a b.n 8015602 <_svfiprintf_r+0x52> 801572c: 460c mov r4, r1 801572e: 2001 movs r0, #1 8015730: fb0c 3202 mla r2, ip, r2, r3 8015734: e7a8 b.n 8015688 <_svfiprintf_r+0xd8> 8015736: 2300 movs r3, #0 8015738: f04f 0c0a mov.w ip, #10 801573c: 4619 mov r1, r3 801573e: 3401 adds r4, #1 8015740: 9305 str r3, [sp, #20] 8015742: 4620 mov r0, r4 8015744: f810 2b01 ldrb.w r2, [r0], #1 8015748: 3a30 subs r2, #48 @ 0x30 801574a: 2a09 cmp r2, #9 801574c: d903 bls.n 8015756 <_svfiprintf_r+0x1a6> 801574e: 2b00 cmp r3, #0 8015750: d0c6 beq.n 80156e0 <_svfiprintf_r+0x130> 8015752: 9105 str r1, [sp, #20] 8015754: e7c4 b.n 80156e0 <_svfiprintf_r+0x130> 8015756: 4604 mov r4, r0 8015758: 2301 movs r3, #1 801575a: fb0c 2101 mla r1, ip, r1, r2 801575e: e7f0 b.n 8015742 <_svfiprintf_r+0x192> 8015760: ab03 add r3, sp, #12 8015762: 9300 str r3, [sp, #0] 8015764: 462a mov r2, r5 8015766: 4638 mov r0, r7 8015768: 4b0e ldr r3, [pc, #56] @ (80157a4 <_svfiprintf_r+0x1f4>) 801576a: a904 add r1, sp, #16 801576c: f7fe fb28 bl 8013dc0 <_printf_float> 8015770: 1c42 adds r2, r0, #1 8015772: 4606 mov r6, r0 8015774: d1d6 bne.n 8015724 <_svfiprintf_r+0x174> 8015776: 89ab ldrh r3, [r5, #12] 8015778: 065b lsls r3, r3, #25 801577a: f53f af2d bmi.w 80155d8 <_svfiprintf_r+0x28> 801577e: 9809 ldr r0, [sp, #36] @ 0x24 8015780: e72c b.n 80155dc <_svfiprintf_r+0x2c> 8015782: ab03 add r3, sp, #12 8015784: 9300 str r3, [sp, #0] 8015786: 462a mov r2, r5 8015788: 4638 mov r0, r7 801578a: 4b06 ldr r3, [pc, #24] @ (80157a4 <_svfiprintf_r+0x1f4>) 801578c: a904 add r1, sp, #16 801578e: f7fe fdb5 bl 80142fc <_printf_i> 8015792: e7ed b.n 8015770 <_svfiprintf_r+0x1c0> 8015794: 08017369 .word 0x08017369 8015798: 0801736f .word 0x0801736f 801579c: 08017373 .word 0x08017373 80157a0: 08013dc1 .word 0x08013dc1 80157a4: 080154f9 .word 0x080154f9 080157a8 <__sfputc_r>: 80157a8: 6893 ldr r3, [r2, #8] 80157aa: b410 push {r4} 80157ac: 3b01 subs r3, #1 80157ae: 2b00 cmp r3, #0 80157b0: 6093 str r3, [r2, #8] 80157b2: da07 bge.n 80157c4 <__sfputc_r+0x1c> 80157b4: 6994 ldr r4, [r2, #24] 80157b6: 42a3 cmp r3, r4 80157b8: db01 blt.n 80157be <__sfputc_r+0x16> 80157ba: 290a cmp r1, #10 80157bc: d102 bne.n 80157c4 <__sfputc_r+0x1c> 80157be: bc10 pop {r4} 80157c0: f000 be8e b.w 80164e0 <__swbuf_r> 80157c4: 6813 ldr r3, [r2, #0] 80157c6: 1c58 adds r0, r3, #1 80157c8: 6010 str r0, [r2, #0] 80157ca: 7019 strb r1, [r3, #0] 80157cc: 4608 mov r0, r1 80157ce: bc10 pop {r4} 80157d0: 4770 bx lr 080157d2 <__sfputs_r>: 80157d2: b5f8 push {r3, r4, r5, r6, r7, lr} 80157d4: 4606 mov r6, r0 80157d6: 460f mov r7, r1 80157d8: 4614 mov r4, r2 80157da: 18d5 adds r5, r2, r3 80157dc: 42ac cmp r4, r5 80157de: d101 bne.n 80157e4 <__sfputs_r+0x12> 80157e0: 2000 movs r0, #0 80157e2: e007 b.n 80157f4 <__sfputs_r+0x22> 80157e4: 463a mov r2, r7 80157e6: 4630 mov r0, r6 80157e8: f814 1b01 ldrb.w r1, [r4], #1 80157ec: f7ff ffdc bl 80157a8 <__sfputc_r> 80157f0: 1c43 adds r3, r0, #1 80157f2: d1f3 bne.n 80157dc <__sfputs_r+0xa> 80157f4: bdf8 pop {r3, r4, r5, r6, r7, pc} ... 080157f8 <_vfiprintf_r>: 80157f8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 80157fc: 460d mov r5, r1 80157fe: 4614 mov r4, r2 8015800: 4698 mov r8, r3 8015802: 4606 mov r6, r0 8015804: b09d sub sp, #116 @ 0x74 8015806: b118 cbz r0, 8015810 <_vfiprintf_r+0x18> 8015808: 6a03 ldr r3, [r0, #32] 801580a: b90b cbnz r3, 8015810 <_vfiprintf_r+0x18> 801580c: f7fe ff20 bl 8014650 <__sinit> 8015810: 6e6b ldr r3, [r5, #100] @ 0x64 8015812: 07d9 lsls r1, r3, #31 8015814: d405 bmi.n 8015822 <_vfiprintf_r+0x2a> 8015816: 89ab ldrh r3, [r5, #12] 8015818: 059a lsls r2, r3, #22 801581a: d402 bmi.n 8015822 <_vfiprintf_r+0x2a> 801581c: 6da8 ldr r0, [r5, #88] @ 0x58 801581e: f7fe ffce bl 80147be <__retarget_lock_acquire_recursive> 8015822: 89ab ldrh r3, [r5, #12] 8015824: 071b lsls r3, r3, #28 8015826: d501 bpl.n 801582c <_vfiprintf_r+0x34> 8015828: 692b ldr r3, [r5, #16] 801582a: b99b cbnz r3, 8015854 <_vfiprintf_r+0x5c> 801582c: 4629 mov r1, r5 801582e: 4630 mov r0, r6 8015830: f000 fe94 bl 801655c <__swsetup_r> 8015834: b170 cbz r0, 8015854 <_vfiprintf_r+0x5c> 8015836: 6e6b ldr r3, [r5, #100] @ 0x64 8015838: 07dc lsls r4, r3, #31 801583a: d504 bpl.n 8015846 <_vfiprintf_r+0x4e> 801583c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015840: b01d add sp, #116 @ 0x74 8015842: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015846: 89ab ldrh r3, [r5, #12] 8015848: 0598 lsls r0, r3, #22 801584a: d4f7 bmi.n 801583c <_vfiprintf_r+0x44> 801584c: 6da8 ldr r0, [r5, #88] @ 0x58 801584e: f7fe ffb7 bl 80147c0 <__retarget_lock_release_recursive> 8015852: e7f3 b.n 801583c <_vfiprintf_r+0x44> 8015854: 2300 movs r3, #0 8015856: 9309 str r3, [sp, #36] @ 0x24 8015858: 2320 movs r3, #32 801585a: f88d 3029 strb.w r3, [sp, #41] @ 0x29 801585e: 2330 movs r3, #48 @ 0x30 8015860: f04f 0901 mov.w r9, #1 8015864: f8cd 800c str.w r8, [sp, #12] 8015868: f8df 81a8 ldr.w r8, [pc, #424] @ 8015a14 <_vfiprintf_r+0x21c> 801586c: f88d 302a strb.w r3, [sp, #42] @ 0x2a 8015870: 4623 mov r3, r4 8015872: 469a mov sl, r3 8015874: f813 2b01 ldrb.w r2, [r3], #1 8015878: b10a cbz r2, 801587e <_vfiprintf_r+0x86> 801587a: 2a25 cmp r2, #37 @ 0x25 801587c: d1f9 bne.n 8015872 <_vfiprintf_r+0x7a> 801587e: ebba 0b04 subs.w fp, sl, r4 8015882: d00b beq.n 801589c <_vfiprintf_r+0xa4> 8015884: 465b mov r3, fp 8015886: 4622 mov r2, r4 8015888: 4629 mov r1, r5 801588a: 4630 mov r0, r6 801588c: f7ff ffa1 bl 80157d2 <__sfputs_r> 8015890: 3001 adds r0, #1 8015892: f000 80a7 beq.w 80159e4 <_vfiprintf_r+0x1ec> 8015896: 9a09 ldr r2, [sp, #36] @ 0x24 8015898: 445a add r2, fp 801589a: 9209 str r2, [sp, #36] @ 0x24 801589c: f89a 3000 ldrb.w r3, [sl] 80158a0: 2b00 cmp r3, #0 80158a2: f000 809f beq.w 80159e4 <_vfiprintf_r+0x1ec> 80158a6: 2300 movs r3, #0 80158a8: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 80158ac: e9cd 2305 strd r2, r3, [sp, #20] 80158b0: f10a 0a01 add.w sl, sl, #1 80158b4: 9304 str r3, [sp, #16] 80158b6: 9307 str r3, [sp, #28] 80158b8: f88d 3053 strb.w r3, [sp, #83] @ 0x53 80158bc: 931a str r3, [sp, #104] @ 0x68 80158be: 4654 mov r4, sl 80158c0: 2205 movs r2, #5 80158c2: f814 1b01 ldrb.w r1, [r4], #1 80158c6: 4853 ldr r0, [pc, #332] @ (8015a14 <_vfiprintf_r+0x21c>) 80158c8: f7fe ff80 bl 80147cc 80158cc: 9a04 ldr r2, [sp, #16] 80158ce: b9d8 cbnz r0, 8015908 <_vfiprintf_r+0x110> 80158d0: 06d1 lsls r1, r2, #27 80158d2: bf44 itt mi 80158d4: 2320 movmi r3, #32 80158d6: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 80158da: 0713 lsls r3, r2, #28 80158dc: bf44 itt mi 80158de: 232b movmi r3, #43 @ 0x2b 80158e0: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 80158e4: f89a 3000 ldrb.w r3, [sl] 80158e8: 2b2a cmp r3, #42 @ 0x2a 80158ea: d015 beq.n 8015918 <_vfiprintf_r+0x120> 80158ec: 4654 mov r4, sl 80158ee: 2000 movs r0, #0 80158f0: f04f 0c0a mov.w ip, #10 80158f4: 9a07 ldr r2, [sp, #28] 80158f6: 4621 mov r1, r4 80158f8: f811 3b01 ldrb.w r3, [r1], #1 80158fc: 3b30 subs r3, #48 @ 0x30 80158fe: 2b09 cmp r3, #9 8015900: d94b bls.n 801599a <_vfiprintf_r+0x1a2> 8015902: b1b0 cbz r0, 8015932 <_vfiprintf_r+0x13a> 8015904: 9207 str r2, [sp, #28] 8015906: e014 b.n 8015932 <_vfiprintf_r+0x13a> 8015908: eba0 0308 sub.w r3, r0, r8 801590c: fa09 f303 lsl.w r3, r9, r3 8015910: 4313 orrs r3, r2 8015912: 46a2 mov sl, r4 8015914: 9304 str r3, [sp, #16] 8015916: e7d2 b.n 80158be <_vfiprintf_r+0xc6> 8015918: 9b03 ldr r3, [sp, #12] 801591a: 1d19 adds r1, r3, #4 801591c: 681b ldr r3, [r3, #0] 801591e: 9103 str r1, [sp, #12] 8015920: 2b00 cmp r3, #0 8015922: bfbb ittet lt 8015924: 425b neglt r3, r3 8015926: f042 0202 orrlt.w r2, r2, #2 801592a: 9307 strge r3, [sp, #28] 801592c: 9307 strlt r3, [sp, #28] 801592e: bfb8 it lt 8015930: 9204 strlt r2, [sp, #16] 8015932: 7823 ldrb r3, [r4, #0] 8015934: 2b2e cmp r3, #46 @ 0x2e 8015936: d10a bne.n 801594e <_vfiprintf_r+0x156> 8015938: 7863 ldrb r3, [r4, #1] 801593a: 2b2a cmp r3, #42 @ 0x2a 801593c: d132 bne.n 80159a4 <_vfiprintf_r+0x1ac> 801593e: 9b03 ldr r3, [sp, #12] 8015940: 3402 adds r4, #2 8015942: 1d1a adds r2, r3, #4 8015944: 681b ldr r3, [r3, #0] 8015946: 9203 str r2, [sp, #12] 8015948: ea43 73e3 orr.w r3, r3, r3, asr #31 801594c: 9305 str r3, [sp, #20] 801594e: f8df a0c8 ldr.w sl, [pc, #200] @ 8015a18 <_vfiprintf_r+0x220> 8015952: 2203 movs r2, #3 8015954: 4650 mov r0, sl 8015956: 7821 ldrb r1, [r4, #0] 8015958: f7fe ff38 bl 80147cc 801595c: b138 cbz r0, 801596e <_vfiprintf_r+0x176> 801595e: 2240 movs r2, #64 @ 0x40 8015960: 9b04 ldr r3, [sp, #16] 8015962: eba0 000a sub.w r0, r0, sl 8015966: 4082 lsls r2, r0 8015968: 4313 orrs r3, r2 801596a: 3401 adds r4, #1 801596c: 9304 str r3, [sp, #16] 801596e: f814 1b01 ldrb.w r1, [r4], #1 8015972: 2206 movs r2, #6 8015974: 4829 ldr r0, [pc, #164] @ (8015a1c <_vfiprintf_r+0x224>) 8015976: f88d 1028 strb.w r1, [sp, #40] @ 0x28 801597a: f7fe ff27 bl 80147cc 801597e: 2800 cmp r0, #0 8015980: d03f beq.n 8015a02 <_vfiprintf_r+0x20a> 8015982: 4b27 ldr r3, [pc, #156] @ (8015a20 <_vfiprintf_r+0x228>) 8015984: bb1b cbnz r3, 80159ce <_vfiprintf_r+0x1d6> 8015986: 9b03 ldr r3, [sp, #12] 8015988: 3307 adds r3, #7 801598a: f023 0307 bic.w r3, r3, #7 801598e: 3308 adds r3, #8 8015990: 9303 str r3, [sp, #12] 8015992: 9b09 ldr r3, [sp, #36] @ 0x24 8015994: 443b add r3, r7 8015996: 9309 str r3, [sp, #36] @ 0x24 8015998: e76a b.n 8015870 <_vfiprintf_r+0x78> 801599a: 460c mov r4, r1 801599c: 2001 movs r0, #1 801599e: fb0c 3202 mla r2, ip, r2, r3 80159a2: e7a8 b.n 80158f6 <_vfiprintf_r+0xfe> 80159a4: 2300 movs r3, #0 80159a6: f04f 0c0a mov.w ip, #10 80159aa: 4619 mov r1, r3 80159ac: 3401 adds r4, #1 80159ae: 9305 str r3, [sp, #20] 80159b0: 4620 mov r0, r4 80159b2: f810 2b01 ldrb.w r2, [r0], #1 80159b6: 3a30 subs r2, #48 @ 0x30 80159b8: 2a09 cmp r2, #9 80159ba: d903 bls.n 80159c4 <_vfiprintf_r+0x1cc> 80159bc: 2b00 cmp r3, #0 80159be: d0c6 beq.n 801594e <_vfiprintf_r+0x156> 80159c0: 9105 str r1, [sp, #20] 80159c2: e7c4 b.n 801594e <_vfiprintf_r+0x156> 80159c4: 4604 mov r4, r0 80159c6: 2301 movs r3, #1 80159c8: fb0c 2101 mla r1, ip, r1, r2 80159cc: e7f0 b.n 80159b0 <_vfiprintf_r+0x1b8> 80159ce: ab03 add r3, sp, #12 80159d0: 9300 str r3, [sp, #0] 80159d2: 462a mov r2, r5 80159d4: 4630 mov r0, r6 80159d6: 4b13 ldr r3, [pc, #76] @ (8015a24 <_vfiprintf_r+0x22c>) 80159d8: a904 add r1, sp, #16 80159da: f7fe f9f1 bl 8013dc0 <_printf_float> 80159de: 4607 mov r7, r0 80159e0: 1c78 adds r0, r7, #1 80159e2: d1d6 bne.n 8015992 <_vfiprintf_r+0x19a> 80159e4: 6e6b ldr r3, [r5, #100] @ 0x64 80159e6: 07d9 lsls r1, r3, #31 80159e8: d405 bmi.n 80159f6 <_vfiprintf_r+0x1fe> 80159ea: 89ab ldrh r3, [r5, #12] 80159ec: 059a lsls r2, r3, #22 80159ee: d402 bmi.n 80159f6 <_vfiprintf_r+0x1fe> 80159f0: 6da8 ldr r0, [r5, #88] @ 0x58 80159f2: f7fe fee5 bl 80147c0 <__retarget_lock_release_recursive> 80159f6: 89ab ldrh r3, [r5, #12] 80159f8: 065b lsls r3, r3, #25 80159fa: f53f af1f bmi.w 801583c <_vfiprintf_r+0x44> 80159fe: 9809 ldr r0, [sp, #36] @ 0x24 8015a00: e71e b.n 8015840 <_vfiprintf_r+0x48> 8015a02: ab03 add r3, sp, #12 8015a04: 9300 str r3, [sp, #0] 8015a06: 462a mov r2, r5 8015a08: 4630 mov r0, r6 8015a0a: 4b06 ldr r3, [pc, #24] @ (8015a24 <_vfiprintf_r+0x22c>) 8015a0c: a904 add r1, sp, #16 8015a0e: f7fe fc75 bl 80142fc <_printf_i> 8015a12: e7e4 b.n 80159de <_vfiprintf_r+0x1e6> 8015a14: 08017369 .word 0x08017369 8015a18: 0801736f .word 0x0801736f 8015a1c: 08017373 .word 0x08017373 8015a20: 08013dc1 .word 0x08013dc1 8015a24: 080157d3 .word 0x080157d3 08015a28 : 8015a28: 4b02 ldr r3, [pc, #8] @ (8015a34 ) 8015a2a: 4601 mov r1, r0 8015a2c: 6818 ldr r0, [r3, #0] 8015a2e: f000 b825 b.w 8015a7c <_malloc_r> 8015a32: bf00 nop 8015a34: 2000009c .word 0x2000009c 08015a38 : 8015a38: b570 push {r4, r5, r6, lr} 8015a3a: 4e0f ldr r6, [pc, #60] @ (8015a78 ) 8015a3c: 460c mov r4, r1 8015a3e: 6831 ldr r1, [r6, #0] 8015a40: 4605 mov r5, r0 8015a42: b911 cbnz r1, 8015a4a 8015a44: f000 fe90 bl 8016768 <_sbrk_r> 8015a48: 6030 str r0, [r6, #0] 8015a4a: 4621 mov r1, r4 8015a4c: 4628 mov r0, r5 8015a4e: f000 fe8b bl 8016768 <_sbrk_r> 8015a52: 1c43 adds r3, r0, #1 8015a54: d103 bne.n 8015a5e 8015a56: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff 8015a5a: 4620 mov r0, r4 8015a5c: bd70 pop {r4, r5, r6, pc} 8015a5e: 1cc4 adds r4, r0, #3 8015a60: f024 0403 bic.w r4, r4, #3 8015a64: 42a0 cmp r0, r4 8015a66: d0f8 beq.n 8015a5a 8015a68: 1a21 subs r1, r4, r0 8015a6a: 4628 mov r0, r5 8015a6c: f000 fe7c bl 8016768 <_sbrk_r> 8015a70: 3001 adds r0, #1 8015a72: d1f2 bne.n 8015a5a 8015a74: e7ef b.n 8015a56 8015a76: bf00 nop 8015a78: 200013b8 .word 0x200013b8 08015a7c <_malloc_r>: 8015a7c: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8015a80: 1ccd adds r5, r1, #3 8015a82: f025 0503 bic.w r5, r5, #3 8015a86: 3508 adds r5, #8 8015a88: 2d0c cmp r5, #12 8015a8a: bf38 it cc 8015a8c: 250c movcc r5, #12 8015a8e: 2d00 cmp r5, #0 8015a90: 4606 mov r6, r0 8015a92: db01 blt.n 8015a98 <_malloc_r+0x1c> 8015a94: 42a9 cmp r1, r5 8015a96: d904 bls.n 8015aa2 <_malloc_r+0x26> 8015a98: 230c movs r3, #12 8015a9a: 6033 str r3, [r6, #0] 8015a9c: 2000 movs r0, #0 8015a9e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8015aa2: f8df 80d4 ldr.w r8, [pc, #212] @ 8015b78 <_malloc_r+0xfc> 8015aa6: f000 f911 bl 8015ccc <__malloc_lock> 8015aaa: f8d8 3000 ldr.w r3, [r8] 8015aae: 461c mov r4, r3 8015ab0: bb44 cbnz r4, 8015b04 <_malloc_r+0x88> 8015ab2: 4629 mov r1, r5 8015ab4: 4630 mov r0, r6 8015ab6: f7ff ffbf bl 8015a38 8015aba: 1c43 adds r3, r0, #1 8015abc: 4604 mov r4, r0 8015abe: d158 bne.n 8015b72 <_malloc_r+0xf6> 8015ac0: f8d8 4000 ldr.w r4, [r8] 8015ac4: 4627 mov r7, r4 8015ac6: 2f00 cmp r7, #0 8015ac8: d143 bne.n 8015b52 <_malloc_r+0xd6> 8015aca: 2c00 cmp r4, #0 8015acc: d04b beq.n 8015b66 <_malloc_r+0xea> 8015ace: 6823 ldr r3, [r4, #0] 8015ad0: 4639 mov r1, r7 8015ad2: 4630 mov r0, r6 8015ad4: eb04 0903 add.w r9, r4, r3 8015ad8: f000 fe46 bl 8016768 <_sbrk_r> 8015adc: 4581 cmp r9, r0 8015ade: d142 bne.n 8015b66 <_malloc_r+0xea> 8015ae0: 6821 ldr r1, [r4, #0] 8015ae2: 4630 mov r0, r6 8015ae4: 1a6d subs r5, r5, r1 8015ae6: 4629 mov r1, r5 8015ae8: f7ff ffa6 bl 8015a38 8015aec: 3001 adds r0, #1 8015aee: d03a beq.n 8015b66 <_malloc_r+0xea> 8015af0: 6823 ldr r3, [r4, #0] 8015af2: 442b add r3, r5 8015af4: 6023 str r3, [r4, #0] 8015af6: f8d8 3000 ldr.w r3, [r8] 8015afa: 685a ldr r2, [r3, #4] 8015afc: bb62 cbnz r2, 8015b58 <_malloc_r+0xdc> 8015afe: f8c8 7000 str.w r7, [r8] 8015b02: e00f b.n 8015b24 <_malloc_r+0xa8> 8015b04: 6822 ldr r2, [r4, #0] 8015b06: 1b52 subs r2, r2, r5 8015b08: d420 bmi.n 8015b4c <_malloc_r+0xd0> 8015b0a: 2a0b cmp r2, #11 8015b0c: d917 bls.n 8015b3e <_malloc_r+0xc2> 8015b0e: 1961 adds r1, r4, r5 8015b10: 42a3 cmp r3, r4 8015b12: 6025 str r5, [r4, #0] 8015b14: bf18 it ne 8015b16: 6059 strne r1, [r3, #4] 8015b18: 6863 ldr r3, [r4, #4] 8015b1a: bf08 it eq 8015b1c: f8c8 1000 streq.w r1, [r8] 8015b20: 5162 str r2, [r4, r5] 8015b22: 604b str r3, [r1, #4] 8015b24: 4630 mov r0, r6 8015b26: f000 f8d7 bl 8015cd8 <__malloc_unlock> 8015b2a: f104 000b add.w r0, r4, #11 8015b2e: 1d23 adds r3, r4, #4 8015b30: f020 0007 bic.w r0, r0, #7 8015b34: 1ac2 subs r2, r0, r3 8015b36: bf1c itt ne 8015b38: 1a1b subne r3, r3, r0 8015b3a: 50a3 strne r3, [r4, r2] 8015b3c: e7af b.n 8015a9e <_malloc_r+0x22> 8015b3e: 6862 ldr r2, [r4, #4] 8015b40: 42a3 cmp r3, r4 8015b42: bf0c ite eq 8015b44: f8c8 2000 streq.w r2, [r8] 8015b48: 605a strne r2, [r3, #4] 8015b4a: e7eb b.n 8015b24 <_malloc_r+0xa8> 8015b4c: 4623 mov r3, r4 8015b4e: 6864 ldr r4, [r4, #4] 8015b50: e7ae b.n 8015ab0 <_malloc_r+0x34> 8015b52: 463c mov r4, r7 8015b54: 687f ldr r7, [r7, #4] 8015b56: e7b6 b.n 8015ac6 <_malloc_r+0x4a> 8015b58: 461a mov r2, r3 8015b5a: 685b ldr r3, [r3, #4] 8015b5c: 42a3 cmp r3, r4 8015b5e: d1fb bne.n 8015b58 <_malloc_r+0xdc> 8015b60: 2300 movs r3, #0 8015b62: 6053 str r3, [r2, #4] 8015b64: e7de b.n 8015b24 <_malloc_r+0xa8> 8015b66: 230c movs r3, #12 8015b68: 4630 mov r0, r6 8015b6a: 6033 str r3, [r6, #0] 8015b6c: f000 f8b4 bl 8015cd8 <__malloc_unlock> 8015b70: e794 b.n 8015a9c <_malloc_r+0x20> 8015b72: 6005 str r5, [r0, #0] 8015b74: e7d6 b.n 8015b24 <_malloc_r+0xa8> 8015b76: bf00 nop 8015b78: 200013bc .word 0x200013bc 08015b7c <__sflush_r>: 8015b7c: f9b1 200c ldrsh.w r2, [r1, #12] 8015b80: b5f8 push {r3, r4, r5, r6, r7, lr} 8015b82: 0716 lsls r6, r2, #28 8015b84: 4605 mov r5, r0 8015b86: 460c mov r4, r1 8015b88: d454 bmi.n 8015c34 <__sflush_r+0xb8> 8015b8a: 684b ldr r3, [r1, #4] 8015b8c: 2b00 cmp r3, #0 8015b8e: dc02 bgt.n 8015b96 <__sflush_r+0x1a> 8015b90: 6c0b ldr r3, [r1, #64] @ 0x40 8015b92: 2b00 cmp r3, #0 8015b94: dd48 ble.n 8015c28 <__sflush_r+0xac> 8015b96: 6ae6 ldr r6, [r4, #44] @ 0x2c 8015b98: 2e00 cmp r6, #0 8015b9a: d045 beq.n 8015c28 <__sflush_r+0xac> 8015b9c: 2300 movs r3, #0 8015b9e: f412 5280 ands.w r2, r2, #4096 @ 0x1000 8015ba2: 682f ldr r7, [r5, #0] 8015ba4: 6a21 ldr r1, [r4, #32] 8015ba6: 602b str r3, [r5, #0] 8015ba8: d030 beq.n 8015c0c <__sflush_r+0x90> 8015baa: 6d62 ldr r2, [r4, #84] @ 0x54 8015bac: 89a3 ldrh r3, [r4, #12] 8015bae: 0759 lsls r1, r3, #29 8015bb0: d505 bpl.n 8015bbe <__sflush_r+0x42> 8015bb2: 6863 ldr r3, [r4, #4] 8015bb4: 1ad2 subs r2, r2, r3 8015bb6: 6b63 ldr r3, [r4, #52] @ 0x34 8015bb8: b10b cbz r3, 8015bbe <__sflush_r+0x42> 8015bba: 6c23 ldr r3, [r4, #64] @ 0x40 8015bbc: 1ad2 subs r2, r2, r3 8015bbe: 2300 movs r3, #0 8015bc0: 4628 mov r0, r5 8015bc2: 6ae6 ldr r6, [r4, #44] @ 0x2c 8015bc4: 6a21 ldr r1, [r4, #32] 8015bc6: 47b0 blx r6 8015bc8: 1c43 adds r3, r0, #1 8015bca: 89a3 ldrh r3, [r4, #12] 8015bcc: d106 bne.n 8015bdc <__sflush_r+0x60> 8015bce: 6829 ldr r1, [r5, #0] 8015bd0: 291d cmp r1, #29 8015bd2: d82b bhi.n 8015c2c <__sflush_r+0xb0> 8015bd4: 4a28 ldr r2, [pc, #160] @ (8015c78 <__sflush_r+0xfc>) 8015bd6: 40ca lsrs r2, r1 8015bd8: 07d6 lsls r6, r2, #31 8015bda: d527 bpl.n 8015c2c <__sflush_r+0xb0> 8015bdc: 2200 movs r2, #0 8015bde: 6062 str r2, [r4, #4] 8015be0: 6922 ldr r2, [r4, #16] 8015be2: 04d9 lsls r1, r3, #19 8015be4: 6022 str r2, [r4, #0] 8015be6: d504 bpl.n 8015bf2 <__sflush_r+0x76> 8015be8: 1c42 adds r2, r0, #1 8015bea: d101 bne.n 8015bf0 <__sflush_r+0x74> 8015bec: 682b ldr r3, [r5, #0] 8015bee: b903 cbnz r3, 8015bf2 <__sflush_r+0x76> 8015bf0: 6560 str r0, [r4, #84] @ 0x54 8015bf2: 6b61 ldr r1, [r4, #52] @ 0x34 8015bf4: 602f str r7, [r5, #0] 8015bf6: b1b9 cbz r1, 8015c28 <__sflush_r+0xac> 8015bf8: f104 0344 add.w r3, r4, #68 @ 0x44 8015bfc: 4299 cmp r1, r3 8015bfe: d002 beq.n 8015c06 <__sflush_r+0x8a> 8015c00: 4628 mov r0, r5 8015c02: f000 fe11 bl 8016828 <_free_r> 8015c06: 2300 movs r3, #0 8015c08: 6363 str r3, [r4, #52] @ 0x34 8015c0a: e00d b.n 8015c28 <__sflush_r+0xac> 8015c0c: 2301 movs r3, #1 8015c0e: 4628 mov r0, r5 8015c10: 47b0 blx r6 8015c12: 4602 mov r2, r0 8015c14: 1c50 adds r0, r2, #1 8015c16: d1c9 bne.n 8015bac <__sflush_r+0x30> 8015c18: 682b ldr r3, [r5, #0] 8015c1a: 2b00 cmp r3, #0 8015c1c: d0c6 beq.n 8015bac <__sflush_r+0x30> 8015c1e: 2b1d cmp r3, #29 8015c20: d001 beq.n 8015c26 <__sflush_r+0xaa> 8015c22: 2b16 cmp r3, #22 8015c24: d11d bne.n 8015c62 <__sflush_r+0xe6> 8015c26: 602f str r7, [r5, #0] 8015c28: 2000 movs r0, #0 8015c2a: e021 b.n 8015c70 <__sflush_r+0xf4> 8015c2c: f043 0340 orr.w r3, r3, #64 @ 0x40 8015c30: b21b sxth r3, r3 8015c32: e01a b.n 8015c6a <__sflush_r+0xee> 8015c34: 690f ldr r7, [r1, #16] 8015c36: 2f00 cmp r7, #0 8015c38: d0f6 beq.n 8015c28 <__sflush_r+0xac> 8015c3a: 0793 lsls r3, r2, #30 8015c3c: bf18 it ne 8015c3e: 2300 movne r3, #0 8015c40: 680e ldr r6, [r1, #0] 8015c42: bf08 it eq 8015c44: 694b ldreq r3, [r1, #20] 8015c46: 1bf6 subs r6, r6, r7 8015c48: 600f str r7, [r1, #0] 8015c4a: 608b str r3, [r1, #8] 8015c4c: 2e00 cmp r6, #0 8015c4e: ddeb ble.n 8015c28 <__sflush_r+0xac> 8015c50: 4633 mov r3, r6 8015c52: 463a mov r2, r7 8015c54: 4628 mov r0, r5 8015c56: 6a21 ldr r1, [r4, #32] 8015c58: f8d4 c028 ldr.w ip, [r4, #40] @ 0x28 8015c5c: 47e0 blx ip 8015c5e: 2800 cmp r0, #0 8015c60: dc07 bgt.n 8015c72 <__sflush_r+0xf6> 8015c62: f9b4 300c ldrsh.w r3, [r4, #12] 8015c66: f043 0340 orr.w r3, r3, #64 @ 0x40 8015c6a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015c6e: 81a3 strh r3, [r4, #12] 8015c70: bdf8 pop {r3, r4, r5, r6, r7, pc} 8015c72: 4407 add r7, r0 8015c74: 1a36 subs r6, r6, r0 8015c76: e7e9 b.n 8015c4c <__sflush_r+0xd0> 8015c78: 20400001 .word 0x20400001 08015c7c <_fflush_r>: 8015c7c: b538 push {r3, r4, r5, lr} 8015c7e: 690b ldr r3, [r1, #16] 8015c80: 4605 mov r5, r0 8015c82: 460c mov r4, r1 8015c84: b913 cbnz r3, 8015c8c <_fflush_r+0x10> 8015c86: 2500 movs r5, #0 8015c88: 4628 mov r0, r5 8015c8a: bd38 pop {r3, r4, r5, pc} 8015c8c: b118 cbz r0, 8015c96 <_fflush_r+0x1a> 8015c8e: 6a03 ldr r3, [r0, #32] 8015c90: b90b cbnz r3, 8015c96 <_fflush_r+0x1a> 8015c92: f7fe fcdd bl 8014650 <__sinit> 8015c96: f9b4 300c ldrsh.w r3, [r4, #12] 8015c9a: 2b00 cmp r3, #0 8015c9c: d0f3 beq.n 8015c86 <_fflush_r+0xa> 8015c9e: 6e62 ldr r2, [r4, #100] @ 0x64 8015ca0: 07d0 lsls r0, r2, #31 8015ca2: d404 bmi.n 8015cae <_fflush_r+0x32> 8015ca4: 0599 lsls r1, r3, #22 8015ca6: d402 bmi.n 8015cae <_fflush_r+0x32> 8015ca8: 6da0 ldr r0, [r4, #88] @ 0x58 8015caa: f7fe fd88 bl 80147be <__retarget_lock_acquire_recursive> 8015cae: 4628 mov r0, r5 8015cb0: 4621 mov r1, r4 8015cb2: f7ff ff63 bl 8015b7c <__sflush_r> 8015cb6: 6e63 ldr r3, [r4, #100] @ 0x64 8015cb8: 4605 mov r5, r0 8015cba: 07da lsls r2, r3, #31 8015cbc: d4e4 bmi.n 8015c88 <_fflush_r+0xc> 8015cbe: 89a3 ldrh r3, [r4, #12] 8015cc0: 059b lsls r3, r3, #22 8015cc2: d4e1 bmi.n 8015c88 <_fflush_r+0xc> 8015cc4: 6da0 ldr r0, [r4, #88] @ 0x58 8015cc6: f7fe fd7b bl 80147c0 <__retarget_lock_release_recursive> 8015cca: e7dd b.n 8015c88 <_fflush_r+0xc> 08015ccc <__malloc_lock>: 8015ccc: 4801 ldr r0, [pc, #4] @ (8015cd4 <__malloc_lock+0x8>) 8015cce: f7fe bd76 b.w 80147be <__retarget_lock_acquire_recursive> 8015cd2: bf00 nop 8015cd4: 200013b4 .word 0x200013b4 08015cd8 <__malloc_unlock>: 8015cd8: 4801 ldr r0, [pc, #4] @ (8015ce0 <__malloc_unlock+0x8>) 8015cda: f7fe bd71 b.w 80147c0 <__retarget_lock_release_recursive> 8015cde: bf00 nop 8015ce0: 200013b4 .word 0x200013b4 08015ce4 <_Balloc>: 8015ce4: b570 push {r4, r5, r6, lr} 8015ce6: 69c6 ldr r6, [r0, #28] 8015ce8: 4604 mov r4, r0 8015cea: 460d mov r5, r1 8015cec: b976 cbnz r6, 8015d0c <_Balloc+0x28> 8015cee: 2010 movs r0, #16 8015cf0: f7ff fe9a bl 8015a28 8015cf4: 4602 mov r2, r0 8015cf6: 61e0 str r0, [r4, #28] 8015cf8: b920 cbnz r0, 8015d04 <_Balloc+0x20> 8015cfa: 216b movs r1, #107 @ 0x6b 8015cfc: 4b17 ldr r3, [pc, #92] @ (8015d5c <_Balloc+0x78>) 8015cfe: 4818 ldr r0, [pc, #96] @ (8015d60 <_Balloc+0x7c>) 8015d00: f7fe fd80 bl 8014804 <__assert_func> 8015d04: e9c0 6601 strd r6, r6, [r0, #4] 8015d08: 6006 str r6, [r0, #0] 8015d0a: 60c6 str r6, [r0, #12] 8015d0c: 69e6 ldr r6, [r4, #28] 8015d0e: 68f3 ldr r3, [r6, #12] 8015d10: b183 cbz r3, 8015d34 <_Balloc+0x50> 8015d12: 69e3 ldr r3, [r4, #28] 8015d14: 68db ldr r3, [r3, #12] 8015d16: f853 0025 ldr.w r0, [r3, r5, lsl #2] 8015d1a: b9b8 cbnz r0, 8015d4c <_Balloc+0x68> 8015d1c: 2101 movs r1, #1 8015d1e: fa01 f605 lsl.w r6, r1, r5 8015d22: 1d72 adds r2, r6, #5 8015d24: 4620 mov r0, r4 8015d26: 0092 lsls r2, r2, #2 8015d28: f000 fd69 bl 80167fe <_calloc_r> 8015d2c: b160 cbz r0, 8015d48 <_Balloc+0x64> 8015d2e: e9c0 5601 strd r5, r6, [r0, #4] 8015d32: e00e b.n 8015d52 <_Balloc+0x6e> 8015d34: 2221 movs r2, #33 @ 0x21 8015d36: 2104 movs r1, #4 8015d38: 4620 mov r0, r4 8015d3a: f000 fd60 bl 80167fe <_calloc_r> 8015d3e: 69e3 ldr r3, [r4, #28] 8015d40: 60f0 str r0, [r6, #12] 8015d42: 68db ldr r3, [r3, #12] 8015d44: 2b00 cmp r3, #0 8015d46: d1e4 bne.n 8015d12 <_Balloc+0x2e> 8015d48: 2000 movs r0, #0 8015d4a: bd70 pop {r4, r5, r6, pc} 8015d4c: 6802 ldr r2, [r0, #0] 8015d4e: f843 2025 str.w r2, [r3, r5, lsl #2] 8015d52: 2300 movs r3, #0 8015d54: e9c0 3303 strd r3, r3, [r0, #12] 8015d58: e7f7 b.n 8015d4a <_Balloc+0x66> 8015d5a: bf00 nop 8015d5c: 080172e9 .word 0x080172e9 8015d60: 0801737a .word 0x0801737a 08015d64 <_Bfree>: 8015d64: b570 push {r4, r5, r6, lr} 8015d66: 69c6 ldr r6, [r0, #28] 8015d68: 4605 mov r5, r0 8015d6a: 460c mov r4, r1 8015d6c: b976 cbnz r6, 8015d8c <_Bfree+0x28> 8015d6e: 2010 movs r0, #16 8015d70: f7ff fe5a bl 8015a28 8015d74: 4602 mov r2, r0 8015d76: 61e8 str r0, [r5, #28] 8015d78: b920 cbnz r0, 8015d84 <_Bfree+0x20> 8015d7a: 218f movs r1, #143 @ 0x8f 8015d7c: 4b08 ldr r3, [pc, #32] @ (8015da0 <_Bfree+0x3c>) 8015d7e: 4809 ldr r0, [pc, #36] @ (8015da4 <_Bfree+0x40>) 8015d80: f7fe fd40 bl 8014804 <__assert_func> 8015d84: e9c0 6601 strd r6, r6, [r0, #4] 8015d88: 6006 str r6, [r0, #0] 8015d8a: 60c6 str r6, [r0, #12] 8015d8c: b13c cbz r4, 8015d9e <_Bfree+0x3a> 8015d8e: 69eb ldr r3, [r5, #28] 8015d90: 6862 ldr r2, [r4, #4] 8015d92: 68db ldr r3, [r3, #12] 8015d94: f853 1022 ldr.w r1, [r3, r2, lsl #2] 8015d98: 6021 str r1, [r4, #0] 8015d9a: f843 4022 str.w r4, [r3, r2, lsl #2] 8015d9e: bd70 pop {r4, r5, r6, pc} 8015da0: 080172e9 .word 0x080172e9 8015da4: 0801737a .word 0x0801737a 08015da8 <__multadd>: 8015da8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 8015dac: 4607 mov r7, r0 8015dae: 460c mov r4, r1 8015db0: 461e mov r6, r3 8015db2: 2000 movs r0, #0 8015db4: 690d ldr r5, [r1, #16] 8015db6: f101 0c14 add.w ip, r1, #20 8015dba: f8dc 3000 ldr.w r3, [ip] 8015dbe: 3001 adds r0, #1 8015dc0: b299 uxth r1, r3 8015dc2: fb02 6101 mla r1, r2, r1, r6 8015dc6: 0c1e lsrs r6, r3, #16 8015dc8: 0c0b lsrs r3, r1, #16 8015dca: fb02 3306 mla r3, r2, r6, r3 8015dce: b289 uxth r1, r1 8015dd0: eb01 4103 add.w r1, r1, r3, lsl #16 8015dd4: 4285 cmp r5, r0 8015dd6: ea4f 4613 mov.w r6, r3, lsr #16 8015dda: f84c 1b04 str.w r1, [ip], #4 8015dde: dcec bgt.n 8015dba <__multadd+0x12> 8015de0: b30e cbz r6, 8015e26 <__multadd+0x7e> 8015de2: 68a3 ldr r3, [r4, #8] 8015de4: 42ab cmp r3, r5 8015de6: dc19 bgt.n 8015e1c <__multadd+0x74> 8015de8: 6861 ldr r1, [r4, #4] 8015dea: 4638 mov r0, r7 8015dec: 3101 adds r1, #1 8015dee: f7ff ff79 bl 8015ce4 <_Balloc> 8015df2: 4680 mov r8, r0 8015df4: b928 cbnz r0, 8015e02 <__multadd+0x5a> 8015df6: 4602 mov r2, r0 8015df8: 21ba movs r1, #186 @ 0xba 8015dfa: 4b0c ldr r3, [pc, #48] @ (8015e2c <__multadd+0x84>) 8015dfc: 480c ldr r0, [pc, #48] @ (8015e30 <__multadd+0x88>) 8015dfe: f7fe fd01 bl 8014804 <__assert_func> 8015e02: 6922 ldr r2, [r4, #16] 8015e04: f104 010c add.w r1, r4, #12 8015e08: 3202 adds r2, #2 8015e0a: 0092 lsls r2, r2, #2 8015e0c: 300c adds r0, #12 8015e0e: f7fe fceb bl 80147e8 8015e12: 4621 mov r1, r4 8015e14: 4638 mov r0, r7 8015e16: f7ff ffa5 bl 8015d64 <_Bfree> 8015e1a: 4644 mov r4, r8 8015e1c: eb04 0385 add.w r3, r4, r5, lsl #2 8015e20: 3501 adds r5, #1 8015e22: 615e str r6, [r3, #20] 8015e24: 6125 str r5, [r4, #16] 8015e26: 4620 mov r0, r4 8015e28: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 8015e2c: 08017358 .word 0x08017358 8015e30: 0801737a .word 0x0801737a 08015e34 <__hi0bits>: 8015e34: 4603 mov r3, r0 8015e36: f5b0 3f80 cmp.w r0, #65536 @ 0x10000 8015e3a: bf3a itte cc 8015e3c: 0403 lslcc r3, r0, #16 8015e3e: 2010 movcc r0, #16 8015e40: 2000 movcs r0, #0 8015e42: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 8015e46: bf3c itt cc 8015e48: 021b lslcc r3, r3, #8 8015e4a: 3008 addcc r0, #8 8015e4c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 8015e50: bf3c itt cc 8015e52: 011b lslcc r3, r3, #4 8015e54: 3004 addcc r0, #4 8015e56: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8015e5a: bf3c itt cc 8015e5c: 009b lslcc r3, r3, #2 8015e5e: 3002 addcc r0, #2 8015e60: 2b00 cmp r3, #0 8015e62: db05 blt.n 8015e70 <__hi0bits+0x3c> 8015e64: f013 4f80 tst.w r3, #1073741824 @ 0x40000000 8015e68: f100 0001 add.w r0, r0, #1 8015e6c: bf08 it eq 8015e6e: 2020 moveq r0, #32 8015e70: 4770 bx lr 08015e72 <__lo0bits>: 8015e72: 6803 ldr r3, [r0, #0] 8015e74: 4602 mov r2, r0 8015e76: f013 0007 ands.w r0, r3, #7 8015e7a: d00b beq.n 8015e94 <__lo0bits+0x22> 8015e7c: 07d9 lsls r1, r3, #31 8015e7e: d421 bmi.n 8015ec4 <__lo0bits+0x52> 8015e80: 0798 lsls r0, r3, #30 8015e82: bf49 itett mi 8015e84: 085b lsrmi r3, r3, #1 8015e86: 089b lsrpl r3, r3, #2 8015e88: 2001 movmi r0, #1 8015e8a: 6013 strmi r3, [r2, #0] 8015e8c: bf5c itt pl 8015e8e: 2002 movpl r0, #2 8015e90: 6013 strpl r3, [r2, #0] 8015e92: 4770 bx lr 8015e94: b299 uxth r1, r3 8015e96: b909 cbnz r1, 8015e9c <__lo0bits+0x2a> 8015e98: 2010 movs r0, #16 8015e9a: 0c1b lsrs r3, r3, #16 8015e9c: b2d9 uxtb r1, r3 8015e9e: b909 cbnz r1, 8015ea4 <__lo0bits+0x32> 8015ea0: 3008 adds r0, #8 8015ea2: 0a1b lsrs r3, r3, #8 8015ea4: 0719 lsls r1, r3, #28 8015ea6: bf04 itt eq 8015ea8: 091b lsreq r3, r3, #4 8015eaa: 3004 addeq r0, #4 8015eac: 0799 lsls r1, r3, #30 8015eae: bf04 itt eq 8015eb0: 089b lsreq r3, r3, #2 8015eb2: 3002 addeq r0, #2 8015eb4: 07d9 lsls r1, r3, #31 8015eb6: d403 bmi.n 8015ec0 <__lo0bits+0x4e> 8015eb8: 085b lsrs r3, r3, #1 8015eba: f100 0001 add.w r0, r0, #1 8015ebe: d003 beq.n 8015ec8 <__lo0bits+0x56> 8015ec0: 6013 str r3, [r2, #0] 8015ec2: 4770 bx lr 8015ec4: 2000 movs r0, #0 8015ec6: 4770 bx lr 8015ec8: 2020 movs r0, #32 8015eca: 4770 bx lr 08015ecc <__i2b>: 8015ecc: b510 push {r4, lr} 8015ece: 460c mov r4, r1 8015ed0: 2101 movs r1, #1 8015ed2: f7ff ff07 bl 8015ce4 <_Balloc> 8015ed6: 4602 mov r2, r0 8015ed8: b928 cbnz r0, 8015ee6 <__i2b+0x1a> 8015eda: f240 1145 movw r1, #325 @ 0x145 8015ede: 4b04 ldr r3, [pc, #16] @ (8015ef0 <__i2b+0x24>) 8015ee0: 4804 ldr r0, [pc, #16] @ (8015ef4 <__i2b+0x28>) 8015ee2: f7fe fc8f bl 8014804 <__assert_func> 8015ee6: 2301 movs r3, #1 8015ee8: 6144 str r4, [r0, #20] 8015eea: 6103 str r3, [r0, #16] 8015eec: bd10 pop {r4, pc} 8015eee: bf00 nop 8015ef0: 08017358 .word 0x08017358 8015ef4: 0801737a .word 0x0801737a 08015ef8 <__multiply>: 8015ef8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8015efc: 4617 mov r7, r2 8015efe: 690a ldr r2, [r1, #16] 8015f00: 693b ldr r3, [r7, #16] 8015f02: 4689 mov r9, r1 8015f04: 429a cmp r2, r3 8015f06: bfa2 ittt ge 8015f08: 463b movge r3, r7 8015f0a: 460f movge r7, r1 8015f0c: 4699 movge r9, r3 8015f0e: 693d ldr r5, [r7, #16] 8015f10: f8d9 a010 ldr.w sl, [r9, #16] 8015f14: 68bb ldr r3, [r7, #8] 8015f16: 6879 ldr r1, [r7, #4] 8015f18: eb05 060a add.w r6, r5, sl 8015f1c: 42b3 cmp r3, r6 8015f1e: b085 sub sp, #20 8015f20: bfb8 it lt 8015f22: 3101 addlt r1, #1 8015f24: f7ff fede bl 8015ce4 <_Balloc> 8015f28: b930 cbnz r0, 8015f38 <__multiply+0x40> 8015f2a: 4602 mov r2, r0 8015f2c: f44f 71b1 mov.w r1, #354 @ 0x162 8015f30: 4b40 ldr r3, [pc, #256] @ (8016034 <__multiply+0x13c>) 8015f32: 4841 ldr r0, [pc, #260] @ (8016038 <__multiply+0x140>) 8015f34: f7fe fc66 bl 8014804 <__assert_func> 8015f38: f100 0414 add.w r4, r0, #20 8015f3c: 4623 mov r3, r4 8015f3e: 2200 movs r2, #0 8015f40: eb04 0e86 add.w lr, r4, r6, lsl #2 8015f44: 4573 cmp r3, lr 8015f46: d320 bcc.n 8015f8a <__multiply+0x92> 8015f48: f107 0814 add.w r8, r7, #20 8015f4c: f109 0114 add.w r1, r9, #20 8015f50: eb08 0585 add.w r5, r8, r5, lsl #2 8015f54: eb01 038a add.w r3, r1, sl, lsl #2 8015f58: 9302 str r3, [sp, #8] 8015f5a: 1beb subs r3, r5, r7 8015f5c: 3b15 subs r3, #21 8015f5e: f023 0303 bic.w r3, r3, #3 8015f62: 3304 adds r3, #4 8015f64: 3715 adds r7, #21 8015f66: 42bd cmp r5, r7 8015f68: bf38 it cc 8015f6a: 2304 movcc r3, #4 8015f6c: 9301 str r3, [sp, #4] 8015f6e: 9b02 ldr r3, [sp, #8] 8015f70: 9103 str r1, [sp, #12] 8015f72: 428b cmp r3, r1 8015f74: d80c bhi.n 8015f90 <__multiply+0x98> 8015f76: 2e00 cmp r6, #0 8015f78: dd03 ble.n 8015f82 <__multiply+0x8a> 8015f7a: f85e 3d04 ldr.w r3, [lr, #-4]! 8015f7e: 2b00 cmp r3, #0 8015f80: d055 beq.n 801602e <__multiply+0x136> 8015f82: 6106 str r6, [r0, #16] 8015f84: b005 add sp, #20 8015f86: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015f8a: f843 2b04 str.w r2, [r3], #4 8015f8e: e7d9 b.n 8015f44 <__multiply+0x4c> 8015f90: f8b1 a000 ldrh.w sl, [r1] 8015f94: f1ba 0f00 cmp.w sl, #0 8015f98: d01f beq.n 8015fda <__multiply+0xe2> 8015f9a: 46c4 mov ip, r8 8015f9c: 46a1 mov r9, r4 8015f9e: 2700 movs r7, #0 8015fa0: f85c 2b04 ldr.w r2, [ip], #4 8015fa4: f8d9 3000 ldr.w r3, [r9] 8015fa8: fa1f fb82 uxth.w fp, r2 8015fac: b29b uxth r3, r3 8015fae: fb0a 330b mla r3, sl, fp, r3 8015fb2: 443b add r3, r7 8015fb4: f8d9 7000 ldr.w r7, [r9] 8015fb8: 0c12 lsrs r2, r2, #16 8015fba: 0c3f lsrs r7, r7, #16 8015fbc: fb0a 7202 mla r2, sl, r2, r7 8015fc0: eb02 4213 add.w r2, r2, r3, lsr #16 8015fc4: b29b uxth r3, r3 8015fc6: ea43 4302 orr.w r3, r3, r2, lsl #16 8015fca: 4565 cmp r5, ip 8015fcc: ea4f 4712 mov.w r7, r2, lsr #16 8015fd0: f849 3b04 str.w r3, [r9], #4 8015fd4: d8e4 bhi.n 8015fa0 <__multiply+0xa8> 8015fd6: 9b01 ldr r3, [sp, #4] 8015fd8: 50e7 str r7, [r4, r3] 8015fda: 9b03 ldr r3, [sp, #12] 8015fdc: 3104 adds r1, #4 8015fde: f8b3 9002 ldrh.w r9, [r3, #2] 8015fe2: f1b9 0f00 cmp.w r9, #0 8015fe6: d020 beq.n 801602a <__multiply+0x132> 8015fe8: 4647 mov r7, r8 8015fea: 46a4 mov ip, r4 8015fec: f04f 0a00 mov.w sl, #0 8015ff0: 6823 ldr r3, [r4, #0] 8015ff2: f8b7 b000 ldrh.w fp, [r7] 8015ff6: f8bc 2002 ldrh.w r2, [ip, #2] 8015ffa: b29b uxth r3, r3 8015ffc: fb09 220b mla r2, r9, fp, r2 8016000: 4452 add r2, sl 8016002: ea43 4302 orr.w r3, r3, r2, lsl #16 8016006: f84c 3b04 str.w r3, [ip], #4 801600a: f857 3b04 ldr.w r3, [r7], #4 801600e: ea4f 4a13 mov.w sl, r3, lsr #16 8016012: f8bc 3000 ldrh.w r3, [ip] 8016016: 42bd cmp r5, r7 8016018: fb09 330a mla r3, r9, sl, r3 801601c: eb03 4312 add.w r3, r3, r2, lsr #16 8016020: ea4f 4a13 mov.w sl, r3, lsr #16 8016024: d8e5 bhi.n 8015ff2 <__multiply+0xfa> 8016026: 9a01 ldr r2, [sp, #4] 8016028: 50a3 str r3, [r4, r2] 801602a: 3404 adds r4, #4 801602c: e79f b.n 8015f6e <__multiply+0x76> 801602e: 3e01 subs r6, #1 8016030: e7a1 b.n 8015f76 <__multiply+0x7e> 8016032: bf00 nop 8016034: 08017358 .word 0x08017358 8016038: 0801737a .word 0x0801737a 0801603c <__pow5mult>: 801603c: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8016040: 4615 mov r5, r2 8016042: f012 0203 ands.w r2, r2, #3 8016046: 4607 mov r7, r0 8016048: 460e mov r6, r1 801604a: d007 beq.n 801605c <__pow5mult+0x20> 801604c: 4c25 ldr r4, [pc, #148] @ (80160e4 <__pow5mult+0xa8>) 801604e: 3a01 subs r2, #1 8016050: 2300 movs r3, #0 8016052: f854 2022 ldr.w r2, [r4, r2, lsl #2] 8016056: f7ff fea7 bl 8015da8 <__multadd> 801605a: 4606 mov r6, r0 801605c: 10ad asrs r5, r5, #2 801605e: d03d beq.n 80160dc <__pow5mult+0xa0> 8016060: 69fc ldr r4, [r7, #28] 8016062: b97c cbnz r4, 8016084 <__pow5mult+0x48> 8016064: 2010 movs r0, #16 8016066: f7ff fcdf bl 8015a28 801606a: 4602 mov r2, r0 801606c: 61f8 str r0, [r7, #28] 801606e: b928 cbnz r0, 801607c <__pow5mult+0x40> 8016070: f240 11b3 movw r1, #435 @ 0x1b3 8016074: 4b1c ldr r3, [pc, #112] @ (80160e8 <__pow5mult+0xac>) 8016076: 481d ldr r0, [pc, #116] @ (80160ec <__pow5mult+0xb0>) 8016078: f7fe fbc4 bl 8014804 <__assert_func> 801607c: e9c0 4401 strd r4, r4, [r0, #4] 8016080: 6004 str r4, [r0, #0] 8016082: 60c4 str r4, [r0, #12] 8016084: f8d7 801c ldr.w r8, [r7, #28] 8016088: f8d8 4008 ldr.w r4, [r8, #8] 801608c: b94c cbnz r4, 80160a2 <__pow5mult+0x66> 801608e: f240 2171 movw r1, #625 @ 0x271 8016092: 4638 mov r0, r7 8016094: f7ff ff1a bl 8015ecc <__i2b> 8016098: 2300 movs r3, #0 801609a: 4604 mov r4, r0 801609c: f8c8 0008 str.w r0, [r8, #8] 80160a0: 6003 str r3, [r0, #0] 80160a2: f04f 0900 mov.w r9, #0 80160a6: 07eb lsls r3, r5, #31 80160a8: d50a bpl.n 80160c0 <__pow5mult+0x84> 80160aa: 4631 mov r1, r6 80160ac: 4622 mov r2, r4 80160ae: 4638 mov r0, r7 80160b0: f7ff ff22 bl 8015ef8 <__multiply> 80160b4: 4680 mov r8, r0 80160b6: 4631 mov r1, r6 80160b8: 4638 mov r0, r7 80160ba: f7ff fe53 bl 8015d64 <_Bfree> 80160be: 4646 mov r6, r8 80160c0: 106d asrs r5, r5, #1 80160c2: d00b beq.n 80160dc <__pow5mult+0xa0> 80160c4: 6820 ldr r0, [r4, #0] 80160c6: b938 cbnz r0, 80160d8 <__pow5mult+0x9c> 80160c8: 4622 mov r2, r4 80160ca: 4621 mov r1, r4 80160cc: 4638 mov r0, r7 80160ce: f7ff ff13 bl 8015ef8 <__multiply> 80160d2: 6020 str r0, [r4, #0] 80160d4: f8c0 9000 str.w r9, [r0] 80160d8: 4604 mov r4, r0 80160da: e7e4 b.n 80160a6 <__pow5mult+0x6a> 80160dc: 4630 mov r0, r6 80160de: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 80160e2: bf00 nop 80160e4: 080173e0 .word 0x080173e0 80160e8: 080172e9 .word 0x080172e9 80160ec: 0801737a .word 0x0801737a 080160f0 <__lshift>: 80160f0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 80160f4: 460c mov r4, r1 80160f6: 4607 mov r7, r0 80160f8: 4691 mov r9, r2 80160fa: 6923 ldr r3, [r4, #16] 80160fc: 6849 ldr r1, [r1, #4] 80160fe: eb03 1862 add.w r8, r3, r2, asr #5 8016102: 68a3 ldr r3, [r4, #8] 8016104: ea4f 1a62 mov.w sl, r2, asr #5 8016108: f108 0601 add.w r6, r8, #1 801610c: 42b3 cmp r3, r6 801610e: db0b blt.n 8016128 <__lshift+0x38> 8016110: 4638 mov r0, r7 8016112: f7ff fde7 bl 8015ce4 <_Balloc> 8016116: 4605 mov r5, r0 8016118: b948 cbnz r0, 801612e <__lshift+0x3e> 801611a: 4602 mov r2, r0 801611c: f44f 71ef mov.w r1, #478 @ 0x1de 8016120: 4b27 ldr r3, [pc, #156] @ (80161c0 <__lshift+0xd0>) 8016122: 4828 ldr r0, [pc, #160] @ (80161c4 <__lshift+0xd4>) 8016124: f7fe fb6e bl 8014804 <__assert_func> 8016128: 3101 adds r1, #1 801612a: 005b lsls r3, r3, #1 801612c: e7ee b.n 801610c <__lshift+0x1c> 801612e: 2300 movs r3, #0 8016130: f100 0114 add.w r1, r0, #20 8016134: f100 0210 add.w r2, r0, #16 8016138: 4618 mov r0, r3 801613a: 4553 cmp r3, sl 801613c: db33 blt.n 80161a6 <__lshift+0xb6> 801613e: 6920 ldr r0, [r4, #16] 8016140: ea2a 7aea bic.w sl, sl, sl, asr #31 8016144: f104 0314 add.w r3, r4, #20 8016148: f019 091f ands.w r9, r9, #31 801614c: eb01 018a add.w r1, r1, sl, lsl #2 8016150: eb03 0c80 add.w ip, r3, r0, lsl #2 8016154: d02b beq.n 80161ae <__lshift+0xbe> 8016156: 468a mov sl, r1 8016158: 2200 movs r2, #0 801615a: f1c9 0e20 rsb lr, r9, #32 801615e: 6818 ldr r0, [r3, #0] 8016160: fa00 f009 lsl.w r0, r0, r9 8016164: 4310 orrs r0, r2 8016166: f84a 0b04 str.w r0, [sl], #4 801616a: f853 2b04 ldr.w r2, [r3], #4 801616e: 459c cmp ip, r3 8016170: fa22 f20e lsr.w r2, r2, lr 8016174: d8f3 bhi.n 801615e <__lshift+0x6e> 8016176: ebac 0304 sub.w r3, ip, r4 801617a: 3b15 subs r3, #21 801617c: f023 0303 bic.w r3, r3, #3 8016180: 3304 adds r3, #4 8016182: f104 0015 add.w r0, r4, #21 8016186: 4560 cmp r0, ip 8016188: bf88 it hi 801618a: 2304 movhi r3, #4 801618c: 50ca str r2, [r1, r3] 801618e: b10a cbz r2, 8016194 <__lshift+0xa4> 8016190: f108 0602 add.w r6, r8, #2 8016194: 3e01 subs r6, #1 8016196: 4638 mov r0, r7 8016198: 4621 mov r1, r4 801619a: 612e str r6, [r5, #16] 801619c: f7ff fde2 bl 8015d64 <_Bfree> 80161a0: 4628 mov r0, r5 80161a2: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 80161a6: f842 0f04 str.w r0, [r2, #4]! 80161aa: 3301 adds r3, #1 80161ac: e7c5 b.n 801613a <__lshift+0x4a> 80161ae: 3904 subs r1, #4 80161b0: f853 2b04 ldr.w r2, [r3], #4 80161b4: 459c cmp ip, r3 80161b6: f841 2f04 str.w r2, [r1, #4]! 80161ba: d8f9 bhi.n 80161b0 <__lshift+0xc0> 80161bc: e7ea b.n 8016194 <__lshift+0xa4> 80161be: bf00 nop 80161c0: 08017358 .word 0x08017358 80161c4: 0801737a .word 0x0801737a 080161c8 <__mcmp>: 80161c8: 4603 mov r3, r0 80161ca: 690a ldr r2, [r1, #16] 80161cc: 6900 ldr r0, [r0, #16] 80161ce: b530 push {r4, r5, lr} 80161d0: 1a80 subs r0, r0, r2 80161d2: d10e bne.n 80161f2 <__mcmp+0x2a> 80161d4: 3314 adds r3, #20 80161d6: 3114 adds r1, #20 80161d8: eb03 0482 add.w r4, r3, r2, lsl #2 80161dc: eb01 0182 add.w r1, r1, r2, lsl #2 80161e0: f854 5d04 ldr.w r5, [r4, #-4]! 80161e4: f851 2d04 ldr.w r2, [r1, #-4]! 80161e8: 4295 cmp r5, r2 80161ea: d003 beq.n 80161f4 <__mcmp+0x2c> 80161ec: d205 bcs.n 80161fa <__mcmp+0x32> 80161ee: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80161f2: bd30 pop {r4, r5, pc} 80161f4: 42a3 cmp r3, r4 80161f6: d3f3 bcc.n 80161e0 <__mcmp+0x18> 80161f8: e7fb b.n 80161f2 <__mcmp+0x2a> 80161fa: 2001 movs r0, #1 80161fc: e7f9 b.n 80161f2 <__mcmp+0x2a> ... 08016200 <__mdiff>: 8016200: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 8016204: 4689 mov r9, r1 8016206: 4606 mov r6, r0 8016208: 4611 mov r1, r2 801620a: 4648 mov r0, r9 801620c: 4614 mov r4, r2 801620e: f7ff ffdb bl 80161c8 <__mcmp> 8016212: 1e05 subs r5, r0, #0 8016214: d112 bne.n 801623c <__mdiff+0x3c> 8016216: 4629 mov r1, r5 8016218: 4630 mov r0, r6 801621a: f7ff fd63 bl 8015ce4 <_Balloc> 801621e: 4602 mov r2, r0 8016220: b928 cbnz r0, 801622e <__mdiff+0x2e> 8016222: f240 2137 movw r1, #567 @ 0x237 8016226: 4b3e ldr r3, [pc, #248] @ (8016320 <__mdiff+0x120>) 8016228: 483e ldr r0, [pc, #248] @ (8016324 <__mdiff+0x124>) 801622a: f7fe faeb bl 8014804 <__assert_func> 801622e: 2301 movs r3, #1 8016230: e9c0 3504 strd r3, r5, [r0, #16] 8016234: 4610 mov r0, r2 8016236: b003 add sp, #12 8016238: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 801623c: bfbc itt lt 801623e: 464b movlt r3, r9 8016240: 46a1 movlt r9, r4 8016242: 4630 mov r0, r6 8016244: f8d9 1004 ldr.w r1, [r9, #4] 8016248: bfba itte lt 801624a: 461c movlt r4, r3 801624c: 2501 movlt r5, #1 801624e: 2500 movge r5, #0 8016250: f7ff fd48 bl 8015ce4 <_Balloc> 8016254: 4602 mov r2, r0 8016256: b918 cbnz r0, 8016260 <__mdiff+0x60> 8016258: f240 2145 movw r1, #581 @ 0x245 801625c: 4b30 ldr r3, [pc, #192] @ (8016320 <__mdiff+0x120>) 801625e: e7e3 b.n 8016228 <__mdiff+0x28> 8016260: f100 0b14 add.w fp, r0, #20 8016264: f8d9 7010 ldr.w r7, [r9, #16] 8016268: f109 0310 add.w r3, r9, #16 801626c: 60c5 str r5, [r0, #12] 801626e: f04f 0c00 mov.w ip, #0 8016272: f109 0514 add.w r5, r9, #20 8016276: 46d9 mov r9, fp 8016278: 6926 ldr r6, [r4, #16] 801627a: f104 0e14 add.w lr, r4, #20 801627e: eb05 0887 add.w r8, r5, r7, lsl #2 8016282: eb0e 0686 add.w r6, lr, r6, lsl #2 8016286: 9301 str r3, [sp, #4] 8016288: 9b01 ldr r3, [sp, #4] 801628a: f85e 0b04 ldr.w r0, [lr], #4 801628e: f853 af04 ldr.w sl, [r3, #4]! 8016292: b281 uxth r1, r0 8016294: 9301 str r3, [sp, #4] 8016296: fa1f f38a uxth.w r3, sl 801629a: 1a5b subs r3, r3, r1 801629c: 0c00 lsrs r0, r0, #16 801629e: 4463 add r3, ip 80162a0: ebc0 401a rsb r0, r0, sl, lsr #16 80162a4: eb00 4023 add.w r0, r0, r3, asr #16 80162a8: b29b uxth r3, r3 80162aa: ea43 4300 orr.w r3, r3, r0, lsl #16 80162ae: 4576 cmp r6, lr 80162b0: ea4f 4c20 mov.w ip, r0, asr #16 80162b4: f849 3b04 str.w r3, [r9], #4 80162b8: d8e6 bhi.n 8016288 <__mdiff+0x88> 80162ba: 1b33 subs r3, r6, r4 80162bc: 3b15 subs r3, #21 80162be: f023 0303 bic.w r3, r3, #3 80162c2: 3415 adds r4, #21 80162c4: 3304 adds r3, #4 80162c6: 42a6 cmp r6, r4 80162c8: bf38 it cc 80162ca: 2304 movcc r3, #4 80162cc: 441d add r5, r3 80162ce: 445b add r3, fp 80162d0: 461e mov r6, r3 80162d2: 462c mov r4, r5 80162d4: 4544 cmp r4, r8 80162d6: d30e bcc.n 80162f6 <__mdiff+0xf6> 80162d8: f108 0103 add.w r1, r8, #3 80162dc: 1b49 subs r1, r1, r5 80162de: f021 0103 bic.w r1, r1, #3 80162e2: 3d03 subs r5, #3 80162e4: 45a8 cmp r8, r5 80162e6: bf38 it cc 80162e8: 2100 movcc r1, #0 80162ea: 440b add r3, r1 80162ec: f853 1d04 ldr.w r1, [r3, #-4]! 80162f0: b199 cbz r1, 801631a <__mdiff+0x11a> 80162f2: 6117 str r7, [r2, #16] 80162f4: e79e b.n 8016234 <__mdiff+0x34> 80162f6: 46e6 mov lr, ip 80162f8: f854 1b04 ldr.w r1, [r4], #4 80162fc: fa1f fc81 uxth.w ip, r1 8016300: 44f4 add ip, lr 8016302: 0c08 lsrs r0, r1, #16 8016304: 4471 add r1, lr 8016306: eb00 402c add.w r0, r0, ip, asr #16 801630a: b289 uxth r1, r1 801630c: ea41 4100 orr.w r1, r1, r0, lsl #16 8016310: ea4f 4c20 mov.w ip, r0, asr #16 8016314: f846 1b04 str.w r1, [r6], #4 8016318: e7dc b.n 80162d4 <__mdiff+0xd4> 801631a: 3f01 subs r7, #1 801631c: e7e6 b.n 80162ec <__mdiff+0xec> 801631e: bf00 nop 8016320: 08017358 .word 0x08017358 8016324: 0801737a .word 0x0801737a 08016328 <__d2b>: 8016328: e92d 4373 stmdb sp!, {r0, r1, r4, r5, r6, r8, r9, lr} 801632c: 2101 movs r1, #1 801632e: 4690 mov r8, r2 8016330: 4699 mov r9, r3 8016332: 9e08 ldr r6, [sp, #32] 8016334: f7ff fcd6 bl 8015ce4 <_Balloc> 8016338: 4604 mov r4, r0 801633a: b930 cbnz r0, 801634a <__d2b+0x22> 801633c: 4602 mov r2, r0 801633e: f240 310f movw r1, #783 @ 0x30f 8016342: 4b23 ldr r3, [pc, #140] @ (80163d0 <__d2b+0xa8>) 8016344: 4823 ldr r0, [pc, #140] @ (80163d4 <__d2b+0xac>) 8016346: f7fe fa5d bl 8014804 <__assert_func> 801634a: f3c9 550a ubfx r5, r9, #20, #11 801634e: f3c9 0313 ubfx r3, r9, #0, #20 8016352: b10d cbz r5, 8016358 <__d2b+0x30> 8016354: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 8016358: 9301 str r3, [sp, #4] 801635a: f1b8 0300 subs.w r3, r8, #0 801635e: d024 beq.n 80163aa <__d2b+0x82> 8016360: 4668 mov r0, sp 8016362: 9300 str r3, [sp, #0] 8016364: f7ff fd85 bl 8015e72 <__lo0bits> 8016368: e9dd 1200 ldrd r1, r2, [sp] 801636c: b1d8 cbz r0, 80163a6 <__d2b+0x7e> 801636e: f1c0 0320 rsb r3, r0, #32 8016372: fa02 f303 lsl.w r3, r2, r3 8016376: 430b orrs r3, r1 8016378: 40c2 lsrs r2, r0 801637a: 6163 str r3, [r4, #20] 801637c: 9201 str r2, [sp, #4] 801637e: 9b01 ldr r3, [sp, #4] 8016380: 2b00 cmp r3, #0 8016382: bf0c ite eq 8016384: 2201 moveq r2, #1 8016386: 2202 movne r2, #2 8016388: 61a3 str r3, [r4, #24] 801638a: 6122 str r2, [r4, #16] 801638c: b1ad cbz r5, 80163ba <__d2b+0x92> 801638e: f2a5 4533 subw r5, r5, #1075 @ 0x433 8016392: 4405 add r5, r0 8016394: 6035 str r5, [r6, #0] 8016396: f1c0 0035 rsb r0, r0, #53 @ 0x35 801639a: 9b09 ldr r3, [sp, #36] @ 0x24 801639c: 6018 str r0, [r3, #0] 801639e: 4620 mov r0, r4 80163a0: b002 add sp, #8 80163a2: e8bd 8370 ldmia.w sp!, {r4, r5, r6, r8, r9, pc} 80163a6: 6161 str r1, [r4, #20] 80163a8: e7e9 b.n 801637e <__d2b+0x56> 80163aa: a801 add r0, sp, #4 80163ac: f7ff fd61 bl 8015e72 <__lo0bits> 80163b0: 9b01 ldr r3, [sp, #4] 80163b2: 2201 movs r2, #1 80163b4: 6163 str r3, [r4, #20] 80163b6: 3020 adds r0, #32 80163b8: e7e7 b.n 801638a <__d2b+0x62> 80163ba: f2a0 4032 subw r0, r0, #1074 @ 0x432 80163be: eb04 0382 add.w r3, r4, r2, lsl #2 80163c2: 6030 str r0, [r6, #0] 80163c4: 6918 ldr r0, [r3, #16] 80163c6: f7ff fd35 bl 8015e34 <__hi0bits> 80163ca: ebc0 1042 rsb r0, r0, r2, lsl #5 80163ce: e7e4 b.n 801639a <__d2b+0x72> 80163d0: 08017358 .word 0x08017358 80163d4: 0801737a .word 0x0801737a 080163d8 <__sread>: 80163d8: b510 push {r4, lr} 80163da: 460c mov r4, r1 80163dc: f9b1 100e ldrsh.w r1, [r1, #14] 80163e0: f000 f9b0 bl 8016744 <_read_r> 80163e4: 2800 cmp r0, #0 80163e6: bfab itete ge 80163e8: 6d63 ldrge r3, [r4, #84] @ 0x54 80163ea: 89a3 ldrhlt r3, [r4, #12] 80163ec: 181b addge r3, r3, r0 80163ee: f423 5380 biclt.w r3, r3, #4096 @ 0x1000 80163f2: bfac ite ge 80163f4: 6563 strge r3, [r4, #84] @ 0x54 80163f6: 81a3 strhlt r3, [r4, #12] 80163f8: bd10 pop {r4, pc} 080163fa <__swrite>: 80163fa: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 80163fe: 461f mov r7, r3 8016400: 898b ldrh r3, [r1, #12] 8016402: 4605 mov r5, r0 8016404: 05db lsls r3, r3, #23 8016406: 460c mov r4, r1 8016408: 4616 mov r6, r2 801640a: d505 bpl.n 8016418 <__swrite+0x1e> 801640c: 2302 movs r3, #2 801640e: 2200 movs r2, #0 8016410: f9b1 100e ldrsh.w r1, [r1, #14] 8016414: f000 f984 bl 8016720 <_lseek_r> 8016418: 89a3 ldrh r3, [r4, #12] 801641a: 4632 mov r2, r6 801641c: f423 5380 bic.w r3, r3, #4096 @ 0x1000 8016420: 81a3 strh r3, [r4, #12] 8016422: 4628 mov r0, r5 8016424: 463b mov r3, r7 8016426: f9b4 100e ldrsh.w r1, [r4, #14] 801642a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 801642e: f000 b9ab b.w 8016788 <_write_r> 08016432 <__sseek>: 8016432: b510 push {r4, lr} 8016434: 460c mov r4, r1 8016436: f9b1 100e ldrsh.w r1, [r1, #14] 801643a: f000 f971 bl 8016720 <_lseek_r> 801643e: 1c43 adds r3, r0, #1 8016440: 89a3 ldrh r3, [r4, #12] 8016442: bf15 itete ne 8016444: 6560 strne r0, [r4, #84] @ 0x54 8016446: f423 5380 biceq.w r3, r3, #4096 @ 0x1000 801644a: f443 5380 orrne.w r3, r3, #4096 @ 0x1000 801644e: 81a3 strheq r3, [r4, #12] 8016450: bf18 it ne 8016452: 81a3 strhne r3, [r4, #12] 8016454: bd10 pop {r4, pc} 08016456 <__sclose>: 8016456: f9b1 100e ldrsh.w r1, [r1, #14] 801645a: f000 b9a7 b.w 80167ac <_close_r> ... 08016460 : 8016460: b40e push {r1, r2, r3} 8016462: b503 push {r0, r1, lr} 8016464: 4601 mov r1, r0 8016466: ab03 add r3, sp, #12 8016468: 4805 ldr r0, [pc, #20] @ (8016480 ) 801646a: f853 2b04 ldr.w r2, [r3], #4 801646e: 6800 ldr r0, [r0, #0] 8016470: 9301 str r3, [sp, #4] 8016472: f7ff f9c1 bl 80157f8 <_vfiprintf_r> 8016476: b002 add sp, #8 8016478: f85d eb04 ldr.w lr, [sp], #4 801647c: b003 add sp, #12 801647e: 4770 bx lr 8016480: 2000009c .word 0x2000009c 08016484 <_realloc_r>: 8016484: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 8016488: 4607 mov r7, r0 801648a: 4614 mov r4, r2 801648c: 460d mov r5, r1 801648e: b921 cbnz r1, 801649a <_realloc_r+0x16> 8016490: 4611 mov r1, r2 8016492: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 8016496: f7ff baf1 b.w 8015a7c <_malloc_r> 801649a: b92a cbnz r2, 80164a8 <_realloc_r+0x24> 801649c: f000 f9c4 bl 8016828 <_free_r> 80164a0: 4625 mov r5, r4 80164a2: 4628 mov r0, r5 80164a4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 80164a8: f000 fa18 bl 80168dc <_malloc_usable_size_r> 80164ac: 4284 cmp r4, r0 80164ae: 4606 mov r6, r0 80164b0: d802 bhi.n 80164b8 <_realloc_r+0x34> 80164b2: ebb4 0f50 cmp.w r4, r0, lsr #1 80164b6: d8f4 bhi.n 80164a2 <_realloc_r+0x1e> 80164b8: 4621 mov r1, r4 80164ba: 4638 mov r0, r7 80164bc: f7ff fade bl 8015a7c <_malloc_r> 80164c0: 4680 mov r8, r0 80164c2: b908 cbnz r0, 80164c8 <_realloc_r+0x44> 80164c4: 4645 mov r5, r8 80164c6: e7ec b.n 80164a2 <_realloc_r+0x1e> 80164c8: 42b4 cmp r4, r6 80164ca: 4622 mov r2, r4 80164cc: 4629 mov r1, r5 80164ce: bf28 it cs 80164d0: 4632 movcs r2, r6 80164d2: f7fe f989 bl 80147e8 80164d6: 4629 mov r1, r5 80164d8: 4638 mov r0, r7 80164da: f000 f9a5 bl 8016828 <_free_r> 80164de: e7f1 b.n 80164c4 <_realloc_r+0x40> 080164e0 <__swbuf_r>: 80164e0: b5f8 push {r3, r4, r5, r6, r7, lr} 80164e2: 460e mov r6, r1 80164e4: 4614 mov r4, r2 80164e6: 4605 mov r5, r0 80164e8: b118 cbz r0, 80164f2 <__swbuf_r+0x12> 80164ea: 6a03 ldr r3, [r0, #32] 80164ec: b90b cbnz r3, 80164f2 <__swbuf_r+0x12> 80164ee: f7fe f8af bl 8014650 <__sinit> 80164f2: 69a3 ldr r3, [r4, #24] 80164f4: 60a3 str r3, [r4, #8] 80164f6: 89a3 ldrh r3, [r4, #12] 80164f8: 071a lsls r2, r3, #28 80164fa: d501 bpl.n 8016500 <__swbuf_r+0x20> 80164fc: 6923 ldr r3, [r4, #16] 80164fe: b943 cbnz r3, 8016512 <__swbuf_r+0x32> 8016500: 4621 mov r1, r4 8016502: 4628 mov r0, r5 8016504: f000 f82a bl 801655c <__swsetup_r> 8016508: b118 cbz r0, 8016512 <__swbuf_r+0x32> 801650a: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff 801650e: 4638 mov r0, r7 8016510: bdf8 pop {r3, r4, r5, r6, r7, pc} 8016512: 6823 ldr r3, [r4, #0] 8016514: 6922 ldr r2, [r4, #16] 8016516: b2f6 uxtb r6, r6 8016518: 1a98 subs r0, r3, r2 801651a: 6963 ldr r3, [r4, #20] 801651c: 4637 mov r7, r6 801651e: 4283 cmp r3, r0 8016520: dc05 bgt.n 801652e <__swbuf_r+0x4e> 8016522: 4621 mov r1, r4 8016524: 4628 mov r0, r5 8016526: f7ff fba9 bl 8015c7c <_fflush_r> 801652a: 2800 cmp r0, #0 801652c: d1ed bne.n 801650a <__swbuf_r+0x2a> 801652e: 68a3 ldr r3, [r4, #8] 8016530: 3b01 subs r3, #1 8016532: 60a3 str r3, [r4, #8] 8016534: 6823 ldr r3, [r4, #0] 8016536: 1c5a adds r2, r3, #1 8016538: 6022 str r2, [r4, #0] 801653a: 701e strb r6, [r3, #0] 801653c: 6962 ldr r2, [r4, #20] 801653e: 1c43 adds r3, r0, #1 8016540: 429a cmp r2, r3 8016542: d004 beq.n 801654e <__swbuf_r+0x6e> 8016544: 89a3 ldrh r3, [r4, #12] 8016546: 07db lsls r3, r3, #31 8016548: d5e1 bpl.n 801650e <__swbuf_r+0x2e> 801654a: 2e0a cmp r6, #10 801654c: d1df bne.n 801650e <__swbuf_r+0x2e> 801654e: 4621 mov r1, r4 8016550: 4628 mov r0, r5 8016552: f7ff fb93 bl 8015c7c <_fflush_r> 8016556: 2800 cmp r0, #0 8016558: d0d9 beq.n 801650e <__swbuf_r+0x2e> 801655a: e7d6 b.n 801650a <__swbuf_r+0x2a> 0801655c <__swsetup_r>: 801655c: b538 push {r3, r4, r5, lr} 801655e: 4b29 ldr r3, [pc, #164] @ (8016604 <__swsetup_r+0xa8>) 8016560: 4605 mov r5, r0 8016562: 6818 ldr r0, [r3, #0] 8016564: 460c mov r4, r1 8016566: b118 cbz r0, 8016570 <__swsetup_r+0x14> 8016568: 6a03 ldr r3, [r0, #32] 801656a: b90b cbnz r3, 8016570 <__swsetup_r+0x14> 801656c: f7fe f870 bl 8014650 <__sinit> 8016570: f9b4 300c ldrsh.w r3, [r4, #12] 8016574: 0719 lsls r1, r3, #28 8016576: d422 bmi.n 80165be <__swsetup_r+0x62> 8016578: 06da lsls r2, r3, #27 801657a: d407 bmi.n 801658c <__swsetup_r+0x30> 801657c: 2209 movs r2, #9 801657e: 602a str r2, [r5, #0] 8016580: f043 0340 orr.w r3, r3, #64 @ 0x40 8016584: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8016588: 81a3 strh r3, [r4, #12] 801658a: e033 b.n 80165f4 <__swsetup_r+0x98> 801658c: 0758 lsls r0, r3, #29 801658e: d512 bpl.n 80165b6 <__swsetup_r+0x5a> 8016590: 6b61 ldr r1, [r4, #52] @ 0x34 8016592: b141 cbz r1, 80165a6 <__swsetup_r+0x4a> 8016594: f104 0344 add.w r3, r4, #68 @ 0x44 8016598: 4299 cmp r1, r3 801659a: d002 beq.n 80165a2 <__swsetup_r+0x46> 801659c: 4628 mov r0, r5 801659e: f000 f943 bl 8016828 <_free_r> 80165a2: 2300 movs r3, #0 80165a4: 6363 str r3, [r4, #52] @ 0x34 80165a6: 89a3 ldrh r3, [r4, #12] 80165a8: f023 0324 bic.w r3, r3, #36 @ 0x24 80165ac: 81a3 strh r3, [r4, #12] 80165ae: 2300 movs r3, #0 80165b0: 6063 str r3, [r4, #4] 80165b2: 6923 ldr r3, [r4, #16] 80165b4: 6023 str r3, [r4, #0] 80165b6: 89a3 ldrh r3, [r4, #12] 80165b8: f043 0308 orr.w r3, r3, #8 80165bc: 81a3 strh r3, [r4, #12] 80165be: 6923 ldr r3, [r4, #16] 80165c0: b94b cbnz r3, 80165d6 <__swsetup_r+0x7a> 80165c2: 89a3 ldrh r3, [r4, #12] 80165c4: f403 7320 and.w r3, r3, #640 @ 0x280 80165c8: f5b3 7f00 cmp.w r3, #512 @ 0x200 80165cc: d003 beq.n 80165d6 <__swsetup_r+0x7a> 80165ce: 4621 mov r1, r4 80165d0: 4628 mov r0, r5 80165d2: f000 f83e bl 8016652 <__smakebuf_r> 80165d6: f9b4 300c ldrsh.w r3, [r4, #12] 80165da: f013 0201 ands.w r2, r3, #1 80165de: d00a beq.n 80165f6 <__swsetup_r+0x9a> 80165e0: 2200 movs r2, #0 80165e2: 60a2 str r2, [r4, #8] 80165e4: 6962 ldr r2, [r4, #20] 80165e6: 4252 negs r2, r2 80165e8: 61a2 str r2, [r4, #24] 80165ea: 6922 ldr r2, [r4, #16] 80165ec: b942 cbnz r2, 8016600 <__swsetup_r+0xa4> 80165ee: f013 0080 ands.w r0, r3, #128 @ 0x80 80165f2: d1c5 bne.n 8016580 <__swsetup_r+0x24> 80165f4: bd38 pop {r3, r4, r5, pc} 80165f6: 0799 lsls r1, r3, #30 80165f8: bf58 it pl 80165fa: 6962 ldrpl r2, [r4, #20] 80165fc: 60a2 str r2, [r4, #8] 80165fe: e7f4 b.n 80165ea <__swsetup_r+0x8e> 8016600: 2000 movs r0, #0 8016602: e7f7 b.n 80165f4 <__swsetup_r+0x98> 8016604: 2000009c .word 0x2000009c 08016608 <__swhatbuf_r>: 8016608: b570 push {r4, r5, r6, lr} 801660a: 460c mov r4, r1 801660c: f9b1 100e ldrsh.w r1, [r1, #14] 8016610: 4615 mov r5, r2 8016612: 2900 cmp r1, #0 8016614: 461e mov r6, r3 8016616: b096 sub sp, #88 @ 0x58 8016618: da0c bge.n 8016634 <__swhatbuf_r+0x2c> 801661a: 89a3 ldrh r3, [r4, #12] 801661c: 2100 movs r1, #0 801661e: f013 0f80 tst.w r3, #128 @ 0x80 8016622: bf14 ite ne 8016624: 2340 movne r3, #64 @ 0x40 8016626: f44f 6380 moveq.w r3, #1024 @ 0x400 801662a: 2000 movs r0, #0 801662c: 6031 str r1, [r6, #0] 801662e: 602b str r3, [r5, #0] 8016630: b016 add sp, #88 @ 0x58 8016632: bd70 pop {r4, r5, r6, pc} 8016634: 466a mov r2, sp 8016636: f000 f8c9 bl 80167cc <_fstat_r> 801663a: 2800 cmp r0, #0 801663c: dbed blt.n 801661a <__swhatbuf_r+0x12> 801663e: 9901 ldr r1, [sp, #4] 8016640: f401 4170 and.w r1, r1, #61440 @ 0xf000 8016644: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000 8016648: 4259 negs r1, r3 801664a: 4159 adcs r1, r3 801664c: f44f 6380 mov.w r3, #1024 @ 0x400 8016650: e7eb b.n 801662a <__swhatbuf_r+0x22> 08016652 <__smakebuf_r>: 8016652: 898b ldrh r3, [r1, #12] 8016654: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8016656: 079d lsls r5, r3, #30 8016658: 4606 mov r6, r0 801665a: 460c mov r4, r1 801665c: d507 bpl.n 801666e <__smakebuf_r+0x1c> 801665e: f104 0347 add.w r3, r4, #71 @ 0x47 8016662: 6023 str r3, [r4, #0] 8016664: 6123 str r3, [r4, #16] 8016666: 2301 movs r3, #1 8016668: 6163 str r3, [r4, #20] 801666a: b003 add sp, #12 801666c: bdf0 pop {r4, r5, r6, r7, pc} 801666e: 466a mov r2, sp 8016670: ab01 add r3, sp, #4 8016672: f7ff ffc9 bl 8016608 <__swhatbuf_r> 8016676: 9f00 ldr r7, [sp, #0] 8016678: 4605 mov r5, r0 801667a: 4639 mov r1, r7 801667c: 4630 mov r0, r6 801667e: f7ff f9fd bl 8015a7c <_malloc_r> 8016682: b948 cbnz r0, 8016698 <__smakebuf_r+0x46> 8016684: f9b4 300c ldrsh.w r3, [r4, #12] 8016688: 059a lsls r2, r3, #22 801668a: d4ee bmi.n 801666a <__smakebuf_r+0x18> 801668c: f023 0303 bic.w r3, r3, #3 8016690: f043 0302 orr.w r3, r3, #2 8016694: 81a3 strh r3, [r4, #12] 8016696: e7e2 b.n 801665e <__smakebuf_r+0xc> 8016698: 89a3 ldrh r3, [r4, #12] 801669a: e9c4 0704 strd r0, r7, [r4, #16] 801669e: f043 0380 orr.w r3, r3, #128 @ 0x80 80166a2: 81a3 strh r3, [r4, #12] 80166a4: 9b01 ldr r3, [sp, #4] 80166a6: 6020 str r0, [r4, #0] 80166a8: b15b cbz r3, 80166c2 <__smakebuf_r+0x70> 80166aa: 4630 mov r0, r6 80166ac: f9b4 100e ldrsh.w r1, [r4, #14] 80166b0: f000 f826 bl 8016700 <_isatty_r> 80166b4: b128 cbz r0, 80166c2 <__smakebuf_r+0x70> 80166b6: 89a3 ldrh r3, [r4, #12] 80166b8: f023 0303 bic.w r3, r3, #3 80166bc: f043 0301 orr.w r3, r3, #1 80166c0: 81a3 strh r3, [r4, #12] 80166c2: 89a3 ldrh r3, [r4, #12] 80166c4: 431d orrs r5, r3 80166c6: 81a5 strh r5, [r4, #12] 80166c8: e7cf b.n 801666a <__smakebuf_r+0x18> 080166ca : 80166ca: 4288 cmp r0, r1 80166cc: b510 push {r4, lr} 80166ce: eb01 0402 add.w r4, r1, r2 80166d2: d902 bls.n 80166da 80166d4: 4284 cmp r4, r0 80166d6: 4623 mov r3, r4 80166d8: d807 bhi.n 80166ea 80166da: 1e43 subs r3, r0, #1 80166dc: 42a1 cmp r1, r4 80166de: d008 beq.n 80166f2 80166e0: f811 2b01 ldrb.w r2, [r1], #1 80166e4: f803 2f01 strb.w r2, [r3, #1]! 80166e8: e7f8 b.n 80166dc 80166ea: 4601 mov r1, r0 80166ec: 4402 add r2, r0 80166ee: 428a cmp r2, r1 80166f0: d100 bne.n 80166f4 80166f2: bd10 pop {r4, pc} 80166f4: f813 4d01 ldrb.w r4, [r3, #-1]! 80166f8: f802 4d01 strb.w r4, [r2, #-1]! 80166fc: e7f7 b.n 80166ee ... 08016700 <_isatty_r>: 8016700: b538 push {r3, r4, r5, lr} 8016702: 2300 movs r3, #0 8016704: 4d05 ldr r5, [pc, #20] @ (801671c <_isatty_r+0x1c>) 8016706: 4604 mov r4, r0 8016708: 4608 mov r0, r1 801670a: 602b str r3, [r5, #0] 801670c: f7f6 ffa9 bl 800d662 <_isatty> 8016710: 1c43 adds r3, r0, #1 8016712: d102 bne.n 801671a <_isatty_r+0x1a> 8016714: 682b ldr r3, [r5, #0] 8016716: b103 cbz r3, 801671a <_isatty_r+0x1a> 8016718: 6023 str r3, [r4, #0] 801671a: bd38 pop {r3, r4, r5, pc} 801671c: 200013c0 .word 0x200013c0 08016720 <_lseek_r>: 8016720: b538 push {r3, r4, r5, lr} 8016722: 4604 mov r4, r0 8016724: 4608 mov r0, r1 8016726: 4611 mov r1, r2 8016728: 2200 movs r2, #0 801672a: 4d05 ldr r5, [pc, #20] @ (8016740 <_lseek_r+0x20>) 801672c: 602a str r2, [r5, #0] 801672e: 461a mov r2, r3 8016730: f7f6 ffa1 bl 800d676 <_lseek> 8016734: 1c43 adds r3, r0, #1 8016736: d102 bne.n 801673e <_lseek_r+0x1e> 8016738: 682b ldr r3, [r5, #0] 801673a: b103 cbz r3, 801673e <_lseek_r+0x1e> 801673c: 6023 str r3, [r4, #0] 801673e: bd38 pop {r3, r4, r5, pc} 8016740: 200013c0 .word 0x200013c0 08016744 <_read_r>: 8016744: b538 push {r3, r4, r5, lr} 8016746: 4604 mov r4, r0 8016748: 4608 mov r0, r1 801674a: 4611 mov r1, r2 801674c: 2200 movs r2, #0 801674e: 4d05 ldr r5, [pc, #20] @ (8016764 <_read_r+0x20>) 8016750: 602a str r2, [r5, #0] 8016752: 461a mov r2, r3 8016754: f7f6 ff4e bl 800d5f4 <_read> 8016758: 1c43 adds r3, r0, #1 801675a: d102 bne.n 8016762 <_read_r+0x1e> 801675c: 682b ldr r3, [r5, #0] 801675e: b103 cbz r3, 8016762 <_read_r+0x1e> 8016760: 6023 str r3, [r4, #0] 8016762: bd38 pop {r3, r4, r5, pc} 8016764: 200013c0 .word 0x200013c0 08016768 <_sbrk_r>: 8016768: b538 push {r3, r4, r5, lr} 801676a: 2300 movs r3, #0 801676c: 4d05 ldr r5, [pc, #20] @ (8016784 <_sbrk_r+0x1c>) 801676e: 4604 mov r4, r0 8016770: 4608 mov r0, r1 8016772: 602b str r3, [r5, #0] 8016774: f7f6 ff8c bl 800d690 <_sbrk> 8016778: 1c43 adds r3, r0, #1 801677a: d102 bne.n 8016782 <_sbrk_r+0x1a> 801677c: 682b ldr r3, [r5, #0] 801677e: b103 cbz r3, 8016782 <_sbrk_r+0x1a> 8016780: 6023 str r3, [r4, #0] 8016782: bd38 pop {r3, r4, r5, pc} 8016784: 200013c0 .word 0x200013c0 08016788 <_write_r>: 8016788: b538 push {r3, r4, r5, lr} 801678a: 4604 mov r4, r0 801678c: 4608 mov r0, r1 801678e: 4611 mov r1, r2 8016790: 2200 movs r2, #0 8016792: 4d05 ldr r5, [pc, #20] @ (80167a8 <_write_r+0x20>) 8016794: 602a str r2, [r5, #0] 8016796: 461a mov r2, r3 8016798: f7f3 fdbc bl 800a314 <_write> 801679c: 1c43 adds r3, r0, #1 801679e: d102 bne.n 80167a6 <_write_r+0x1e> 80167a0: 682b ldr r3, [r5, #0] 80167a2: b103 cbz r3, 80167a6 <_write_r+0x1e> 80167a4: 6023 str r3, [r4, #0] 80167a6: bd38 pop {r3, r4, r5, pc} 80167a8: 200013c0 .word 0x200013c0 080167ac <_close_r>: 80167ac: b538 push {r3, r4, r5, lr} 80167ae: 2300 movs r3, #0 80167b0: 4d05 ldr r5, [pc, #20] @ (80167c8 <_close_r+0x1c>) 80167b2: 4604 mov r4, r0 80167b4: 4608 mov r0, r1 80167b6: 602b str r3, [r5, #0] 80167b8: f7f6 ff39 bl 800d62e <_close> 80167bc: 1c43 adds r3, r0, #1 80167be: d102 bne.n 80167c6 <_close_r+0x1a> 80167c0: 682b ldr r3, [r5, #0] 80167c2: b103 cbz r3, 80167c6 <_close_r+0x1a> 80167c4: 6023 str r3, [r4, #0] 80167c6: bd38 pop {r3, r4, r5, pc} 80167c8: 200013c0 .word 0x200013c0 080167cc <_fstat_r>: 80167cc: b538 push {r3, r4, r5, lr} 80167ce: 2300 movs r3, #0 80167d0: 4d06 ldr r5, [pc, #24] @ (80167ec <_fstat_r+0x20>) 80167d2: 4604 mov r4, r0 80167d4: 4608 mov r0, r1 80167d6: 4611 mov r1, r2 80167d8: 602b str r3, [r5, #0] 80167da: f7f6 ff33 bl 800d644 <_fstat> 80167de: 1c43 adds r3, r0, #1 80167e0: d102 bne.n 80167e8 <_fstat_r+0x1c> 80167e2: 682b ldr r3, [r5, #0] 80167e4: b103 cbz r3, 80167e8 <_fstat_r+0x1c> 80167e6: 6023 str r3, [r4, #0] 80167e8: bd38 pop {r3, r4, r5, pc} 80167ea: bf00 nop 80167ec: 200013c0 .word 0x200013c0 080167f0 : 80167f0: 2006 movs r0, #6 80167f2: b508 push {r3, lr} 80167f4: f000 f8b0 bl 8016958 80167f8: 2001 movs r0, #1 80167fa: f7f6 fef0 bl 800d5de <_exit> 080167fe <_calloc_r>: 80167fe: b570 push {r4, r5, r6, lr} 8016800: fba1 5402 umull r5, r4, r1, r2 8016804: b934 cbnz r4, 8016814 <_calloc_r+0x16> 8016806: 4629 mov r1, r5 8016808: f7ff f938 bl 8015a7c <_malloc_r> 801680c: 4606 mov r6, r0 801680e: b928 cbnz r0, 801681c <_calloc_r+0x1e> 8016810: 4630 mov r0, r6 8016812: bd70 pop {r4, r5, r6, pc} 8016814: 220c movs r2, #12 8016816: 2600 movs r6, #0 8016818: 6002 str r2, [r0, #0] 801681a: e7f9 b.n 8016810 <_calloc_r+0x12> 801681c: 462a mov r2, r5 801681e: 4621 mov r1, r4 8016820: f7fd ff9a bl 8014758 8016824: e7f4 b.n 8016810 <_calloc_r+0x12> ... 08016828 <_free_r>: 8016828: b538 push {r3, r4, r5, lr} 801682a: 4605 mov r5, r0 801682c: 2900 cmp r1, #0 801682e: d040 beq.n 80168b2 <_free_r+0x8a> 8016830: f851 3c04 ldr.w r3, [r1, #-4] 8016834: 1f0c subs r4, r1, #4 8016836: 2b00 cmp r3, #0 8016838: bfb8 it lt 801683a: 18e4 addlt r4, r4, r3 801683c: f7ff fa46 bl 8015ccc <__malloc_lock> 8016840: 4a1c ldr r2, [pc, #112] @ (80168b4 <_free_r+0x8c>) 8016842: 6813 ldr r3, [r2, #0] 8016844: b933 cbnz r3, 8016854 <_free_r+0x2c> 8016846: 6063 str r3, [r4, #4] 8016848: 6014 str r4, [r2, #0] 801684a: 4628 mov r0, r5 801684c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 8016850: f7ff ba42 b.w 8015cd8 <__malloc_unlock> 8016854: 42a3 cmp r3, r4 8016856: d908 bls.n 801686a <_free_r+0x42> 8016858: 6820 ldr r0, [r4, #0] 801685a: 1821 adds r1, r4, r0 801685c: 428b cmp r3, r1 801685e: bf01 itttt eq 8016860: 6819 ldreq r1, [r3, #0] 8016862: 685b ldreq r3, [r3, #4] 8016864: 1809 addeq r1, r1, r0 8016866: 6021 streq r1, [r4, #0] 8016868: e7ed b.n 8016846 <_free_r+0x1e> 801686a: 461a mov r2, r3 801686c: 685b ldr r3, [r3, #4] 801686e: b10b cbz r3, 8016874 <_free_r+0x4c> 8016870: 42a3 cmp r3, r4 8016872: d9fa bls.n 801686a <_free_r+0x42> 8016874: 6811 ldr r1, [r2, #0] 8016876: 1850 adds r0, r2, r1 8016878: 42a0 cmp r0, r4 801687a: d10b bne.n 8016894 <_free_r+0x6c> 801687c: 6820 ldr r0, [r4, #0] 801687e: 4401 add r1, r0 8016880: 1850 adds r0, r2, r1 8016882: 4283 cmp r3, r0 8016884: 6011 str r1, [r2, #0] 8016886: d1e0 bne.n 801684a <_free_r+0x22> 8016888: 6818 ldr r0, [r3, #0] 801688a: 685b ldr r3, [r3, #4] 801688c: 4408 add r0, r1 801688e: 6010 str r0, [r2, #0] 8016890: 6053 str r3, [r2, #4] 8016892: e7da b.n 801684a <_free_r+0x22> 8016894: d902 bls.n 801689c <_free_r+0x74> 8016896: 230c movs r3, #12 8016898: 602b str r3, [r5, #0] 801689a: e7d6 b.n 801684a <_free_r+0x22> 801689c: 6820 ldr r0, [r4, #0] 801689e: 1821 adds r1, r4, r0 80168a0: 428b cmp r3, r1 80168a2: bf01 itttt eq 80168a4: 6819 ldreq r1, [r3, #0] 80168a6: 685b ldreq r3, [r3, #4] 80168a8: 1809 addeq r1, r1, r0 80168aa: 6021 streq r1, [r4, #0] 80168ac: 6063 str r3, [r4, #4] 80168ae: 6054 str r4, [r2, #4] 80168b0: e7cb b.n 801684a <_free_r+0x22> 80168b2: bd38 pop {r3, r4, r5, pc} 80168b4: 200013bc .word 0x200013bc 080168b8 <__ascii_mbtowc>: 80168b8: b082 sub sp, #8 80168ba: b901 cbnz r1, 80168be <__ascii_mbtowc+0x6> 80168bc: a901 add r1, sp, #4 80168be: b142 cbz r2, 80168d2 <__ascii_mbtowc+0x1a> 80168c0: b14b cbz r3, 80168d6 <__ascii_mbtowc+0x1e> 80168c2: 7813 ldrb r3, [r2, #0] 80168c4: 600b str r3, [r1, #0] 80168c6: 7812 ldrb r2, [r2, #0] 80168c8: 1e10 subs r0, r2, #0 80168ca: bf18 it ne 80168cc: 2001 movne r0, #1 80168ce: b002 add sp, #8 80168d0: 4770 bx lr 80168d2: 4610 mov r0, r2 80168d4: e7fb b.n 80168ce <__ascii_mbtowc+0x16> 80168d6: f06f 0001 mvn.w r0, #1 80168da: e7f8 b.n 80168ce <__ascii_mbtowc+0x16> 080168dc <_malloc_usable_size_r>: 80168dc: f851 3c04 ldr.w r3, [r1, #-4] 80168e0: 1f18 subs r0, r3, #4 80168e2: 2b00 cmp r3, #0 80168e4: bfbc itt lt 80168e6: 580b ldrlt r3, [r1, r0] 80168e8: 18c0 addlt r0, r0, r3 80168ea: 4770 bx lr 080168ec <__ascii_wctomb>: 80168ec: 4603 mov r3, r0 80168ee: 4608 mov r0, r1 80168f0: b141 cbz r1, 8016904 <__ascii_wctomb+0x18> 80168f2: 2aff cmp r2, #255 @ 0xff 80168f4: d904 bls.n 8016900 <__ascii_wctomb+0x14> 80168f6: 228a movs r2, #138 @ 0x8a 80168f8: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80168fc: 601a str r2, [r3, #0] 80168fe: 4770 bx lr 8016900: 2001 movs r0, #1 8016902: 700a strb r2, [r1, #0] 8016904: 4770 bx lr 08016906 <_raise_r>: 8016906: 291f cmp r1, #31 8016908: b538 push {r3, r4, r5, lr} 801690a: 4605 mov r5, r0 801690c: 460c mov r4, r1 801690e: d904 bls.n 801691a <_raise_r+0x14> 8016910: 2316 movs r3, #22 8016912: 6003 str r3, [r0, #0] 8016914: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8016918: bd38 pop {r3, r4, r5, pc} 801691a: 6bc2 ldr r2, [r0, #60] @ 0x3c 801691c: b112 cbz r2, 8016924 <_raise_r+0x1e> 801691e: f852 3021 ldr.w r3, [r2, r1, lsl #2] 8016922: b94b cbnz r3, 8016938 <_raise_r+0x32> 8016924: 4628 mov r0, r5 8016926: f000 f831 bl 801698c <_getpid_r> 801692a: 4622 mov r2, r4 801692c: 4601 mov r1, r0 801692e: 4628 mov r0, r5 8016930: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 8016934: f000 b818 b.w 8016968 <_kill_r> 8016938: 2b01 cmp r3, #1 801693a: d00a beq.n 8016952 <_raise_r+0x4c> 801693c: 1c59 adds r1, r3, #1 801693e: d103 bne.n 8016948 <_raise_r+0x42> 8016940: 2316 movs r3, #22 8016942: 6003 str r3, [r0, #0] 8016944: 2001 movs r0, #1 8016946: e7e7 b.n 8016918 <_raise_r+0x12> 8016948: 2100 movs r1, #0 801694a: 4620 mov r0, r4 801694c: f842 1024 str.w r1, [r2, r4, lsl #2] 8016950: 4798 blx r3 8016952: 2000 movs r0, #0 8016954: e7e0 b.n 8016918 <_raise_r+0x12> ... 08016958 : 8016958: 4b02 ldr r3, [pc, #8] @ (8016964 ) 801695a: 4601 mov r1, r0 801695c: 6818 ldr r0, [r3, #0] 801695e: f7ff bfd2 b.w 8016906 <_raise_r> 8016962: bf00 nop 8016964: 2000009c .word 0x2000009c 08016968 <_kill_r>: 8016968: b538 push {r3, r4, r5, lr} 801696a: 2300 movs r3, #0 801696c: 4d06 ldr r5, [pc, #24] @ (8016988 <_kill_r+0x20>) 801696e: 4604 mov r4, r0 8016970: 4608 mov r0, r1 8016972: 4611 mov r1, r2 8016974: 602b str r3, [r5, #0] 8016976: f7f6 fe22 bl 800d5be <_kill> 801697a: 1c43 adds r3, r0, #1 801697c: d102 bne.n 8016984 <_kill_r+0x1c> 801697e: 682b ldr r3, [r5, #0] 8016980: b103 cbz r3, 8016984 <_kill_r+0x1c> 8016982: 6023 str r3, [r4, #0] 8016984: bd38 pop {r3, r4, r5, pc} 8016986: bf00 nop 8016988: 200013c0 .word 0x200013c0 0801698c <_getpid_r>: 801698c: f7f6 be10 b.w 800d5b0 <_getpid> 08016990 <_init>: 8016990: b5f8 push {r3, r4, r5, r6, r7, lr} 8016992: bf00 nop 8016994: bcf8 pop {r3, r4, r5, r6, r7} 8016996: bc08 pop {r3} 8016998: 469e mov lr, r3 801699a: 4770 bx lr 0801699c <_fini>: 801699c: b5f8 push {r3, r4, r5, r6, r7, lr} 801699e: bf00 nop 80169a0: bcf8 pop {r3, r4, r5, r6, r7} 80169a2: bc08 pop {r3} 80169a4: 469e mov lr, r3 80169a6: 4770 bx lr