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 0000e578 080081e8 080081e8 000011e8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .rodata 00000c3c 08016760 08016760 0000f760 2**3 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .ARM.extab 00000000 0801739c 0801739c 0001123c 2**0 CONTENTS 4 .ARM 00000008 0801739c 0801739c 0001039c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 .preinit_array 00000000 080173a4 080173a4 0001123c 2**0 CONTENTS, ALLOC, LOAD, DATA 6 .init_array 00000004 080173a4 080173a4 000103a4 2**2 CONTENTS, ALLOC, LOAD, DATA 7 .fini_array 00000004 080173a8 080173a8 000103a8 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .data 0000023c 20000000 080173ac 00011000 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .bss 00001158 20000240 080175e8 00011240 2**3 ALLOC 10 ._user_heap_stack 00000600 20001398 080175e8 00011398 2**0 ALLOC 11 .ARM.attributes 00000029 00000000 00000000 0001123c 2**0 CONTENTS, READONLY 12 .debug_info 0001ce92 00000000 00000000 00011265 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 13 .debug_abbrev 0000571d 00000000 00000000 0002e0f7 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 14 .debug_loclists 00000f22 00000000 00000000 00033814 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 15 .debug_aranges 00001700 00000000 00000000 00034738 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_rnglists 0000120c 00000000 00000000 00035e38 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 17 .debug_macro 00026509 00000000 00000000 00037044 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 18 .debug_line 0002131e 00000000 00000000 0005d54d 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 19 .debug_str 000c989e 00000000 00000000 0007e86b 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 20 .comment 00000043 00000000 00000000 00148109 2**0 CONTENTS, READONLY 21 .debug_frame 00006d64 00000000 00000000 0014814c 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS 22 .debug_line_str 00000073 00000000 00000000 0014eeb0 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: 20000240 .word 0x20000240 8008204: 00000000 .word 0x00000000 8008208: 08016748 .word 0x08016748 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: 20000244 .word 0x20000244 8008224: 08016748 .word 0x08016748 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 fd5f bl 800dff4 8009536: 4603 mov r3, r0 8009538: 2b00 cmp r3, #0 800953a: d001 beq.n 8009540 { Error_Handler(); 800953c: f001 fb00 bl 800ab40 } } 8009540: bf00 nop 8009542: bd80 pop {r7, pc} 8009544: 2000025c .word 0x2000025c 8009548: 20000278 .word 0x20000278 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: 2000025c .word 0x2000025c 8009590: 20000268 .word 0x20000268 8009594: 20000274 .word 0x20000274 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 fc34 bl 800de44 80095dc: 4603 mov r3, r0 80095de: 2b00 cmp r3, #0 80095e0: d001 beq.n 80095e6 { Error_Handler(); 80095e2: f001 faad bl 800ab40 } /** 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 feb4 bl 800e364 80095fc: 4603 mov r3, r0 80095fe: 2b00 cmp r3, #0 8009600: d001 beq.n 8009606 { Error_Handler(); 8009602: f001 fa9d bl 800ab40 } /** 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 fea6 bl 800e364 8009618: 4603 mov r3, r0 800961a: 2b00 cmp r3, #0 800961c: d001 beq.n 8009622 { Error_Handler(); 800961e: f001 fa8f bl 800ab40 } /** 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 fe98 bl 800e364 8009634: 4603 mov r3, r0 8009636: 2b00 cmp r3, #0 8009638: d001 beq.n 800963e { Error_Handler(); 800963a: f001 fa81 bl 800ab40 } /** 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 fe8a bl 800e364 8009650: 4603 mov r3, r0 8009652: 2b00 cmp r3, #0 8009654: d001 beq.n 800965a { Error_Handler(); 8009656: f001 fa73 bl 800ab40 } /** 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 fe7c bl 800e364 800966c: 4603 mov r3, r0 800966e: 2b00 cmp r3, #0 8009670: d001 beq.n 8009676 { Error_Handler(); 8009672: f001 fa65 bl 800ab40 } /** 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 fe6e bl 800e364 8009688: 4603 mov r3, r0 800968a: 2b00 cmp r3, #0 800968c: d001 beq.n 8009692 { Error_Handler(); 800968e: f001 fa57 bl 800ab40 } /* 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: 20000278 .word 0x20000278 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 fd88 bl 8010230 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 fd7e bl 8010230 /* 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 f8dc bl 800f928 8009770: 4603 mov r3, r0 8009772: 2b00 cmp r3, #0 8009774: d001 beq.n 800977a { Error_Handler(); 8009776: f001 f9e3 bl 800ab40 } __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 f86b bl 800f866 HAL_NVIC_EnableIRQ(ADC1_2_IRQn); 8009790: 2012 movs r0, #18 8009792: f006 f884 bl 800f89e /* 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: 200002a8 .word 0x200002a8 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: f006 ff6e bl 80106de 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: f006 ff66 bl 80106de 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: f006 ff5e bl 80106de 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: f006 ff56 bl 80106de 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: f006 ff4e bl 80106de 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: f006 ff47 bl 80106de 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: f006 ff3f bl 80106de 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: f006 ff38 bl 80106de 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: 200002ec .word 0x200002ec 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: 200002ec .word 0x200002ec 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: f006 fede bl 80106b0 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 fed8 bl 80106b0 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 fed2 bl 80106b0 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 fecc bl 80106b0 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 fec6 bl 80106b0 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 fec0 bl 80106b0 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 feba bl 80106b0 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: f004 fef9 bl 800e758 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, 1); 8009992: 2101 movs r1, #1 8009994: 2005 movs r0, #5 8009996: f7ff ff0f bl 80097b8 RELAY_Write(RELAY_CC, 1); 800999a: 2101 movs r1, #1 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 fb34 bl 800d018 SMAFilter_Init(&conn_temp_adc_filter[1]); 80099b0: 4804 ldr r0, [pc, #16] @ (80099c4 ) 80099b2: f003 fb31 bl 800d018 } 80099b6: bf00 nop 80099b8: bd80 pop {r7, pc} 80099ba: bf00 nop 80099bc: 20000278 .word 0x20000278 80099c0: 200002f4 .word 0x200002f4 80099c4: 2000031c .word 0x2000031c 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 fabc bl 800d062 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: 20000268 .word 0x20000268 8009b30: 200002f4 .word 0x200002f4 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 fe98 bl 800e8c6 8009b96: 4603 mov r3, r0 8009b98: 2b00 cmp r3, #0 8009b9a: d001 beq.n 8009ba0 { Error_Handler(); 8009b9c: f000 ffd0 bl 800ab40 } /* USER CODE BEGIN CAN1_Init 2 */ /* USER CODE END CAN1_Init 2 */ } 8009ba0: bf00 nop 8009ba2: bd80 pop {r7, pc} 8009ba4: 20000344 .word 0x20000344 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 fe62 bl 800e8c6 8009c02: 4603 mov r3, r0 8009c04: 2b00 cmp r3, #0 8009c06: d001 beq.n 8009c0c { Error_Handler(); 8009c08: f000 ff9a bl 800ab40 } /* USER CODE BEGIN CAN2_Init 2 */ /* USER CODE END CAN2_Init 2 */ } 8009c0c: bf00 nop 8009c0e: bd80 pop {r7, pc} 8009c10: 2000036c .word 0x2000036c 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 facf bl 8010230 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 fac3 bl 8010230 __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 fdc7 bl 800f866 HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn); 8009cd8: 2014 movs r0, #20 8009cda: f005 fde0 bl 800f89e 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 fa6a bl 8010230 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 fa5e bl 8010230 __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 fd66 bl 800f866 HAL_NVIC_EnableIRQ(CAN2_TX_IRQn); 8009d9a: 203f movs r0, #63 @ 0x3f 8009d9c: f005 fd7f bl 800f89e 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 fd5e bl 800f866 HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); 8009daa: 2041 movs r0, #65 @ 0x41 8009dac: f005 fd77 bl 800f89e } 8009db0: bf00 nop 8009db2: 3738 adds r7, #56 @ 0x38 8009db4: 46bd mov sp, r7 8009db6: bd80 pop {r7, pc} 8009db8: 40006400 .word 0x40006400 8009dbc: 20000394 .word 0x20000394 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: 20000398 .word 0x20000398 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 fd08 bl 800a868 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 fb40 bl 80144ec } 8009e6c: bf00 nop 8009e6e: bd80 pop {r7, pc} 8009e70: 20000398 .word 0x20000398 8009e74: 200003b8 .word 0x200003b8 8009e78: 200008e4 .word 0x200008e4 8009e7c: 08016760 .word 0x08016760 08009e80 : void CONN_Task(){ 8009e80: b580 push {r7, lr} 8009e82: af00 add r7, sp, #0 /* CCS state machine is handled in serial.c. * Keep this task lightweight for scheduler compatibility. */ if (CONN.chargingError != CONN_NO_ERROR) { 8009e84: 4b0f ldr r3, [pc, #60] @ (8009ec4 ) 8009e86: 7f5b ldrb r3, [r3, #29] 8009e88: 2b00 cmp r3, #0 8009e8a: d003 beq.n 8009e94 CONN_SetState(Disabled); 8009e8c: 2002 movs r0, #2 8009e8e: f000 f81f bl 8009ed0 return; 8009e92: e016 b.n 8009ec2 } if (connectorState == Unknown && config_initialized) { 8009e94: 4b0c ldr r3, [pc, #48] @ (8009ec8 ) 8009e96: 781b ldrb r3, [r3, #0] 8009e98: 2b00 cmp r3, #0 8009e9a: d107 bne.n 8009eac 8009e9c: 4b0b ldr r3, [pc, #44] @ (8009ecc ) 8009e9e: 781b ldrb r3, [r3, #0] 8009ea0: 2b00 cmp r3, #0 8009ea2: d003 beq.n 8009eac CONN_SetState(Unplugged); 8009ea4: 2001 movs r0, #1 8009ea6: f000 f813 bl 8009ed0 8009eaa: e00a b.n 8009ec2 } else if (connectorState == Disabled && CONN.chargingError == CONN_NO_ERROR) { 8009eac: 4b06 ldr r3, [pc, #24] @ (8009ec8 ) 8009eae: 781b ldrb r3, [r3, #0] 8009eb0: 2b02 cmp r3, #2 8009eb2: d106 bne.n 8009ec2 8009eb4: 4b03 ldr r3, [pc, #12] @ (8009ec4 ) 8009eb6: 7f5b ldrb r3, [r3, #29] 8009eb8: 2b00 cmp r3, #0 8009eba: d102 bne.n 8009ec2 CONN_SetState(Unplugged); 8009ebc: 2001 movs r0, #1 8009ebe: f000 f807 bl 8009ed0 } } 8009ec2: bd80 pop {r7, pc} 8009ec4: 20000398 .word 0x20000398 8009ec8: 200003b7 .word 0x200003b7 8009ecc: 20001092 .word 0x20001092 08009ed0 : void CONN_SetState(CONN_State_t state){ 8009ed0: b580 push {r7, lr} 8009ed2: b082 sub sp, #8 8009ed4: af00 add r7, sp, #0 8009ed6: 4603 mov r3, r0 8009ed8: 71fb strb r3, [r7, #7] if (connectorState == state) { 8009eda: 4b41 ldr r3, [pc, #260] @ (8009fe0 ) 8009edc: 781b ldrb r3, [r3, #0] 8009ede: 79fa ldrb r2, [r7, #7] 8009ee0: 429a cmp r2, r3 8009ee2: d103 bne.n 8009eec CONN.connState = state; 8009ee4: 4a3f ldr r2, [pc, #252] @ (8009fe4 ) 8009ee6: 79fb ldrb r3, [r7, #7] 8009ee8: 7053 strb r3, [r2, #1] return; 8009eea: e075 b.n 8009fd8 } connectorState = state; 8009eec: 4a3c ldr r2, [pc, #240] @ (8009fe0 ) 8009eee: 79fb ldrb r3, [r7, #7] 8009ef0: 7013 strb r3, [r2, #0] if(connectorState == Unknown) log_printf(LOG_INFO, "Connector: Unknown\n"); 8009ef2: 4b3b ldr r3, [pc, #236] @ (8009fe0 ) 8009ef4: 781b ldrb r3, [r3, #0] 8009ef6: 2b00 cmp r3, #0 8009ef8: d103 bne.n 8009f02 8009efa: 493b ldr r1, [pc, #236] @ (8009fe8 ) 8009efc: 2007 movs r0, #7 8009efe: f000 fb11 bl 800a524 if(connectorState == Unplugged) log_printf(LOG_INFO, "Connector: Unplugged\n"); 8009f02: 4b37 ldr r3, [pc, #220] @ (8009fe0 ) 8009f04: 781b ldrb r3, [r3, #0] 8009f06: 2b01 cmp r3, #1 8009f08: d103 bne.n 8009f12 8009f0a: 4938 ldr r1, [pc, #224] @ (8009fec ) 8009f0c: 2007 movs r0, #7 8009f0e: f000 fb09 bl 800a524 if(connectorState == Disabled) log_printf(LOG_INFO, "Connector: Disabled\n"); 8009f12: 4b33 ldr r3, [pc, #204] @ (8009fe0 ) 8009f14: 781b ldrb r3, [r3, #0] 8009f16: 2b02 cmp r3, #2 8009f18: d103 bne.n 8009f22 8009f1a: 4935 ldr r1, [pc, #212] @ (8009ff0 ) 8009f1c: 2007 movs r0, #7 8009f1e: f000 fb01 bl 800a524 if(connectorState == Preparing) log_printf(LOG_INFO, "Connector: Preparing\n"); 8009f22: 4b2f ldr r3, [pc, #188] @ (8009fe0 ) 8009f24: 781b ldrb r3, [r3, #0] 8009f26: 2b03 cmp r3, #3 8009f28: d103 bne.n 8009f32 8009f2a: 4932 ldr r1, [pc, #200] @ (8009ff4 ) 8009f2c: 2007 movs r0, #7 8009f2e: f000 faf9 bl 800a524 if(connectorState == AuthRequired) log_printf(LOG_INFO, "Connector: AuthRequired\n"); 8009f32: 4b2b ldr r3, [pc, #172] @ (8009fe0 ) 8009f34: 781b ldrb r3, [r3, #0] 8009f36: 2b04 cmp r3, #4 8009f38: d103 bne.n 8009f42 8009f3a: 492f ldr r1, [pc, #188] @ (8009ff8 ) 8009f3c: 2007 movs r0, #7 8009f3e: f000 faf1 bl 800a524 if(connectorState == WaitingForEnergy) log_printf(LOG_INFO, "Connector: WaitingForEnergy\n"); 8009f42: 4b27 ldr r3, [pc, #156] @ (8009fe0 ) 8009f44: 781b ldrb r3, [r3, #0] 8009f46: 2b05 cmp r3, #5 8009f48: d103 bne.n 8009f52 8009f4a: 492c ldr r1, [pc, #176] @ (8009ffc ) 8009f4c: 2007 movs r0, #7 8009f4e: f000 fae9 bl 800a524 if(connectorState == ChargingPausedEV) log_printf(LOG_INFO, "Connector: ChargingPausedEV\n"); 8009f52: 4b23 ldr r3, [pc, #140] @ (8009fe0 ) 8009f54: 781b ldrb r3, [r3, #0] 8009f56: 2b06 cmp r3, #6 8009f58: d103 bne.n 8009f62 8009f5a: 4929 ldr r1, [pc, #164] @ (800a000 ) 8009f5c: 2007 movs r0, #7 8009f5e: f000 fae1 bl 800a524 if(connectorState == ChargingPausedEVSE) log_printf(LOG_INFO, "Connector: ChargingPausedEVSE\n"); 8009f62: 4b1f ldr r3, [pc, #124] @ (8009fe0 ) 8009f64: 781b ldrb r3, [r3, #0] 8009f66: 2b07 cmp r3, #7 8009f68: d103 bne.n 8009f72 8009f6a: 4926 ldr r1, [pc, #152] @ (800a004 ) 8009f6c: 2007 movs r0, #7 8009f6e: f000 fad9 bl 800a524 if(connectorState == Charging) log_printf(LOG_INFO, "Connector: Charging\n"); 8009f72: 4b1b ldr r3, [pc, #108] @ (8009fe0 ) 8009f74: 781b ldrb r3, [r3, #0] 8009f76: 2b08 cmp r3, #8 8009f78: d103 bne.n 8009f82 8009f7a: 4923 ldr r1, [pc, #140] @ (800a008 ) 8009f7c: 2007 movs r0, #7 8009f7e: f000 fad1 bl 800a524 if(connectorState == AuthTimeout) log_printf(LOG_INFO, "Connector: AuthTimeout\n"); 8009f82: 4b17 ldr r3, [pc, #92] @ (8009fe0 ) 8009f84: 781b ldrb r3, [r3, #0] 8009f86: 2b09 cmp r3, #9 8009f88: d103 bne.n 8009f92 8009f8a: 4920 ldr r1, [pc, #128] @ (800a00c ) 8009f8c: 2007 movs r0, #7 8009f8e: f000 fac9 bl 800a524 if(connectorState == Finished) log_printf(LOG_INFO, "Connector: Finished\n"); 8009f92: 4b13 ldr r3, [pc, #76] @ (8009fe0 ) 8009f94: 781b ldrb r3, [r3, #0] 8009f96: 2b0a cmp r3, #10 8009f98: d103 bne.n 8009fa2 8009f9a: 491d ldr r1, [pc, #116] @ (800a010 ) 8009f9c: 2007 movs r0, #7 8009f9e: f000 fac1 bl 800a524 if(connectorState == FinishedEVSE) log_printf(LOG_INFO, "Connector: FinishedEVSE\n"); 8009fa2: 4b0f ldr r3, [pc, #60] @ (8009fe0 ) 8009fa4: 781b ldrb r3, [r3, #0] 8009fa6: 2b0b cmp r3, #11 8009fa8: d103 bne.n 8009fb2 8009faa: 491a ldr r1, [pc, #104] @ (800a014 ) 8009fac: 2007 movs r0, #7 8009fae: f000 fab9 bl 800a524 if(connectorState == FinishedEV) log_printf(LOG_INFO, "Connector: FinishedEV\n"); 8009fb2: 4b0b ldr r3, [pc, #44] @ (8009fe0 ) 8009fb4: 781b ldrb r3, [r3, #0] 8009fb6: 2b0c cmp r3, #12 8009fb8: d103 bne.n 8009fc2 8009fba: 4917 ldr r1, [pc, #92] @ (800a018 ) 8009fbc: 2007 movs r0, #7 8009fbe: f000 fab1 bl 800a524 if(connectorState == Replugging) log_printf(LOG_INFO, "Connector: Replugging\n"); 8009fc2: 4b07 ldr r3, [pc, #28] @ (8009fe0 ) 8009fc4: 781b ldrb r3, [r3, #0] 8009fc6: 2b0d cmp r3, #13 8009fc8: d103 bne.n 8009fd2 8009fca: 4914 ldr r1, [pc, #80] @ (800a01c ) 8009fcc: 2007 movs r0, #7 8009fce: f000 faa9 bl 800a524 CONN.connState = state; 8009fd2: 4a04 ldr r2, [pc, #16] @ (8009fe4 ) 8009fd4: 79fb ldrb r3, [r7, #7] 8009fd6: 7053 strb r3, [r2, #1] } 8009fd8: 3708 adds r7, #8 8009fda: 46bd mov sp, r7 8009fdc: bd80 pop {r7, pc} 8009fde: bf00 nop 8009fe0: 200003b7 .word 0x200003b7 8009fe4: 20000398 .word 0x20000398 8009fe8: 08016774 .word 0x08016774 8009fec: 08016788 .word 0x08016788 8009ff0: 080167a0 .word 0x080167a0 8009ff4: 080167b8 .word 0x080167b8 8009ff8: 080167d0 .word 0x080167d0 8009ffc: 080167ec .word 0x080167ec 800a000: 0801680c .word 0x0801680c 800a004: 0801682c .word 0x0801682c 800a008: 0801684c .word 0x0801684c 800a00c: 08016864 .word 0x08016864 800a010: 0801687c .word 0x0801687c 800a014: 08016894 .word 0x08016894 800a018: 080168b0 .word 0x080168b0 800a01c: 080168c8 .word 0x080168c8 0800a020 : CP_State_t cp_state_buffer = EV_STATE_ACQUIRING; #define VREFINT_CAL_ADDR ((uint16_t*)0x1FFFF7BA) // для STM32F1! static int32_t CP_ReadVoltageMv(void) { 800a020: b480 push {r7} 800a022: b087 sub sp, #28 800a024: af00 add r7, sp, #0 uint32_t adc_cp = adc_data.cp_raw; 800a026: 4b13 ldr r3, [pc, #76] @ (800a074 ) 800a028: 885b ldrh r3, [r3, #2] 800a02a: b29b uxth r3, r3 800a02c: 617b str r3, [r7, #20] uint32_t adc_vref = adc_data.vrefint_raw; // нужно измерять! 800a02e: 4b11 ldr r3, [pc, #68] @ (800a074 ) 800a030: 895b ldrh r3, [r3, #10] 800a032: b29b uxth r3, r3 800a034: 613b str r3, [r7, #16] // VREFINT в мВ (берётся из даташита или калибровки MCU) const int32_t VREFINT_MV = 1210; 800a036: f240 43ba movw r3, #1210 @ 0x4ba 800a03a: 60fb str r3, [r7, #12] // напряжение на входе АЦП int32_t v_adc_mv = (adc_cp * VREFINT_MV) / adc_vref; 800a03c: 68fb ldr r3, [r7, #12] 800a03e: 697a ldr r2, [r7, #20] 800a040: fb03 f202 mul.w r2, r3, r2 800a044: 693b ldr r3, [r7, #16] 800a046: fbb2 f3f3 udiv r3, r2, r3 800a04a: 60bb str r3, [r7, #8] // дальше твоя формула int32_t v_out_mv = ((v_adc_mv - 1723) * 7704) / 1000; 800a04c: 68bb ldr r3, [r7, #8] 800a04e: f2a3 63bb subw r3, r3, #1723 @ 0x6bb 800a052: f641 6218 movw r2, #7704 @ 0x1e18 800a056: fb02 f303 mul.w r3, r2, r3 800a05a: 4a07 ldr r2, [pc, #28] @ (800a078 ) 800a05c: fb82 1203 smull r1, r2, r2, r3 800a060: 1192 asrs r2, r2, #6 800a062: 17db asrs r3, r3, #31 800a064: 1ad3 subs r3, r2, r3 800a066: 607b str r3, [r7, #4] return v_out_mv; 800a068: 687b ldr r3, [r7, #4] } 800a06a: 4618 mov r0, r3 800a06c: 371c adds r7, #28 800a06e: 46bd mov sp, r7 800a070: bc80 pop {r7} 800a072: 4770 bx lr 800a074: 20000268 .word 0x20000268 800a078: 10624dd3 .word 0x10624dd3 0800a07c : void CP_Init(void) { 800a07c: b580 push {r7, lr} 800a07e: af00 add r7, sp, #0 /* TIM3_CH2 (PA7): set 1kHz PWM like original CCS logic. */ htim3.Instance->PSC = 160 - 1; 800a080: 4b0e ldr r3, [pc, #56] @ (800a0bc ) 800a082: 681b ldr r3, [r3, #0] 800a084: 229f movs r2, #159 @ 0x9f 800a086: 629a str r2, [r3, #40] @ 0x28 htim3.Instance->ARR = MAX_DUTY - 1; 800a088: 4b0c ldr r3, [pc, #48] @ (800a0bc ) 800a08a: 681b ldr r3, [r3, #0] 800a08c: f240 12c1 movw r2, #449 @ 0x1c1 800a090: 62da str r2, [r3, #44] @ 0x2c #if DUTY_INVERT == 0 htim3.Instance->CCR2 = MAX_DUTY; 800a092: 4b0a ldr r3, [pc, #40] @ (800a0bc ) 800a094: 681b ldr r3, [r3, #0] 800a096: f44f 72e1 mov.w r2, #450 @ 0x1c2 800a09a: 639a str r2, [r3, #56] @ 0x38 htim3.Instance->CCR1 = MAX_DUTY + 5; 800a09c: 4b07 ldr r3, [pc, #28] @ (800a0bc ) 800a09e: 681b ldr r3, [r3, #0] 800a0a0: f240 12c7 movw r2, #455 @ 0x1c7 800a0a4: 635a str r2, [r3, #52] @ 0x34 #else htim3.Instance->CCR2 = 0; htim3.Instance->CCR1 = 0; #endif HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_2); 800a0a6: 2104 movs r1, #4 800a0a8: 4804 ldr r0, [pc, #16] @ (800a0bc ) 800a0aa: f007 fe4f bl 8011d4c HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_1); 800a0ae: 2100 movs r1, #0 800a0b0: 4802 ldr r0, [pc, #8] @ (800a0bc ) 800a0b2: f007 fd49 bl 8011b48 } 800a0b6: bf00 nop 800a0b8: bd80 pop {r7, pc} 800a0ba: bf00 nop 800a0bc: 20001098 .word 0x20001098 0800a0c0 : void CP_SetDuty(uint8_t percentage) { 800a0c0: b480 push {r7} 800a0c2: b085 sub sp, #20 800a0c4: af00 add r7, sp, #0 800a0c6: 4603 mov r3, r0 800a0c8: 71fb strb r3, [r7, #7] uint32_t pwmduty = MAX_DUTY * percentage / 100; 800a0ca: 79fb ldrb r3, [r7, #7] 800a0cc: f44f 72e1 mov.w r2, #450 @ 0x1c2 800a0d0: fb02 f303 mul.w r3, r2, r3 800a0d4: 4a0b ldr r2, [pc, #44] @ (800a104 ) 800a0d6: fb82 1203 smull r1, r2, r2, r3 800a0da: 1152 asrs r2, r2, #5 800a0dc: 17db asrs r3, r3, #31 800a0de: 1ad3 subs r3, r2, r3 800a0e0: 60fb str r3, [r7, #12] cp_duty = percentage; 800a0e2: 4a09 ldr r2, [pc, #36] @ (800a108 ) 800a0e4: 79fb ldrb r3, [r7, #7] 800a0e6: 7013 strb r3, [r2, #0] #if DUTY_INVERT == 0 htim3.Instance->CCR2 = pwmduty; 800a0e8: 4b08 ldr r3, [pc, #32] @ (800a10c ) 800a0ea: 681b ldr r3, [r3, #0] 800a0ec: 68fa ldr r2, [r7, #12] 800a0ee: 639a str r2, [r3, #56] @ 0x38 htim3.Instance->CCR1 = 0 + 1; 800a0f0: 4b06 ldr r3, [pc, #24] @ (800a10c ) 800a0f2: 681b ldr r3, [r3, #0] 800a0f4: 2201 movs r2, #1 800a0f6: 635a str r2, [r3, #52] @ 0x34 #else htim3.Instance->CCR2 = MAX_DUTY - pwmduty; htim3.Instance->CCR1 = MAX_DUTY - pwmduty + 5; #endif } 800a0f8: bf00 nop 800a0fa: 3714 adds r7, #20 800a0fc: 46bd mov sp, r7 800a0fe: bc80 pop {r7} 800a100: 4770 bx lr 800a102: bf00 nop 800a104: 51eb851f .word 0x51eb851f 800a108: 200003c0 .word 0x200003c0 800a10c: 20001098 .word 0x20001098 0800a110 : uint8_t CP_GetDuty(void) { 800a110: b480 push {r7} 800a112: af00 add r7, sp, #0 return cp_duty; 800a114: 4b02 ldr r3, [pc, #8] @ (800a120 ) 800a116: 781b ldrb r3, [r3, #0] } 800a118: 4618 mov r0, r3 800a11a: 46bd mov sp, r7 800a11c: bc80 pop {r7} 800a11e: 4770 bx lr 800a120: 200003c0 .word 0x200003c0 0800a124 : int32_t CP_GetVoltage(void) { 800a124: b580 push {r7, lr} 800a126: af00 add r7, sp, #0 cp_voltage_mv = CP_ReadVoltageMv(); 800a128: f7ff ff7a bl 800a020 800a12c: 4603 mov r3, r0 800a12e: 4a03 ldr r2, [pc, #12] @ (800a13c ) 800a130: 6013 str r3, [r2, #0] return cp_voltage_mv; 800a132: 4b02 ldr r3, [pc, #8] @ (800a13c ) 800a134: 681b ldr r3, [r3, #0] } 800a136: 4618 mov r0, r3 800a138: bd80 pop {r7, pc} 800a13a: bf00 nop 800a13c: 200003bc .word 0x200003bc 0800a140 : CP_State_t CP_GetState(void) { 800a140: b580 push {r7, lr} 800a142: b082 sub sp, #8 800a144: af00 add r7, sp, #0 int32_t voltage_real = CP_GetVoltage(); 800a146: f7ff ffed bl 800a124 800a14a: 6078 str r0, [r7, #4] if(fake_cp_state != EV_STATE_ACQUIRING) { 800a14c: 4b21 ldr r3, [pc, #132] @ (800a1d4 ) 800a14e: 781b ldrb r3, [r3, #0] 800a150: 2b06 cmp r3, #6 800a152: d002 beq.n 800a15a return fake_cp_state; 800a154: 4b1f ldr r3, [pc, #124] @ (800a1d4 ) 800a156: 781b ldrb r3, [r3, #0] 800a158: e038 b.n 800a1cc } if (voltage_real >= (12000-1000)) { 800a15a: 687b ldr r3, [r7, #4] 800a15c: f642 22f7 movw r2, #10999 @ 0x2af7 800a160: 4293 cmp r3, r2 800a162: dd01 ble.n 800a168 return EV_STATE_A_IDLE; 800a164: 2300 movs r3, #0 800a166: e031 b.n 800a1cc } else if (voltage_real >= (9000-1000) && voltage_real <= (9000+1000)) { 800a168: 687b ldr r3, [r7, #4] 800a16a: f5b3 5ffa cmp.w r3, #8000 @ 0x1f40 800a16e: db06 blt.n 800a17e 800a170: 687b ldr r3, [r7, #4] 800a172: f242 7210 movw r2, #10000 @ 0x2710 800a176: 4293 cmp r3, r2 800a178: dc01 bgt.n 800a17e return EV_STATE_B_CONN_PREP; 800a17a: 2301 movs r3, #1 800a17c: e026 b.n 800a1cc } else if (voltage_real >= (6000-1000) && voltage_real <= (6000+1000)) { 800a17e: 687b ldr r3, [r7, #4] 800a180: f241 3287 movw r2, #4999 @ 0x1387 800a184: 4293 cmp r3, r2 800a186: dd06 ble.n 800a196 800a188: 687b ldr r3, [r7, #4] 800a18a: f641 3258 movw r2, #7000 @ 0x1b58 800a18e: 4293 cmp r3, r2 800a190: dc01 bgt.n 800a196 return EV_STATE_C_CONN_ACTIVE; 800a192: 2302 movs r3, #2 800a194: e01a b.n 800a1cc } else if (voltage_real >= (3000-1000) && voltage_real <= (3000 + 1000)) { 800a196: 687b ldr r3, [r7, #4] 800a198: f5b3 6ffa cmp.w r3, #2000 @ 0x7d0 800a19c: db05 blt.n 800a1aa 800a19e: 687b ldr r3, [r7, #4] 800a1a0: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800a1a4: dc01 bgt.n 800a1aa return EV_STATE_D_CONN_ACT_VENT; 800a1a6: 2303 movs r3, #3 800a1a8: e010 b.n 800a1cc } else if (voltage_real >= (0-1000) && voltage_real <= (0+2000)){ 800a1aa: 687b ldr r3, [r7, #4] 800a1ac: f513 7f7a cmn.w r3, #1000 @ 0x3e8 800a1b0: db05 blt.n 800a1be 800a1b2: 687b ldr r3, [r7, #4] 800a1b4: f5b3 6ffa cmp.w r3, #2000 @ 0x7d0 800a1b8: dc01 bgt.n 800a1be return EV_STATE_E_NO_POWER; 800a1ba: 2304 movs r3, #4 800a1bc: e006 b.n 800a1cc } else if (voltage_real <= (-12000+1000)) { 800a1be: 687b ldr r3, [r7, #4] 800a1c0: 4a05 ldr r2, [pc, #20] @ (800a1d8 ) 800a1c2: 4293 cmp r3, r2 800a1c4: da01 bge.n 800a1ca return EV_STATE_F_ERROR; 800a1c6: 2305 movs r3, #5 800a1c8: e000 b.n 800a1cc } else { return EV_STATE_ACQUIRING; 800a1ca: 2306 movs r3, #6 } } 800a1cc: 4618 mov r0, r3 800a1ce: 3708 adds r7, #8 800a1d0: 46bd mov sp, r7 800a1d2: bd80 pop {r7, pc} 800a1d4: 20000004 .word 0x20000004 800a1d8: ffffd509 .word 0xffffd509 0800a1dc : CP_State_t CP_GetFilteredState(void) { 800a1dc: b480 push {r7} 800a1de: af00 add r7, sp, #0 return cp_state_buffer; 800a1e0: 4b02 ldr r3, [pc, #8] @ (800a1ec ) 800a1e2: 781b ldrb r3, [r3, #0] } 800a1e4: 4618 mov r0, r3 800a1e6: 46bd mov sp, r7 800a1e8: bc80 pop {r7} 800a1ea: 4770 bx lr 800a1ec: 20000005 .word 0x20000005 0800a1f0 : void CP_FilterState(void) { 800a1f0: b580 push {r7, lr} 800a1f2: b082 sub sp, #8 800a1f4: 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(); 800a1f6: f7ff ffa3 bl 800a140 800a1fa: 4603 mov r3, r0 800a1fc: 71fb strb r3, [r7, #7] /* Keep last accepted state while CP is still acquiring. */ if (current_state == EV_STATE_ACQUIRING) { 800a1fe: 79fb ldrb r3, [r7, #7] 800a200: 2b06 cmp r3, #6 800a202: d106 bne.n 800a212 pending_state = EV_STATE_ACQUIRING; 800a204: 4b13 ldr r3, [pc, #76] @ (800a254 ) 800a206: 2206 movs r2, #6 800a208: 701a strb r2, [r3, #0] stable_count = 0u; 800a20a: 4b13 ldr r3, [pc, #76] @ (800a258 ) 800a20c: 2200 movs r2, #0 800a20e: 701a strb r2, [r3, #0] return; 800a210: e01d b.n 800a24e } if (current_state != pending_state) { 800a212: 4b10 ldr r3, [pc, #64] @ (800a254 ) 800a214: 781b ldrb r3, [r3, #0] 800a216: 79fa ldrb r2, [r7, #7] 800a218: 429a cmp r2, r3 800a21a: d006 beq.n 800a22a pending_state = current_state; 800a21c: 4a0d ldr r2, [pc, #52] @ (800a254 ) 800a21e: 79fb ldrb r3, [r7, #7] 800a220: 7013 strb r3, [r2, #0] stable_count = 1u; 800a222: 4b0d ldr r3, [pc, #52] @ (800a258 ) 800a224: 2201 movs r2, #1 800a226: 701a strb r2, [r3, #0] return; 800a228: e011 b.n 800a24e } if (stable_count < FILTER_ORDER) { 800a22a: 4b0b ldr r3, [pc, #44] @ (800a258 ) 800a22c: 781b ldrb r3, [r3, #0] 800a22e: 2b63 cmp r3, #99 @ 0x63 800a230: d805 bhi.n 800a23e stable_count++; 800a232: 4b09 ldr r3, [pc, #36] @ (800a258 ) 800a234: 781b ldrb r3, [r3, #0] 800a236: 3301 adds r3, #1 800a238: b2da uxtb r2, r3 800a23a: 4b07 ldr r3, [pc, #28] @ (800a258 ) 800a23c: 701a strb r2, [r3, #0] } if (stable_count >= FILTER_ORDER) { 800a23e: 4b06 ldr r3, [pc, #24] @ (800a258 ) 800a240: 781b ldrb r3, [r3, #0] 800a242: 2b63 cmp r3, #99 @ 0x63 800a244: d903 bls.n 800a24e cp_state_buffer = pending_state; 800a246: 4b03 ldr r3, [pc, #12] @ (800a254 ) 800a248: 781a ldrb r2, [r3, #0] 800a24a: 4b04 ldr r3, [pc, #16] @ (800a25c ) 800a24c: 701a strb r2, [r3, #0] } } 800a24e: 3708 adds r7, #8 800a250: 46bd mov sp, r7 800a252: bd80 pop {r7, pc} 800a254: 20000006 .word 0x20000006 800a258: 200003c1 .word 0x200003c1 800a25c: 20000005 .word 0x20000005 0800a260 : void CP_Loop(void) { 800a260: b580 push {r7, lr} 800a262: b082 sub sp, #8 800a264: 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(); 800a266: f7ff ffc3 bl 800a1f0 CP_State_t current_state = CP_GetFilteredState(); 800a26a: f7ff ffb7 bl 800a1dc 800a26e: 4603 mov r3, r0 800a270: 71fb strb r3, [r7, #7] uint8_t current_duty = cp_duty; 800a272: 4b1a ldr r3, [pc, #104] @ (800a2dc ) 800a274: 781b ldrb r3, [r3, #0] 800a276: 71bb strb r3, [r7, #6] if (!initialized) { 800a278: 4b19 ldr r3, [pc, #100] @ (800a2e0 ) 800a27a: 781b ldrb r3, [r3, #0] 800a27c: 2b00 cmp r3, #0 800a27e: d109 bne.n 800a294 prev_state = current_state; 800a280: 4a18 ldr r2, [pc, #96] @ (800a2e4 ) 800a282: 79fb ldrb r3, [r7, #7] 800a284: 7013 strb r3, [r2, #0] prev_duty = current_duty; 800a286: 4a18 ldr r2, [pc, #96] @ (800a2e8 ) 800a288: 79bb ldrb r3, [r7, #6] 800a28a: 7013 strb r3, [r2, #0] initialized = 1; 800a28c: 4b14 ldr r3, [pc, #80] @ (800a2e0 ) 800a28e: 2201 movs r2, #1 800a290: 701a strb r2, [r3, #0] return; 800a292: e01f b.n 800a2d4 } if (current_state != prev_state) { 800a294: 4b13 ldr r3, [pc, #76] @ (800a2e4 ) 800a296: 781b ldrb r3, [r3, #0] 800a298: 79fa ldrb r2, [r7, #7] 800a29a: 429a cmp r2, r3 800a29c: d00a beq.n 800a2b4 log_printf(LOG_INFO, "CP state changed: %d -> %d\n", prev_state, current_state); 800a29e: 4b11 ldr r3, [pc, #68] @ (800a2e4 ) 800a2a0: 781b ldrb r3, [r3, #0] 800a2a2: 461a mov r2, r3 800a2a4: 79fb ldrb r3, [r7, #7] 800a2a6: 4911 ldr r1, [pc, #68] @ (800a2ec ) 800a2a8: 2007 movs r0, #7 800a2aa: f000 f93b bl 800a524 prev_state = current_state; 800a2ae: 4a0d ldr r2, [pc, #52] @ (800a2e4 ) 800a2b0: 79fb ldrb r3, [r7, #7] 800a2b2: 7013 strb r3, [r2, #0] } if (current_duty != prev_duty) { 800a2b4: 4b0c ldr r3, [pc, #48] @ (800a2e8 ) 800a2b6: 781b ldrb r3, [r3, #0] 800a2b8: 79ba ldrb r2, [r7, #6] 800a2ba: 429a cmp r2, r3 800a2bc: d00a beq.n 800a2d4 log_printf(LOG_INFO, "CP duty changed: %u -> %u\n", prev_duty, current_duty); 800a2be: 4b0a ldr r3, [pc, #40] @ (800a2e8 ) 800a2c0: 781b ldrb r3, [r3, #0] 800a2c2: 461a mov r2, r3 800a2c4: 79bb ldrb r3, [r7, #6] 800a2c6: 490a ldr r1, [pc, #40] @ (800a2f0 ) 800a2c8: 2007 movs r0, #7 800a2ca: f000 f92b bl 800a524 prev_duty = current_duty; 800a2ce: 4a06 ldr r2, [pc, #24] @ (800a2e8 ) 800a2d0: 79bb ldrb r3, [r7, #6] 800a2d2: 7013 strb r3, [r2, #0] } } 800a2d4: 3708 adds r7, #8 800a2d6: 46bd mov sp, r7 800a2d8: bd80 pop {r7, pc} 800a2da: bf00 nop 800a2dc: 200003c0 .word 0x200003c0 800a2e0: 200003c2 .word 0x200003c2 800a2e4: 20000007 .word 0x20000007 800a2e8: 200003c3 .word 0x200003c3 800a2ec: 08016914 .word 0x08016914 800a2f0: 08016930 .word 0x08016930 0800a2f4 : CRC_HandleTypeDef hcrc; /* CRC init function */ void MX_CRC_Init(void) { 800a2f4: b580 push {r7, lr} 800a2f6: 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; 800a2f8: 4b06 ldr r3, [pc, #24] @ (800a314 ) 800a2fa: 4a07 ldr r2, [pc, #28] @ (800a318 ) 800a2fc: 601a str r2, [r3, #0] if (HAL_CRC_Init(&hcrc) != HAL_OK) 800a2fe: 4805 ldr r0, [pc, #20] @ (800a314 ) 800a300: f005 faf5 bl 800f8ee 800a304: 4603 mov r3, r0 800a306: 2b00 cmp r3, #0 800a308: d001 beq.n 800a30e { Error_Handler(); 800a30a: f000 fc19 bl 800ab40 } /* USER CODE BEGIN CRC_Init 2 */ /* USER CODE END CRC_Init 2 */ } 800a30e: bf00 nop 800a310: bd80 pop {r7, pc} 800a312: bf00 nop 800a314: 200003c4 .word 0x200003c4 800a318: 40023000 .word 0x40023000 0800a31c : void HAL_CRC_MspInit(CRC_HandleTypeDef* crcHandle) { 800a31c: b480 push {r7} 800a31e: b085 sub sp, #20 800a320: af00 add r7, sp, #0 800a322: 6078 str r0, [r7, #4] if(crcHandle->Instance==CRC) 800a324: 687b ldr r3, [r7, #4] 800a326: 681b ldr r3, [r3, #0] 800a328: 4a09 ldr r2, [pc, #36] @ (800a350 ) 800a32a: 4293 cmp r3, r2 800a32c: d10b bne.n 800a346 { /* USER CODE BEGIN CRC_MspInit 0 */ /* USER CODE END CRC_MspInit 0 */ /* CRC clock enable */ __HAL_RCC_CRC_CLK_ENABLE(); 800a32e: 4b09 ldr r3, [pc, #36] @ (800a354 ) 800a330: 695b ldr r3, [r3, #20] 800a332: 4a08 ldr r2, [pc, #32] @ (800a354 ) 800a334: f043 0340 orr.w r3, r3, #64 @ 0x40 800a338: 6153 str r3, [r2, #20] 800a33a: 4b06 ldr r3, [pc, #24] @ (800a354 ) 800a33c: 695b ldr r3, [r3, #20] 800a33e: f003 0340 and.w r3, r3, #64 @ 0x40 800a342: 60fb str r3, [r7, #12] 800a344: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN CRC_MspInit 1 */ /* USER CODE END CRC_MspInit 1 */ } } 800a346: bf00 nop 800a348: 3714 adds r7, #20 800a34a: 46bd mov sp, r7 800a34c: bc80 pop {r7} 800a34e: 4770 bx lr 800a350: 40023000 .word 0x40023000 800a354: 40021000 .word 0x40021000 0800a358 <_write>: #if defined(__GNUC__) int _write(int fd, char * ptr, int len) { 800a358: b580 push {r7, lr} 800a35a: b084 sub sp, #16 800a35c: af00 add r7, sp, #0 800a35e: 60f8 str r0, [r7, #12] 800a360: 60b9 str r1, [r7, #8] 800a362: 607a str r2, [r7, #4] debug_buffer_add((const uint8_t*)ptr, len); 800a364: 687b ldr r3, [r7, #4] 800a366: b29b uxth r3, r3 800a368: 4619 mov r1, r3 800a36a: 68b8 ldr r0, [r7, #8] 800a36c: f000 f806 bl 800a37c return len; 800a370: 687b ldr r3, [r7, #4] } 800a372: 4618 mov r0, r3 800a374: 3710 adds r7, #16 800a376: 46bd mov sp, r7 800a378: bd80 pop {r7, pc} ... 0800a37c : #endif // Добавляет данные в кольцевой буфер void debug_buffer_add(const uint8_t* data, uint16_t len) { 800a37c: b480 push {r7} 800a37e: b085 sub sp, #20 800a380: af00 add r7, sp, #0 800a382: 6078 str r0, [r7, #4] 800a384: 460b mov r3, r1 800a386: 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"); 800a388: b672 cpsid i } 800a38a: bf00 nop __disable_irq(); for (uint16_t i = 0; i < len; i++) { 800a38c: 2300 movs r3, #0 800a38e: 81fb strh r3, [r7, #14] 800a390: e045 b.n 800a41e // Если буфер полон, перезаписываем старые данные if (debug_buffer.count >= DEBUG_BUFFER_SIZE) { 800a392: 4b28 ldr r3, [pc, #160] @ (800a434 ) 800a394: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a398: b29b uxth r3, r3 800a39a: f5b3 6f80 cmp.w r3, #1024 @ 0x400 800a39e: d318 bcc.n 800a3d2 debug_buffer.read_index = (debug_buffer.read_index + 1) % DEBUG_BUFFER_SIZE; 800a3a0: 4b24 ldr r3, [pc, #144] @ (800a434 ) 800a3a2: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a3a6: b29b uxth r3, r3 800a3a8: 3301 adds r3, #1 800a3aa: 425a negs r2, r3 800a3ac: f3c3 0309 ubfx r3, r3, #0, #10 800a3b0: f3c2 0209 ubfx r2, r2, #0, #10 800a3b4: bf58 it pl 800a3b6: 4253 negpl r3, r2 800a3b8: b29a uxth r2, r3 800a3ba: 4b1e ldr r3, [pc, #120] @ (800a434 ) 800a3bc: f8a3 2402 strh.w r2, [r3, #1026] @ 0x402 debug_buffer.count--; 800a3c0: 4b1c ldr r3, [pc, #112] @ (800a434 ) 800a3c2: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a3c6: b29b uxth r3, r3 800a3c8: 3b01 subs r3, #1 800a3ca: b29a uxth r2, r3 800a3cc: 4b19 ldr r3, [pc, #100] @ (800a434 ) 800a3ce: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 } debug_buffer.buffer[debug_buffer.write_index] = data[i]; 800a3d2: 89fb ldrh r3, [r7, #14] 800a3d4: 687a ldr r2, [r7, #4] 800a3d6: 4413 add r3, r2 800a3d8: 4a16 ldr r2, [pc, #88] @ (800a434 ) 800a3da: f8b2 2400 ldrh.w r2, [r2, #1024] @ 0x400 800a3de: b292 uxth r2, r2 800a3e0: 7819 ldrb r1, [r3, #0] 800a3e2: 4b14 ldr r3, [pc, #80] @ (800a434 ) 800a3e4: 5499 strb r1, [r3, r2] debug_buffer.write_index = (debug_buffer.write_index + 1) % DEBUG_BUFFER_SIZE; 800a3e6: 4b13 ldr r3, [pc, #76] @ (800a434 ) 800a3e8: f8b3 3400 ldrh.w r3, [r3, #1024] @ 0x400 800a3ec: b29b uxth r3, r3 800a3ee: 3301 adds r3, #1 800a3f0: 425a negs r2, r3 800a3f2: f3c3 0309 ubfx r3, r3, #0, #10 800a3f6: f3c2 0209 ubfx r2, r2, #0, #10 800a3fa: bf58 it pl 800a3fc: 4253 negpl r3, r2 800a3fe: b29a uxth r2, r3 800a400: 4b0c ldr r3, [pc, #48] @ (800a434 ) 800a402: f8a3 2400 strh.w r2, [r3, #1024] @ 0x400 debug_buffer.count++; 800a406: 4b0b ldr r3, [pc, #44] @ (800a434 ) 800a408: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a40c: b29b uxth r3, r3 800a40e: 3301 adds r3, #1 800a410: b29a uxth r2, r3 800a412: 4b08 ldr r3, [pc, #32] @ (800a434 ) 800a414: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 for (uint16_t i = 0; i < len; i++) { 800a418: 89fb ldrh r3, [r7, #14] 800a41a: 3301 adds r3, #1 800a41c: 81fb strh r3, [r7, #14] 800a41e: 89fa ldrh r2, [r7, #14] 800a420: 887b ldrh r3, [r7, #2] 800a422: 429a cmp r2, r3 800a424: d3b5 bcc.n 800a392 __ASM volatile ("cpsie i" : : : "memory"); 800a426: b662 cpsie i } 800a428: bf00 nop } __enable_irq(); } 800a42a: bf00 nop 800a42c: 3714 adds r7, #20 800a42e: 46bd mov sp, r7 800a430: bc80 pop {r7} 800a432: 4770 bx lr 800a434: 200003cc .word 0x200003cc 0800a438 : // Возвращает количество доступных данных в буфере uint16_t debug_buffer_available(void) { 800a438: b480 push {r7} 800a43a: b083 sub sp, #12 800a43c: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800a43e: b672 cpsid i } 800a440: bf00 nop __disable_irq(); uint16_t count = debug_buffer.count; 800a442: 4b06 ldr r3, [pc, #24] @ (800a45c ) 800a444: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a448: 80fb strh r3, [r7, #6] __ASM volatile ("cpsie i" : : : "memory"); 800a44a: b662 cpsie i } 800a44c: bf00 nop __enable_irq(); return count; 800a44e: 88fb ldrh r3, [r7, #6] } 800a450: 4618 mov r0, r3 800a452: 370c adds r7, #12 800a454: 46bd mov sp, r7 800a456: bc80 pop {r7} 800a458: 4770 bx lr 800a45a: bf00 nop 800a45c: 200003cc .word 0x200003cc 0800a460 : // Отправляет один пакет данных из буфера через SC_SendPacket (не более 250 байт) void debug_buffer_send(void) { 800a460: b580 push {r7, lr} 800a462: b082 sub sp, #8 800a464: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800a466: b672 cpsid i } 800a468: bf00 nop __disable_irq(); // Если буфер пуст, ничего не делаем if (debug_buffer.count == 0) { 800a46a: 4b2d ldr r3, [pc, #180] @ (800a520 ) 800a46c: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a470: b29b uxth r3, r3 800a472: 2b00 cmp r3, #0 800a474: d102 bne.n 800a47c __ASM volatile ("cpsie i" : : : "memory"); 800a476: b662 cpsie i } 800a478: bf00 nop __enable_irq(); return; 800a47a: e04e b.n 800a51a } // Определяем сколько байт можно отправить (не более 250) uint16_t bytes_to_send = debug_buffer.count; 800a47c: 4b28 ldr r3, [pc, #160] @ (800a520 ) 800a47e: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a482: 80fb strh r3, [r7, #6] if (bytes_to_send > DEBUG_BUFFER_MAX_COUNT) { 800a484: 88fb ldrh r3, [r7, #6] 800a486: 2b80 cmp r3, #128 @ 0x80 800a488: d901 bls.n 800a48e bytes_to_send = DEBUG_BUFFER_MAX_COUNT; 800a48a: 2380 movs r3, #128 @ 0x80 800a48c: 80fb strh r3, [r7, #6] } // Вычисляем сколько байт до конца буфера uint16_t bytes_to_end = DEBUG_BUFFER_SIZE - debug_buffer.read_index; 800a48e: 4b24 ldr r3, [pc, #144] @ (800a520 ) 800a490: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a494: b29b uxth r3, r3 800a496: f5c3 6380 rsb r3, r3, #1024 @ 0x400 800a49a: 80bb strh r3, [r7, #4] // Отправляем только непрерывный блок (до конца буфера или до bytes_to_send) if (bytes_to_send > bytes_to_end) { 800a49c: 88fa ldrh r2, [r7, #6] 800a49e: 88bb ldrh r3, [r7, #4] 800a4a0: 429a cmp r2, r3 800a4a2: d901 bls.n 800a4a8 bytes_to_send = bytes_to_end; 800a4a4: 88bb ldrh r3, [r7, #4] 800a4a6: 80fb strh r3, [r7, #6] } // Отправляем данные напрямую из буфера if(bytes_to_send == debug_buffer.count){ 800a4a8: 4b1d ldr r3, [pc, #116] @ (800a520 ) 800a4aa: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a4ae: b29b uxth r3, r3 800a4b0: 88fa ldrh r2, [r7, #6] 800a4b2: 429a cmp r2, r3 800a4b4: d10c bne.n 800a4d0 SC_SendPacket(&debug_buffer.buffer[debug_buffer.read_index], bytes_to_send, CMD_GET_LOG); 800a4b6: 4b1a ldr r3, [pc, #104] @ (800a520 ) 800a4b8: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a4bc: b29b uxth r3, r3 800a4be: 461a mov r2, r3 800a4c0: 4b17 ldr r3, [pc, #92] @ (800a520 ) 800a4c2: 4413 add r3, r2 800a4c4: 88f9 ldrh r1, [r7, #6] 800a4c6: 2250 movs r2, #80 @ 0x50 800a4c8: 4618 mov r0, r3 800a4ca: f002 fa6f bl 800c9ac 800a4ce: e00b b.n 800a4e8 }else{ SC_SendPacket(&debug_buffer.buffer[debug_buffer.read_index], bytes_to_send, CMD_GET_LOG_CONTINUE); 800a4d0: 4b13 ldr r3, [pc, #76] @ (800a520 ) 800a4d2: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a4d6: b29b uxth r3, r3 800a4d8: 461a mov r2, r3 800a4da: 4b11 ldr r3, [pc, #68] @ (800a520 ) 800a4dc: 4413 add r3, r2 800a4de: 88f9 ldrh r1, [r7, #6] 800a4e0: 2251 movs r2, #81 @ 0x51 800a4e2: 4618 mov r0, r3 800a4e4: f002 fa62 bl 800c9ac } debug_buffer.read_index = (debug_buffer.read_index + bytes_to_send) % DEBUG_BUFFER_SIZE; 800a4e8: 4b0d ldr r3, [pc, #52] @ (800a520 ) 800a4ea: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a4ee: b29a uxth r2, r3 800a4f0: 88fb ldrh r3, [r7, #6] 800a4f2: 4413 add r3, r2 800a4f4: b29b uxth r3, r3 800a4f6: f3c3 0309 ubfx r3, r3, #0, #10 800a4fa: b29a uxth r2, r3 800a4fc: 4b08 ldr r3, [pc, #32] @ (800a520 ) 800a4fe: f8a3 2402 strh.w r2, [r3, #1026] @ 0x402 debug_buffer.count -= bytes_to_send; 800a502: 4b07 ldr r3, [pc, #28] @ (800a520 ) 800a504: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a508: b29a uxth r2, r3 800a50a: 88fb ldrh r3, [r7, #6] 800a50c: 1ad3 subs r3, r2, r3 800a50e: b29a uxth r2, r3 800a510: 4b03 ldr r3, [pc, #12] @ (800a520 ) 800a512: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 __ASM volatile ("cpsie i" : : : "memory"); 800a516: b662 cpsie i } 800a518: bf00 nop __enable_irq(); } 800a51a: 3708 adds r7, #8 800a51c: 46bd mov sp, r7 800a51e: bd80 pop {r7, pc} 800a520: 200003cc .word 0x200003cc 0800a524 : #define LOG_BUFFER_SIZE 128 uint8_t log_buffer[LOG_BUFFER_SIZE]; // Кастомный printf с приоритетом лога int log_printf(LogLevel_t level, const char *format, ...) { 800a524: b40e push {r1, r2, r3} 800a526: b580 push {r7, lr} 800a528: b085 sub sp, #20 800a52a: af00 add r7, sp, #0 800a52c: 4603 mov r3, r0 800a52e: 71fb strb r3, [r7, #7] va_list args; int result; // Добавляем приоритет первым байтом log_buffer[0] = (uint8_t)level; 800a530: 4a15 ldr r2, [pc, #84] @ (800a588 ) 800a532: 79fb ldrb r3, [r7, #7] 800a534: 7013 strb r3, [r2, #0] // Форматируем строку начиная со второго байта va_start(args, format); 800a536: f107 0320 add.w r3, r7, #32 800a53a: 60bb str r3, [r7, #8] result = vsnprintf((char*)&log_buffer[1], LOG_BUFFER_SIZE - 2, format, args); 800a53c: 68bb ldr r3, [r7, #8] 800a53e: 69fa ldr r2, [r7, #28] 800a540: 217e movs r1, #126 @ 0x7e 800a542: 4812 ldr r0, [pc, #72] @ (800a58c ) 800a544: f009 ffa6 bl 8014494 800a548: 60f8 str r0, [r7, #12] va_end(args); // Проверяем, не переполнился ли буфер if (result < 0) { 800a54a: 68fb ldr r3, [r7, #12] 800a54c: 2b00 cmp r3, #0 800a54e: da01 bge.n 800a554 return result; 800a550: 68fb ldr r3, [r7, #12] 800a552: e012 b.n 800a57a } // Ограничиваем размер, чтобы оставить место для нуль-терминатора if (result >= (LOG_BUFFER_SIZE - 2)) { 800a554: 68fb ldr r3, [r7, #12] 800a556: 2b7d cmp r3, #125 @ 0x7d 800a558: dd01 ble.n 800a55e result = LOG_BUFFER_SIZE - 2; 800a55a: 237e movs r3, #126 @ 0x7e 800a55c: 60fb str r3, [r7, #12] } // Добавляем нуль-терминатор в конец log_buffer[result + 1] = '\0'; 800a55e: 68fb ldr r3, [r7, #12] 800a560: 3301 adds r3, #1 800a562: 4a09 ldr r2, [pc, #36] @ (800a588 ) 800a564: 2100 movs r1, #0 800a566: 54d1 strb r1, [r2, r3] // Отправляем в буфер (приоритет + строка + нуль-терминатор) debug_buffer_add(log_buffer, result + 2); 800a568: 68fb ldr r3, [r7, #12] 800a56a: b29b uxth r3, r3 800a56c: 3302 adds r3, #2 800a56e: b29b uxth r3, r3 800a570: 4619 mov r1, r3 800a572: 4805 ldr r0, [pc, #20] @ (800a588 ) 800a574: f7ff ff02 bl 800a37c return result; 800a578: 68fb ldr r3, [r7, #12] } 800a57a: 4618 mov r0, r3 800a57c: 3714 adds r7, #20 800a57e: 46bd mov sp, r7 800a580: e8bd 4080 ldmia.w sp!, {r7, lr} 800a584: b003 add sp, #12 800a586: 4770 bx lr 800a588: 200007d4 .word 0x200007d4 800a58c: 200007d5 .word 0x200007d5 0800a590 : /** * Enable DMA controller clock */ void MX_DMA_Init(void) { 800a590: b580 push {r7, lr} 800a592: b082 sub sp, #8 800a594: af00 add r7, sp, #0 /* DMA controller clock enable */ __HAL_RCC_DMA1_CLK_ENABLE(); 800a596: 4b0c ldr r3, [pc, #48] @ (800a5c8 ) 800a598: 695b ldr r3, [r3, #20] 800a59a: 4a0b ldr r2, [pc, #44] @ (800a5c8 ) 800a59c: f043 0301 orr.w r3, r3, #1 800a5a0: 6153 str r3, [r2, #20] 800a5a2: 4b09 ldr r3, [pc, #36] @ (800a5c8 ) 800a5a4: 695b ldr r3, [r3, #20] 800a5a6: f003 0301 and.w r3, r3, #1 800a5aa: 607b str r3, [r7, #4] 800a5ac: 687b ldr r3, [r7, #4] /* DMA interrupt init */ /* DMA1_Channel1_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0); 800a5ae: 2200 movs r2, #0 800a5b0: 2100 movs r1, #0 800a5b2: 200b movs r0, #11 800a5b4: f005 f957 bl 800f866 HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn); 800a5b8: 200b movs r0, #11 800a5ba: f005 f970 bl 800f89e } 800a5be: bf00 nop 800a5c0: 3708 adds r7, #8 800a5c2: 46bd mov sp, r7 800a5c4: bd80 pop {r7, pc} 800a5c6: bf00 nop 800a5c8: 40021000 .word 0x40021000 0800a5cc : * EXTI PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA */ void MX_GPIO_Init(void) { 800a5cc: b580 push {r7, lr} 800a5ce: b08a sub sp, #40 @ 0x28 800a5d0: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; 800a5d2: f107 0314 add.w r3, r7, #20 800a5d6: 2200 movs r2, #0 800a5d8: 601a str r2, [r3, #0] 800a5da: 605a str r2, [r3, #4] 800a5dc: 609a str r2, [r3, #8] 800a5de: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); 800a5e0: 4b93 ldr r3, [pc, #588] @ (800a830 ) 800a5e2: 699b ldr r3, [r3, #24] 800a5e4: 4a92 ldr r2, [pc, #584] @ (800a830 ) 800a5e6: f043 0310 orr.w r3, r3, #16 800a5ea: 6193 str r3, [r2, #24] 800a5ec: 4b90 ldr r3, [pc, #576] @ (800a830 ) 800a5ee: 699b ldr r3, [r3, #24] 800a5f0: f003 0310 and.w r3, r3, #16 800a5f4: 613b str r3, [r7, #16] 800a5f6: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); 800a5f8: 4b8d ldr r3, [pc, #564] @ (800a830 ) 800a5fa: 699b ldr r3, [r3, #24] 800a5fc: 4a8c ldr r2, [pc, #560] @ (800a830 ) 800a5fe: f043 0304 orr.w r3, r3, #4 800a602: 6193 str r3, [r2, #24] 800a604: 4b8a ldr r3, [pc, #552] @ (800a830 ) 800a606: 699b ldr r3, [r3, #24] 800a608: f003 0304 and.w r3, r3, #4 800a60c: 60fb str r3, [r7, #12] 800a60e: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOB_CLK_ENABLE(); 800a610: 4b87 ldr r3, [pc, #540] @ (800a830 ) 800a612: 699b ldr r3, [r3, #24] 800a614: 4a86 ldr r2, [pc, #536] @ (800a830 ) 800a616: f043 0308 orr.w r3, r3, #8 800a61a: 6193 str r3, [r2, #24] 800a61c: 4b84 ldr r3, [pc, #528] @ (800a830 ) 800a61e: 699b ldr r3, [r3, #24] 800a620: f003 0308 and.w r3, r3, #8 800a624: 60bb str r3, [r7, #8] 800a626: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOE_CLK_ENABLE(); 800a628: 4b81 ldr r3, [pc, #516] @ (800a830 ) 800a62a: 699b ldr r3, [r3, #24] 800a62c: 4a80 ldr r2, [pc, #512] @ (800a830 ) 800a62e: f043 0340 orr.w r3, r3, #64 @ 0x40 800a632: 6193 str r3, [r2, #24] 800a634: 4b7e ldr r3, [pc, #504] @ (800a830 ) 800a636: 699b ldr r3, [r3, #24] 800a638: f003 0340 and.w r3, r3, #64 @ 0x40 800a63c: 607b str r3, [r7, #4] 800a63e: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOD_CLK_ENABLE(); 800a640: 4b7b ldr r3, [pc, #492] @ (800a830 ) 800a642: 699b ldr r3, [r3, #24] 800a644: 4a7a ldr r2, [pc, #488] @ (800a830 ) 800a646: f043 0320 orr.w r3, r3, #32 800a64a: 6193 str r3, [r2, #24] 800a64c: 4b78 ldr r3, [pc, #480] @ (800a830 ) 800a64e: 699b ldr r3, [r3, #24] 800a650: f003 0320 and.w r3, r3, #32 800a654: 603b str r3, [r7, #0] 800a656: 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); 800a658: 2200 movs r2, #0 800a65a: 213c movs r1, #60 @ 0x3c 800a65c: 4875 ldr r0, [pc, #468] @ (800a834 ) 800a65e: f006 f83e bl 80106de /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, DBG2_Pin|DBG3_Pin|RELAY_CC_Pin, GPIO_PIN_RESET); 800a662: 2200 movs r2, #0 800a664: f248 0160 movw r1, #32864 @ 0x8060 800a668: 4873 ldr r0, [pc, #460] @ (800a838 ) 800a66a: f006 f838 bl 80106de /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOE, RELAY1_Pin|RELAY2_Pin|RELAY3_Pin|RELAY4_Pin 800a66e: 2200 movs r2, #0 800a670: f44f 51f8 mov.w r1, #7936 @ 0x1f00 800a674: 4871 ldr r0, [pc, #452] @ (800a83c ) 800a676: f006 f832 bl 80106de |RELAY5_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, DBG5_Pin|DBG4_Pin|EE_WP_Pin, GPIO_PIN_RESET); 800a67a: 2200 movs r2, #0 800a67c: f44f 6148 mov.w r1, #3200 @ 0xc80 800a680: 486f ldr r0, [pc, #444] @ (800a840 ) 800a682: f006 f82c bl 80106de /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOD, RELAY_DC_Pin|USART2_DIR_Pin, GPIO_PIN_RESET); 800a686: 2200 movs r2, #0 800a688: 2118 movs r1, #24 800a68a: 486e ldr r0, [pc, #440] @ (800a844 ) 800a68c: f006 f827 bl 80106de /*Configure GPIO pin : DBG1_Pin */ GPIO_InitStruct.Pin = DBG1_Pin; 800a690: 2304 movs r3, #4 800a692: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a694: 2301 movs r3, #1 800a696: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a698: 2300 movs r3, #0 800a69a: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a69c: 2303 movs r3, #3 800a69e: 623b str r3, [r7, #32] HAL_GPIO_Init(DBG1_GPIO_Port, &GPIO_InitStruct); 800a6a0: f107 0314 add.w r3, r7, #20 800a6a4: 4619 mov r1, r3 800a6a6: 4863 ldr r0, [pc, #396] @ (800a834 ) 800a6a8: f005 fdc2 bl 8010230 /*Configure GPIO pins : RELAY_CP_Pin LOCK_A_Pin LOCK_B_Pin */ GPIO_InitStruct.Pin = RELAY_CP_Pin|LOCK_A_Pin|LOCK_B_Pin; 800a6ac: 2338 movs r3, #56 @ 0x38 800a6ae: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a6b0: 2301 movs r3, #1 800a6b2: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6b4: 2300 movs r3, #0 800a6b6: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a6b8: 2302 movs r3, #2 800a6ba: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800a6bc: f107 0314 add.w r3, r7, #20 800a6c0: 4619 mov r1, r3 800a6c2: 485c ldr r0, [pc, #368] @ (800a834 ) 800a6c4: f005 fdb4 bl 8010230 /*Configure GPIO pin : IN_SW0_Pin */ GPIO_InitStruct.Pin = IN_SW0_Pin; 800a6c8: 2302 movs r3, #2 800a6ca: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a6cc: 2300 movs r3, #0 800a6ce: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6d0: 2300 movs r3, #0 800a6d2: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_SW0_GPIO_Port, &GPIO_InitStruct); 800a6d4: f107 0314 add.w r3, r7, #20 800a6d8: 4619 mov r1, r3 800a6da: 4857 ldr r0, [pc, #348] @ (800a838 ) 800a6dc: f005 fda8 bl 8010230 /*Configure GPIO pin : IN_SW1_Pin */ GPIO_InitStruct.Pin = IN_SW1_Pin; 800a6e0: 2304 movs r3, #4 800a6e2: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a6e4: 2300 movs r3, #0 800a6e6: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_PULLDOWN; 800a6e8: 2302 movs r3, #2 800a6ea: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_SW1_GPIO_Port, &GPIO_InitStruct); 800a6ec: f107 0314 add.w r3, r7, #20 800a6f0: 4619 mov r1, r3 800a6f2: 4851 ldr r0, [pc, #324] @ (800a838 ) 800a6f4: f005 fd9c bl 8010230 /*Configure GPIO pins : DBG2_Pin DBG3_Pin */ GPIO_InitStruct.Pin = DBG2_Pin|DBG3_Pin; 800a6f8: 2360 movs r3, #96 @ 0x60 800a6fa: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a6fc: 2301 movs r3, #1 800a6fe: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a700: 2300 movs r3, #0 800a702: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a704: 2303 movs r3, #3 800a706: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800a708: f107 0314 add.w r3, r7, #20 800a70c: 4619 mov r1, r3 800a70e: 484a ldr r0, [pc, #296] @ (800a838 ) 800a710: f005 fd8e bl 8010230 /*Configure GPIO pins : IN0_Pin AC_OK_Pin ISO_IN_Pin */ GPIO_InitStruct.Pin = IN0_Pin|AC_OK_Pin|ISO_IN_Pin; 800a714: f244 0382 movw r3, #16514 @ 0x4082 800a718: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a71a: 2300 movs r3, #0 800a71c: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a71e: 2300 movs r3, #0 800a720: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 800a722: f107 0314 add.w r3, r7, #20 800a726: 4619 mov r1, r3 800a728: 4844 ldr r0, [pc, #272] @ (800a83c ) 800a72a: f005 fd81 bl 8010230 /*Configure GPIO pins : RELAY1_Pin RELAY2_Pin RELAY3_Pin RELAY4_Pin RELAY5_Pin */ GPIO_InitStruct.Pin = RELAY1_Pin|RELAY2_Pin|RELAY3_Pin|RELAY4_Pin 800a72e: f44f 53f8 mov.w r3, #7936 @ 0x1f00 800a732: 617b str r3, [r7, #20] |RELAY5_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a734: 2301 movs r3, #1 800a736: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a738: 2300 movs r3, #0 800a73a: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a73c: 2302 movs r3, #2 800a73e: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 800a740: f107 0314 add.w r3, r7, #20 800a744: 4619 mov r1, r3 800a746: 483d ldr r0, [pc, #244] @ (800a83c ) 800a748: f005 fd72 bl 8010230 /*Configure GPIO pins : DBG5_Pin DBG4_Pin */ GPIO_InitStruct.Pin = DBG5_Pin|DBG4_Pin; 800a74c: f44f 6340 mov.w r3, #3072 @ 0xc00 800a750: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a752: 2301 movs r3, #1 800a754: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a756: 2300 movs r3, #0 800a758: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a75a: 2303 movs r3, #3 800a75c: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a75e: f107 0314 add.w r3, r7, #20 800a762: 4619 mov r1, r3 800a764: 4836 ldr r0, [pc, #216] @ (800a840 ) 800a766: f005 fd63 bl 8010230 /*Configure GPIO pin : RELAY_CC_Pin */ GPIO_InitStruct.Pin = RELAY_CC_Pin; 800a76a: f44f 4300 mov.w r3, #32768 @ 0x8000 800a76e: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a770: 2301 movs r3, #1 800a772: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a774: 2300 movs r3, #0 800a776: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a778: 2302 movs r3, #2 800a77a: 623b str r3, [r7, #32] HAL_GPIO_Init(RELAY_CC_GPIO_Port, &GPIO_InitStruct); 800a77c: f107 0314 add.w r3, r7, #20 800a780: 4619 mov r1, r3 800a782: 482d ldr r0, [pc, #180] @ (800a838 ) 800a784: f005 fd54 bl 8010230 /*Configure GPIO pins : RELAY_DC_Pin USART2_DIR_Pin */ GPIO_InitStruct.Pin = RELAY_DC_Pin|USART2_DIR_Pin; 800a788: 2318 movs r3, #24 800a78a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a78c: 2301 movs r3, #1 800a78e: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a790: 2300 movs r3, #0 800a792: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a794: 2302 movs r3, #2 800a796: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800a798: f107 0314 add.w r3, r7, #20 800a79c: 4619 mov r1, r3 800a79e: 4829 ldr r0, [pc, #164] @ (800a844 ) 800a7a0: f005 fd46 bl 8010230 /*Configure GPIO pin : IN_ESTOP_Pin */ GPIO_InitStruct.Pin = IN_ESTOP_Pin; 800a7a4: 2380 movs r3, #128 @ 0x80 800a7a6: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a7a8: 2300 movs r3, #0 800a7aa: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7ac: 2300 movs r3, #0 800a7ae: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_ESTOP_GPIO_Port, &GPIO_InitStruct); 800a7b0: f107 0314 add.w r3, r7, #20 800a7b4: 4619 mov r1, r3 800a7b6: 4823 ldr r0, [pc, #140] @ (800a844 ) 800a7b8: f005 fd3a bl 8010230 /*Configure GPIO pins : IN_FB2_Pin IN_FB1_Pin */ GPIO_InitStruct.Pin = IN_FB2_Pin|IN_FB1_Pin; 800a7bc: 2318 movs r3, #24 800a7be: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a7c0: 2300 movs r3, #0 800a7c2: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7c4: 2300 movs r3, #0 800a7c6: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a7c8: f107 0314 add.w r3, r7, #20 800a7cc: 4619 mov r1, r3 800a7ce: 481c ldr r0, [pc, #112] @ (800a840 ) 800a7d0: f005 fd2e bl 8010230 /*Configure GPIO pin : EE_WP_Pin */ GPIO_InitStruct.Pin = EE_WP_Pin; 800a7d4: 2380 movs r3, #128 @ 0x80 800a7d6: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a7d8: 2301 movs r3, #1 800a7da: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7dc: 2300 movs r3, #0 800a7de: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a7e0: 2302 movs r3, #2 800a7e2: 623b str r3, [r7, #32] HAL_GPIO_Init(EE_WP_GPIO_Port, &GPIO_InitStruct); 800a7e4: f107 0314 add.w r3, r7, #20 800a7e8: 4619 mov r1, r3 800a7ea: 4815 ldr r0, [pc, #84] @ (800a840 ) 800a7ec: f005 fd20 bl 8010230 /*Configure GPIO pins : PB8 PB9 */ GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9; 800a7f0: f44f 7340 mov.w r3, #768 @ 0x300 800a7f4: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; 800a7f6: 2312 movs r3, #18 800a7f8: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a7fa: 2303 movs r3, #3 800a7fc: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a7fe: f107 0314 add.w r3, r7, #20 800a802: 4619 mov r1, r3 800a804: 480e ldr r0, [pc, #56] @ (800a840 ) 800a806: f005 fd13 bl 8010230 /*Configure peripheral I/O remapping */ __HAL_AFIO_REMAP_I2C1_ENABLE(); 800a80a: 4b0f ldr r3, [pc, #60] @ (800a848 ) 800a80c: 685b ldr r3, [r3, #4] 800a80e: 627b str r3, [r7, #36] @ 0x24 800a810: 6a7b ldr r3, [r7, #36] @ 0x24 800a812: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800a816: 627b str r3, [r7, #36] @ 0x24 800a818: 6a7b ldr r3, [r7, #36] @ 0x24 800a81a: f043 0302 orr.w r3, r3, #2 800a81e: 627b str r3, [r7, #36] @ 0x24 800a820: 4a09 ldr r2, [pc, #36] @ (800a848 ) 800a822: 6a7b ldr r3, [r7, #36] @ 0x24 800a824: 6053 str r3, [r2, #4] } 800a826: bf00 nop 800a828: 3728 adds r7, #40 @ 0x28 800a82a: 46bd mov sp, r7 800a82c: bd80 pop {r7, pc} 800a82e: bf00 nop 800a830: 40021000 .word 0x40021000 800a834: 40011000 .word 0x40011000 800a838: 40010800 .word 0x40010800 800a83c: 40011800 .word 0x40011800 800a840: 40010c00 .word 0x40010c00 800a844: 40011400 .word 0x40011400 800a848: 40010000 .word 0x40010000 0800a84c : * bootloader before starting this program. Unfortunately, function * SystemInit() overwrites this change again. * @return none. */ static void VectorBase_Config(void) { 800a84c: b480 push {r7} 800a84e: 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]; 800a850: 4b03 ldr r3, [pc, #12] @ (800a860 ) 800a852: 4a04 ldr r2, [pc, #16] @ (800a864 ) 800a854: 609a str r2, [r3, #8] } 800a856: bf00 nop 800a858: 46bd mov sp, r7 800a85a: bc80 pop {r7} 800a85c: 4770 bx lr 800a85e: bf00 nop 800a860: e000ed00 .word 0xe000ed00 800a864: 08008000 .word 0x08008000 0800a868 : uint8_t ED_TraceWarning(uint8_t flag, uint8_t id){ 800a868: b480 push {r7} 800a86a: b085 sub sp, #20 800a86c: af00 add r7, sp, #0 800a86e: 4603 mov r3, r0 800a870: 460a mov r2, r1 800a872: 71fb strb r3, [r7, #7] 800a874: 4613 mov r3, r2 800a876: 71bb strb r3, [r7, #6] static uint8_t memory[32]; if(id > 31) return 0; 800a878: 79bb ldrb r3, [r7, #6] 800a87a: 2b1f cmp r3, #31 800a87c: d901 bls.n 800a882 800a87e: 2300 movs r3, #0 800a880: e00e b.n 800a8a0 uint8_t result = 0; 800a882: 2300 movs r3, #0 800a884: 73fb strb r3, [r7, #15] if(memory[id] != flag){ 800a886: 79bb ldrb r3, [r7, #6] 800a888: 4a08 ldr r2, [pc, #32] @ (800a8ac ) 800a88a: 5cd3 ldrb r3, [r2, r3] 800a88c: 79fa ldrb r2, [r7, #7] 800a88e: 429a cmp r2, r3 800a890: d001 beq.n 800a896 result = 1; 800a892: 2301 movs r3, #1 800a894: 73fb strb r3, [r7, #15] } memory[id] = flag; 800a896: 79bb ldrb r3, [r7, #6] 800a898: 4904 ldr r1, [pc, #16] @ (800a8ac ) 800a89a: 79fa ldrb r2, [r7, #7] 800a89c: 54ca strb r2, [r1, r3] return result; 800a89e: 7bfb ldrb r3, [r7, #15] } 800a8a0: 4618 mov r0, r3 800a8a2: 3714 adds r7, #20 800a8a4: 46bd mov sp, r7 800a8a6: bc80 pop {r7} 800a8a8: 4770 bx lr 800a8aa: bf00 nop 800a8ac: 20000854 .word 0x20000854 0800a8b0 : void ED_Delay(uint32_t Delay) { 800a8b0: b580 push {r7, lr} 800a8b2: b084 sub sp, #16 800a8b4: af00 add r7, sp, #0 800a8b6: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 800a8b8: f003 fa96 bl 800dde8 800a8bc: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 800a8be: 687b ldr r3, [r7, #4] 800a8c0: 60fb str r3, [r7, #12] if (wait < HAL_MAX_DELAY) 800a8c2: 68fb ldr r3, [r7, #12] 800a8c4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 800a8c8: d010 beq.n 800a8ec { wait += (uint32_t)(uwTickFreq); 800a8ca: 4b0f ldr r3, [pc, #60] @ (800a908 ) 800a8cc: 781b ldrb r3, [r3, #0] 800a8ce: 461a mov r2, r3 800a8d0: 68fb ldr r3, [r7, #12] 800a8d2: 4413 add r3, r2 800a8d4: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait){ 800a8d6: e009 b.n 800a8ec CCS_SerialLoop(); 800a8d8: f001 f976 bl 800bbc8 CP_Loop(); 800a8dc: f7ff fcc0 bl 800a260 CONN_Task(); 800a8e0: f7ff face bl 8009e80 LED_Task(); 800a8e4: f000 ff90 bl 800b808 SC_Task(); 800a8e8: f001 fedc bl 800c6a4 while ((HAL_GetTick() - tickstart) < wait){ 800a8ec: f003 fa7c bl 800dde8 800a8f0: 4602 mov r2, r0 800a8f2: 68bb ldr r3, [r7, #8] 800a8f4: 1ad3 subs r3, r2, r3 800a8f6: 68fa ldr r2, [r7, #12] 800a8f8: 429a cmp r2, r3 800a8fa: d8ed bhi.n 800a8d8 } } 800a8fc: bf00 nop 800a8fe: bf00 nop 800a900: 3710 adds r7, #16 800a902: 46bd mov sp, r7 800a904: bd80 pop {r7, pc} 800a906: bf00 nop 800a908: 20000070 .word 0x20000070 0800a90c : void StopButtonControl(){ 800a90c: b580 push {r7, lr} 800a90e: af00 add r7, sp, #0 //Charging do nothing if(!IN_ReadInput(IN_ESTOP)){ 800a910: 2003 movs r0, #3 800a912: f7fe ffd1 bl 80098b8 800a916: 4603 mov r3, r0 800a918: 2b00 cmp r3, #0 800a91a: d102 bne.n 800a922 CONN.connControl = CMD_STOP; 800a91c: 4b02 ldr r3, [pc, #8] @ (800a928 ) 800a91e: 2201 movs r2, #1 800a920: 701a strb r2, [r3, #0] } } 800a922: bf00 nop 800a924: bd80 pop {r7, pc} 800a926: bf00 nop 800a928: 20000398 .word 0x20000398 0800a92c : uint8_t temp0, temp1; static void CAN1_MinimalReInit(void) { 800a92c: b580 push {r7, lr} 800a92e: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan1); 800a930: 480b ldr r0, [pc, #44] @ (800a960 ) 800a932: f004 f9e7 bl 800ed04 MX_CAN1_Init(); 800a936: f7ff f903 bl 8009b40 if (HAL_CAN_Start(&hcan1) != HAL_OK) { 800a93a: 4809 ldr r0, [pc, #36] @ (800a960 ) 800a93c: f004 f99e bl 800ec7c 800a940: 4603 mov r3, r0 800a942: 2b00 cmp r3, #0 800a944: d001 beq.n 800a94a Error_Handler(); 800a946: f000 f8fb bl 800ab40 } if (HAL_CAN_ActivateNotification(&hcan1, CAN_IT_RX_FIFO0_MSG_PENDING) != HAL_OK) { 800a94a: 2102 movs r1, #2 800a94c: 4804 ldr r0, [pc, #16] @ (800a960 ) 800a94e: f004 fc46 bl 800f1de 800a952: 4603 mov r3, r0 800a954: 2b00 cmp r3, #0 800a956: d001 beq.n 800a95c Error_Handler(); 800a958: f000 f8f2 bl 800ab40 } } 800a95c: bf00 nop 800a95e: bd80 pop {r7, pc} 800a960: 20000344 .word 0x20000344 0800a964
: /** * @brief The application entry point. * @retval int */ int main(void) { 800a964: b580 push {r7, lr} 800a966: b082 sub sp, #8 800a968: af02 add r7, sp, #8 /* USER CODE BEGIN 1 */ VectorBase_Config(); 800a96a: f7ff ff6f bl 800a84c /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); 800a96e: f003 f9e3 bl 800dd38 /* USER CODE BEGIN Init */ HAL_RCC_DeInit(); 800a972: f005 fed9 bl 8010728 /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); 800a976: f000 f873 bl 800aa60 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); 800a97a: f7ff fe27 bl 800a5cc MX_DMA_Init(); 800a97e: f7ff fe07 bl 800a590 MX_ADC1_Init(); 800a982: f7fe fe09 bl 8009598 MX_CAN1_Init(); 800a986: f7ff f8db bl 8009b40 MX_CAN2_Init(); 800a98a: f7ff f90f bl 8009bac MX_RTC_Init(); 800a98e: f000 ffd9 bl 800b944 MX_TIM4_Init(); 800a992: f002 fe23 bl 800d5dc MX_USART2_UART_Init(); 800a996: f002 ffa1 bl 800d8dc MX_CRC_Init(); 800a99a: f7ff fcab bl 800a2f4 MX_UART5_Init(); 800a99e: f002 ff49 bl 800d834 MX_USART1_UART_Init(); 800a9a2: f002 ff71 bl 800d888 MX_USART3_UART_Init(); 800a9a6: f002 ffc3 bl 800d930 MX_TIM3_Init(); 800a9aa: f002 fd89 bl 800d4c0 /* USER CODE BEGIN 2 */ Init_Peripheral(); 800a9ae: f7fe ffd5 bl 800995c LED_Init(); 800a9b2: f000 ff09 bl 800b7c8 HAL_Delay(300); 800a9b6: f44f 7096 mov.w r0, #300 @ 0x12c 800a9ba: f003 fa1f bl 800ddfc CCS_Init(); 800a9be: f001 fb11 bl 800bfe4 SC_Init(); 800a9c2: f001 fe43 bl 800c64c log_printf(LOG_INFO, "CCS module start\n"); 800a9c6: 4921 ldr r1, [pc, #132] @ (800aa4c ) 800a9c8: 2007 movs r0, #7 800a9ca: f7ff fdab bl 800a524 ReadVersion(); 800a9ce: f001 fe19 bl 800c604 log_printf(LOG_INFO, "Serial number: %d\n", infoPacket.serialNumber); 800a9d2: 4b1f ldr r3, [pc, #124] @ (800aa50 ) 800a9d4: 881b ldrh r3, [r3, #0] 800a9d6: b29b uxth r3, r3 800a9d8: 461a mov r2, r3 800a9da: 491e ldr r1, [pc, #120] @ (800aa54 ) 800a9dc: 2007 movs r0, #7 800a9de: f7ff fda1 bl 800a524 log_printf(LOG_INFO, "Board revision: %d\n", infoPacket.boardVersion); 800a9e2: 4b1b ldr r3, [pc, #108] @ (800aa50 ) 800a9e4: 789b ldrb r3, [r3, #2] 800a9e6: 461a mov r2, r3 800a9e8: 491b ldr r1, [pc, #108] @ (800aa58 ) 800a9ea: 2007 movs r0, #7 800a9ec: f7ff fd9a bl 800a524 log_printf(LOG_INFO, "FW version: %d.%d.%d\n", infoPacket.fw_version_major, infoPacket.fw_version_minor, infoPacket.fw_version_patch); 800a9f0: 4b17 ldr r3, [pc, #92] @ (800aa50 ) 800a9f2: 889b ldrh r3, [r3, #4] 800a9f4: b29b uxth r3, r3 800a9f6: 461a mov r2, r3 800a9f8: 4b15 ldr r3, [pc, #84] @ (800aa50 ) 800a9fa: 88db ldrh r3, [r3, #6] 800a9fc: b29b uxth r3, r3 800a9fe: 4619 mov r1, r3 800aa00: 4b13 ldr r3, [pc, #76] @ (800aa50 ) 800aa02: 891b ldrh r3, [r3, #8] 800aa04: b29b uxth r3, r3 800aa06: 9300 str r3, [sp, #0] 800aa08: 460b mov r3, r1 800aa0a: 4914 ldr r1, [pc, #80] @ (800aa5c ) 800aa0c: 2007 movs r0, #7 800aa0e: f7ff fd89 bl 800a524 CAN1_MinimalReInit(); 800aa12: f7ff ff8b bl 800a92c PSU_Init(); 800aa16: f000 f9ed bl 800adf4 CONN_Init(); 800aa1a: f7ff f9db bl 8009dd4 /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ PSU_ReadWrite(); 800aa1e: f000 faf7 bl 800b010 PSU_Task(); 800aa22: f000 fba3 bl 800b16c ED_Delay(10); 800aa26: 200a movs r0, #10 800aa28: f7ff ff42 bl 800a8b0 METER_CalculateEnergy(); 800aa2c: f000 f88e bl 800ab4c CONN_Loop(); 800aa30: f7ff f9e6 bl 8009e00 LED_Write(); 800aa34: f000 fd8e bl 800b554 ED_Delay(10); 800aa38: 200a movs r0, #10 800aa3a: f7ff ff39 bl 800a8b0 StopButtonControl(); 800aa3e: f7ff ff65 bl 800a90c ED_Delay(50); 800aa42: 2032 movs r0, #50 @ 0x32 800aa44: f7ff ff34 bl 800a8b0 { 800aa48: bf00 nop 800aa4a: e7e8 b.n 800aa1e 800aa4c: 0801694c .word 0x0801694c 800aa50: 20001088 .word 0x20001088 800aa54: 08016960 .word 0x08016960 800aa58: 08016974 .word 0x08016974 800aa5c: 08016988 .word 0x08016988 0800aa60 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { 800aa60: b580 push {r7, lr} 800aa62: b09c sub sp, #112 @ 0x70 800aa64: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; 800aa66: f107 0338 add.w r3, r7, #56 @ 0x38 800aa6a: 2238 movs r2, #56 @ 0x38 800aa6c: 2100 movs r1, #0 800aa6e: 4618 mov r0, r3 800aa70: f009 fd4e bl 8014510 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 800aa74: f107 0324 add.w r3, r7, #36 @ 0x24 800aa78: 2200 movs r2, #0 800aa7a: 601a str r2, [r3, #0] 800aa7c: 605a str r2, [r3, #4] 800aa7e: 609a str r2, [r3, #8] 800aa80: 60da str r2, [r3, #12] 800aa82: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; 800aa84: 1d3b adds r3, r7, #4 800aa86: 2220 movs r2, #32 800aa88: 2100 movs r1, #0 800aa8a: 4618 mov r0, r3 800aa8c: f009 fd40 bl 8014510 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE|RCC_OSCILLATORTYPE_LSE; 800aa90: 2305 movs r3, #5 800aa92: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.HSEState = RCC_HSE_ON; 800aa94: f44f 3380 mov.w r3, #65536 @ 0x10000 800aa98: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV5; 800aa9a: 2304 movs r3, #4 800aa9c: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.LSEState = RCC_LSE_ON; 800aa9e: 2301 movs r3, #1 800aaa0: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.HSIState = RCC_HSI_ON; 800aaa2: 2301 movs r3, #1 800aaa4: 64fb str r3, [r7, #76] @ 0x4c RCC_OscInitStruct.Prediv1Source = RCC_PREDIV1_SOURCE_PLL2; 800aaa6: f44f 3380 mov.w r3, #65536 @ 0x10000 800aaaa: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; 800aaac: 2302 movs r3, #2 800aaae: 65bb str r3, [r7, #88] @ 0x58 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; 800aab0: f44f 3380 mov.w r3, #65536 @ 0x10000 800aab4: 65fb str r3, [r7, #92] @ 0x5c RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; 800aab6: f44f 13e0 mov.w r3, #1835008 @ 0x1c0000 800aaba: 663b str r3, [r7, #96] @ 0x60 RCC_OscInitStruct.PLL2.PLL2State = RCC_PLL2_ON; 800aabc: 2302 movs r3, #2 800aabe: 667b str r3, [r7, #100] @ 0x64 RCC_OscInitStruct.PLL2.PLL2MUL = RCC_PLL2_MUL8; 800aac0: f44f 63c0 mov.w r3, #1536 @ 0x600 800aac4: 66bb str r3, [r7, #104] @ 0x68 RCC_OscInitStruct.PLL2.HSEPrediv2Value = RCC_HSE_PREDIV2_DIV5; 800aac6: 2340 movs r3, #64 @ 0x40 800aac8: 66fb str r3, [r7, #108] @ 0x6c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800aaca: f107 0338 add.w r3, r7, #56 @ 0x38 800aace: 4618 mov r0, r3 800aad0: f005 fefa bl 80108c8 800aad4: 4603 mov r3, r0 800aad6: 2b00 cmp r3, #0 800aad8: d001 beq.n 800aade { Error_Handler(); 800aada: f000 f831 bl 800ab40 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK 800aade: 230f movs r3, #15 800aae0: 627b str r3, [r7, #36] @ 0x24 |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; 800aae2: 2302 movs r3, #2 800aae4: 62bb str r3, [r7, #40] @ 0x28 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; 800aae6: 2300 movs r3, #0 800aae8: 62fb str r3, [r7, #44] @ 0x2c RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; 800aaea: f44f 6380 mov.w r3, #1024 @ 0x400 800aaee: 633b str r3, [r7, #48] @ 0x30 RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; 800aaf0: 2300 movs r3, #0 800aaf2: 637b str r3, [r7, #52] @ 0x34 if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) 800aaf4: f107 0324 add.w r3, r7, #36 @ 0x24 800aaf8: 2102 movs r1, #2 800aafa: 4618 mov r0, r3 800aafc: f006 f9fa bl 8010ef4 800ab00: 4603 mov r3, r0 800ab02: 2b00 cmp r3, #0 800ab04: d001 beq.n 800ab0a { Error_Handler(); 800ab06: f000 f81b bl 800ab40 } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_ADC; 800ab0a: 2303 movs r3, #3 800ab0c: 607b str r3, [r7, #4] PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE; 800ab0e: f44f 7380 mov.w r3, #256 @ 0x100 800ab12: 60bb str r3, [r7, #8] PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV6; 800ab14: f44f 4300 mov.w r3, #32768 @ 0x8000 800ab18: 60fb str r3, [r7, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) 800ab1a: 1d3b adds r3, r7, #4 800ab1c: 4618 mov r0, r3 800ab1e: f006 fbdf bl 80112e0 800ab22: 4603 mov r3, r0 800ab24: 2b00 cmp r3, #0 800ab26: d001 beq.n 800ab2c { Error_Handler(); 800ab28: f000 f80a bl 800ab40 } /** Configure the Systick interrupt time */ __HAL_RCC_PLLI2S_ENABLE(); 800ab2c: 4b03 ldr r3, [pc, #12] @ (800ab3c ) 800ab2e: 2201 movs r2, #1 800ab30: 601a str r2, [r3, #0] } 800ab32: bf00 nop 800ab34: 3770 adds r7, #112 @ 0x70 800ab36: 46bd mov sp, r7 800ab38: bd80 pop {r7, pc} 800ab3a: bf00 nop 800ab3c: 42420070 .word 0x42420070 0800ab40 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { 800ab40: b480 push {r7} 800ab42: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800ab44: b672 cpsid i } 800ab46: 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) 800ab48: bf00 nop 800ab4a: e7fd b.n 800ab48 0800ab4c : METER_t METER; // Функция для расчета и накопления энергии c дробной частью без счетчиков void METER_CalculateEnergy() { 800ab4c: e92d 43b0 stmdb sp!, {r4, r5, r7, r8, r9, lr} 800ab50: b084 sub sp, #16 800ab52: af00 add r7, sp, #0 // Проверяем, что индекс находится в пределах массива METER.online = 0; 800ab54: 4b2e ldr r3, [pc, #184] @ (800ac10 ) 800ab56: 2200 movs r2, #0 800ab58: 711a strb r2, [r3, #4] if(CONN.connState == Charging){ 800ab5a: 4b2e ldr r3, [pc, #184] @ (800ac14 ) 800ab5c: 785b ldrb r3, [r3, #1] 800ab5e: 2b08 cmp r3, #8 800ab60: d104 bne.n 800ab6c METER.enable = 1; 800ab62: 4b2b ldr r3, [pc, #172] @ (800ac10 ) 800ab64: 2201 movs r2, #1 800ab66: f883 2024 strb.w r2, [r3, #36] @ 0x24 800ab6a: e003 b.n 800ab74 }else{ METER.enable = 0; 800ab6c: 4b28 ldr r3, [pc, #160] @ (800ac10 ) 800ab6e: 2200 movs r2, #0 800ab70: f883 2024 strb.w r2, [r3, #36] @ 0x24 } uint32_t currentTick = HAL_GetTick(); // Получаем текущее время в миллисекундах 800ab74: f003 f938 bl 800dde8 800ab78: 60f8 str r0, [r7, #12] uint32_t elapsedTimeMs = currentTick - METER.lastTick; // Вычисляем время, прошедшее с последнего вызова в секундах 800ab7a: 4b25 ldr r3, [pc, #148] @ (800ac10 ) 800ab7c: 689b ldr r3, [r3, #8] 800ab7e: 68fa ldr r2, [r7, #12] 800ab80: 1ad3 subs r3, r2, r3 800ab82: 60bb str r3, [r7, #8] METER.lastTick = currentTick; // Обновляем время последнего вызова для текущего коннектора 800ab84: 4a22 ldr r2, [pc, #136] @ (800ac10 ) 800ab86: 68fb ldr r3, [r7, #12] 800ab88: 6093 str r3, [r2, #8] uint32_t energyWs = CONN.Power * elapsedTimeMs / 1000; // Рассчитываем энергию в ватт-секундах за прошедший промежуток времени 800ab8a: 4b22 ldr r3, [pc, #136] @ (800ac14 ) 800ab8c: f8d3 3003 ldr.w r3, [r3, #3] 800ab90: 68ba ldr r2, [r7, #8] 800ab92: fb02 f303 mul.w r3, r2, r3 800ab96: 4a20 ldr r2, [pc, #128] @ (800ac18 ) 800ab98: fba2 2303 umull r2, r3, r2, r3 800ab9c: 099b lsrs r3, r3, #6 800ab9e: 607b str r3, [r7, #4] //Расчет энергии теперь идет всегда, смещение берем суммарное METER.EnergyPSU_Ws += energyWs; 800aba0: 4b1b ldr r3, [pc, #108] @ (800ac10 ) 800aba2: e9d3 2304 ldrd r2, r3, [r3, #16] 800aba6: 6879 ldr r1, [r7, #4] 800aba8: 2000 movs r0, #0 800abaa: 460c mov r4, r1 800abac: 4605 mov r5, r0 800abae: eb12 0804 adds.w r8, r2, r4 800abb2: eb43 0905 adc.w r9, r3, r5 800abb6: 4b16 ldr r3, [pc, #88] @ (800ac10 ) 800abb8: e9c3 8904 strd r8, r9, [r3, #16] // Абсолютное значение энергии разъема складывается из накопленной дробной части и значения со счетчиков METER.AbsoluteEnergy = (uint32_t)METER.EnergyPSU_Ws/3600; //переводим в Вт*час 800abbc: 4b14 ldr r3, [pc, #80] @ (800ac10 ) 800abbe: e9d3 2304 ldrd r2, r3, [r3, #16] 800abc2: 4b16 ldr r3, [pc, #88] @ (800ac1c ) 800abc4: fba3 2302 umull r2, r3, r3, r2 800abc8: 0adb lsrs r3, r3, #11 800abca: 4a11 ldr r2, [pc, #68] @ (800ac10 ) 800abcc: 6193 str r3, [r2, #24] if(METER.enable) { 800abce: 4b10 ldr r3, [pc, #64] @ (800ac10 ) 800abd0: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800abd4: 2b00 cmp r3, #0 800abd6: d008 beq.n 800abea //enabled state CONN.Energy = METER.AbsoluteEnergy - METER.EnergyOffset;//переводим в Вт*час 800abd8: 4b0d ldr r3, [pc, #52] @ (800ac10 ) 800abda: 699a ldr r2, [r3, #24] 800abdc: 4b0c ldr r3, [pc, #48] @ (800ac10 ) 800abde: 69db ldr r3, [r3, #28] 800abe0: 1ad3 subs r3, r2, r3 800abe2: 4a0c ldr r2, [pc, #48] @ (800ac14 ) 800abe4: f8c2 3007 str.w r3, [r2, #7] METER.EnergyOffset = METER.AbsoluteEnergy; } } 800abe8: e00c b.n 800ac04 CONN.Energy = 0; 800abea: 4b0a ldr r3, [pc, #40] @ (800ac14 ) 800abec: 2200 movs r2, #0 800abee: 71da strb r2, [r3, #7] 800abf0: 2200 movs r2, #0 800abf2: 721a strb r2, [r3, #8] 800abf4: 2200 movs r2, #0 800abf6: 725a strb r2, [r3, #9] 800abf8: 2200 movs r2, #0 800abfa: 729a strb r2, [r3, #10] METER.EnergyOffset = METER.AbsoluteEnergy; 800abfc: 4b04 ldr r3, [pc, #16] @ (800ac10 ) 800abfe: 699b ldr r3, [r3, #24] 800ac00: 4a03 ldr r2, [pc, #12] @ (800ac10 ) 800ac02: 61d3 str r3, [r2, #28] } 800ac04: bf00 nop 800ac06: 3710 adds r7, #16 800ac08: 46bd mov sp, r7 800ac0a: e8bd 83b0 ldmia.w sp!, {r4, r5, r7, r8, r9, pc} 800ac0e: bf00 nop 800ac10: 20000878 .word 0x20000878 800ac14: 20000398 .word 0x20000398 800ac18: 10624dd3 .word 0x10624dd3 800ac1c: 91a2b3c5 .word 0x91a2b3c5 0800ac20 : uint32_t can_lastpacket; extern CAN_HandleTypeDef hcan2; static void PSU_SwitchState(PSU_State_t state){ 800ac20: b580 push {r7, lr} 800ac22: b082 sub sp, #8 800ac24: af00 add r7, sp, #0 800ac26: 4603 mov r3, r0 800ac28: 71fb strb r3, [r7, #7] PSU0.state = state; 800ac2a: 4a06 ldr r2, [pc, #24] @ (800ac44 ) 800ac2c: 79fb ldrb r3, [r7, #7] 800ac2e: 71d3 strb r3, [r2, #7] PSU0.statetick = HAL_GetTick(); 800ac30: f003 f8da bl 800dde8 800ac34: 4603 mov r3, r0 800ac36: 4a03 ldr r2, [pc, #12] @ (800ac44 ) 800ac38: 6113 str r3, [r2, #16] } 800ac3a: bf00 nop 800ac3c: 3708 adds r7, #8 800ac3e: 46bd mov sp, r7 800ac40: bd80 pop {r7, pc} 800ac42: bf00 nop 800ac44: 200008e4 .word 0x200008e4 0800ac48 : static uint32_t PSU_StateTime(void){ 800ac48: b580 push {r7, lr} 800ac4a: af00 add r7, sp, #0 return HAL_GetTick() - PSU0.statetick; 800ac4c: f003 f8cc bl 800dde8 800ac50: 4602 mov r2, r0 800ac52: 4b02 ldr r3, [pc, #8] @ (800ac5c ) 800ac54: 691b ldr r3, [r3, #16] 800ac56: 1ad3 subs r3, r2, r3 } 800ac58: 4618 mov r0, r3 800ac5a: bd80 pop {r7, pc} 800ac5c: 200008e4 .word 0x200008e4 0800ac60 : ISR_FAST void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan){ 800ac60: 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) 800ac62: 4c42 ldr r4, [pc, #264] @ (800ad6c ) 800ac64: 4d42 ldr r5, [pc, #264] @ (800ad70 ) 800ac66: 4623 mov r3, r4 800ac68: 462a mov r2, r5 800ac6a: 2101 movs r1, #1 800ac6c: f004 f996 bl 800ef9c 800ac70: b910 cbnz r0, 800ac78 { memcpy(&CanId, &RxHeader.ExtId, sizeof(CanId_t)); 800ac72: 686d ldr r5, [r5, #4] /* Для DC30 поддерживается только один силовой модуль (source == 0) */ if(CanId.source != 0) return; 800ac74: b2eb uxtb r3, r5 800ac76: b103 cbz r3, 800ac7a CONN.outputEnabled = PSU0.PSU_enabled; } } } } } 800ac78: bd38 pop {r3, r4, r5, pc} can_lastpacket = HAL_GetTick(); 800ac7a: f003 f8b5 bl 800dde8 if(CanId.command==0x02){ 800ac7e: f3c5 4505 ubfx r5, r5, #16, #6 can_lastpacket = HAL_GetTick(); 800ac82: 4b3c ldr r3, [pc, #240] @ (800ad74 ) if(CanId.command==0x02){ 800ac84: 2d02 cmp r5, #2 can_lastpacket = HAL_GetTick(); 800ac86: 6018 str r0, [r3, #0] if(CanId.command==0x02){ 800ac88: d013 beq.n 800acb2 if(CanId.command==0x04){ 800ac8a: 2d04 cmp r5, #4 800ac8c: d117 bne.n 800acbe memcpy(&PSU_04, RxData, 8); 800ac8e: e894 0003 ldmia.w r4, {r0, r1} 800ac92: 4b39 ldr r3, [pc, #228] @ (800ad78 ) PSU0.tempAmbient = PSU_04.moduleTemperature; 800ac94: 4a39 ldr r2, [pc, #228] @ (800ad7c ) memcpy(&PSU_04, RxData, 8); 800ac96: e883 0003 stmia.w r3, {r0, r1} PSU0.status0.raw = PSU_04.modularForm0; 800ac9a: 7a18 ldrb r0, [r3, #8] PSU0.tempAmbient = PSU_04.moduleTemperature; 800ac9c: 791c ldrb r4, [r3, #4] PSU0.status1.raw = PSU_04.modularForm1; 800ac9e: 79d9 ldrb r1, [r3, #7] PSU0.status2.raw = PSU_04.modularForm2; 800aca0: 799b ldrb r3, [r3, #6] PSU0.tempAmbient = PSU_04.moduleTemperature; 800aca2: 61d4 str r4, [r2, #28] PSU0.status0.raw = PSU_04.modularForm0; 800aca4: f882 0020 strb.w r0, [r2, #32] PSU0.status1.raw = PSU_04.modularForm1; 800aca8: f882 1021 strb.w r1, [r2, #33] @ 0x21 PSU0.status2.raw = PSU_04.modularForm2; 800acac: f882 3022 strb.w r3, [r2, #34] @ 0x22 } 800acb0: bd38 pop {r3, r4, r5, pc} memcpy(&PSU_02, RxData, 8); 800acb2: 4b33 ldr r3, [pc, #204] @ (800ad80 ) 800acb4: e894 0003 ldmia.w r4, {r0, r1} 800acb8: e883 0003 stmia.w r3, {r0, r1} } 800acbc: bd38 pop {r3, r4, r5, pc} if(CanId.command==0x06){ 800acbe: 2d06 cmp r5, #6 800acc0: d111 bne.n 800ace6 memcpy(&PSU_06, RxData, 8); 800acc2: e894 0003 ldmia.w r4, {r0, r1} 800acc6: 4b2f ldr r3, [pc, #188] @ (800ad84 ) 800acc8: e883 0003 stmia.w r3, {r0, r1} PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800accc: 8818 ldrh r0, [r3, #0] PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800acce: 8859 ldrh r1, [r3, #2] PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800acd0: 889a ldrh r2, [r3, #4] PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800acd2: ba40 rev16 r0, r0 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800acd4: ba49 rev16 r1, r1 PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800acd6: ba52 rev16 r2, r2 PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800acd8: b280 uxth r0, r0 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800acda: b289 uxth r1, r1 PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800acdc: b292 uxth r2, r2 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800acde: e9c3 0102 strd r0, r1, [r3, #8] PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800ace2: 611a str r2, [r3, #16] } 800ace4: bd38 pop {r3, r4, r5, pc} if(CanId.command==0x08){ 800ace6: 2d08 cmp r5, #8 800ace8: d03a beq.n 800ad60 if(CanId.command==0x09){ 800acea: 2d09 cmp r5, #9 800acec: d1c4 bne.n 800ac78 memcpy(&PSU_09, RxData, 8); 800acee: e894 0003 ldmia.w r4, {r0, r1} PSU0.temperature = PSU_04.moduleTemperature; 800acf2: 4b21 ldr r3, [pc, #132] @ (800ad78 ) memcpy(&PSU_09, RxData, 8); 800acf4: 4d24 ldr r5, [pc, #144] @ (800ad88 ) PSU0.outputVoltage = v; 800acf6: 4c21 ldr r4, [pc, #132] @ (800ad7c ) PSU0.temperature = PSU_04.moduleTemperature; 800acf8: f893 c004 ldrb.w ip, [r3, #4] uint16_t v = PSU_09.moduleNVoltage / 1000; 800acfc: 4a23 ldr r2, [pc, #140] @ (800ad8c ) memcpy(&PSU_09, RxData, 8); 800acfe: e885 0003 stmia.w r5, {r0, r1} PSU_09.moduleNCurrent = PSU_09.moduleNCurrent_[3]; 800ad02: ba00 rev r0, r0 PSU0.temperature = PSU_04.moduleTemperature; 800ad04: f884 c006 strb.w ip, [r4, #6] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ad08: fba2 c200 umull ip, r2, r2, r0 800ad0c: ba09 rev r1, r1 PSU_09.moduleNVoltage |= PSU_09.moduleNVoltage_[0]<<24; 800ad0e: e9c5 0102 strd r0, r1, [r5, #8] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ad12: f3c2 108f ubfx r0, r2, #6, #16 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ad16: 2813 cmp r0, #19 PSU0.online = 1; 800ad18: f04f 0e01 mov.w lr, #1 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ad1c: bf94 ite ls 800ad1e: 2500 movls r5, #0 800ad20: 2501 movhi r5, #1 int16_t i = PSU_09.moduleNCurrent / 100; 800ad22: 4b1b ldr r3, [pc, #108] @ (800ad90 ) PSU0.online = 1; 800ad24: f884 e008 strb.w lr, [r4, #8] int16_t i = PSU_09.moduleNCurrent / 100; 800ad28: fba3 c301 umull ip, r3, r3, r1 if(PSU0.state >= PSU_READY){ 800ad2c: 79e1 ldrb r1, [r4, #7] int16_t i = PSU_09.moduleNCurrent / 100; 800ad2e: 095b lsrs r3, r3, #5 if(PSU0.state >= PSU_READY){ 800ad30: 4571 cmp r1, lr PSU0.outputVoltage = v; 800ad32: 8060 strh r0, [r4, #2] int16_t i = PSU_09.moduleNCurrent / 100; 800ad34: 80a3 strh r3, [r4, #4] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ad36: ea4f 1292 mov.w r2, r2, lsr #6 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ad3a: 72a5 strb r5, [r4, #10] if(PSU0.state >= PSU_READY){ 800ad3c: d99c bls.n 800ac78 CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ad3e: b299 uxth r1, r3 800ad40: b292 uxth r2, r2 800ad42: fb01 f202 mul.w r2, r1, r2 800ad46: 4c13 ldr r4, [pc, #76] @ (800ad94 ) CONN.MeasuredVoltage = PSU0.outputVoltage; 800ad48: 4913 ldr r1, [pc, #76] @ (800ad98 ) CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ad4a: fba4 4202 umull r4, r2, r4, r2 CONN.MeasuredCurrent = PSU0.outputCurrent; 800ad4e: f8a1 3015 strh.w r3, [r1, #21] CONN.outputEnabled = PSU0.PSU_enabled; 800ad52: 760d strb r5, [r1, #24] CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ad54: 08d3 lsrs r3, r2, #3 CONN.MeasuredVoltage = PSU0.outputVoltage; 800ad56: f8a1 0013 strh.w r0, [r1, #19] CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ad5a: f8c1 3003 str.w r3, [r1, #3] } 800ad5e: bd38 pop {r3, r4, r5, pc} memcpy(&PSU_08, RxData, 8); 800ad60: 4b0e ldr r3, [pc, #56] @ (800ad9c ) 800ad62: e894 0003 ldmia.w r4, {r0, r1} 800ad66: e883 0003 stmia.w r3, {r0, r1} } 800ad6a: bd38 pop {r3, r4, r5, pc} 800ad6c: 20000928 .word 0x20000928 800ad70: 2000090c .word 0x2000090c 800ad74: 20000908 .word 0x20000908 800ad78: 200008ac .word 0x200008ac 800ad7c: 200008e4 .word 0x200008e4 800ad80: 200008a0 .word 0x200008a0 800ad84: 200008b8 .word 0x200008b8 800ad88: 200008d4 .word 0x200008d4 800ad8c: 10624dd3 .word 0x10624dd3 800ad90: 51eb851f .word 0x51eb851f 800ad94: cccccccd .word 0xcccccccd 800ad98: 20000398 .word 0x20000398 800ad9c: 200008cc .word 0x200008cc 0800ada0 : void PSU_CAN_FilterInit(){ 800ada0: b580 push {r7, lr} 800ada2: b08a sub sp, #40 @ 0x28 800ada4: af00 add r7, sp, #0 CAN_FilterTypeDef sFilterConfig; sFilterConfig.FilterBank = 14; 800ada6: 230e movs r3, #14 800ada8: 617b str r3, [r7, #20] sFilterConfig.FilterMode = CAN_FILTERMODE_IDMASK; 800adaa: 2300 movs r3, #0 800adac: 61bb str r3, [r7, #24] sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT; 800adae: 2301 movs r3, #1 800adb0: 61fb str r3, [r7, #28] sFilterConfig.FilterIdHigh = 0x0000; 800adb2: 2300 movs r3, #0 800adb4: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = 0x0000; 800adb6: 2300 movs r3, #0 800adb8: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; 800adba: 2300 movs r3, #0 800adbc: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = 0x0000; 800adbe: 2300 movs r3, #0 800adc0: 60fb str r3, [r7, #12] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0; 800adc2: 2300 movs r3, #0 800adc4: 613b str r3, [r7, #16] sFilterConfig.FilterActivation = ENABLE; 800adc6: 2301 movs r3, #1 800adc8: 623b str r3, [r7, #32] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO1; 800adca: 2301 movs r3, #1 800adcc: 613b str r3, [r7, #16] sFilterConfig.SlaveStartFilterBank = 14; 800adce: 230e movs r3, #14 800add0: 627b str r3, [r7, #36] @ 0x24 if(HAL_CAN_ConfigFilter(&hcan2, &sFilterConfig) != HAL_OK) 800add2: 463b mov r3, r7 800add4: 4619 mov r1, r3 800add6: 4806 ldr r0, [pc, #24] @ (800adf0 ) 800add8: f003 fe70 bl 800eabc 800addc: 4603 mov r3, r0 800adde: 2b00 cmp r3, #0 800ade0: d001 beq.n 800ade6 { Error_Handler(); 800ade2: f7ff fead bl 800ab40 } } 800ade6: bf00 nop 800ade8: 3728 adds r7, #40 @ 0x28 800adea: 46bd mov sp, r7 800adec: bd80 pop {r7, pc} 800adee: bf00 nop 800adf0: 2000036c .word 0x2000036c 0800adf4 : void PSU_Init(){ 800adf4: b580 push {r7, lr} 800adf6: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan2); 800adf8: 4813 ldr r0, [pc, #76] @ (800ae48 ) 800adfa: f003 ff83 bl 800ed04 MX_CAN2_Init(); 800adfe: f7fe fed5 bl 8009bac PSU_CAN_FilterInit(); 800ae02: f7ff ffcd bl 800ada0 HAL_CAN_Start(&hcan2); 800ae06: 4810 ldr r0, [pc, #64] @ (800ae48 ) 800ae08: f003 ff38 bl 800ec7c 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*/); 800ae0c: 2110 movs r1, #16 800ae0e: 480e ldr r0, [pc, #56] @ (800ae48 ) 800ae10: f004 f9e5 bl 800f1de memset(&PSU0, 0, sizeof(PSU0)); 800ae14: 2224 movs r2, #36 @ 0x24 800ae16: 2100 movs r1, #0 800ae18: 480c ldr r0, [pc, #48] @ (800ae4c ) 800ae1a: f009 fb79 bl 8014510 PSU0.state = PSU_UNREADY; 800ae1e: 4b0b ldr r3, [pc, #44] @ (800ae4c ) 800ae20: 2200 movs r2, #0 800ae22: 71da strb r2, [r3, #7] PSU0.statetick = HAL_GetTick(); 800ae24: f002 ffe0 bl 800dde8 800ae28: 4603 mov r3, r0 800ae2a: 4a08 ldr r2, [pc, #32] @ (800ae4c ) 800ae2c: 6113 str r3, [r2, #16] PSU0.power_limit = PSU_MAX_POWER; // kW 800ae2e: 4b07 ldr r3, [pc, #28] @ (800ae4c ) 800ae30: f247 5230 movw r2, #30000 @ 0x7530 800ae34: 615a str r2, [r3, #20] PSU0.hv_mode = 0; 800ae36: 4b05 ldr r3, [pc, #20] @ (800ae4c ) 800ae38: 2200 movs r2, #0 800ae3a: 761a strb r2, [r3, #24] PSU_Enable(0, 0); 800ae3c: 2100 movs r1, #0 800ae3e: 2000 movs r0, #0 800ae40: f000 f806 bl 800ae50 } 800ae44: bf00 nop 800ae46: bd80 pop {r7, pc} 800ae48: 2000036c .word 0x2000036c 800ae4c: 200008e4 .word 0x200008e4 0800ae50 : void PSU_Enable(uint8_t addr, uint8_t enable){ 800ae50: b580 push {r7, lr} 800ae52: b084 sub sp, #16 800ae54: af00 add r7, sp, #0 800ae56: 4603 mov r3, r0 800ae58: 460a mov r2, r1 800ae5a: 71fb strb r3, [r7, #7] 800ae5c: 4613 mov r3, r2 800ae5e: 71bb strb r3, [r7, #6] PSU_1A_t data; memset(&data, 0, sizeof(data)); 800ae60: f107 0308 add.w r3, r7, #8 800ae64: 2208 movs r2, #8 800ae66: 2100 movs r1, #0 800ae68: 4618 mov r0, r3 800ae6a: f009 fb51 bl 8014510 /* Для DC30 поддерживается только один модуль с адресом 0 */ if(addr != 0) return; 800ae6e: 79fb ldrb r3, [r7, #7] 800ae70: 2b00 cmp r3, #0 800ae72: d115 bne.n 800aea0 if(PSU0.online == 0) return; 800ae74: 4b0d ldr r3, [pc, #52] @ (800aeac ) 800ae76: 7a1b ldrb r3, [r3, #8] 800ae78: 2b00 cmp r3, #0 800ae7a: d013 beq.n 800aea4 data.enable = !enable; 800ae7c: 79bb ldrb r3, [r7, #6] 800ae7e: 2b00 cmp r3, #0 800ae80: bf0c ite eq 800ae82: 2301 moveq r3, #1 800ae84: 2300 movne r3, #0 800ae86: b2db uxtb r3, r3 800ae88: 723b strb r3, [r7, #8] PSU_SendCmd(0xF0, addr, 0x1A, &data); 800ae8a: 79f9 ldrb r1, [r7, #7] 800ae8c: f107 0308 add.w r3, r7, #8 800ae90: 221a movs r2, #26 800ae92: 20f0 movs r0, #240 @ 0xf0 800ae94: f000 f866 bl 800af64 ED_Delay(CAN_DELAY); 800ae98: 2014 movs r0, #20 800ae9a: f7ff fd09 bl 800a8b0 800ae9e: e002 b.n 800aea6 if(addr != 0) return; 800aea0: bf00 nop 800aea2: e000 b.n 800aea6 if(PSU0.online == 0) return; 800aea4: bf00 nop } 800aea6: 3710 adds r7, #16 800aea8: 46bd mov sp, r7 800aeaa: bd80 pop {r7, pc} 800aeac: 200008e4 .word 0x200008e4 0800aeb0 : 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){ 800aeb0: b580 push {r7, lr} 800aeb2: b086 sub sp, #24 800aeb4: af00 add r7, sp, #0 800aeb6: 4603 mov r3, r0 800aeb8: 71fb strb r3, [r7, #7] 800aeba: 460b mov r3, r1 800aebc: 80bb strh r3, [r7, #4] 800aebe: 4613 mov r3, r2 800aec0: 807b strh r3, [r7, #2] PSU_1C_t data; memset(&data, 0, sizeof(data)); 800aec2: f107 0308 add.w r3, r7, #8 800aec6: 2208 movs r2, #8 800aec8: 2100 movs r1, #0 800aeca: 4618 mov r0, r3 800aecc: f009 fb20 bl 8014510 if(addr != 0) return; 800aed0: 79fb ldrb r3, [r7, #7] 800aed2: 2b00 cmp r3, #0 800aed4: d140 bne.n 800af58 if(voltage 800aedc: 2396 movs r3, #150 @ 0x96 800aede: 80bb strh r3, [r7, #4] if((PSU0.hv_mode==0) && voltage>499) voltage = 499; 800aee0: 4b1f ldr r3, [pc, #124] @ (800af60 ) 800aee2: 7e1b ldrb r3, [r3, #24] 800aee4: 2b00 cmp r3, #0 800aee6: d106 bne.n 800aef6 800aee8: 88bb ldrh r3, [r7, #4] 800aeea: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800aeee: d302 bcc.n 800aef6 800aef0: f240 13f3 movw r3, #499 @ 0x1f3 800aef4: 80bb strh r3, [r7, #4] uint32_t current_ma = current * 100; 800aef6: 887b ldrh r3, [r7, #2] 800aef8: 2264 movs r2, #100 @ 0x64 800aefa: fb02 f303 mul.w r3, r2, r3 800aefe: 617b str r3, [r7, #20] uint32_t voltage_mv = voltage * 1000; 800af00: 88bb ldrh r3, [r7, #4] 800af02: f44f 727a mov.w r2, #1000 @ 0x3e8 800af06: fb02 f303 mul.w r3, r2, r3 800af0a: 613b str r3, [r7, #16] data.moduleCurrentTotal[0] = (current_ma >> 24) & 0xFF; 800af0c: 697b ldr r3, [r7, #20] 800af0e: 0e1b lsrs r3, r3, #24 800af10: b2db uxtb r3, r3 800af12: 733b strb r3, [r7, #12] data.moduleCurrentTotal[1] = (current_ma >> 16) & 0xFF; 800af14: 697b ldr r3, [r7, #20] 800af16: 0c1b lsrs r3, r3, #16 800af18: b2db uxtb r3, r3 800af1a: 737b strb r3, [r7, #13] data.moduleCurrentTotal[2] = (current_ma >> 8) & 0xFF; 800af1c: 697b ldr r3, [r7, #20] 800af1e: 0a1b lsrs r3, r3, #8 800af20: b2db uxtb r3, r3 800af22: 73bb strb r3, [r7, #14] data.moduleCurrentTotal[3] = (current_ma >> 0) & 0xFF; 800af24: 697b ldr r3, [r7, #20] 800af26: b2db uxtb r3, r3 800af28: 73fb strb r3, [r7, #15] data.moduleVoltage[0] = (voltage_mv >> 24) & 0xFF; 800af2a: 693b ldr r3, [r7, #16] 800af2c: 0e1b lsrs r3, r3, #24 800af2e: b2db uxtb r3, r3 800af30: 723b strb r3, [r7, #8] data.moduleVoltage[1] = (voltage_mv >> 16) & 0xFF; 800af32: 693b ldr r3, [r7, #16] 800af34: 0c1b lsrs r3, r3, #16 800af36: b2db uxtb r3, r3 800af38: 727b strb r3, [r7, #9] data.moduleVoltage[2] = (voltage_mv >> 8) & 0xFF; 800af3a: 693b ldr r3, [r7, #16] 800af3c: 0a1b lsrs r3, r3, #8 800af3e: b2db uxtb r3, r3 800af40: 72bb strb r3, [r7, #10] data.moduleVoltage[3] = (voltage_mv >> 0) & 0xFF; 800af42: 693b ldr r3, [r7, #16] 800af44: b2db uxtb r3, r3 800af46: 72fb strb r3, [r7, #11] PSU_SendCmd(0xF0, addr, 0x1C, &data); 800af48: 79f9 ldrb r1, [r7, #7] 800af4a: f107 0308 add.w r3, r7, #8 800af4e: 221c movs r2, #28 800af50: 20f0 movs r0, #240 @ 0xf0 800af52: f000 f807 bl 800af64 800af56: e000 b.n 800af5a if(addr != 0) return; 800af58: bf00 nop } 800af5a: 3718 adds r7, #24 800af5c: 46bd mov sp, r7 800af5e: bd80 pop {r7, pc} 800af60: 200008e4 .word 0x200008e4 0800af64 : void PSU_SendCmd(uint8_t source, uint8_t destination, uint8_t cmd, void *data){ 800af64: b580 push {r7, lr} 800af66: b08c sub sp, #48 @ 0x30 800af68: af00 add r7, sp, #0 800af6a: 603b str r3, [r7, #0] 800af6c: 4603 mov r3, r0 800af6e: 71fb strb r3, [r7, #7] 800af70: 460b mov r3, r1 800af72: 71bb strb r3, [r7, #6] 800af74: 4613 mov r3, r2 800af76: 717b strb r3, [r7, #5] CanId_t CanId; CanId.source = source; 800af78: 79fb ldrb r3, [r7, #7] 800af7a: f887 3028 strb.w r3, [r7, #40] @ 0x28 CanId.destination = destination; 800af7e: 79bb ldrb r3, [r7, #6] 800af80: f887 3029 strb.w r3, [r7, #41] @ 0x29 CanId.command = cmd; 800af84: 797b ldrb r3, [r7, #5] 800af86: f003 033f and.w r3, r3, #63 @ 0x3f 800af8a: b2da uxtb r2, r3 800af8c: f897 302a ldrb.w r3, [r7, #42] @ 0x2a 800af90: f362 0305 bfi r3, r2, #0, #6 800af94: f887 302a strb.w r3, [r7, #42] @ 0x2a CanId.device = 0x0A; 800af98: 8d7b ldrh r3, [r7, #42] @ 0x2a 800af9a: 220a movs r2, #10 800af9c: f362 1389 bfi r3, r2, #6, #4 800afa0: 857b strh r3, [r7, #42] @ 0x2a int8_t retry_counter = 10; 800afa2: 230a movs r3, #10 800afa4: 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)); 800afa8: 6abb ldr r3, [r7, #40] @ 0x28 800afaa: 617b str r3, [r7, #20] tx_header.RTR = CAN_RTR_DATA; 800afac: 2300 movs r3, #0 800afae: 61fb str r3, [r7, #28] tx_header.IDE = CAN_ID_EXT; 800afb0: 2304 movs r3, #4 800afb2: 61bb str r3, [r7, #24] tx_header.DLC = 8; 800afb4: 2308 movs r3, #8 800afb6: 623b str r3, [r7, #32] while(retry_counter>0){ //если буфер полон, ждем пока он освободится 800afb8: e01e b.n 800aff8 if (HAL_CAN_GetTxMailboxesFreeLevel(&hcan2) > 0){ 800afba: 4814 ldr r0, [pc, #80] @ (800b00c ) 800afbc: f003 ffba bl 800ef34 800afc0: 4603 mov r3, r0 800afc2: 2b00 cmp r3, #0 800afc4: d00e beq.n 800afe4 /* отправка сообщения */ CAN_result = HAL_CAN_AddTxMessage(&hcan2, &tx_header, (uint8_t*)data, &tx_mailbox); 800afc6: f107 030c add.w r3, r7, #12 800afca: f107 0110 add.w r1, r7, #16 800afce: 683a ldr r2, [r7, #0] 800afd0: 480e ldr r0, [pc, #56] @ (800b00c ) 800afd2: f003 fee0 bl 800ed96 800afd6: 4603 mov r3, r0 800afd8: f887 302e strb.w r3, [r7, #46] @ 0x2e /* если отправка удалась, выход */ if(CAN_result == HAL_OK) { 800afdc: f897 302e ldrb.w r3, [r7, #46] @ 0x2e 800afe0: 2b00 cmp r3, #0 800afe2: d00e beq.n 800b002 return; retry_counter = 0; } } ED_Delay(1); 800afe4: 2001 movs r0, #1 800afe6: f7ff fc63 bl 800a8b0 retry_counter--; 800afea: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f 800afee: b2db uxtb r3, r3 800aff0: 3b01 subs r3, #1 800aff2: b2db uxtb r3, r3 800aff4: f887 302f strb.w r3, [r7, #47] @ 0x2f while(retry_counter>0){ //если буфер полон, ждем пока он освободится 800aff8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f 800affc: 2b00 cmp r3, #0 800affe: dcdc bgt.n 800afba 800b000: e000 b.n 800b004 return; 800b002: bf00 nop } } 800b004: 3730 adds r7, #48 @ 0x30 800b006: 46bd mov sp, r7 800b008: bd80 pop {r7, pc} 800b00a: bf00 nop 800b00c: 2000036c .word 0x2000036c 0800b010 : uint32_t max(uint32_t a, uint32_t b){ if(a>b) return a; else return b; } void PSU_ReadWrite(){ 800b010: b580 push {r7, lr} 800b012: b082 sub sp, #8 800b014: af00 add r7, sp, #0 uint8_t zero_data[8] = {0,0,0,0,0,0,0,0}; 800b016: 463b mov r3, r7 800b018: 2200 movs r2, #0 800b01a: 601a str r2, [r3, #0] 800b01c: 605a str r2, [r3, #4] PSU_SendCmd(0xF0, 0, 0x04, zero_data);ED_Delay(CAN_DELAY); 800b01e: 463b mov r3, r7 800b020: 2204 movs r2, #4 800b022: 2100 movs r1, #0 800b024: 20f0 movs r0, #240 @ 0xf0 800b026: f7ff ff9d bl 800af64 800b02a: 2014 movs r0, #20 800b02c: f7ff fc40 bl 800a8b0 PSU_SendCmd(0xF0, 0, 0x06, zero_data);ED_Delay(CAN_DELAY); 800b030: 463b mov r3, r7 800b032: 2206 movs r2, #6 800b034: 2100 movs r1, #0 800b036: 20f0 movs r0, #240 @ 0xf0 800b038: f7ff ff94 bl 800af64 800b03c: 2014 movs r0, #20 800b03e: f7ff fc37 bl 800a8b0 // PSU_SendCmd(0xF0, 0, 0x08, zero_data);ED_Delay(CAN_DELAY); PSU_SendCmd(0xF0, 0, 0x09, zero_data);ED_Delay(CAN_DELAY); 800b042: 463b mov r3, r7 800b044: 2209 movs r2, #9 800b046: 2100 movs r1, #0 800b048: 20f0 movs r0, #240 @ 0xf0 800b04a: f7ff ff8b bl 800af64 800b04e: 2014 movs r0, #20 800b050: f7ff fc2e bl 800a8b0 // Power Limit if ((CONN.WantedCurrent/10) * CONN.MeasuredVoltage > PSU0.power_limit){ 800b054: 4b41 ldr r3, [pc, #260] @ (800b15c ) 800b056: f8b3 301b ldrh.w r3, [r3, #27] 800b05a: b29b uxth r3, r3 800b05c: 4a40 ldr r2, [pc, #256] @ (800b160 ) 800b05e: fba2 2303 umull r2, r3, r2, r3 800b062: 08db lsrs r3, r3, #3 800b064: b29b uxth r3, r3 800b066: 461a mov r2, r3 800b068: 4b3c ldr r3, [pc, #240] @ (800b15c ) 800b06a: f8b3 3013 ldrh.w r3, [r3, #19] 800b06e: b29b uxth r3, r3 800b070: fb02 f303 mul.w r3, r2, r3 800b074: 461a mov r2, r3 800b076: 4b3b ldr r3, [pc, #236] @ (800b164 ) 800b078: 695b ldr r3, [r3, #20] 800b07a: 429a cmp r2, r3 800b07c: d911 bls.n 800b0a2 CONN.RequestedCurrent = PSU0.power_limit * 10 / CONN.MeasuredVoltage; 800b07e: 4b39 ldr r3, [pc, #228] @ (800b164 ) 800b080: 695a ldr r2, [r3, #20] 800b082: 4613 mov r3, r2 800b084: 009b lsls r3, r3, #2 800b086: 4413 add r3, r2 800b088: 005b lsls r3, r3, #1 800b08a: 461a mov r2, r3 800b08c: 4b33 ldr r3, [pc, #204] @ (800b15c ) 800b08e: f8b3 3013 ldrh.w r3, [r3, #19] 800b092: b29b uxth r3, r3 800b094: fbb2 f3f3 udiv r3, r2, r3 800b098: b29a uxth r2, r3 800b09a: 4b30 ldr r3, [pc, #192] @ (800b15c ) 800b09c: f8a3 2011 strh.w r2, [r3, #17] 800b0a0: e006 b.n 800b0b0 }else{ CONN.RequestedCurrent = CONN.WantedCurrent; 800b0a2: 4b2e ldr r3, [pc, #184] @ (800b15c ) 800b0a4: f8b3 301b ldrh.w r3, [r3, #27] 800b0a8: b29a uxth r2, r3 800b0aa: 4b2c ldr r3, [pc, #176] @ (800b15c ) 800b0ac: f8a3 2011 strh.w r2, [r3, #17] } if(CONN.RequestedCurrent > (PSU_MAX_CURRENT*10)){ 800b0b0: 4b2a ldr r3, [pc, #168] @ (800b15c ) 800b0b2: f8b3 3011 ldrh.w r3, [r3, #17] 800b0b6: b29b uxth r3, r3 800b0b8: f240 5232 movw r2, #1330 @ 0x532 800b0bc: 4293 cmp r3, r2 800b0be: d908 bls.n 800b0d2 CONN.RequestedCurrent = PSU_MAX_CURRENT*10; 800b0c0: 4b26 ldr r3, [pc, #152] @ (800b15c ) 800b0c2: 2200 movs r2, #0 800b0c4: f042 0232 orr.w r2, r2, #50 @ 0x32 800b0c8: 745a strb r2, [r3, #17] 800b0ca: 2200 movs r2, #0 800b0cc: f042 0205 orr.w r2, r2, #5 800b0d0: 749a strb r2, [r3, #18] } CONN.RequestedPower = CONN.RequestedCurrent * CONN.RequestedVoltage / 10; 800b0d2: 4b22 ldr r3, [pc, #136] @ (800b15c ) 800b0d4: f8b3 3011 ldrh.w r3, [r3, #17] 800b0d8: b29b uxth r3, r3 800b0da: 461a mov r2, r3 800b0dc: 4b1f ldr r3, [pc, #124] @ (800b15c ) 800b0de: f8b3 300f ldrh.w r3, [r3, #15] 800b0e2: b29b uxth r3, r3 800b0e4: fb02 f303 mul.w r3, r2, r3 800b0e8: 4a1f ldr r2, [pc, #124] @ (800b168 ) 800b0ea: fb82 1203 smull r1, r2, r2, r3 800b0ee: 1092 asrs r2, r2, #2 800b0f0: 17db asrs r3, r3, #31 800b0f2: 1ad3 subs r3, r2, r3 800b0f4: 461a mov r2, r3 800b0f6: 4b19 ldr r3, [pc, #100] @ (800b15c ) 800b0f8: f8c3 200b str.w r2, [r3, #11] if(PSU0.ready){ 800b0fc: 4b19 ldr r3, [pc, #100] @ (800b164 ) 800b0fe: 7a5b ldrb r3, [r3, #9] 800b100: 2b00 cmp r3, #0 800b102: d026 beq.n 800b152 if (CONN.RequestedVoltage == 500) { // fake 800b104: 4b15 ldr r3, [pc, #84] @ (800b15c ) 800b106: f8b3 300f ldrh.w r3, [r3, #15] 800b10a: b29b uxth r3, r3 800b10c: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800b110: d106 bne.n 800b120 PSU_SetVoltageCurrent(0, 300, 10); // Normal mode 800b112: 220a movs r2, #10 800b114: f44f 7196 mov.w r1, #300 @ 0x12c 800b118: 2000 movs r0, #0 800b11a: f7ff fec9 bl 800aeb0 800b11e: e00b b.n 800b138 }else{ PSU_SetVoltageCurrent(0, CONN.RequestedVoltage, CONN.RequestedCurrent); // Normal mode 800b120: 4b0e ldr r3, [pc, #56] @ (800b15c ) 800b122: f8b3 300f ldrh.w r3, [r3, #15] 800b126: b29b uxth r3, r3 800b128: 4a0c ldr r2, [pc, #48] @ (800b15c ) 800b12a: f8b2 2011 ldrh.w r2, [r2, #17] 800b12e: b292 uxth r2, r2 800b130: 4619 mov r1, r3 800b132: 2000 movs r0, #0 800b134: f7ff febc bl 800aeb0 } ED_Delay(CAN_DELAY); 800b138: 2014 movs r0, #20 800b13a: f7ff fbb9 bl 800a8b0 if(CONN.MeasuredVoltage>490) PSU0.hv_mode = 1; 800b13e: 4b07 ldr r3, [pc, #28] @ (800b15c ) 800b140: f8b3 3013 ldrh.w r3, [r3, #19] 800b144: b29b uxth r3, r3 800b146: f5b3 7ff5 cmp.w r3, #490 @ 0x1ea 800b14a: d902 bls.n 800b152 800b14c: 4b05 ldr r3, [pc, #20] @ (800b164 ) 800b14e: 2201 movs r2, #1 800b150: 761a strb r2, [r3, #24] } // PSU_SetHVMode(0, PSU0.hv_mode); // auto set, no need // ED_Delay(CAN_DELAY); } 800b152: bf00 nop 800b154: 3708 adds r7, #8 800b156: 46bd mov sp, r7 800b158: bd80 pop {r7, pc} 800b15a: bf00 nop 800b15c: 20000398 .word 0x20000398 800b160: cccccccd .word 0xcccccccd 800b164: 200008e4 .word 0x200008e4 800b168: 66666667 .word 0x66666667 0800b16c : void PSU_Task(void){ 800b16c: b598 push {r3, r4, r7, lr} 800b16e: 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){ 800b170: f002 fe3a bl 800dde8 800b174: 4602 mov r2, r0 800b176: 4bb4 ldr r3, [pc, #720] @ (800b448 ) 800b178: 681b ldr r3, [r3, #0] 800b17a: 1ad3 subs r3, r2, r3 800b17c: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800b180: d920 bls.n 800b1c4 PSU0.online = 0; 800b182: 4bb2 ldr r3, [pc, #712] @ (800b44c ) 800b184: 2200 movs r2, #0 800b186: 721a strb r2, [r3, #8] PSU0.PSU_enabled = 0; 800b188: 4bb0 ldr r3, [pc, #704] @ (800b44c ) 800b18a: 2200 movs r2, #0 800b18c: 729a strb r2, [r3, #10] PSU_04.moduleTemperature = 0; 800b18e: 4bb0 ldr r3, [pc, #704] @ (800b450 ) 800b190: 2200 movs r2, #0 800b192: 711a strb r2, [r3, #4] PSU_04.modularForm0 = 0; 800b194: 4bae ldr r3, [pc, #696] @ (800b450 ) 800b196: 2200 movs r2, #0 800b198: 721a strb r2, [r3, #8] PSU_04.modularForm1 = 0; 800b19a: 4bad ldr r3, [pc, #692] @ (800b450 ) 800b19c: 2200 movs r2, #0 800b19e: 71da strb r2, [r3, #7] PSU_04.modularForm2 = 0; 800b1a0: 4bab ldr r3, [pc, #684] @ (800b450 ) 800b1a2: 2200 movs r2, #0 800b1a4: 719a strb r2, [r3, #6] PSU_06.VAB = 0; 800b1a6: 4bab ldr r3, [pc, #684] @ (800b454 ) 800b1a8: 2200 movs r2, #0 800b1aa: 609a str r2, [r3, #8] PSU_06.VBC = 0; 800b1ac: 4ba9 ldr r3, [pc, #676] @ (800b454 ) 800b1ae: 2200 movs r2, #0 800b1b0: 60da str r2, [r3, #12] PSU_06.VCA = 0; 800b1b2: 4ba8 ldr r3, [pc, #672] @ (800b454 ) 800b1b4: 2200 movs r2, #0 800b1b6: 611a str r2, [r3, #16] PSU_09.moduleNCurrent = 0; 800b1b8: 4ba7 ldr r3, [pc, #668] @ (800b458 ) 800b1ba: 2200 movs r2, #0 800b1bc: 60da str r2, [r3, #12] PSU_09.moduleNVoltage = 0; 800b1be: 4ba6 ldr r3, [pc, #664] @ (800b458 ) 800b1c0: 2200 movs r2, #0 800b1c2: 609a str r2, [r3, #8] } if(!PSU0.online || !PSU0.enableAC){ 800b1c4: 4ba1 ldr r3, [pc, #644] @ (800b44c ) 800b1c6: 7a1b ldrb r3, [r3, #8] 800b1c8: 2b00 cmp r3, #0 800b1ca: d003 beq.n 800b1d4 800b1cc: 4b9f ldr r3, [pc, #636] @ (800b44c ) 800b1ce: 781b ldrb r3, [r3, #0] 800b1d0: 2b00 cmp r3, #0 800b1d2: d10c bne.n 800b1ee CONN.MeasuredVoltage = 0; 800b1d4: 4ba1 ldr r3, [pc, #644] @ (800b45c ) 800b1d6: 2200 movs r2, #0 800b1d8: 74da strb r2, [r3, #19] 800b1da: 2200 movs r2, #0 800b1dc: 751a strb r2, [r3, #20] CONN.MeasuredCurrent = 0; 800b1de: 4b9f ldr r3, [pc, #636] @ (800b45c ) 800b1e0: 2200 movs r2, #0 800b1e2: 755a strb r2, [r3, #21] 800b1e4: 2200 movs r2, #0 800b1e6: 759a strb r2, [r3, #22] CONN.outputEnabled = 0; 800b1e8: 4b9c ldr r3, [pc, #624] @ (800b45c ) 800b1ea: 2200 movs r2, #0 800b1ec: 761a strb r2, [r3, #24] } // Управление AC-контактором с задержкой отключения 1 минута if(CONN.EvConnected){ 800b1ee: 4b9b ldr r3, [pc, #620] @ (800b45c ) 800b1f0: 7f9b ldrb r3, [r3, #30] 800b1f2: 2b00 cmp r3, #0 800b1f4: d00c beq.n 800b210 RELAY_Write(RELAY_AC, 1); 800b1f6: 2101 movs r1, #1 800b1f8: 2004 movs r0, #4 800b1fa: f7fe fadd bl 80097b8 psu_on_tick = HAL_GetTick(); 800b1fe: f002 fdf3 bl 800dde8 800b202: 4603 mov r3, r0 800b204: 4a96 ldr r2, [pc, #600] @ (800b460 ) 800b206: 6013 str r3, [r2, #0] PSU0.enableAC = 1; 800b208: 4b90 ldr r3, [pc, #576] @ (800b44c ) 800b20a: 2201 movs r2, #1 800b20c: 701a strb r2, [r3, #0] 800b20e: e010 b.n 800b232 }else{ if((HAL_GetTick() - psu_on_tick) > 1 * 60000){ 800b210: f002 fdea bl 800dde8 800b214: 4602 mov r2, r0 800b216: 4b92 ldr r3, [pc, #584] @ (800b460 ) 800b218: 681b ldr r3, [r3, #0] 800b21a: 1ad3 subs r3, r2, r3 800b21c: f64e 2260 movw r2, #60000 @ 0xea60 800b220: 4293 cmp r3, r2 800b222: d906 bls.n 800b232 RELAY_Write(RELAY_AC, 0); 800b224: 2100 movs r1, #0 800b226: 2004 movs r0, #4 800b228: f7fe fac6 bl 80097b8 PSU0.enableAC = 0; 800b22c: 4b87 ldr r3, [pc, #540] @ (800b44c ) 800b22e: 2200 movs r2, #0 800b230: 701a strb r2, [r3, #0] } } // Текущее состояние DC-контактора по обратной связи PSU0.CONT_enabled = IN_ReadInput(IN_CONT_FB_DC); 800b232: 2005 movs r0, #5 800b234: f7fe fb40 bl 80098b8 800b238: 4603 mov r3, r0 800b23a: 461a mov r2, r3 800b23c: 4b83 ldr r3, [pc, #524] @ (800b44c ) 800b23e: 72da strb r2, [r3, #11] // Обновляем ready с учётом ошибок if(PSU0.online && !PSU0.cont_fault && PSU0.enableAC){ 800b240: 4b82 ldr r3, [pc, #520] @ (800b44c ) 800b242: 7a1b ldrb r3, [r3, #8] 800b244: 2b00 cmp r3, #0 800b246: d007 beq.n 800b258 800b248: 4b80 ldr r3, [pc, #512] @ (800b44c ) 800b24a: 7b1b ldrb r3, [r3, #12] 800b24c: 2b00 cmp r3, #0 800b24e: d103 bne.n 800b258 800b250: 4b7e ldr r3, [pc, #504] @ (800b44c ) 800b252: 781b ldrb r3, [r3, #0] 800b254: 2b00 cmp r3, #0 800b256: d102 bne.n 800b25e // PSU0.ready = 1; }else{ PSU0.ready = 0; 800b258: 4b7c ldr r3, [pc, #496] @ (800b44c ) 800b25a: 2200 movs r2, #0 800b25c: 725a strb r2, [r3, #9] } switch(PSU0.state){ 800b25e: 4b7b ldr r3, [pc, #492] @ (800b44c ) 800b260: 79db ldrb r3, [r3, #7] 800b262: 2b09 cmp r3, #9 800b264: f200 8155 bhi.w 800b512 800b268: a201 add r2, pc, #4 @ (adr r2, 800b270 ) 800b26a: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b26e: bf00 nop 800b270: 0800b299 .word 0x0800b299 800b274: 0800b2cd .word 0x0800b2cd 800b278: 0800b2e9 .word 0x0800b2e9 800b27c: 0800b321 .word 0x0800b321 800b280: 0800b36f .word 0x0800b36f 800b284: 0800b3b1 .word 0x0800b3b1 800b288: 0800b41b .word 0x0800b41b 800b28c: 0800b4c5 .word 0x0800b4c5 800b290: 0800b475 .word 0x0800b475 800b294: 0800b4ff .word 0x0800b4ff case PSU_UNREADY: PSU0.enableOutput = 0; 800b298: 4b6c ldr r3, [pc, #432] @ (800b44c ) 800b29a: 2200 movs r2, #0 800b29c: 705a strb r2, [r3, #1] RELAY_Write(RELAY_DC, 0); 800b29e: 2100 movs r1, #0 800b2a0: 2003 movs r0, #3 800b2a2: f7fe fa89 bl 80097b8 if(PSU0.online && PSU0.enableAC && !PSU0.cont_fault){ 800b2a6: 4b69 ldr r3, [pc, #420] @ (800b44c ) 800b2a8: 7a1b ldrb r3, [r3, #8] 800b2aa: 2b00 cmp r3, #0 800b2ac: f000 8135 beq.w 800b51a 800b2b0: 4b66 ldr r3, [pc, #408] @ (800b44c ) 800b2b2: 781b ldrb r3, [r3, #0] 800b2b4: 2b00 cmp r3, #0 800b2b6: f000 8130 beq.w 800b51a 800b2ba: 4b64 ldr r3, [pc, #400] @ (800b44c ) 800b2bc: 7b1b ldrb r3, [r3, #12] 800b2be: 2b00 cmp r3, #0 800b2c0: f040 812b bne.w 800b51a PSU_SwitchState(PSU_INITIALIZING); 800b2c4: 2001 movs r0, #1 800b2c6: f7ff fcab bl 800ac20 } break; 800b2ca: e126 b.n 800b51a case PSU_INITIALIZING: if(PSU_StateTime() > 4000){ // Wait 4s for PSU to initialize 800b2cc: f7ff fcbc bl 800ac48 800b2d0: 4603 mov r3, r0 800b2d2: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800b2d6: f240 8122 bls.w 800b51e PSU0.ready = 1; 800b2da: 4b5c ldr r3, [pc, #368] @ (800b44c ) 800b2dc: 2201 movs r2, #1 800b2de: 725a strb r2, [r3, #9] PSU_SwitchState(PSU_READY); 800b2e0: 2002 movs r0, #2 800b2e2: f7ff fc9d bl 800ac20 } break; 800b2e6: e11a b.n 800b51e case PSU_READY: // модуль готов, но выключен PSU0.hv_mode = 0; 800b2e8: 4b58 ldr r3, [pc, #352] @ (800b44c ) 800b2ea: 2200 movs r2, #0 800b2ec: 761a strb r2, [r3, #24] RELAY_Write(RELAY_DC, 0); 800b2ee: 2100 movs r1, #0 800b2f0: 2003 movs r0, #3 800b2f2: f7fe fa61 bl 80097b8 if(!PSU0.ready){ 800b2f6: 4b55 ldr r3, [pc, #340] @ (800b44c ) 800b2f8: 7a5b ldrb r3, [r3, #9] 800b2fa: 2b00 cmp r3, #0 800b2fc: d103 bne.n 800b306 PSU_SwitchState(PSU_UNREADY); 800b2fe: 2000 movs r0, #0 800b300: f7ff fc8e bl 800ac20 break; 800b304: e11c b.n 800b540 } if(CONN.EnableOutput){ 800b306: 4b55 ldr r3, [pc, #340] @ (800b45c ) 800b308: 7ddb ldrb r3, [r3, #23] 800b30a: 2b00 cmp r3, #0 800b30c: f000 8109 beq.w 800b522 PSU_Enable(0, 1); 800b310: 2101 movs r1, #1 800b312: 2000 movs r0, #0 800b314: f7ff fd9c bl 800ae50 PSU_SwitchState(PSU_WAIT_ACK_ON); 800b318: 2003 movs r0, #3 800b31a: f7ff fc81 bl 800ac20 } break; 800b31e: e100 b.n 800b522 case PSU_WAIT_ACK_ON: if(PSU0.PSU_enabled && PSU0.ready){ 800b320: 4b4a ldr r3, [pc, #296] @ (800b44c ) 800b322: 7a9b ldrb r3, [r3, #10] 800b324: 2b00 cmp r3, #0 800b326: d00c beq.n 800b342 800b328: 4b48 ldr r3, [pc, #288] @ (800b44c ) 800b32a: 7a5b ldrb r3, [r3, #9] 800b32c: 2b00 cmp r3, #0 800b32e: d008 beq.n 800b342 dc_on_tick = HAL_GetTick(); 800b330: f002 fd5a bl 800dde8 800b334: 4603 mov r3, r0 800b336: 4a4b ldr r2, [pc, #300] @ (800b464 ) 800b338: 6013 str r3, [r2, #0] PSU_SwitchState(PSU_CONT_WAIT_ACK_ON); 800b33a: 2004 movs r0, #4 800b33c: f7ff fc70 bl 800ac20 PSU0.psu_fault = 1; CONN.chargingError = CONN_ERR_PSU_FAULT; PSU_SwitchState(PSU_UNREADY); log_printf(LOG_ERR, "PSU on timeout\n"); } break; 800b340: e0f1 b.n 800b526 }else if(PSU_StateTime() > 10000){ 800b342: f7ff fc81 bl 800ac48 800b346: 4603 mov r3, r0 800b348: f242 7210 movw r2, #10000 @ 0x2710 800b34c: 4293 cmp r3, r2 800b34e: f240 80ea bls.w 800b526 PSU0.psu_fault = 1; 800b352: 4b3e ldr r3, [pc, #248] @ (800b44c ) 800b354: 2201 movs r2, #1 800b356: 735a strb r2, [r3, #13] CONN.chargingError = CONN_ERR_PSU_FAULT; 800b358: 4b40 ldr r3, [pc, #256] @ (800b45c ) 800b35a: 220a movs r2, #10 800b35c: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_UNREADY); 800b35e: 2000 movs r0, #0 800b360: f7ff fc5e bl 800ac20 log_printf(LOG_ERR, "PSU on timeout\n"); 800b364: 4940 ldr r1, [pc, #256] @ (800b468 ) 800b366: 2004 movs r0, #4 800b368: f7ff f8dc bl 800a524 break; 800b36c: e0db b.n 800b526 case PSU_CONT_WAIT_ACK_ON: // замыкаем DC-контактор и ждём подтверждение RELAY_Write(RELAY_DC, 1); 800b36e: 2101 movs r1, #1 800b370: 2003 movs r0, #3 800b372: f7fe fa21 bl 80097b8 if(PSU0.CONT_enabled){ 800b376: 4b35 ldr r3, [pc, #212] @ (800b44c ) 800b378: 7adb ldrb r3, [r3, #11] 800b37a: 2b00 cmp r3, #0 800b37c: d003 beq.n 800b386 PSU_SwitchState(PSU_CONNECTED); 800b37e: 2005 movs r0, #5 800b380: f7ff fc4e bl 800ac20 PSU0.cont_fault = 1; CONN.chargingError = CONN_ERR_CONTACTOR; PSU_SwitchState(PSU_CURRENT_DROP); log_printf(LOG_ERR, "Contactor error, stopping...\n"); } break; 800b384: e0d1 b.n 800b52a }else if(PSU_StateTime() > 1000){ 800b386: f7ff fc5f bl 800ac48 800b38a: 4603 mov r3, r0 800b38c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b390: f240 80cb bls.w 800b52a PSU0.cont_fault = 1; 800b394: 4b2d ldr r3, [pc, #180] @ (800b44c ) 800b396: 2201 movs r2, #1 800b398: 731a strb r2, [r3, #12] CONN.chargingError = CONN_ERR_CONTACTOR; 800b39a: 4b30 ldr r3, [pc, #192] @ (800b45c ) 800b39c: 2207 movs r2, #7 800b39e: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_CURRENT_DROP); 800b3a0: 2006 movs r0, #6 800b3a2: f7ff fc3d bl 800ac20 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b3a6: 4931 ldr r1, [pc, #196] @ (800b46c ) 800b3a8: 2004 movs r0, #4 800b3aa: f7ff f8bb bl 800a524 break; 800b3ae: e0bc b.n 800b52a case PSU_CONNECTED: // Основное рабочее состояние if(!CONN.EnableOutput || !PSU0.ready){ 800b3b0: 4b2a ldr r3, [pc, #168] @ (800b45c ) 800b3b2: 7ddb ldrb r3, [r3, #23] 800b3b4: 2b00 cmp r3, #0 800b3b6: d003 beq.n 800b3c0 800b3b8: 4b24 ldr r3, [pc, #144] @ (800b44c ) 800b3ba: 7a5b ldrb r3, [r3, #9] 800b3bc: 2b00 cmp r3, #0 800b3be: d103 bne.n 800b3c8 PSU_SwitchState(PSU_CURRENT_DROP); 800b3c0: 2006 movs r0, #6 800b3c2: f7ff fc2d bl 800ac20 break; 800b3c6: e0bb b.n 800b540 } // контроль контактора: 1 c таймаут if (IN_ReadInput(IN_CONT_FB_DC) != RELAY_Read(RELAY_DC)){ 800b3c8: 2005 movs r0, #5 800b3ca: f7fe fa75 bl 80098b8 800b3ce: 4603 mov r3, r0 800b3d0: 461c mov r4, r3 800b3d2: 2003 movs r0, #3 800b3d4: f7fe fa60 bl 8009898 800b3d8: 4603 mov r3, r0 800b3da: 429c cmp r4, r3 800b3dc: d017 beq.n 800b40e if((HAL_GetTick() - cont_ok_tick) > 1000){ 800b3de: f002 fd03 bl 800dde8 800b3e2: 4602 mov r2, r0 800b3e4: 4b22 ldr r3, [pc, #136] @ (800b470 ) 800b3e6: 681b ldr r3, [r3, #0] 800b3e8: 1ad3 subs r3, r2, r3 800b3ea: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b3ee: f240 809e bls.w 800b52e CONN.chargingError = CONN_ERR_CONTACTOR; 800b3f2: 4b1a ldr r3, [pc, #104] @ (800b45c ) 800b3f4: 2207 movs r2, #7 800b3f6: 775a strb r2, [r3, #29] PSU0.cont_fault = 1; 800b3f8: 4b14 ldr r3, [pc, #80] @ (800b44c ) 800b3fa: 2201 movs r2, #1 800b3fc: 731a strb r2, [r3, #12] PSU_SwitchState(PSU_CURRENT_DROP); 800b3fe: 2006 movs r0, #6 800b400: f7ff fc0e bl 800ac20 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b404: 4919 ldr r1, [pc, #100] @ (800b46c ) 800b406: 2004 movs r0, #4 800b408: f7ff f88c bl 800a524 } }else{ cont_ok_tick = HAL_GetTick(); } break; 800b40c: e08f b.n 800b52e cont_ok_tick = HAL_GetTick(); 800b40e: f002 fceb bl 800dde8 800b412: 4603 mov r3, r0 800b414: 4a16 ldr r2, [pc, #88] @ (800b470 ) 800b416: 6013 str r3, [r2, #0] break; 800b418: e089 b.n 800b52e case PSU_CURRENT_DROP: // снижаем ток до нуля перед отключением DC CONN.RequestedCurrent = 0; 800b41a: 4b10 ldr r3, [pc, #64] @ (800b45c ) 800b41c: 2200 movs r2, #0 800b41e: 745a strb r2, [r3, #17] 800b420: 2200 movs r2, #0 800b422: 749a strb r2, [r3, #18] // если ток действительно упал или вышло время, отключаем DC if((CONN.MeasuredCurrent < 30) || (PSU_StateTime() > 5000)){ 800b424: 4b0d ldr r3, [pc, #52] @ (800b45c ) 800b426: f8b3 3015 ldrh.w r3, [r3, #21] 800b42a: b29b uxth r3, r3 800b42c: 2b1d cmp r3, #29 800b42e: d906 bls.n 800b43e 800b430: f7ff fc0a bl 800ac48 800b434: 4603 mov r3, r0 800b436: f241 3288 movw r2, #5000 @ 0x1388 800b43a: 4293 cmp r3, r2 800b43c: d979 bls.n 800b532 PSU_SwitchState(PSU_CONT_WAIT_ACK_OFF); 800b43e: 2008 movs r0, #8 800b440: f7ff fbee bl 800ac20 } break; 800b444: e075 b.n 800b532 800b446: bf00 nop 800b448: 20000908 .word 0x20000908 800b44c: 200008e4 .word 0x200008e4 800b450: 200008ac .word 0x200008ac 800b454: 200008b8 .word 0x200008b8 800b458: 200008d4 .word 0x200008d4 800b45c: 20000398 .word 0x20000398 800b460: 20000930 .word 0x20000930 800b464: 20000934 .word 0x20000934 800b468: 080169a0 .word 0x080169a0 800b46c: 080169b0 .word 0x080169b0 800b470: 20000938 .word 0x20000938 case PSU_CONT_WAIT_ACK_OFF: RELAY_Write(RELAY_DC, 0); 800b474: 2100 movs r1, #0 800b476: 2003 movs r0, #3 800b478: f7fe f99e bl 80097b8 if(!PSU0.CONT_enabled){ 800b47c: 4b31 ldr r3, [pc, #196] @ (800b544 ) 800b47e: 7adb ldrb r3, [r3, #11] 800b480: 2b00 cmp r3, #0 800b482: d107 bne.n 800b494 PSU_Enable(0, 0); 800b484: 2100 movs r1, #0 800b486: 2000 movs r0, #0 800b488: f7ff fce2 bl 800ae50 PSU_SwitchState(PSU_WAIT_ACK_OFF); 800b48c: 2007 movs r0, #7 800b48e: f7ff fbc7 bl 800ac20 CONN.chargingError = CONN_ERR_CONTACTOR; PSU_Enable(0, 0); PSU_SwitchState(PSU_WAIT_ACK_OFF); log_printf(LOG_ERR, "Contactor error, stopping...\n"); } break; 800b492: e050 b.n 800b536 }else if(PSU_StateTime() > 1000){ 800b494: f7ff fbd8 bl 800ac48 800b498: 4603 mov r3, r0 800b49a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b49e: d94a bls.n 800b536 PSU0.cont_fault = 1; 800b4a0: 4b28 ldr r3, [pc, #160] @ (800b544 ) 800b4a2: 2201 movs r2, #1 800b4a4: 731a strb r2, [r3, #12] CONN.chargingError = CONN_ERR_CONTACTOR; 800b4a6: 4b28 ldr r3, [pc, #160] @ (800b548 ) 800b4a8: 2207 movs r2, #7 800b4aa: 775a strb r2, [r3, #29] PSU_Enable(0, 0); 800b4ac: 2100 movs r1, #0 800b4ae: 2000 movs r0, #0 800b4b0: f7ff fcce bl 800ae50 PSU_SwitchState(PSU_WAIT_ACK_OFF); 800b4b4: 2007 movs r0, #7 800b4b6: f7ff fbb3 bl 800ac20 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b4ba: 4924 ldr r1, [pc, #144] @ (800b54c ) 800b4bc: 2004 movs r0, #4 800b4be: f7ff f831 bl 800a524 break; 800b4c2: e038 b.n 800b536 case PSU_WAIT_ACK_OFF: if(!PSU0.PSU_enabled){ 800b4c4: 4b1f ldr r3, [pc, #124] @ (800b544 ) 800b4c6: 7a9b ldrb r3, [r3, #10] 800b4c8: 2b00 cmp r3, #0 800b4ca: d103 bne.n 800b4d4 PSU_SwitchState(PSU_OFF_PAUSE); 800b4cc: 2009 movs r0, #9 800b4ce: f7ff fba7 bl 800ac20 PSU0.psu_fault = 1; CONN.chargingError = CONN_ERR_PSU_FAULT; PSU_SwitchState(PSU_UNREADY); log_printf(LOG_ERR, "PSU off timeout\n"); } break; 800b4d2: e032 b.n 800b53a }else if(PSU_StateTime() > 10000){ 800b4d4: f7ff fbb8 bl 800ac48 800b4d8: 4603 mov r3, r0 800b4da: f242 7210 movw r2, #10000 @ 0x2710 800b4de: 4293 cmp r3, r2 800b4e0: d92b bls.n 800b53a PSU0.psu_fault = 1; 800b4e2: 4b18 ldr r3, [pc, #96] @ (800b544 ) 800b4e4: 2201 movs r2, #1 800b4e6: 735a strb r2, [r3, #13] CONN.chargingError = CONN_ERR_PSU_FAULT; 800b4e8: 4b17 ldr r3, [pc, #92] @ (800b548 ) 800b4ea: 220a movs r2, #10 800b4ec: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_UNREADY); 800b4ee: 2000 movs r0, #0 800b4f0: f7ff fb96 bl 800ac20 log_printf(LOG_ERR, "PSU off timeout\n"); 800b4f4: 4916 ldr r1, [pc, #88] @ (800b550 ) 800b4f6: 2004 movs r0, #4 800b4f8: f7ff f814 bl 800a524 break; 800b4fc: e01d b.n 800b53a case PSU_OFF_PAUSE: if(PSU_StateTime() > 4000){ 800b4fe: f7ff fba3 bl 800ac48 800b502: 4603 mov r3, r0 800b504: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800b508: d919 bls.n 800b53e PSU_SwitchState(PSU_READY); 800b50a: 2002 movs r0, #2 800b50c: f7ff fb88 bl 800ac20 } break; 800b510: e015 b.n 800b53e default: PSU_SwitchState(PSU_UNREADY); 800b512: 2000 movs r0, #0 800b514: f7ff fb84 bl 800ac20 break; 800b518: e012 b.n 800b540 break; 800b51a: bf00 nop 800b51c: e010 b.n 800b540 break; 800b51e: bf00 nop 800b520: e00e b.n 800b540 break; 800b522: bf00 nop 800b524: e00c b.n 800b540 break; 800b526: bf00 nop 800b528: e00a b.n 800b540 break; 800b52a: bf00 nop 800b52c: e008 b.n 800b540 break; 800b52e: bf00 nop 800b530: e006 b.n 800b540 break; 800b532: bf00 nop 800b534: e004 b.n 800b540 break; 800b536: bf00 nop 800b538: e002 b.n 800b540 break; 800b53a: bf00 nop 800b53c: e000 b.n 800b540 break; 800b53e: bf00 nop } } 800b540: bf00 nop 800b542: bd98 pop {r3, r4, r7, pc} 800b544: 200008e4 .word 0x200008e4 800b548: 20000398 .word 0x20000398 800b54c: 080169b0 .word 0x080169b0 800b550: 080169d0 .word 0x080169d0 0800b554 : .Th = 10, .Tf = 50, .Tl = 0, }; void LED_Write(){ 800b554: b580 push {r7, lr} 800b556: af00 add r7, sp, #0 if(CONN.chargingError != CONN_NO_ERROR){ 800b558: 4b34 ldr r3, [pc, #208] @ (800b62c ) 800b55a: 7f5b ldrb r3, [r3, #29] 800b55c: 2b00 cmp r3, #0 800b55e: d003 beq.n 800b568 LED_SetColor(&color_error); 800b560: 4833 ldr r0, [pc, #204] @ (800b630 ) 800b562: f000 f91f bl 800b7a4 return; 800b566: e05f b.n 800b628 } switch(CONN.connState){ 800b568: 4b30 ldr r3, [pc, #192] @ (800b62c ) 800b56a: 785b ldrb r3, [r3, #1] 800b56c: 2b0d cmp r3, #13 800b56e: d857 bhi.n 800b620 800b570: a201 add r2, pc, #4 @ (adr r2, 800b578 ) 800b572: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b576: bf00 nop 800b578: 0800b5b1 .word 0x0800b5b1 800b57c: 0800b5b9 .word 0x0800b5b9 800b580: 0800b5c1 .word 0x0800b5c1 800b584: 0800b5c9 .word 0x0800b5c9 800b588: 0800b5d1 .word 0x0800b5d1 800b58c: 0800b5d9 .word 0x0800b5d9 800b590: 0800b5e1 .word 0x0800b5e1 800b594: 0800b5e9 .word 0x0800b5e9 800b598: 0800b5f1 .word 0x0800b5f1 800b59c: 0800b5f9 .word 0x0800b5f9 800b5a0: 0800b601 .word 0x0800b601 800b5a4: 0800b609 .word 0x0800b609 800b5a8: 0800b611 .word 0x0800b611 800b5ac: 0800b619 .word 0x0800b619 case Unknown: LED_SetColor(&color_unknown); 800b5b0: 4820 ldr r0, [pc, #128] @ (800b634 ) 800b5b2: f000 f8f7 bl 800b7a4 break; 800b5b6: e037 b.n 800b628 case Unplugged: LED_SetColor(&color_unplugged); 800b5b8: 481f ldr r0, [pc, #124] @ (800b638 ) 800b5ba: f000 f8f3 bl 800b7a4 break; 800b5be: e033 b.n 800b628 case Disabled: LED_SetColor(&color_error); 800b5c0: 481b ldr r0, [pc, #108] @ (800b630 ) 800b5c2: f000 f8ef bl 800b7a4 break; 800b5c6: e02f b.n 800b628 case Preparing: LED_SetColor(&color_preparing); 800b5c8: 481c ldr r0, [pc, #112] @ (800b63c ) 800b5ca: f000 f8eb bl 800b7a4 break; 800b5ce: e02b b.n 800b628 case AuthRequired: LED_SetColor(&color_preparing); 800b5d0: 481a ldr r0, [pc, #104] @ (800b63c ) 800b5d2: f000 f8e7 bl 800b7a4 break; 800b5d6: e027 b.n 800b628 case WaitingForEnergy: LED_SetColor(&color_charging); 800b5d8: 4819 ldr r0, [pc, #100] @ (800b640 ) 800b5da: f000 f8e3 bl 800b7a4 break; 800b5de: e023 b.n 800b628 case ChargingPausedEV: LED_SetColor(&color_charging); 800b5e0: 4817 ldr r0, [pc, #92] @ (800b640 ) 800b5e2: f000 f8df bl 800b7a4 break; 800b5e6: e01f b.n 800b628 case ChargingPausedEVSE: LED_SetColor(&color_charging); 800b5e8: 4815 ldr r0, [pc, #84] @ (800b640 ) 800b5ea: f000 f8db bl 800b7a4 break; 800b5ee: e01b b.n 800b628 case Charging: LED_SetColor(&color_charging); 800b5f0: 4813 ldr r0, [pc, #76] @ (800b640 ) 800b5f2: f000 f8d7 bl 800b7a4 break; 800b5f6: e017 b.n 800b628 case AuthTimeout: LED_SetColor(&color_finished); 800b5f8: 4812 ldr r0, [pc, #72] @ (800b644 ) 800b5fa: f000 f8d3 bl 800b7a4 break; 800b5fe: e013 b.n 800b628 case Finished: LED_SetColor(&color_finished); 800b600: 4810 ldr r0, [pc, #64] @ (800b644 ) 800b602: f000 f8cf bl 800b7a4 break; 800b606: e00f b.n 800b628 case FinishedEVSE: LED_SetColor(&color_finished); 800b608: 480e ldr r0, [pc, #56] @ (800b644 ) 800b60a: f000 f8cb bl 800b7a4 break; 800b60e: e00b b.n 800b628 case FinishedEV: LED_SetColor(&color_finished); 800b610: 480c ldr r0, [pc, #48] @ (800b644 ) 800b612: f000 f8c7 bl 800b7a4 break; 800b616: e007 b.n 800b628 case Replugging: LED_SetColor(&color_preparing); 800b618: 4808 ldr r0, [pc, #32] @ (800b63c ) 800b61a: f000 f8c3 bl 800b7a4 break; 800b61e: e003 b.n 800b628 default: LED_SetColor(&color_unknown); 800b620: 4804 ldr r0, [pc, #16] @ (800b634 ) 800b622: f000 f8bf bl 800b7a4 break; 800b626: bf00 nop } } 800b628: bd80 pop {r7, pc} 800b62a: bf00 nop 800b62c: 20000398 .word 0x20000398 800b630: 20000044 .word 0x20000044 800b634: 20000008 .word 0x20000008 800b638: 20000014 .word 0x20000014 800b63c: 20000020 .word 0x20000020 800b640: 2000002c .word 0x2000002c 800b644: 20000038 .word 0x20000038 0800b648 : void interpolateColors(RGB_t* color1, RGB_t* color2, uint16_t a, uint16_t b, RGB_t *result) { 800b648: b480 push {r7} 800b64a: b087 sub sp, #28 800b64c: af00 add r7, sp, #0 800b64e: 60f8 str r0, [r7, #12] 800b650: 60b9 str r1, [r7, #8] 800b652: 4611 mov r1, r2 800b654: 461a mov r2, r3 800b656: 460b mov r3, r1 800b658: 80fb strh r3, [r7, #6] 800b65a: 4613 mov r3, r2 800b65c: 80bb strh r3, [r7, #4] // Проверяем, чтобы a не выходила за пределы диапазона if (a > b) a = b; 800b65e: 88fa ldrh r2, [r7, #6] 800b660: 88bb ldrh r3, [r7, #4] 800b662: 429a cmp r2, r3 800b664: d901 bls.n 800b66a 800b666: 88bb ldrh r3, [r7, #4] 800b668: 80fb strh r3, [r7, #6] if(b==0) b = 1; 800b66a: 88bb ldrh r3, [r7, #4] 800b66c: 2b00 cmp r3, #0 800b66e: d101 bne.n 800b674 800b670: 2301 movs r3, #1 800b672: 80bb strh r3, [r7, #4] // Вычисляем коэффициент смешивания в виде целого числа uint16_t t = (a * 255) / b; // t будет от 0 до 255 800b674: 88fa ldrh r2, [r7, #6] 800b676: 4613 mov r3, r2 800b678: 021b lsls r3, r3, #8 800b67a: 1a9a subs r2, r3, r2 800b67c: 88bb ldrh r3, [r7, #4] 800b67e: fb92 f3f3 sdiv r3, r2, r3 800b682: 82fb strh r3, [r7, #22] // Линейная интерполяция с использованием целых чисел result->R = (color1->R * (255 - t) + color2->R * t) / 255; 800b684: 68fb ldr r3, [r7, #12] 800b686: 781b ldrb r3, [r3, #0] 800b688: 461a mov r2, r3 800b68a: 8afb ldrh r3, [r7, #22] 800b68c: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b690: fb03 f202 mul.w r2, r3, r2 800b694: 68bb ldr r3, [r7, #8] 800b696: 781b ldrb r3, [r3, #0] 800b698: 4619 mov r1, r3 800b69a: 8afb ldrh r3, [r7, #22] 800b69c: fb01 f303 mul.w r3, r1, r3 800b6a0: 4413 add r3, r2 800b6a2: 4a20 ldr r2, [pc, #128] @ (800b724 ) 800b6a4: fb82 1203 smull r1, r2, r2, r3 800b6a8: 441a add r2, r3 800b6aa: 11d2 asrs r2, r2, #7 800b6ac: 17db asrs r3, r3, #31 800b6ae: 1ad3 subs r3, r2, r3 800b6b0: b2da uxtb r2, r3 800b6b2: 6a3b ldr r3, [r7, #32] 800b6b4: 701a strb r2, [r3, #0] result->G = (color1->G * (255 - t) + color2->G * t) / 255; 800b6b6: 68fb ldr r3, [r7, #12] 800b6b8: 785b ldrb r3, [r3, #1] 800b6ba: 461a mov r2, r3 800b6bc: 8afb ldrh r3, [r7, #22] 800b6be: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b6c2: fb03 f202 mul.w r2, r3, r2 800b6c6: 68bb ldr r3, [r7, #8] 800b6c8: 785b ldrb r3, [r3, #1] 800b6ca: 4619 mov r1, r3 800b6cc: 8afb ldrh r3, [r7, #22] 800b6ce: fb01 f303 mul.w r3, r1, r3 800b6d2: 4413 add r3, r2 800b6d4: 4a13 ldr r2, [pc, #76] @ (800b724 ) 800b6d6: fb82 1203 smull r1, r2, r2, r3 800b6da: 441a add r2, r3 800b6dc: 11d2 asrs r2, r2, #7 800b6de: 17db asrs r3, r3, #31 800b6e0: 1ad3 subs r3, r2, r3 800b6e2: b2da uxtb r2, r3 800b6e4: 6a3b ldr r3, [r7, #32] 800b6e6: 705a strb r2, [r3, #1] result->B = (color1->B * (255 - t) + color2->B * t) / 255; 800b6e8: 68fb ldr r3, [r7, #12] 800b6ea: 789b ldrb r3, [r3, #2] 800b6ec: 461a mov r2, r3 800b6ee: 8afb ldrh r3, [r7, #22] 800b6f0: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b6f4: fb03 f202 mul.w r2, r3, r2 800b6f8: 68bb ldr r3, [r7, #8] 800b6fa: 789b ldrb r3, [r3, #2] 800b6fc: 4619 mov r1, r3 800b6fe: 8afb ldrh r3, [r7, #22] 800b700: fb01 f303 mul.w r3, r1, r3 800b704: 4413 add r3, r2 800b706: 4a07 ldr r2, [pc, #28] @ (800b724 ) 800b708: fb82 1203 smull r1, r2, r2, r3 800b70c: 441a add r2, r3 800b70e: 11d2 asrs r2, r2, #7 800b710: 17db asrs r3, r3, #31 800b712: 1ad3 subs r3, r2, r3 800b714: b2da uxtb r2, r3 800b716: 6a3b ldr r3, [r7, #32] 800b718: 709a strb r2, [r3, #2] } 800b71a: bf00 nop 800b71c: 371c adds r7, #28 800b71e: 46bd mov sp, r7 800b720: bc80 pop {r7} 800b722: 4770 bx lr 800b724: 80808081 .word 0x80808081 0800b728 : void RGB_SetColor(RGB_t *color){ 800b728: b480 push {r7} 800b72a: b083 sub sp, #12 800b72c: af00 add r7, sp, #0 800b72e: 6078 str r0, [r7, #4] htim4.Instance->CCR2 = color->R * 100 / 255; 800b730: 687b ldr r3, [r7, #4] 800b732: 781b ldrb r3, [r3, #0] 800b734: 461a mov r2, r3 800b736: 2364 movs r3, #100 @ 0x64 800b738: fb02 f303 mul.w r3, r2, r3 800b73c: 4a17 ldr r2, [pc, #92] @ (800b79c ) 800b73e: fb82 1203 smull r1, r2, r2, r3 800b742: 441a add r2, r3 800b744: 11d2 asrs r2, r2, #7 800b746: 17db asrs r3, r3, #31 800b748: 1ad2 subs r2, r2, r3 800b74a: 4b15 ldr r3, [pc, #84] @ (800b7a0 ) 800b74c: 681b ldr r3, [r3, #0] 800b74e: 639a str r2, [r3, #56] @ 0x38 htim4.Instance->CCR3 = color->G * 100 / 255; 800b750: 687b ldr r3, [r7, #4] 800b752: 785b ldrb r3, [r3, #1] 800b754: 461a mov r2, r3 800b756: 2364 movs r3, #100 @ 0x64 800b758: fb02 f303 mul.w r3, r2, r3 800b75c: 4a0f ldr r2, [pc, #60] @ (800b79c ) 800b75e: fb82 1203 smull r1, r2, r2, r3 800b762: 441a add r2, r3 800b764: 11d2 asrs r2, r2, #7 800b766: 17db asrs r3, r3, #31 800b768: 1ad2 subs r2, r2, r3 800b76a: 4b0d ldr r3, [pc, #52] @ (800b7a0 ) 800b76c: 681b ldr r3, [r3, #0] 800b76e: 63da str r2, [r3, #60] @ 0x3c htim4.Instance->CCR4 = color->B * 100 / 255; 800b770: 687b ldr r3, [r7, #4] 800b772: 789b ldrb r3, [r3, #2] 800b774: 461a mov r2, r3 800b776: 2364 movs r3, #100 @ 0x64 800b778: fb02 f303 mul.w r3, r2, r3 800b77c: 4a07 ldr r2, [pc, #28] @ (800b79c ) 800b77e: fb82 1203 smull r1, r2, r2, r3 800b782: 441a add r2, r3 800b784: 11d2 asrs r2, r2, #7 800b786: 17db asrs r3, r3, #31 800b788: 1ad2 subs r2, r2, r3 800b78a: 4b05 ldr r3, [pc, #20] @ (800b7a0 ) 800b78c: 681b ldr r3, [r3, #0] 800b78e: 641a str r2, [r3, #64] @ 0x40 } 800b790: bf00 nop 800b792: 370c adds r7, #12 800b794: 46bd mov sp, r7 800b796: bc80 pop {r7} 800b798: 4770 bx lr 800b79a: bf00 nop 800b79c: 80808081 .word 0x80808081 800b7a0: 200010e0 .word 0x200010e0 0800b7a4 : void LED_SetColor(RGB_Cycle_t *color){ 800b7a4: b480 push {r7} 800b7a6: b083 sub sp, #12 800b7a8: af00 add r7, sp, #0 800b7aa: 6078 str r0, [r7, #4] memcpy(&LED_Cycle, color, sizeof(RGB_Cycle_t)); 800b7ac: 4b05 ldr r3, [pc, #20] @ (800b7c4 ) 800b7ae: 687a ldr r2, [r7, #4] 800b7b0: 6810 ldr r0, [r2, #0] 800b7b2: 6851 ldr r1, [r2, #4] 800b7b4: c303 stmia r3!, {r0, r1} 800b7b6: 8912 ldrh r2, [r2, #8] 800b7b8: 801a strh r2, [r3, #0] } 800b7ba: bf00 nop 800b7bc: 370c adds r7, #12 800b7be: 46bd mov sp, r7 800b7c0: bc80 pop {r7} 800b7c2: 4770 bx lr 800b7c4: 20000944 .word 0x20000944 0800b7c8 : void LED_Init(){ 800b7c8: b580 push {r7, lr} 800b7ca: b082 sub sp, #8 800b7cc: af00 add r7, sp, #0 RGB_t color = {.R=0, .G=0, .B=0}; 800b7ce: 2300 movs r3, #0 800b7d0: 713b strb r3, [r7, #4] 800b7d2: 2300 movs r3, #0 800b7d4: 717b strb r3, [r7, #5] 800b7d6: 2300 movs r3, #0 800b7d8: 71bb strb r3, [r7, #6] HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_2); 800b7da: 2104 movs r1, #4 800b7dc: 4809 ldr r0, [pc, #36] @ (800b804 ) 800b7de: f006 fab5 bl 8011d4c HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_3); 800b7e2: 2108 movs r1, #8 800b7e4: 4807 ldr r0, [pc, #28] @ (800b804 ) 800b7e6: f006 fab1 bl 8011d4c HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_4); 800b7ea: 210c movs r1, #12 800b7ec: 4805 ldr r0, [pc, #20] @ (800b804 ) 800b7ee: f006 faad bl 8011d4c RGB_SetColor(&color); 800b7f2: 1d3b adds r3, r7, #4 800b7f4: 4618 mov r0, r3 800b7f6: f7ff ff97 bl 800b728 } 800b7fa: bf00 nop 800b7fc: 3708 adds r7, #8 800b7fe: 46bd mov sp, r7 800b800: bd80 pop {r7, pc} 800b802: bf00 nop 800b804: 200010e0 .word 0x200010e0 0800b808 : // } // } // } // } void LED_Task(){ 800b808: b580 push {r7, lr} 800b80a: b082 sub sp, #8 800b80c: af02 add r7, sp, #8 static uint32_t led_tick; if((HAL_GetTick() - led_tick) > 20){ 800b80e: f002 faeb bl 800dde8 800b812: 4602 mov r2, r0 800b814: 4b46 ldr r3, [pc, #280] @ (800b930 ) 800b816: 681b ldr r3, [r3, #0] 800b818: 1ad3 subs r3, r2, r3 800b81a: 2b14 cmp r3, #20 800b81c: f240 8085 bls.w 800b92a led_tick = HAL_GetTick(); 800b820: f002 fae2 bl 800dde8 800b824: 4603 mov r3, r0 800b826: 4a42 ldr r2, [pc, #264] @ (800b930 ) 800b828: 6013 str r3, [r2, #0] LED_State.tick++; 800b82a: 4b42 ldr r3, [pc, #264] @ (800b934 ) 800b82c: 885b ldrh r3, [r3, #2] 800b82e: 3301 adds r3, #1 800b830: b29a uxth r2, r3 800b832: 4b40 ldr r3, [pc, #256] @ (800b934 ) 800b834: 805a strh r2, [r3, #2] // LED_PhaseSync(led_n); switch(LED_State.state){ 800b836: 4b3f ldr r3, [pc, #252] @ (800b934 ) 800b838: 781b ldrb r3, [r3, #0] 800b83a: 2b03 cmp r3, #3 800b83c: d867 bhi.n 800b90e 800b83e: a201 add r2, pc, #4 @ (adr r2, 800b844 ) 800b840: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b844: 0800b855 .word 0x0800b855 800b848: 0800b887 .word 0x0800b887 800b84c: 0800b8b3 .word 0x0800b8b3 800b850: 0800b8e5 .word 0x0800b8e5 case LED_RISING: interpolateColors(&LED_Cycle.Color2, &LED_Cycle.Color1, LED_State.tick, LED_Cycle.Tr, &LED_State.color); 800b854: 4b37 ldr r3, [pc, #220] @ (800b934 ) 800b856: 885a ldrh r2, [r3, #2] 800b858: 4b37 ldr r3, [pc, #220] @ (800b938 ) 800b85a: 78db ldrb r3, [r3, #3] 800b85c: 4619 mov r1, r3 800b85e: 4b37 ldr r3, [pc, #220] @ (800b93c ) 800b860: 9300 str r3, [sp, #0] 800b862: 460b mov r3, r1 800b864: 4934 ldr r1, [pc, #208] @ (800b938 ) 800b866: 4836 ldr r0, [pc, #216] @ (800b940 ) 800b868: f7ff feee bl 800b648 if(LED_State.tick>LED_Cycle.Tr){ 800b86c: 4b31 ldr r3, [pc, #196] @ (800b934 ) 800b86e: 885b ldrh r3, [r3, #2] 800b870: 4a31 ldr r2, [pc, #196] @ (800b938 ) 800b872: 78d2 ldrb r2, [r2, #3] 800b874: 4293 cmp r3, r2 800b876: d94e bls.n 800b916 LED_State.state = LED_HIGH; 800b878: 4b2e ldr r3, [pc, #184] @ (800b934 ) 800b87a: 2201 movs r2, #1 800b87c: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b87e: 4b2d ldr r3, [pc, #180] @ (800b934 ) 800b880: 2200 movs r2, #0 800b882: 805a strh r2, [r3, #2] } break; 800b884: e047 b.n 800b916 case LED_HIGH: memcpy(&LED_State.color, &LED_Cycle.Color1, sizeof(RGB_t)); 800b886: 4b2b ldr r3, [pc, #172] @ (800b934 ) 800b888: 4a2b ldr r2, [pc, #172] @ (800b938 ) 800b88a: 3304 adds r3, #4 800b88c: 6812 ldr r2, [r2, #0] 800b88e: 4611 mov r1, r2 800b890: 8019 strh r1, [r3, #0] 800b892: 3302 adds r3, #2 800b894: 0c12 lsrs r2, r2, #16 800b896: 701a strb r2, [r3, #0] if(LED_State.tick>LED_Cycle.Th){ 800b898: 4b26 ldr r3, [pc, #152] @ (800b934 ) 800b89a: 885b ldrh r3, [r3, #2] 800b89c: 4a26 ldr r2, [pc, #152] @ (800b938 ) 800b89e: 7912 ldrb r2, [r2, #4] 800b8a0: 4293 cmp r3, r2 800b8a2: d93a bls.n 800b91a LED_State.state = LED_FALLING; 800b8a4: 4b23 ldr r3, [pc, #140] @ (800b934 ) 800b8a6: 2202 movs r2, #2 800b8a8: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b8aa: 4b22 ldr r3, [pc, #136] @ (800b934 ) 800b8ac: 2200 movs r2, #0 800b8ae: 805a strh r2, [r3, #2] } break; 800b8b0: e033 b.n 800b91a case LED_FALLING: interpolateColors(&LED_Cycle.Color1, &LED_Cycle.Color2, LED_State.tick, LED_Cycle.Tf, &LED_State.color); 800b8b2: 4b20 ldr r3, [pc, #128] @ (800b934 ) 800b8b4: 885a ldrh r2, [r3, #2] 800b8b6: 4b20 ldr r3, [pc, #128] @ (800b938 ) 800b8b8: 795b ldrb r3, [r3, #5] 800b8ba: 4619 mov r1, r3 800b8bc: 4b1f ldr r3, [pc, #124] @ (800b93c ) 800b8be: 9300 str r3, [sp, #0] 800b8c0: 460b mov r3, r1 800b8c2: 491f ldr r1, [pc, #124] @ (800b940 ) 800b8c4: 481c ldr r0, [pc, #112] @ (800b938 ) 800b8c6: f7ff febf bl 800b648 if(LED_State.tick>LED_Cycle.Tf){ 800b8ca: 4b1a ldr r3, [pc, #104] @ (800b934 ) 800b8cc: 885b ldrh r3, [r3, #2] 800b8ce: 4a1a ldr r2, [pc, #104] @ (800b938 ) 800b8d0: 7952 ldrb r2, [r2, #5] 800b8d2: 4293 cmp r3, r2 800b8d4: d923 bls.n 800b91e LED_State.state = LED_LOW; 800b8d6: 4b17 ldr r3, [pc, #92] @ (800b934 ) 800b8d8: 2203 movs r2, #3 800b8da: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b8dc: 4b15 ldr r3, [pc, #84] @ (800b934 ) 800b8de: 2200 movs r2, #0 800b8e0: 805a strh r2, [r3, #2] } break; 800b8e2: e01c b.n 800b91e case LED_LOW: memcpy(&LED_State.color, &LED_Cycle.Color2, sizeof(RGB_t)); 800b8e4: 4b13 ldr r3, [pc, #76] @ (800b934 ) 800b8e6: 4a14 ldr r2, [pc, #80] @ (800b938 ) 800b8e8: 3304 adds r3, #4 800b8ea: 3207 adds r2, #7 800b8ec: 8811 ldrh r1, [r2, #0] 800b8ee: 7892 ldrb r2, [r2, #2] 800b8f0: 8019 strh r1, [r3, #0] 800b8f2: 709a strb r2, [r3, #2] if(LED_State.tick>LED_Cycle.Tl){ 800b8f4: 4b0f ldr r3, [pc, #60] @ (800b934 ) 800b8f6: 885b ldrh r3, [r3, #2] 800b8f8: 4a0f ldr r2, [pc, #60] @ (800b938 ) 800b8fa: 7992 ldrb r2, [r2, #6] 800b8fc: 4293 cmp r3, r2 800b8fe: d910 bls.n 800b922 LED_State.state = LED_RISING; 800b900: 4b0c ldr r3, [pc, #48] @ (800b934 ) 800b902: 2200 movs r2, #0 800b904: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b906: 4b0b ldr r3, [pc, #44] @ (800b934 ) 800b908: 2200 movs r2, #0 800b90a: 805a strh r2, [r3, #2] } break; 800b90c: e009 b.n 800b922 default: LED_State.state = LED_RISING; 800b90e: 4b09 ldr r3, [pc, #36] @ (800b934 ) 800b910: 2200 movs r2, #0 800b912: 701a strb r2, [r3, #0] 800b914: e006 b.n 800b924 break; 800b916: bf00 nop 800b918: e004 b.n 800b924 break; 800b91a: bf00 nop 800b91c: e002 b.n 800b924 break; 800b91e: bf00 nop 800b920: e000 b.n 800b924 break; 800b922: bf00 nop } RGB_SetColor(&LED_State.color); 800b924: 4805 ldr r0, [pc, #20] @ (800b93c ) 800b926: f7ff feff bl 800b728 } } 800b92a: bf00 nop 800b92c: 46bd mov sp, r7 800b92e: bd80 pop {r7, pc} 800b930: 20000950 .word 0x20000950 800b934: 2000093c .word 0x2000093c 800b938: 20000944 .word 0x20000944 800b93c: 20000940 .word 0x20000940 800b940: 2000094b .word 0x2000094b 0800b944 : RTC_HandleTypeDef hrtc; /* RTC init function */ void MX_RTC_Init(void) { 800b944: b580 push {r7, lr} 800b946: af00 add r7, sp, #0 /* USER CODE END RTC_Init 1 */ /** Initialize RTC Only */ hrtc.Instance = RTC; 800b948: 4b0a ldr r3, [pc, #40] @ (800b974 ) 800b94a: 4a0b ldr r2, [pc, #44] @ (800b978 ) 800b94c: 601a str r2, [r3, #0] hrtc.Init.AsynchPrediv = RTC_AUTO_1_SECOND; 800b94e: 4b09 ldr r3, [pc, #36] @ (800b974 ) 800b950: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 800b954: 605a str r2, [r3, #4] hrtc.Init.OutPut = RTC_OUTPUTSOURCE_ALARM; 800b956: 4b07 ldr r3, [pc, #28] @ (800b974 ) 800b958: f44f 7280 mov.w r2, #256 @ 0x100 800b95c: 609a str r2, [r3, #8] if (HAL_RTC_Init(&hrtc) != HAL_OK) 800b95e: 4805 ldr r0, [pc, #20] @ (800b974 ) 800b960: f005 ff42 bl 80117e8 800b964: 4603 mov r3, r0 800b966: 2b00 cmp r3, #0 800b968: d001 beq.n 800b96e { Error_Handler(); 800b96a: f7ff f8e9 bl 800ab40 } /* USER CODE BEGIN RTC_Init 2 */ /* USER CODE END RTC_Init 2 */ } 800b96e: bf00 nop 800b970: bd80 pop {r7, pc} 800b972: bf00 nop 800b974: 20000954 .word 0x20000954 800b978: 40002800 .word 0x40002800 0800b97c : void HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle) { 800b97c: b580 push {r7, lr} 800b97e: b084 sub sp, #16 800b980: af00 add r7, sp, #0 800b982: 6078 str r0, [r7, #4] if(rtcHandle->Instance==RTC) 800b984: 687b ldr r3, [r7, #4] 800b986: 681b ldr r3, [r3, #0] 800b988: 4a0b ldr r2, [pc, #44] @ (800b9b8 ) 800b98a: 4293 cmp r3, r2 800b98c: d110 bne.n 800b9b0 { /* USER CODE BEGIN RTC_MspInit 0 */ /* USER CODE END RTC_MspInit 0 */ HAL_PWR_EnableBkUpAccess(); 800b98e: f004 febf bl 8010710 /* Enable BKP CLK enable for backup registers */ __HAL_RCC_BKP_CLK_ENABLE(); 800b992: 4b0a ldr r3, [pc, #40] @ (800b9bc ) 800b994: 69db ldr r3, [r3, #28] 800b996: 4a09 ldr r2, [pc, #36] @ (800b9bc ) 800b998: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 800b99c: 61d3 str r3, [r2, #28] 800b99e: 4b07 ldr r3, [pc, #28] @ (800b9bc ) 800b9a0: 69db ldr r3, [r3, #28] 800b9a2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 800b9a6: 60fb str r3, [r7, #12] 800b9a8: 68fb ldr r3, [r7, #12] /* RTC clock enable */ __HAL_RCC_RTC_ENABLE(); 800b9aa: 4b05 ldr r3, [pc, #20] @ (800b9c0 ) 800b9ac: 2201 movs r2, #1 800b9ae: 601a str r2, [r3, #0] /* USER CODE BEGIN RTC_MspInit 1 */ /* USER CODE END RTC_MspInit 1 */ } } 800b9b0: bf00 nop 800b9b2: 3710 adds r7, #16 800b9b4: 46bd mov sp, r7 800b9b6: bd80 pop {r7, pc} 800b9b8: 40002800 .word 0x40002800 800b9bc: 40021000 .word 0x40021000 800b9c0: 4242043c .word 0x4242043c 0800b9c4 : CCS_ConnectorState_t CCS_ConnectorState = CCS_UNPLUGGED; 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) { 800b9c4: 4602 mov r2, r0 if (err == HAL_UART_ERROR_NONE) { 800b9c6: b359 cbz r1, 800ba20 ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800b9c8: b570 push {r4, r5, r6, lr} 800b9ca: 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", 800b9cc: 07cb lsls r3, r1, #31 800b9ce: bf58 it pl 800b9d0: 4915 ldrpl r1, [pc, #84] @ (800ba28 ) 800b9d2: 4d15 ldr r5, [pc, #84] @ (800ba28 ) 800b9d4: bf48 it mi 800b9d6: 4914 ldrmi r1, [pc, #80] @ (800ba28 ) ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800b9d8: b086 sub sp, #24 log_printf(LOG_ERR, "UART%u HAL error decode: %s%s%s%s%s%s raw=0x%08lx\n", 800b9da: bf54 ite pl 800b9dc: 460b movpl r3, r1 800b9de: 4b13 ldrmi r3, [pc, #76] @ (800ba2c ) 800b9e0: f014 0f02 tst.w r4, #2 800b9e4: 9104 str r1, [sp, #16] 800b9e6: 4912 ldr r1, [pc, #72] @ (800ba30 ) 800b9e8: bf08 it eq 800b9ea: 4629 moveq r1, r5 800b9ec: f014 0f04 tst.w r4, #4 800b9f0: 4810 ldr r0, [pc, #64] @ (800ba34 ) 800b9f2: bf08 it eq 800b9f4: 4628 moveq r0, r5 800b9f6: f014 0f08 tst.w r4, #8 800b9fa: 9001 str r0, [sp, #4] 800b9fc: 480e ldr r0, [pc, #56] @ (800ba38 ) 800b9fe: 4e0f ldr r6, [pc, #60] @ (800ba3c ) 800ba00: bf08 it eq 800ba02: 462e moveq r6, r5 800ba04: f014 0f10 tst.w r4, #16 800ba08: bf18 it ne 800ba0a: 4605 movne r5, r0 800ba0c: 9100 str r1, [sp, #0] 800ba0e: e9cd 6502 strd r6, r5, [sp, #8] 800ba12: 490b ldr r1, [pc, #44] @ (800ba40 ) 800ba14: 9405 str r4, [sp, #20] 800ba16: 2004 movs r0, #4 800ba18: f7fe fd84 bl 800a524 (err & HAL_UART_ERROR_INVALID_CALLBACK) ? "INV_CB " : "", #else "", #endif (unsigned long)err); } 800ba1c: b006 add sp, #24 800ba1e: bd70 pop {r4, r5, r6, pc} log_printf(LOG_ERR, "UART%u HAL error decode: NONE\n", uart_num); 800ba20: 2004 movs r0, #4 800ba22: 4908 ldr r1, [pc, #32] @ (800ba44 ) 800ba24: f7fe bd7e b.w 800a524 800ba28: 08016d64 .word 0x08016d64 800ba2c: 080169e4 .word 0x080169e4 800ba30: 080169e8 .word 0x080169e8 800ba34: 080169ec .word 0x080169ec 800ba38: 080169f8 .word 0x080169f8 800ba3c: 080169f0 .word 0x080169f0 800ba40: 08016a20 .word 0x08016a20 800ba44: 08016a00 .word 0x08016a00 0800ba48 : ISR_FAST static void uart3_arm_rx_or_log(const char *where) { 800ba48: b530 push {r4, r5, lr} HAL_StatusTypeDef st = HAL_UARTEx_ReceiveToIdle_IT(&huart3, rx_buffer, sizeof(rx_buffer)); 800ba4a: f44f 7280 mov.w r2, #256 @ 0x100 ISR_FAST static void uart3_arm_rx_or_log(const char *where) { 800ba4e: 4605 mov r5, r0 800ba50: b083 sub sp, #12 HAL_StatusTypeDef st = HAL_UARTEx_ReceiveToIdle_IT(&huart3, rx_buffer, sizeof(rx_buffer)); 800ba52: 4910 ldr r1, [pc, #64] @ (800ba94 ) 800ba54: 4810 ldr r0, [pc, #64] @ (800ba98 ) 800ba56: f007 f90e bl 8012c76 if (st == HAL_OK) { 800ba5a: b908 cbnz r0, 800ba60 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); } } 800ba5c: b003 add sp, #12 800ba5e: bd30 pop {r4, r5, pc} uint32_t err_after = HAL_UART_GetError(&huart3); 800ba60: 4604 mov r4, r0 800ba62: 480d ldr r0, [pc, #52] @ (800ba98 ) 800ba64: f007 fd1c bl 80134a0 800ba68: 4602 mov r2, r0 log_printf(LOG_ERR, 800ba6a: 4623 mov r3, r4 uint32_t err_after = HAL_UART_GetError(&huart3); 800ba6c: 4614 mov r4, r2 log_printf(LOG_ERR, 800ba6e: 490b ldr r1, [pc, #44] @ (800ba9c ) 800ba70: 2004 movs r0, #4 800ba72: 462a mov r2, r5 800ba74: 9400 str r4, [sp, #0] 800ba76: f7fe fd55 bl 800a524 uart3_log_hal_error(3u, err_after); 800ba7a: 4621 mov r1, r4 800ba7c: 2003 movs r0, #3 800ba7e: f7ff ffa1 bl 800b9c4 if (err_after != HAL_UART_ERROR_NONE) { 800ba82: 2c00 cmp r4, #0 800ba84: d0ea beq.n 800ba5c (void)HAL_UART_Abort_IT(&huart3); 800ba86: 4804 ldr r0, [pc, #16] @ (800ba98 ) } 800ba88: b003 add sp, #12 800ba8a: e8bd 4030 ldmia.w sp!, {r4, r5, lr} (void)HAL_UART_Abort_IT(&huart3); 800ba8e: f007 b94f b.w 8012d30 800ba92: bf00 nop 800ba94: 2000098c .word 0x2000098c 800ba98: 20001200 .word 0x20001200 800ba9c: 08016a54 .word 0x08016a54 0800baa0 : ISR_FAST void CCS_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size) { 800baa0: b538 push {r3, r4, r5, lr} if (huart != &huart3) { 800baa2: 4b1a ldr r3, [pc, #104] @ (800bb0c ) ISR_FAST void CCS_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size) { 800baa4: 460c mov r4, r1 if (huart != &huart3) { 800baa6: 4283 cmp r3, r0 800baa8: d113 bne.n 800bad2 log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", (unsigned)size); return; } if (size == 0u) { 800baaa: b329 cbz r1, 800baf8 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)) { 800baac: f5b1 7f80 cmp.w r1, #256 @ 0x100 800bab0: d816 bhi.n 800bae0 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(); 800bab2: f002 f999 bl 800dde8 800bab6: 4603 mov r3, r0 800bab8: 4d15 ldr r5, [pc, #84] @ (800bb10 ) uart3_last_reinit_tick = uart3_last_packet_tick; 800baba: 4a16 ldr r2, [pc, #88] @ (800bb14 ) process_received_packet(rx_buffer, size); 800babc: 4621 mov r1, r4 800babe: 4816 ldr r0, [pc, #88] @ (800bb18 ) uart3_last_packet_tick = HAL_GetTick(); 800bac0: 602b str r3, [r5, #0] uart3_last_reinit_tick = uart3_last_packet_tick; 800bac2: 6013 str r3, [r2, #0] process_received_packet(rx_buffer, size); 800bac4: f000 fcf2 bl 800c4ac uart3_arm_rx_or_log("RxEventCallback"); } 800bac8: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bacc: 4813 ldr r0, [pc, #76] @ (800bb1c ) 800bace: f7ff bfbb b.w 800ba48 log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", 800bad2: 460a mov r2, r1 } 800bad4: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", 800bad8: 2005 movs r0, #5 800bada: 4911 ldr r1, [pc, #68] @ (800bb20 ) 800badc: f7fe bd22 b.w 800a524 log_printf(LOG_ERR, "UART3 RX drop: size=%u > rx_buffer %u (overflow, not parsed)\n", 800bae0: f44f 7380 mov.w r3, #256 @ 0x100 800bae4: 460a mov r2, r1 800bae6: 2004 movs r0, #4 800bae8: 490e ldr r1, [pc, #56] @ (800bb24 ) 800baea: f7fe fd1b bl 800a524 } 800baee: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800baf2: 480a ldr r0, [pc, #40] @ (800bb1c ) 800baf4: f7ff bfa8 b.w 800ba48 log_printf(LOG_WARN, "UART3 RX drop: RxEvent size=0 (idle, no payload)\n"); 800baf8: 2005 movs r0, #5 800bafa: 490b ldr r1, [pc, #44] @ (800bb28 ) 800bafc: f7fe fd12 bl 800a524 } 800bb00: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bb04: 4805 ldr r0, [pc, #20] @ (800bb1c ) 800bb06: f7ff bf9f b.w 800ba48 800bb0a: bf00 nop 800bb0c: 20001200 .word 0x20001200 800bb10: 20000b9c .word 0x20000b9c 800bb14: 20000ba0 .word 0x20000ba0 800bb18: 2000098c .word 0x2000098c 800bb1c: 08016b00 .word 0x08016b00 800bb20: 08016a90 .word 0x08016a90 800bb24: 08016b10 .word 0x08016b10 800bb28: 08016acc .word 0x08016acc 0800bb2c : ISR_FAST void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { 800bb2c: b5f8 push {r3, r4, r5, r6, r7, lr} 800bb2e: 4604 mov r4, r0 uint32_t error = HAL_UART_GetError(huart); 800bb30: f007 fcb6 bl 80134a0 uint8_t uart_num = 800bb34: 4b1f ldr r3, [pc, #124] @ (800bbb4 ) uint32_t error = HAL_UART_GetError(huart); 800bb36: 4605 mov r5, r0 uint8_t uart_num = 800bb38: 429c cmp r4, r3 800bb3a: d014 beq.n 800bb66 800bb3c: 4e1e ldr r6, [pc, #120] @ (800bbb8 ) 800bb3e: 42b4 cmp r4, r6 800bb40: d023 beq.n 800bb8a 800bb42: 4b1e ldr r3, [pc, #120] @ (800bbbc ) 800bb44: 429c cmp r4, r3 800bb46: d032 beq.n 800bbae (huart == &huart2) ? 2 : (huart == &huart3) ? 3 : (huart == &huart5) ? 5 : 0; log_printf(LOG_ERR, 800bb48: 4603 mov r3, r0 800bb4a: 2200 movs r2, #0 800bb4c: 491c ldr r1, [pc, #112] @ (800bbc0 ) 800bb4e: 2004 movs r0, #4 800bb50: f7fe fce8 bl 800a524 "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); 800bb54: 4629 mov r1, r5 800bb56: 2000 movs r0, #0 800bb58: f7ff ff34 bl 800b9c4 (void)HAL_UART_Abort_IT(huart); 800bb5c: 4620 mov r0, r4 if (huart == &huart3) { uart3_arm_rx_or_log("ErrorCallback"); } } 800bb5e: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} (void)HAL_UART_Abort_IT(huart); 800bb62: f007 b8e5 b.w 8012d30 800bb66: 2202 movs r2, #2 uint8_t uart_num = 800bb68: 4617 mov r7, r2 800bb6a: 4e13 ldr r6, [pc, #76] @ (800bbb8 ) log_printf(LOG_ERR, 800bb6c: 462b mov r3, r5 800bb6e: 4914 ldr r1, [pc, #80] @ (800bbc0 ) 800bb70: 2004 movs r0, #4 800bb72: f7fe fcd7 bl 800a524 uart3_log_hal_error(uart_num, error); 800bb76: 4629 mov r1, r5 800bb78: 4638 mov r0, r7 800bb7a: f7ff ff23 bl 800b9c4 (void)HAL_UART_Abort_IT(huart); 800bb7e: 4620 mov r0, r4 800bb80: f007 f8d6 bl 8012d30 if (huart == &huart3) { 800bb84: 42b4 cmp r4, r6 800bb86: d00d beq.n 800bba4 } 800bb88: bdf8 pop {r3, r4, r5, r6, r7, pc} log_printf(LOG_ERR, 800bb8a: 4603 mov r3, r0 800bb8c: 2203 movs r2, #3 800bb8e: 490c ldr r1, [pc, #48] @ (800bbc0 ) 800bb90: 2004 movs r0, #4 800bb92: f7fe fcc7 bl 800a524 uart3_log_hal_error(uart_num, error); 800bb96: 2003 movs r0, #3 800bb98: 4629 mov r1, r5 800bb9a: f7ff ff13 bl 800b9c4 (void)HAL_UART_Abort_IT(huart); 800bb9e: 4620 mov r0, r4 800bba0: f007 f8c6 bl 8012d30 } 800bba4: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} uart3_arm_rx_or_log("ErrorCallback"); 800bba8: 4806 ldr r0, [pc, #24] @ (800bbc4 ) 800bbaa: f7ff bf4d b.w 800ba48 800bbae: 2205 movs r2, #5 uint8_t uart_num = 800bbb0: 4617 mov r7, r2 800bbb2: e7db b.n 800bb6c 800bbb4: 200011b8 .word 0x200011b8 800bbb8: 20001200 .word 0x20001200 800bbbc: 20001128 .word 0x20001128 800bbc0: 08016b50 .word 0x08016b50 800bbc4: 08016b9c .word 0x08016b9c 0800bbc8 : void CCS_SerialLoop(void) { 800bbc8: b580 push {r7, lr} 800bbca: af00 add r7, sp, #0 static uint32_t replug_tick = 0; static uint32_t replug_watchdog_tick = 0; static uint32_t replug_watchdog1_tick = 0; static uint32_t last_state_sent = 0; if ((&huart3)->RxState == HAL_UART_STATE_READY) { 800bbcc: 4ba4 ldr r3, [pc, #656] @ (800be60 ) 800bbce: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800bbd2: b2db uxtb r3, r3 800bbd4: 2b20 cmp r3, #32 800bbd6: d102 bne.n 800bbde uart3_arm_rx_or_log("SerialLoop"); 800bbd8: 48a2 ldr r0, [pc, #648] @ (800be64 ) 800bbda: f7ff ff35 bl 800ba48 } CCS_UART3_Watchdog(); 800bbde: f000 fcd3 bl 800c588 if (CONN.connControl != CMD_NONE) { 800bbe2: 4ba1 ldr r3, [pc, #644] @ (800be68 ) 800bbe4: 781b ldrb r3, [r3, #0] 800bbe6: 2b00 cmp r3, #0 800bbe8: d003 beq.n 800bbf2 last_cmd = CONN.connControl; 800bbea: 4b9f ldr r3, [pc, #636] @ (800be68 ) 800bbec: 781a ldrb r2, [r3, #0] 800bbee: 4b9f ldr r3, [pc, #636] @ (800be6c ) 800bbf0: 701a strb r2, [r3, #0] } if((HAL_GetTick() - last_cmd_sent) > CMD_INTERVAL){ 800bbf2: f002 f8f9 bl 800dde8 800bbf6: 4602 mov r2, r0 800bbf8: 4b9d ldr r3, [pc, #628] @ (800be70 ) 800bbfa: 681b ldr r3, [r3, #0] 800bbfc: 1ad3 subs r3, r2, r3 800bbfe: 2b0a cmp r3, #10 800bc00: d953 bls.n 800bcaa if ((HAL_GetTick() - last_state_sent) >= 200) { 800bc02: f002 f8f1 bl 800dde8 800bc06: 4602 mov r2, r0 800bc08: 4b9a ldr r3, [pc, #616] @ (800be74 ) 800bc0a: 681b ldr r3, [r3, #0] 800bc0c: 1ad3 subs r3, r2, r3 800bc0e: 2bc7 cmp r3, #199 @ 0xc7 800bc10: d906 bls.n 800bc20 send_state(); 800bc12: f000 fb33 bl 800c27c last_state_sent = HAL_GetTick(); 800bc16: f002 f8e7 bl 800dde8 800bc1a: 4603 mov r3, r0 800bc1c: 4a95 ldr r2, [pc, #596] @ (800be74 ) 800bc1e: 6013 str r3, [r2, #0] } if (ESTOP) { 800bc20: 4b95 ldr r3, [pc, #596] @ (800be78 ) 800bc22: 781b ldrb r3, [r3, #0] 800bc24: 2b00 cmp r3, #0 800bc26: d008 beq.n 800bc3a log_printf(LOG_ERR, "ESTOP triggered\n"); 800bc28: 4994 ldr r1, [pc, #592] @ (800be7c ) 800bc2a: 2004 movs r0, #4 800bc2c: f7fe fc7a bl 800a524 CCS_SendEmergencyStop(); 800bc30: f000 fac4 bl 800c1bc ESTOP = 0; 800bc34: 4b90 ldr r3, [pc, #576] @ (800be78 ) 800bc36: 2200 movs r2, #0 800bc38: 701a strb r2, [r3, #0] } if (((CONN.connControl == CMD_STOP) || 800bc3a: 4b8b ldr r3, [pc, #556] @ (800be68 ) 800bc3c: 781b ldrb r3, [r3, #0] 800bc3e: 2b01 cmp r3, #1 800bc40: d003 beq.n 800bc4a (CONN.chargingError != CONN_NO_ERROR)) && 800bc42: 4b89 ldr r3, [pc, #548] @ (800be68 ) 800bc44: 7f5b ldrb r3, [r3, #29] if (((CONN.connControl == CMD_STOP) || 800bc46: 2b00 cmp r3, #0 800bc48: d013 beq.n 800bc72 ((HAL_GetTick() - last_stop_sent) > 1000)) { 800bc4a: f002 f8cd bl 800dde8 800bc4e: 4602 mov r2, r0 800bc50: 4b8b ldr r3, [pc, #556] @ (800be80 ) 800bc52: 681b ldr r3, [r3, #0] 800bc54: 1ad3 subs r3, r2, r3 (CONN.chargingError != CONN_NO_ERROR)) && 800bc56: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800bc5a: d90a bls.n 800bc72 last_stop_sent = HAL_GetTick(); 800bc5c: f002 f8c4 bl 800dde8 800bc60: 4603 mov r3, r0 800bc62: 4a87 ldr r2, [pc, #540] @ (800be80 ) 800bc64: 6013 str r3, [r2, #0] log_printf(LOG_WARN, "Stopping charging...\n"); 800bc66: 4987 ldr r1, [pc, #540] @ (800be84 ) 800bc68: 2005 movs r0, #5 800bc6a: f7fe fc5b bl 800a524 CCS_SendEmergencyStop(); 800bc6e: f000 faa5 bl 800c1bc } if (((CCS_EvseState == FinishedEV) || (CCS_EvseState == FinishedEVSE)) && 800bc72: 4b85 ldr r3, [pc, #532] @ (800be88 ) 800bc74: 781b ldrb r3, [r3, #0] 800bc76: 2b0c cmp r3, #12 800bc78: d003 beq.n 800bc82 800bc7a: 4b83 ldr r3, [pc, #524] @ (800be88 ) 800bc7c: 781b ldrb r3, [r3, #0] 800bc7e: 2b0b cmp r3, #11 800bc80: d113 bne.n 800bcaa ((HAL_GetTick() - last_stop_sent) > 1000)) { 800bc82: f002 f8b1 bl 800dde8 800bc86: 4602 mov r2, r0 800bc88: 4b7d ldr r3, [pc, #500] @ (800be80 ) 800bc8a: 681b ldr r3, [r3, #0] 800bc8c: 1ad3 subs r3, r2, r3 if (((CCS_EvseState == FinishedEV) || (CCS_EvseState == FinishedEVSE)) && 800bc8e: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800bc92: d90a bls.n 800bcaa last_stop_sent = HAL_GetTick(); 800bc94: f002 f8a8 bl 800dde8 800bc98: 4603 mov r3, r0 800bc9a: 4a79 ldr r2, [pc, #484] @ (800be80 ) 800bc9c: 6013 str r3, [r2, #0] log_printf(LOG_WARN, "FinishedEV, stopping...\n"); 800bc9e: 497b ldr r1, [pc, #492] @ (800be8c ) 800bca0: 2005 movs r0, #5 800bca2: f7fe fc3f bl 800a524 CCS_SendEmergencyStop(); 800bca6: f000 fa89 bl 800c1bc } (void)replug_watchdog_tick; (void)replug_watchdog1_tick; if (!config_initialized) { 800bcaa: 4b79 ldr r3, [pc, #484] @ (800be90 ) 800bcac: 781b ldrb r3, [r3, #0] 800bcae: 2b00 cmp r3, #0 800bcb0: d107 bne.n 800bcc2 // Keep connector in Unknown until host sends valid SET_CONFIG. RELAY_Write(RELAY_CP, 1); 800bcb2: 2101 movs r1, #1 800bcb4: 2005 movs r0, #5 800bcb6: f7fd fd7f bl 80097b8 CONN_SetState(Unknown); 800bcba: 2000 movs r0, #0 800bcbc: f7fe f908 bl 8009ed0 800bcc0: e0fd b.n 800bebe } else { switch(CCS_ConnectorState){ 800bcc2: 4b74 ldr r3, [pc, #464] @ (800be94 ) 800bcc4: 781b ldrb r3, [r3, #0] 800bcc6: 2b04 cmp r3, #4 800bcc8: f200 80f9 bhi.w 800bebe 800bccc: a201 add r2, pc, #4 @ (adr r2, 800bcd4 ) 800bcce: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800bcd2: bf00 nop 800bcd4: 0800bce9 .word 0x0800bce9 800bcd8: 0800bd09 .word 0x0800bd09 800bcdc: 0800bd4d .word 0x0800bd4d 800bce0: 0800bd89 .word 0x0800bd89 800bce4: 0800bdd9 .word 0x0800bdd9 case CCS_DISABLED: RELAY_Write(RELAY_CP, 0); 800bce8: 2100 movs r1, #0 800bcea: 2005 movs r0, #5 800bcec: f7fd fd64 bl 80097b8 CONN_SetState(Disabled); 800bcf0: 2002 movs r0, #2 800bcf2: f7fe f8ed bl 8009ed0 if (CONN.chargingError == CONN_NO_ERROR){ 800bcf6: 4b5c ldr r3, [pc, #368] @ (800be68 ) 800bcf8: 7f5b ldrb r3, [r3, #29] 800bcfa: 2b00 cmp r3, #0 800bcfc: f040 80a7 bne.w 800be4e CCS_ConnectorState = CCS_UNPLUGGED; 800bd00: 4b64 ldr r3, [pc, #400] @ (800be94 ) 800bd02: 2201 movs r2, #1 800bd04: 701a strb r2, [r3, #0] } break; 800bd06: e0a2 b.n 800be4e case CCS_UNPLUGGED: RELAY_Write(RELAY_CP, 1); 800bd08: 2101 movs r1, #1 800bd0a: 2005 movs r0, #5 800bd0c: f7fd fd54 bl 80097b8 CONN_SetState(Unplugged); 800bd10: 2001 movs r0, #1 800bd12: f7fe f8dd bl 8009ed0 if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || (cp_state_buffer == EV_STATE_C_CONN_ACTIVE)){ 800bd16: 4b60 ldr r3, [pc, #384] @ (800be98 ) 800bd18: 781b ldrb r3, [r3, #0] 800bd1a: 2b01 cmp r3, #1 800bd1c: d003 beq.n 800bd26 800bd1e: 4b5e ldr r3, [pc, #376] @ (800be98 ) 800bd20: 781b ldrb r3, [r3, #0] 800bd22: 2b02 cmp r3, #2 800bd24: d102 bne.n 800bd2c CCS_ConnectorState = CCS_AUTH_REQUIRED; 800bd26: 4b5b ldr r3, [pc, #364] @ (800be94 ) 800bd28: 2202 movs r2, #2 800bd2a: 701a strb r2, [r3, #0] } if (CONN.chargingError != CONN_NO_ERROR){ 800bd2c: 4b4e ldr r3, [pc, #312] @ (800be68 ) 800bd2e: 7f5b ldrb r3, [r3, #29] 800bd30: 2b00 cmp r3, #0 800bd32: f000 808e beq.w 800be52 log_printf(LOG_ERR, "Charging error %d, state -> disabled\n", CONN.chargingError); 800bd36: 4b4c ldr r3, [pc, #304] @ (800be68 ) 800bd38: 7f5b ldrb r3, [r3, #29] 800bd3a: 461a mov r2, r3 800bd3c: 4957 ldr r1, [pc, #348] @ (800be9c ) 800bd3e: 2004 movs r0, #4 800bd40: f7fe fbf0 bl 800a524 CCS_ConnectorState = CCS_DISABLED; 800bd44: 4b53 ldr r3, [pc, #332] @ (800be94 ) 800bd46: 2200 movs r2, #0 800bd48: 701a strb r2, [r3, #0] } break; 800bd4a: e082 b.n 800be52 case CCS_AUTH_REQUIRED: RELAY_Write(RELAY_CP, 1); 800bd4c: 2101 movs r1, #1 800bd4e: 2005 movs r0, #5 800bd50: f7fd fd32 bl 80097b8 CONN_SetState(AuthRequired); 800bd54: 2004 movs r0, #4 800bd56: f7fe f8bb bl 8009ed0 if(CONN.connControl == CMD_START){ 800bd5a: 4b43 ldr r3, [pc, #268] @ (800be68 ) 800bd5c: 781b ldrb r3, [r3, #0] 800bd5e: 2b02 cmp r3, #2 800bd60: d106 bne.n 800bd70 log_printf(LOG_INFO, "Charging permitted, start charging\n"); 800bd62: 494f ldr r1, [pc, #316] @ (800bea0 ) 800bd64: 2007 movs r0, #7 800bd66: f7fe fbdd bl 800a524 CCS_ConnectorState = CCS_CONNECTED; 800bd6a: 4b4a ldr r3, [pc, #296] @ (800be94 ) 800bd6c: 2203 movs r2, #3 800bd6e: 701a strb r2, [r3, #0] } if (cp_state_buffer == EV_STATE_A_IDLE){ 800bd70: 4b49 ldr r3, [pc, #292] @ (800be98 ) 800bd72: 781b ldrb r3, [r3, #0] 800bd74: 2b00 cmp r3, #0 800bd76: d16e bne.n 800be56 log_printf(LOG_INFO, "Car unplugged\n"); 800bd78: 494a ldr r1, [pc, #296] @ (800bea4 ) 800bd7a: 2007 movs r0, #7 800bd7c: f7fe fbd2 bl 800a524 CCS_ConnectorState = CCS_UNPLUGGED; 800bd80: 4b44 ldr r3, [pc, #272] @ (800be94 ) 800bd82: 2201 movs r2, #1 800bd84: 701a strb r2, [r3, #0] } break; 800bd86: e066 b.n 800be56 case CCS_CONNECTED: RELAY_Write(RELAY_CP, 1); 800bd88: 2101 movs r1, #1 800bd8a: 2005 movs r0, #5 800bd8c: f7fd fd14 bl 80097b8 if(CCS_EvseState < Preparing) { 800bd90: 4b3d ldr r3, [pc, #244] @ (800be88 ) 800bd92: 781b ldrb r3, [r3, #0] 800bd94: 2b02 cmp r3, #2 800bd96: d803 bhi.n 800bda0 CONN_SetState(Preparing); 800bd98: 2003 movs r0, #3 800bd9a: f7fe f899 bl 8009ed0 800bd9e: e004 b.n 800bdaa } else { CONN_SetState(CCS_EvseState); 800bda0: 4b39 ldr r3, [pc, #228] @ (800be88 ) 800bda2: 781b ldrb r3, [r3, #0] 800bda4: 4618 mov r0, r3 800bda6: f7fe f893 bl 8009ed0 } if (cp_state_buffer == EV_STATE_A_IDLE){ 800bdaa: 4b3b ldr r3, [pc, #236] @ (800be98 ) 800bdac: 781b ldrb r3, [r3, #0] 800bdae: 2b00 cmp r3, #0 800bdb0: d106 bne.n 800bdc0 log_printf(LOG_INFO, "Car unplugged\n"); 800bdb2: 493c ldr r1, [pc, #240] @ (800bea4 ) 800bdb4: 2007 movs r0, #7 800bdb6: f7fe fbb5 bl 800a524 CCS_ConnectorState = CCS_UNPLUGGED; 800bdba: 4b36 ldr r3, [pc, #216] @ (800be94 ) 800bdbc: 2201 movs r2, #1 800bdbe: 701a strb r2, [r3, #0] } if(REPLUG > 0){ 800bdc0: 4b39 ldr r3, [pc, #228] @ (800bea8 ) 800bdc2: 781b ldrb r3, [r3, #0] 800bdc4: 2b00 cmp r3, #0 800bdc6: d048 beq.n 800be5a log_printf(LOG_INFO, "Replugging...\n"); 800bdc8: 4938 ldr r1, [pc, #224] @ (800beac ) 800bdca: 2007 movs r0, #7 800bdcc: f7fe fbaa bl 800a524 CCS_ConnectorState = CCS_REPLUGGING; 800bdd0: 4b30 ldr r3, [pc, #192] @ (800be94 ) 800bdd2: 2204 movs r2, #4 800bdd4: 701a strb r2, [r3, #0] } break; 800bdd6: e040 b.n 800be5a case CCS_REPLUGGING: RELAY_Write(RELAY_CP, 0); 800bdd8: 2100 movs r1, #0 800bdda: 2005 movs r0, #5 800bddc: f7fd fcec bl 80097b8 CONN_SetState(Replugging); 800bde0: 200d movs r0, #13 800bde2: f7fe f875 bl 8009ed0 if((HAL_GetTick() - replug_tick) > 1000){ 800bde6: f001 ffff bl 800dde8 800bdea: 4602 mov r2, r0 800bdec: 4b30 ldr r3, [pc, #192] @ (800beb0 ) 800bdee: 681b ldr r3, [r3, #0] 800bdf0: 1ad3 subs r3, r2, r3 800bdf2: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800bdf6: d91a bls.n 800be2e replug_tick = HAL_GetTick(); 800bdf8: f001 fff6 bl 800dde8 800bdfc: 4603 mov r3, r0 800bdfe: 4a2c ldr r2, [pc, #176] @ (800beb0 ) 800be00: 6013 str r3, [r2, #0] if(REPLUG > 0){ 800be02: 4b29 ldr r3, [pc, #164] @ (800bea8 ) 800be04: 781b ldrb r3, [r3, #0] 800be06: 2b00 cmp r3, #0 800be08: d00a beq.n 800be20 if (REPLUG != 0xFF) REPLUG--; 800be0a: 4b27 ldr r3, [pc, #156] @ (800bea8 ) 800be0c: 781b ldrb r3, [r3, #0] 800be0e: 2bff cmp r3, #255 @ 0xff 800be10: d00d beq.n 800be2e 800be12: 4b25 ldr r3, [pc, #148] @ (800bea8 ) 800be14: 781b ldrb r3, [r3, #0] 800be16: 3b01 subs r3, #1 800be18: b2da uxtb r2, r3 800be1a: 4b23 ldr r3, [pc, #140] @ (800bea8 ) 800be1c: 701a strb r2, [r3, #0] 800be1e: e006 b.n 800be2e } else { log_printf(LOG_INFO, "Replugging finished, but car unplugged\n"); 800be20: 4924 ldr r1, [pc, #144] @ (800beb4 ) 800be22: 2007 movs r0, #7 800be24: f7fe fb7e bl 800a524 CCS_ConnectorState = CCS_UNPLUGGED; 800be28: 4b1a ldr r3, [pc, #104] @ (800be94 ) 800be2a: 2201 movs r2, #1 800be2c: 701a strb r2, [r3, #0] } } if(REPLUG == 0){ 800be2e: 4b1e ldr r3, [pc, #120] @ (800bea8 ) 800be30: 781b ldrb r3, [r3, #0] 800be32: 2b00 cmp r3, #0 800be34: d142 bne.n 800bebc if(cp_state_buffer == EV_STATE_B_CONN_PREP){ 800be36: 4b18 ldr r3, [pc, #96] @ (800be98 ) 800be38: 781b ldrb r3, [r3, #0] 800be3a: 2b01 cmp r3, #1 800be3c: d13e bne.n 800bebc log_printf(LOG_INFO, "Replugging finished, car plugged, state -> auth required\n"); 800be3e: 491e ldr r1, [pc, #120] @ (800beb8 ) 800be40: 2007 movs r0, #7 800be42: f7fe fb6f bl 800a524 CCS_ConnectorState = CCS_AUTH_REQUIRED; 800be46: 4b13 ldr r3, [pc, #76] @ (800be94 ) 800be48: 2202 movs r2, #2 800be4a: 701a strb r2, [r3, #0] } } break; 800be4c: e036 b.n 800bebc break; 800be4e: bf00 nop 800be50: e035 b.n 800bebe break; 800be52: bf00 nop 800be54: e033 b.n 800bebe break; 800be56: bf00 nop 800be58: e031 b.n 800bebe break; 800be5a: bf00 nop 800be5c: e02f b.n 800bebe 800be5e: bf00 nop 800be60: 20001200 .word 0x20001200 800be64: 08016bac .word 0x08016bac 800be68: 20000398 .word 0x20000398 800be6c: 20000988 .word 0x20000988 800be70: 20000980 .word 0x20000980 800be74: 20000bf4 .word 0x20000bf4 800be78: 20000b8c .word 0x20000b8c 800be7c: 08016bb8 .word 0x08016bb8 800be80: 20000984 .word 0x20000984 800be84: 08016bcc .word 0x08016bcc 800be88: 20000bf0 .word 0x20000bf0 800be8c: 08016be4 .word 0x08016be4 800be90: 20001092 .word 0x20001092 800be94: 2000004f .word 0x2000004f 800be98: 20000005 .word 0x20000005 800be9c: 08016c00 .word 0x08016c00 800bea0: 08016c28 .word 0x08016c28 800bea4: 08016c4c .word 0x08016c4c 800bea8: 20000b8d .word 0x20000b8d 800beac: 08016c5c .word 0x08016c5c 800beb0: 20000bf8 .word 0x20000bf8 800beb4: 08016c6c .word 0x08016c6c 800beb8: 08016c94 .word 0x08016c94 break; 800bebc: 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) { 800bebe: 4b40 ldr r3, [pc, #256] @ (800bfc0 ) 800bec0: 781b ldrb r3, [r3, #0] 800bec2: 2b00 cmp r3, #0 800bec4: d020 beq.n 800bf08 if (last_everest_timeout_log_tick == 0 || 800bec6: 4b3f ldr r3, [pc, #252] @ (800bfc4 ) 800bec8: 681b ldr r3, [r3, #0] 800beca: 2b00 cmp r3, #0 800becc: d009 beq.n 800bee2 (HAL_GetTick() - last_everest_timeout_log_tick) >= EVEREST_TIMEOUT_MS) { 800bece: f001 ff8b bl 800dde8 800bed2: 4602 mov r2, r0 800bed4: 4b3b ldr r3, [pc, #236] @ (800bfc4 ) 800bed6: 681b ldr r3, [r3, #0] 800bed8: 1ad3 subs r3, r2, r3 if (last_everest_timeout_log_tick == 0 || 800beda: f241 3287 movw r2, #4999 @ 0x1387 800bede: 4293 cmp r3, r2 800bee0: d908 bls.n 800bef4 log_printf(LOG_ERR, "Everest timeout\n"); 800bee2: 4939 ldr r1, [pc, #228] @ (800bfc8 ) 800bee4: 2004 movs r0, #4 800bee6: f7fe fb1d bl 800a524 last_everest_timeout_log_tick = HAL_GetTick(); 800beea: f001 ff7d bl 800dde8 800beee: 4603 mov r3, r0 800bef0: 4a34 ldr r2, [pc, #208] @ (800bfc4 ) 800bef2: 6013 str r3, [r2, #0] } CONN.EnableOutput = 0; 800bef4: 4b35 ldr r3, [pc, #212] @ (800bfcc ) 800bef6: 2200 movs r2, #0 800bef8: 75da strb r2, [r3, #23] CCS_EvseState = Unknown; 800befa: 4b35 ldr r3, [pc, #212] @ (800bfd0 ) 800befc: 2200 movs r2, #0 800befe: 701a strb r2, [r3, #0] CP_SetDuty(100); 800bf00: 2064 movs r0, #100 @ 0x64 800bf02: f7fe f8dd bl 800a0c0 800bf06: e045 b.n 800bf94 } else if (last_host_seen > 0 && (HAL_GetTick() - last_host_seen) > EVEREST_TIMEOUT_MS) { 800bf08: 4b32 ldr r3, [pc, #200] @ (800bfd4 ) 800bf0a: 681b ldr r3, [r3, #0] 800bf0c: 2b00 cmp r3, #0 800bf0e: d024 beq.n 800bf5a 800bf10: f001 ff6a bl 800dde8 800bf14: 4602 mov r2, r0 800bf16: 4b2f ldr r3, [pc, #188] @ (800bfd4 ) 800bf18: 681b ldr r3, [r3, #0] 800bf1a: 1ad3 subs r3, r2, r3 800bf1c: f241 3288 movw r2, #5000 @ 0x1388 800bf20: 4293 cmp r3, r2 800bf22: d91a bls.n 800bf5a log_printf(LOG_ERR, "Everest timeout\n"); 800bf24: 4928 ldr r1, [pc, #160] @ (800bfc8 ) 800bf26: 2004 movs r0, #4 800bf28: f7fe fafc bl 800a524 everest_timed_out = 1; 800bf2c: 4b24 ldr r3, [pc, #144] @ (800bfc0 ) 800bf2e: 2201 movs r2, #1 800bf30: 701a strb r2, [r3, #0] last_host_seen = HAL_GetTick(); // reset after the first timeout 800bf32: f001 ff59 bl 800dde8 800bf36: 4603 mov r3, r0 800bf38: 4a26 ldr r2, [pc, #152] @ (800bfd4 ) 800bf3a: 6013 str r3, [r2, #0] last_everest_timeout_log_tick = HAL_GetTick(); 800bf3c: f001 ff54 bl 800dde8 800bf40: 4603 mov r3, r0 800bf42: 4a20 ldr r2, [pc, #128] @ (800bfc4 ) 800bf44: 6013 str r3, [r2, #0] CONN.EnableOutput = 0; 800bf46: 4b21 ldr r3, [pc, #132] @ (800bfcc ) 800bf48: 2200 movs r2, #0 800bf4a: 75da strb r2, [r3, #23] CCS_EvseState = Unknown; 800bf4c: 4b20 ldr r3, [pc, #128] @ (800bfd0 ) 800bf4e: 2200 movs r2, #0 800bf50: 701a strb r2, [r3, #0] CP_SetDuty(100); 800bf52: 2064 movs r0, #100 @ 0x64 800bf54: f7fe f8b4 bl 800a0c0 800bf58: e01c b.n 800bf94 } else { if (last_cmd == CMD_STOP) { 800bf5a: 4b1f ldr r3, [pc, #124] @ (800bfd8 ) 800bf5c: 781b ldrb r3, [r3, #0] 800bf5e: 2b01 cmp r3, #1 800bf60: d103 bne.n 800bf6a CONN.EnableOutput = 0; 800bf62: 4b1a ldr r3, [pc, #104] @ (800bfcc ) 800bf64: 2200 movs r2, #0 800bf66: 75da strb r2, [r3, #23] 800bf68: e014 b.n 800bf94 } else { CONN.EnableOutput = ev_enable_output ? 1 : 0; 800bf6a: 4b1c ldr r3, [pc, #112] @ (800bfdc ) 800bf6c: 781b ldrb r3, [r3, #0] 800bf6e: 2b00 cmp r3, #0 800bf70: bf14 ite ne 800bf72: 2301 movne r3, #1 800bf74: 2300 moveq r3, #0 800bf76: b2db uxtb r3, r3 800bf78: 461a mov r2, r3 800bf7a: 4b14 ldr r3, [pc, #80] @ (800bfcc ) 800bf7c: 75da strb r2, [r3, #23] if((CONN.EnableOutput == 0) && (CONN.connState == Preparing)){ 800bf7e: 4b13 ldr r3, [pc, #76] @ (800bfcc ) 800bf80: 7ddb ldrb r3, [r3, #23] 800bf82: 2b00 cmp r3, #0 800bf84: d106 bne.n 800bf94 800bf86: 4b11 ldr r3, [pc, #68] @ (800bfcc ) 800bf88: 785b ldrb r3, [r3, #1] 800bf8a: 2b03 cmp r3, #3 800bf8c: d102 bne.n 800bf94 CONN.EnableOutput = 0; 800bf8e: 4b0f ldr r3, [pc, #60] @ (800bfcc ) 800bf90: 2200 movs r2, #0 800bf92: 75da strb r2, [r3, #23] } } } if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || 800bf94: 4b12 ldr r3, [pc, #72] @ (800bfe0 ) 800bf96: 781b ldrb r3, [r3, #0] 800bf98: 2b01 cmp r3, #1 800bf9a: d007 beq.n 800bfac (cp_state_buffer == EV_STATE_C_CONN_ACTIVE) || 800bf9c: 4b10 ldr r3, [pc, #64] @ (800bfe0 ) 800bf9e: 781b ldrb r3, [r3, #0] if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || 800bfa0: 2b02 cmp r3, #2 800bfa2: d003 beq.n 800bfac (cp_state_buffer == EV_STATE_D_CONN_ACT_VENT)) { 800bfa4: 4b0e ldr r3, [pc, #56] @ (800bfe0 ) 800bfa6: 781b ldrb r3, [r3, #0] (cp_state_buffer == EV_STATE_C_CONN_ACTIVE) || 800bfa8: 2b03 cmp r3, #3 800bfaa: d103 bne.n 800bfb4 CONN.EvConnected = 1; 800bfac: 4b07 ldr r3, [pc, #28] @ (800bfcc ) 800bfae: 2201 movs r2, #1 800bfb0: 779a strb r2, [r3, #30] 800bfb2: e003 b.n 800bfbc } else { CONN.EvConnected = 0; 800bfb4: 4b05 ldr r3, [pc, #20] @ (800bfcc ) 800bfb6: 2200 movs r2, #0 800bfb8: 779a strb r2, [r3, #30] } } 800bfba: bf00 nop 800bfbc: bf00 nop 800bfbe: bd80 pop {r7, pc} 800bfc0: 20000b94 .word 0x20000b94 800bfc4: 20000b98 .word 0x20000b98 800bfc8: 08016cd0 .word 0x08016cd0 800bfcc: 20000398 .word 0x20000398 800bfd0: 20000bf0 .word 0x20000bf0 800bfd4: 20000b90 .word 0x20000b90 800bfd8: 20000988 .word 0x20000988 800bfdc: 20000989 .word 0x20000989 800bfe0: 20000005 .word 0x20000005 0800bfe4 : void CCS_Init(void){ 800bfe4: b580 push {r7, lr} 800bfe6: af00 add r7, sp, #0 CP_Init(); 800bfe8: f7fe f848 bl 800a07c CP_SetDuty(100); 800bfec: 2064 movs r0, #100 @ 0x64 800bfee: f7fe f867 bl 800a0c0 CCS_MaxLoad.maxVoltage = PSU_MAX_VOLTAGE; // 1000V 800bff2: 4b11 ldr r3, [pc, #68] @ (800c038 ) 800bff4: f44f 727a mov.w r2, #1000 @ 0x3e8 800bff8: 801a strh r2, [r3, #0] CCS_MaxLoad.minVoltage = PSU_MIN_VOLTAGE; //150V 800bffa: 4b0f ldr r3, [pc, #60] @ (800c038 ) 800bffc: 2296 movs r2, #150 @ 0x96 800bffe: 805a strh r2, [r3, #2] CCS_MaxLoad.maxCurrent = PSU_MAX_CURRENT*10; //100A 800c000: 4b0d ldr r3, [pc, #52] @ (800c038 ) 800c002: f240 5232 movw r2, #1330 @ 0x532 800c006: 809a strh r2, [r3, #4] CCS_MaxLoad.minCurrent = PSU_MIN_CURRENT*10; //1A 800c008: 4b0b ldr r3, [pc, #44] @ (800c038 ) 800c00a: 220a movs r2, #10 800c00c: 80da strh r2, [r3, #6] CCS_MaxLoad.maxPower = PSU_MAX_POWER; //30000W 800c00e: 4b0a ldr r3, [pc, #40] @ (800c038 ) 800c010: f247 5230 movw r2, #30000 @ 0x7530 800c014: 609a str r2, [r3, #8] uart3_last_packet_tick = HAL_GetTick(); 800c016: f001 fee7 bl 800dde8 800c01a: 4603 mov r3, r0 800c01c: 4a07 ldr r2, [pc, #28] @ (800c03c ) 800c01e: 6013 str r3, [r2, #0] uart3_last_reinit_tick = uart3_last_packet_tick; 800c020: 4b06 ldr r3, [pc, #24] @ (800c03c ) 800c022: 681b ldr r3, [r3, #0] 800c024: 4a06 ldr r2, [pc, #24] @ (800c040 ) 800c026: 6013 str r3, [r2, #0] CCS_SendResetReason(); 800c028: f000 f8be bl 800c1a8 log_printf(LOG_INFO, "CCS init\n"); 800c02c: 4905 ldr r1, [pc, #20] @ (800c044 ) 800c02e: 2007 movs r0, #7 800c030: f7fe fa78 bl 800a524 } 800c034: bf00 nop 800c036: bd80 pop {r7, pc} 800c038: 20000968 .word 0x20000968 800c03c: 20000b9c .word 0x20000b9c 800c040: 20000ba0 .word 0x20000ba0 800c044: 08016ce4 .word 0x08016ce4 0800c048 : 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++) { 800c048: b3e9 cbz r1, 800c0c6 800c04a: 4684 mov ip, r0 ISR_FAST static uint16_t crc16_ibm(const uint8_t* data, uint16_t length) { 800c04c: b500 push {lr} 800c04e: 468e mov lr, r1 uint16_t crc = 0xFFFFu; 800c050: f64f 70ff movw r0, #65535 @ 0xffff crc ^= data[i]; for (uint8_t j = 0; j < 8; j++) { if (crc & 1u) { 800c054: 491d ldr r1, [pc, #116] @ (800c0cc ) 800c056: 44e6 add lr, ip crc ^= data[i]; 800c058: f81c 2b01 ldrb.w r2, [ip], #1 800c05c: 4042 eors r2, r0 if (crc & 1u) { 800c05e: f342 0300 sbfx r3, r2, #0, #1 800c062: 400b ands r3, r1 800c064: ea83 0352 eor.w r3, r3, r2, lsr #1 800c068: f343 0200 sbfx r2, r3, #0, #1 800c06c: 400a ands r2, r1 crc = (crc >> 1) ^ 0xA001u; } else { crc >>= 1; 800c06e: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c072: 405a eors r2, r3 800c074: f342 0300 sbfx r3, r2, #0, #1 800c078: 400b ands r3, r1 crc >>= 1; 800c07a: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c07e: 4053 eors r3, r2 800c080: f343 0200 sbfx r2, r3, #0, #1 800c084: 400a ands r2, r1 crc >>= 1; 800c086: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c08a: 405a eors r2, r3 800c08c: f342 0300 sbfx r3, r2, #0, #1 800c090: 400b ands r3, r1 crc >>= 1; 800c092: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c096: 4053 eors r3, r2 800c098: f343 0200 sbfx r2, r3, #0, #1 800c09c: 400a ands r2, r1 crc >>= 1; 800c09e: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c0a2: 405a eors r2, r3 800c0a4: f342 0300 sbfx r3, r2, #0, #1 800c0a8: 400b ands r3, r1 crc >>= 1; 800c0aa: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c0ae: 4053 eors r3, r2 800c0b0: f343 0000 sbfx r0, r3, #0, #1 800c0b4: 4008 ands r0, r1 crc >>= 1; 800c0b6: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c0ba: 4058 eors r0, r3 for (uint16_t i = 0; i < length; i++) { 800c0bc: 45e6 cmp lr, ip if (crc & 1u) { 800c0be: b280 uxth r0, r0 for (uint16_t i = 0; i < length; i++) { 800c0c0: d1ca bne.n 800c058 } } } return crc; } 800c0c2: f85d fb04 ldr.w pc, [sp], #4 uint16_t crc = 0xFFFFu; 800c0c6: f64f 70ff movw r0, #65535 @ 0xffff } 800c0ca: 4770 bx lr 800c0cc: ffffa001 .word 0xffffa001 0800c0d0 : static uint16_t CCS_BuildPacket(uint8_t cmd, const void* payload, uint16_t payload_len, uint8_t* out, uint16_t out_max) { 800c0d0: b580 push {r7, lr} 800c0d2: b086 sub sp, #24 800c0d4: af00 add r7, sp, #0 800c0d6: 60b9 str r1, [r7, #8] 800c0d8: 607b str r3, [r7, #4] 800c0da: 4603 mov r3, r0 800c0dc: 73fb strb r3, [r7, #15] 800c0de: 4613 mov r3, r2 800c0e0: 81bb strh r3, [r7, #12] uint16_t total_len = (uint16_t)(1u + payload_len + 2u); 800c0e2: 89bb ldrh r3, [r7, #12] 800c0e4: 3303 adds r3, #3 800c0e6: 82fb strh r3, [r7, #22] if (total_len > out_max) return 0; 800c0e8: 8afa ldrh r2, [r7, #22] 800c0ea: 8c3b ldrh r3, [r7, #32] 800c0ec: 429a cmp r2, r3 800c0ee: d901 bls.n 800c0f4 800c0f0: 2300 movs r3, #0 800c0f2: e029 b.n 800c148 out[0] = cmd; 800c0f4: 687b ldr r3, [r7, #4] 800c0f6: 7bfa ldrb r2, [r7, #15] 800c0f8: 701a strb r2, [r3, #0] if (payload_len && payload != NULL) { 800c0fa: 89bb ldrh r3, [r7, #12] 800c0fc: 2b00 cmp r3, #0 800c0fe: d009 beq.n 800c114 800c100: 68bb ldr r3, [r7, #8] 800c102: 2b00 cmp r3, #0 800c104: d006 beq.n 800c114 memcpy(&out[1], payload, payload_len); 800c106: 687b ldr r3, [r7, #4] 800c108: 3301 adds r3, #1 800c10a: 89ba ldrh r2, [r7, #12] 800c10c: 68b9 ldr r1, [r7, #8] 800c10e: 4618 mov r0, r3 800c110: f008 fa46 bl 80145a0 } uint16_t crc = crc16_ibm(out, (uint16_t)(1u + payload_len)); 800c114: 89bb ldrh r3, [r7, #12] 800c116: 3301 adds r3, #1 800c118: b29b uxth r3, r3 800c11a: 4619 mov r1, r3 800c11c: 6878 ldr r0, [r7, #4] 800c11e: f7ff ff93 bl 800c048 800c122: 4603 mov r3, r0 800c124: 82bb strh r3, [r7, #20] out[1u + payload_len] = (uint8_t)(crc & 0xFFu); 800c126: 89bb ldrh r3, [r7, #12] 800c128: 3301 adds r3, #1 800c12a: 687a ldr r2, [r7, #4] 800c12c: 4413 add r3, r2 800c12e: 8aba ldrh r2, [r7, #20] 800c130: b2d2 uxtb r2, r2 800c132: 701a strb r2, [r3, #0] out[1u + payload_len + 1u] = (uint8_t)((crc >> 8) & 0xFFu); 800c134: 8abb ldrh r3, [r7, #20] 800c136: 0a1b lsrs r3, r3, #8 800c138: b299 uxth r1, r3 800c13a: 89bb ldrh r3, [r7, #12] 800c13c: 3302 adds r3, #2 800c13e: 687a ldr r2, [r7, #4] 800c140: 4413 add r3, r2 800c142: b2ca uxtb r2, r1 800c144: 701a strb r2, [r3, #0] return total_len; 800c146: 8afb ldrh r3, [r7, #22] } 800c148: 4618 mov r0, r3 800c14a: 3718 adds r7, #24 800c14c: 46bd mov sp, r7 800c14e: bd80 pop {r7, pc} 0800c150 : static void CCS_SendPacket(uint8_t cmd, const void* payload, uint16_t payload_len) { 800c150: b580 push {r7, lr} 800c152: b086 sub sp, #24 800c154: af02 add r7, sp, #8 800c156: 4603 mov r3, r0 800c158: 6039 str r1, [r7, #0] 800c15a: 71fb strb r3, [r7, #7] 800c15c: 4613 mov r3, r2 800c15e: 80bb strh r3, [r7, #4] uint16_t len = CCS_BuildPacket(cmd, payload, payload_len, tx_buffer, sizeof(tx_buffer)); 800c160: 88ba ldrh r2, [r7, #4] 800c162: 79f8 ldrb r0, [r7, #7] 800c164: f44f 7380 mov.w r3, #256 @ 0x100 800c168: 9300 str r3, [sp, #0] 800c16a: 4b0c ldr r3, [pc, #48] @ (800c19c ) 800c16c: 6839 ldr r1, [r7, #0] 800c16e: f7ff ffaf bl 800c0d0 800c172: 4603 mov r3, r0 800c174: 81fb strh r3, [r7, #14] if (len > 0) { 800c176: 89fb ldrh r3, [r7, #14] 800c178: 2b00 cmp r3, #0 800c17a: d005 beq.n 800c188 HAL_UART_Transmit_IT(&huart3, tx_buffer, len); 800c17c: 89fb ldrh r3, [r7, #14] 800c17e: 461a mov r2, r3 800c180: 4906 ldr r1, [pc, #24] @ (800c19c ) 800c182: 4807 ldr r0, [pc, #28] @ (800c1a0 ) 800c184: f006 fd42 bl 8012c0c } last_cmd_sent = HAL_GetTick(); 800c188: f001 fe2e bl 800dde8 800c18c: 4603 mov r3, r0 800c18e: 4a05 ldr r2, [pc, #20] @ (800c1a4 ) 800c190: 6013 str r3, [r2, #0] } 800c192: bf00 nop 800c194: 3710 adds r7, #16 800c196: 46bd mov sp, r7 800c198: bd80 pop {r7, pc} 800c19a: bf00 nop 800c19c: 20000a8c .word 0x20000a8c 800c1a0: 20001200 .word 0x20001200 800c1a4: 20000980 .word 0x20000980 0800c1a8 : static void CCS_SendResetReason(void) { 800c1a8: b580 push {r7, lr} 800c1aa: af00 add r7, sp, #0 CCS_SendPacket(CMD_M2E_RESET, NULL, 0); 800c1ac: 2200 movs r2, #0 800c1ae: 2100 movs r1, #0 800c1b0: 2052 movs r0, #82 @ 0x52 800c1b2: f7ff ffcd bl 800c150 } 800c1b6: bf00 nop 800c1b8: bd80 pop {r7, pc} 800c1ba: bf00 nop 0800c1bc : void CCS_SendEmergencyStop(void) { 800c1bc: b580 push {r7, lr} 800c1be: af00 add r7, sp, #0 CCS_SendPacket(CMD_M2E_ESTOP, NULL, 0); 800c1c0: 2200 movs r2, #0 800c1c2: 2100 movs r1, #0 800c1c4: 2053 movs r0, #83 @ 0x53 800c1c6: f7ff ffc3 bl 800c150 } 800c1ca: bf00 nop 800c1cc: bd80 pop {r7, pc} 800c1ce: bf00 nop 0800c1d0 : void CCS_SendStart(void) { CCS_SendPacket(CMD_M2E_START, NULL, 0); } static void CCS_CalculateEnergy(void) { 800c1d0: b580 push {r7, lr} 800c1d2: b082 sub sp, #8 800c1d4: af00 add r7, sp, #0 static uint32_t lastTick = 0; uint32_t currentTick = HAL_GetTick(); 800c1d6: f001 fe07 bl 800dde8 800c1da: 6078 str r0, [r7, #4] uint32_t elapsedTimeMs = currentTick - lastTick; 800c1dc: 4b1e ldr r3, [pc, #120] @ (800c258 ) 800c1de: 681b ldr r3, [r3, #0] 800c1e0: 687a ldr r2, [r7, #4] 800c1e2: 1ad3 subs r3, r2, r3 800c1e4: 603b str r3, [r7, #0] lastTick = currentTick; 800c1e6: 4a1c ldr r2, [pc, #112] @ (800c258 ) 800c1e8: 687b ldr r3, [r7, #4] 800c1ea: 6013 str r3, [r2, #0] CCS_Power = CONN.MeasuredVoltage * CONN.MeasuredCurrent / 10; 800c1ec: 4b1b ldr r3, [pc, #108] @ (800c25c ) 800c1ee: f8b3 3013 ldrh.w r3, [r3, #19] 800c1f2: b29b uxth r3, r3 800c1f4: 461a mov r2, r3 800c1f6: 4b19 ldr r3, [pc, #100] @ (800c25c ) 800c1f8: f8b3 3015 ldrh.w r3, [r3, #21] 800c1fc: b29b uxth r3, r3 800c1fe: fb02 f303 mul.w r3, r2, r3 800c202: 4a17 ldr r2, [pc, #92] @ (800c260 ) 800c204: fb82 1203 smull r1, r2, r2, r3 800c208: 1092 asrs r2, r2, #2 800c20a: 17db asrs r3, r3, #31 800c20c: 1ad3 subs r3, r2, r3 800c20e: 461a mov r2, r3 800c210: 4b14 ldr r3, [pc, #80] @ (800c264 ) 800c212: 601a str r2, [r3, #0] CCS_EnergyWs += (CCS_Power * elapsedTimeMs) / 1000; 800c214: 4b13 ldr r3, [pc, #76] @ (800c264 ) 800c216: 681b ldr r3, [r3, #0] 800c218: 683a ldr r2, [r7, #0] 800c21a: fb02 f303 mul.w r3, r2, r3 800c21e: 4a12 ldr r2, [pc, #72] @ (800c268 ) 800c220: fba2 2303 umull r2, r3, r2, r3 800c224: 099a lsrs r2, r3, #6 800c226: 4b11 ldr r3, [pc, #68] @ (800c26c ) 800c228: 681b ldr r3, [r3, #0] 800c22a: 4413 add r3, r2 800c22c: 4a0f ldr r2, [pc, #60] @ (800c26c ) 800c22e: 6013 str r3, [r2, #0] if(CCS_EvseState == Unplugged) { 800c230: 4b0f ldr r3, [pc, #60] @ (800c270 ) 800c232: 781b ldrb r3, [r3, #0] 800c234: 2b01 cmp r3, #1 800c236: d102 bne.n 800c23e CCS_EnergyWs = 0; 800c238: 4b0c ldr r3, [pc, #48] @ (800c26c ) 800c23a: 2200 movs r2, #0 800c23c: 601a str r2, [r3, #0] } CCS_Energy = CCS_EnergyWs / 3600; 800c23e: 4b0b ldr r3, [pc, #44] @ (800c26c ) 800c240: 681b ldr r3, [r3, #0] 800c242: 4a0c ldr r2, [pc, #48] @ (800c274 ) 800c244: fba2 2303 umull r2, r3, r2, r3 800c248: 0adb lsrs r3, r3, #11 800c24a: 4a0b ldr r2, [pc, #44] @ (800c278 ) 800c24c: 6013 str r3, [r2, #0] } 800c24e: bf00 nop 800c250: 3708 adds r7, #8 800c252: 46bd mov sp, r7 800c254: bd80 pop {r7, pc} 800c256: bf00 nop 800c258: 20000bfc .word 0x20000bfc 800c25c: 20000398 .word 0x20000398 800c260: 66666667 .word 0x66666667 800c264: 20000974 .word 0x20000974 800c268: 10624dd3 .word 0x10624dd3 800c26c: 20000978 .word 0x20000978 800c270: 20000bf0 .word 0x20000bf0 800c274: 91a2b3c5 .word 0x91a2b3c5 800c278: 2000097c .word 0x2000097c 0800c27c : static void send_state(void) { 800c27c: b580 push {r7, lr} 800c27e: af00 add r7, sp, #0 CCS_CalculateEnergy(); 800c280: f7ff ffa6 bl 800c1d0 CCS_State.DutyCycle = CP_GetDuty(); 800c284: f7fd ff44 bl 800a110 800c288: 4603 mov r3, r0 800c28a: 461a mov r2, r3 800c28c: 4b30 ldr r3, [pc, #192] @ (800c350 ) 800c28e: 701a strb r2, [r3, #0] CCS_State.OutputEnabled = PSU0.CONT_enabled; 800c290: 4b30 ldr r3, [pc, #192] @ (800c354 ) 800c292: 7ada ldrb r2, [r3, #11] 800c294: 4b2e ldr r3, [pc, #184] @ (800c350 ) 800c296: 705a strb r2, [r3, #1] CCS_State.MeasuredVoltage = (uint16_t)CONN.MeasuredVoltage; 800c298: 4b2f ldr r3, [pc, #188] @ (800c358 ) 800c29a: f8b3 3013 ldrh.w r3, [r3, #19] 800c29e: b29a uxth r2, r3 800c2a0: 4b2b ldr r3, [pc, #172] @ (800c350 ) 800c2a2: 805a strh r2, [r3, #2] if (CONN.RequestedVoltage == 500) CCS_State.MeasuredVoltage = 500; // fake 800c2a4: 4b2c ldr r3, [pc, #176] @ (800c358 ) 800c2a6: f8b3 300f ldrh.w r3, [r3, #15] 800c2aa: b29b uxth r3, r3 800c2ac: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800c2b0: d103 bne.n 800c2ba 800c2b2: 4b27 ldr r3, [pc, #156] @ (800c350 ) 800c2b4: f44f 72fa mov.w r2, #500 @ 0x1f4 800c2b8: 805a strh r2, [r3, #2] CCS_State.MeasuredCurrent = (uint16_t)CONN.MeasuredCurrent; 800c2ba: 4b27 ldr r3, [pc, #156] @ (800c358 ) 800c2bc: f8b3 3015 ldrh.w r3, [r3, #21] 800c2c0: b29a uxth r2, r3 800c2c2: 4b23 ldr r3, [pc, #140] @ (800c350 ) 800c2c4: 809a strh r2, [r3, #4] CCS_State.Power = CCS_Power; 800c2c6: 4b25 ldr r3, [pc, #148] @ (800c35c ) 800c2c8: 681b ldr r3, [r3, #0] 800c2ca: 4a21 ldr r2, [pc, #132] @ (800c350 ) 800c2cc: f8c2 3006 str.w r3, [r2, #6] CCS_State.Energy = CCS_Energy; 800c2d0: 4b23 ldr r3, [pc, #140] @ (800c360 ) 800c2d2: 681b ldr r3, [r3, #0] 800c2d4: 4a1e ldr r2, [pc, #120] @ (800c350 ) 800c2d6: f8c2 300a str.w r3, [r2, #10] if(CCS_ConnectorState == CCS_CONNECTED){ 800c2da: 4b22 ldr r3, [pc, #136] @ (800c364 ) 800c2dc: 781b ldrb r3, [r3, #0] 800c2de: 2b03 cmp r3, #3 800c2e0: d104 bne.n 800c2ec CCS_State.CpState = cp_state_buffer; 800c2e2: 4b21 ldr r3, [pc, #132] @ (800c368 ) 800c2e4: 781a ldrb r2, [r3, #0] 800c2e6: 4b1a ldr r3, [pc, #104] @ (800c350 ) 800c2e8: 74da strb r2, [r3, #19] 800c2ea: e002 b.n 800c2f2 } else { CCS_State.CpState = EV_STATE_A_IDLE; 800c2ec: 4b18 ldr r3, [pc, #96] @ (800c350 ) 800c2ee: 2200 movs r2, #0 800c2f0: 74da strb r2, [r3, #19] } CCS_State.MaxVoltage = CCS_MaxLoad.maxVoltage; 800c2f2: 4b1e ldr r3, [pc, #120] @ (800c36c ) 800c2f4: 881a ldrh r2, [r3, #0] 800c2f6: 4b16 ldr r3, [pc, #88] @ (800c350 ) 800c2f8: 829a strh r2, [r3, #20] CCS_State.MinVoltage = CCS_MaxLoad.minVoltage; 800c2fa: 4b1c ldr r3, [pc, #112] @ (800c36c ) 800c2fc: 885a ldrh r2, [r3, #2] 800c2fe: 4b14 ldr r3, [pc, #80] @ (800c350 ) 800c300: 82da strh r2, [r3, #22] CCS_State.MaxCurrent = CCS_MaxLoad.maxCurrent; 800c302: 4b1a ldr r3, [pc, #104] @ (800c36c ) 800c304: 889a ldrh r2, [r3, #4] 800c306: 4b12 ldr r3, [pc, #72] @ (800c350 ) 800c308: 831a strh r2, [r3, #24] CCS_State.MinCurrent = CCS_MaxLoad.minCurrent; 800c30a: 4b18 ldr r3, [pc, #96] @ (800c36c ) 800c30c: 88da ldrh r2, [r3, #6] 800c30e: 4b10 ldr r3, [pc, #64] @ (800c350 ) 800c310: 835a strh r2, [r3, #26] CCS_State.MaxPower = CCS_MaxLoad.maxPower; 800c312: 4b16 ldr r3, [pc, #88] @ (800c36c ) 800c314: 689b ldr r3, [r3, #8] 800c316: 4a0e ldr r2, [pc, #56] @ (800c350 ) 800c318: 61d3 str r3, [r2, #28] CCS_State.IsolationValid = isolation_enable; 800c31a: 4b15 ldr r3, [pc, #84] @ (800c370 ) 800c31c: 781a ldrb r2, [r3, #0] 800c31e: 4b0c ldr r3, [pc, #48] @ (800c350 ) 800c320: 749a strb r2, [r3, #18] CCS_State.IsolationResistance = 900000; 800c322: 4a0b ldr r2, [pc, #44] @ (800c350 ) 800c324: 2300 movs r3, #0 800c326: f043 437f orr.w r3, r3, #4278190080 @ 0xff000000 800c32a: f443 037f orr.w r3, r3, #16711680 @ 0xff0000 800c32e: f443 433b orr.w r3, r3, #47872 @ 0xbb00 800c332: f043 03a0 orr.w r3, r3, #160 @ 0xa0 800c336: 81d3 strh r3, [r2, #14] 800c338: 2300 movs r3, #0 800c33a: f043 030d orr.w r3, r3, #13 800c33e: 8213 strh r3, [r2, #16] CCS_SendPacket(CMD_M2E_STATE, &CCS_State, sizeof(CCS_State)); 800c340: 2220 movs r2, #32 800c342: 4903 ldr r1, [pc, #12] @ (800c350 ) 800c344: 2050 movs r0, #80 @ 0x50 800c346: f7ff ff03 bl 800c150 } 800c34a: bf00 nop 800c34c: bd80 pop {r7, pc} 800c34e: bf00 nop 800c350: 20000ba4 .word 0x20000ba4 800c354: 200008e4 .word 0x200008e4 800c358: 20000398 .word 0x20000398 800c35c: 20000974 .word 0x20000974 800c360: 2000097c .word 0x2000097c 800c364: 2000004f .word 0x2000004f 800c368: 20000005 .word 0x20000005 800c36c: 20000968 .word 0x20000968 800c370: 20000b8f .word 0x20000b8f 0800c374 : ISR_FAST static uint16_t expected_payload_len(uint8_t cmd) { switch (cmd) { 800c374: 3840 subs r0, #64 @ 0x40 800c376: b2c0 uxtb r0, r0 800c378: 2809 cmp r0, #9 800c37a: bf9a itte ls 800c37c: 4b02 ldrls r3, [pc, #8] @ (800c388 ) 800c37e: f833 0010 ldrhls.w r0, [r3, r0, lsl #1] ISR_FAST static uint16_t expected_payload_len(uint8_t cmd) { 800c382: 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; } } 800c386: 4770 bx lr 800c388: 08016fb8 .word 0x08016fb8 0800c38c : ISR_FAST static void apply_command(uint8_t cmd, const uint8_t* payload, uint16_t payload_len) { 800c38c: b5f8 push {r3, r4, r5, r6, r7, lr} 800c38e: 4604 mov r4, r0 800c390: 460e mov r6, r1 (void)payload_len; last_host_seen = HAL_GetTick(); 800c392: f001 fd29 bl 800dde8 everest_timed_out = 0; 800c396: 2300 movs r3, #0 800c398: 4a37 ldr r2, [pc, #220] @ (800c478 ) last_host_seen = HAL_GetTick(); 800c39a: 4d38 ldr r5, [pc, #224] @ (800c47c ) everest_timed_out = 0; 800c39c: 7013 strb r3, [r2, #0] last_everest_timeout_log_tick = 0; 800c39e: 4a38 ldr r2, [pc, #224] @ (800c480 ) last_host_seen = HAL_GetTick(); 800c3a0: 6028 str r0, [r5, #0] last_everest_timeout_log_tick = 0; 800c3a2: 6013 str r3, [r2, #0] switch (cmd) { 800c3a4: f1a4 0340 sub.w r3, r4, #64 @ 0x40 800c3a8: 2b09 cmp r3, #9 800c3aa: d85d bhi.n 800c468 800c3ac: e8df f003 tbb [pc, r3] 800c3b0: 231a1309 .word 0x231a1309 800c3b4: 3c38302a .word 0x3c38302a 800c3b8: 0558 .short 0x0558 (void)payload; CP_SetDuty(pwm_duty_percent); break; } case CMD_E2M_KEEP_ALIVE: { last_host_seen = HAL_GetTick(); 800c3ba: f001 fd15 bl 800dde8 800c3be: 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; } } 800c3c0: bdf8 pop {r3, r4, r5, r6, r7, pc} if (duty > 100) duty = 100; 800c3c2: 7830 ldrb r0, [r6, #0] pwm_duty_percent = duty; 800c3c4: 4b2f ldr r3, [pc, #188] @ (800c484 ) if (duty > 100) duty = 100; 800c3c6: 2864 cmp r0, #100 @ 0x64 800c3c8: bf28 it cs 800c3ca: 2064 movcs r0, #100 @ 0x64 pwm_duty_percent = duty; 800c3cc: 7018 strb r0, [r3, #0] } 800c3ce: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} CP_SetDuty(duty); 800c3d2: f7fd be75 b.w 800a0c0 ev_enable_output = (p->enable_output != 0); 800c3d6: 7833 ldrb r3, [r6, #0] 800c3d8: 4a2b ldr r2, [pc, #172] @ (800c488 ) 800c3da: 3b00 subs r3, #0 800c3dc: bf18 it ne 800c3de: 2301 movne r3, #1 800c3e0: 7013 strb r3, [r2, #0] } 800c3e2: bdf8 pop {r3, r4, r5, r6, r7, pc} if (p->reset) { 800c3e4: 7833 ldrb r3, [r6, #0] 800c3e6: 2b00 cmp r3, #0 800c3e8: d0ea beq.n 800c3c0 } 800c3ea: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} log_printf(LOG_WARN, "Everest reset command\n"); 800c3ee: 2005 movs r0, #5 800c3f0: 4926 ldr r1, [pc, #152] @ (800c48c ) 800c3f2: f7fe b897 b.w 800a524 enabled = (p->enable != 0); 800c3f6: 7833 ldrb r3, [r6, #0] 800c3f8: 4a25 ldr r2, [pc, #148] @ (800c490 ) 800c3fa: 3b00 subs r3, #0 800c3fc: bf18 it ne 800c3fe: 2301 movne r3, #1 800c400: 7013 strb r3, [r2, #0] } 800c402: bdf8 pop {r3, r4, r5, r6, r7, pc} CP_SetDuty(pwm_duty_percent); 800c404: 4b1f ldr r3, [pc, #124] @ (800c484 ) 800c406: 7818 ldrb r0, [r3, #0] } 800c408: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} CP_SetDuty(pwm_duty_percent); 800c40c: f7fd be58 b.w 800a0c0 CONN.RequestedVoltage = p->voltage_V; 800c410: 8832 ldrh r2, [r6, #0] 800c412: 4b20 ldr r3, [pc, #128] @ (800c494 ) 800c414: f8a3 200f strh.w r2, [r3, #15] CONN.WantedCurrent = p->current_0p1A; 800c418: 8872 ldrh r2, [r6, #2] 800c41a: f8a3 201b strh.w r2, [r3, #27] } 800c41e: bdf8 pop {r3, r4, r5, r6, r7, pc} isolation_enable = p->command; 800c420: 7832 ldrb r2, [r6, #0] 800c422: 4b1d ldr r3, [pc, #116] @ (800c498 ) 800c424: 701a strb r2, [r3, #0] } 800c426: bdf8 pop {r3, r4, r5, r6, r7, pc} memcpy(&CCS_EvInfo, payload, sizeof(CCS_EvInfo_t)); 800c428: 4f1c ldr r7, [pc, #112] @ (800c49c ) 800c42a: 4634 mov r4, r6 800c42c: 463e mov r6, r7 800c42e: f104 0c20 add.w ip, r4, #32 800c432: 4635 mov r5, r6 800c434: 6820 ldr r0, [r4, #0] 800c436: 6861 ldr r1, [r4, #4] 800c438: 68a2 ldr r2, [r4, #8] 800c43a: 68e3 ldr r3, [r4, #12] 800c43c: 3410 adds r4, #16 800c43e: 4564 cmp r4, ip 800c440: c50f stmia r5!, {r0, r1, r2, r3} 800c442: f106 0610 add.w r6, r6, #16 800c446: d1f4 bne.n 800c432 800c448: 6861 ldr r1, [r4, #4] 800c44a: 68a2 ldr r2, [r4, #8] 800c44c: 6820 ldr r0, [r4, #0] 800c44e: c607 stmia r6!, {r0, r1, r2} CONN.SOC = (uint8_t)(CCS_EvInfo.soc / 10); 800c450: 4a13 ldr r2, [pc, #76] @ (800c4a0 ) 800c452: 887b ldrh r3, [r7, #2] 800c454: 490f ldr r1, [pc, #60] @ (800c494 ) 800c456: fba2 2303 umull r2, r3, r2, r3 800c45a: 08db lsrs r3, r3, #3 800c45c: 708b strb r3, [r1, #2] } 800c45e: bdf8 pop {r3, r4, r5, r6, r7, pc} CCS_EvseState = (CONN_State_t)payload[0]; 800c460: 7832 ldrb r2, [r6, #0] 800c462: 4b10 ldr r3, [pc, #64] @ (800c4a4 ) 800c464: 701a strb r2, [r3, #0] } 800c466: bdf8 pop {r3, r4, r5, r6, r7, pc} log_printf(LOG_WARN, 800c468: 4622 mov r2, r4 } 800c46a: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} log_printf(LOG_WARN, 800c46e: 2005 movs r0, #5 800c470: 490d ldr r1, [pc, #52] @ (800c4a8 ) 800c472: f7fe b857 b.w 800a524 800c476: bf00 nop 800c478: 20000b94 .word 0x20000b94 800c47c: 20000b90 .word 0x20000b90 800c480: 20000b98 .word 0x20000b98 800c484: 2000004e .word 0x2000004e 800c488: 20000989 .word 0x20000989 800c48c: 08016cf0 .word 0x08016cf0 800c490: 20000b8e .word 0x20000b8e 800c494: 20000398 .word 0x20000398 800c498: 20000b8f .word 0x20000b8f 800c49c: 20000bc4 .word 0x20000bc4 800c4a0: cccccccd .word 0xcccccccd 800c4a4: 20000bf0 .word 0x20000bf0 800c4a8: 08016d08 .word 0x08016d08 0800c4ac : ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len) { 800c4ac: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} if (packet_len < 3u) { 800c4b0: 2902 cmp r1, #2 ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len) { 800c4b2: 460c mov r4, r1 800c4b4: 4605 mov r5, r0 800c4b6: b084 sub sp, #16 if (packet_len < 3u) { 800c4b8: d930 bls.n 800c51c 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; 800c4ba: 1843 adds r3, r0, r1 uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | 800c4bc: f813 2c01 ldrb.w r2, [r3, #-1] 800c4c0: f813 7c02 ldrb.w r7, [r3, #-2] uint16_t payload_len = (uint16_t)(packet_len - 3u); 800c4c4: 1ece subs r6, r1, #3 uint16_t calculated_crc = crc16_ibm(packet, (uint16_t)(1u + payload_len)); 800c4c6: 3902 subs r1, #2 800c4c8: b289 uxth r1, r1 uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | 800c4ca: ea47 2702 orr.w r7, r7, r2, lsl #8 uint8_t cmd = packet[0]; 800c4ce: f890 8000 ldrb.w r8, [r0] uint16_t calculated_crc = crc16_ibm(packet, (uint16_t)(1u + payload_len)); 800c4d2: f7ff fdb9 bl 800c048 if (received_crc != calculated_crc) { 800c4d6: 4287 cmp r7, r0 uint16_t payload_len = (uint16_t)(packet_len - 3u); 800c4d8: b2b6 uxth r6, r6 if (received_crc != calculated_crc) { 800c4da: d112 bne.n 800c502 cmd, (unsigned)packet_len, (unsigned)payload_len, (unsigned)received_crc, (unsigned)calculated_crc); return 0; } uint16_t expected_len = expected_payload_len(cmd); 800c4dc: 4640 mov r0, r8 800c4de: f7ff ff49 bl 800c374 if (expected_len == 0xFFFFu) { 800c4e2: f64f 72ff movw r2, #65535 @ 0xffff 800c4e6: 4290 cmp r0, r2 800c4e8: d03a beq.n 800c560 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) { 800c4ea: 4286 cmp r6, r0 800c4ec: d12a bne.n 800c544 cmd, (unsigned)expected_len, (unsigned)payload_len, (unsigned)packet_len); return 0; } if (payload_len > 0) { apply_command(cmd, &packet[1], payload_len); 800c4ee: 4632 mov r2, r6 if (payload_len > 0) { 800c4f0: b9fe cbnz r6, 800c532 } else { apply_command(cmd, NULL, 0); 800c4f2: 4631 mov r1, r6 800c4f4: 4640 mov r0, r8 800c4f6: f7ff ff49 bl 800c38c } return 1; 800c4fa: 2001 movs r0, #1 } 800c4fc: b004 add sp, #16 800c4fe: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} log_printf(LOG_ERR, 800c502: 9002 str r0, [sp, #8] 800c504: 4623 mov r3, r4 800c506: 4642 mov r2, r8 800c508: 2004 movs r0, #4 800c50a: e9cd 6700 strd r6, r7, [sp] 800c50e: 4918 ldr r1, [pc, #96] @ (800c570 ) 800c510: f7fe f808 bl 800a524 return 0; 800c514: 2000 movs r0, #0 } 800c516: b004 add sp, #16 800c518: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} if (packet_len == 0u) { 800c51c: b1d9 cbz r1, 800c556 } else if (packet_len == 1u) { 800c51e: 2901 cmp r1, #1 log_printf(LOG_WARN, "UART3 RX drop: too_short len=1 b0=0x%02x\n", packet[0]); 800c520: 7802 ldrb r2, [r0, #0] 800c522: f04f 0005 mov.w r0, #5 } else if (packet_len == 1u) { 800c526: d009 beq.n 800c53c log_printf(LOG_WARN, "UART3 RX drop: too_short len=2 b0=0x%02x b1=0x%02x\n", 800c528: 786b ldrb r3, [r5, #1] 800c52a: 4912 ldr r1, [pc, #72] @ (800c574 ) 800c52c: f7fd fffa bl 800a524 800c530: e7f0 b.n 800c514 apply_command(cmd, &packet[1], payload_len); 800c532: 4640 mov r0, r8 800c534: 1c69 adds r1, r5, #1 800c536: f7ff ff29 bl 800c38c 800c53a: e7de b.n 800c4fa log_printf(LOG_WARN, "UART3 RX drop: too_short len=1 b0=0x%02x\n", packet[0]); 800c53c: 490e ldr r1, [pc, #56] @ (800c578 ) 800c53e: f7fd fff1 bl 800a524 800c542: e7e7 b.n 800c514 log_printf(LOG_ERR, 800c544: 4603 mov r3, r0 800c546: 4642 mov r2, r8 800c548: e9cd 6400 strd r6, r4, [sp] 800c54c: 490b ldr r1, [pc, #44] @ (800c57c ) 800c54e: 2004 movs r0, #4 800c550: f7fd ffe8 bl 800a524 return 0; 800c554: e7de b.n 800c514 log_printf(LOG_WARN, "UART3 RX drop: too_short len=0 (empty chunk)\n"); 800c556: 490a ldr r1, [pc, #40] @ (800c580 ) 800c558: 2005 movs r0, #5 800c55a: f7fd ffe3 bl 800a524 800c55e: e7d9 b.n 800c514 log_printf(LOG_WARN, 800c560: 4623 mov r3, r4 800c562: 4642 mov r2, r8 800c564: 4907 ldr r1, [pc, #28] @ (800c584 ) 800c566: 9600 str r6, [sp, #0] 800c568: 2005 movs r0, #5 800c56a: f7fd ffdb bl 800a524 return 0; 800c56e: e7d1 b.n 800c514 800c570: 08016df8 .word 0x08016df8 800c574: 08016dc4 .word 0x08016dc4 800c578: 08016d98 .word 0x08016d98 800c57c: 08016ea0 .word 0x08016ea0 800c580: 08016d68 .word 0x08016d68 800c584: 08016e5c .word 0x08016e5c 0800c588 : static void CCS_UART3_Watchdog(void) { 800c588: b580 push {r7, lr} 800c58a: b082 sub sp, #8 800c58c: af00 add r7, sp, #0 const uint32_t now = HAL_GetTick(); 800c58e: f001 fc2b bl 800dde8 800c592: 6078 str r0, [r7, #4] const uint32_t since_last_packet = now - uart3_last_packet_tick; 800c594: 4b16 ldr r3, [pc, #88] @ (800c5f0 ) 800c596: 681b ldr r3, [r3, #0] 800c598: 687a ldr r2, [r7, #4] 800c59a: 1ad3 subs r3, r2, r3 800c59c: 603b str r3, [r7, #0] if ((since_last_packet >= UART3_REINIT_TIMEOUT_MS) && 800c59e: 683b ldr r3, [r7, #0] 800c5a0: f240 52db movw r2, #1499 @ 0x5db 800c5a4: 4293 cmp r3, r2 800c5a6: d91f bls.n 800c5e8 ((now - uart3_last_reinit_tick) >= UART3_REINIT_TIMEOUT_MS)) { 800c5a8: 4b12 ldr r3, [pc, #72] @ (800c5f4 ) 800c5aa: 681b ldr r3, [r3, #0] 800c5ac: 687a ldr r2, [r7, #4] 800c5ae: 1ad3 subs r3, r2, r3 if ((since_last_packet >= UART3_REINIT_TIMEOUT_MS) && 800c5b0: f240 52db movw r2, #1499 @ 0x5db 800c5b4: 4293 cmp r3, r2 800c5b6: d917 bls.n 800c5e8 (void)HAL_UART_Abort_IT(&huart3); 800c5b8: 480f ldr r0, [pc, #60] @ (800c5f8 ) 800c5ba: f006 fbb9 bl 8012d30 (void)HAL_UART_DeInit(&huart3); 800c5be: 480e ldr r0, [pc, #56] @ (800c5f8 ) 800c5c0: f006 faf2 bl 8012ba8 (void)HAL_UART_Init(&huart3); 800c5c4: 480c ldr r0, [pc, #48] @ (800c5f8 ) 800c5c6: f006 fa9f bl 8012b08 (void)HAL_UARTEx_ReceiveToIdle_IT(&huart3, rx_buffer, sizeof(rx_buffer)); 800c5ca: f44f 7280 mov.w r2, #256 @ 0x100 800c5ce: 490b ldr r1, [pc, #44] @ (800c5fc ) 800c5d0: 4809 ldr r0, [pc, #36] @ (800c5f8 ) 800c5d2: f006 fb50 bl 8012c76 log_printf(LOG_ERR, 800c5d6: f240 52dc movw r2, #1500 @ 0x5dc 800c5da: 4909 ldr r1, [pc, #36] @ (800c600 ) 800c5dc: 2004 movs r0, #4 800c5de: f7fd ffa1 bl 800a524 "UART3 RX recover: stalled (no RxEvent data for %ums), hard reinit\n", (unsigned)UART3_REINIT_TIMEOUT_MS); uart3_last_reinit_tick = now; 800c5e2: 4a04 ldr r2, [pc, #16] @ (800c5f4 ) 800c5e4: 687b ldr r3, [r7, #4] 800c5e6: 6013 str r3, [r2, #0] } } 800c5e8: bf00 nop 800c5ea: 3708 adds r7, #8 800c5ec: 46bd mov sp, r7 800c5ee: bd80 pop {r7, pc} 800c5f0: 20000b9c .word 0x20000b9c 800c5f4: 20000ba0 .word 0x20000ba0 800c5f8: 20001200 .word 0x20001200 800c5fc: 2000098c .word 0x2000098c 800c600: 08016ef8 .word 0x08016ef8 0800c604 : .fw_version_major = 0, .fw_version_minor = 0, .fw_version_patch = 0, }; void ReadVersion(){ 800c604: b480 push {r7} 800c606: af00 add r7, sp, #0 infoPacket.serialNumber = InfoBlock->serialNumber; 800c608: 4b0e ldr r3, [pc, #56] @ (800c644 ) 800c60a: 681b ldr r3, [r3, #0] 800c60c: 681b ldr r3, [r3, #0] 800c60e: b29a uxth r2, r3 800c610: 4b0d ldr r3, [pc, #52] @ (800c648 ) 800c612: 801a strh r2, [r3, #0] infoPacket.boardVersion = InfoBlock->boardVersion; 800c614: 4b0b ldr r3, [pc, #44] @ (800c644 ) 800c616: 681b ldr r3, [r3, #0] 800c618: 795a ldrb r2, [r3, #5] 800c61a: 4b0b ldr r3, [pc, #44] @ (800c648 ) 800c61c: 709a strb r2, [r3, #2] infoPacket.stationType = InfoBlock->stationType; 800c61e: 4b09 ldr r3, [pc, #36] @ (800c644 ) 800c620: 681b ldr r3, [r3, #0] 800c622: 791a ldrb r2, [r3, #4] 800c624: 4b08 ldr r3, [pc, #32] @ (800c648 ) 800c626: 70da strb r2, [r3, #3] infoPacket.fw_version_major = FW_VERSION_MAJOR; 800c628: 4b07 ldr r3, [pc, #28] @ (800c648 ) 800c62a: 2201 movs r2, #1 800c62c: 809a strh r2, [r3, #4] infoPacket.fw_version_minor = FW_VERSION_MINOR; 800c62e: 4b06 ldr r3, [pc, #24] @ (800c648 ) 800c630: 2200 movs r2, #0 800c632: 80da strh r2, [r3, #6] infoPacket.fw_version_patch = FW_VERSION_PATCH; 800c634: 4b04 ldr r3, [pc, #16] @ (800c648 ) 800c636: 2210 movs r2, #16 800c638: 811a strh r2, [r3, #8] } 800c63a: bf00 nop 800c63c: 46bd mov sp, r7 800c63e: bc80 pop {r7} 800c640: 4770 bx lr 800c642: bf00 nop 800c644: 20000000 .word 0x20000000 800c648: 20001088 .word 0x20001088 0800c64c : // Внешняя функция обработки команд (определена в serial_handler.c) extern void SC_CommandHandler(ReceivedCommand_t* cmd); void SC_Init() { 800c64c: b580 push {r7, lr} 800c64e: af00 add r7, sp, #0 // Обнуляем структуру memset(&serial_control, 0, sizeof(SerialControl_t)); 800c650: f44f 7204 mov.w r2, #528 @ 0x210 800c654: 2100 movs r1, #0 800c656: 480d ldr r0, [pc, #52] @ (800c68c ) 800c658: f007 ff5a bl 8014510 memset(&serial_iso, 0, sizeof(serial_iso)); 800c65c: f44f 7204 mov.w r2, #528 @ 0x210 800c660: 2100 movs r1, #0 800c662: 480b ldr r0, [pc, #44] @ (800c690 ) 800c664: f007 ff54 bl 8014510 sc_uart2_timed_out = 0; 800c668: 4b0a ldr r3, [pc, #40] @ (800c694 ) 800c66a: 2200 movs r2, #0 800c66c: 701a strb r2, [r3, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800c66e: f001 fbbb bl 800dde8 800c672: 4603 mov r3, r0 800c674: 4a08 ldr r2, [pc, #32] @ (800c698 ) 800c676: 6013 str r3, [r2, #0] sc_uart2_last_reinit_tick = sc_uart2_last_packet_tick; 800c678: 4b07 ldr r3, [pc, #28] @ (800c698 ) 800c67a: 681b ldr r3, [r3, #0] 800c67c: 4a07 ldr r2, [pc, #28] @ (800c69c ) 800c67e: 6013 str r3, [r2, #0] sc_uart2_rx_during_tx = 0; 800c680: 4b07 ldr r3, [pc, #28] @ (800c6a0 ) 800c682: 2200 movs r2, #0 800c684: 701a strb r2, [r3, #0] } 800c686: bf00 nop 800c688: bd80 pop {r7, pc} 800c68a: bf00 nop 800c68c: 20000c00 .word 0x20000c00 800c690: 20000e10 .word 0x20000e10 800c694: 20001021 .word 0x20001021 800c698: 20001024 .word 0x20001024 800c69c: 20001028 .word 0x20001028 800c6a0: 2000102c .word 0x2000102c 0800c6a4 : void SC_Task() { 800c6a4: b580 push {r7, lr} 800c6a6: af00 add r7, sp, #0 SC_UART2_Watchdog(); 800c6a8: f000 f9e8 bl 800ca7c // Запуск приема в режиме прерывания с ожиданием idle if ((huart2.RxState == HAL_UART_STATE_READY) && (serial_control.command_ready == 0)) { 800c6ac: 4b3c ldr r3, [pc, #240] @ (800c7a0 ) 800c6ae: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800c6b2: b2db uxtb r3, r3 800c6b4: 2b20 cmp r3, #32 800c6b6: d116 bne.n 800c6e6 800c6b8: 4b3a ldr r3, [pc, #232] @ (800c7a4 ) 800c6ba: f893 3208 ldrb.w r3, [r3, #520] @ 0x208 800c6be: b2db uxtb r3, r3 800c6c0: 2b00 cmp r3, #0 800c6c2: d110 bne.n 800c6e6 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c6c4: 22ff movs r2, #255 @ 0xff 800c6c6: 4938 ldr r1, [pc, #224] @ (800c7a8 ) 800c6c8: 4835 ldr r0, [pc, #212] @ (800c7a0 ) 800c6ca: f006 fad4 bl 8012c76 800c6ce: 4603 mov r3, r0 800c6d0: 2b00 cmp r3, #0 800c6d2: d008 beq.n 800c6e6 (HAL_UART_GetError(&huart2) != HAL_UART_ERROR_NONE)) { 800c6d4: 4832 ldr r0, [pc, #200] @ (800c7a0 ) 800c6d6: f006 fee3 bl 80134a0 800c6da: 4603 mov r3, r0 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c6dc: 2b00 cmp r3, #0 800c6de: d002 beq.n 800c6e6 (void)HAL_UART_Abort_IT(&huart2); 800c6e0: 482f ldr r0, [pc, #188] @ (800c7a0 ) 800c6e2: f006 fb25 bl 8012d30 } } if (huart5.RxState == HAL_UART_STATE_READY) { 800c6e6: 4b31 ldr r3, [pc, #196] @ (800c7ac ) 800c6e8: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800c6ec: b2db uxtb r3, r3 800c6ee: 2b20 cmp r3, #32 800c6f0: d110 bne.n 800c714 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c6f2: 22ff movs r2, #255 @ 0xff 800c6f4: 492e ldr r1, [pc, #184] @ (800c7b0 ) 800c6f6: 482d ldr r0, [pc, #180] @ (800c7ac ) 800c6f8: f006 fabd bl 8012c76 800c6fc: 4603 mov r3, r0 800c6fe: 2b00 cmp r3, #0 800c700: d008 beq.n 800c714 (HAL_UART_GetError(&huart5) != HAL_UART_ERROR_NONE)) { 800c702: 482a ldr r0, [pc, #168] @ (800c7ac ) 800c704: f006 fecc bl 80134a0 800c708: 4603 mov r3, r0 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c70a: 2b00 cmp r3, #0 800c70c: d002 beq.n 800c714 (void)HAL_UART_Abort_IT(&huart5); 800c70e: 4827 ldr r0, [pc, #156] @ (800c7ac ) 800c710: f006 fb0e bl 8012d30 } } // Проверка таймаута отправки пакета (больше 100 мс) if (huart2.gState == HAL_UART_STATE_BUSY_TX && serial_control.tx_tick != 0) { 800c714: 4b22 ldr r3, [pc, #136] @ (800c7a0 ) 800c716: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800c71a: b2db uxtb r3, r3 800c71c: 2b21 cmp r3, #33 @ 0x21 800c71e: d119 bne.n 800c754 800c720: 4b20 ldr r3, [pc, #128] @ (800c7a4 ) 800c722: f8d3 320c ldr.w r3, [r3, #524] @ 0x20c 800c726: 2b00 cmp r3, #0 800c728: d014 beq.n 800c754 if ((HAL_GetTick() - serial_control.tx_tick) > 100) { 800c72a: f001 fb5d bl 800dde8 800c72e: 4602 mov r2, r0 800c730: 4b1c ldr r3, [pc, #112] @ (800c7a4 ) 800c732: f8d3 320c ldr.w r3, [r3, #524] @ 0x20c 800c736: 1ad3 subs r3, r2, r3 800c738: 2b64 cmp r3, #100 @ 0x64 800c73a: d90b bls.n 800c754 // Таймаут: принудительно сбрасываем передачу HAL_UART_Abort_IT(&huart2); 800c73c: 4818 ldr r0, [pc, #96] @ (800c7a0 ) 800c73e: f006 faf7 bl 8012d30 // Выключаем DIR при сбросе передачи HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800c742: 2200 movs r2, #0 800c744: 2110 movs r1, #16 800c746: 481b ldr r0, [pc, #108] @ (800c7b4 ) 800c748: f003 ffc9 bl 80106de serial_control.tx_tick = 0; // Сбрасываем tick 800c74c: 4b15 ldr r3, [pc, #84] @ (800c7a4 ) 800c74e: 2200 movs r2, #0 800c750: f8c3 220c str.w r2, [r3, #524] @ 0x20c } } // Проверка наличия принятой команды для обработки if (serial_control.command_ready && (huart2.gState != HAL_UART_STATE_BUSY_TX)) { 800c754: 4b13 ldr r3, [pc, #76] @ (800c7a4 ) 800c756: f893 3208 ldrb.w r3, [r3, #520] @ 0x208 800c75a: b2db uxtb r3, r3 800c75c: 2b00 cmp r3, #0 800c75e: d01d beq.n 800c79c 800c760: 4b0f ldr r3, [pc, #60] @ (800c7a0 ) 800c762: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800c766: b2db uxtb r3, r3 800c768: 2b21 cmp r3, #33 @ 0x21 800c76a: d017 beq.n 800c79c // HAL_Delay(2); SC_CommandHandler(&serial_control.received_command); 800c76c: 4812 ldr r0, [pc, #72] @ (800c7b8 ) 800c76e: f000 fa25 bl 800cbbc if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c772: 22ff movs r2, #255 @ 0xff 800c774: 490c ldr r1, [pc, #48] @ (800c7a8 ) 800c776: 480a ldr r0, [pc, #40] @ (800c7a0 ) 800c778: f006 fa7d bl 8012c76 800c77c: 4603 mov r3, r0 800c77e: 2b00 cmp r3, #0 800c780: d008 beq.n 800c794 (HAL_UART_GetError(&huart2) != HAL_UART_ERROR_NONE)) { 800c782: 4807 ldr r0, [pc, #28] @ (800c7a0 ) 800c784: f006 fe8c bl 80134a0 800c788: 4603 mov r3, r0 if ((HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) && 800c78a: 2b00 cmp r3, #0 800c78c: d002 beq.n 800c794 (void)HAL_UART_Abort_IT(&huart2); 800c78e: 4804 ldr r0, [pc, #16] @ (800c7a0 ) 800c790: f006 face bl 8012d30 } serial_control.command_ready = 0; // Сбрасываем флаг 800c794: 4b03 ldr r3, [pc, #12] @ (800c7a4 ) 800c796: 2200 movs r2, #0 800c798: f883 2208 strb.w r2, [r3, #520] @ 0x208 } } 800c79c: bf00 nop 800c79e: bd80 pop {r7, pc} 800c7a0: 200011b8 .word 0x200011b8 800c7a4: 20000c00 .word 0x20000c00 800c7a8: 20000d00 .word 0x20000d00 800c7ac: 20001128 .word 0x20001128 800c7b0: 20000f10 .word 0x20000f10 800c7b4: 40011400 .word 0x40011400 800c7b8: 20000e00 .word 0x20000e00 0800c7bc : ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { 800c7bc: b570 push {r4, r5, r6, lr} if (huart->Instance == huart2.Instance) { 800c7be: 4c28 ldr r4, [pc, #160] @ (800c860 ) 800c7c0: 6803 ldr r3, [r0, #0] 800c7c2: 6822 ldr r2, [r4, #0] ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { 800c7c4: 460d mov r5, r1 if (huart->Instance == huart2.Instance) { 800c7c6: 4293 cmp r3, r2 800c7c8: d008 beq.n 800c7dc 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) { 800c7ca: 4a26 ldr r2, [pc, #152] @ (800c864 ) 800c7cc: 6812 ldr r2, [r2, #0] 800c7ce: 4293 cmp r3, r2 800c7d0: d02c beq.n 800c82c 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) { 800c7d2: 4a25 ldr r2, [pc, #148] @ (800c868 ) 800c7d4: 6812 ldr r2, [r2, #0] 800c7d6: 4293 cmp r3, r2 800c7d8: d024 beq.n 800c824 CCS_RxEventCallback(huart, Size); } } 800c7da: bd70 pop {r4, r5, r6, pc} if (huart2.gState == HAL_UART_STATE_BUSY_TX) { 800c7dc: f894 3041 ldrb.w r3, [r4, #65] @ 0x41 800c7e0: 2b21 cmp r3, #33 @ 0x21 800c7e2: d01b beq.n 800c81c sc_uart2_last_packet_tick = HAL_GetTick(); 800c7e4: f001 fb00 bl 800dde8 sc_uart2_timed_out = 0; 800c7e8: 2200 movs r2, #0 800c7ea: 4b20 ldr r3, [pc, #128] @ (800c86c ) if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800c7ec: 4920 ldr r1, [pc, #128] @ (800c870 ) sc_uart2_timed_out = 0; 800c7ee: 701a strb r2, [r3, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800c7f0: 4603 mov r3, r0 800c7f2: 4e20 ldr r6, [pc, #128] @ (800c874 ) sc_uart2_last_reinit_tick = sc_uart2_last_packet_tick; 800c7f4: 4c20 ldr r4, [pc, #128] @ (800c878 ) if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800c7f6: f5a1 7080 sub.w r0, r1, #256 @ 0x100 800c7fa: 462a mov r2, r5 sc_uart2_last_packet_tick = HAL_GetTick(); 800c7fc: 6033 str r3, [r6, #0] sc_uart2_last_reinit_tick = sc_uart2_last_packet_tick; 800c7fe: 6023 str r3, [r4, #0] if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800c800: f000 f92e bl 800ca60 800c804: 4601 mov r1, r0 800c806: b1f8 cbz r0, 800c848 g_sc_command_source = SC_SOURCE_UART2; 800c808: 2400 movs r4, #0 800c80a: 4b1c ldr r3, [pc, #112] @ (800c87c ) HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800c80c: 22ff movs r2, #255 @ 0xff g_sc_command_source = SC_SOURCE_UART2; 800c80e: 701c strb r4, [r3, #0] HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800c810: 4917 ldr r1, [pc, #92] @ (800c870 ) 800c812: 4813 ldr r0, [pc, #76] @ (800c860 ) } 800c814: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800c818: f006 ba2d b.w 8012c76 sc_uart2_rx_during_tx = 1u; 800c81c: 2201 movs r2, #1 800c81e: 4b18 ldr r3, [pc, #96] @ (800c880 ) 800c820: 701a strb r2, [r3, #0] 800c822: e7df b.n 800c7e4 } 800c824: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} CCS_RxEventCallback(huart, Size); 800c828: f7ff b93a b.w 800baa0 if (process_received_packet(&serial_iso, serial_iso.rx_buffer, Size)) { 800c82c: 4915 ldr r1, [pc, #84] @ (800c884 ) 800c82e: 462a mov r2, r5 800c830: f5a1 7080 sub.w r0, r1, #256 @ 0x100 800c834: f000 f914 bl 800ca60 800c838: b950 cbnz r0, 800c850 } 800c83a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800c83e: 22ff movs r2, #255 @ 0xff 800c840: 4910 ldr r1, [pc, #64] @ (800c884 ) 800c842: 4808 ldr r0, [pc, #32] @ (800c864 ) 800c844: f006 ba17 b.w 8012c76 SC_SendPacket(NULL, 0, RESP_INVALID); 800c848: 2214 movs r2, #20 800c84a: f000 f8af bl 800c9ac 800c84e: e7db b.n 800c808 g_sc_command_source = SC_SOURCE_UART5; 800c850: 2201 movs r2, #1 800c852: 4b0a ldr r3, [pc, #40] @ (800c87c ) SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); 800c854: 480c ldr r0, [pc, #48] @ (800c888 ) g_sc_command_source = SC_SOURCE_UART5; 800c856: 701a strb r2, [r3, #0] SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); 800c858: f000 f9b0 bl 800cbbc 800c85c: e7ed b.n 800c83a 800c85e: bf00 nop 800c860: 200011b8 .word 0x200011b8 800c864: 20001128 .word 0x20001128 800c868: 20001200 .word 0x20001200 800c86c: 20001021 .word 0x20001021 800c870: 20000d00 .word 0x20000d00 800c874: 20001024 .word 0x20001024 800c878: 20001028 .word 0x20001028 800c87c: 20001020 .word 0x20001020 800c880: 2000102c .word 0x2000102c 800c884: 20000f10 .word 0x20000f10 800c888: 20001010 .word 0x20001010 0800c88c : ISR_FAST void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { 800c88c: b508 push {r3, lr} if (huart->Instance == huart2.Instance) { 800c88e: 4b08 ldr r3, [pc, #32] @ (800c8b0 ) 800c890: 6802 ldr r2, [r0, #0] 800c892: 681b ldr r3, [r3, #0] 800c894: 429a cmp r2, r3 800c896: d000 beq.n 800c89a HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); serial_control.tx_tick = 0; } } 800c898: bd08 pop {r3, pc} HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800c89a: 2200 movs r2, #0 800c89c: 2110 movs r1, #16 800c89e: 4805 ldr r0, [pc, #20] @ (800c8b4 ) 800c8a0: f003 ff1d bl 80106de serial_control.tx_tick = 0; 800c8a4: 2200 movs r2, #0 800c8a6: 4b04 ldr r3, [pc, #16] @ (800c8b8 ) 800c8a8: f8c3 220c str.w r2, [r3, #524] @ 0x20c } 800c8ac: bd08 pop {r3, pc} 800c8ae: bf00 nop 800c8b0: 200011b8 .word 0x200011b8 800c8b4: 40011400 .word 0x40011400 800c8b8: 20000c00 .word 0x20000c00 0800c8bc : // Полностью программная реализация 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++) { 800c8bc: b3c9 cbz r1, 800c932 uint32_t crc = 0xFFFFFFFFu; 800c8be: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff ISR_FAST static uint32_t calculate_crc32(const uint8_t* data, uint16_t length) { 800c8c2: b500 push {lr} crc ^= data[i]; for (uint8_t bit = 0; bit < 8; bit++) { if (crc & 0x1u) { 800c8c4: 4a1c ldr r2, [pc, #112] @ (800c938 ) 800c8c6: 4401 add r1, r0 crc ^= data[i]; 800c8c8: f810 eb01 ldrb.w lr, [r0], #1 800c8cc: ea8e 0e03 eor.w lr, lr, r3 if (crc & 0x1u) { 800c8d0: f34e 0300 sbfx r3, lr, #0, #1 800c8d4: f34e 0c40 sbfx ip, lr, #1, #1 800c8d8: 4013 ands r3, r2 800c8da: ea83 035e eor.w r3, r3, lr, lsr #1 800c8de: ea0c 0c02 and.w ip, ip, r2 800c8e2: ea8c 0c53 eor.w ip, ip, r3, lsr #1 800c8e6: f343 0340 sbfx r3, r3, #1, #1 800c8ea: f34c 0e40 sbfx lr, ip, #1, #1 800c8ee: 4013 ands r3, r2 800c8f0: ea83 035c eor.w r3, r3, ip, lsr #1 800c8f4: ea0e 0e02 and.w lr, lr, r2 800c8f8: ea8e 0e53 eor.w lr, lr, r3, lsr #1 800c8fc: f343 0340 sbfx r3, r3, #1, #1 800c900: f34e 0c40 sbfx ip, lr, #1, #1 800c904: 4013 ands r3, r2 800c906: ea83 035e eor.w r3, r3, lr, lsr #1 800c90a: ea0c 0c02 and.w ip, ip, r2 800c90e: ea8c 0c53 eor.w ip, ip, r3, lsr #1 800c912: f343 0340 sbfx r3, r3, #1, #1 800c916: 4013 ands r3, r2 800c918: f34c 0e40 sbfx lr, ip, #1, #1 800c91c: ea83 035c eor.w r3, r3, ip, lsr #1 for (uint16_t i = 0; i < length; i++) { 800c920: 4281 cmp r1, r0 if (crc & 0x1u) { 800c922: ea0e 0c02 and.w ip, lr, r2 800c926: ea8c 0353 eor.w r3, ip, r3, lsr #1 for (uint16_t i = 0; i < length; i++) { 800c92a: d1cd bne.n 800c8c8 crc >>= 1; } } } return crc ^ 0xFFFFFFFFu; 800c92c: 43d8 mvns r0, r3 } 800c92e: f85d fb04 ldr.w pc, [sp], #4 for (uint16_t i = 0; i < length; i++) { 800c932: 4608 mov r0, r1 } 800c934: 4770 bx lr 800c936: bf00 nop 800c938: edb88320 .word 0xedb88320 0800c93c : ISR_FAST static uint16_t encode_packet(const uint8_t* payload, uint16_t payload_len, uint8_t* output, uint8_t response_code) { 800c93c: b570 push {r4, r5, r6, lr} 800c93e: 4615 mov r5, r2 uint16_t out_index = 0; output[out_index++] = response_code; 800c940: 7013 strb r3, [r2, #0] if (payload != NULL) { 800c942: b360 cbz r0, 800c99e // Просто копируем полезную нагрузку без какого‑либо экранирования for (uint16_t i = 0; i < payload_len; i++) { 800c944: b359 cbz r1, 800c99e output[out_index++] = payload[i]; 800c946: 4694 mov ip, r2 800c948: 2302 movs r3, #2 800c94a: 7802 ldrb r2, [r0, #0] 800c94c: 1e4c subs r4, r1, #1 800c94e: b2a4 uxth r4, r4 800c950: 441c add r4, r3 800c952: f80c 2f01 strb.w r2, [ip, #1]! // Проверка переполнения if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800c956: e005 b.n 800c964 output[out_index++] = payload[i]; 800c958: f810 1f01 ldrb.w r1, [r0, #1]! if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800c95c: 2bfb cmp r3, #251 @ 0xfb output[out_index++] = payload[i]; 800c95e: f80c 1f01 strb.w r1, [ip, #1]! if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800c962: d020 beq.n 800c9a6 for (uint16_t i = 0; i < payload_len; i++) { 800c964: 42a3 cmp r3, r4 if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800c966: f103 0301 add.w r3, r3, #1 for (uint16_t i = 0; i < payload_len; i++) { 800c96a: d1f5 bne.n 800c958 800c96c: b2a1 uxth r1, r4 output[out_index++] = payload[i]; 800c96e: 1c4e adds r6, r1, #1 800c970: b2b6 uxth r6, r6 } } } // Вычисляем CRC для всего содержимого (код ответа + полезная нагрузка) uint32_t crc = calculate_crc32(output, out_index); 800c972: 4628 mov r0, r5 800c974: f7ff ffa2 bl 800c8bc 800c978: 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]; 800c97a: 1c71 adds r1, r6, #1 800c97c: 1cb2 adds r2, r6, #2 800c97e: 552b strb r3, [r5, r4] 800c980: f3c3 2c07 ubfx ip, r3, #8, #8 800c984: f3c3 4407 ubfx r4, r3, #16, #8 800c988: b289 uxth r1, r1 800c98a: b292 uxth r2, r2 800c98c: f3c3 6307 ubfx r3, r3, #24, #8 800c990: f805 c006 strb.w ip, [r5, r6] 800c994: 1cf0 adds r0, r6, #3 800c996: 546c strb r4, [r5, r1] 800c998: 54ab strb r3, [r5, r2] 800c99a: b280 uxth r0, r0 return 0; } } return out_index; } 800c99c: bd70 pop {r4, r5, r6, pc} for (uint16_t i = 0; i < payload_len; i++) { 800c99e: 2401 movs r4, #1 800c9a0: 2602 movs r6, #2 output[out_index++] = response_code; 800c9a2: 4621 mov r1, r4 800c9a4: e7e5 b.n 800c972 return 0; 800c9a6: 2000 movs r0, #0 } 800c9a8: bd70 pop {r4, r5, r6, pc} 800c9aa: bf00 nop 0800c9ac : ISR_FAST void SC_SendPacket(const uint8_t* payload, uint16_t payload_len, uint8_t response_code) { 800c9ac: b538 push {r3, r4, r5, lr} 800c9ae: 4613 mov r3, r2 uint16_t packet_len = encode_packet(payload, payload_len, serial_control.tx_buffer, response_code); 800c9b0: 4a13 ldr r2, [pc, #76] @ (800ca00 ) 800c9b2: f7ff ffc3 bl 800c93c if (packet_len > 0) { 800c9b6: b1c8 cbz r0, 800c9ec if (huart2.gState == HAL_UART_STATE_BUSY_TX) { 800c9b8: 4604 mov r4, r0 800c9ba: 4812 ldr r0, [pc, #72] @ (800ca04 ) 800c9bc: f890 3041 ldrb.w r3, [r0, #65] @ 0x41 800c9c0: 2b21 cmp r3, #33 @ 0x21 800c9c2: d014 beq.n 800c9ee 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); 800c9c4: 2201 movs r2, #1 800c9c6: 2110 movs r1, #16 800c9c8: 480f ldr r0, [pc, #60] @ (800ca08 ) 800c9ca: f003 fe88 bl 80106de sc_uart2_rx_during_tx = 0u; 800c9ce: f04f 0c00 mov.w ip, #0 HAL_UART_Transmit_IT(&huart2, serial_control.tx_buffer, packet_len); 800c9d2: 4d0b ldr r5, [pc, #44] @ (800ca00 ) sc_uart2_rx_during_tx = 0u; 800c9d4: 4b0d ldr r3, [pc, #52] @ (800ca0c ) HAL_UART_Transmit_IT(&huart2, serial_control.tx_buffer, packet_len); 800c9d6: 4629 mov r1, r5 800c9d8: 4622 mov r2, r4 800c9da: 480a ldr r0, [pc, #40] @ (800ca04 ) sc_uart2_rx_during_tx = 0u; 800c9dc: f883 c000 strb.w ip, [r3] HAL_UART_Transmit_IT(&huart2, serial_control.tx_buffer, packet_len); 800c9e0: f006 f914 bl 8012c0c serial_control.tx_tick = HAL_GetTick(); 800c9e4: f001 fa00 bl 800dde8 800c9e8: f8c5 020c str.w r0, [r5, #524] @ 0x20c } } 800c9ec: bd38 pop {r3, r4, r5, pc} HAL_UART_Abort_IT(&huart2); 800c9ee: f006 f99f bl 8012d30 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800c9f2: 2200 movs r2, #0 800c9f4: 2110 movs r1, #16 800c9f6: 4804 ldr r0, [pc, #16] @ (800ca08 ) 800c9f8: f003 fe71 bl 80106de 800c9fc: e7e2 b.n 800c9c4 800c9fe: bf00 nop 800ca00: 20000c00 .word 0x20000c00 800ca04: 200011b8 .word 0x200011b8 800ca08: 40011400 .word 0x40011400 800ca0c: 2000102c .word 0x2000102c 0800ca10 : ISR_FAST static uint8_t parse_packet(const uint8_t* packet_data, uint16_t packet_len, ReceivedCommand_t* out_cmd) { 800ca10: e92d 4178 stmdb sp!, {r3, r4, r5, r6, r8, lr} // }else{ // test_crc_invalid = 5; // } // Минимальный размер: 1 байт команды + 4 байта CRC if (packet_len < 5) return 0; 800ca14: 1f4b subs r3, r1, #5 800ca16: 2bfb cmp r3, #251 @ 0xfb 800ca18: d813 bhi.n 800ca42 if (packet_len > MAX_RX_BUFFER_SIZE) return 0; uint16_t payload_length = packet_len - 4; 800ca1a: 3904 subs r1, #4 800ca1c: 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) | 800ca1e: 1903 adds r3, r0, r4 ((uint32_t)packet_data[payload_length + 2] << 16) | 800ca20: 789d ldrb r5, [r3, #2] 800ca22: 4690 mov r8, r2 ((uint32_t)packet_data[payload_length + 1] << 8) | 800ca24: 785a ldrb r2, [r3, #1] ((uint32_t)packet_data[payload_length + 2] << 16) | 800ca26: 042d lsls r5, r5, #16 ((uint32_t)packet_data[payload_length + 1] << 8) | 800ca28: ea45 2502 orr.w r5, r5, r2, lsl #8 ((uint32_t)packet_data[payload_length] << 0) | 800ca2c: 5d02 ldrb r2, [r0, r4] ((uint32_t)packet_data[payload_length + 3] << 24); 800ca2e: 78db ldrb r3, [r3, #3] ((uint32_t)packet_data[payload_length + 1] << 8) | 800ca30: 4315 orrs r5, r2 // Вычисляем CRC для полезной нагрузки uint32_t calculated_checksum = calculate_crc32(packet_data, payload_length); 800ca32: 4621 mov r1, r4 uint32_t received_checksum = 800ca34: ea45 6503 orr.w r5, r5, r3, lsl #24 uint32_t calculated_checksum = calculate_crc32(packet_data, payload_length); 800ca38: 4606 mov r6, r0 800ca3a: f7ff ff3f bl 800c8bc if (received_checksum != calculated_checksum) return 0; // CRC не совпадает 800ca3e: 4285 cmp r5, r0 800ca40: d002 beq.n 800ca48 if (packet_len < 5) return 0; 800ca42: 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; } 800ca44: e8bd 8178 ldmia.w sp!, {r3, r4, r5, r6, r8, pc} out_cmd->argument = (void *)&packet_data[1]; 800ca48: 1c73 adds r3, r6, #1 800ca4a: f8c8 3004 str.w r3, [r8, #4] out_cmd->command = packet_data[0]; 800ca4e: 7833 ldrb r3, [r6, #0] out_cmd->argument_length = (uint8_t)(payload_length - 1); 800ca50: 3c01 subs r4, #1 out_cmd->command = packet_data[0]; 800ca52: f888 3000 strb.w r3, [r8] out_cmd->argument_length = (uint8_t)(payload_length - 1); 800ca56: f888 4001 strb.w r4, [r8, #1] return 1; 800ca5a: 2001 movs r0, #1 } 800ca5c: e8bd 8178 ldmia.w sp!, {r3, r4, r5, r6, r8, pc} 0800ca60 : ISR_FAST static uint8_t process_received_packet(SerialControl_t *ctx, const uint8_t* packet_data, uint16_t packet_len) { 800ca60: b510 push {r4, lr} 800ca62: 4604 mov r4, r0 if (!parse_packet(packet_data, packet_len, (ReceivedCommand_t *)&ctx->received_command)) { 800ca64: 4608 mov r0, r1 800ca66: 4611 mov r1, r2 800ca68: f504 7200 add.w r2, r4, #512 @ 0x200 800ca6c: f7ff ffd0 bl 800ca10 800ca70: b118 cbz r0, 800ca7a return 0; } ctx->command_ready = 1; 800ca72: 2301 movs r3, #1 return 1; 800ca74: 4618 mov r0, r3 ctx->command_ready = 1; 800ca76: f884 3208 strb.w r3, [r4, #520] @ 0x208 } 800ca7a: bd10 pop {r4, pc} 0800ca7c : static void SC_UART2_Watchdog(void) { 800ca7c: b580 push {r7, lr} 800ca7e: b082 sub sp, #8 800ca80: af00 add r7, sp, #0 const uint32_t now = HAL_GetTick(); 800ca82: f001 f9b1 bl 800dde8 800ca86: 6078 str r0, [r7, #4] const uint32_t since_last_packet = now - sc_uart2_last_packet_tick; 800ca88: 4b37 ldr r3, [pc, #220] @ (800cb68 ) 800ca8a: 681b ldr r3, [r3, #0] 800ca8c: 687a ldr r2, [r7, #4] 800ca8e: 1ad3 subs r3, r2, r3 800ca90: 603b str r3, [r7, #0] if ((huart2.gState == HAL_UART_STATE_BUSY_TX) && (sc_uart2_rx_during_tx != 0u)) { 800ca92: 4b36 ldr r3, [pc, #216] @ (800cb6c ) 800ca94: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800ca98: b2db uxtb r3, r3 800ca9a: 2b21 cmp r3, #33 @ 0x21 800ca9c: d126 bne.n 800caec 800ca9e: 4b34 ldr r3, [pc, #208] @ (800cb70 ) 800caa0: 781b ldrb r3, [r3, #0] 800caa2: b2db uxtb r3, r3 800caa4: 2b00 cmp r3, #0 800caa6: d021 beq.n 800caec HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800caa8: 2200 movs r2, #0 800caaa: 2110 movs r1, #16 800caac: 4831 ldr r0, [pc, #196] @ (800cb74 ) 800caae: f003 fe16 bl 80106de (void)HAL_UART_Abort_IT(&huart2); 800cab2: 482e ldr r0, [pc, #184] @ (800cb6c ) 800cab4: f006 f93c bl 8012d30 (void)HAL_UART_DeInit(&huart2); 800cab8: 482c ldr r0, [pc, #176] @ (800cb6c ) 800caba: f006 f875 bl 8012ba8 (void)HAL_UART_Init(&huart2); 800cabe: 482b ldr r0, [pc, #172] @ (800cb6c ) 800cac0: f006 f822 bl 8012b08 (void)HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800cac4: 22ff movs r2, #255 @ 0xff 800cac6: 492c ldr r1, [pc, #176] @ (800cb78 ) 800cac8: 4828 ldr r0, [pc, #160] @ (800cb6c ) 800caca: f006 f8d4 bl 8012c76 serial_control.tx_tick = 0; 800cace: 4b2b ldr r3, [pc, #172] @ (800cb7c ) 800cad0: 2200 movs r2, #0 800cad2: f8c3 220c str.w r2, [r3, #524] @ 0x20c sc_uart2_rx_during_tx = 0u; 800cad6: 4b26 ldr r3, [pc, #152] @ (800cb70 ) 800cad8: 2200 movs r2, #0 800cada: 701a strb r2, [r3, #0] sc_uart2_last_reinit_tick = now; 800cadc: 4a28 ldr r2, [pc, #160] @ (800cb80 ) 800cade: 687b ldr r3, [r7, #4] 800cae0: 6013 str r3, [r2, #0] log_printf(LOG_ERR, "USART2 BUSY_TX: hard reinit\n"); 800cae2: 4928 ldr r1, [pc, #160] @ (800cb84 ) 800cae4: 2004 movs r0, #4 800cae6: f7fd fd1d bl 800a524 return; 800caea: e039 b.n 800cb60 } if (since_last_packet >= SC_UART2_PACKET_TIMEOUT_MS) { 800caec: 683b ldr r3, [r7, #0] 800caee: f241 3287 movw r2, #4999 @ 0x1387 800caf2: 4293 cmp r3, r2 800caf4: d90c bls.n 800cb10 if (sc_uart2_timed_out == 0u) { 800caf6: 4b24 ldr r3, [pc, #144] @ (800cb88 ) 800caf8: 781b ldrb r3, [r3, #0] 800cafa: b2db uxtb r3, r3 800cafc: 2b00 cmp r3, #0 800cafe: d103 bne.n 800cb08 serial_control.command_ready = 0; 800cb00: 4b1e ldr r3, [pc, #120] @ (800cb7c ) 800cb02: 2200 movs r2, #0 800cb04: f883 2208 strb.w r2, [r3, #520] @ 0x208 } sc_uart2_timed_out = 1; 800cb08: 4b1f ldr r3, [pc, #124] @ (800cb88 ) 800cb0a: 2201 movs r2, #1 800cb0c: 701a strb r2, [r3, #0] 800cb0e: e002 b.n 800cb16 } else { sc_uart2_timed_out = 0; 800cb10: 4b1d ldr r3, [pc, #116] @ (800cb88 ) 800cb12: 2200 movs r2, #0 800cb14: 701a strb r2, [r3, #0] } if ((since_last_packet >= SC_UART2_REINIT_TIMEOUT_MS) && 800cb16: 683b ldr r3, [r7, #0] 800cb18: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800cb1c: d320 bcc.n 800cb60 ((now - sc_uart2_last_reinit_tick) >= SC_UART2_REINIT_TIMEOUT_MS)) { 800cb1e: 4b18 ldr r3, [pc, #96] @ (800cb80 ) 800cb20: 681b ldr r3, [r3, #0] 800cb22: 687a ldr r2, [r7, #4] 800cb24: 1ad3 subs r3, r2, r3 if ((since_last_packet >= SC_UART2_REINIT_TIMEOUT_MS) && 800cb26: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800cb2a: d319 bcc.n 800cb60 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); 800cb2c: 2200 movs r2, #0 800cb2e: 2110 movs r1, #16 800cb30: 4810 ldr r0, [pc, #64] @ (800cb74 ) 800cb32: f003 fdd4 bl 80106de (void)HAL_UART_Abort_IT(&huart2); 800cb36: 480d ldr r0, [pc, #52] @ (800cb6c ) 800cb38: f006 f8fa bl 8012d30 (void)HAL_UART_DeInit(&huart2); 800cb3c: 480b ldr r0, [pc, #44] @ (800cb6c ) 800cb3e: f006 f833 bl 8012ba8 (void)HAL_UART_Init(&huart2); 800cb42: 480a ldr r0, [pc, #40] @ (800cb6c ) 800cb44: f005 ffe0 bl 8012b08 (void)HAL_UARTEx_ReceiveToIdle_IT(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1); 800cb48: 22ff movs r2, #255 @ 0xff 800cb4a: 490b ldr r1, [pc, #44] @ (800cb78 ) 800cb4c: 4807 ldr r0, [pc, #28] @ (800cb6c ) 800cb4e: f006 f892 bl 8012c76 sc_uart2_last_reinit_tick = now; 800cb52: 4a0b ldr r2, [pc, #44] @ (800cb80 ) 800cb54: 687b ldr r3, [r7, #4] 800cb56: 6013 str r3, [r2, #0] log_printf(LOG_ERR, "USART2 stalled: hard reinit\n"); 800cb58: 490c ldr r1, [pc, #48] @ (800cb8c ) 800cb5a: 2004 movs r0, #4 800cb5c: f7fd fce2 bl 800a524 } } 800cb60: 3708 adds r7, #8 800cb62: 46bd mov sp, r7 800cb64: bd80 pop {r7, pc} 800cb66: bf00 nop 800cb68: 20001024 .word 0x20001024 800cb6c: 200011b8 .word 0x200011b8 800cb70: 2000102c .word 0x2000102c 800cb74: 40011400 .word 0x40011400 800cb78: 20000d00 .word 0x20000d00 800cb7c: 20000c00 .word 0x20000c00 800cb80: 20001028 .word 0x20001028 800cb84: 08016f3c .word 0x08016f3c 800cb88: 20001021 .word 0x20001021 800cb8c: 08016f5c .word 0x08016f5c 0800cb90 <__NVIC_SystemReset>: /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { 800cb90: b480 push {r7} 800cb92: 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"); 800cb94: f3bf 8f4f dsb sy } 800cb98: 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) | 800cb9a: 4b06 ldr r3, [pc, #24] @ (800cbb4 <__NVIC_SystemReset+0x24>) 800cb9c: 68db ldr r3, [r3, #12] 800cb9e: f403 62e0 and.w r2, r3, #1792 @ 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800cba2: 4904 ldr r1, [pc, #16] @ (800cbb4 <__NVIC_SystemReset+0x24>) 800cba4: 4b04 ldr r3, [pc, #16] @ (800cbb8 <__NVIC_SystemReset+0x28>) 800cba6: 4313 orrs r3, r2 800cba8: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); 800cbaa: f3bf 8f4f dsb sy } 800cbae: bf00 nop SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); 800cbb0: bf00 nop 800cbb2: e7fd b.n 800cbb0 <__NVIC_SystemReset+0x20> 800cbb4: e000ed00 .word 0xe000ed00 800cbb8: 05fa0004 .word 0x05fa0004 0800cbbc : .chargerNumber = 00001, .unixTime = 1721651966, }; // Единая функция-обработчик всех команд со switch-case void SC_CommandHandler(ReceivedCommand_t* cmd) { 800cbbc: b580 push {r7, lr} 800cbbe: b084 sub sp, #16 800cbc0: af00 add r7, sp, #0 800cbc2: 6078 str r0, [r7, #4] uint8_t response_code = RESP_FAILED; 800cbc4: 2313 movs r3, #19 800cbc6: 73fb strb r3, [r7, #15] switch (cmd->command) { 800cbc8: 687b ldr r3, [r7, #4] 800cbca: 781b ldrb r3, [r3, #0] 800cbcc: 2bc2 cmp r3, #194 @ 0xc2 800cbce: f300 80cc bgt.w 800cd6a 800cbd2: 2bb0 cmp r3, #176 @ 0xb0 800cbd4: da0f bge.n 800cbf6 800cbd6: 2b60 cmp r3, #96 @ 0x60 800cbd8: d042 beq.n 800cc60 800cbda: 2b60 cmp r3, #96 @ 0x60 800cbdc: f300 80c5 bgt.w 800cd6a 800cbe0: 2b50 cmp r3, #80 @ 0x50 800cbe2: d043 beq.n 800cc6c 800cbe4: 2b50 cmp r3, #80 @ 0x50 800cbe6: f300 80c0 bgt.w 800cd6a 800cbea: 2b01 cmp r3, #1 800cbec: f000 80a6 beq.w 800cd3c 800cbf0: 2b40 cmp r3, #64 @ 0x40 800cbf2: d02d beq.n 800cc50 800cbf4: e0b9 b.n 800cd6a 800cbf6: 3bb0 subs r3, #176 @ 0xb0 800cbf8: 2b12 cmp r3, #18 800cbfa: f200 80b6 bhi.w 800cd6a 800cbfe: a201 add r2, pc, #4 @ (adr r2, 800cc04 ) 800cc00: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800cc04: 0800cc73 .word 0x0800cc73 800cc08: 0800cd6b .word 0x0800cd6b 800cc0c: 0800cd6b .word 0x0800cd6b 800cc10: 0800cd6b .word 0x0800cd6b 800cc14: 0800cd6b .word 0x0800cd6b 800cc18: 0800cd1b .word 0x0800cd1b 800cc1c: 0800cd6b .word 0x0800cd6b 800cc20: 0800cd6b .word 0x0800cd6b 800cc24: 0800cd6b .word 0x0800cd6b 800cc28: 0800cd6b .word 0x0800cd6b 800cc2c: 0800cd6b .word 0x0800cd6b 800cc30: 0800cd6b .word 0x0800cd6b 800cc34: 0800cd6b .word 0x0800cd6b 800cc38: 0800cd6b .word 0x0800cd6b 800cc3c: 0800cd6b .word 0x0800cd6b 800cc40: 0800cd6b .word 0x0800cd6b 800cc44: 0800ccb1 .word 0x0800ccb1 800cc48: 0800cd15 .word 0x0800cd15 800cc4c: 0800cce9 .word 0x0800cce9 // Команды БЕЗ аргументов case CMD_GET_STATUS: // Логика получения информации monitoring_data_callback(); 800cc50: f000 f8b2 bl 800cdb8 // Отправляем с нормальным приоритетом SC_SendPacket((uint8_t*)&statusPacket, sizeof(statusPacket), CMD_GET_STATUS); 800cc54: 2240 movs r2, #64 @ 0x40 800cc56: 2158 movs r1, #88 @ 0x58 800cc58: 484b ldr r0, [pc, #300] @ (800cd88 ) 800cc5a: f7ff fea7 bl 800c9ac return; // Специальный ответ уже отправлен 800cc5e: e08f b.n 800cd80 case CMD_GET_INFO: SC_SendPacket((uint8_t*)&infoPacket, sizeof(infoPacket), CMD_GET_INFO); 800cc60: 2260 movs r2, #96 @ 0x60 800cc62: 210a movs r1, #10 800cc64: 4849 ldr r0, [pc, #292] @ (800cd8c ) 800cc66: f7ff fea1 bl 800c9ac return; 800cc6a: e089 b.n 800cd80 case CMD_GET_LOG: debug_buffer_send(); 800cc6c: f7fd fbf8 bl 800a460 return; // Ответ формируется внутри debug_buffer_send 800cc70: e086 b.n 800cd80 // Команды С аргументами case CMD_SET_CONFIG: if (cmd->argument_length == sizeof(ConfigBlock_t)) { 800cc72: 687b ldr r3, [r7, #4] 800cc74: 785b ldrb r3, [r3, #1] 800cc76: 2b0b cmp r3, #11 800cc78: d117 bne.n 800ccaa memcpy(&config, cmd->argument, sizeof(ConfigBlock_t)); 800cc7a: 687b ldr r3, [r7, #4] 800cc7c: 685a ldr r2, [r3, #4] 800cc7e: 4b44 ldr r3, [pc, #272] @ (800cd90 ) 800cc80: 6810 ldr r0, [r2, #0] 800cc82: 6851 ldr r1, [r2, #4] 800cc84: c303 stmia r3!, {r0, r1} 800cc86: 8911 ldrh r1, [r2, #8] 800cc88: 7a92 ldrb r2, [r2, #10] 800cc8a: 8019 strh r1, [r3, #0] 800cc8c: 709a strb r2, [r3, #2] config_initialized = 1; 800cc8e: 4b41 ldr r3, [pc, #260] @ (800cd94 ) 800cc90: 2201 movs r2, #1 800cc92: 701a strb r2, [r3, #0] log_printf(LOG_INFO, "Set Config: %s %d\n", config.location, config.chargerNumber); 800cc94: 4b3e ldr r3, [pc, #248] @ (800cd90 ) 800cc96: f8d3 3003 ldr.w r3, [r3, #3] 800cc9a: 4a3d ldr r2, [pc, #244] @ (800cd90 ) 800cc9c: 493e ldr r1, [pc, #248] @ (800cd98 ) 800cc9e: 2007 movs r0, #7 800cca0: f7fd fc40 bl 800a524 response_code = RESP_SUCCESS; 800cca4: 2312 movs r3, #18 800cca6: 73fb strb r3, [r7, #15] break; 800cca8: e062 b.n 800cd70 } response_code = RESP_FAILED; 800ccaa: 2313 movs r3, #19 800ccac: 73fb strb r3, [r7, #15] break; 800ccae: e05f b.n 800cd70 case CMD_SET_POWER_LIMIT: if (cmd->argument_length == 1) { 800ccb0: 687b ldr r3, [r7, #4] 800ccb2: 785b ldrb r3, [r3, #1] 800ccb4: 2b01 cmp r3, #1 800ccb6: d114 bne.n 800cce2 PSU0.power_limit = ((uint8_t*)cmd->argument)[0] * 1000; 800ccb8: 687b ldr r3, [r7, #4] 800ccba: 685b ldr r3, [r3, #4] 800ccbc: 781b ldrb r3, [r3, #0] 800ccbe: 461a mov r2, r3 800ccc0: f44f 737a mov.w r3, #1000 @ 0x3e8 800ccc4: fb02 f303 mul.w r3, r2, r3 800ccc8: 461a mov r2, r3 800ccca: 4b34 ldr r3, [pc, #208] @ (800cd9c ) 800cccc: 615a str r2, [r3, #20] log_printf(LOG_INFO, "Power limit: %d\n", PSU0.power_limit); 800ccce: 4b33 ldr r3, [pc, #204] @ (800cd9c ) 800ccd0: 695b ldr r3, [r3, #20] 800ccd2: 461a mov r2, r3 800ccd4: 4932 ldr r1, [pc, #200] @ (800cda0 ) 800ccd6: 2007 movs r0, #7 800ccd8: f7fd fc24 bl 800a524 //CONN.connState = (((uint8_t*)cmd->argument)[0])/4; response_code = RESP_SUCCESS; 800ccdc: 2312 movs r3, #18 800ccde: 73fb strb r3, [r7, #15] break; 800cce0: e046 b.n 800cd70 } response_code = RESP_FAILED; 800cce2: 2313 movs r3, #19 800cce4: 73fb strb r3, [r7, #15] break; 800cce6: e043 b.n 800cd70 case CMD_CHARGE_PERMIT: if (cmd->argument_length == 1) { 800cce8: 687b ldr r3, [r7, #4] 800ccea: 785b ldrb r3, [r3, #1] 800ccec: 2b01 cmp r3, #1 800ccee: d10e bne.n 800cd0e CONN.connControl = ((uint8_t*)cmd->argument)[0]; 800ccf0: 687b ldr r3, [r7, #4] 800ccf2: 685b ldr r3, [r3, #4] 800ccf4: 781a ldrb r2, [r3, #0] 800ccf6: 4b2b ldr r3, [pc, #172] @ (800cda4 ) 800ccf8: 701a strb r2, [r3, #0] log_printf(LOG_INFO, "Charge permit: %d\n", CONN.connControl); 800ccfa: 4b2a ldr r3, [pc, #168] @ (800cda4 ) 800ccfc: 781b ldrb r3, [r3, #0] 800ccfe: 461a mov r2, r3 800cd00: 4929 ldr r1, [pc, #164] @ (800cda8 ) 800cd02: 2007 movs r0, #7 800cd04: f7fd fc0e bl 800a524 response_code = RESP_SUCCESS; 800cd08: 2312 movs r3, #18 800cd0a: 73fb strb r3, [r7, #15] break; 800cd0c: e030 b.n 800cd70 } response_code = RESP_FAILED; 800cd0e: 2313 movs r3, #19 800cd10: 73fb strb r3, [r7, #15] break; 800cd12: e02d b.n 800cd70 // 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; 800cd14: 2313 movs r3, #19 800cd16: 73fb strb r3, [r7, #15] break; 800cd18: e02a b.n 800cd70 case CMD_DEVICE_RESET: // 2. Отправляем SUCCESS (хост может успеть получить его перед ребутом) SC_SendPacket(NULL, 0, RESP_SUCCESS); 800cd1a: 2212 movs r2, #18 800cd1c: 2100 movs r1, #0 800cd1e: 2000 movs r0, #0 800cd20: f7ff fe44 bl 800c9ac while(huart2.gState == HAL_UART_STATE_BUSY_TX); // Ожидание завершения передачи 800cd24: bf00 nop 800cd26: 4b21 ldr r3, [pc, #132] @ (800cdac ) 800cd28: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800cd2c: b2db uxtb r3, r3 800cd2e: 2b21 cmp r3, #33 @ 0x21 800cd30: d0f9 beq.n 800cd26 HAL_Delay(10); 800cd32: 200a movs r0, #10 800cd34: f001 f862 bl 800ddfc // 3. Выполняем программный сброс NVIC_SystemReset(); 800cd38: f7ff ff2a bl 800cb90 <__NVIC_SystemReset> return; // Сюда код уже не дойдет, но для компилятора нxужно case CMD_ISOLATION_STATUS: if (cmd->argument_length == sizeof(IsolationStatusPacket_t)) { 800cd3c: 687b ldr r3, [r7, #4] 800cd3e: 785b ldrb r3, [r3, #1] 800cd40: 2b09 cmp r3, #9 800cd42: d10f bne.n 800cd64 memcpy(&ISO, cmd->argument, sizeof(IsolationStatusPacket_t)); 800cd44: 687b ldr r3, [r7, #4] 800cd46: 685a ldr r2, [r3, #4] 800cd48: 4b19 ldr r3, [pc, #100] @ (800cdb0 ) 800cd4a: 6810 ldr r0, [r2, #0] 800cd4c: 6851 ldr r1, [r2, #4] 800cd4e: c303 stmia r3!, {r0, r1} 800cd50: 7a12 ldrb r2, [r2, #8] 800cd52: 701a strb r2, [r3, #0] // Для однонаправленного UART5 ответ не нужен if (g_sc_command_source == SC_SOURCE_UART5) { 800cd54: 4b17 ldr r3, [pc, #92] @ (800cdb4 ) 800cd56: 781b ldrb r3, [r3, #0] 800cd58: b2db uxtb r3, r3 800cd5a: 2b01 cmp r3, #1 800cd5c: d00f beq.n 800cd7e return; } response_code = RESP_SUCCESS; 800cd5e: 2312 movs r3, #18 800cd60: 73fb strb r3, [r7, #15] break; 800cd62: e005 b.n 800cd70 } response_code = RESP_FAILED; 800cd64: 2313 movs r3, #19 800cd66: 73fb strb r3, [r7, #15] break; 800cd68: e002 b.n 800cd70 default: // Неизвестная команда response_code = RESP_FAILED; 800cd6a: 2313 movs r3, #19 800cd6c: 73fb strb r3, [r7, #15] break; 800cd6e: bf00 nop } // Отправляем финальный ответ (для команд без собственного ответа) SC_SendPacket(NULL, 0, response_code); 800cd70: 7bfb ldrb r3, [r7, #15] 800cd72: 461a mov r2, r3 800cd74: 2100 movs r1, #0 800cd76: 2000 movs r0, #0 800cd78: f7ff fe18 bl 800c9ac 800cd7c: e000 b.n 800cd80 return; 800cd7e: bf00 nop } 800cd80: 3710 adds r7, #16 800cd82: 46bd mov sp, r7 800cd84: bd80 pop {r7, pc} 800cd86: bf00 nop 800cd88: 20001030 .word 0x20001030 800cd8c: 20001088 .word 0x20001088 800cd90: 2000005c .word 0x2000005c 800cd94: 20001092 .word 0x20001092 800cd98: 08016f7c .word 0x08016f7c 800cd9c: 200008e4 .word 0x200008e4 800cda0: 08016f90 .word 0x08016f90 800cda4: 20000398 .word 0x20000398 800cda8: 08016fa4 .word 0x08016fa4 800cdac: 200011b8 .word 0x200011b8 800cdb0: 20000050 .word 0x20000050 800cdb4: 20001020 .word 0x20001020 0800cdb8 : // Колбэк для заполнения данных мониторинга void monitoring_data_callback() { 800cdb8: b580 push {r7, lr} 800cdba: af00 add r7, sp, #0 // Информация о зарядной сессии statusPacket.SOC = CONN.SOC; 800cdbc: 4b8f ldr r3, [pc, #572] @ (800cffc ) 800cdbe: 789a ldrb r2, [r3, #2] 800cdc0: 4b8f ldr r3, [pc, #572] @ (800d000 ) 800cdc2: 709a strb r2, [r3, #2] statusPacket.Energy = CONN.Energy; 800cdc4: 4b8d ldr r3, [pc, #564] @ (800cffc ) 800cdc6: f8d3 3007 ldr.w r3, [r3, #7] 800cdca: 4a8d ldr r2, [pc, #564] @ (800d000 ) 800cdcc: f8c2 3003 str.w r3, [r2, #3] statusPacket.RequestedVoltage = CONN.RequestedVoltage; 800cdd0: 4b8a ldr r3, [pc, #552] @ (800cffc ) 800cdd2: f8b3 300f ldrh.w r3, [r3, #15] 800cdd6: b29a uxth r2, r3 800cdd8: 4b89 ldr r3, [pc, #548] @ (800d000 ) 800cdda: f8a3 2007 strh.w r2, [r3, #7] statusPacket.RequestedCurrent = CONN.WantedCurrent; 800cdde: 4b87 ldr r3, [pc, #540] @ (800cffc ) 800cde0: f8b3 301b ldrh.w r3, [r3, #27] 800cde4: b29a uxth r2, r3 800cde6: 4b86 ldr r3, [pc, #536] @ (800d000 ) 800cde8: f8a3 2009 strh.w r2, [r3, #9] statusPacket.MeasuredVoltage = CONN.MeasuredVoltage; 800cdec: 4b83 ldr r3, [pc, #524] @ (800cffc ) 800cdee: f8b3 3013 ldrh.w r3, [r3, #19] 800cdf2: b29a uxth r2, r3 800cdf4: 4b82 ldr r3, [pc, #520] @ (800d000 ) 800cdf6: f8a3 200b strh.w r2, [r3, #11] statusPacket.MeasuredCurrent = CONN.MeasuredCurrent; 800cdfa: 4b80 ldr r3, [pc, #512] @ (800cffc ) 800cdfc: f8b3 3015 ldrh.w r3, [r3, #21] 800ce00: b29a uxth r2, r3 800ce02: 4b7f ldr r3, [pc, #508] @ (800d000 ) 800ce04: f8a3 200d strh.w r2, [r3, #13] statusPacket.outputEnabled = CONN.outputEnabled; 800ce08: 4b7c ldr r3, [pc, #496] @ (800cffc ) 800ce0a: 7e1a ldrb r2, [r3, #24] 800ce0c: 4b7c ldr r3, [pc, #496] @ (800d000 ) 800ce0e: 73da strb r2, [r3, #15] statusPacket.chargingError = CONN.chargingError; 800ce10: 4b7a ldr r3, [pc, #488] @ (800cffc ) 800ce12: 7f5a ldrb r2, [r3, #29] 800ce14: 4b7a ldr r3, [pc, #488] @ (800d000 ) 800ce16: 705a strb r2, [r3, #1] statusPacket.connState = CONN.connState; 800ce18: 4b78 ldr r3, [pc, #480] @ (800cffc ) 800ce1a: 785a ldrb r2, [r3, #1] 800ce1c: 4b78 ldr r3, [pc, #480] @ (800d000 ) 800ce1e: 701a strb r2, [r3, #0] statusPacket.chargingElapsedTimeMin = 0; 800ce20: 4b77 ldr r3, [pc, #476] @ (800d000 ) 800ce22: 2200 movs r2, #0 800ce24: 741a strb r2, [r3, #16] 800ce26: 2200 movs r2, #0 800ce28: 745a strb r2, [r3, #17] statusPacket.chargingElapsedTimeSec = 0; 800ce2a: 4b75 ldr r3, [pc, #468] @ (800d000 ) 800ce2c: 2200 movs r2, #0 800ce2e: 749a strb r2, [r3, #18] statusPacket.estimatedRemainingChargingTime = 0; 800ce30: 4b73 ldr r3, [pc, #460] @ (800d000 ) 800ce32: 2200 movs r2, #0 800ce34: 74da strb r2, [r3, #19] 800ce36: 2200 movs r2, #0 800ce38: 751a strb r2, [r3, #20] // состояние зарядной станции statusPacket.relayAC = RELAY_Read(RELAY_AC); 800ce3a: 2004 movs r0, #4 800ce3c: f7fc fd2c bl 8009898 800ce40: 4603 mov r3, r0 800ce42: f003 0301 and.w r3, r3, #1 800ce46: b2d9 uxtb r1, r3 800ce48: 4a6d ldr r2, [pc, #436] @ (800d000 ) 800ce4a: 7d53 ldrb r3, [r2, #21] 800ce4c: f361 0300 bfi r3, r1, #0, #1 800ce50: 7553 strb r3, [r2, #21] statusPacket.relayDC = RELAY_Read(RELAY_DC); 800ce52: 2003 movs r0, #3 800ce54: f7fc fd20 bl 8009898 800ce58: 4603 mov r3, r0 800ce5a: f003 0301 and.w r3, r3, #1 800ce5e: b2d9 uxtb r1, r3 800ce60: 4a67 ldr r2, [pc, #412] @ (800d000 ) 800ce62: 7d53 ldrb r3, [r2, #21] 800ce64: f361 0341 bfi r3, r1, #1, #1 800ce68: 7553 strb r3, [r2, #21] statusPacket.relayAUX = RELAY_Read(RELAY_AUX0); 800ce6a: 2000 movs r0, #0 800ce6c: f7fc fd14 bl 8009898 800ce70: 4603 mov r3, r0 800ce72: f003 0301 and.w r3, r3, #1 800ce76: b2d9 uxtb r1, r3 800ce78: 4a61 ldr r2, [pc, #388] @ (800d000 ) 800ce7a: 7d53 ldrb r3, [r2, #21] 800ce7c: f361 0382 bfi r3, r1, #2, #1 800ce80: 7553 strb r3, [r2, #21] statusPacket.lockState = 0; 800ce82: 4a5f ldr r2, [pc, #380] @ (800d000 ) 800ce84: 7d53 ldrb r3, [r2, #21] 800ce86: f023 0308 bic.w r3, r3, #8 800ce8a: 7553 strb r3, [r2, #21] statusPacket.stopButton = !IN_ReadInput(IN_ESTOP); 800ce8c: 2003 movs r0, #3 800ce8e: f7fc fd13 bl 80098b8 800ce92: 4603 mov r3, r0 800ce94: 2b00 cmp r3, #0 800ce96: bf0c ite eq 800ce98: 2301 moveq r3, #1 800ce9a: 2300 movne r3, #0 800ce9c: b2d9 uxtb r1, r3 800ce9e: 4a58 ldr r2, [pc, #352] @ (800d000 ) 800cea0: 7d53 ldrb r3, [r2, #21] 800cea2: f361 1304 bfi r3, r1, #4, #1 800cea6: 7553 strb r3, [r2, #21] statusPacket.logAvailable = (debug_buffer_available()>0)?1:0; 800cea8: f7fd fac6 bl 800a438 800ceac: 4603 mov r3, r0 800ceae: 2b00 cmp r3, #0 800ceb0: bf14 ite ne 800ceb2: 2301 movne r3, #1 800ceb4: 2300 moveq r3, #0 800ceb6: b2d9 uxtb r1, r3 800ceb8: 4a51 ldr r2, [pc, #324] @ (800d000 ) 800ceba: 7d53 ldrb r3, [r2, #21] 800cebc: f361 1345 bfi r3, r1, #5, #1 800cec0: 7553 strb r3, [r2, #21] statusPacket.evInfoAvailable = 0; 800cec2: 4a4f ldr r2, [pc, #316] @ (800d000 ) 800cec4: 7d53 ldrb r3, [r2, #21] 800cec6: f023 0340 bic.w r3, r3, #64 @ 0x40 800ceca: 7553 strb r3, [r2, #21] statusPacket.psuOnline = PSU0.online; 800cecc: 4b4d ldr r3, [pc, #308] @ (800d004 ) 800cece: 7a1b ldrb r3, [r3, #8] 800ced0: f003 0301 and.w r3, r3, #1 800ced4: b2d9 uxtb r1, r3 800ced6: 4a4a ldr r2, [pc, #296] @ (800d000 ) 800ced8: 7d53 ldrb r3, [r2, #21] 800ceda: f361 13c7 bfi r3, r1, #7, #1 800cede: 7553 strb r3, [r2, #21] statusPacket.tempConnector0 = CONN_ReadTemp(0); // температура коннектора 800cee0: 2000 movs r0, #0 800cee2: f7fc fddf bl 8009aa4 800cee6: 4603 mov r3, r0 800cee8: b25a sxtb r2, r3 800ceea: 4b45 ldr r3, [pc, #276] @ (800d000 ) 800ceec: 765a strb r2, [r3, #25] statusPacket.tempConnector1 = CONN_ReadTemp(1); 800ceee: 2001 movs r0, #1 800cef0: f7fc fdd8 bl 8009aa4 800cef4: 4603 mov r3, r0 800cef6: b25a sxtb r2, r3 800cef8: 4b41 ldr r3, [pc, #260] @ (800d000 ) 800cefa: 769a strb r2, [r3, #26] statusPacket.tempAmbient = PSU0.tempAmbient; // температура окружающего воздуха 800cefc: 4b41 ldr r3, [pc, #260] @ (800d004 ) 800cefe: 69db ldr r3, [r3, #28] 800cf00: b25a sxtb r2, r3 800cf02: 4b3f ldr r3, [pc, #252] @ (800d000 ) 800cf04: 76da strb r2, [r3, #27] statusPacket.tempBatteryMax = 0; 800cf06: 4b3e ldr r3, [pc, #248] @ (800d000 ) 800cf08: 2200 movs r2, #0 800cf0a: 771a strb r2, [r3, #28] statusPacket.tempBatteryMin = 0; 800cf0c: 4b3c ldr r3, [pc, #240] @ (800d000 ) 800cf0e: 2200 movs r2, #0 800cf10: 775a strb r2, [r3, #29] statusPacket.highestVoltageOfBatteryCell = 0; 800cf12: 4b3b ldr r3, [pc, #236] @ (800d000 ) 800cf14: 2200 movs r2, #0 800cf16: 779a strb r2, [r3, #30] 800cf18: 2200 movs r2, #0 800cf1a: 77da strb r2, [r3, #31] statusPacket.batteryStatus = 0; 800cf1c: 4b38 ldr r3, [pc, #224] @ (800d000 ) 800cf1e: 2200 movs r2, #0 800cf20: f883 2020 strb.w r2, [r3, #32] statusPacket.phaseVoltageAB = PSU_06.VAB; 800cf24: 4b38 ldr r3, [pc, #224] @ (800d008 ) 800cf26: 689b ldr r3, [r3, #8] 800cf28: b29a uxth r2, r3 800cf2a: 4b35 ldr r3, [pc, #212] @ (800d000 ) 800cf2c: f8a3 2021 strh.w r2, [r3, #33] @ 0x21 statusPacket.phaseVoltageBC = PSU_06.VBC; 800cf30: 4b35 ldr r3, [pc, #212] @ (800d008 ) 800cf32: 68db ldr r3, [r3, #12] 800cf34: b29a uxth r2, r3 800cf36: 4b32 ldr r3, [pc, #200] @ (800d000 ) 800cf38: f8a3 2023 strh.w r2, [r3, #35] @ 0x23 statusPacket.phaseVoltageCA = PSU_06.VCA; 800cf3c: 4b32 ldr r3, [pc, #200] @ (800d008 ) 800cf3e: 691b ldr r3, [r3, #16] 800cf40: b29a uxth r2, r3 800cf42: 4b2f ldr r3, [pc, #188] @ (800d000 ) 800cf44: f8a3 2025 strh.w r2, [r3, #37] @ 0x25 // GBT TODO memset(statusPacket.VIN, 0, sizeof(statusPacket.VIN)); 800cf48: 2211 movs r2, #17 800cf4a: 2100 movs r1, #0 800cf4c: 482f ldr r0, [pc, #188] @ (800d00c ) 800cf4e: f007 fadf bl 8014510 // GBT TODO statusPacket.batteryType = 0; 800cf52: 4b2b ldr r3, [pc, #172] @ (800d000 ) 800cf54: 2200 movs r2, #0 800cf56: f883 2038 strb.w r2, [r3, #56] @ 0x38 statusPacket.batteryCapacity = 0; 800cf5a: 4b29 ldr r3, [pc, #164] @ (800d000 ) 800cf5c: 2200 movs r2, #0 800cf5e: f883 2039 strb.w r2, [r3, #57] @ 0x39 800cf62: 2200 movs r2, #0 800cf64: f883 203a strb.w r2, [r3, #58] @ 0x3a statusPacket.batteryVoltage = 0; 800cf68: 4b25 ldr r3, [pc, #148] @ (800d000 ) 800cf6a: 2200 movs r2, #0 800cf6c: f883 203b strb.w r2, [r3, #59] @ 0x3b 800cf70: 2200 movs r2, #0 800cf72: f883 203c strb.w r2, [r3, #60] @ 0x3c memset(statusPacket.batteryVendor, 0, sizeof(statusPacket.batteryVendor)); 800cf76: 2204 movs r2, #4 800cf78: 2100 movs r1, #0 800cf7a: 4825 ldr r0, [pc, #148] @ (800d010 ) 800cf7c: f007 fac8 bl 8014510 statusPacket.batterySN = 0; 800cf80: 4b1f ldr r3, [pc, #124] @ (800d000 ) 800cf82: 2200 movs r2, #0 800cf84: f883 2041 strb.w r2, [r3, #65] @ 0x41 800cf88: 2200 movs r2, #0 800cf8a: f883 2042 strb.w r2, [r3, #66] @ 0x42 800cf8e: 2200 movs r2, #0 800cf90: f883 2043 strb.w r2, [r3, #67] @ 0x43 800cf94: 2200 movs r2, #0 800cf96: f883 2044 strb.w r2, [r3, #68] @ 0x44 statusPacket.batteryManuD = 0; 800cf9a: 4b19 ldr r3, [pc, #100] @ (800d000 ) 800cf9c: 2200 movs r2, #0 800cf9e: f883 2047 strb.w r2, [r3, #71] @ 0x47 statusPacket.batteryManuM = 0; 800cfa2: 4b17 ldr r3, [pc, #92] @ (800d000 ) 800cfa4: 2200 movs r2, #0 800cfa6: f883 2046 strb.w r2, [r3, #70] @ 0x46 statusPacket.batteryManuY = 0; 800cfaa: 4b15 ldr r3, [pc, #84] @ (800d000 ) 800cfac: 2200 movs r2, #0 800cfae: f883 2045 strb.w r2, [r3, #69] @ 0x45 statusPacket.batteryCycleCount = 0; 800cfb2: 4b13 ldr r3, [pc, #76] @ (800d000 ) 800cfb4: 2200 movs r2, #0 800cfb6: f883 2048 strb.w r2, [r3, #72] @ 0x48 800cfba: 2200 movs r2, #0 800cfbc: f883 2049 strb.w r2, [r3, #73] @ 0x49 statusPacket.ownAuto = 0; 800cfc0: 4b0f ldr r3, [pc, #60] @ (800d000 ) 800cfc2: 2200 movs r2, #0 800cfc4: f883 204a strb.w r2, [r3, #74] @ 0x4a memset(statusPacket.EV_SW_VER, 0, sizeof(statusPacket.EV_SW_VER)); 800cfc8: 2208 movs r2, #8 800cfca: 2100 movs r1, #0 800cfcc: 4811 ldr r0, [pc, #68] @ (800d014 ) 800cfce: f007 fa9f bl 8014510 statusPacket.testMode = 0; 800cfd2: 4b0b ldr r3, [pc, #44] @ (800d000 ) 800cfd4: 2200 movs r2, #0 800cfd6: f883 2053 strb.w r2, [r3, #83] @ 0x53 statusPacket.testVoltage = 0; 800cfda: 4b09 ldr r3, [pc, #36] @ (800d000 ) 800cfdc: 2200 movs r2, #0 800cfde: f883 2054 strb.w r2, [r3, #84] @ 0x54 800cfe2: 2200 movs r2, #0 800cfe4: f883 2055 strb.w r2, [r3, #85] @ 0x55 statusPacket.testCurrent = 0; 800cfe8: 4b05 ldr r3, [pc, #20] @ (800d000 ) 800cfea: 2200 movs r2, #0 800cfec: f883 2056 strb.w r2, [r3, #86] @ 0x56 800cff0: 2200 movs r2, #0 800cff2: f883 2057 strb.w r2, [r3, #87] @ 0x57 // В debug.c есть CONN_SetState, предполагаем наличие CONN_GetState() // Если такой функции нет, закомментируйте следующую строку: // statusPacket.connState = CONN_GetState(); } 800cff6: bf00 nop 800cff8: bd80 pop {r7, pc} 800cffa: bf00 nop 800cffc: 20000398 .word 0x20000398 800d000: 20001030 .word 0x20001030 800d004: 200008e4 .word 0x200008e4 800d008: 200008b8 .word 0x200008b8 800d00c: 20001057 .word 0x20001057 800d010: 2000106d .word 0x2000106d 800d014: 2000107b .word 0x2000107b 0800d018 : #include "sma_filter.h" void SMAFilter_Init(SMAFilter_t* f) { 800d018: b480 push {r7} 800d01a: b085 sub sp, #20 800d01c: af00 add r7, sp, #0 800d01e: 6078 str r0, [r7, #4] if (f == 0) return; 800d020: 687b ldr r3, [r7, #4] 800d022: 2b00 cmp r3, #0 800d024: d018 beq.n 800d058 f->sum = 0; 800d026: 687b ldr r3, [r7, #4] 800d028: 2200 movs r2, #0 800d02a: 601a str r2, [r3, #0] f->idx = 0; 800d02c: 687b ldr r3, [r7, #4] 800d02e: 2200 movs r2, #0 800d030: 809a strh r2, [r3, #4] f->count = 0; 800d032: 687b ldr r3, [r7, #4] 800d034: 2200 movs r2, #0 800d036: 80da strh r2, [r3, #6] for (uint16_t i = 0; i < SMA_FILTER_WINDOW; i++) { 800d038: 2300 movs r3, #0 800d03a: 81fb strh r3, [r7, #14] 800d03c: e008 b.n 800d050 f->buffer[i] = 0; 800d03e: 89fa ldrh r2, [r7, #14] 800d040: 687b ldr r3, [r7, #4] 800d042: 3202 adds r2, #2 800d044: 2100 movs r1, #0 800d046: f843 1022 str.w r1, [r3, r2, lsl #2] for (uint16_t i = 0; i < SMA_FILTER_WINDOW; i++) { 800d04a: 89fb ldrh r3, [r7, #14] 800d04c: 3301 adds r3, #1 800d04e: 81fb strh r3, [r7, #14] 800d050: 89fb ldrh r3, [r7, #14] 800d052: 2b07 cmp r3, #7 800d054: d9f3 bls.n 800d03e 800d056: e000 b.n 800d05a if (f == 0) return; 800d058: bf00 nop } } 800d05a: 3714 adds r7, #20 800d05c: 46bd mov sp, r7 800d05e: bc80 pop {r7} 800d060: 4770 bx lr 0800d062 : int32_t SMAFilter_Update(SMAFilter_t* f, int32_t x) { 800d062: b480 push {r7} 800d064: b085 sub sp, #20 800d066: af00 add r7, sp, #0 800d068: 6078 str r0, [r7, #4] 800d06a: 6039 str r1, [r7, #0] if (f == 0) return x; 800d06c: 687b ldr r3, [r7, #4] 800d06e: 2b00 cmp r3, #0 800d070: d101 bne.n 800d076 800d072: 683b ldr r3, [r7, #0] 800d074: e056 b.n 800d124 // Пока окно не заполнено полностью, делим по фактическому count. if (f->count < SMA_FILTER_WINDOW) { 800d076: 687b ldr r3, [r7, #4] 800d078: 88db ldrh r3, [r3, #6] 800d07a: 2b07 cmp r3, #7 800d07c: d827 bhi.n 800d0ce f->buffer[f->idx] = x; 800d07e: 687b ldr r3, [r7, #4] 800d080: 889b ldrh r3, [r3, #4] 800d082: 461a mov r2, r3 800d084: 687b ldr r3, [r7, #4] 800d086: 3202 adds r2, #2 800d088: 6839 ldr r1, [r7, #0] 800d08a: f843 1022 str.w r1, [r3, r2, lsl #2] f->sum += x; 800d08e: 687b ldr r3, [r7, #4] 800d090: 681a ldr r2, [r3, #0] 800d092: 683b ldr r3, [r7, #0] 800d094: 441a add r2, r3 800d096: 687b ldr r3, [r7, #4] 800d098: 601a str r2, [r3, #0] f->idx++; 800d09a: 687b ldr r3, [r7, #4] 800d09c: 889b ldrh r3, [r3, #4] 800d09e: 3301 adds r3, #1 800d0a0: b29a uxth r2, r3 800d0a2: 687b ldr r3, [r7, #4] 800d0a4: 809a strh r2, [r3, #4] if (f->idx >= SMA_FILTER_WINDOW) f->idx = 0; 800d0a6: 687b ldr r3, [r7, #4] 800d0a8: 889b ldrh r3, [r3, #4] 800d0aa: 2b07 cmp r3, #7 800d0ac: d902 bls.n 800d0b4 800d0ae: 687b ldr r3, [r7, #4] 800d0b0: 2200 movs r2, #0 800d0b2: 809a strh r2, [r3, #4] f->count++; 800d0b4: 687b ldr r3, [r7, #4] 800d0b6: 88db ldrh r3, [r3, #6] 800d0b8: 3301 adds r3, #1 800d0ba: b29a uxth r2, r3 800d0bc: 687b ldr r3, [r7, #4] 800d0be: 80da strh r2, [r3, #6] return (int32_t)(f->sum / (int32_t)f->count); 800d0c0: 687b ldr r3, [r7, #4] 800d0c2: 681b ldr r3, [r3, #0] 800d0c4: 687a ldr r2, [r7, #4] 800d0c6: 88d2 ldrh r2, [r2, #6] 800d0c8: fb93 f3f2 sdiv r3, r3, r2 800d0cc: e02a b.n 800d124 } // Окно заполнено: "вычитаем старое + добавляем новое". int32_t old = f->buffer[f->idx]; 800d0ce: 687b ldr r3, [r7, #4] 800d0d0: 889b ldrh r3, [r3, #4] 800d0d2: 461a mov r2, r3 800d0d4: 687b ldr r3, [r7, #4] 800d0d6: 3202 adds r2, #2 800d0d8: f853 3022 ldr.w r3, [r3, r2, lsl #2] 800d0dc: 60fb str r3, [r7, #12] f->buffer[f->idx] = x; 800d0de: 687b ldr r3, [r7, #4] 800d0e0: 889b ldrh r3, [r3, #4] 800d0e2: 461a mov r2, r3 800d0e4: 687b ldr r3, [r7, #4] 800d0e6: 3202 adds r2, #2 800d0e8: 6839 ldr r1, [r7, #0] 800d0ea: f843 1022 str.w r1, [r3, r2, lsl #2] f->sum += (x - old); 800d0ee: 687b ldr r3, [r7, #4] 800d0f0: 681a ldr r2, [r3, #0] 800d0f2: 6839 ldr r1, [r7, #0] 800d0f4: 68fb ldr r3, [r7, #12] 800d0f6: 1acb subs r3, r1, r3 800d0f8: 441a add r2, r3 800d0fa: 687b ldr r3, [r7, #4] 800d0fc: 601a str r2, [r3, #0] f->idx++; 800d0fe: 687b ldr r3, [r7, #4] 800d100: 889b ldrh r3, [r3, #4] 800d102: 3301 adds r3, #1 800d104: b29a uxth r2, r3 800d106: 687b ldr r3, [r7, #4] 800d108: 809a strh r2, [r3, #4] if (f->idx >= SMA_FILTER_WINDOW) f->idx = 0; 800d10a: 687b ldr r3, [r7, #4] 800d10c: 889b ldrh r3, [r3, #4] 800d10e: 2b07 cmp r3, #7 800d110: d902 bls.n 800d118 800d112: 687b ldr r3, [r7, #4] 800d114: 2200 movs r2, #0 800d116: 809a strh r2, [r3, #4] return (int32_t)(f->sum / (int32_t)SMA_FILTER_WINDOW); 800d118: 687b ldr r3, [r7, #4] 800d11a: 681b ldr r3, [r3, #0] 800d11c: 2b00 cmp r3, #0 800d11e: da00 bge.n 800d122 800d120: 3307 adds r3, #7 800d122: 10db asrs r3, r3, #3 } 800d124: 4618 mov r0, r3 800d126: 3714 adds r7, #20 800d128: 46bd mov sp, r7 800d12a: bc80 pop {r7} 800d12c: 4770 bx lr ... 0800d130 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { 800d130: b480 push {r7} 800d132: b085 sub sp, #20 800d134: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); 800d136: 4b15 ldr r3, [pc, #84] @ (800d18c ) 800d138: 699b ldr r3, [r3, #24] 800d13a: 4a14 ldr r2, [pc, #80] @ (800d18c ) 800d13c: f043 0301 orr.w r3, r3, #1 800d140: 6193 str r3, [r2, #24] 800d142: 4b12 ldr r3, [pc, #72] @ (800d18c ) 800d144: 699b ldr r3, [r3, #24] 800d146: f003 0301 and.w r3, r3, #1 800d14a: 60bb str r3, [r7, #8] 800d14c: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); 800d14e: 4b0f ldr r3, [pc, #60] @ (800d18c ) 800d150: 69db ldr r3, [r3, #28] 800d152: 4a0e ldr r2, [pc, #56] @ (800d18c ) 800d154: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 800d158: 61d3 str r3, [r2, #28] 800d15a: 4b0c ldr r3, [pc, #48] @ (800d18c ) 800d15c: 69db ldr r3, [r3, #28] 800d15e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 800d162: 607b str r3, [r7, #4] 800d164: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); 800d166: 4b0a ldr r3, [pc, #40] @ (800d190 ) 800d168: 685b ldr r3, [r3, #4] 800d16a: 60fb str r3, [r7, #12] 800d16c: 68fb ldr r3, [r7, #12] 800d16e: f023 63e0 bic.w r3, r3, #117440512 @ 0x7000000 800d172: 60fb str r3, [r7, #12] 800d174: 68fb ldr r3, [r7, #12] 800d176: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 800d17a: 60fb str r3, [r7, #12] 800d17c: 4a04 ldr r2, [pc, #16] @ (800d190 ) 800d17e: 68fb ldr r3, [r7, #12] 800d180: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } 800d182: bf00 nop 800d184: 3714 adds r7, #20 800d186: 46bd mov sp, r7 800d188: bc80 pop {r7} 800d18a: 4770 bx lr 800d18c: 40021000 .word 0x40021000 800d190: 40010000 .word 0x40010000 0800d194 : { /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) 800d194: e7fe b.n 800d194 800d196: bf00 nop 0800d198 : void HardFault_Handler(void) { /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) 800d198: e7fe b.n 800d198 800d19a: bf00 nop 0800d19c : void MemManage_Handler(void) { /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) 800d19c: e7fe b.n 800d19c 800d19e: bf00 nop 0800d1a0 : void BusFault_Handler(void) { /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) 800d1a0: e7fe b.n 800d1a0 800d1a2: bf00 nop 0800d1a4 : void UsageFault_Handler(void) { /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) 800d1a4: e7fe b.n 800d1a4 800d1a6: bf00 nop 0800d1a8 : /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } 800d1a8: 4770 bx lr 800d1aa: bf00 nop 0800d1ac : /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } 800d1ac: 4770 bx lr 800d1ae: bf00 nop 0800d1b0 : /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } 800d1b0: 4770 bx lr 800d1b2: bf00 nop 0800d1b4 : void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); 800d1b4: f000 be06 b.w 800ddc4 0800d1b8 : /** * @brief This function handles DMA1 channel1 global interrupt. */ void DMA1_Channel1_IRQHandler(void) { 800d1b8: b510 push {r4, lr} /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d1ba: 4c09 ldr r4, [pc, #36] @ (800d1e0 ) 800d1bc: 2201 movs r2, #1 800d1be: f44f 6100 mov.w r1, #2048 @ 0x800 800d1c2: 4620 mov r0, r4 800d1c4: f003 fa8b bl 80106de /* USER CODE END DMA1_Channel1_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_adc1); 800d1c8: 4806 ldr r0, [pc, #24] @ (800d1e4 ) 800d1ca: f002 fdc7 bl 800fd5c /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d1ce: 4620 mov r0, r4 /* USER CODE END DMA1_Channel1_IRQn 1 */ } 800d1d0: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d1d4: 2200 movs r2, #0 800d1d6: f44f 6100 mov.w r1, #2048 @ 0x800 800d1da: f003 ba80 b.w 80106de 800d1de: bf00 nop 800d1e0: 40010c00 .word 0x40010c00 800d1e4: 200002a8 .word 0x200002a8 0800d1e8 : /** * @brief This function handles ADC1 and ADC2 global interrupts. */ void ADC1_2_IRQHandler(void) { 800d1e8: b510 push {r4, lr} /* USER CODE BEGIN ADC1_2_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d1ea: 4c09 ldr r4, [pc, #36] @ (800d210 ) 800d1ec: 2201 movs r2, #1 800d1ee: f44f 6100 mov.w r1, #2048 @ 0x800 800d1f2: 4620 mov r0, r4 800d1f4: f003 fa73 bl 80106de /* USER CODE END ADC1_2_IRQn 0 */ HAL_ADC_IRQHandler(&hadc1); 800d1f8: 4806 ldr r0, [pc, #24] @ (800d214 ) 800d1fa: f000 ffd9 bl 800e1b0 /* USER CODE BEGIN ADC1_2_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d1fe: 4620 mov r0, r4 /* USER CODE END ADC1_2_IRQn 1 */ } 800d200: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d204: 2200 movs r2, #0 800d206: f44f 6100 mov.w r1, #2048 @ 0x800 800d20a: f003 ba68 b.w 80106de 800d20e: bf00 nop 800d210: 40010c00 .word 0x40010c00 800d214: 20000278 .word 0x20000278 0800d218 : /** * @brief This function handles CAN1 RX0 interrupt. */ void CAN1_RX0_IRQHandler(void) { 800d218: b510 push {r4, lr} /* USER CODE BEGIN CAN1_RX0_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d21a: 4c09 ldr r4, [pc, #36] @ (800d240 ) 800d21c: 2201 movs r2, #1 800d21e: f44f 6180 mov.w r1, #1024 @ 0x400 800d222: 4620 mov r0, r4 800d224: f003 fa5b bl 80106de /* USER CODE END CAN1_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); 800d228: 4806 ldr r0, [pc, #24] @ (800d244 ) 800d22a: f001 fffd bl 800f228 /* USER CODE BEGIN CAN1_RX0_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d22e: 4620 mov r0, r4 /* USER CODE END CAN1_RX0_IRQn 1 */ } 800d230: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d234: 2200 movs r2, #0 800d236: f44f 6180 mov.w r1, #1024 @ 0x400 800d23a: f003 ba50 b.w 80106de 800d23e: bf00 nop 800d240: 40010c00 .word 0x40010c00 800d244: 20000344 .word 0x20000344 0800d248 : /** * @brief This function handles TIM3 global interrupt. */ void TIM3_IRQHandler(void) { 800d248: b510 push {r4, lr} /* USER CODE BEGIN TIM3_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d24a: 4c09 ldr r4, [pc, #36] @ (800d270 ) 800d24c: 2201 movs r2, #1 800d24e: f44f 6100 mov.w r1, #2048 @ 0x800 800d252: 4620 mov r0, r4 800d254: f003 fa43 bl 80106de /* USER CODE END TIM3_IRQn 0 */ HAL_TIM_IRQHandler(&htim3); 800d258: 4806 ldr r0, [pc, #24] @ (800d274 ) 800d25a: f004 fe21 bl 8011ea0 /* USER CODE BEGIN TIM3_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d25e: 4620 mov r0, r4 /* USER CODE END TIM3_IRQn 1 */ } 800d260: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d264: 2200 movs r2, #0 800d266: f44f 6100 mov.w r1, #2048 @ 0x800 800d26a: f003 ba38 b.w 80106de 800d26e: bf00 nop 800d270: 40010c00 .word 0x40010c00 800d274: 20001098 .word 0x20001098 0800d278 : void USART1_IRQHandler(void) { /* USER CODE BEGIN USART1_IRQn 0 */ /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); 800d278: 4801 ldr r0, [pc, #4] @ (800d280 ) 800d27a: f005 be6d b.w 8012f58 800d27e: bf00 nop 800d280: 20001170 .word 0x20001170 0800d284 : /** * @brief This function handles USART2 global interrupt. */ void USART2_IRQHandler(void) { 800d284: b510 push {r4, lr} /* USER CODE BEGIN USART2_IRQn 0 */ HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_SET); 800d286: 4c08 ldr r4, [pc, #32] @ (800d2a8 ) 800d288: 2201 movs r2, #1 800d28a: 2120 movs r1, #32 800d28c: 4620 mov r0, r4 800d28e: f003 fa26 bl 80106de /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); 800d292: 4806 ldr r0, [pc, #24] @ (800d2ac ) 800d294: f005 fe60 bl 8012f58 /* USER CODE BEGIN USART2_IRQn 1 */ HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_RESET); 800d298: 4620 mov r0, r4 /* USER CODE END USART2_IRQn 1 */ } 800d29a: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_RESET); 800d29e: 2200 movs r2, #0 800d2a0: 2120 movs r1, #32 800d2a2: f003 ba1c b.w 80106de 800d2a6: bf00 nop 800d2a8: 40010800 .word 0x40010800 800d2ac: 200011b8 .word 0x200011b8 0800d2b0 : /** * @brief This function handles USART3 global interrupt. */ void USART3_IRQHandler(void) { 800d2b0: b510 push {r4, lr} /* USER CODE BEGIN USART3_IRQn 0 */ HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_SET); 800d2b2: 4c08 ldr r4, [pc, #32] @ (800d2d4 ) 800d2b4: 2201 movs r2, #1 800d2b6: 2140 movs r1, #64 @ 0x40 800d2b8: 4620 mov r0, r4 800d2ba: f003 fa10 bl 80106de /* USER CODE END USART3_IRQn 0 */ HAL_UART_IRQHandler(&huart3); 800d2be: 4806 ldr r0, [pc, #24] @ (800d2d8 ) 800d2c0: f005 fe4a bl 8012f58 /* USER CODE BEGIN USART3_IRQn 1 */ HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_RESET); 800d2c4: 4620 mov r0, r4 /* USER CODE END USART3_IRQn 1 */ } 800d2c6: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_RESET); 800d2ca: 2200 movs r2, #0 800d2cc: 2140 movs r1, #64 @ 0x40 800d2ce: f003 ba06 b.w 80106de 800d2d2: bf00 nop 800d2d4: 40010800 .word 0x40010800 800d2d8: 20001200 .word 0x20001200 0800d2dc : /** * @brief This function handles UART5 global interrupt. */ void UART5_IRQHandler(void) { 800d2dc: b510 push {r4, lr} /* USER CODE BEGIN UART5_IRQn 0 */ HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_SET); 800d2de: 4c08 ldr r4, [pc, #32] @ (800d300 ) 800d2e0: 2201 movs r2, #1 800d2e2: 2104 movs r1, #4 800d2e4: 4620 mov r0, r4 800d2e6: f003 f9fa bl 80106de /* USER CODE END UART5_IRQn 0 */ HAL_UART_IRQHandler(&huart5); 800d2ea: 4806 ldr r0, [pc, #24] @ (800d304 ) 800d2ec: f005 fe34 bl 8012f58 /* USER CODE BEGIN UART5_IRQn 1 */ HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_RESET); 800d2f0: 4620 mov r0, r4 /* USER CODE END UART5_IRQn 1 */ } 800d2f2: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_RESET); 800d2f6: 2200 movs r2, #0 800d2f8: 2104 movs r1, #4 800d2fa: f003 b9f0 b.w 80106de 800d2fe: bf00 nop 800d300: 40011000 .word 0x40011000 800d304: 20001128 .word 0x20001128 0800d308 : /** * @brief This function handles CAN2 TX interrupt. */ void CAN2_TX_IRQHandler(void) { 800d308: b510 push {r4, lr} /* USER CODE BEGIN CAN2_TX_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d30a: 4c09 ldr r4, [pc, #36] @ (800d330 ) 800d30c: 2201 movs r2, #1 800d30e: f44f 6180 mov.w r1, #1024 @ 0x400 800d312: 4620 mov r0, r4 800d314: f003 f9e3 bl 80106de /* USER CODE END CAN2_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); 800d318: 4806 ldr r0, [pc, #24] @ (800d334 ) 800d31a: f001 ff85 bl 800f228 /* USER CODE BEGIN CAN2_TX_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d31e: 4620 mov r0, r4 /* USER CODE END CAN2_TX_IRQn 1 */ } 800d320: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d324: 2200 movs r2, #0 800d326: f44f 6180 mov.w r1, #1024 @ 0x400 800d32a: f003 b9d8 b.w 80106de 800d32e: bf00 nop 800d330: 40010c00 .word 0x40010c00 800d334: 2000036c .word 0x2000036c 0800d338 : /** * @brief This function handles CAN2 RX1 interrupt. */ void CAN2_RX1_IRQHandler(void) { 800d338: b510 push {r4, lr} /* USER CODE BEGIN CAN2_RX1_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d33a: 4c09 ldr r4, [pc, #36] @ (800d360 ) 800d33c: 2201 movs r2, #1 800d33e: f44f 6180 mov.w r1, #1024 @ 0x400 800d342: 4620 mov r0, r4 800d344: f003 f9cb bl 80106de /* USER CODE END CAN2_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); 800d348: 4806 ldr r0, [pc, #24] @ (800d364 ) 800d34a: f001 ff6d bl 800f228 /* USER CODE BEGIN CAN2_RX1_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d34e: 4620 mov r0, r4 /* USER CODE END CAN2_RX1_IRQn 1 */ } 800d350: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d354: 2200 movs r2, #0 800d356: f44f 6180 mov.w r1, #1024 @ 0x400 800d35a: f003 b9c0 b.w 80106de 800d35e: bf00 nop 800d360: 40010c00 .word 0x40010c00 800d364: 2000036c .word 0x2000036c 0800d368 <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { 800d368: b480 push {r7} 800d36a: af00 add r7, sp, #0 return 1; 800d36c: 2301 movs r3, #1 } 800d36e: 4618 mov r0, r3 800d370: 46bd mov sp, r7 800d372: bc80 pop {r7} 800d374: 4770 bx lr 0800d376 <_kill>: int _kill(int pid, int sig) { 800d376: b580 push {r7, lr} 800d378: b082 sub sp, #8 800d37a: af00 add r7, sp, #0 800d37c: 6078 str r0, [r7, #4] 800d37e: 6039 str r1, [r7, #0] (void)pid; (void)sig; errno = EINVAL; 800d380: f007 f8ce bl 8014520 <__errno> 800d384: 4603 mov r3, r0 800d386: 2216 movs r2, #22 800d388: 601a str r2, [r3, #0] return -1; 800d38a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff } 800d38e: 4618 mov r0, r3 800d390: 3708 adds r7, #8 800d392: 46bd mov sp, r7 800d394: bd80 pop {r7, pc} 0800d396 <_exit>: void _exit (int status) { 800d396: b580 push {r7, lr} 800d398: b082 sub sp, #8 800d39a: af00 add r7, sp, #0 800d39c: 6078 str r0, [r7, #4] _kill(status, -1); 800d39e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff 800d3a2: 6878 ldr r0, [r7, #4] 800d3a4: f7ff ffe7 bl 800d376 <_kill> while (1) {} /* Make sure we hang here */ 800d3a8: bf00 nop 800d3aa: e7fd b.n 800d3a8 <_exit+0x12> 0800d3ac <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { 800d3ac: b580 push {r7, lr} 800d3ae: b086 sub sp, #24 800d3b0: af00 add r7, sp, #0 800d3b2: 60f8 str r0, [r7, #12] 800d3b4: 60b9 str r1, [r7, #8] 800d3b6: 607a str r2, [r7, #4] (void)file; int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) 800d3b8: 2300 movs r3, #0 800d3ba: 617b str r3, [r7, #20] 800d3bc: e00a b.n 800d3d4 <_read+0x28> { *ptr++ = __io_getchar(); 800d3be: f3af 8000 nop.w 800d3c2: 4601 mov r1, r0 800d3c4: 68bb ldr r3, [r7, #8] 800d3c6: 1c5a adds r2, r3, #1 800d3c8: 60ba str r2, [r7, #8] 800d3ca: b2ca uxtb r2, r1 800d3cc: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) 800d3ce: 697b ldr r3, [r7, #20] 800d3d0: 3301 adds r3, #1 800d3d2: 617b str r3, [r7, #20] 800d3d4: 697a ldr r2, [r7, #20] 800d3d6: 687b ldr r3, [r7, #4] 800d3d8: 429a cmp r2, r3 800d3da: dbf0 blt.n 800d3be <_read+0x12> } return len; 800d3dc: 687b ldr r3, [r7, #4] } 800d3de: 4618 mov r0, r3 800d3e0: 3718 adds r7, #24 800d3e2: 46bd mov sp, r7 800d3e4: bd80 pop {r7, pc} 0800d3e6 <_close>: } return len; } int _close(int file) { 800d3e6: b480 push {r7} 800d3e8: b083 sub sp, #12 800d3ea: af00 add r7, sp, #0 800d3ec: 6078 str r0, [r7, #4] (void)file; return -1; 800d3ee: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff } 800d3f2: 4618 mov r0, r3 800d3f4: 370c adds r7, #12 800d3f6: 46bd mov sp, r7 800d3f8: bc80 pop {r7} 800d3fa: 4770 bx lr 0800d3fc <_fstat>: int _fstat(int file, struct stat *st) { 800d3fc: b480 push {r7} 800d3fe: b083 sub sp, #12 800d400: af00 add r7, sp, #0 800d402: 6078 str r0, [r7, #4] 800d404: 6039 str r1, [r7, #0] (void)file; st->st_mode = S_IFCHR; 800d406: 683b ldr r3, [r7, #0] 800d408: f44f 5200 mov.w r2, #8192 @ 0x2000 800d40c: 605a str r2, [r3, #4] return 0; 800d40e: 2300 movs r3, #0 } 800d410: 4618 mov r0, r3 800d412: 370c adds r7, #12 800d414: 46bd mov sp, r7 800d416: bc80 pop {r7} 800d418: 4770 bx lr 0800d41a <_isatty>: int _isatty(int file) { 800d41a: b480 push {r7} 800d41c: b083 sub sp, #12 800d41e: af00 add r7, sp, #0 800d420: 6078 str r0, [r7, #4] (void)file; return 1; 800d422: 2301 movs r3, #1 } 800d424: 4618 mov r0, r3 800d426: 370c adds r7, #12 800d428: 46bd mov sp, r7 800d42a: bc80 pop {r7} 800d42c: 4770 bx lr 0800d42e <_lseek>: int _lseek(int file, int ptr, int dir) { 800d42e: b480 push {r7} 800d430: b085 sub sp, #20 800d432: af00 add r7, sp, #0 800d434: 60f8 str r0, [r7, #12] 800d436: 60b9 str r1, [r7, #8] 800d438: 607a str r2, [r7, #4] (void)file; (void)ptr; (void)dir; return 0; 800d43a: 2300 movs r3, #0 } 800d43c: 4618 mov r0, r3 800d43e: 3714 adds r7, #20 800d440: 46bd mov sp, r7 800d442: bc80 pop {r7} 800d444: 4770 bx lr ... 0800d448 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { 800d448: b580 push {r7, lr} 800d44a: b086 sub sp, #24 800d44c: af00 add r7, sp, #0 800d44e: 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; 800d450: 4a14 ldr r2, [pc, #80] @ (800d4a4 <_sbrk+0x5c>) 800d452: 4b15 ldr r3, [pc, #84] @ (800d4a8 <_sbrk+0x60>) 800d454: 1ad3 subs r3, r2, r3 800d456: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; 800d458: 697b ldr r3, [r7, #20] 800d45a: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) 800d45c: 4b13 ldr r3, [pc, #76] @ (800d4ac <_sbrk+0x64>) 800d45e: 681b ldr r3, [r3, #0] 800d460: 2b00 cmp r3, #0 800d462: d102 bne.n 800d46a <_sbrk+0x22> { __sbrk_heap_end = &_end; 800d464: 4b11 ldr r3, [pc, #68] @ (800d4ac <_sbrk+0x64>) 800d466: 4a12 ldr r2, [pc, #72] @ (800d4b0 <_sbrk+0x68>) 800d468: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) 800d46a: 4b10 ldr r3, [pc, #64] @ (800d4ac <_sbrk+0x64>) 800d46c: 681a ldr r2, [r3, #0] 800d46e: 687b ldr r3, [r7, #4] 800d470: 4413 add r3, r2 800d472: 693a ldr r2, [r7, #16] 800d474: 429a cmp r2, r3 800d476: d207 bcs.n 800d488 <_sbrk+0x40> { errno = ENOMEM; 800d478: f007 f852 bl 8014520 <__errno> 800d47c: 4603 mov r3, r0 800d47e: 220c movs r2, #12 800d480: 601a str r2, [r3, #0] return (void *)-1; 800d482: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff 800d486: e009 b.n 800d49c <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; 800d488: 4b08 ldr r3, [pc, #32] @ (800d4ac <_sbrk+0x64>) 800d48a: 681b ldr r3, [r3, #0] 800d48c: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; 800d48e: 4b07 ldr r3, [pc, #28] @ (800d4ac <_sbrk+0x64>) 800d490: 681a ldr r2, [r3, #0] 800d492: 687b ldr r3, [r7, #4] 800d494: 4413 add r3, r2 800d496: 4a05 ldr r2, [pc, #20] @ (800d4ac <_sbrk+0x64>) 800d498: 6013 str r3, [r2, #0] return (void *)prev_heap_end; 800d49a: 68fb ldr r3, [r7, #12] } 800d49c: 4618 mov r0, r3 800d49e: 3718 adds r7, #24 800d4a0: 46bd mov sp, r7 800d4a2: bd80 pop {r7, pc} 800d4a4: 20010000 .word 0x20010000 800d4a8: 00000400 .word 0x00000400 800d4ac: 20001094 .word 0x20001094 800d4b0: 20001398 .word 0x20001398 0800d4b4 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { 800d4b4: b480 push {r7} 800d4b6: 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 */ } 800d4b8: bf00 nop 800d4ba: 46bd mov sp, r7 800d4bc: bc80 pop {r7} 800d4be: 4770 bx lr 0800d4c0 : TIM_HandleTypeDef htim3; TIM_HandleTypeDef htim4; /* TIM3 init function */ void MX_TIM3_Init(void) { 800d4c0: b580 push {r7, lr} 800d4c2: b08e sub sp, #56 @ 0x38 800d4c4: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 800d4c6: f107 0328 add.w r3, r7, #40 @ 0x28 800d4ca: 2200 movs r2, #0 800d4cc: 601a str r2, [r3, #0] 800d4ce: 605a str r2, [r3, #4] 800d4d0: 609a str r2, [r3, #8] 800d4d2: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 800d4d4: f107 0320 add.w r3, r7, #32 800d4d8: 2200 movs r2, #0 800d4da: 601a str r2, [r3, #0] 800d4dc: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800d4de: 1d3b adds r3, r7, #4 800d4e0: 2200 movs r2, #0 800d4e2: 601a str r2, [r3, #0] 800d4e4: 605a str r2, [r3, #4] 800d4e6: 609a str r2, [r3, #8] 800d4e8: 60da str r2, [r3, #12] 800d4ea: 611a str r2, [r3, #16] 800d4ec: 615a str r2, [r3, #20] 800d4ee: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; 800d4f0: 4b38 ldr r3, [pc, #224] @ (800d5d4 ) 800d4f2: 4a39 ldr r2, [pc, #228] @ (800d5d8 ) 800d4f4: 601a str r2, [r3, #0] htim3.Init.Prescaler = 0; 800d4f6: 4b37 ldr r3, [pc, #220] @ (800d5d4 ) 800d4f8: 2200 movs r2, #0 800d4fa: 605a str r2, [r3, #4] htim3.Init.CounterMode = TIM_COUNTERMODE_UP; 800d4fc: 4b35 ldr r3, [pc, #212] @ (800d5d4 ) 800d4fe: 2200 movs r2, #0 800d500: 609a str r2, [r3, #8] htim3.Init.Period = 65535; 800d502: 4b34 ldr r3, [pc, #208] @ (800d5d4 ) 800d504: f64f 72ff movw r2, #65535 @ 0xffff 800d508: 60da str r2, [r3, #12] htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 800d50a: 4b32 ldr r3, [pc, #200] @ (800d5d4 ) 800d50c: 2200 movs r2, #0 800d50e: 611a str r2, [r3, #16] htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800d510: 4b30 ldr r3, [pc, #192] @ (800d5d4 ) 800d512: 2200 movs r2, #0 800d514: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim3) != HAL_OK) 800d516: 482f ldr r0, [pc, #188] @ (800d5d4 ) 800d518: f004 fa6f bl 80119fa 800d51c: 4603 mov r3, r0 800d51e: 2b00 cmp r3, #0 800d520: d001 beq.n 800d526 { Error_Handler(); 800d522: f7fd fb0d bl 800ab40 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800d526: f44f 5380 mov.w r3, #4096 @ 0x1000 800d52a: 62bb str r3, [r7, #40] @ 0x28 if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) 800d52c: f107 0328 add.w r3, r7, #40 @ 0x28 800d530: 4619 mov r1, r3 800d532: 4828 ldr r0, [pc, #160] @ (800d5d4 ) 800d534: f004 fec2 bl 80122bc 800d538: 4603 mov r3, r0 800d53a: 2b00 cmp r3, #0 800d53c: d001 beq.n 800d542 { Error_Handler(); 800d53e: f7fd faff bl 800ab40 } if (HAL_TIM_OC_Init(&htim3) != HAL_OK) 800d542: 4824 ldr r0, [pc, #144] @ (800d5d4 ) 800d544: f004 faa8 bl 8011a98 800d548: 4603 mov r3, r0 800d54a: 2b00 cmp r3, #0 800d54c: d001 beq.n 800d552 { Error_Handler(); 800d54e: f7fd faf7 bl 800ab40 } if (HAL_TIM_PWM_Init(&htim3) != HAL_OK) 800d552: 4820 ldr r0, [pc, #128] @ (800d5d4 ) 800d554: f004 fba2 bl 8011c9c 800d558: 4603 mov r3, r0 800d55a: 2b00 cmp r3, #0 800d55c: d001 beq.n 800d562 { Error_Handler(); 800d55e: f7fd faef bl 800ab40 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_OC1; 800d562: 2330 movs r3, #48 @ 0x30 800d564: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800d566: 2300 movs r3, #0 800d568: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) 800d56a: f107 0320 add.w r3, r7, #32 800d56e: 4619 mov r1, r3 800d570: 4818 ldr r0, [pc, #96] @ (800d5d4 ) 800d572: f005 fa51 bl 8012a18 800d576: 4603 mov r3, r0 800d578: 2b00 cmp r3, #0 800d57a: d001 beq.n 800d580 { Error_Handler(); 800d57c: f7fd fae0 bl 800ab40 } sConfigOC.OCMode = TIM_OCMODE_TIMING; 800d580: 2300 movs r3, #0 800d582: 607b str r3, [r7, #4] sConfigOC.Pulse = 1; 800d584: 2301 movs r3, #1 800d586: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 800d588: 2300 movs r3, #0 800d58a: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 800d58c: 2300 movs r3, #0 800d58e: 617b str r3, [r7, #20] if (HAL_TIM_OC_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) 800d590: 1d3b adds r3, r7, #4 800d592: 2200 movs r2, #0 800d594: 4619 mov r1, r3 800d596: 480f ldr r0, [pc, #60] @ (800d5d4 ) 800d598: f004 fd72 bl 8012080 800d59c: 4603 mov r3, r0 800d59e: 2b00 cmp r3, #0 800d5a0: d001 beq.n 800d5a6 { Error_Handler(); 800d5a2: f7fd facd bl 800ab40 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 800d5a6: 2360 movs r3, #96 @ 0x60 800d5a8: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 800d5aa: 2300 movs r3, #0 800d5ac: 60bb str r3, [r7, #8] if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) 800d5ae: 1d3b adds r3, r7, #4 800d5b0: 2204 movs r2, #4 800d5b2: 4619 mov r1, r3 800d5b4: 4807 ldr r0, [pc, #28] @ (800d5d4 ) 800d5b6: f004 fdbf bl 8012138 800d5ba: 4603 mov r3, r0 800d5bc: 2b00 cmp r3, #0 800d5be: d001 beq.n 800d5c4 { Error_Handler(); 800d5c0: f7fd fabe bl 800ab40 } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ HAL_TIM_MspPostInit(&htim3); 800d5c4: 4803 ldr r0, [pc, #12] @ (800d5d4 ) 800d5c6: f000 f8cf bl 800d768 } 800d5ca: bf00 nop 800d5cc: 3738 adds r7, #56 @ 0x38 800d5ce: 46bd mov sp, r7 800d5d0: bd80 pop {r7, pc} 800d5d2: bf00 nop 800d5d4: 20001098 .word 0x20001098 800d5d8: 40000400 .word 0x40000400 0800d5dc : /* TIM4 init function */ void MX_TIM4_Init(void) { 800d5dc: b580 push {r7, lr} 800d5de: b08e sub sp, #56 @ 0x38 800d5e0: af00 add r7, sp, #0 /* USER CODE BEGIN TIM4_Init 0 */ /* USER CODE END TIM4_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 800d5e2: f107 0328 add.w r3, r7, #40 @ 0x28 800d5e6: 2200 movs r2, #0 800d5e8: 601a str r2, [r3, #0] 800d5ea: 605a str r2, [r3, #4] 800d5ec: 609a str r2, [r3, #8] 800d5ee: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 800d5f0: f107 0320 add.w r3, r7, #32 800d5f4: 2200 movs r2, #0 800d5f6: 601a str r2, [r3, #0] 800d5f8: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800d5fa: 1d3b adds r3, r7, #4 800d5fc: 2200 movs r2, #0 800d5fe: 601a str r2, [r3, #0] 800d600: 605a str r2, [r3, #4] 800d602: 609a str r2, [r3, #8] 800d604: 60da str r2, [r3, #12] 800d606: 611a str r2, [r3, #16] 800d608: 615a str r2, [r3, #20] 800d60a: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM4_Init 1 */ /* USER CODE END TIM4_Init 1 */ htim4.Instance = TIM4; 800d60c: 4b37 ldr r3, [pc, #220] @ (800d6ec ) 800d60e: 4a38 ldr r2, [pc, #224] @ (800d6f0 ) 800d610: 601a str r2, [r3, #0] htim4.Init.Prescaler = 720; 800d612: 4b36 ldr r3, [pc, #216] @ (800d6ec ) 800d614: f44f 7234 mov.w r2, #720 @ 0x2d0 800d618: 605a str r2, [r3, #4] htim4.Init.CounterMode = TIM_COUNTERMODE_UP; 800d61a: 4b34 ldr r3, [pc, #208] @ (800d6ec ) 800d61c: 2200 movs r2, #0 800d61e: 609a str r2, [r3, #8] htim4.Init.Period = 100; 800d620: 4b32 ldr r3, [pc, #200] @ (800d6ec ) 800d622: 2264 movs r2, #100 @ 0x64 800d624: 60da str r2, [r3, #12] htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 800d626: 4b31 ldr r3, [pc, #196] @ (800d6ec ) 800d628: 2200 movs r2, #0 800d62a: 611a str r2, [r3, #16] htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800d62c: 4b2f ldr r3, [pc, #188] @ (800d6ec ) 800d62e: 2200 movs r2, #0 800d630: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim4) != HAL_OK) 800d632: 482e ldr r0, [pc, #184] @ (800d6ec ) 800d634: f004 f9e1 bl 80119fa 800d638: 4603 mov r3, r0 800d63a: 2b00 cmp r3, #0 800d63c: d001 beq.n 800d642 { Error_Handler(); 800d63e: f7fd fa7f bl 800ab40 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800d642: f44f 5380 mov.w r3, #4096 @ 0x1000 800d646: 62bb str r3, [r7, #40] @ 0x28 if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) 800d648: f107 0328 add.w r3, r7, #40 @ 0x28 800d64c: 4619 mov r1, r3 800d64e: 4827 ldr r0, [pc, #156] @ (800d6ec ) 800d650: f004 fe34 bl 80122bc 800d654: 4603 mov r3, r0 800d656: 2b00 cmp r3, #0 800d658: d001 beq.n 800d65e { Error_Handler(); 800d65a: f7fd fa71 bl 800ab40 } if (HAL_TIM_PWM_Init(&htim4) != HAL_OK) 800d65e: 4823 ldr r0, [pc, #140] @ (800d6ec ) 800d660: f004 fb1c bl 8011c9c 800d664: 4603 mov r3, r0 800d666: 2b00 cmp r3, #0 800d668: d001 beq.n 800d66e { Error_Handler(); 800d66a: f7fd fa69 bl 800ab40 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 800d66e: 2300 movs r3, #0 800d670: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800d672: 2300 movs r3, #0 800d674: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK) 800d676: f107 0320 add.w r3, r7, #32 800d67a: 4619 mov r1, r3 800d67c: 481b ldr r0, [pc, #108] @ (800d6ec ) 800d67e: f005 f9cb bl 8012a18 800d682: 4603 mov r3, r0 800d684: 2b00 cmp r3, #0 800d686: d001 beq.n 800d68c { Error_Handler(); 800d688: f7fd fa5a bl 800ab40 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 800d68c: 2360 movs r3, #96 @ 0x60 800d68e: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 800d690: 2300 movs r3, #0 800d692: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 800d694: 2300 movs r3, #0 800d696: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 800d698: 2300 movs r3, #0 800d69a: 617b str r3, [r7, #20] if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) 800d69c: 1d3b adds r3, r7, #4 800d69e: 2204 movs r2, #4 800d6a0: 4619 mov r1, r3 800d6a2: 4812 ldr r0, [pc, #72] @ (800d6ec ) 800d6a4: f004 fd48 bl 8012138 800d6a8: 4603 mov r3, r0 800d6aa: 2b00 cmp r3, #0 800d6ac: d001 beq.n 800d6b2 { Error_Handler(); 800d6ae: f7fd fa47 bl 800ab40 } if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) 800d6b2: 1d3b adds r3, r7, #4 800d6b4: 2208 movs r2, #8 800d6b6: 4619 mov r1, r3 800d6b8: 480c ldr r0, [pc, #48] @ (800d6ec ) 800d6ba: f004 fd3d bl 8012138 800d6be: 4603 mov r3, r0 800d6c0: 2b00 cmp r3, #0 800d6c2: d001 beq.n 800d6c8 { Error_Handler(); 800d6c4: f7fd fa3c bl 800ab40 } if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_4) != HAL_OK) 800d6c8: 1d3b adds r3, r7, #4 800d6ca: 220c movs r2, #12 800d6cc: 4619 mov r1, r3 800d6ce: 4807 ldr r0, [pc, #28] @ (800d6ec ) 800d6d0: f004 fd32 bl 8012138 800d6d4: 4603 mov r3, r0 800d6d6: 2b00 cmp r3, #0 800d6d8: d001 beq.n 800d6de { Error_Handler(); 800d6da: f7fd fa31 bl 800ab40 } /* USER CODE BEGIN TIM4_Init 2 */ /* USER CODE END TIM4_Init 2 */ HAL_TIM_MspPostInit(&htim4); 800d6de: 4803 ldr r0, [pc, #12] @ (800d6ec ) 800d6e0: f000 f842 bl 800d768 } 800d6e4: bf00 nop 800d6e6: 3738 adds r7, #56 @ 0x38 800d6e8: 46bd mov sp, r7 800d6ea: bd80 pop {r7, pc} 800d6ec: 200010e0 .word 0x200010e0 800d6f0: 40000800 .word 0x40000800 0800d6f4 : void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle) { 800d6f4: b580 push {r7, lr} 800d6f6: b084 sub sp, #16 800d6f8: af00 add r7, sp, #0 800d6fa: 6078 str r0, [r7, #4] if(tim_baseHandle->Instance==TIM3) 800d6fc: 687b ldr r3, [r7, #4] 800d6fe: 681b ldr r3, [r3, #0] 800d700: 4a16 ldr r2, [pc, #88] @ (800d75c ) 800d702: 4293 cmp r3, r2 800d704: d114 bne.n 800d730 { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); 800d706: 4b16 ldr r3, [pc, #88] @ (800d760 ) 800d708: 69db ldr r3, [r3, #28] 800d70a: 4a15 ldr r2, [pc, #84] @ (800d760 ) 800d70c: f043 0302 orr.w r3, r3, #2 800d710: 61d3 str r3, [r2, #28] 800d712: 4b13 ldr r3, [pc, #76] @ (800d760 ) 800d714: 69db ldr r3, [r3, #28] 800d716: f003 0302 and.w r3, r3, #2 800d71a: 60fb str r3, [r7, #12] 800d71c: 68fb ldr r3, [r7, #12] /* TIM3 interrupt Init */ HAL_NVIC_SetPriority(TIM3_IRQn, 0, 0); 800d71e: 2200 movs r2, #0 800d720: 2100 movs r1, #0 800d722: 201d movs r0, #29 800d724: f002 f89f bl 800f866 HAL_NVIC_EnableIRQ(TIM3_IRQn); 800d728: 201d movs r0, #29 800d72a: f002 f8b8 bl 800f89e __HAL_RCC_TIM4_CLK_ENABLE(); /* USER CODE BEGIN TIM4_MspInit 1 */ /* USER CODE END TIM4_MspInit 1 */ } } 800d72e: e010 b.n 800d752 else if(tim_baseHandle->Instance==TIM4) 800d730: 687b ldr r3, [r7, #4] 800d732: 681b ldr r3, [r3, #0] 800d734: 4a0b ldr r2, [pc, #44] @ (800d764 ) 800d736: 4293 cmp r3, r2 800d738: d10b bne.n 800d752 __HAL_RCC_TIM4_CLK_ENABLE(); 800d73a: 4b09 ldr r3, [pc, #36] @ (800d760 ) 800d73c: 69db ldr r3, [r3, #28] 800d73e: 4a08 ldr r2, [pc, #32] @ (800d760 ) 800d740: f043 0304 orr.w r3, r3, #4 800d744: 61d3 str r3, [r2, #28] 800d746: 4b06 ldr r3, [pc, #24] @ (800d760 ) 800d748: 69db ldr r3, [r3, #28] 800d74a: f003 0304 and.w r3, r3, #4 800d74e: 60bb str r3, [r7, #8] 800d750: 68bb ldr r3, [r7, #8] } 800d752: bf00 nop 800d754: 3710 adds r7, #16 800d756: 46bd mov sp, r7 800d758: bd80 pop {r7, pc} 800d75a: bf00 nop 800d75c: 40000400 .word 0x40000400 800d760: 40021000 .word 0x40021000 800d764: 40000800 .word 0x40000800 0800d768 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { 800d768: b580 push {r7, lr} 800d76a: b08a sub sp, #40 @ 0x28 800d76c: af00 add r7, sp, #0 800d76e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800d770: f107 0314 add.w r3, r7, #20 800d774: 2200 movs r2, #0 800d776: 601a str r2, [r3, #0] 800d778: 605a str r2, [r3, #4] 800d77a: 609a str r2, [r3, #8] 800d77c: 60da str r2, [r3, #12] if(timHandle->Instance==TIM3) 800d77e: 687b ldr r3, [r7, #4] 800d780: 681b ldr r3, [r3, #0] 800d782: 4a26 ldr r2, [pc, #152] @ (800d81c ) 800d784: 4293 cmp r3, r2 800d786: d118 bne.n 800d7ba { /* USER CODE BEGIN TIM3_MspPostInit 0 */ /* USER CODE END TIM3_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); 800d788: 4b25 ldr r3, [pc, #148] @ (800d820 ) 800d78a: 699b ldr r3, [r3, #24] 800d78c: 4a24 ldr r2, [pc, #144] @ (800d820 ) 800d78e: f043 0304 orr.w r3, r3, #4 800d792: 6193 str r3, [r2, #24] 800d794: 4b22 ldr r3, [pc, #136] @ (800d820 ) 800d796: 699b ldr r3, [r3, #24] 800d798: f003 0304 and.w r3, r3, #4 800d79c: 613b str r3, [r7, #16] 800d79e: 693b ldr r3, [r7, #16] /**TIM3 GPIO Configuration PA7 ------> TIM3_CH2 */ GPIO_InitStruct.Pin = CP_PWM_Pin; 800d7a0: 2380 movs r3, #128 @ 0x80 800d7a2: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800d7a4: 2302 movs r3, #2 800d7a6: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800d7a8: 2302 movs r3, #2 800d7aa: 623b str r3, [r7, #32] HAL_GPIO_Init(CP_PWM_GPIO_Port, &GPIO_InitStruct); 800d7ac: f107 0314 add.w r3, r7, #20 800d7b0: 4619 mov r1, r3 800d7b2: 481c ldr r0, [pc, #112] @ (800d824 ) 800d7b4: f002 fd3c bl 8010230 /* USER CODE BEGIN TIM4_MspPostInit 1 */ /* USER CODE END TIM4_MspPostInit 1 */ } } 800d7b8: e02b b.n 800d812 else if(timHandle->Instance==TIM4) 800d7ba: 687b ldr r3, [r7, #4] 800d7bc: 681b ldr r3, [r3, #0] 800d7be: 4a1a ldr r2, [pc, #104] @ (800d828 ) 800d7c0: 4293 cmp r3, r2 800d7c2: d126 bne.n 800d812 __HAL_RCC_GPIOD_CLK_ENABLE(); 800d7c4: 4b16 ldr r3, [pc, #88] @ (800d820 ) 800d7c6: 699b ldr r3, [r3, #24] 800d7c8: 4a15 ldr r2, [pc, #84] @ (800d820 ) 800d7ca: f043 0320 orr.w r3, r3, #32 800d7ce: 6193 str r3, [r2, #24] 800d7d0: 4b13 ldr r3, [pc, #76] @ (800d820 ) 800d7d2: 699b ldr r3, [r3, #24] 800d7d4: f003 0320 and.w r3, r3, #32 800d7d8: 60fb str r3, [r7, #12] 800d7da: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15; 800d7dc: f44f 4360 mov.w r3, #57344 @ 0xe000 800d7e0: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800d7e2: 2302 movs r3, #2 800d7e4: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800d7e6: 2302 movs r3, #2 800d7e8: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800d7ea: f107 0314 add.w r3, r7, #20 800d7ee: 4619 mov r1, r3 800d7f0: 480e ldr r0, [pc, #56] @ (800d82c ) 800d7f2: f002 fd1d bl 8010230 __HAL_AFIO_REMAP_TIM4_ENABLE(); 800d7f6: 4b0e ldr r3, [pc, #56] @ (800d830 ) 800d7f8: 685b ldr r3, [r3, #4] 800d7fa: 627b str r3, [r7, #36] @ 0x24 800d7fc: 6a7b ldr r3, [r7, #36] @ 0x24 800d7fe: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800d802: 627b str r3, [r7, #36] @ 0x24 800d804: 6a7b ldr r3, [r7, #36] @ 0x24 800d806: f443 5380 orr.w r3, r3, #4096 @ 0x1000 800d80a: 627b str r3, [r7, #36] @ 0x24 800d80c: 4a08 ldr r2, [pc, #32] @ (800d830 ) 800d80e: 6a7b ldr r3, [r7, #36] @ 0x24 800d810: 6053 str r3, [r2, #4] } 800d812: bf00 nop 800d814: 3728 adds r7, #40 @ 0x28 800d816: 46bd mov sp, r7 800d818: bd80 pop {r7, pc} 800d81a: bf00 nop 800d81c: 40000400 .word 0x40000400 800d820: 40021000 .word 0x40021000 800d824: 40010800 .word 0x40010800 800d828: 40000800 .word 0x40000800 800d82c: 40011400 .word 0x40011400 800d830: 40010000 .word 0x40010000 0800d834 : UART_HandleTypeDef huart2; UART_HandleTypeDef huart3; /* UART5 init function */ void MX_UART5_Init(void) { 800d834: b580 push {r7, lr} 800d836: 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; 800d838: 4b11 ldr r3, [pc, #68] @ (800d880 ) 800d83a: 4a12 ldr r2, [pc, #72] @ (800d884 ) 800d83c: 601a str r2, [r3, #0] huart5.Init.BaudRate = 9600; 800d83e: 4b10 ldr r3, [pc, #64] @ (800d880 ) 800d840: f44f 5216 mov.w r2, #9600 @ 0x2580 800d844: 605a str r2, [r3, #4] huart5.Init.WordLength = UART_WORDLENGTH_8B; 800d846: 4b0e ldr r3, [pc, #56] @ (800d880 ) 800d848: 2200 movs r2, #0 800d84a: 609a str r2, [r3, #8] huart5.Init.StopBits = UART_STOPBITS_1; 800d84c: 4b0c ldr r3, [pc, #48] @ (800d880 ) 800d84e: 2200 movs r2, #0 800d850: 60da str r2, [r3, #12] huart5.Init.Parity = UART_PARITY_NONE; 800d852: 4b0b ldr r3, [pc, #44] @ (800d880 ) 800d854: 2200 movs r2, #0 800d856: 611a str r2, [r3, #16] huart5.Init.Mode = UART_MODE_TX_RX; 800d858: 4b09 ldr r3, [pc, #36] @ (800d880 ) 800d85a: 220c movs r2, #12 800d85c: 615a str r2, [r3, #20] huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800d85e: 4b08 ldr r3, [pc, #32] @ (800d880 ) 800d860: 2200 movs r2, #0 800d862: 619a str r2, [r3, #24] huart5.Init.OverSampling = UART_OVERSAMPLING_16; 800d864: 4b06 ldr r3, [pc, #24] @ (800d880 ) 800d866: 2200 movs r2, #0 800d868: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart5) != HAL_OK) 800d86a: 4805 ldr r0, [pc, #20] @ (800d880 ) 800d86c: f005 f94c bl 8012b08 800d870: 4603 mov r3, r0 800d872: 2b00 cmp r3, #0 800d874: d001 beq.n 800d87a { Error_Handler(); 800d876: f7fd f963 bl 800ab40 } /* USER CODE BEGIN UART5_Init 2 */ /* USER CODE END UART5_Init 2 */ } 800d87a: bf00 nop 800d87c: bd80 pop {r7, pc} 800d87e: bf00 nop 800d880: 20001128 .word 0x20001128 800d884: 40005000 .word 0x40005000 0800d888 : /* USART1 init function */ void MX_USART1_UART_Init(void) { 800d888: b580 push {r7, lr} 800d88a: 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; 800d88c: 4b11 ldr r3, [pc, #68] @ (800d8d4 ) 800d88e: 4a12 ldr r2, [pc, #72] @ (800d8d8 ) 800d890: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; 800d892: 4b10 ldr r3, [pc, #64] @ (800d8d4 ) 800d894: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800d898: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; 800d89a: 4b0e ldr r3, [pc, #56] @ (800d8d4 ) 800d89c: 2200 movs r2, #0 800d89e: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; 800d8a0: 4b0c ldr r3, [pc, #48] @ (800d8d4 ) 800d8a2: 2200 movs r2, #0 800d8a4: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; 800d8a6: 4b0b ldr r3, [pc, #44] @ (800d8d4 ) 800d8a8: 2200 movs r2, #0 800d8aa: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; 800d8ac: 4b09 ldr r3, [pc, #36] @ (800d8d4 ) 800d8ae: 220c movs r2, #12 800d8b0: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800d8b2: 4b08 ldr r3, [pc, #32] @ (800d8d4 ) 800d8b4: 2200 movs r2, #0 800d8b6: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; 800d8b8: 4b06 ldr r3, [pc, #24] @ (800d8d4 ) 800d8ba: 2200 movs r2, #0 800d8bc: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) 800d8be: 4805 ldr r0, [pc, #20] @ (800d8d4 ) 800d8c0: f005 f922 bl 8012b08 800d8c4: 4603 mov r3, r0 800d8c6: 2b00 cmp r3, #0 800d8c8: d001 beq.n 800d8ce { Error_Handler(); 800d8ca: f7fd f939 bl 800ab40 } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } 800d8ce: bf00 nop 800d8d0: bd80 pop {r7, pc} 800d8d2: bf00 nop 800d8d4: 20001170 .word 0x20001170 800d8d8: 40013800 .word 0x40013800 0800d8dc : /* USART2 init function */ void MX_USART2_UART_Init(void) { 800d8dc: b580 push {r7, lr} 800d8de: 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; 800d8e0: 4b11 ldr r3, [pc, #68] @ (800d928 ) 800d8e2: 4a12 ldr r2, [pc, #72] @ (800d92c ) 800d8e4: 601a str r2, [r3, #0] huart2.Init.BaudRate = 115200; 800d8e6: 4b10 ldr r3, [pc, #64] @ (800d928 ) 800d8e8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800d8ec: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; 800d8ee: 4b0e ldr r3, [pc, #56] @ (800d928 ) 800d8f0: 2200 movs r2, #0 800d8f2: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; 800d8f4: 4b0c ldr r3, [pc, #48] @ (800d928 ) 800d8f6: 2200 movs r2, #0 800d8f8: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; 800d8fa: 4b0b ldr r3, [pc, #44] @ (800d928 ) 800d8fc: 2200 movs r2, #0 800d8fe: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; 800d900: 4b09 ldr r3, [pc, #36] @ (800d928 ) 800d902: 220c movs r2, #12 800d904: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800d906: 4b08 ldr r3, [pc, #32] @ (800d928 ) 800d908: 2200 movs r2, #0 800d90a: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; 800d90c: 4b06 ldr r3, [pc, #24] @ (800d928 ) 800d90e: 2200 movs r2, #0 800d910: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart2) != HAL_OK) 800d912: 4805 ldr r0, [pc, #20] @ (800d928 ) 800d914: f005 f8f8 bl 8012b08 800d918: 4603 mov r3, r0 800d91a: 2b00 cmp r3, #0 800d91c: d001 beq.n 800d922 { Error_Handler(); 800d91e: f7fd f90f bl 800ab40 } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } 800d922: bf00 nop 800d924: bd80 pop {r7, pc} 800d926: bf00 nop 800d928: 200011b8 .word 0x200011b8 800d92c: 40004400 .word 0x40004400 0800d930 : /* USART3 init function */ void MX_USART3_UART_Init(void) { 800d930: b580 push {r7, lr} 800d932: 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; 800d934: 4b11 ldr r3, [pc, #68] @ (800d97c ) 800d936: 4a12 ldr r2, [pc, #72] @ (800d980 ) 800d938: 601a str r2, [r3, #0] huart3.Init.BaudRate = 115200; 800d93a: 4b10 ldr r3, [pc, #64] @ (800d97c ) 800d93c: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800d940: 605a str r2, [r3, #4] huart3.Init.WordLength = UART_WORDLENGTH_8B; 800d942: 4b0e ldr r3, [pc, #56] @ (800d97c ) 800d944: 2200 movs r2, #0 800d946: 609a str r2, [r3, #8] huart3.Init.StopBits = UART_STOPBITS_1; 800d948: 4b0c ldr r3, [pc, #48] @ (800d97c ) 800d94a: 2200 movs r2, #0 800d94c: 60da str r2, [r3, #12] huart3.Init.Parity = UART_PARITY_NONE; 800d94e: 4b0b ldr r3, [pc, #44] @ (800d97c ) 800d950: 2200 movs r2, #0 800d952: 611a str r2, [r3, #16] huart3.Init.Mode = UART_MODE_TX_RX; 800d954: 4b09 ldr r3, [pc, #36] @ (800d97c ) 800d956: 220c movs r2, #12 800d958: 615a str r2, [r3, #20] huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800d95a: 4b08 ldr r3, [pc, #32] @ (800d97c ) 800d95c: 2200 movs r2, #0 800d95e: 619a str r2, [r3, #24] huart3.Init.OverSampling = UART_OVERSAMPLING_16; 800d960: 4b06 ldr r3, [pc, #24] @ (800d97c ) 800d962: 2200 movs r2, #0 800d964: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart3) != HAL_OK) 800d966: 4805 ldr r0, [pc, #20] @ (800d97c ) 800d968: f005 f8ce bl 8012b08 800d96c: 4603 mov r3, r0 800d96e: 2b00 cmp r3, #0 800d970: d001 beq.n 800d976 { Error_Handler(); 800d972: f7fd f8e5 bl 800ab40 } /* USER CODE BEGIN USART3_Init 2 */ /* USER CODE END USART3_Init 2 */ } 800d976: bf00 nop 800d978: bd80 pop {r7, pc} 800d97a: bf00 nop 800d97c: 20001200 .word 0x20001200 800d980: 40004800 .word 0x40004800 0800d984 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { 800d984: b580 push {r7, lr} 800d986: b092 sub sp, #72 @ 0x48 800d988: af00 add r7, sp, #0 800d98a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800d98c: f107 0330 add.w r3, r7, #48 @ 0x30 800d990: 2200 movs r2, #0 800d992: 601a str r2, [r3, #0] 800d994: 605a str r2, [r3, #4] 800d996: 609a str r2, [r3, #8] 800d998: 60da str r2, [r3, #12] if(uartHandle->Instance==UART5) 800d99a: 687b ldr r3, [r7, #4] 800d99c: 681b ldr r3, [r3, #0] 800d99e: 4a95 ldr r2, [pc, #596] @ (800dbf4 ) 800d9a0: 4293 cmp r3, r2 800d9a2: d145 bne.n 800da30 { /* USER CODE BEGIN UART5_MspInit 0 */ /* USER CODE END UART5_MspInit 0 */ /* UART5 clock enable */ __HAL_RCC_UART5_CLK_ENABLE(); 800d9a4: 4b94 ldr r3, [pc, #592] @ (800dbf8 ) 800d9a6: 69db ldr r3, [r3, #28] 800d9a8: 4a93 ldr r2, [pc, #588] @ (800dbf8 ) 800d9aa: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 800d9ae: 61d3 str r3, [r2, #28] 800d9b0: 4b91 ldr r3, [pc, #580] @ (800dbf8 ) 800d9b2: 69db ldr r3, [r3, #28] 800d9b4: f403 1380 and.w r3, r3, #1048576 @ 0x100000 800d9b8: 62fb str r3, [r7, #44] @ 0x2c 800d9ba: 6afb ldr r3, [r7, #44] @ 0x2c __HAL_RCC_GPIOC_CLK_ENABLE(); 800d9bc: 4b8e ldr r3, [pc, #568] @ (800dbf8 ) 800d9be: 699b ldr r3, [r3, #24] 800d9c0: 4a8d ldr r2, [pc, #564] @ (800dbf8 ) 800d9c2: f043 0310 orr.w r3, r3, #16 800d9c6: 6193 str r3, [r2, #24] 800d9c8: 4b8b ldr r3, [pc, #556] @ (800dbf8 ) 800d9ca: 699b ldr r3, [r3, #24] 800d9cc: f003 0310 and.w r3, r3, #16 800d9d0: 62bb str r3, [r7, #40] @ 0x28 800d9d2: 6abb ldr r3, [r7, #40] @ 0x28 __HAL_RCC_GPIOD_CLK_ENABLE(); 800d9d4: 4b88 ldr r3, [pc, #544] @ (800dbf8 ) 800d9d6: 699b ldr r3, [r3, #24] 800d9d8: 4a87 ldr r2, [pc, #540] @ (800dbf8 ) 800d9da: f043 0320 orr.w r3, r3, #32 800d9de: 6193 str r3, [r2, #24] 800d9e0: 4b85 ldr r3, [pc, #532] @ (800dbf8 ) 800d9e2: 699b ldr r3, [r3, #24] 800d9e4: f003 0320 and.w r3, r3, #32 800d9e8: 627b str r3, [r7, #36] @ 0x24 800d9ea: 6a7b ldr r3, [r7, #36] @ 0x24 /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ GPIO_InitStruct.Pin = GPIO_PIN_12; 800d9ec: f44f 5380 mov.w r3, #4096 @ 0x1000 800d9f0: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800d9f2: 2302 movs r3, #2 800d9f4: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800d9f6: 2303 movs r3, #3 800d9f8: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800d9fa: f107 0330 add.w r3, r7, #48 @ 0x30 800d9fe: 4619 mov r1, r3 800da00: 487e ldr r0, [pc, #504] @ (800dbfc ) 800da02: f002 fc15 bl 8010230 GPIO_InitStruct.Pin = GPIO_PIN_2; 800da06: 2304 movs r3, #4 800da08: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800da0a: 2300 movs r3, #0 800da0c: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800da0e: 2300 movs r3, #0 800da10: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800da12: f107 0330 add.w r3, r7, #48 @ 0x30 800da16: 4619 mov r1, r3 800da18: 4879 ldr r0, [pc, #484] @ (800dc00 ) 800da1a: f002 fc09 bl 8010230 /* UART5 interrupt Init */ HAL_NVIC_SetPriority(UART5_IRQn, 0, 0); 800da1e: 2200 movs r2, #0 800da20: 2100 movs r1, #0 800da22: 2035 movs r0, #53 @ 0x35 800da24: f001 ff1f bl 800f866 HAL_NVIC_EnableIRQ(UART5_IRQn); 800da28: 2035 movs r0, #53 @ 0x35 800da2a: f001 ff38 bl 800f89e HAL_NVIC_EnableIRQ(USART3_IRQn); /* USER CODE BEGIN USART3_MspInit 1 */ /* USER CODE END USART3_MspInit 1 */ } } 800da2e: e0dc b.n 800dbea else if(uartHandle->Instance==USART1) 800da30: 687b ldr r3, [r7, #4] 800da32: 681b ldr r3, [r3, #0] 800da34: 4a73 ldr r2, [pc, #460] @ (800dc04 ) 800da36: 4293 cmp r3, r2 800da38: d13a bne.n 800dab0 __HAL_RCC_USART1_CLK_ENABLE(); 800da3a: 4b6f ldr r3, [pc, #444] @ (800dbf8 ) 800da3c: 699b ldr r3, [r3, #24] 800da3e: 4a6e ldr r2, [pc, #440] @ (800dbf8 ) 800da40: f443 4380 orr.w r3, r3, #16384 @ 0x4000 800da44: 6193 str r3, [r2, #24] 800da46: 4b6c ldr r3, [pc, #432] @ (800dbf8 ) 800da48: 699b ldr r3, [r3, #24] 800da4a: f403 4380 and.w r3, r3, #16384 @ 0x4000 800da4e: 623b str r3, [r7, #32] 800da50: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOA_CLK_ENABLE(); 800da52: 4b69 ldr r3, [pc, #420] @ (800dbf8 ) 800da54: 699b ldr r3, [r3, #24] 800da56: 4a68 ldr r2, [pc, #416] @ (800dbf8 ) 800da58: f043 0304 orr.w r3, r3, #4 800da5c: 6193 str r3, [r2, #24] 800da5e: 4b66 ldr r3, [pc, #408] @ (800dbf8 ) 800da60: 699b ldr r3, [r3, #24] 800da62: f003 0304 and.w r3, r3, #4 800da66: 61fb str r3, [r7, #28] 800da68: 69fb ldr r3, [r7, #28] GPIO_InitStruct.Pin = GPIO_PIN_9; 800da6a: f44f 7300 mov.w r3, #512 @ 0x200 800da6e: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800da70: 2302 movs r3, #2 800da72: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800da74: 2303 movs r3, #3 800da76: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800da78: f107 0330 add.w r3, r7, #48 @ 0x30 800da7c: 4619 mov r1, r3 800da7e: 4862 ldr r0, [pc, #392] @ (800dc08 ) 800da80: f002 fbd6 bl 8010230 GPIO_InitStruct.Pin = GPIO_PIN_10; 800da84: f44f 6380 mov.w r3, #1024 @ 0x400 800da88: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800da8a: 2300 movs r3, #0 800da8c: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800da8e: 2300 movs r3, #0 800da90: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800da92: f107 0330 add.w r3, r7, #48 @ 0x30 800da96: 4619 mov r1, r3 800da98: 485b ldr r0, [pc, #364] @ (800dc08 ) 800da9a: f002 fbc9 bl 8010230 HAL_NVIC_SetPriority(USART1_IRQn, 0, 0); 800da9e: 2200 movs r2, #0 800daa0: 2100 movs r1, #0 800daa2: 2025 movs r0, #37 @ 0x25 800daa4: f001 fedf bl 800f866 HAL_NVIC_EnableIRQ(USART1_IRQn); 800daa8: 2025 movs r0, #37 @ 0x25 800daaa: f001 fef8 bl 800f89e } 800daae: e09c b.n 800dbea else if(uartHandle->Instance==USART2) 800dab0: 687b ldr r3, [r7, #4] 800dab2: 681b ldr r3, [r3, #0] 800dab4: 4a55 ldr r2, [pc, #340] @ (800dc0c ) 800dab6: 4293 cmp r3, r2 800dab8: d146 bne.n 800db48 __HAL_RCC_USART2_CLK_ENABLE(); 800daba: 4b4f ldr r3, [pc, #316] @ (800dbf8 ) 800dabc: 69db ldr r3, [r3, #28] 800dabe: 4a4e ldr r2, [pc, #312] @ (800dbf8 ) 800dac0: f443 3300 orr.w r3, r3, #131072 @ 0x20000 800dac4: 61d3 str r3, [r2, #28] 800dac6: 4b4c ldr r3, [pc, #304] @ (800dbf8 ) 800dac8: 69db ldr r3, [r3, #28] 800daca: f403 3300 and.w r3, r3, #131072 @ 0x20000 800dace: 61bb str r3, [r7, #24] 800dad0: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOD_CLK_ENABLE(); 800dad2: 4b49 ldr r3, [pc, #292] @ (800dbf8 ) 800dad4: 699b ldr r3, [r3, #24] 800dad6: 4a48 ldr r2, [pc, #288] @ (800dbf8 ) 800dad8: f043 0320 orr.w r3, r3, #32 800dadc: 6193 str r3, [r2, #24] 800dade: 4b46 ldr r3, [pc, #280] @ (800dbf8 ) 800dae0: 699b ldr r3, [r3, #24] 800dae2: f003 0320 and.w r3, r3, #32 800dae6: 617b str r3, [r7, #20] 800dae8: 697b ldr r3, [r7, #20] GPIO_InitStruct.Pin = GPIO_PIN_5; 800daea: 2320 movs r3, #32 800daec: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800daee: 2302 movs r3, #2 800daf0: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800daf2: 2303 movs r3, #3 800daf4: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800daf6: f107 0330 add.w r3, r7, #48 @ 0x30 800dafa: 4619 mov r1, r3 800dafc: 4840 ldr r0, [pc, #256] @ (800dc00 ) 800dafe: f002 fb97 bl 8010230 GPIO_InitStruct.Pin = GPIO_PIN_6; 800db02: 2340 movs r3, #64 @ 0x40 800db04: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800db06: 2300 movs r3, #0 800db08: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800db0a: 2300 movs r3, #0 800db0c: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800db0e: f107 0330 add.w r3, r7, #48 @ 0x30 800db12: 4619 mov r1, r3 800db14: 483a ldr r0, [pc, #232] @ (800dc00 ) 800db16: f002 fb8b bl 8010230 __HAL_AFIO_REMAP_USART2_ENABLE(); 800db1a: 4b3d ldr r3, [pc, #244] @ (800dc10 ) 800db1c: 685b ldr r3, [r3, #4] 800db1e: 643b str r3, [r7, #64] @ 0x40 800db20: 6c3b ldr r3, [r7, #64] @ 0x40 800db22: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800db26: 643b str r3, [r7, #64] @ 0x40 800db28: 6c3b ldr r3, [r7, #64] @ 0x40 800db2a: f043 0308 orr.w r3, r3, #8 800db2e: 643b str r3, [r7, #64] @ 0x40 800db30: 4a37 ldr r2, [pc, #220] @ (800dc10 ) 800db32: 6c3b ldr r3, [r7, #64] @ 0x40 800db34: 6053 str r3, [r2, #4] HAL_NVIC_SetPriority(USART2_IRQn, 0, 0); 800db36: 2200 movs r2, #0 800db38: 2100 movs r1, #0 800db3a: 2026 movs r0, #38 @ 0x26 800db3c: f001 fe93 bl 800f866 HAL_NVIC_EnableIRQ(USART2_IRQn); 800db40: 2026 movs r0, #38 @ 0x26 800db42: f001 feac bl 800f89e } 800db46: e050 b.n 800dbea else if(uartHandle->Instance==USART3) 800db48: 687b ldr r3, [r7, #4] 800db4a: 681b ldr r3, [r3, #0] 800db4c: 4a31 ldr r2, [pc, #196] @ (800dc14 ) 800db4e: 4293 cmp r3, r2 800db50: d14b bne.n 800dbea __HAL_RCC_USART3_CLK_ENABLE(); 800db52: 4b29 ldr r3, [pc, #164] @ (800dbf8 ) 800db54: 69db ldr r3, [r3, #28] 800db56: 4a28 ldr r2, [pc, #160] @ (800dbf8 ) 800db58: f443 2380 orr.w r3, r3, #262144 @ 0x40000 800db5c: 61d3 str r3, [r2, #28] 800db5e: 4b26 ldr r3, [pc, #152] @ (800dbf8 ) 800db60: 69db ldr r3, [r3, #28] 800db62: f403 2380 and.w r3, r3, #262144 @ 0x40000 800db66: 613b str r3, [r7, #16] 800db68: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOC_CLK_ENABLE(); 800db6a: 4b23 ldr r3, [pc, #140] @ (800dbf8 ) 800db6c: 699b ldr r3, [r3, #24] 800db6e: 4a22 ldr r2, [pc, #136] @ (800dbf8 ) 800db70: f043 0310 orr.w r3, r3, #16 800db74: 6193 str r3, [r2, #24] 800db76: 4b20 ldr r3, [pc, #128] @ (800dbf8 ) 800db78: 699b ldr r3, [r3, #24] 800db7a: f003 0310 and.w r3, r3, #16 800db7e: 60fb str r3, [r7, #12] 800db80: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_10; 800db82: f44f 6380 mov.w r3, #1024 @ 0x400 800db86: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800db88: 2302 movs r3, #2 800db8a: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800db8c: 2303 movs r3, #3 800db8e: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800db90: f107 0330 add.w r3, r7, #48 @ 0x30 800db94: 4619 mov r1, r3 800db96: 4819 ldr r0, [pc, #100] @ (800dbfc ) 800db98: f002 fb4a bl 8010230 GPIO_InitStruct.Pin = GPIO_PIN_11; 800db9c: f44f 6300 mov.w r3, #2048 @ 0x800 800dba0: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800dba2: 2300 movs r3, #0 800dba4: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800dba6: 2300 movs r3, #0 800dba8: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800dbaa: f107 0330 add.w r3, r7, #48 @ 0x30 800dbae: 4619 mov r1, r3 800dbb0: 4812 ldr r0, [pc, #72] @ (800dbfc ) 800dbb2: f002 fb3d bl 8010230 __HAL_AFIO_REMAP_USART3_PARTIAL(); 800dbb6: 4b16 ldr r3, [pc, #88] @ (800dc10 ) 800dbb8: 685b ldr r3, [r3, #4] 800dbba: 647b str r3, [r7, #68] @ 0x44 800dbbc: 6c7b ldr r3, [r7, #68] @ 0x44 800dbbe: f023 0330 bic.w r3, r3, #48 @ 0x30 800dbc2: 647b str r3, [r7, #68] @ 0x44 800dbc4: 6c7b ldr r3, [r7, #68] @ 0x44 800dbc6: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800dbca: 647b str r3, [r7, #68] @ 0x44 800dbcc: 6c7b ldr r3, [r7, #68] @ 0x44 800dbce: f043 0310 orr.w r3, r3, #16 800dbd2: 647b str r3, [r7, #68] @ 0x44 800dbd4: 4a0e ldr r2, [pc, #56] @ (800dc10 ) 800dbd6: 6c7b ldr r3, [r7, #68] @ 0x44 800dbd8: 6053 str r3, [r2, #4] HAL_NVIC_SetPriority(USART3_IRQn, 0, 0); 800dbda: 2200 movs r2, #0 800dbdc: 2100 movs r1, #0 800dbde: 2027 movs r0, #39 @ 0x27 800dbe0: f001 fe41 bl 800f866 HAL_NVIC_EnableIRQ(USART3_IRQn); 800dbe4: 2027 movs r0, #39 @ 0x27 800dbe6: f001 fe5a bl 800f89e } 800dbea: bf00 nop 800dbec: 3748 adds r7, #72 @ 0x48 800dbee: 46bd mov sp, r7 800dbf0: bd80 pop {r7, pc} 800dbf2: bf00 nop 800dbf4: 40005000 .word 0x40005000 800dbf8: 40021000 .word 0x40021000 800dbfc: 40011000 .word 0x40011000 800dc00: 40011400 .word 0x40011400 800dc04: 40013800 .word 0x40013800 800dc08: 40010800 .word 0x40010800 800dc0c: 40004400 .word 0x40004400 800dc10: 40010000 .word 0x40010000 800dc14: 40004800 .word 0x40004800 0800dc18 : void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle) { 800dc18: b580 push {r7, lr} 800dc1a: b082 sub sp, #8 800dc1c: af00 add r7, sp, #0 800dc1e: 6078 str r0, [r7, #4] if(uartHandle->Instance==UART5) 800dc20: 687b ldr r3, [r7, #4] 800dc22: 681b ldr r3, [r3, #0] 800dc24: 4a29 ldr r2, [pc, #164] @ (800dccc ) 800dc26: 4293 cmp r3, r2 800dc28: d112 bne.n 800dc50 { /* USER CODE BEGIN UART5_MspDeInit 0 */ /* USER CODE END UART5_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_UART5_CLK_DISABLE(); 800dc2a: 4b29 ldr r3, [pc, #164] @ (800dcd0 ) 800dc2c: 69db ldr r3, [r3, #28] 800dc2e: 4a28 ldr r2, [pc, #160] @ (800dcd0 ) 800dc30: f423 1380 bic.w r3, r3, #1048576 @ 0x100000 800dc34: 61d3 str r3, [r2, #28] /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ HAL_GPIO_DeInit(GPIOC, GPIO_PIN_12); 800dc36: f44f 5180 mov.w r1, #4096 @ 0x1000 800dc3a: 4826 ldr r0, [pc, #152] @ (800dcd4 ) 800dc3c: f002 fc7c bl 8010538 HAL_GPIO_DeInit(GPIOD, GPIO_PIN_2); 800dc40: 2104 movs r1, #4 800dc42: 4825 ldr r0, [pc, #148] @ (800dcd8 ) 800dc44: f002 fc78 bl 8010538 /* UART5 interrupt Deinit */ HAL_NVIC_DisableIRQ(UART5_IRQn); 800dc48: 2035 movs r0, #53 @ 0x35 800dc4a: f001 fe36 bl 800f8ba HAL_NVIC_DisableIRQ(USART3_IRQn); /* USER CODE BEGIN USART3_MspDeInit 1 */ /* USER CODE END USART3_MspDeInit 1 */ } } 800dc4e: e039 b.n 800dcc4 else if(uartHandle->Instance==USART1) 800dc50: 687b ldr r3, [r7, #4] 800dc52: 681b ldr r3, [r3, #0] 800dc54: 4a21 ldr r2, [pc, #132] @ (800dcdc ) 800dc56: 4293 cmp r3, r2 800dc58: d10e bne.n 800dc78 __HAL_RCC_USART1_CLK_DISABLE(); 800dc5a: 4b1d ldr r3, [pc, #116] @ (800dcd0 ) 800dc5c: 699b ldr r3, [r3, #24] 800dc5e: 4a1c ldr r2, [pc, #112] @ (800dcd0 ) 800dc60: f423 4380 bic.w r3, r3, #16384 @ 0x4000 800dc64: 6193 str r3, [r2, #24] HAL_GPIO_DeInit(GPIOA, GPIO_PIN_9|GPIO_PIN_10); 800dc66: f44f 61c0 mov.w r1, #1536 @ 0x600 800dc6a: 481d ldr r0, [pc, #116] @ (800dce0 ) 800dc6c: f002 fc64 bl 8010538 HAL_NVIC_DisableIRQ(USART1_IRQn); 800dc70: 2025 movs r0, #37 @ 0x25 800dc72: f001 fe22 bl 800f8ba } 800dc76: e025 b.n 800dcc4 else if(uartHandle->Instance==USART2) 800dc78: 687b ldr r3, [r7, #4] 800dc7a: 681b ldr r3, [r3, #0] 800dc7c: 4a19 ldr r2, [pc, #100] @ (800dce4 ) 800dc7e: 4293 cmp r3, r2 800dc80: d10d bne.n 800dc9e __HAL_RCC_USART2_CLK_DISABLE(); 800dc82: 4b13 ldr r3, [pc, #76] @ (800dcd0 ) 800dc84: 69db ldr r3, [r3, #28] 800dc86: 4a12 ldr r2, [pc, #72] @ (800dcd0 ) 800dc88: f423 3300 bic.w r3, r3, #131072 @ 0x20000 800dc8c: 61d3 str r3, [r2, #28] HAL_GPIO_DeInit(GPIOD, GPIO_PIN_5|GPIO_PIN_6); 800dc8e: 2160 movs r1, #96 @ 0x60 800dc90: 4811 ldr r0, [pc, #68] @ (800dcd8 ) 800dc92: f002 fc51 bl 8010538 HAL_NVIC_DisableIRQ(USART2_IRQn); 800dc96: 2026 movs r0, #38 @ 0x26 800dc98: f001 fe0f bl 800f8ba } 800dc9c: e012 b.n 800dcc4 else if(uartHandle->Instance==USART3) 800dc9e: 687b ldr r3, [r7, #4] 800dca0: 681b ldr r3, [r3, #0] 800dca2: 4a11 ldr r2, [pc, #68] @ (800dce8 ) 800dca4: 4293 cmp r3, r2 800dca6: d10d bne.n 800dcc4 __HAL_RCC_USART3_CLK_DISABLE(); 800dca8: 4b09 ldr r3, [pc, #36] @ (800dcd0 ) 800dcaa: 69db ldr r3, [r3, #28] 800dcac: 4a08 ldr r2, [pc, #32] @ (800dcd0 ) 800dcae: f423 2380 bic.w r3, r3, #262144 @ 0x40000 800dcb2: 61d3 str r3, [r2, #28] HAL_GPIO_DeInit(GPIOC, GPIO_PIN_10|GPIO_PIN_11); 800dcb4: f44f 6140 mov.w r1, #3072 @ 0xc00 800dcb8: 4806 ldr r0, [pc, #24] @ (800dcd4 ) 800dcba: f002 fc3d bl 8010538 HAL_NVIC_DisableIRQ(USART3_IRQn); 800dcbe: 2027 movs r0, #39 @ 0x27 800dcc0: f001 fdfb bl 800f8ba } 800dcc4: bf00 nop 800dcc6: 3708 adds r7, #8 800dcc8: 46bd mov sp, r7 800dcca: bd80 pop {r7, pc} 800dccc: 40005000 .word 0x40005000 800dcd0: 40021000 .word 0x40021000 800dcd4: 40011000 .word 0x40011000 800dcd8: 40011400 .word 0x40011400 800dcdc: 40013800 .word 0x40013800 800dce0: 40010800 .word 0x40010800 800dce4: 40004400 .word 0x40004400 800dce8: 40004800 .word 0x40004800 0800dcec : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Call the clock system initialization function.*/ bl SystemInit 800dcec: f7ff fbe2 bl 800d4b4 /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata 800dcf0: 480b ldr r0, [pc, #44] @ (800dd20 ) ldr r1, =_edata 800dcf2: 490c ldr r1, [pc, #48] @ (800dd24 ) ldr r2, =_sidata 800dcf4: 4a0c ldr r2, [pc, #48] @ (800dd28 ) movs r3, #0 800dcf6: 2300 movs r3, #0 b LoopCopyDataInit 800dcf8: e002 b.n 800dd00 0800dcfa : CopyDataInit: ldr r4, [r2, r3] 800dcfa: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] 800dcfc: 50c4 str r4, [r0, r3] adds r3, r3, #4 800dcfe: 3304 adds r3, #4 0800dd00 : LoopCopyDataInit: adds r4, r0, r3 800dd00: 18c4 adds r4, r0, r3 cmp r4, r1 800dd02: 428c cmp r4, r1 bcc CopyDataInit 800dd04: d3f9 bcc.n 800dcfa /* Zero fill the bss segment. */ ldr r2, =_sbss 800dd06: 4a09 ldr r2, [pc, #36] @ (800dd2c ) ldr r4, =_ebss 800dd08: 4c09 ldr r4, [pc, #36] @ (800dd30 ) movs r3, #0 800dd0a: 2300 movs r3, #0 b LoopFillZerobss 800dd0c: e001 b.n 800dd12 0800dd0e : FillZerobss: str r3, [r2] 800dd0e: 6013 str r3, [r2, #0] adds r2, r2, #4 800dd10: 3204 adds r2, #4 0800dd12 : LoopFillZerobss: cmp r2, r4 800dd12: 42a2 cmp r2, r4 bcc FillZerobss 800dd14: d3fb bcc.n 800dd0e /* Call static constructors */ bl __libc_init_array 800dd16: f006 fc09 bl 801452c <__libc_init_array> /* Call the application's entry point.*/ bl main 800dd1a: f7fc fe23 bl 800a964
bx lr 800dd1e: 4770 bx lr ldr r0, =_sdata 800dd20: 20000000 .word 0x20000000 ldr r1, =_edata 800dd24: 2000023c .word 0x2000023c ldr r2, =_sidata 800dd28: 080173ac .word 0x080173ac ldr r2, =_sbss 800dd2c: 20000240 .word 0x20000240 ldr r4, =_ebss 800dd30: 20001398 .word 0x20001398 0800dd34 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop 800dd34: e7fe b.n 800dd34 ... 0800dd38 : * 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) { 800dd38: b580 push {r7, lr} 800dd3a: 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(); 800dd3c: 4b08 ldr r3, [pc, #32] @ (800dd60 ) 800dd3e: 681b ldr r3, [r3, #0] 800dd40: 4a07 ldr r2, [pc, #28] @ (800dd60 ) 800dd42: f043 0310 orr.w r3, r3, #16 800dd46: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); 800dd48: 2003 movs r0, #3 800dd4a: f001 fd81 bl 800f850 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); 800dd4e: 200f movs r0, #15 800dd50: f000 f808 bl 800dd64 /* Init the low level hardware */ HAL_MspInit(); 800dd54: f7ff f9ec bl 800d130 /* Return function status */ return HAL_OK; 800dd58: 2300 movs r3, #0 } 800dd5a: 4618 mov r0, r3 800dd5c: bd80 pop {r7, pc} 800dd5e: bf00 nop 800dd60: 40022000 .word 0x40022000 0800dd64 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { 800dd64: b580 push {r7, lr} 800dd66: b082 sub sp, #8 800dd68: af00 add r7, sp, #0 800dd6a: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) 800dd6c: 4b12 ldr r3, [pc, #72] @ (800ddb8 ) 800dd6e: 681a ldr r2, [r3, #0] 800dd70: 4b12 ldr r3, [pc, #72] @ (800ddbc ) 800dd72: 781b ldrb r3, [r3, #0] 800dd74: 4619 mov r1, r3 800dd76: f44f 737a mov.w r3, #1000 @ 0x3e8 800dd7a: fbb3 f3f1 udiv r3, r3, r1 800dd7e: fbb2 f3f3 udiv r3, r2, r3 800dd82: 4618 mov r0, r3 800dd84: f001 fda7 bl 800f8d6 800dd88: 4603 mov r3, r0 800dd8a: 2b00 cmp r3, #0 800dd8c: d001 beq.n 800dd92 { return HAL_ERROR; 800dd8e: 2301 movs r3, #1 800dd90: e00e b.n 800ddb0 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) 800dd92: 687b ldr r3, [r7, #4] 800dd94: 2b0f cmp r3, #15 800dd96: d80a bhi.n 800ddae { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); 800dd98: 2200 movs r2, #0 800dd9a: 6879 ldr r1, [r7, #4] 800dd9c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 800dda0: f001 fd61 bl 800f866 uwTickPrio = TickPriority; 800dda4: 4a06 ldr r2, [pc, #24] @ (800ddc0 ) 800dda6: 687b ldr r3, [r7, #4] 800dda8: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; 800ddaa: 2300 movs r3, #0 800ddac: e000 b.n 800ddb0 return HAL_ERROR; 800ddae: 2301 movs r3, #1 } 800ddb0: 4618 mov r0, r3 800ddb2: 3708 adds r7, #8 800ddb4: 46bd mov sp, r7 800ddb6: bd80 pop {r7, pc} 800ddb8: 20000068 .word 0x20000068 800ddbc: 20000070 .word 0x20000070 800ddc0: 2000006c .word 0x2000006c 0800ddc4 : * @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) { 800ddc4: b480 push {r7} 800ddc6: af00 add r7, sp, #0 uwTick += uwTickFreq; 800ddc8: 4b05 ldr r3, [pc, #20] @ (800dde0 ) 800ddca: 781b ldrb r3, [r3, #0] 800ddcc: 461a mov r2, r3 800ddce: 4b05 ldr r3, [pc, #20] @ (800dde4 ) 800ddd0: 681b ldr r3, [r3, #0] 800ddd2: 4413 add r3, r2 800ddd4: 4a03 ldr r2, [pc, #12] @ (800dde4 ) 800ddd6: 6013 str r3, [r2, #0] } 800ddd8: bf00 nop 800ddda: 46bd mov sp, r7 800dddc: bc80 pop {r7} 800ddde: 4770 bx lr 800dde0: 20000070 .word 0x20000070 800dde4: 20001248 .word 0x20001248 0800dde8 : * @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) { 800dde8: b480 push {r7} 800ddea: af00 add r7, sp, #0 return uwTick; 800ddec: 4b02 ldr r3, [pc, #8] @ (800ddf8 ) 800ddee: 681b ldr r3, [r3, #0] } 800ddf0: 4618 mov r0, r3 800ddf2: 46bd mov sp, r7 800ddf4: bc80 pop {r7} 800ddf6: 4770 bx lr 800ddf8: 20001248 .word 0x20001248 0800ddfc : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { 800ddfc: b580 push {r7, lr} 800ddfe: b084 sub sp, #16 800de00: af00 add r7, sp, #0 800de02: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 800de04: f7ff fff0 bl 800dde8 800de08: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 800de0a: 687b ldr r3, [r7, #4] 800de0c: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) 800de0e: 68fb ldr r3, [r7, #12] 800de10: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 800de14: d005 beq.n 800de22 { wait += (uint32_t)(uwTickFreq); 800de16: 4b0a ldr r3, [pc, #40] @ (800de40 ) 800de18: 781b ldrb r3, [r3, #0] 800de1a: 461a mov r2, r3 800de1c: 68fb ldr r3, [r7, #12] 800de1e: 4413 add r3, r2 800de20: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) 800de22: bf00 nop 800de24: f7ff ffe0 bl 800dde8 800de28: 4602 mov r2, r0 800de2a: 68bb ldr r3, [r7, #8] 800de2c: 1ad3 subs r3, r2, r3 800de2e: 68fa ldr r2, [r7, #12] 800de30: 429a cmp r2, r3 800de32: d8f7 bhi.n 800de24 { } } 800de34: bf00 nop 800de36: bf00 nop 800de38: 3710 adds r7, #16 800de3a: 46bd mov sp, r7 800de3c: bd80 pop {r7, pc} 800de3e: bf00 nop 800de40: 20000070 .word 0x20000070 0800de44 : * of structure "ADC_InitTypeDef". * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { 800de44: b580 push {r7, lr} 800de46: b086 sub sp, #24 800de48: af00 add r7, sp, #0 800de4a: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800de4c: 2300 movs r3, #0 800de4e: 75fb strb r3, [r7, #23] uint32_t tmp_cr1 = 0U; 800de50: 2300 movs r3, #0 800de52: 613b str r3, [r7, #16] uint32_t tmp_cr2 = 0U; 800de54: 2300 movs r3, #0 800de56: 60bb str r3, [r7, #8] uint32_t tmp_sqr1 = 0U; 800de58: 2300 movs r3, #0 800de5a: 60fb str r3, [r7, #12] /* Check ADC handle */ if(hadc == NULL) 800de5c: 687b ldr r3, [r7, #4] 800de5e: 2b00 cmp r3, #0 800de60: d101 bne.n 800de66 { return HAL_ERROR; 800de62: 2301 movs r3, #1 800de64: e0be b.n 800dfe4 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) 800de66: 687b ldr r3, [r7, #4] 800de68: 689b ldr r3, [r3, #8] 800de6a: 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) 800de6c: 687b ldr r3, [r7, #4] 800de6e: 6a9b ldr r3, [r3, #40] @ 0x28 800de70: 2b00 cmp r3, #0 800de72: d109 bne.n 800de88 { /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); 800de74: 687b ldr r3, [r7, #4] 800de76: 2200 movs r2, #0 800de78: 62da str r2, [r3, #44] @ 0x2c /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; 800de7a: 687b ldr r3, [r7, #4] 800de7c: 2200 movs r2, #0 800de7e: 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); 800de82: 6878 ldr r0, [r7, #4] 800de84: f7fb fc0e 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); 800de88: 6878 ldr r0, [r7, #4] 800de8a: f000 fbbd bl 800e608 800de8e: 4603 mov r3, r0 800de90: 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) && 800de92: 687b ldr r3, [r7, #4] 800de94: 6a9b ldr r3, [r3, #40] @ 0x28 800de96: f003 0310 and.w r3, r3, #16 800de9a: 2b00 cmp r3, #0 800de9c: f040 8099 bne.w 800dfd2 800dea0: 7dfb ldrb r3, [r7, #23] 800dea2: 2b00 cmp r3, #0 800dea4: f040 8095 bne.w 800dfd2 (tmp_hal_status == HAL_OK) ) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800dea8: 687b ldr r3, [r7, #4] 800deaa: 6a9b ldr r3, [r3, #40] @ 0x28 800deac: f423 5388 bic.w r3, r3, #4352 @ 0x1100 800deb0: f023 0302 bic.w r3, r3, #2 800deb4: f043 0202 orr.w r2, r3, #2 800deb8: 687b ldr r3, [r7, #4] 800deba: 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 | 800debc: 687b ldr r3, [r7, #4] 800debe: 685a ldr r2, [r3, #4] ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | 800dec0: 687b ldr r3, [r7, #4] 800dec2: 69db ldr r3, [r3, #28] tmp_cr2 |= (hadc->Init.DataAlign | 800dec4: 431a orrs r2, r3 ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) ); 800dec6: 687b ldr r3, [r7, #4] 800dec8: 7b1b ldrb r3, [r3, #12] 800deca: 005b lsls r3, r3, #1 ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | 800decc: 4313 orrs r3, r2 tmp_cr2 |= (hadc->Init.DataAlign | 800dece: 68ba ldr r2, [r7, #8] 800ded0: 4313 orrs r3, r2 800ded2: 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)); 800ded4: 687b ldr r3, [r7, #4] 800ded6: 689b ldr r3, [r3, #8] 800ded8: f5b3 7f80 cmp.w r3, #256 @ 0x100 800dedc: d003 beq.n 800dee6 800dede: 687b ldr r3, [r7, #4] 800dee0: 689b ldr r3, [r3, #8] 800dee2: 2b01 cmp r3, #1 800dee4: d102 bne.n 800deec 800dee6: f44f 7380 mov.w r3, #256 @ 0x100 800deea: e000 b.n 800deee 800deec: 2300 movs r3, #0 800deee: 693a ldr r2, [r7, #16] 800def0: 4313 orrs r3, r2 800def2: 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) 800def4: 687b ldr r3, [r7, #4] 800def6: 7d1b ldrb r3, [r3, #20] 800def8: 2b01 cmp r3, #1 800defa: d119 bne.n 800df30 { if (hadc->Init.ContinuousConvMode == DISABLE) 800defc: 687b ldr r3, [r7, #4] 800defe: 7b1b ldrb r3, [r3, #12] 800df00: 2b00 cmp r3, #0 800df02: d109 bne.n 800df18 { /* 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 | 800df04: 687b ldr r3, [r7, #4] 800df06: 699b ldr r3, [r3, #24] 800df08: 3b01 subs r3, #1 800df0a: 035a lsls r2, r3, #13 800df0c: 693b ldr r3, [r7, #16] 800df0e: 4313 orrs r3, r2 800df10: f443 6300 orr.w r3, r3, #2048 @ 0x800 800df14: 613b str r3, [r7, #16] 800df16: e00b b.n 800df30 { /* 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); 800df18: 687b ldr r3, [r7, #4] 800df1a: 6a9b ldr r3, [r3, #40] @ 0x28 800df1c: f043 0220 orr.w r2, r3, #32 800df20: 687b ldr r3, [r7, #4] 800df22: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800df24: 687b ldr r3, [r7, #4] 800df26: 6adb ldr r3, [r3, #44] @ 0x2c 800df28: f043 0201 orr.w r2, r3, #1 800df2c: 687b ldr r3, [r7, #4] 800df2e: 62da str r2, [r3, #44] @ 0x2c } } /* Update ADC configuration register CR1 with previous settings */ MODIFY_REG(hadc->Instance->CR1, 800df30: 687b ldr r3, [r7, #4] 800df32: 681b ldr r3, [r3, #0] 800df34: 685b ldr r3, [r3, #4] 800df36: f423 4169 bic.w r1, r3, #59648 @ 0xe900 800df3a: 687b ldr r3, [r7, #4] 800df3c: 681b ldr r3, [r3, #0] 800df3e: 693a ldr r2, [r7, #16] 800df40: 430a orrs r2, r1 800df42: 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, 800df44: 687b ldr r3, [r7, #4] 800df46: 681b ldr r3, [r3, #0] 800df48: 689a ldr r2, [r3, #8] 800df4a: 4b28 ldr r3, [pc, #160] @ (800dfec ) 800df4c: 4013 ands r3, r2 800df4e: 687a ldr r2, [r7, #4] 800df50: 6812 ldr r2, [r2, #0] 800df52: 68b9 ldr r1, [r7, #8] 800df54: 430b orrs r3, r1 800df56: 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) 800df58: 687b ldr r3, [r7, #4] 800df5a: 689b ldr r3, [r3, #8] 800df5c: f5b3 7f80 cmp.w r3, #256 @ 0x100 800df60: d003 beq.n 800df6a 800df62: 687b ldr r3, [r7, #4] 800df64: 689b ldr r3, [r3, #8] 800df66: 2b01 cmp r3, #1 800df68: d104 bne.n 800df74 { tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion); 800df6a: 687b ldr r3, [r7, #4] 800df6c: 691b ldr r3, [r3, #16] 800df6e: 3b01 subs r3, #1 800df70: 051b lsls r3, r3, #20 800df72: 60fb str r3, [r7, #12] } MODIFY_REG(hadc->Instance->SQR1, 800df74: 687b ldr r3, [r7, #4] 800df76: 681b ldr r3, [r3, #0] 800df78: 6adb ldr r3, [r3, #44] @ 0x2c 800df7a: f423 0170 bic.w r1, r3, #15728640 @ 0xf00000 800df7e: 687b ldr r3, [r7, #4] 800df80: 681b ldr r3, [r3, #0] 800df82: 68fa ldr r2, [r7, #12] 800df84: 430a orrs r2, r1 800df86: 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 | 800df88: 687b ldr r3, [r7, #4] 800df8a: 681b ldr r3, [r3, #0] 800df8c: 689a ldr r2, [r3, #8] 800df8e: 4b18 ldr r3, [pc, #96] @ (800dff0 ) 800df90: 4013 ands r3, r2 800df92: 68ba ldr r2, [r7, #8] 800df94: 429a cmp r2, r3 800df96: d10b bne.n 800dfb0 ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL | ADC_CR2_TSVREFE )) == tmp_cr2) { /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); 800df98: 687b ldr r3, [r7, #4] 800df9a: 2200 movs r2, #0 800df9c: 62da str r2, [r3, #44] @ 0x2c /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, 800df9e: 687b ldr r3, [r7, #4] 800dfa0: 6a9b ldr r3, [r3, #40] @ 0x28 800dfa2: f023 0303 bic.w r3, r3, #3 800dfa6: f043 0201 orr.w r2, r3, #1 800dfaa: 687b ldr r3, [r7, #4] 800dfac: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800dfae: e018 b.n 800dfe2 HAL_ADC_STATE_READY); } else { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800dfb0: 687b ldr r3, [r7, #4] 800dfb2: 6a9b ldr r3, [r3, #40] @ 0x28 800dfb4: f023 0312 bic.w r3, r3, #18 800dfb8: f043 0210 orr.w r2, r3, #16 800dfbc: 687b ldr r3, [r7, #4] 800dfbe: 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); 800dfc0: 687b ldr r3, [r7, #4] 800dfc2: 6adb ldr r3, [r3, #44] @ 0x2c 800dfc4: f043 0201 orr.w r2, r3, #1 800dfc8: 687b ldr r3, [r7, #4] 800dfca: 62da str r2, [r3, #44] @ 0x2c tmp_hal_status = HAL_ERROR; 800dfcc: 2301 movs r3, #1 800dfce: 75fb strb r3, [r7, #23] if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800dfd0: e007 b.n 800dfe2 } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800dfd2: 687b ldr r3, [r7, #4] 800dfd4: 6a9b ldr r3, [r3, #40] @ 0x28 800dfd6: f043 0210 orr.w r2, r3, #16 800dfda: 687b ldr r3, [r7, #4] 800dfdc: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; 800dfde: 2301 movs r3, #1 800dfe0: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; 800dfe2: 7dfb ldrb r3, [r7, #23] } 800dfe4: 4618 mov r0, r3 800dfe6: 3718 adds r7, #24 800dfe8: 46bd mov sp, r7 800dfea: bd80 pop {r7, pc} 800dfec: ffe1f7fd .word 0xffe1f7fd 800dff0: ff1f0efe .word 0xff1f0efe 0800dff4 : * @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) { 800dff4: b580 push {r7, lr} 800dff6: b086 sub sp, #24 800dff8: af00 add r7, sp, #0 800dffa: 60f8 str r0, [r7, #12] 800dffc: 60b9 str r1, [r7, #8] 800dffe: 607a str r2, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e000: 2300 movs r3, #0 800e002: 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) 800e004: 68fb ldr r3, [r7, #12] 800e006: 681b ldr r3, [r3, #0] 800e008: 4a64 ldr r2, [pc, #400] @ (800e19c ) 800e00a: 4293 cmp r3, r2 800e00c: d004 beq.n 800e018 800e00e: 68fb ldr r3, [r7, #12] 800e010: 681b ldr r3, [r3, #0] 800e012: 4a63 ldr r2, [pc, #396] @ (800e1a0 ) 800e014: 4293 cmp r3, r2 800e016: d106 bne.n 800e026 800e018: 4b60 ldr r3, [pc, #384] @ (800e19c ) 800e01a: 685b ldr r3, [r3, #4] 800e01c: f403 2370 and.w r3, r3, #983040 @ 0xf0000 800e020: 2b00 cmp r3, #0 800e022: f040 80b3 bne.w 800e18c { /* Process locked */ __HAL_LOCK(hadc); 800e026: 68fb ldr r3, [r7, #12] 800e028: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e02c: 2b01 cmp r3, #1 800e02e: d101 bne.n 800e034 800e030: 2302 movs r3, #2 800e032: e0ae b.n 800e192 800e034: 68fb ldr r3, [r7, #12] 800e036: 2201 movs r2, #1 800e038: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Enable the ADC peripheral */ tmp_hal_status = ADC_Enable(hadc); 800e03c: 68f8 ldr r0, [r7, #12] 800e03e: f000 fa89 bl 800e554 800e042: 4603 mov r3, r0 800e044: 75fb strb r3, [r7, #23] /* Start conversion if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) 800e046: 7dfb ldrb r3, [r7, #23] 800e048: 2b00 cmp r3, #0 800e04a: f040 809a bne.w 800e182 { /* 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, 800e04e: 68fb ldr r3, [r7, #12] 800e050: 6a9b ldr r3, [r3, #40] @ 0x28 800e052: f423 6370 bic.w r3, r3, #3840 @ 0xf00 800e056: f023 0301 bic.w r3, r3, #1 800e05a: f443 7280 orr.w r2, r3, #256 @ 0x100 800e05e: 68fb ldr r3, [r7, #12] 800e060: 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)) 800e062: 68fb ldr r3, [r7, #12] 800e064: 681b ldr r3, [r3, #0] 800e066: 4a4e ldr r2, [pc, #312] @ (800e1a0 ) 800e068: 4293 cmp r3, r2 800e06a: d105 bne.n 800e078 800e06c: 4b4b ldr r3, [pc, #300] @ (800e19c ) 800e06e: 685b ldr r3, [r3, #4] 800e070: f403 2370 and.w r3, r3, #983040 @ 0xf0000 800e074: 2b00 cmp r3, #0 800e076: d115 bne.n 800e0a4 { /* Set ADC state (ADC independent or master) */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 800e078: 68fb ldr r3, [r7, #12] 800e07a: 6a9b ldr r3, [r3, #40] @ 0x28 800e07c: f423 1280 bic.w r2, r3, #1048576 @ 0x100000 800e080: 68fb ldr r3, [r7, #12] 800e082: 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) 800e084: 68fb ldr r3, [r7, #12] 800e086: 681b ldr r3, [r3, #0] 800e088: 685b ldr r3, [r3, #4] 800e08a: f403 6380 and.w r3, r3, #1024 @ 0x400 800e08e: 2b00 cmp r3, #0 800e090: d026 beq.n 800e0e0 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 800e092: 68fb ldr r3, [r7, #12] 800e094: 6a9b ldr r3, [r3, #40] @ 0x28 800e096: f423 5340 bic.w r3, r3, #12288 @ 0x3000 800e09a: f443 5280 orr.w r2, r3, #4096 @ 0x1000 800e09e: 68fb ldr r3, [r7, #12] 800e0a0: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) 800e0a2: e01d b.n 800e0e0 } } else { /* Set ADC state (ADC slave) */ SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 800e0a4: 68fb ldr r3, [r7, #12] 800e0a6: 6a9b ldr r3, [r3, #40] @ 0x28 800e0a8: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 800e0ac: 68fb ldr r3, [r7, #12] 800e0ae: 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)) 800e0b0: 68fb ldr r3, [r7, #12] 800e0b2: 681b ldr r3, [r3, #0] 800e0b4: 4a39 ldr r2, [pc, #228] @ (800e19c ) 800e0b6: 4293 cmp r3, r2 800e0b8: d004 beq.n 800e0c4 800e0ba: 68fb ldr r3, [r7, #12] 800e0bc: 681b ldr r3, [r3, #0] 800e0be: 4a38 ldr r2, [pc, #224] @ (800e1a0 ) 800e0c0: 4293 cmp r3, r2 800e0c2: d10d bne.n 800e0e0 800e0c4: 4b35 ldr r3, [pc, #212] @ (800e19c ) 800e0c6: 685b ldr r3, [r3, #4] 800e0c8: f403 6380 and.w r3, r3, #1024 @ 0x400 800e0cc: 2b00 cmp r3, #0 800e0ce: d007 beq.n 800e0e0 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 800e0d0: 68fb ldr r3, [r7, #12] 800e0d2: 6a9b ldr r3, [r3, #40] @ 0x28 800e0d4: f423 5340 bic.w r3, r3, #12288 @ 0x3000 800e0d8: f443 5280 orr.w r2, r3, #4096 @ 0x1000 800e0dc: 68fb ldr r3, [r7, #12] 800e0de: 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)) 800e0e0: 68fb ldr r3, [r7, #12] 800e0e2: 6a9b ldr r3, [r3, #40] @ 0x28 800e0e4: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e0e8: 2b00 cmp r3, #0 800e0ea: d006 beq.n 800e0fa { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 800e0ec: 68fb ldr r3, [r7, #12] 800e0ee: 6adb ldr r3, [r3, #44] @ 0x2c 800e0f0: f023 0206 bic.w r2, r3, #6 800e0f4: 68fb ldr r3, [r7, #12] 800e0f6: 62da str r2, [r3, #44] @ 0x2c 800e0f8: e002 b.n 800e100 } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); 800e0fa: 68fb ldr r3, [r7, #12] 800e0fc: 2200 movs r2, #0 800e0fe: 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); 800e100: 68fb ldr r3, [r7, #12] 800e102: 2200 movs r2, #0 800e104: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Set the DMA transfer complete callback */ hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; 800e108: 68fb ldr r3, [r7, #12] 800e10a: 6a1b ldr r3, [r3, #32] 800e10c: 4a25 ldr r2, [pc, #148] @ (800e1a4 ) 800e10e: 629a str r2, [r3, #40] @ 0x28 /* Set the DMA half transfer complete callback */ hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; 800e110: 68fb ldr r3, [r7, #12] 800e112: 6a1b ldr r3, [r3, #32] 800e114: 4a24 ldr r2, [pc, #144] @ (800e1a8 ) 800e116: 62da str r2, [r3, #44] @ 0x2c /* Set the DMA error callback */ hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; 800e118: 68fb ldr r3, [r7, #12] 800e11a: 6a1b ldr r3, [r3, #32] 800e11c: 4a23 ldr r2, [pc, #140] @ (800e1ac ) 800e11e: 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); 800e120: 68fb ldr r3, [r7, #12] 800e122: 681b ldr r3, [r3, #0] 800e124: f06f 0202 mvn.w r2, #2 800e128: 601a str r2, [r3, #0] /* Enable ADC DMA mode */ SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA); 800e12a: 68fb ldr r3, [r7, #12] 800e12c: 681b ldr r3, [r3, #0] 800e12e: 689a ldr r2, [r3, #8] 800e130: 68fb ldr r3, [r7, #12] 800e132: 681b ldr r3, [r3, #0] 800e134: f442 7280 orr.w r2, r2, #256 @ 0x100 800e138: 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); 800e13a: 68fb ldr r3, [r7, #12] 800e13c: 6a18 ldr r0, [r3, #32] 800e13e: 68fb ldr r3, [r7, #12] 800e140: 681b ldr r3, [r3, #0] 800e142: 334c adds r3, #76 @ 0x4c 800e144: 4619 mov r1, r3 800e146: 68ba ldr r2, [r7, #8] 800e148: 687b ldr r3, [r7, #4] 800e14a: f001 fc63 bl 800fa14 /* 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)) 800e14e: 68fb ldr r3, [r7, #12] 800e150: 681b ldr r3, [r3, #0] 800e152: 689b ldr r3, [r3, #8] 800e154: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e158: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e15c: d108 bne.n 800e170 { /* Start ADC conversion on regular group with SW start */ SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG)); 800e15e: 68fb ldr r3, [r7, #12] 800e160: 681b ldr r3, [r3, #0] 800e162: 689a ldr r2, [r3, #8] 800e164: 68fb ldr r3, [r7, #12] 800e166: 681b ldr r3, [r3, #0] 800e168: f442 02a0 orr.w r2, r2, #5242880 @ 0x500000 800e16c: 609a str r2, [r3, #8] if (tmp_hal_status == HAL_OK) 800e16e: e00f b.n 800e190 } else { /* Start ADC conversion on regular group with external trigger */ SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG); 800e170: 68fb ldr r3, [r7, #12] 800e172: 681b ldr r3, [r3, #0] 800e174: 689a ldr r2, [r3, #8] 800e176: 68fb ldr r3, [r7, #12] 800e178: 681b ldr r3, [r3, #0] 800e17a: f442 1280 orr.w r2, r2, #1048576 @ 0x100000 800e17e: 609a str r2, [r3, #8] if (tmp_hal_status == HAL_OK) 800e180: e006 b.n 800e190 } } else { /* Process unlocked */ __HAL_UNLOCK(hadc); 800e182: 68fb ldr r3, [r7, #12] 800e184: 2200 movs r2, #0 800e186: f883 2024 strb.w r2, [r3, #36] @ 0x24 if (tmp_hal_status == HAL_OK) 800e18a: e001 b.n 800e190 } } else { tmp_hal_status = HAL_ERROR; 800e18c: 2301 movs r3, #1 800e18e: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; 800e190: 7dfb ldrb r3, [r7, #23] } 800e192: 4618 mov r0, r3 800e194: 3718 adds r7, #24 800e196: 46bd mov sp, r7 800e198: bd80 pop {r7, pc} 800e19a: bf00 nop 800e19c: 40012400 .word 0x40012400 800e1a0: 40012800 .word 0x40012800 800e1a4: 0800e68b .word 0x0800e68b 800e1a8: 0800e707 .word 0x0800e707 800e1ac: 0800e723 .word 0x0800e723 0800e1b0 : * @brief Handles ADC interrupt request * @param hadc: ADC handle * @retval None */ void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc) { 800e1b0: b580 push {r7, lr} 800e1b2: b084 sub sp, #16 800e1b4: af00 add r7, sp, #0 800e1b6: 6078 str r0, [r7, #4] uint32_t tmp_sr = hadc->Instance->SR; 800e1b8: 687b ldr r3, [r7, #4] 800e1ba: 681b ldr r3, [r3, #0] 800e1bc: 681b ldr r3, [r3, #0] 800e1be: 60fb str r3, [r7, #12] uint32_t tmp_cr1 = hadc->Instance->CR1; 800e1c0: 687b ldr r3, [r7, #4] 800e1c2: 681b ldr r3, [r3, #0] 800e1c4: 685b ldr r3, [r3, #4] 800e1c6: 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) 800e1c8: 68bb ldr r3, [r7, #8] 800e1ca: f003 0320 and.w r3, r3, #32 800e1ce: 2b00 cmp r3, #0 800e1d0: d03e beq.n 800e250 { if((tmp_sr & ADC_FLAG_EOC) == ADC_FLAG_EOC) 800e1d2: 68fb ldr r3, [r7, #12] 800e1d4: f003 0302 and.w r3, r3, #2 800e1d8: 2b00 cmp r3, #0 800e1da: d039 beq.n 800e250 { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) 800e1dc: 687b ldr r3, [r7, #4] 800e1de: 6a9b ldr r3, [r3, #40] @ 0x28 800e1e0: f003 0310 and.w r3, r3, #16 800e1e4: 2b00 cmp r3, #0 800e1e6: d105 bne.n 800e1f4 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 800e1e8: 687b ldr r3, [r7, #4] 800e1ea: 6a9b ldr r3, [r3, #40] @ 0x28 800e1ec: f443 7200 orr.w r2, r3, #512 @ 0x200 800e1f0: 687b ldr r3, [r7, #4] 800e1f2: 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) && 800e1f4: 687b ldr r3, [r7, #4] 800e1f6: 681b ldr r3, [r3, #0] 800e1f8: 689b ldr r3, [r3, #8] 800e1fa: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e1fe: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e202: d11d bne.n 800e240 (hadc->Init.ContinuousConvMode == DISABLE) ) 800e204: 687b ldr r3, [r7, #4] 800e206: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e208: 2b00 cmp r3, #0 800e20a: d119 bne.n 800e240 { /* Disable ADC end of conversion interrupt on group regular */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); 800e20c: 687b ldr r3, [r7, #4] 800e20e: 681b ldr r3, [r3, #0] 800e210: 685a ldr r2, [r3, #4] 800e212: 687b ldr r3, [r7, #4] 800e214: 681b ldr r3, [r3, #0] 800e216: f022 0220 bic.w r2, r2, #32 800e21a: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 800e21c: 687b ldr r3, [r7, #4] 800e21e: 6a9b ldr r3, [r3, #40] @ 0x28 800e220: f423 7280 bic.w r2, r3, #256 @ 0x100 800e224: 687b ldr r3, [r7, #4] 800e226: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800e228: 687b ldr r3, [r7, #4] 800e22a: 6a9b ldr r3, [r3, #40] @ 0x28 800e22c: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e230: 2b00 cmp r3, #0 800e232: d105 bne.n 800e240 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e234: 687b ldr r3, [r7, #4] 800e236: 6a9b ldr r3, [r3, #40] @ 0x28 800e238: f043 0201 orr.w r2, r3, #1 800e23c: 687b ldr r3, [r7, #4] 800e23e: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); 800e240: 6878 ldr r0, [r7, #4] 800e242: f7fb f983 bl 800954c #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); 800e246: 687b ldr r3, [r7, #4] 800e248: 681b ldr r3, [r3, #0] 800e24a: f06f 0212 mvn.w r2, #18 800e24e: 601a str r2, [r3, #0] } } /* ========== Check End of Conversion flag for injected group ========== */ if((tmp_cr1 & ADC_IT_JEOC) == ADC_IT_JEOC) 800e250: 68bb ldr r3, [r7, #8] 800e252: f003 0380 and.w r3, r3, #128 @ 0x80 800e256: 2b00 cmp r3, #0 800e258: d04d beq.n 800e2f6 { if((tmp_sr & ADC_FLAG_JEOC) == ADC_FLAG_JEOC) 800e25a: 68fb ldr r3, [r7, #12] 800e25c: f003 0304 and.w r3, r3, #4 800e260: 2b00 cmp r3, #0 800e262: d048 beq.n 800e2f6 { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) 800e264: 687b ldr r3, [r7, #4] 800e266: 6a9b ldr r3, [r3, #40] @ 0x28 800e268: f003 0310 and.w r3, r3, #16 800e26c: 2b00 cmp r3, #0 800e26e: d105 bne.n 800e27c { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); 800e270: 687b ldr r3, [r7, #4] 800e272: 6a9b ldr r3, [r3, #40] @ 0x28 800e274: f443 5200 orr.w r2, r3, #8192 @ 0x2000 800e278: 687b ldr r3, [r7, #4] 800e27a: 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) || 800e27c: 687b ldr r3, [r7, #4] 800e27e: 681b ldr r3, [r3, #0] 800e280: 689b ldr r3, [r3, #8] 800e282: f403 43e0 and.w r3, r3, #28672 @ 0x7000 800e286: f5b3 4fe0 cmp.w r3, #28672 @ 0x7000 800e28a: d012 beq.n 800e2b2 (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && 800e28c: 687b ldr r3, [r7, #4] 800e28e: 681b ldr r3, [r3, #0] 800e290: 685b ldr r3, [r3, #4] 800e292: f403 6380 and.w r3, r3, #1024 @ 0x400 if(ADC_IS_SOFTWARE_START_INJECTED(hadc) || 800e296: 2b00 cmp r3, #0 800e298: d125 bne.n 800e2e6 (ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e29a: 687b ldr r3, [r7, #4] 800e29c: 681b ldr r3, [r3, #0] 800e29e: 689b ldr r3, [r3, #8] 800e2a0: f403 2360 and.w r3, r3, #917504 @ 0xe0000 (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && 800e2a4: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e2a8: d11d bne.n 800e2e6 (hadc->Init.ContinuousConvMode == DISABLE) ) ) ) 800e2aa: 687b ldr r3, [r7, #4] 800e2ac: 7b1b ldrb r3, [r3, #12] (ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e2ae: 2b00 cmp r3, #0 800e2b0: d119 bne.n 800e2e6 { /* Disable ADC end of conversion interrupt on group injected */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 800e2b2: 687b ldr r3, [r7, #4] 800e2b4: 681b ldr r3, [r3, #0] 800e2b6: 685a ldr r2, [r3, #4] 800e2b8: 687b ldr r3, [r7, #4] 800e2ba: 681b ldr r3, [r3, #0] 800e2bc: f022 0280 bic.w r2, r2, #128 @ 0x80 800e2c0: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); 800e2c2: 687b ldr r3, [r7, #4] 800e2c4: 6a9b ldr r3, [r3, #40] @ 0x28 800e2c6: f423 5280 bic.w r2, r3, #4096 @ 0x1000 800e2ca: 687b ldr r3, [r7, #4] 800e2cc: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) 800e2ce: 687b ldr r3, [r7, #4] 800e2d0: 6a9b ldr r3, [r3, #40] @ 0x28 800e2d2: f403 7380 and.w r3, r3, #256 @ 0x100 800e2d6: 2b00 cmp r3, #0 800e2d8: d105 bne.n 800e2e6 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e2da: 687b ldr r3, [r7, #4] 800e2dc: 6a9b ldr r3, [r3, #40] @ 0x28 800e2de: f043 0201 orr.w r2, r3, #1 800e2e2: 687b ldr r3, [r7, #4] 800e2e4: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->InjectedConvCpltCallback(hadc); #else HAL_ADCEx_InjectedConvCpltCallback(hadc); 800e2e6: 6878 ldr r0, [r7, #4] 800e2e8: f000 fae4 bl 800e8b4 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear injected group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC)); 800e2ec: 687b ldr r3, [r7, #4] 800e2ee: 681b ldr r3, [r3, #0] 800e2f0: f06f 020c mvn.w r2, #12 800e2f4: 601a str r2, [r3, #0] } } /* ========== Check Analog watchdog flags ========== */ if((tmp_cr1 & ADC_IT_AWD) == ADC_IT_AWD) 800e2f6: 68bb ldr r3, [r7, #8] 800e2f8: f003 0340 and.w r3, r3, #64 @ 0x40 800e2fc: 2b00 cmp r3, #0 800e2fe: d012 beq.n 800e326 { if((tmp_sr & ADC_FLAG_AWD) == ADC_FLAG_AWD) 800e300: 68fb ldr r3, [r7, #12] 800e302: f003 0301 and.w r3, r3, #1 800e306: 2b00 cmp r3, #0 800e308: d00d beq.n 800e326 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 800e30a: 687b ldr r3, [r7, #4] 800e30c: 6a9b ldr r3, [r3, #40] @ 0x28 800e30e: f443 3280 orr.w r2, r3, #65536 @ 0x10000 800e312: 687b ldr r3, [r7, #4] 800e314: 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); 800e316: 6878 ldr r0, [r7, #4] 800e318: f000 f812 bl 800e340 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the ADC analog watchdog flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); 800e31c: 687b ldr r3, [r7, #4] 800e31e: 681b ldr r3, [r3, #0] 800e320: f06f 0201 mvn.w r2, #1 800e324: 601a str r2, [r3, #0] } } } 800e326: bf00 nop 800e328: 3710 adds r7, #16 800e32a: 46bd mov sp, r7 800e32c: bd80 pop {r7, pc} 0800e32e : * @brief Conversion DMA half-transfer callback in non blocking mode * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc) { 800e32e: b480 push {r7} 800e330: b083 sub sp, #12 800e332: af00 add r7, sp, #0 800e334: 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. */ } 800e336: bf00 nop 800e338: 370c adds r7, #12 800e33a: 46bd mov sp, r7 800e33c: bc80 pop {r7} 800e33e: 4770 bx lr 0800e340 : * @brief Analog watchdog callback in non blocking mode. * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc) { 800e340: b480 push {r7} 800e342: b083 sub sp, #12 800e344: af00 add r7, sp, #0 800e346: 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. */ } 800e348: bf00 nop 800e34a: 370c adds r7, #12 800e34c: 46bd mov sp, r7 800e34e: bc80 pop {r7} 800e350: 4770 bx lr 0800e352 : * (ADC conversion with interruption or transfer by DMA) * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) { 800e352: b480 push {r7} 800e354: b083 sub sp, #12 800e356: af00 add r7, sp, #0 800e358: 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. */ } 800e35a: bf00 nop 800e35c: 370c adds r7, #12 800e35e: 46bd mov sp, r7 800e360: bc80 pop {r7} 800e362: 4770 bx lr 0800e364 : * @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) { 800e364: b480 push {r7} 800e366: b085 sub sp, #20 800e368: af00 add r7, sp, #0 800e36a: 6078 str r0, [r7, #4] 800e36c: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e36e: 2300 movs r3, #0 800e370: 73fb strb r3, [r7, #15] __IO uint32_t wait_loop_index = 0U; 800e372: 2300 movs r3, #0 800e374: 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); 800e376: 687b ldr r3, [r7, #4] 800e378: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e37c: 2b01 cmp r3, #1 800e37e: d101 bne.n 800e384 800e380: 2302 movs r3, #2 800e382: e0dc b.n 800e53e 800e384: 687b ldr r3, [r7, #4] 800e386: 2201 movs r2, #1 800e388: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Regular sequence configuration */ /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) 800e38c: 683b ldr r3, [r7, #0] 800e38e: 685b ldr r3, [r3, #4] 800e390: 2b06 cmp r3, #6 800e392: d81c bhi.n 800e3ce { MODIFY_REG(hadc->Instance->SQR3 , 800e394: 687b ldr r3, [r7, #4] 800e396: 681b ldr r3, [r3, #0] 800e398: 6b59 ldr r1, [r3, #52] @ 0x34 800e39a: 683b ldr r3, [r7, #0] 800e39c: 685a ldr r2, [r3, #4] 800e39e: 4613 mov r3, r2 800e3a0: 009b lsls r3, r3, #2 800e3a2: 4413 add r3, r2 800e3a4: 3b05 subs r3, #5 800e3a6: 221f movs r2, #31 800e3a8: fa02 f303 lsl.w r3, r2, r3 800e3ac: 43db mvns r3, r3 800e3ae: 4019 ands r1, r3 800e3b0: 683b ldr r3, [r7, #0] 800e3b2: 6818 ldr r0, [r3, #0] 800e3b4: 683b ldr r3, [r7, #0] 800e3b6: 685a ldr r2, [r3, #4] 800e3b8: 4613 mov r3, r2 800e3ba: 009b lsls r3, r3, #2 800e3bc: 4413 add r3, r2 800e3be: 3b05 subs r3, #5 800e3c0: fa00 f203 lsl.w r2, r0, r3 800e3c4: 687b ldr r3, [r7, #4] 800e3c6: 681b ldr r3, [r3, #0] 800e3c8: 430a orrs r2, r1 800e3ca: 635a str r2, [r3, #52] @ 0x34 800e3cc: e03c b.n 800e448 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) 800e3ce: 683b ldr r3, [r7, #0] 800e3d0: 685b ldr r3, [r3, #4] 800e3d2: 2b0c cmp r3, #12 800e3d4: d81c bhi.n 800e410 { MODIFY_REG(hadc->Instance->SQR2 , 800e3d6: 687b ldr r3, [r7, #4] 800e3d8: 681b ldr r3, [r3, #0] 800e3da: 6b19 ldr r1, [r3, #48] @ 0x30 800e3dc: 683b ldr r3, [r7, #0] 800e3de: 685a ldr r2, [r3, #4] 800e3e0: 4613 mov r3, r2 800e3e2: 009b lsls r3, r3, #2 800e3e4: 4413 add r3, r2 800e3e6: 3b23 subs r3, #35 @ 0x23 800e3e8: 221f movs r2, #31 800e3ea: fa02 f303 lsl.w r3, r2, r3 800e3ee: 43db mvns r3, r3 800e3f0: 4019 ands r1, r3 800e3f2: 683b ldr r3, [r7, #0] 800e3f4: 6818 ldr r0, [r3, #0] 800e3f6: 683b ldr r3, [r7, #0] 800e3f8: 685a ldr r2, [r3, #4] 800e3fa: 4613 mov r3, r2 800e3fc: 009b lsls r3, r3, #2 800e3fe: 4413 add r3, r2 800e400: 3b23 subs r3, #35 @ 0x23 800e402: fa00 f203 lsl.w r2, r0, r3 800e406: 687b ldr r3, [r7, #4] 800e408: 681b ldr r3, [r3, #0] 800e40a: 430a orrs r2, r1 800e40c: 631a str r2, [r3, #48] @ 0x30 800e40e: e01b b.n 800e448 ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 13 to 16 */ else { MODIFY_REG(hadc->Instance->SQR1 , 800e410: 687b ldr r3, [r7, #4] 800e412: 681b ldr r3, [r3, #0] 800e414: 6ad9 ldr r1, [r3, #44] @ 0x2c 800e416: 683b ldr r3, [r7, #0] 800e418: 685a ldr r2, [r3, #4] 800e41a: 4613 mov r3, r2 800e41c: 009b lsls r3, r3, #2 800e41e: 4413 add r3, r2 800e420: 3b41 subs r3, #65 @ 0x41 800e422: 221f movs r2, #31 800e424: fa02 f303 lsl.w r3, r2, r3 800e428: 43db mvns r3, r3 800e42a: 4019 ands r1, r3 800e42c: 683b ldr r3, [r7, #0] 800e42e: 6818 ldr r0, [r3, #0] 800e430: 683b ldr r3, [r7, #0] 800e432: 685a ldr r2, [r3, #4] 800e434: 4613 mov r3, r2 800e436: 009b lsls r3, r3, #2 800e438: 4413 add r3, r2 800e43a: 3b41 subs r3, #65 @ 0x41 800e43c: fa00 f203 lsl.w r2, r0, r3 800e440: 687b ldr r3, [r7, #4] 800e442: 681b ldr r3, [r3, #0] 800e444: 430a orrs r2, r1 800e446: 62da str r2, [r3, #44] @ 0x2c } /* Channel sampling time configuration */ /* For channels 10 to 17 */ if (sConfig->Channel >= ADC_CHANNEL_10) 800e448: 683b ldr r3, [r7, #0] 800e44a: 681b ldr r3, [r3, #0] 800e44c: 2b09 cmp r3, #9 800e44e: d91c bls.n 800e48a { MODIFY_REG(hadc->Instance->SMPR1 , 800e450: 687b ldr r3, [r7, #4] 800e452: 681b ldr r3, [r3, #0] 800e454: 68d9 ldr r1, [r3, #12] 800e456: 683b ldr r3, [r7, #0] 800e458: 681a ldr r2, [r3, #0] 800e45a: 4613 mov r3, r2 800e45c: 005b lsls r3, r3, #1 800e45e: 4413 add r3, r2 800e460: 3b1e subs r3, #30 800e462: 2207 movs r2, #7 800e464: fa02 f303 lsl.w r3, r2, r3 800e468: 43db mvns r3, r3 800e46a: 4019 ands r1, r3 800e46c: 683b ldr r3, [r7, #0] 800e46e: 6898 ldr r0, [r3, #8] 800e470: 683b ldr r3, [r7, #0] 800e472: 681a ldr r2, [r3, #0] 800e474: 4613 mov r3, r2 800e476: 005b lsls r3, r3, #1 800e478: 4413 add r3, r2 800e47a: 3b1e subs r3, #30 800e47c: fa00 f203 lsl.w r2, r0, r3 800e480: 687b ldr r3, [r7, #4] 800e482: 681b ldr r3, [r3, #0] 800e484: 430a orrs r2, r1 800e486: 60da str r2, [r3, #12] 800e488: e019 b.n 800e4be ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) , ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) ); } else /* For channels 0 to 9 */ { MODIFY_REG(hadc->Instance->SMPR2 , 800e48a: 687b ldr r3, [r7, #4] 800e48c: 681b ldr r3, [r3, #0] 800e48e: 6919 ldr r1, [r3, #16] 800e490: 683b ldr r3, [r7, #0] 800e492: 681a ldr r2, [r3, #0] 800e494: 4613 mov r3, r2 800e496: 005b lsls r3, r3, #1 800e498: 4413 add r3, r2 800e49a: 2207 movs r2, #7 800e49c: fa02 f303 lsl.w r3, r2, r3 800e4a0: 43db mvns r3, r3 800e4a2: 4019 ands r1, r3 800e4a4: 683b ldr r3, [r7, #0] 800e4a6: 6898 ldr r0, [r3, #8] 800e4a8: 683b ldr r3, [r7, #0] 800e4aa: 681a ldr r2, [r3, #0] 800e4ac: 4613 mov r3, r2 800e4ae: 005b lsls r3, r3, #1 800e4b0: 4413 add r3, r2 800e4b2: fa00 f203 lsl.w r2, r0, r3 800e4b6: 687b ldr r3, [r7, #4] 800e4b8: 681b ldr r3, [r3, #0] 800e4ba: 430a orrs r2, r1 800e4bc: 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) || 800e4be: 683b ldr r3, [r7, #0] 800e4c0: 681b ldr r3, [r3, #0] 800e4c2: 2b10 cmp r3, #16 800e4c4: d003 beq.n 800e4ce (sConfig->Channel == ADC_CHANNEL_VREFINT) ) 800e4c6: 683b ldr r3, [r7, #0] 800e4c8: 681b ldr r3, [r3, #0] if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || 800e4ca: 2b11 cmp r3, #17 800e4cc: d132 bne.n 800e534 { /* 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) 800e4ce: 687b ldr r3, [r7, #4] 800e4d0: 681b ldr r3, [r3, #0] 800e4d2: 4a1d ldr r2, [pc, #116] @ (800e548 ) 800e4d4: 4293 cmp r3, r2 800e4d6: d125 bne.n 800e524 { if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET) 800e4d8: 687b ldr r3, [r7, #4] 800e4da: 681b ldr r3, [r3, #0] 800e4dc: 689b ldr r3, [r3, #8] 800e4de: f403 0300 and.w r3, r3, #8388608 @ 0x800000 800e4e2: 2b00 cmp r3, #0 800e4e4: d126 bne.n 800e534 { SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE); 800e4e6: 687b ldr r3, [r7, #4] 800e4e8: 681b ldr r3, [r3, #0] 800e4ea: 689a ldr r2, [r3, #8] 800e4ec: 687b ldr r3, [r7, #4] 800e4ee: 681b ldr r3, [r3, #0] 800e4f0: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 800e4f4: 609a str r2, [r3, #8] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) 800e4f6: 683b ldr r3, [r7, #0] 800e4f8: 681b ldr r3, [r3, #0] 800e4fa: 2b10 cmp r3, #16 800e4fc: d11a bne.n 800e534 { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); 800e4fe: 4b13 ldr r3, [pc, #76] @ (800e54c ) 800e500: 681b ldr r3, [r3, #0] 800e502: 4a13 ldr r2, [pc, #76] @ (800e550 ) 800e504: fba2 2303 umull r2, r3, r2, r3 800e508: 0c9a lsrs r2, r3, #18 800e50a: 4613 mov r3, r2 800e50c: 009b lsls r3, r3, #2 800e50e: 4413 add r3, r2 800e510: 005b lsls r3, r3, #1 800e512: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e514: e002 b.n 800e51c { wait_loop_index--; 800e516: 68bb ldr r3, [r7, #8] 800e518: 3b01 subs r3, #1 800e51a: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e51c: 68bb ldr r3, [r7, #8] 800e51e: 2b00 cmp r3, #0 800e520: d1f9 bne.n 800e516 800e522: e007 b.n 800e534 } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 800e524: 687b ldr r3, [r7, #4] 800e526: 6a9b ldr r3, [r3, #40] @ 0x28 800e528: f043 0220 orr.w r2, r3, #32 800e52c: 687b ldr r3, [r7, #4] 800e52e: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; 800e530: 2301 movs r3, #1 800e532: 73fb strb r3, [r7, #15] } } /* Process unlocked */ __HAL_UNLOCK(hadc); 800e534: 687b ldr r3, [r7, #4] 800e536: 2200 movs r2, #0 800e538: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; 800e53c: 7bfb ldrb r3, [r7, #15] } 800e53e: 4618 mov r0, r3 800e540: 3714 adds r7, #20 800e542: 46bd mov sp, r7 800e544: bc80 pop {r7} 800e546: 4770 bx lr 800e548: 40012400 .word 0x40012400 800e54c: 20000068 .word 0x20000068 800e550: 431bde83 .word 0x431bde83 0800e554 : * 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) { 800e554: b580 push {r7, lr} 800e556: b084 sub sp, #16 800e558: af00 add r7, sp, #0 800e55a: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800e55c: 2300 movs r3, #0 800e55e: 60fb str r3, [r7, #12] __IO uint32_t wait_loop_index = 0U; 800e560: 2300 movs r3, #0 800e562: 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) 800e564: 687b ldr r3, [r7, #4] 800e566: 681b ldr r3, [r3, #0] 800e568: 689b ldr r3, [r3, #8] 800e56a: f003 0301 and.w r3, r3, #1 800e56e: 2b01 cmp r3, #1 800e570: d040 beq.n 800e5f4 { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); 800e572: 687b ldr r3, [r7, #4] 800e574: 681b ldr r3, [r3, #0] 800e576: 689a ldr r2, [r3, #8] 800e578: 687b ldr r3, [r7, #4] 800e57a: 681b ldr r3, [r3, #0] 800e57c: f042 0201 orr.w r2, r2, #1 800e580: 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)); 800e582: 4b1f ldr r3, [pc, #124] @ (800e600 ) 800e584: 681b ldr r3, [r3, #0] 800e586: 4a1f ldr r2, [pc, #124] @ (800e604 ) 800e588: fba2 2303 umull r2, r3, r2, r3 800e58c: 0c9b lsrs r3, r3, #18 800e58e: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e590: e002 b.n 800e598 { wait_loop_index--; 800e592: 68bb ldr r3, [r7, #8] 800e594: 3b01 subs r3, #1 800e596: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800e598: 68bb ldr r3, [r7, #8] 800e59a: 2b00 cmp r3, #0 800e59c: d1f9 bne.n 800e592 } /* Get tick count */ tickstart = HAL_GetTick(); 800e59e: f7ff fc23 bl 800dde8 800e5a2: 60f8 str r0, [r7, #12] /* Wait for ADC effectively enabled */ while(ADC_IS_ENABLE(hadc) == RESET) 800e5a4: e01f b.n 800e5e6 { if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) 800e5a6: f7ff fc1f bl 800dde8 800e5aa: 4602 mov r2, r0 800e5ac: 68fb ldr r3, [r7, #12] 800e5ae: 1ad3 subs r3, r2, r3 800e5b0: 2b02 cmp r3, #2 800e5b2: d918 bls.n 800e5e6 { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) == RESET) 800e5b4: 687b ldr r3, [r7, #4] 800e5b6: 681b ldr r3, [r3, #0] 800e5b8: 689b ldr r3, [r3, #8] 800e5ba: f003 0301 and.w r3, r3, #1 800e5be: 2b01 cmp r3, #1 800e5c0: d011 beq.n 800e5e6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800e5c2: 687b ldr r3, [r7, #4] 800e5c4: 6a9b ldr r3, [r3, #40] @ 0x28 800e5c6: f043 0210 orr.w r2, r3, #16 800e5ca: 687b ldr r3, [r7, #4] 800e5cc: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e5ce: 687b ldr r3, [r7, #4] 800e5d0: 6adb ldr r3, [r3, #44] @ 0x2c 800e5d2: f043 0201 orr.w r2, r3, #1 800e5d6: 687b ldr r3, [r7, #4] 800e5d8: 62da str r2, [r3, #44] @ 0x2c /* Process unlocked */ __HAL_UNLOCK(hadc); 800e5da: 687b ldr r3, [r7, #4] 800e5dc: 2200 movs r2, #0 800e5de: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800e5e2: 2301 movs r3, #1 800e5e4: e007 b.n 800e5f6 while(ADC_IS_ENABLE(hadc) == RESET) 800e5e6: 687b ldr r3, [r7, #4] 800e5e8: 681b ldr r3, [r3, #0] 800e5ea: 689b ldr r3, [r3, #8] 800e5ec: f003 0301 and.w r3, r3, #1 800e5f0: 2b01 cmp r3, #1 800e5f2: d1d8 bne.n 800e5a6 } } } /* Return HAL status */ return HAL_OK; 800e5f4: 2300 movs r3, #0 } 800e5f6: 4618 mov r0, r3 800e5f8: 3710 adds r7, #16 800e5fa: 46bd mov sp, r7 800e5fc: bd80 pop {r7, pc} 800e5fe: bf00 nop 800e600: 20000068 .word 0x20000068 800e604: 431bde83 .word 0x431bde83 0800e608 : * stopped to disable the ADC. * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc) { 800e608: b580 push {r7, lr} 800e60a: b084 sub sp, #16 800e60c: af00 add r7, sp, #0 800e60e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800e610: 2300 movs r3, #0 800e612: 60fb str r3, [r7, #12] /* Verification if ADC is not already disabled */ if (ADC_IS_ENABLE(hadc) != RESET) 800e614: 687b ldr r3, [r7, #4] 800e616: 681b ldr r3, [r3, #0] 800e618: 689b ldr r3, [r3, #8] 800e61a: f003 0301 and.w r3, r3, #1 800e61e: 2b01 cmp r3, #1 800e620: d12e bne.n 800e680 { /* Disable the ADC peripheral */ __HAL_ADC_DISABLE(hadc); 800e622: 687b ldr r3, [r7, #4] 800e624: 681b ldr r3, [r3, #0] 800e626: 689a ldr r2, [r3, #8] 800e628: 687b ldr r3, [r7, #4] 800e62a: 681b ldr r3, [r3, #0] 800e62c: f022 0201 bic.w r2, r2, #1 800e630: 609a str r2, [r3, #8] /* Get tick count */ tickstart = HAL_GetTick(); 800e632: f7ff fbd9 bl 800dde8 800e636: 60f8 str r0, [r7, #12] /* Wait for ADC effectively disabled */ while(ADC_IS_ENABLE(hadc) != RESET) 800e638: e01b b.n 800e672 { if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) 800e63a: f7ff fbd5 bl 800dde8 800e63e: 4602 mov r2, r0 800e640: 68fb ldr r3, [r7, #12] 800e642: 1ad3 subs r3, r2, r3 800e644: 2b02 cmp r3, #2 800e646: d914 bls.n 800e672 { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) != RESET) 800e648: 687b ldr r3, [r7, #4] 800e64a: 681b ldr r3, [r3, #0] 800e64c: 689b ldr r3, [r3, #8] 800e64e: f003 0301 and.w r3, r3, #1 800e652: 2b01 cmp r3, #1 800e654: d10d bne.n 800e672 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800e656: 687b ldr r3, [r7, #4] 800e658: 6a9b ldr r3, [r3, #40] @ 0x28 800e65a: f043 0210 orr.w r2, r3, #16 800e65e: 687b ldr r3, [r7, #4] 800e660: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e662: 687b ldr r3, [r7, #4] 800e664: 6adb ldr r3, [r3, #44] @ 0x2c 800e666: f043 0201 orr.w r2, r3, #1 800e66a: 687b ldr r3, [r7, #4] 800e66c: 62da str r2, [r3, #44] @ 0x2c return HAL_ERROR; 800e66e: 2301 movs r3, #1 800e670: e007 b.n 800e682 while(ADC_IS_ENABLE(hadc) != RESET) 800e672: 687b ldr r3, [r7, #4] 800e674: 681b ldr r3, [r3, #0] 800e676: 689b ldr r3, [r3, #8] 800e678: f003 0301 and.w r3, r3, #1 800e67c: 2b01 cmp r3, #1 800e67e: d0dc beq.n 800e63a } } } /* Return HAL status */ return HAL_OK; 800e680: 2300 movs r3, #0 } 800e682: 4618 mov r0, r3 800e684: 3710 adds r7, #16 800e686: 46bd mov sp, r7 800e688: bd80 pop {r7, pc} 0800e68a : * @brief DMA transfer complete callback. * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) { 800e68a: b580 push {r7, lr} 800e68c: b084 sub sp, #16 800e68e: af00 add r7, sp, #0 800e690: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800e692: 687b ldr r3, [r7, #4] 800e694: 6a5b ldr r3, [r3, #36] @ 0x24 800e696: 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)) 800e698: 68fb ldr r3, [r7, #12] 800e69a: 6a9b ldr r3, [r3, #40] @ 0x28 800e69c: f003 0350 and.w r3, r3, #80 @ 0x50 800e6a0: 2b00 cmp r3, #0 800e6a2: d127 bne.n 800e6f4 { /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 800e6a4: 68fb ldr r3, [r7, #12] 800e6a6: 6a9b ldr r3, [r3, #40] @ 0x28 800e6a8: f443 7200 orr.w r2, r3, #512 @ 0x200 800e6ac: 68fb ldr r3, [r7, #12] 800e6ae: 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) && 800e6b0: 68fb ldr r3, [r7, #12] 800e6b2: 681b ldr r3, [r3, #0] 800e6b4: 689b ldr r3, [r3, #8] 800e6b6: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e6ba: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e6be: d115 bne.n 800e6ec (hadc->Init.ContinuousConvMode == DISABLE) ) 800e6c0: 68fb ldr r3, [r7, #12] 800e6c2: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e6c4: 2b00 cmp r3, #0 800e6c6: d111 bne.n 800e6ec { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 800e6c8: 68fb ldr r3, [r7, #12] 800e6ca: 6a9b ldr r3, [r3, #40] @ 0x28 800e6cc: f423 7280 bic.w r2, r3, #256 @ 0x100 800e6d0: 68fb ldr r3, [r7, #12] 800e6d2: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800e6d4: 68fb ldr r3, [r7, #12] 800e6d6: 6a9b ldr r3, [r3, #40] @ 0x28 800e6d8: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e6dc: 2b00 cmp r3, #0 800e6de: d105 bne.n 800e6ec { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e6e0: 68fb ldr r3, [r7, #12] 800e6e2: 6a9b ldr r3, [r3, #40] @ 0x28 800e6e4: f043 0201 orr.w r2, r3, #1 800e6e8: 68fb ldr r3, [r7, #12] 800e6ea: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); 800e6ec: 68f8 ldr r0, [r7, #12] 800e6ee: f7fa ff2d bl 800954c else { /* Call DMA error callback */ hadc->DMA_Handle->XferErrorCallback(hdma); } } 800e6f2: e004 b.n 800e6fe hadc->DMA_Handle->XferErrorCallback(hdma); 800e6f4: 68fb ldr r3, [r7, #12] 800e6f6: 6a1b ldr r3, [r3, #32] 800e6f8: 6b1b ldr r3, [r3, #48] @ 0x30 800e6fa: 6878 ldr r0, [r7, #4] 800e6fc: 4798 blx r3 } 800e6fe: bf00 nop 800e700: 3710 adds r7, #16 800e702: 46bd mov sp, r7 800e704: bd80 pop {r7, pc} 0800e706 : * @brief DMA half transfer complete callback. * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) { 800e706: b580 push {r7, lr} 800e708: b084 sub sp, #16 800e70a: af00 add r7, sp, #0 800e70c: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800e70e: 687b ldr r3, [r7, #4] 800e710: 6a5b ldr r3, [r3, #36] @ 0x24 800e712: 60fb str r3, [r7, #12] /* Half conversion callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvHalfCpltCallback(hadc); #else HAL_ADC_ConvHalfCpltCallback(hadc); 800e714: 68f8 ldr r0, [r7, #12] 800e716: f7ff fe0a bl 800e32e #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } 800e71a: bf00 nop 800e71c: 3710 adds r7, #16 800e71e: 46bd mov sp, r7 800e720: bd80 pop {r7, pc} 0800e722 : * @brief DMA error callback * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAError(DMA_HandleTypeDef *hdma) { 800e722: b580 push {r7, lr} 800e724: b084 sub sp, #16 800e726: af00 add r7, sp, #0 800e728: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800e72a: 687b ldr r3, [r7, #4] 800e72c: 6a5b ldr r3, [r3, #36] @ 0x24 800e72e: 60fb str r3, [r7, #12] /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 800e730: 68fb ldr r3, [r7, #12] 800e732: 6a9b ldr r3, [r3, #40] @ 0x28 800e734: f043 0240 orr.w r2, r3, #64 @ 0x40 800e738: 68fb ldr r3, [r7, #12] 800e73a: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to DMA error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); 800e73c: 68fb ldr r3, [r7, #12] 800e73e: 6adb ldr r3, [r3, #44] @ 0x2c 800e740: f043 0204 orr.w r2, r3, #4 800e744: 68fb ldr r3, [r7, #12] 800e746: 62da str r2, [r3, #44] @ 0x2c /* Error callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); 800e748: 68f8 ldr r0, [r7, #12] 800e74a: f7ff fe02 bl 800e352 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } 800e74e: bf00 nop 800e750: 3710 adds r7, #16 800e752: 46bd mov sp, r7 800e754: bd80 pop {r7, pc} ... 0800e758 : * the completion of this function. * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc) { 800e758: b590 push {r4, r7, lr} 800e75a: b087 sub sp, #28 800e75c: af00 add r7, sp, #0 800e75e: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e760: 2300 movs r3, #0 800e762: 75fb strb r3, [r7, #23] uint32_t tickstart; __IO uint32_t wait_loop_index = 0U; 800e764: 2300 movs r3, #0 800e766: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); 800e768: 687b ldr r3, [r7, #4] 800e76a: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e76e: 2b01 cmp r3, #1 800e770: d101 bne.n 800e776 800e772: 2302 movs r3, #2 800e774: e097 b.n 800e8a6 800e776: 687b ldr r3, [r7, #4] 800e778: 2201 movs r2, #1 800e77a: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* 1. Disable ADC peripheral */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); 800e77e: 6878 ldr r0, [r7, #4] 800e780: f7ff ff42 bl 800e608 800e784: 4603 mov r3, r0 800e786: 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); 800e788: 6878 ldr r0, [r7, #4] 800e78a: f7ff fee3 bl 800e554 800e78e: 4603 mov r3, r0 800e790: 75fb strb r3, [r7, #23] /* Check if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) 800e792: 7dfb ldrb r3, [r7, #23] 800e794: 2b00 cmp r3, #0 800e796: f040 8081 bne.w 800e89c { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e79a: 687b ldr r3, [r7, #4] 800e79c: 6a9b ldr r3, [r3, #40] @ 0x28 800e79e: f423 5388 bic.w r3, r3, #4352 @ 0x1100 800e7a2: f023 0302 bic.w r3, r3, #2 800e7a6: f043 0202 orr.w r2, r3, #2 800e7aa: 687b ldr r3, [r7, #4] 800e7ac: 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)) 800e7ae: 4b40 ldr r3, [pc, #256] @ (800e8b0 ) 800e7b0: 681c ldr r4, [r3, #0] 800e7b2: 2002 movs r0, #2 800e7b4: f002 fec6 bl 8011544 800e7b8: 4603 mov r3, r0 800e7ba: fbb4 f3f3 udiv r3, r4, r3 * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES ); 800e7be: 005b lsls r3, r3, #1 wait_loop_index = ((SystemCoreClock 800e7c0: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) 800e7c2: e002 b.n 800e7ca { wait_loop_index--; 800e7c4: 68fb ldr r3, [r7, #12] 800e7c6: 3b01 subs r3, #1 800e7c8: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) 800e7ca: 68fb ldr r3, [r7, #12] 800e7cc: 2b00 cmp r3, #0 800e7ce: d1f9 bne.n 800e7c4 } /* 3. Resets ADC calibration registers */ SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL); 800e7d0: 687b ldr r3, [r7, #4] 800e7d2: 681b ldr r3, [r3, #0] 800e7d4: 689a ldr r2, [r3, #8] 800e7d6: 687b ldr r3, [r7, #4] 800e7d8: 681b ldr r3, [r3, #0] 800e7da: f042 0208 orr.w r2, r2, #8 800e7de: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); 800e7e0: f7ff fb02 bl 800dde8 800e7e4: 6138 str r0, [r7, #16] /* Wait for calibration reset completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800e7e6: e01b b.n 800e820 { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) 800e7e8: f7ff fafe bl 800dde8 800e7ec: 4602 mov r2, r0 800e7ee: 693b ldr r3, [r7, #16] 800e7f0: 1ad3 subs r3, r2, r3 800e7f2: 2b0a cmp r3, #10 800e7f4: d914 bls.n 800e820 { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800e7f6: 687b ldr r3, [r7, #4] 800e7f8: 681b ldr r3, [r3, #0] 800e7fa: 689b ldr r3, [r3, #8] 800e7fc: f003 0308 and.w r3, r3, #8 800e800: 2b00 cmp r3, #0 800e802: d00d beq.n 800e820 { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800e804: 687b ldr r3, [r7, #4] 800e806: 6a9b ldr r3, [r3, #40] @ 0x28 800e808: f023 0312 bic.w r3, r3, #18 800e80c: f043 0210 orr.w r2, r3, #16 800e810: 687b ldr r3, [r7, #4] 800e812: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); 800e814: 687b ldr r3, [r7, #4] 800e816: 2200 movs r2, #0 800e818: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800e81c: 2301 movs r3, #1 800e81e: e042 b.n 800e8a6 while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800e820: 687b ldr r3, [r7, #4] 800e822: 681b ldr r3, [r3, #0] 800e824: 689b ldr r3, [r3, #8] 800e826: f003 0308 and.w r3, r3, #8 800e82a: 2b00 cmp r3, #0 800e82c: d1dc bne.n 800e7e8 } } } /* 4. Start ADC calibration */ SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL); 800e82e: 687b ldr r3, [r7, #4] 800e830: 681b ldr r3, [r3, #0] 800e832: 689a ldr r2, [r3, #8] 800e834: 687b ldr r3, [r7, #4] 800e836: 681b ldr r3, [r3, #0] 800e838: f042 0204 orr.w r2, r2, #4 800e83c: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); 800e83e: f7ff fad3 bl 800dde8 800e842: 6138 str r0, [r7, #16] /* Wait for calibration completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800e844: e01b b.n 800e87e { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) 800e846: f7ff facf bl 800dde8 800e84a: 4602 mov r2, r0 800e84c: 693b ldr r3, [r7, #16] 800e84e: 1ad3 subs r3, r2, r3 800e850: 2b0a cmp r3, #10 800e852: d914 bls.n 800e87e { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800e854: 687b ldr r3, [r7, #4] 800e856: 681b ldr r3, [r3, #0] 800e858: 689b ldr r3, [r3, #8] 800e85a: f003 0304 and.w r3, r3, #4 800e85e: 2b00 cmp r3, #0 800e860: d00d beq.n 800e87e { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800e862: 687b ldr r3, [r7, #4] 800e864: 6a9b ldr r3, [r3, #40] @ 0x28 800e866: f023 0312 bic.w r3, r3, #18 800e86a: f043 0210 orr.w r2, r3, #16 800e86e: 687b ldr r3, [r7, #4] 800e870: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); 800e872: 687b ldr r3, [r7, #4] 800e874: 2200 movs r2, #0 800e876: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800e87a: 2301 movs r3, #1 800e87c: e013 b.n 800e8a6 while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800e87e: 687b ldr r3, [r7, #4] 800e880: 681b ldr r3, [r3, #0] 800e882: 689b ldr r3, [r3, #8] 800e884: f003 0304 and.w r3, r3, #4 800e888: 2b00 cmp r3, #0 800e88a: d1dc bne.n 800e846 } } } /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e88c: 687b ldr r3, [r7, #4] 800e88e: 6a9b ldr r3, [r3, #40] @ 0x28 800e890: f023 0303 bic.w r3, r3, #3 800e894: f043 0201 orr.w r2, r3, #1 800e898: 687b ldr r3, [r7, #4] 800e89a: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); 800e89c: 687b ldr r3, [r7, #4] 800e89e: 2200 movs r2, #0 800e8a0: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; 800e8a4: 7dfb ldrb r3, [r7, #23] } 800e8a6: 4618 mov r0, r3 800e8a8: 371c adds r7, #28 800e8aa: 46bd mov sp, r7 800e8ac: bd90 pop {r4, r7, pc} 800e8ae: bf00 nop 800e8b0: 20000068 .word 0x20000068 0800e8b4 : * @brief Injected conversion complete callback in non blocking mode * @param hadc: ADC handle * @retval None */ __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc) { 800e8b4: b480 push {r7} 800e8b6: b083 sub sp, #12 800e8b8: af00 add r7, sp, #0 800e8ba: 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 */ } 800e8bc: bf00 nop 800e8be: 370c adds r7, #12 800e8c0: 46bd mov sp, r7 800e8c2: bc80 pop {r7} 800e8c4: 4770 bx lr 0800e8c6 : * @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) { 800e8c6: b580 push {r7, lr} 800e8c8: b084 sub sp, #16 800e8ca: af00 add r7, sp, #0 800e8cc: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) 800e8ce: 687b ldr r3, [r7, #4] 800e8d0: 2b00 cmp r3, #0 800e8d2: d101 bne.n 800e8d8 { return HAL_ERROR; 800e8d4: 2301 movs r3, #1 800e8d6: e0ed b.n 800eab4 /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) 800e8d8: 687b ldr r3, [r7, #4] 800e8da: f893 3020 ldrb.w r3, [r3, #32] 800e8de: b2db uxtb r3, r3 800e8e0: 2b00 cmp r3, #0 800e8e2: d102 bne.n 800e8ea { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); 800e8e4: 6878 ldr r0, [r7, #4] 800e8e6: f7fb f997 bl 8009c18 } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800e8ea: 687b ldr r3, [r7, #4] 800e8ec: 681b ldr r3, [r3, #0] 800e8ee: 681a ldr r2, [r3, #0] 800e8f0: 687b ldr r3, [r7, #4] 800e8f2: 681b ldr r3, [r3, #0] 800e8f4: f042 0201 orr.w r2, r2, #1 800e8f8: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800e8fa: f7ff fa75 bl 800dde8 800e8fe: 60f8 str r0, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800e900: e012 b.n 800e928 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800e902: f7ff fa71 bl 800dde8 800e906: 4602 mov r2, r0 800e908: 68fb ldr r3, [r7, #12] 800e90a: 1ad3 subs r3, r2, r3 800e90c: 2b0a cmp r3, #10 800e90e: d90b bls.n 800e928 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800e910: 687b ldr r3, [r7, #4] 800e912: 6a5b ldr r3, [r3, #36] @ 0x24 800e914: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800e918: 687b ldr r3, [r7, #4] 800e91a: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800e91c: 687b ldr r3, [r7, #4] 800e91e: 2205 movs r2, #5 800e920: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800e924: 2301 movs r3, #1 800e926: e0c5 b.n 800eab4 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800e928: 687b ldr r3, [r7, #4] 800e92a: 681b ldr r3, [r3, #0] 800e92c: 685b ldr r3, [r3, #4] 800e92e: f003 0301 and.w r3, r3, #1 800e932: 2b00 cmp r3, #0 800e934: d0e5 beq.n 800e902 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 800e936: 687b ldr r3, [r7, #4] 800e938: 681b ldr r3, [r3, #0] 800e93a: 681a ldr r2, [r3, #0] 800e93c: 687b ldr r3, [r7, #4] 800e93e: 681b ldr r3, [r3, #0] 800e940: f022 0202 bic.w r2, r2, #2 800e944: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800e946: f7ff fa4f bl 800dde8 800e94a: 60f8 str r0, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 800e94c: e012 b.n 800e974 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800e94e: f7ff fa4b bl 800dde8 800e952: 4602 mov r2, r0 800e954: 68fb ldr r3, [r7, #12] 800e956: 1ad3 subs r3, r2, r3 800e958: 2b0a cmp r3, #10 800e95a: d90b bls.n 800e974 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800e95c: 687b ldr r3, [r7, #4] 800e95e: 6a5b ldr r3, [r3, #36] @ 0x24 800e960: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800e964: 687b ldr r3, [r7, #4] 800e966: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800e968: 687b ldr r3, [r7, #4] 800e96a: 2205 movs r2, #5 800e96c: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800e970: 2301 movs r3, #1 800e972: e09f b.n 800eab4 while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 800e974: 687b ldr r3, [r7, #4] 800e976: 681b ldr r3, [r3, #0] 800e978: 685b ldr r3, [r3, #4] 800e97a: f003 0302 and.w r3, r3, #2 800e97e: 2b00 cmp r3, #0 800e980: d1e5 bne.n 800e94e } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) 800e982: 687b ldr r3, [r7, #4] 800e984: 7e1b ldrb r3, [r3, #24] 800e986: 2b01 cmp r3, #1 800e988: d108 bne.n 800e99c { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 800e98a: 687b ldr r3, [r7, #4] 800e98c: 681b ldr r3, [r3, #0] 800e98e: 681a ldr r2, [r3, #0] 800e990: 687b ldr r3, [r7, #4] 800e992: 681b ldr r3, [r3, #0] 800e994: f042 0280 orr.w r2, r2, #128 @ 0x80 800e998: 601a str r2, [r3, #0] 800e99a: e007 b.n 800e9ac } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 800e99c: 687b ldr r3, [r7, #4] 800e99e: 681b ldr r3, [r3, #0] 800e9a0: 681a ldr r2, [r3, #0] 800e9a2: 687b ldr r3, [r7, #4] 800e9a4: 681b ldr r3, [r3, #0] 800e9a6: f022 0280 bic.w r2, r2, #128 @ 0x80 800e9aa: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) 800e9ac: 687b ldr r3, [r7, #4] 800e9ae: 7e5b ldrb r3, [r3, #25] 800e9b0: 2b01 cmp r3, #1 800e9b2: d108 bne.n 800e9c6 { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 800e9b4: 687b ldr r3, [r7, #4] 800e9b6: 681b ldr r3, [r3, #0] 800e9b8: 681a ldr r2, [r3, #0] 800e9ba: 687b ldr r3, [r7, #4] 800e9bc: 681b ldr r3, [r3, #0] 800e9be: f042 0240 orr.w r2, r2, #64 @ 0x40 800e9c2: 601a str r2, [r3, #0] 800e9c4: e007 b.n 800e9d6 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 800e9c6: 687b ldr r3, [r7, #4] 800e9c8: 681b ldr r3, [r3, #0] 800e9ca: 681a ldr r2, [r3, #0] 800e9cc: 687b ldr r3, [r7, #4] 800e9ce: 681b ldr r3, [r3, #0] 800e9d0: f022 0240 bic.w r2, r2, #64 @ 0x40 800e9d4: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) 800e9d6: 687b ldr r3, [r7, #4] 800e9d8: 7e9b ldrb r3, [r3, #26] 800e9da: 2b01 cmp r3, #1 800e9dc: d108 bne.n 800e9f0 { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 800e9de: 687b ldr r3, [r7, #4] 800e9e0: 681b ldr r3, [r3, #0] 800e9e2: 681a ldr r2, [r3, #0] 800e9e4: 687b ldr r3, [r7, #4] 800e9e6: 681b ldr r3, [r3, #0] 800e9e8: f042 0220 orr.w r2, r2, #32 800e9ec: 601a str r2, [r3, #0] 800e9ee: e007 b.n 800ea00 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 800e9f0: 687b ldr r3, [r7, #4] 800e9f2: 681b ldr r3, [r3, #0] 800e9f4: 681a ldr r2, [r3, #0] 800e9f6: 687b ldr r3, [r7, #4] 800e9f8: 681b ldr r3, [r3, #0] 800e9fa: f022 0220 bic.w r2, r2, #32 800e9fe: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) 800ea00: 687b ldr r3, [r7, #4] 800ea02: 7edb ldrb r3, [r3, #27] 800ea04: 2b01 cmp r3, #1 800ea06: d108 bne.n 800ea1a { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800ea08: 687b ldr r3, [r7, #4] 800ea0a: 681b ldr r3, [r3, #0] 800ea0c: 681a ldr r2, [r3, #0] 800ea0e: 687b ldr r3, [r7, #4] 800ea10: 681b ldr r3, [r3, #0] 800ea12: f022 0210 bic.w r2, r2, #16 800ea16: 601a str r2, [r3, #0] 800ea18: e007 b.n 800ea2a } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800ea1a: 687b ldr r3, [r7, #4] 800ea1c: 681b ldr r3, [r3, #0] 800ea1e: 681a ldr r2, [r3, #0] 800ea20: 687b ldr r3, [r7, #4] 800ea22: 681b ldr r3, [r3, #0] 800ea24: f042 0210 orr.w r2, r2, #16 800ea28: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) 800ea2a: 687b ldr r3, [r7, #4] 800ea2c: 7f1b ldrb r3, [r3, #28] 800ea2e: 2b01 cmp r3, #1 800ea30: d108 bne.n 800ea44 { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 800ea32: 687b ldr r3, [r7, #4] 800ea34: 681b ldr r3, [r3, #0] 800ea36: 681a ldr r2, [r3, #0] 800ea38: 687b ldr r3, [r7, #4] 800ea3a: 681b ldr r3, [r3, #0] 800ea3c: f042 0208 orr.w r2, r2, #8 800ea40: 601a str r2, [r3, #0] 800ea42: e007 b.n 800ea54 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 800ea44: 687b ldr r3, [r7, #4] 800ea46: 681b ldr r3, [r3, #0] 800ea48: 681a ldr r2, [r3, #0] 800ea4a: 687b ldr r3, [r7, #4] 800ea4c: 681b ldr r3, [r3, #0] 800ea4e: f022 0208 bic.w r2, r2, #8 800ea52: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) 800ea54: 687b ldr r3, [r7, #4] 800ea56: 7f5b ldrb r3, [r3, #29] 800ea58: 2b01 cmp r3, #1 800ea5a: d108 bne.n 800ea6e { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800ea5c: 687b ldr r3, [r7, #4] 800ea5e: 681b ldr r3, [r3, #0] 800ea60: 681a ldr r2, [r3, #0] 800ea62: 687b ldr r3, [r7, #4] 800ea64: 681b ldr r3, [r3, #0] 800ea66: f042 0204 orr.w r2, r2, #4 800ea6a: 601a str r2, [r3, #0] 800ea6c: e007 b.n 800ea7e } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800ea6e: 687b ldr r3, [r7, #4] 800ea70: 681b ldr r3, [r3, #0] 800ea72: 681a ldr r2, [r3, #0] 800ea74: 687b ldr r3, [r7, #4] 800ea76: 681b ldr r3, [r3, #0] 800ea78: f022 0204 bic.w r2, r2, #4 800ea7c: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | 800ea7e: 687b ldr r3, [r7, #4] 800ea80: 689a ldr r2, [r3, #8] 800ea82: 687b ldr r3, [r7, #4] 800ea84: 68db ldr r3, [r3, #12] 800ea86: 431a orrs r2, r3 800ea88: 687b ldr r3, [r7, #4] 800ea8a: 691b ldr r3, [r3, #16] 800ea8c: 431a orrs r2, r3 800ea8e: 687b ldr r3, [r7, #4] 800ea90: 695b ldr r3, [r3, #20] 800ea92: ea42 0103 orr.w r1, r2, r3 800ea96: 687b ldr r3, [r7, #4] 800ea98: 685b ldr r3, [r3, #4] 800ea9a: 1e5a subs r2, r3, #1 800ea9c: 687b ldr r3, [r7, #4] 800ea9e: 681b ldr r3, [r3, #0] 800eaa0: 430a orrs r2, r1 800eaa2: 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; 800eaa4: 687b ldr r3, [r7, #4] 800eaa6: 2200 movs r2, #0 800eaa8: 625a str r2, [r3, #36] @ 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; 800eaaa: 687b ldr r3, [r7, #4] 800eaac: 2201 movs r2, #1 800eaae: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; 800eab2: 2300 movs r3, #0 } 800eab4: 4618 mov r0, r3 800eab6: 3710 adds r7, #16 800eab8: 46bd mov sp, r7 800eaba: bd80 pop {r7, pc} 0800eabc : * @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) { 800eabc: b480 push {r7} 800eabe: b087 sub sp, #28 800eac0: af00 add r7, sp, #0 800eac2: 6078 str r0, [r7, #4] 800eac4: 6039 str r1, [r7, #0] uint32_t filternbrbitpos; CAN_TypeDef *can_ip = hcan->Instance; 800eac6: 687b ldr r3, [r7, #4] 800eac8: 681b ldr r3, [r3, #0] 800eaca: 617b str r3, [r7, #20] HAL_CAN_StateTypeDef state = hcan->State; 800eacc: 687b ldr r3, [r7, #4] 800eace: f893 3020 ldrb.w r3, [r3, #32] 800ead2: 74fb strb r3, [r7, #19] if ((state == HAL_CAN_STATE_READY) || 800ead4: 7cfb ldrb r3, [r7, #19] 800ead6: 2b01 cmp r3, #1 800ead8: d003 beq.n 800eae2 800eada: 7cfb ldrb r3, [r7, #19] 800eadc: 2b02 cmp r3, #2 800eade: f040 80be bne.w 800ec5e 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; 800eae2: 4b65 ldr r3, [pc, #404] @ (800ec78 ) 800eae4: 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); 800eae6: 697b ldr r3, [r7, #20] 800eae8: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800eaec: f043 0201 orr.w r2, r3, #1 800eaf0: 697b ldr r3, [r7, #20] 800eaf2: 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); 800eaf6: 697b ldr r3, [r7, #20] 800eaf8: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800eafc: f423 527c bic.w r2, r3, #16128 @ 0x3f00 800eb00: 697b ldr r3, [r7, #20] 800eb02: f8c3 2200 str.w r2, [r3, #512] @ 0x200 SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); 800eb06: 697b ldr r3, [r7, #20] 800eb08: f8d3 2200 ldr.w r2, [r3, #512] @ 0x200 800eb0c: 683b ldr r3, [r7, #0] 800eb0e: 6a5b ldr r3, [r3, #36] @ 0x24 800eb10: 021b lsls r3, r3, #8 800eb12: 431a orrs r2, r3 800eb14: 697b ldr r3, [r7, #20] 800eb16: f8c3 2200 str.w r2, [r3, #512] @ 0x200 #endif /* CAN3 */ /* Convert filter number into bit position */ filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU); 800eb1a: 683b ldr r3, [r7, #0] 800eb1c: 695b ldr r3, [r3, #20] 800eb1e: f003 031f and.w r3, r3, #31 800eb22: 2201 movs r2, #1 800eb24: fa02 f303 lsl.w r3, r2, r3 800eb28: 60fb str r3, [r7, #12] /* Filter Deactivation */ CLEAR_BIT(can_ip->FA1R, filternbrbitpos); 800eb2a: 697b ldr r3, [r7, #20] 800eb2c: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c 800eb30: 68fb ldr r3, [r7, #12] 800eb32: 43db mvns r3, r3 800eb34: 401a ands r2, r3 800eb36: 697b ldr r3, [r7, #20] 800eb38: f8c3 221c str.w r2, [r3, #540] @ 0x21c /* Filter Scale */ if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT) 800eb3c: 683b ldr r3, [r7, #0] 800eb3e: 69db ldr r3, [r3, #28] 800eb40: 2b00 cmp r3, #0 800eb42: d123 bne.n 800eb8c { /* 16-bit scale for the filter */ CLEAR_BIT(can_ip->FS1R, filternbrbitpos); 800eb44: 697b ldr r3, [r7, #20] 800eb46: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c 800eb4a: 68fb ldr r3, [r7, #12] 800eb4c: 43db mvns r3, r3 800eb4e: 401a ands r2, r3 800eb50: 697b ldr r3, [r7, #20] 800eb52: 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) | 800eb56: 683b ldr r3, [r7, #0] 800eb58: 68db ldr r3, [r3, #12] 800eb5a: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); 800eb5c: 683b ldr r3, [r7, #0] 800eb5e: 685b ldr r3, [r3, #4] 800eb60: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800eb62: 683a ldr r2, [r7, #0] 800eb64: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | 800eb66: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800eb68: 697b ldr r3, [r7, #20] 800eb6a: 3248 adds r2, #72 @ 0x48 800eb6c: 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) | 800eb70: 683b ldr r3, [r7, #0] 800eb72: 689b ldr r3, [r3, #8] 800eb74: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh); 800eb76: 683b ldr r3, [r7, #0] 800eb78: 681b ldr r3, [r3, #0] 800eb7a: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800eb7c: 683b ldr r3, [r7, #0] 800eb7e: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800eb80: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800eb82: 6979 ldr r1, [r7, #20] 800eb84: 3348 adds r3, #72 @ 0x48 800eb86: 00db lsls r3, r3, #3 800eb88: 440b add r3, r1 800eb8a: 605a str r2, [r3, #4] } if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT) 800eb8c: 683b ldr r3, [r7, #0] 800eb8e: 69db ldr r3, [r3, #28] 800eb90: 2b01 cmp r3, #1 800eb92: d122 bne.n 800ebda { /* 32-bit scale for the filter */ SET_BIT(can_ip->FS1R, filternbrbitpos); 800eb94: 697b ldr r3, [r7, #20] 800eb96: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c 800eb9a: 68fb ldr r3, [r7, #12] 800eb9c: 431a orrs r2, r3 800eb9e: 697b ldr r3, [r7, #20] 800eba0: 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) | 800eba4: 683b ldr r3, [r7, #0] 800eba6: 681b ldr r3, [r3, #0] 800eba8: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); 800ebaa: 683b ldr r3, [r7, #0] 800ebac: 685b ldr r3, [r3, #4] 800ebae: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800ebb0: 683a ldr r2, [r7, #0] 800ebb2: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | 800ebb4: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800ebb6: 697b ldr r3, [r7, #20] 800ebb8: 3248 adds r2, #72 @ 0x48 800ebba: 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) | 800ebbe: 683b ldr r3, [r7, #0] 800ebc0: 689b ldr r3, [r3, #8] 800ebc2: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow); 800ebc4: 683b ldr r3, [r7, #0] 800ebc6: 68db ldr r3, [r3, #12] 800ebc8: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800ebca: 683b ldr r3, [r7, #0] 800ebcc: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800ebce: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800ebd0: 6979 ldr r1, [r7, #20] 800ebd2: 3348 adds r3, #72 @ 0x48 800ebd4: 00db lsls r3, r3, #3 800ebd6: 440b add r3, r1 800ebd8: 605a str r2, [r3, #4] } /* Filter Mode */ if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK) 800ebda: 683b ldr r3, [r7, #0] 800ebdc: 699b ldr r3, [r3, #24] 800ebde: 2b00 cmp r3, #0 800ebe0: d109 bne.n 800ebf6 { /* Id/Mask mode for the filter*/ CLEAR_BIT(can_ip->FM1R, filternbrbitpos); 800ebe2: 697b ldr r3, [r7, #20] 800ebe4: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 800ebe8: 68fb ldr r3, [r7, #12] 800ebea: 43db mvns r3, r3 800ebec: 401a ands r2, r3 800ebee: 697b ldr r3, [r7, #20] 800ebf0: f8c3 2204 str.w r2, [r3, #516] @ 0x204 800ebf4: e007 b.n 800ec06 } else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ { /* Identifier list mode for the filter*/ SET_BIT(can_ip->FM1R, filternbrbitpos); 800ebf6: 697b ldr r3, [r7, #20] 800ebf8: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 800ebfc: 68fb ldr r3, [r7, #12] 800ebfe: 431a orrs r2, r3 800ec00: 697b ldr r3, [r7, #20] 800ec02: f8c3 2204 str.w r2, [r3, #516] @ 0x204 } /* Filter FIFO assignment */ if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0) 800ec06: 683b ldr r3, [r7, #0] 800ec08: 691b ldr r3, [r3, #16] 800ec0a: 2b00 cmp r3, #0 800ec0c: d109 bne.n 800ec22 { /* FIFO 0 assignation for the filter */ CLEAR_BIT(can_ip->FFA1R, filternbrbitpos); 800ec0e: 697b ldr r3, [r7, #20] 800ec10: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 800ec14: 68fb ldr r3, [r7, #12] 800ec16: 43db mvns r3, r3 800ec18: 401a ands r2, r3 800ec1a: 697b ldr r3, [r7, #20] 800ec1c: f8c3 2214 str.w r2, [r3, #532] @ 0x214 800ec20: e007 b.n 800ec32 } else { /* FIFO 1 assignation for the filter */ SET_BIT(can_ip->FFA1R, filternbrbitpos); 800ec22: 697b ldr r3, [r7, #20] 800ec24: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 800ec28: 68fb ldr r3, [r7, #12] 800ec2a: 431a orrs r2, r3 800ec2c: 697b ldr r3, [r7, #20] 800ec2e: f8c3 2214 str.w r2, [r3, #532] @ 0x214 } /* Filter activation */ if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE) 800ec32: 683b ldr r3, [r7, #0] 800ec34: 6a1b ldr r3, [r3, #32] 800ec36: 2b01 cmp r3, #1 800ec38: d107 bne.n 800ec4a { SET_BIT(can_ip->FA1R, filternbrbitpos); 800ec3a: 697b ldr r3, [r7, #20] 800ec3c: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c 800ec40: 68fb ldr r3, [r7, #12] 800ec42: 431a orrs r2, r3 800ec44: 697b ldr r3, [r7, #20] 800ec46: f8c3 221c str.w r2, [r3, #540] @ 0x21c } /* Leave the initialisation mode for the filter */ CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT); 800ec4a: 697b ldr r3, [r7, #20] 800ec4c: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800ec50: f023 0201 bic.w r2, r3, #1 800ec54: 697b ldr r3, [r7, #20] 800ec56: f8c3 2200 str.w r2, [r3, #512] @ 0x200 /* Return function status */ return HAL_OK; 800ec5a: 2300 movs r3, #0 800ec5c: e006 b.n 800ec6c } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800ec5e: 687b ldr r3, [r7, #4] 800ec60: 6a5b ldr r3, [r3, #36] @ 0x24 800ec62: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800ec66: 687b ldr r3, [r7, #4] 800ec68: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ec6a: 2301 movs r3, #1 } } 800ec6c: 4618 mov r0, r3 800ec6e: 371c adds r7, #28 800ec70: 46bd mov sp, r7 800ec72: bc80 pop {r7} 800ec74: 4770 bx lr 800ec76: bf00 nop 800ec78: 40006400 .word 0x40006400 0800ec7c : * @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) { 800ec7c: b580 push {r7, lr} 800ec7e: b084 sub sp, #16 800ec80: af00 add r7, sp, #0 800ec82: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) 800ec84: 687b ldr r3, [r7, #4] 800ec86: f893 3020 ldrb.w r3, [r3, #32] 800ec8a: b2db uxtb r3, r3 800ec8c: 2b01 cmp r3, #1 800ec8e: d12e bne.n 800ecee { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; 800ec90: 687b ldr r3, [r7, #4] 800ec92: 2202 movs r2, #2 800ec94: f883 2020 strb.w r2, [r3, #32] /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800ec98: 687b ldr r3, [r7, #4] 800ec9a: 681b ldr r3, [r3, #0] 800ec9c: 681a ldr r2, [r3, #0] 800ec9e: 687b ldr r3, [r7, #4] 800eca0: 681b ldr r3, [r3, #0] 800eca2: f022 0201 bic.w r2, r2, #1 800eca6: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800eca8: f7ff f89e bl 800dde8 800ecac: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800ecae: e012 b.n 800ecd6 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800ecb0: f7ff f89a bl 800dde8 800ecb4: 4602 mov r2, r0 800ecb6: 68fb ldr r3, [r7, #12] 800ecb8: 1ad3 subs r3, r2, r3 800ecba: 2b0a cmp r3, #10 800ecbc: d90b bls.n 800ecd6 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800ecbe: 687b ldr r3, [r7, #4] 800ecc0: 6a5b ldr r3, [r3, #36] @ 0x24 800ecc2: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ecc6: 687b ldr r3, [r7, #4] 800ecc8: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ecca: 687b ldr r3, [r7, #4] 800eccc: 2205 movs r2, #5 800ecce: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ecd2: 2301 movs r3, #1 800ecd4: e012 b.n 800ecfc while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800ecd6: 687b ldr r3, [r7, #4] 800ecd8: 681b ldr r3, [r3, #0] 800ecda: 685b ldr r3, [r3, #4] 800ecdc: f003 0301 and.w r3, r3, #1 800ece0: 2b00 cmp r3, #0 800ece2: d1e5 bne.n 800ecb0 } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; 800ece4: 687b ldr r3, [r7, #4] 800ece6: 2200 movs r2, #0 800ece8: 625a str r2, [r3, #36] @ 0x24 /* Return function status */ return HAL_OK; 800ecea: 2300 movs r3, #0 800ecec: e006 b.n 800ecfc } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; 800ecee: 687b ldr r3, [r7, #4] 800ecf0: 6a5b ldr r3, [r3, #36] @ 0x24 800ecf2: f443 2200 orr.w r2, r3, #524288 @ 0x80000 800ecf6: 687b ldr r3, [r7, #4] 800ecf8: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ecfa: 2301 movs r3, #1 } } 800ecfc: 4618 mov r0, r3 800ecfe: 3710 adds r7, #16 800ed00: 46bd mov sp, r7 800ed02: bd80 pop {r7, pc} 0800ed04 : * @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) { 800ed04: b580 push {r7, lr} 800ed06: b084 sub sp, #16 800ed08: af00 add r7, sp, #0 800ed0a: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_LISTENING) 800ed0c: 687b ldr r3, [r7, #4] 800ed0e: f893 3020 ldrb.w r3, [r3, #32] 800ed12: b2db uxtb r3, r3 800ed14: 2b02 cmp r3, #2 800ed16: d133 bne.n 800ed80 { /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800ed18: 687b ldr r3, [r7, #4] 800ed1a: 681b ldr r3, [r3, #0] 800ed1c: 681a ldr r2, [r3, #0] 800ed1e: 687b ldr r3, [r7, #4] 800ed20: 681b ldr r3, [r3, #0] 800ed22: f042 0201 orr.w r2, r2, #1 800ed26: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800ed28: f7ff f85e bl 800dde8 800ed2c: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800ed2e: e012 b.n 800ed56 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800ed30: f7ff f85a bl 800dde8 800ed34: 4602 mov r2, r0 800ed36: 68fb ldr r3, [r7, #12] 800ed38: 1ad3 subs r3, r2, r3 800ed3a: 2b0a cmp r3, #10 800ed3c: d90b bls.n 800ed56 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800ed3e: 687b ldr r3, [r7, #4] 800ed40: 6a5b ldr r3, [r3, #36] @ 0x24 800ed42: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ed46: 687b ldr r3, [r7, #4] 800ed48: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ed4a: 687b ldr r3, [r7, #4] 800ed4c: 2205 movs r2, #5 800ed4e: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ed52: 2301 movs r3, #1 800ed54: e01b b.n 800ed8e while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800ed56: 687b ldr r3, [r7, #4] 800ed58: 681b ldr r3, [r3, #0] 800ed5a: 685b ldr r3, [r3, #4] 800ed5c: f003 0301 and.w r3, r3, #1 800ed60: 2b00 cmp r3, #0 800ed62: d0e5 beq.n 800ed30 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 800ed64: 687b ldr r3, [r7, #4] 800ed66: 681b ldr r3, [r3, #0] 800ed68: 681a ldr r2, [r3, #0] 800ed6a: 687b ldr r3, [r7, #4] 800ed6c: 681b ldr r3, [r3, #0] 800ed6e: f022 0202 bic.w r2, r2, #2 800ed72: 601a str r2, [r3, #0] /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_READY; 800ed74: 687b ldr r3, [r7, #4] 800ed76: 2201 movs r2, #1 800ed78: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; 800ed7c: 2300 movs r3, #0 800ed7e: e006 b.n 800ed8e } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_STARTED; 800ed80: 687b ldr r3, [r7, #4] 800ed82: 6a5b ldr r3, [r3, #36] @ 0x24 800ed84: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 800ed88: 687b ldr r3, [r7, #4] 800ed8a: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ed8c: 2301 movs r3, #1 } } 800ed8e: 4618 mov r0, r3 800ed90: 3710 adds r7, #16 800ed92: 46bd mov sp, r7 800ed94: bd80 pop {r7, pc} 0800ed96 : * 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) { 800ed96: b480 push {r7} 800ed98: b089 sub sp, #36 @ 0x24 800ed9a: af00 add r7, sp, #0 800ed9c: 60f8 str r0, [r7, #12] 800ed9e: 60b9 str r1, [r7, #8] 800eda0: 607a str r2, [r7, #4] 800eda2: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; 800eda4: 68fb ldr r3, [r7, #12] 800eda6: f893 3020 ldrb.w r3, [r3, #32] 800edaa: 77fb strb r3, [r7, #31] uint32_t tsr = READ_REG(hcan->Instance->TSR); 800edac: 68fb ldr r3, [r7, #12] 800edae: 681b ldr r3, [r3, #0] 800edb0: 689b ldr r3, [r3, #8] 800edb2: 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) || 800edb4: 7ffb ldrb r3, [r7, #31] 800edb6: 2b01 cmp r3, #1 800edb8: d003 beq.n 800edc2 800edba: 7ffb ldrb r3, [r7, #31] 800edbc: 2b02 cmp r3, #2 800edbe: f040 80ad bne.w 800ef1c (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || 800edc2: 69bb ldr r3, [r7, #24] 800edc4: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 800edc8: 2b00 cmp r3, #0 800edca: d10a bne.n 800ede2 ((tsr & CAN_TSR_TME1) != 0U) || 800edcc: 69bb ldr r3, [r7, #24] 800edce: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 if (((tsr & CAN_TSR_TME0) != 0U) || 800edd2: 2b00 cmp r3, #0 800edd4: d105 bne.n 800ede2 ((tsr & CAN_TSR_TME2) != 0U)) 800edd6: 69bb ldr r3, [r7, #24] 800edd8: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 ((tsr & CAN_TSR_TME1) != 0U) || 800eddc: 2b00 cmp r3, #0 800edde: f000 8095 beq.w 800ef0c { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; 800ede2: 69bb ldr r3, [r7, #24] 800ede4: 0e1b lsrs r3, r3, #24 800ede6: f003 0303 and.w r3, r3, #3 800edea: 617b str r3, [r7, #20] /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; 800edec: 2201 movs r2, #1 800edee: 697b ldr r3, [r7, #20] 800edf0: 409a lsls r2, r3 800edf2: 683b ldr r3, [r7, #0] 800edf4: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) 800edf6: 68bb ldr r3, [r7, #8] 800edf8: 689b ldr r3, [r3, #8] 800edfa: 2b00 cmp r3, #0 800edfc: d10d bne.n 800ee1a { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 800edfe: 68bb ldr r3, [r7, #8] 800ee00: 681b ldr r3, [r3, #0] 800ee02: 055a lsls r2, r3, #21 pHeader->RTR); 800ee04: 68bb ldr r3, [r7, #8] 800ee06: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 800ee08: 68f9 ldr r1, [r7, #12] 800ee0a: 6809 ldr r1, [r1, #0] 800ee0c: 431a orrs r2, r3 800ee0e: 697b ldr r3, [r7, #20] 800ee10: 3318 adds r3, #24 800ee12: 011b lsls r3, r3, #4 800ee14: 440b add r3, r1 800ee16: 601a str r2, [r3, #0] 800ee18: e00f b.n 800ee3a } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800ee1a: 68bb ldr r3, [r7, #8] 800ee1c: 685b ldr r3, [r3, #4] 800ee1e: 00da lsls r2, r3, #3 pHeader->IDE | 800ee20: 68bb ldr r3, [r7, #8] 800ee22: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800ee24: 431a orrs r2, r3 pHeader->RTR); 800ee26: 68bb ldr r3, [r7, #8] 800ee28: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800ee2a: 68f9 ldr r1, [r7, #12] 800ee2c: 6809 ldr r1, [r1, #0] pHeader->IDE | 800ee2e: 431a orrs r2, r3 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800ee30: 697b ldr r3, [r7, #20] 800ee32: 3318 adds r3, #24 800ee34: 011b lsls r3, r3, #4 800ee36: 440b add r3, r1 800ee38: 601a str r2, [r3, #0] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); 800ee3a: 68fb ldr r3, [r7, #12] 800ee3c: 6819 ldr r1, [r3, #0] 800ee3e: 68bb ldr r3, [r7, #8] 800ee40: 691a ldr r2, [r3, #16] 800ee42: 697b ldr r3, [r7, #20] 800ee44: 3318 adds r3, #24 800ee46: 011b lsls r3, r3, #4 800ee48: 440b add r3, r1 800ee4a: 3304 adds r3, #4 800ee4c: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) 800ee4e: 68bb ldr r3, [r7, #8] 800ee50: 7d1b ldrb r3, [r3, #20] 800ee52: 2b01 cmp r3, #1 800ee54: d111 bne.n 800ee7a { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); 800ee56: 68fb ldr r3, [r7, #12] 800ee58: 681a ldr r2, [r3, #0] 800ee5a: 697b ldr r3, [r7, #20] 800ee5c: 3318 adds r3, #24 800ee5e: 011b lsls r3, r3, #4 800ee60: 4413 add r3, r2 800ee62: 3304 adds r3, #4 800ee64: 681b ldr r3, [r3, #0] 800ee66: 68fa ldr r2, [r7, #12] 800ee68: 6811 ldr r1, [r2, #0] 800ee6a: f443 7280 orr.w r2, r3, #256 @ 0x100 800ee6e: 697b ldr r3, [r7, #20] 800ee70: 3318 adds r3, #24 800ee72: 011b lsls r3, r3, #4 800ee74: 440b add r3, r1 800ee76: 3304 adds r3, #4 800ee78: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, 800ee7a: 687b ldr r3, [r7, #4] 800ee7c: 3307 adds r3, #7 800ee7e: 781b ldrb r3, [r3, #0] 800ee80: 061a lsls r2, r3, #24 800ee82: 687b ldr r3, [r7, #4] 800ee84: 3306 adds r3, #6 800ee86: 781b ldrb r3, [r3, #0] 800ee88: 041b lsls r3, r3, #16 800ee8a: 431a orrs r2, r3 800ee8c: 687b ldr r3, [r7, #4] 800ee8e: 3305 adds r3, #5 800ee90: 781b ldrb r3, [r3, #0] 800ee92: 021b lsls r3, r3, #8 800ee94: 4313 orrs r3, r2 800ee96: 687a ldr r2, [r7, #4] 800ee98: 3204 adds r2, #4 800ee9a: 7812 ldrb r2, [r2, #0] 800ee9c: 4610 mov r0, r2 800ee9e: 68fa ldr r2, [r7, #12] 800eea0: 6811 ldr r1, [r2, #0] 800eea2: ea43 0200 orr.w r2, r3, r0 800eea6: 697b ldr r3, [r7, #20] 800eea8: 011b lsls r3, r3, #4 800eeaa: 440b add r3, r1 800eeac: f503 73c6 add.w r3, r3, #396 @ 0x18c 800eeb0: 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, 800eeb2: 687b ldr r3, [r7, #4] 800eeb4: 3303 adds r3, #3 800eeb6: 781b ldrb r3, [r3, #0] 800eeb8: 061a lsls r2, r3, #24 800eeba: 687b ldr r3, [r7, #4] 800eebc: 3302 adds r3, #2 800eebe: 781b ldrb r3, [r3, #0] 800eec0: 041b lsls r3, r3, #16 800eec2: 431a orrs r2, r3 800eec4: 687b ldr r3, [r7, #4] 800eec6: 3301 adds r3, #1 800eec8: 781b ldrb r3, [r3, #0] 800eeca: 021b lsls r3, r3, #8 800eecc: 4313 orrs r3, r2 800eece: 687a ldr r2, [r7, #4] 800eed0: 7812 ldrb r2, [r2, #0] 800eed2: 4610 mov r0, r2 800eed4: 68fa ldr r2, [r7, #12] 800eed6: 6811 ldr r1, [r2, #0] 800eed8: ea43 0200 orr.w r2, r3, r0 800eedc: 697b ldr r3, [r7, #20] 800eede: 011b lsls r3, r3, #4 800eee0: 440b add r3, r1 800eee2: f503 73c4 add.w r3, r3, #392 @ 0x188 800eee6: 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); 800eee8: 68fb ldr r3, [r7, #12] 800eeea: 681a ldr r2, [r3, #0] 800eeec: 697b ldr r3, [r7, #20] 800eeee: 3318 adds r3, #24 800eef0: 011b lsls r3, r3, #4 800eef2: 4413 add r3, r2 800eef4: 681b ldr r3, [r3, #0] 800eef6: 68fa ldr r2, [r7, #12] 800eef8: 6811 ldr r1, [r2, #0] 800eefa: f043 0201 orr.w r2, r3, #1 800eefe: 697b ldr r3, [r7, #20] 800ef00: 3318 adds r3, #24 800ef02: 011b lsls r3, r3, #4 800ef04: 440b add r3, r1 800ef06: 601a str r2, [r3, #0] /* Return function status */ return HAL_OK; 800ef08: 2300 movs r3, #0 800ef0a: e00e b.n 800ef2a } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800ef0c: 68fb ldr r3, [r7, #12] 800ef0e: 6a5b ldr r3, [r3, #36] @ 0x24 800ef10: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800ef14: 68fb ldr r3, [r7, #12] 800ef16: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ef18: 2301 movs r3, #1 800ef1a: e006 b.n 800ef2a } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800ef1c: 68fb ldr r3, [r7, #12] 800ef1e: 6a5b ldr r3, [r3, #36] @ 0x24 800ef20: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800ef24: 68fb ldr r3, [r7, #12] 800ef26: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ef28: 2301 movs r3, #1 } } 800ef2a: 4618 mov r0, r3 800ef2c: 3724 adds r7, #36 @ 0x24 800ef2e: 46bd mov sp, r7 800ef30: bc80 pop {r7} 800ef32: 4770 bx lr 0800ef34 : * @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) { 800ef34: b480 push {r7} 800ef36: b085 sub sp, #20 800ef38: af00 add r7, sp, #0 800ef3a: 6078 str r0, [r7, #4] uint32_t freelevel = 0U; 800ef3c: 2300 movs r3, #0 800ef3e: 60fb str r3, [r7, #12] HAL_CAN_StateTypeDef state = hcan->State; 800ef40: 687b ldr r3, [r7, #4] 800ef42: f893 3020 ldrb.w r3, [r3, #32] 800ef46: 72fb strb r3, [r7, #11] if ((state == HAL_CAN_STATE_READY) || 800ef48: 7afb ldrb r3, [r7, #11] 800ef4a: 2b01 cmp r3, #1 800ef4c: d002 beq.n 800ef54 800ef4e: 7afb ldrb r3, [r7, #11] 800ef50: 2b02 cmp r3, #2 800ef52: d11d bne.n 800ef90 (state == HAL_CAN_STATE_LISTENING)) { /* Check Tx Mailbox 0 status */ if ((hcan->Instance->TSR & CAN_TSR_TME0) != 0U) 800ef54: 687b ldr r3, [r7, #4] 800ef56: 681b ldr r3, [r3, #0] 800ef58: 689b ldr r3, [r3, #8] 800ef5a: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 800ef5e: 2b00 cmp r3, #0 800ef60: d002 beq.n 800ef68 { freelevel++; 800ef62: 68fb ldr r3, [r7, #12] 800ef64: 3301 adds r3, #1 800ef66: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 1 status */ if ((hcan->Instance->TSR & CAN_TSR_TME1) != 0U) 800ef68: 687b ldr r3, [r7, #4] 800ef6a: 681b ldr r3, [r3, #0] 800ef6c: 689b ldr r3, [r3, #8] 800ef6e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 800ef72: 2b00 cmp r3, #0 800ef74: d002 beq.n 800ef7c { freelevel++; 800ef76: 68fb ldr r3, [r7, #12] 800ef78: 3301 adds r3, #1 800ef7a: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 2 status */ if ((hcan->Instance->TSR & CAN_TSR_TME2) != 0U) 800ef7c: 687b ldr r3, [r7, #4] 800ef7e: 681b ldr r3, [r3, #0] 800ef80: 689b ldr r3, [r3, #8] 800ef82: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 800ef86: 2b00 cmp r3, #0 800ef88: d002 beq.n 800ef90 { freelevel++; 800ef8a: 68fb ldr r3, [r7, #12] 800ef8c: 3301 adds r3, #1 800ef8e: 60fb str r3, [r7, #12] } } /* Return Tx Mailboxes free level */ return freelevel; 800ef90: 68fb ldr r3, [r7, #12] } 800ef92: 4618 mov r0, r3 800ef94: 3714 adds r7, #20 800ef96: 46bd mov sp, r7 800ef98: bc80 pop {r7} 800ef9a: 4770 bx lr 0800ef9c : * @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[]) { 800ef9c: b480 push {r7} 800ef9e: b087 sub sp, #28 800efa0: af00 add r7, sp, #0 800efa2: 60f8 str r0, [r7, #12] 800efa4: 60b9 str r1, [r7, #8] 800efa6: 607a str r2, [r7, #4] 800efa8: 603b str r3, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; 800efaa: 68fb ldr r3, [r7, #12] 800efac: f893 3020 ldrb.w r3, [r3, #32] 800efb0: 75fb strb r3, [r7, #23] assert_param(IS_CAN_RX_FIFO(RxFifo)); if ((state == HAL_CAN_STATE_READY) || 800efb2: 7dfb ldrb r3, [r7, #23] 800efb4: 2b01 cmp r3, #1 800efb6: d003 beq.n 800efc0 800efb8: 7dfb ldrb r3, [r7, #23] 800efba: 2b02 cmp r3, #2 800efbc: f040 8103 bne.w 800f1c6 (state == HAL_CAN_STATE_LISTENING)) { /* Check the Rx FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ 800efc0: 68bb ldr r3, [r7, #8] 800efc2: 2b00 cmp r3, #0 800efc4: d10e bne.n 800efe4 { /* Check that the Rx FIFO 0 is not empty */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) 800efc6: 68fb ldr r3, [r7, #12] 800efc8: 681b ldr r3, [r3, #0] 800efca: 68db ldr r3, [r3, #12] 800efcc: f003 0303 and.w r3, r3, #3 800efd0: 2b00 cmp r3, #0 800efd2: d116 bne.n 800f002 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800efd4: 68fb ldr r3, [r7, #12] 800efd6: 6a5b ldr r3, [r3, #36] @ 0x24 800efd8: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800efdc: 68fb ldr r3, [r7, #12] 800efde: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800efe0: 2301 movs r3, #1 800efe2: e0f7 b.n 800f1d4 } } 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) 800efe4: 68fb ldr r3, [r7, #12] 800efe6: 681b ldr r3, [r3, #0] 800efe8: 691b ldr r3, [r3, #16] 800efea: f003 0303 and.w r3, r3, #3 800efee: 2b00 cmp r3, #0 800eff0: d107 bne.n 800f002 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800eff2: 68fb ldr r3, [r7, #12] 800eff4: 6a5b ldr r3, [r3, #36] @ 0x24 800eff6: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800effa: 68fb ldr r3, [r7, #12] 800effc: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800effe: 2301 movs r3, #1 800f000: e0e8 b.n 800f1d4 } } /* Get the header */ pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; 800f002: 68fb ldr r3, [r7, #12] 800f004: 681a ldr r2, [r3, #0] 800f006: 68bb ldr r3, [r7, #8] 800f008: 331b adds r3, #27 800f00a: 011b lsls r3, r3, #4 800f00c: 4413 add r3, r2 800f00e: 681b ldr r3, [r3, #0] 800f010: f003 0204 and.w r2, r3, #4 800f014: 687b ldr r3, [r7, #4] 800f016: 609a str r2, [r3, #8] if (pHeader->IDE == CAN_ID_STD) 800f018: 687b ldr r3, [r7, #4] 800f01a: 689b ldr r3, [r3, #8] 800f01c: 2b00 cmp r3, #0 800f01e: d10c bne.n 800f03a { pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; 800f020: 68fb ldr r3, [r7, #12] 800f022: 681a ldr r2, [r3, #0] 800f024: 68bb ldr r3, [r7, #8] 800f026: 331b adds r3, #27 800f028: 011b lsls r3, r3, #4 800f02a: 4413 add r3, r2 800f02c: 681b ldr r3, [r3, #0] 800f02e: 0d5b lsrs r3, r3, #21 800f030: f3c3 020a ubfx r2, r3, #0, #11 800f034: 687b ldr r3, [r7, #4] 800f036: 601a str r2, [r3, #0] 800f038: e00b b.n 800f052 } else { pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; 800f03a: 68fb ldr r3, [r7, #12] 800f03c: 681a ldr r2, [r3, #0] 800f03e: 68bb ldr r3, [r7, #8] 800f040: 331b adds r3, #27 800f042: 011b lsls r3, r3, #4 800f044: 4413 add r3, r2 800f046: 681b ldr r3, [r3, #0] 800f048: 08db lsrs r3, r3, #3 800f04a: f023 4260 bic.w r2, r3, #3758096384 @ 0xe0000000 pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & 800f04e: 687b ldr r3, [r7, #4] 800f050: 605a str r2, [r3, #4] } pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); 800f052: 68fb ldr r3, [r7, #12] 800f054: 681a ldr r2, [r3, #0] 800f056: 68bb ldr r3, [r7, #8] 800f058: 331b adds r3, #27 800f05a: 011b lsls r3, r3, #4 800f05c: 4413 add r3, r2 800f05e: 681b ldr r3, [r3, #0] 800f060: f003 0202 and.w r2, r3, #2 800f064: 687b ldr r3, [r7, #4] 800f066: 60da str r2, [r3, #12] if (((CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos) >= 8U) 800f068: 68fb ldr r3, [r7, #12] 800f06a: 681a ldr r2, [r3, #0] 800f06c: 68bb ldr r3, [r7, #8] 800f06e: 331b adds r3, #27 800f070: 011b lsls r3, r3, #4 800f072: 4413 add r3, r2 800f074: 3304 adds r3, #4 800f076: 681b ldr r3, [r3, #0] 800f078: f003 0308 and.w r3, r3, #8 800f07c: 2b00 cmp r3, #0 800f07e: d003 beq.n 800f088 { /* Truncate DLC to 8 if received field is over range */ pHeader->DLC = 8U; 800f080: 687b ldr r3, [r7, #4] 800f082: 2208 movs r2, #8 800f084: 611a str r2, [r3, #16] 800f086: e00b b.n 800f0a0 } else { pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; 800f088: 68fb ldr r3, [r7, #12] 800f08a: 681a ldr r2, [r3, #0] 800f08c: 68bb ldr r3, [r7, #8] 800f08e: 331b adds r3, #27 800f090: 011b lsls r3, r3, #4 800f092: 4413 add r3, r2 800f094: 3304 adds r3, #4 800f096: 681b ldr r3, [r3, #0] 800f098: f003 020f and.w r2, r3, #15 800f09c: 687b ldr r3, [r7, #4] 800f09e: 611a str r2, [r3, #16] } pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; 800f0a0: 68fb ldr r3, [r7, #12] 800f0a2: 681a ldr r2, [r3, #0] 800f0a4: 68bb ldr r3, [r7, #8] 800f0a6: 331b adds r3, #27 800f0a8: 011b lsls r3, r3, #4 800f0aa: 4413 add r3, r2 800f0ac: 3304 adds r3, #4 800f0ae: 681b ldr r3, [r3, #0] 800f0b0: 0a1b lsrs r3, r3, #8 800f0b2: b2da uxtb r2, r3 800f0b4: 687b ldr r3, [r7, #4] 800f0b6: 619a str r2, [r3, #24] pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; 800f0b8: 68fb ldr r3, [r7, #12] 800f0ba: 681a ldr r2, [r3, #0] 800f0bc: 68bb ldr r3, [r7, #8] 800f0be: 331b adds r3, #27 800f0c0: 011b lsls r3, r3, #4 800f0c2: 4413 add r3, r2 800f0c4: 3304 adds r3, #4 800f0c6: 681b ldr r3, [r3, #0] 800f0c8: 0c1b lsrs r3, r3, #16 800f0ca: b29a uxth r2, r3 800f0cc: 687b ldr r3, [r7, #4] 800f0ce: 615a str r2, [r3, #20] /* Get the data */ aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); 800f0d0: 68fb ldr r3, [r7, #12] 800f0d2: 681a ldr r2, [r3, #0] 800f0d4: 68bb ldr r3, [r7, #8] 800f0d6: 011b lsls r3, r3, #4 800f0d8: 4413 add r3, r2 800f0da: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f0de: 681b ldr r3, [r3, #0] 800f0e0: b2da uxtb r2, r3 800f0e2: 683b ldr r3, [r7, #0] 800f0e4: 701a strb r2, [r3, #0] aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); 800f0e6: 68fb ldr r3, [r7, #12] 800f0e8: 681a ldr r2, [r3, #0] 800f0ea: 68bb ldr r3, [r7, #8] 800f0ec: 011b lsls r3, r3, #4 800f0ee: 4413 add r3, r2 800f0f0: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f0f4: 681b ldr r3, [r3, #0] 800f0f6: 0a1a lsrs r2, r3, #8 800f0f8: 683b ldr r3, [r7, #0] 800f0fa: 3301 adds r3, #1 800f0fc: b2d2 uxtb r2, r2 800f0fe: 701a strb r2, [r3, #0] aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); 800f100: 68fb ldr r3, [r7, #12] 800f102: 681a ldr r2, [r3, #0] 800f104: 68bb ldr r3, [r7, #8] 800f106: 011b lsls r3, r3, #4 800f108: 4413 add r3, r2 800f10a: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f10e: 681b ldr r3, [r3, #0] 800f110: 0c1a lsrs r2, r3, #16 800f112: 683b ldr r3, [r7, #0] 800f114: 3302 adds r3, #2 800f116: b2d2 uxtb r2, r2 800f118: 701a strb r2, [r3, #0] aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); 800f11a: 68fb ldr r3, [r7, #12] 800f11c: 681a ldr r2, [r3, #0] 800f11e: 68bb ldr r3, [r7, #8] 800f120: 011b lsls r3, r3, #4 800f122: 4413 add r3, r2 800f124: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f128: 681b ldr r3, [r3, #0] 800f12a: 0e1a lsrs r2, r3, #24 800f12c: 683b ldr r3, [r7, #0] 800f12e: 3303 adds r3, #3 800f130: b2d2 uxtb r2, r2 800f132: 701a strb r2, [r3, #0] aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); 800f134: 68fb ldr r3, [r7, #12] 800f136: 681a ldr r2, [r3, #0] 800f138: 68bb ldr r3, [r7, #8] 800f13a: 011b lsls r3, r3, #4 800f13c: 4413 add r3, r2 800f13e: f503 73de add.w r3, r3, #444 @ 0x1bc 800f142: 681a ldr r2, [r3, #0] 800f144: 683b ldr r3, [r7, #0] 800f146: 3304 adds r3, #4 800f148: b2d2 uxtb r2, r2 800f14a: 701a strb r2, [r3, #0] aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); 800f14c: 68fb ldr r3, [r7, #12] 800f14e: 681a ldr r2, [r3, #0] 800f150: 68bb ldr r3, [r7, #8] 800f152: 011b lsls r3, r3, #4 800f154: 4413 add r3, r2 800f156: f503 73de add.w r3, r3, #444 @ 0x1bc 800f15a: 681b ldr r3, [r3, #0] 800f15c: 0a1a lsrs r2, r3, #8 800f15e: 683b ldr r3, [r7, #0] 800f160: 3305 adds r3, #5 800f162: b2d2 uxtb r2, r2 800f164: 701a strb r2, [r3, #0] aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); 800f166: 68fb ldr r3, [r7, #12] 800f168: 681a ldr r2, [r3, #0] 800f16a: 68bb ldr r3, [r7, #8] 800f16c: 011b lsls r3, r3, #4 800f16e: 4413 add r3, r2 800f170: f503 73de add.w r3, r3, #444 @ 0x1bc 800f174: 681b ldr r3, [r3, #0] 800f176: 0c1a lsrs r2, r3, #16 800f178: 683b ldr r3, [r7, #0] 800f17a: 3306 adds r3, #6 800f17c: b2d2 uxtb r2, r2 800f17e: 701a strb r2, [r3, #0] aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); 800f180: 68fb ldr r3, [r7, #12] 800f182: 681a ldr r2, [r3, #0] 800f184: 68bb ldr r3, [r7, #8] 800f186: 011b lsls r3, r3, #4 800f188: 4413 add r3, r2 800f18a: f503 73de add.w r3, r3, #444 @ 0x1bc 800f18e: 681b ldr r3, [r3, #0] 800f190: 0e1a lsrs r2, r3, #24 800f192: 683b ldr r3, [r7, #0] 800f194: 3307 adds r3, #7 800f196: b2d2 uxtb r2, r2 800f198: 701a strb r2, [r3, #0] /* Release the FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ 800f19a: 68bb ldr r3, [r7, #8] 800f19c: 2b00 cmp r3, #0 800f19e: d108 bne.n 800f1b2 { /* Release RX FIFO 0 */ SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); 800f1a0: 68fb ldr r3, [r7, #12] 800f1a2: 681b ldr r3, [r3, #0] 800f1a4: 68da ldr r2, [r3, #12] 800f1a6: 68fb ldr r3, [r7, #12] 800f1a8: 681b ldr r3, [r3, #0] 800f1aa: f042 0220 orr.w r2, r2, #32 800f1ae: 60da str r2, [r3, #12] 800f1b0: e007 b.n 800f1c2 } else /* Rx element is assigned to Rx FIFO 1 */ { /* Release RX FIFO 1 */ SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); 800f1b2: 68fb ldr r3, [r7, #12] 800f1b4: 681b ldr r3, [r3, #0] 800f1b6: 691a ldr r2, [r3, #16] 800f1b8: 68fb ldr r3, [r7, #12] 800f1ba: 681b ldr r3, [r3, #0] 800f1bc: f042 0220 orr.w r2, r2, #32 800f1c0: 611a str r2, [r3, #16] } /* Return function status */ return HAL_OK; 800f1c2: 2300 movs r3, #0 800f1c4: e006 b.n 800f1d4 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f1c6: 68fb ldr r3, [r7, #12] 800f1c8: 6a5b ldr r3, [r3, #36] @ 0x24 800f1ca: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f1ce: 68fb ldr r3, [r7, #12] 800f1d0: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f1d2: 2301 movs r3, #1 } } 800f1d4: 4618 mov r0, r3 800f1d6: 371c adds r7, #28 800f1d8: 46bd mov sp, r7 800f1da: bc80 pop {r7} 800f1dc: 4770 bx lr 0800f1de : * @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) { 800f1de: b480 push {r7} 800f1e0: b085 sub sp, #20 800f1e2: af00 add r7, sp, #0 800f1e4: 6078 str r0, [r7, #4] 800f1e6: 6039 str r1, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; 800f1e8: 687b ldr r3, [r7, #4] 800f1ea: f893 3020 ldrb.w r3, [r3, #32] 800f1ee: 73fb strb r3, [r7, #15] /* Check function parameters */ assert_param(IS_CAN_IT(ActiveITs)); if ((state == HAL_CAN_STATE_READY) || 800f1f0: 7bfb ldrb r3, [r7, #15] 800f1f2: 2b01 cmp r3, #1 800f1f4: d002 beq.n 800f1fc 800f1f6: 7bfb ldrb r3, [r7, #15] 800f1f8: 2b02 cmp r3, #2 800f1fa: d109 bne.n 800f210 (state == HAL_CAN_STATE_LISTENING)) { /* Enable the selected interrupts */ __HAL_CAN_ENABLE_IT(hcan, ActiveITs); 800f1fc: 687b ldr r3, [r7, #4] 800f1fe: 681b ldr r3, [r3, #0] 800f200: 6959 ldr r1, [r3, #20] 800f202: 687b ldr r3, [r7, #4] 800f204: 681b ldr r3, [r3, #0] 800f206: 683a ldr r2, [r7, #0] 800f208: 430a orrs r2, r1 800f20a: 615a str r2, [r3, #20] /* Return function status */ return HAL_OK; 800f20c: 2300 movs r3, #0 800f20e: e006 b.n 800f21e } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f210: 687b ldr r3, [r7, #4] 800f212: 6a5b ldr r3, [r3, #36] @ 0x24 800f214: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f218: 687b ldr r3, [r7, #4] 800f21a: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f21c: 2301 movs r3, #1 } } 800f21e: 4618 mov r0, r3 800f220: 3714 adds r7, #20 800f222: 46bd mov sp, r7 800f224: bc80 pop {r7} 800f226: 4770 bx lr 0800f228 : * @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) { 800f228: b580 push {r7, lr} 800f22a: b08a sub sp, #40 @ 0x28 800f22c: af00 add r7, sp, #0 800f22e: 6078 str r0, [r7, #4] uint32_t errorcode = HAL_CAN_ERROR_NONE; 800f230: 2300 movs r3, #0 800f232: 627b str r3, [r7, #36] @ 0x24 uint32_t interrupts = READ_REG(hcan->Instance->IER); 800f234: 687b ldr r3, [r7, #4] 800f236: 681b ldr r3, [r3, #0] 800f238: 695b ldr r3, [r3, #20] 800f23a: 623b str r3, [r7, #32] uint32_t msrflags = READ_REG(hcan->Instance->MSR); 800f23c: 687b ldr r3, [r7, #4] 800f23e: 681b ldr r3, [r3, #0] 800f240: 685b ldr r3, [r3, #4] 800f242: 61fb str r3, [r7, #28] uint32_t tsrflags = READ_REG(hcan->Instance->TSR); 800f244: 687b ldr r3, [r7, #4] 800f246: 681b ldr r3, [r3, #0] 800f248: 689b ldr r3, [r3, #8] 800f24a: 61bb str r3, [r7, #24] uint32_t rf0rflags = READ_REG(hcan->Instance->RF0R); 800f24c: 687b ldr r3, [r7, #4] 800f24e: 681b ldr r3, [r3, #0] 800f250: 68db ldr r3, [r3, #12] 800f252: 617b str r3, [r7, #20] uint32_t rf1rflags = READ_REG(hcan->Instance->RF1R); 800f254: 687b ldr r3, [r7, #4] 800f256: 681b ldr r3, [r3, #0] 800f258: 691b ldr r3, [r3, #16] 800f25a: 613b str r3, [r7, #16] uint32_t esrflags = READ_REG(hcan->Instance->ESR); 800f25c: 687b ldr r3, [r7, #4] 800f25e: 681b ldr r3, [r3, #0] 800f260: 699b ldr r3, [r3, #24] 800f262: 60fb str r3, [r7, #12] /* Transmit Mailbox empty interrupt management *****************************/ if ((interrupts & CAN_IT_TX_MAILBOX_EMPTY) != 0U) 800f264: 6a3b ldr r3, [r7, #32] 800f266: f003 0301 and.w r3, r3, #1 800f26a: 2b00 cmp r3, #0 800f26c: d07c beq.n 800f368 { /* Transmit Mailbox 0 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP0) != 0U) 800f26e: 69bb ldr r3, [r7, #24] 800f270: f003 0301 and.w r3, r3, #1 800f274: 2b00 cmp r3, #0 800f276: d023 beq.n 800f2c0 { /* Clear the Transmission Complete flag (and TXOK0,ALST0,TERR0 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP0); 800f278: 687b ldr r3, [r7, #4] 800f27a: 681b ldr r3, [r3, #0] 800f27c: 2201 movs r2, #1 800f27e: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK0) != 0U) 800f280: 69bb ldr r3, [r7, #24] 800f282: f003 0302 and.w r3, r3, #2 800f286: 2b00 cmp r3, #0 800f288: d003 beq.n 800f292 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0CompleteCallback(hcan); 800f28a: 6878 ldr r0, [r7, #4] 800f28c: f000 f983 bl 800f596 800f290: e016 b.n 800f2c0 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST0) != 0U) 800f292: 69bb ldr r3, [r7, #24] 800f294: f003 0304 and.w r3, r3, #4 800f298: 2b00 cmp r3, #0 800f29a: d004 beq.n 800f2a6 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST0; 800f29c: 6a7b ldr r3, [r7, #36] @ 0x24 800f29e: f443 6300 orr.w r3, r3, #2048 @ 0x800 800f2a2: 627b str r3, [r7, #36] @ 0x24 800f2a4: e00c b.n 800f2c0 } else if ((tsrflags & CAN_TSR_TERR0) != 0U) 800f2a6: 69bb ldr r3, [r7, #24] 800f2a8: f003 0308 and.w r3, r3, #8 800f2ac: 2b00 cmp r3, #0 800f2ae: d004 beq.n 800f2ba { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR0; 800f2b0: 6a7b ldr r3, [r7, #36] @ 0x24 800f2b2: f443 5380 orr.w r3, r3, #4096 @ 0x1000 800f2b6: 627b str r3, [r7, #36] @ 0x24 800f2b8: e002 b.n 800f2c0 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0AbortCallback(hcan); 800f2ba: 6878 ldr r0, [r7, #4] 800f2bc: f000 f986 bl 800f5cc } } } /* Transmit Mailbox 1 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP1) != 0U) 800f2c0: 69bb ldr r3, [r7, #24] 800f2c2: f403 7380 and.w r3, r3, #256 @ 0x100 800f2c6: 2b00 cmp r3, #0 800f2c8: d024 beq.n 800f314 { /* Clear the Transmission Complete flag (and TXOK1,ALST1,TERR1 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP1); 800f2ca: 687b ldr r3, [r7, #4] 800f2cc: 681b ldr r3, [r3, #0] 800f2ce: f44f 7280 mov.w r2, #256 @ 0x100 800f2d2: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK1) != 0U) 800f2d4: 69bb ldr r3, [r7, #24] 800f2d6: f403 7300 and.w r3, r3, #512 @ 0x200 800f2da: 2b00 cmp r3, #0 800f2dc: d003 beq.n 800f2e6 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1CompleteCallback(hcan); 800f2de: 6878 ldr r0, [r7, #4] 800f2e0: f000 f962 bl 800f5a8 800f2e4: e016 b.n 800f314 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST1) != 0U) 800f2e6: 69bb ldr r3, [r7, #24] 800f2e8: f403 6380 and.w r3, r3, #1024 @ 0x400 800f2ec: 2b00 cmp r3, #0 800f2ee: d004 beq.n 800f2fa { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST1; 800f2f0: 6a7b ldr r3, [r7, #36] @ 0x24 800f2f2: f443 5300 orr.w r3, r3, #8192 @ 0x2000 800f2f6: 627b str r3, [r7, #36] @ 0x24 800f2f8: e00c b.n 800f314 } else if ((tsrflags & CAN_TSR_TERR1) != 0U) 800f2fa: 69bb ldr r3, [r7, #24] 800f2fc: f403 6300 and.w r3, r3, #2048 @ 0x800 800f300: 2b00 cmp r3, #0 800f302: d004 beq.n 800f30e { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR1; 800f304: 6a7b ldr r3, [r7, #36] @ 0x24 800f306: f443 4380 orr.w r3, r3, #16384 @ 0x4000 800f30a: 627b str r3, [r7, #36] @ 0x24 800f30c: e002 b.n 800f314 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1AbortCallback(hcan); 800f30e: 6878 ldr r0, [r7, #4] 800f310: f000 f965 bl 800f5de } } } /* Transmit Mailbox 2 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP2) != 0U) 800f314: 69bb ldr r3, [r7, #24] 800f316: f403 3380 and.w r3, r3, #65536 @ 0x10000 800f31a: 2b00 cmp r3, #0 800f31c: d024 beq.n 800f368 { /* Clear the Transmission Complete flag (and TXOK2,ALST2,TERR2 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP2); 800f31e: 687b ldr r3, [r7, #4] 800f320: 681b ldr r3, [r3, #0] 800f322: f44f 3280 mov.w r2, #65536 @ 0x10000 800f326: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK2) != 0U) 800f328: 69bb ldr r3, [r7, #24] 800f32a: f403 3300 and.w r3, r3, #131072 @ 0x20000 800f32e: 2b00 cmp r3, #0 800f330: d003 beq.n 800f33a #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2CompleteCallback(hcan); 800f332: 6878 ldr r0, [r7, #4] 800f334: f000 f941 bl 800f5ba 800f338: e016 b.n 800f368 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST2) != 0U) 800f33a: 69bb ldr r3, [r7, #24] 800f33c: f403 2380 and.w r3, r3, #262144 @ 0x40000 800f340: 2b00 cmp r3, #0 800f342: d004 beq.n 800f34e { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST2; 800f344: 6a7b ldr r3, [r7, #36] @ 0x24 800f346: f443 4300 orr.w r3, r3, #32768 @ 0x8000 800f34a: 627b str r3, [r7, #36] @ 0x24 800f34c: e00c b.n 800f368 } else if ((tsrflags & CAN_TSR_TERR2) != 0U) 800f34e: 69bb ldr r3, [r7, #24] 800f350: f403 2300 and.w r3, r3, #524288 @ 0x80000 800f354: 2b00 cmp r3, #0 800f356: d004 beq.n 800f362 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR2; 800f358: 6a7b ldr r3, [r7, #36] @ 0x24 800f35a: f443 3380 orr.w r3, r3, #65536 @ 0x10000 800f35e: 627b str r3, [r7, #36] @ 0x24 800f360: e002 b.n 800f368 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2AbortCallback(hcan); 800f362: 6878 ldr r0, [r7, #4] 800f364: f000 f944 bl 800f5f0 } } } /* Receive FIFO 0 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO0_OVERRUN) != 0U) 800f368: 6a3b ldr r3, [r7, #32] 800f36a: f003 0308 and.w r3, r3, #8 800f36e: 2b00 cmp r3, #0 800f370: d00c beq.n 800f38c { if ((rf0rflags & CAN_RF0R_FOVR0) != 0U) 800f372: 697b ldr r3, [r7, #20] 800f374: f003 0310 and.w r3, r3, #16 800f378: 2b00 cmp r3, #0 800f37a: d007 beq.n 800f38c { /* Set CAN error code to Rx Fifo 0 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV0; 800f37c: 6a7b ldr r3, [r7, #36] @ 0x24 800f37e: f443 7300 orr.w r3, r3, #512 @ 0x200 800f382: 627b str r3, [r7, #36] @ 0x24 /* Clear FIFO0 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV0); 800f384: 687b ldr r3, [r7, #4] 800f386: 681b ldr r3, [r3, #0] 800f388: 2210 movs r2, #16 800f38a: 60da str r2, [r3, #12] } } /* Receive FIFO 0 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U) 800f38c: 6a3b ldr r3, [r7, #32] 800f38e: f003 0304 and.w r3, r3, #4 800f392: 2b00 cmp r3, #0 800f394: d00b beq.n 800f3ae { if ((rf0rflags & CAN_RF0R_FULL0) != 0U) 800f396: 697b ldr r3, [r7, #20] 800f398: f003 0308 and.w r3, r3, #8 800f39c: 2b00 cmp r3, #0 800f39e: d006 beq.n 800f3ae { /* Clear FIFO 0 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF0); 800f3a0: 687b ldr r3, [r7, #4] 800f3a2: 681b ldr r3, [r3, #0] 800f3a4: 2208 movs r2, #8 800f3a6: 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); 800f3a8: 6878 ldr r0, [r7, #4] 800f3aa: f000 f933 bl 800f614 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 0 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U) 800f3ae: 6a3b ldr r3, [r7, #32] 800f3b0: f003 0302 and.w r3, r3, #2 800f3b4: 2b00 cmp r3, #0 800f3b6: d009 beq.n 800f3cc { /* Check if message is still pending */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U) 800f3b8: 687b ldr r3, [r7, #4] 800f3ba: 681b ldr r3, [r3, #0] 800f3bc: 68db ldr r3, [r3, #12] 800f3be: f003 0303 and.w r3, r3, #3 800f3c2: 2b00 cmp r3, #0 800f3c4: d002 beq.n 800f3cc #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0MsgPendingCallback(hcan); 800f3c6: 6878 ldr r0, [r7, #4] 800f3c8: f000 f91b bl 800f602 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO1_OVERRUN) != 0U) 800f3cc: 6a3b ldr r3, [r7, #32] 800f3ce: f003 0340 and.w r3, r3, #64 @ 0x40 800f3d2: 2b00 cmp r3, #0 800f3d4: d00c beq.n 800f3f0 { if ((rf1rflags & CAN_RF1R_FOVR1) != 0U) 800f3d6: 693b ldr r3, [r7, #16] 800f3d8: f003 0310 and.w r3, r3, #16 800f3dc: 2b00 cmp r3, #0 800f3de: d007 beq.n 800f3f0 { /* Set CAN error code to Rx Fifo 1 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV1; 800f3e0: 6a7b ldr r3, [r7, #36] @ 0x24 800f3e2: f443 6380 orr.w r3, r3, #1024 @ 0x400 800f3e6: 627b str r3, [r7, #36] @ 0x24 /* Clear FIFO1 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV1); 800f3e8: 687b ldr r3, [r7, #4] 800f3ea: 681b ldr r3, [r3, #0] 800f3ec: 2210 movs r2, #16 800f3ee: 611a str r2, [r3, #16] } } /* Receive FIFO 1 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO1_FULL) != 0U) 800f3f0: 6a3b ldr r3, [r7, #32] 800f3f2: f003 0320 and.w r3, r3, #32 800f3f6: 2b00 cmp r3, #0 800f3f8: d00b beq.n 800f412 { if ((rf1rflags & CAN_RF1R_FULL1) != 0U) 800f3fa: 693b ldr r3, [r7, #16] 800f3fc: f003 0308 and.w r3, r3, #8 800f400: 2b00 cmp r3, #0 800f402: d006 beq.n 800f412 { /* Clear FIFO 1 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF1); 800f404: 687b ldr r3, [r7, #4] 800f406: 681b ldr r3, [r3, #0] 800f408: 2208 movs r2, #8 800f40a: 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); 800f40c: 6878 ldr r0, [r7, #4] 800f40e: f000 f90a bl 800f626 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO1_MSG_PENDING) != 0U) 800f412: 6a3b ldr r3, [r7, #32] 800f414: f003 0310 and.w r3, r3, #16 800f418: 2b00 cmp r3, #0 800f41a: d009 beq.n 800f430 { /* Check if message is still pending */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) != 0U) 800f41c: 687b ldr r3, [r7, #4] 800f41e: 681b ldr r3, [r3, #0] 800f420: 691b ldr r3, [r3, #16] 800f422: f003 0303 and.w r3, r3, #3 800f426: 2b00 cmp r3, #0 800f428: d002 beq.n 800f430 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1MsgPendingCallback(hcan); 800f42a: 6878 ldr r0, [r7, #4] 800f42c: f7fb fc18 bl 800ac60 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Sleep interrupt management *********************************************/ if ((interrupts & CAN_IT_SLEEP_ACK) != 0U) 800f430: 6a3b ldr r3, [r7, #32] 800f432: f403 3300 and.w r3, r3, #131072 @ 0x20000 800f436: 2b00 cmp r3, #0 800f438: d00b beq.n 800f452 { if ((msrflags & CAN_MSR_SLAKI) != 0U) 800f43a: 69fb ldr r3, [r7, #28] 800f43c: f003 0310 and.w r3, r3, #16 800f440: 2b00 cmp r3, #0 800f442: d006 beq.n 800f452 { /* Clear Sleep interrupt Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_SLAKI); 800f444: 687b ldr r3, [r7, #4] 800f446: 681b ldr r3, [r3, #0] 800f448: 2210 movs r2, #16 800f44a: 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); 800f44c: 6878 ldr r0, [r7, #4] 800f44e: f000 f8f3 bl 800f638 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* WakeUp interrupt management *********************************************/ if ((interrupts & CAN_IT_WAKEUP) != 0U) 800f452: 6a3b ldr r3, [r7, #32] 800f454: f403 3380 and.w r3, r3, #65536 @ 0x10000 800f458: 2b00 cmp r3, #0 800f45a: d00b beq.n 800f474 { if ((msrflags & CAN_MSR_WKUI) != 0U) 800f45c: 69fb ldr r3, [r7, #28] 800f45e: f003 0308 and.w r3, r3, #8 800f462: 2b00 cmp r3, #0 800f464: d006 beq.n 800f474 { /* Clear WakeUp Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_WKU); 800f466: 687b ldr r3, [r7, #4] 800f468: 681b ldr r3, [r3, #0] 800f46a: 2208 movs r2, #8 800f46c: 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); 800f46e: 6878 ldr r0, [r7, #4] 800f470: f000 f8eb bl 800f64a #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Error interrupts management *********************************************/ if ((interrupts & CAN_IT_ERROR) != 0U) 800f474: 6a3b ldr r3, [r7, #32] 800f476: f403 4300 and.w r3, r3, #32768 @ 0x8000 800f47a: 2b00 cmp r3, #0 800f47c: d07b beq.n 800f576 { if ((msrflags & CAN_MSR_ERRI) != 0U) 800f47e: 69fb ldr r3, [r7, #28] 800f480: f003 0304 and.w r3, r3, #4 800f484: 2b00 cmp r3, #0 800f486: d072 beq.n 800f56e { /* Check Error Warning Flag */ if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && 800f488: 6a3b ldr r3, [r7, #32] 800f48a: f403 7380 and.w r3, r3, #256 @ 0x100 800f48e: 2b00 cmp r3, #0 800f490: d008 beq.n 800f4a4 ((esrflags & CAN_ESR_EWGF) != 0U)) 800f492: 68fb ldr r3, [r7, #12] 800f494: f003 0301 and.w r3, r3, #1 if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && 800f498: 2b00 cmp r3, #0 800f49a: d003 beq.n 800f4a4 { /* Set CAN error code to Error Warning */ errorcode |= HAL_CAN_ERROR_EWG; 800f49c: 6a7b ldr r3, [r7, #36] @ 0x24 800f49e: f043 0301 orr.w r3, r3, #1 800f4a2: 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) && 800f4a4: 6a3b ldr r3, [r7, #32] 800f4a6: f403 7300 and.w r3, r3, #512 @ 0x200 800f4aa: 2b00 cmp r3, #0 800f4ac: d008 beq.n 800f4c0 ((esrflags & CAN_ESR_EPVF) != 0U)) 800f4ae: 68fb ldr r3, [r7, #12] 800f4b0: f003 0302 and.w r3, r3, #2 if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && 800f4b4: 2b00 cmp r3, #0 800f4b6: d003 beq.n 800f4c0 { /* Set CAN error code to Error Passive */ errorcode |= HAL_CAN_ERROR_EPV; 800f4b8: 6a7b ldr r3, [r7, #36] @ 0x24 800f4ba: f043 0302 orr.w r3, r3, #2 800f4be: 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) && 800f4c0: 6a3b ldr r3, [r7, #32] 800f4c2: f403 6380 and.w r3, r3, #1024 @ 0x400 800f4c6: 2b00 cmp r3, #0 800f4c8: d008 beq.n 800f4dc ((esrflags & CAN_ESR_BOFF) != 0U)) 800f4ca: 68fb ldr r3, [r7, #12] 800f4cc: f003 0304 and.w r3, r3, #4 if (((interrupts & CAN_IT_BUSOFF) != 0U) && 800f4d0: 2b00 cmp r3, #0 800f4d2: d003 beq.n 800f4dc { /* Set CAN error code to Bus-Off */ errorcode |= HAL_CAN_ERROR_BOF; 800f4d4: 6a7b ldr r3, [r7, #36] @ 0x24 800f4d6: f043 0304 orr.w r3, r3, #4 800f4da: 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) && 800f4dc: 6a3b ldr r3, [r7, #32] 800f4de: f403 6300 and.w r3, r3, #2048 @ 0x800 800f4e2: 2b00 cmp r3, #0 800f4e4: d043 beq.n 800f56e ((esrflags & CAN_ESR_LEC) != 0U)) 800f4e6: 68fb ldr r3, [r7, #12] 800f4e8: f003 0370 and.w r3, r3, #112 @ 0x70 if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && 800f4ec: 2b00 cmp r3, #0 800f4ee: d03e beq.n 800f56e { switch (esrflags & CAN_ESR_LEC) 800f4f0: 68fb ldr r3, [r7, #12] 800f4f2: f003 0370 and.w r3, r3, #112 @ 0x70 800f4f6: 2b60 cmp r3, #96 @ 0x60 800f4f8: d02b beq.n 800f552 800f4fa: 2b60 cmp r3, #96 @ 0x60 800f4fc: d82e bhi.n 800f55c 800f4fe: 2b50 cmp r3, #80 @ 0x50 800f500: d022 beq.n 800f548 800f502: 2b50 cmp r3, #80 @ 0x50 800f504: d82a bhi.n 800f55c 800f506: 2b40 cmp r3, #64 @ 0x40 800f508: d019 beq.n 800f53e 800f50a: 2b40 cmp r3, #64 @ 0x40 800f50c: d826 bhi.n 800f55c 800f50e: 2b30 cmp r3, #48 @ 0x30 800f510: d010 beq.n 800f534 800f512: 2b30 cmp r3, #48 @ 0x30 800f514: d822 bhi.n 800f55c 800f516: 2b10 cmp r3, #16 800f518: d002 beq.n 800f520 800f51a: 2b20 cmp r3, #32 800f51c: d005 beq.n 800f52a case (CAN_ESR_LEC_2 | CAN_ESR_LEC_1): /* Set CAN error code to CRC error */ errorcode |= HAL_CAN_ERROR_CRC; break; default: break; 800f51e: e01d b.n 800f55c errorcode |= HAL_CAN_ERROR_STF; 800f520: 6a7b ldr r3, [r7, #36] @ 0x24 800f522: f043 0308 orr.w r3, r3, #8 800f526: 627b str r3, [r7, #36] @ 0x24 break; 800f528: e019 b.n 800f55e errorcode |= HAL_CAN_ERROR_FOR; 800f52a: 6a7b ldr r3, [r7, #36] @ 0x24 800f52c: f043 0310 orr.w r3, r3, #16 800f530: 627b str r3, [r7, #36] @ 0x24 break; 800f532: e014 b.n 800f55e errorcode |= HAL_CAN_ERROR_ACK; 800f534: 6a7b ldr r3, [r7, #36] @ 0x24 800f536: f043 0320 orr.w r3, r3, #32 800f53a: 627b str r3, [r7, #36] @ 0x24 break; 800f53c: e00f b.n 800f55e errorcode |= HAL_CAN_ERROR_BR; 800f53e: 6a7b ldr r3, [r7, #36] @ 0x24 800f540: f043 0340 orr.w r3, r3, #64 @ 0x40 800f544: 627b str r3, [r7, #36] @ 0x24 break; 800f546: e00a b.n 800f55e errorcode |= HAL_CAN_ERROR_BD; 800f548: 6a7b ldr r3, [r7, #36] @ 0x24 800f54a: f043 0380 orr.w r3, r3, #128 @ 0x80 800f54e: 627b str r3, [r7, #36] @ 0x24 break; 800f550: e005 b.n 800f55e errorcode |= HAL_CAN_ERROR_CRC; 800f552: 6a7b ldr r3, [r7, #36] @ 0x24 800f554: f443 7380 orr.w r3, r3, #256 @ 0x100 800f558: 627b str r3, [r7, #36] @ 0x24 break; 800f55a: e000 b.n 800f55e break; 800f55c: bf00 nop } /* Clear Last error code Flag */ CLEAR_BIT(hcan->Instance->ESR, CAN_ESR_LEC); 800f55e: 687b ldr r3, [r7, #4] 800f560: 681b ldr r3, [r3, #0] 800f562: 699a ldr r2, [r3, #24] 800f564: 687b ldr r3, [r7, #4] 800f566: 681b ldr r3, [r3, #0] 800f568: f022 0270 bic.w r2, r2, #112 @ 0x70 800f56c: 619a str r2, [r3, #24] } } /* Clear ERRI Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_ERRI); 800f56e: 687b ldr r3, [r7, #4] 800f570: 681b ldr r3, [r3, #0] 800f572: 2204 movs r2, #4 800f574: 605a str r2, [r3, #4] } /* Call the Error call Back in case of Errors */ if (errorcode != HAL_CAN_ERROR_NONE) 800f576: 6a7b ldr r3, [r7, #36] @ 0x24 800f578: 2b00 cmp r3, #0 800f57a: d008 beq.n 800f58e { /* Update error code in handle */ hcan->ErrorCode |= errorcode; 800f57c: 687b ldr r3, [r7, #4] 800f57e: 6a5a ldr r2, [r3, #36] @ 0x24 800f580: 6a7b ldr r3, [r7, #36] @ 0x24 800f582: 431a orrs r2, r3 800f584: 687b ldr r3, [r7, #4] 800f586: 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); 800f588: 6878 ldr r0, [r7, #4] 800f58a: f000 f867 bl 800f65c #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } 800f58e: bf00 nop 800f590: 3728 adds r7, #40 @ 0x28 800f592: 46bd mov sp, r7 800f594: bd80 pop {r7, pc} 0800f596 : * @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) { 800f596: b480 push {r7} 800f598: b083 sub sp, #12 800f59a: af00 add r7, sp, #0 800f59c: 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 */ } 800f59e: bf00 nop 800f5a0: 370c adds r7, #12 800f5a2: 46bd mov sp, r7 800f5a4: bc80 pop {r7} 800f5a6: 4770 bx lr 0800f5a8 : * @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) { 800f5a8: b480 push {r7} 800f5aa: b083 sub sp, #12 800f5ac: af00 add r7, sp, #0 800f5ae: 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 */ } 800f5b0: bf00 nop 800f5b2: 370c adds r7, #12 800f5b4: 46bd mov sp, r7 800f5b6: bc80 pop {r7} 800f5b8: 4770 bx lr 0800f5ba : * @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) { 800f5ba: b480 push {r7} 800f5bc: b083 sub sp, #12 800f5be: af00 add r7, sp, #0 800f5c0: 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 */ } 800f5c2: bf00 nop 800f5c4: 370c adds r7, #12 800f5c6: 46bd mov sp, r7 800f5c8: bc80 pop {r7} 800f5ca: 4770 bx lr 0800f5cc : * @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) { 800f5cc: b480 push {r7} 800f5ce: b083 sub sp, #12 800f5d0: af00 add r7, sp, #0 800f5d2: 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 */ } 800f5d4: bf00 nop 800f5d6: 370c adds r7, #12 800f5d8: 46bd mov sp, r7 800f5da: bc80 pop {r7} 800f5dc: 4770 bx lr 0800f5de : * @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) { 800f5de: b480 push {r7} 800f5e0: b083 sub sp, #12 800f5e2: af00 add r7, sp, #0 800f5e4: 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 */ } 800f5e6: bf00 nop 800f5e8: 370c adds r7, #12 800f5ea: 46bd mov sp, r7 800f5ec: bc80 pop {r7} 800f5ee: 4770 bx lr 0800f5f0 : * @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) { 800f5f0: b480 push {r7} 800f5f2: b083 sub sp, #12 800f5f4: af00 add r7, sp, #0 800f5f6: 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 */ } 800f5f8: bf00 nop 800f5fa: 370c adds r7, #12 800f5fc: 46bd mov sp, r7 800f5fe: bc80 pop {r7} 800f600: 4770 bx lr 0800f602 : * @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) { 800f602: b480 push {r7} 800f604: b083 sub sp, #12 800f606: af00 add r7, sp, #0 800f608: 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 */ } 800f60a: bf00 nop 800f60c: 370c adds r7, #12 800f60e: 46bd mov sp, r7 800f610: bc80 pop {r7} 800f612: 4770 bx lr 0800f614 : * @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) { 800f614: b480 push {r7} 800f616: b083 sub sp, #12 800f618: af00 add r7, sp, #0 800f61a: 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 */ } 800f61c: bf00 nop 800f61e: 370c adds r7, #12 800f620: 46bd mov sp, r7 800f622: bc80 pop {r7} 800f624: 4770 bx lr 0800f626 : * @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) { 800f626: b480 push {r7} 800f628: b083 sub sp, #12 800f62a: af00 add r7, sp, #0 800f62c: 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 */ } 800f62e: bf00 nop 800f630: 370c adds r7, #12 800f632: 46bd mov sp, r7 800f634: bc80 pop {r7} 800f636: 4770 bx lr 0800f638 : * @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) { 800f638: b480 push {r7} 800f63a: b083 sub sp, #12 800f63c: af00 add r7, sp, #0 800f63e: 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 */ } 800f640: bf00 nop 800f642: 370c adds r7, #12 800f644: 46bd mov sp, r7 800f646: bc80 pop {r7} 800f648: 4770 bx lr 0800f64a : * @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) { 800f64a: b480 push {r7} 800f64c: b083 sub sp, #12 800f64e: af00 add r7, sp, #0 800f650: 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 */ } 800f652: bf00 nop 800f654: 370c adds r7, #12 800f656: 46bd mov sp, r7 800f658: bc80 pop {r7} 800f65a: 4770 bx lr 0800f65c : * @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) { 800f65c: b480 push {r7} 800f65e: b083 sub sp, #12 800f660: af00 add r7, sp, #0 800f662: 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 */ } 800f664: bf00 nop 800f666: 370c adds r7, #12 800f668: 46bd mov sp, r7 800f66a: bc80 pop {r7} 800f66c: 4770 bx lr ... 0800f670 <__NVIC_SetPriorityGrouping>: { 800f670: b480 push {r7} 800f672: b085 sub sp, #20 800f674: af00 add r7, sp, #0 800f676: 6078 str r0, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 800f678: 687b ldr r3, [r7, #4] 800f67a: f003 0307 and.w r3, r3, #7 800f67e: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ 800f680: 4b0c ldr r3, [pc, #48] @ (800f6b4 <__NVIC_SetPriorityGrouping+0x44>) 800f682: 68db ldr r3, [r3, #12] 800f684: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ 800f686: 68ba ldr r2, [r7, #8] 800f688: f64f 03ff movw r3, #63743 @ 0xf8ff 800f68c: 4013 ands r3, r2 800f68e: 60bb str r3, [r7, #8] (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ 800f690: 68fb ldr r3, [r7, #12] 800f692: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800f694: 68bb ldr r3, [r7, #8] 800f696: 4313 orrs r3, r2 reg_value = (reg_value | 800f698: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 800f69c: f443 3300 orr.w r3, r3, #131072 @ 0x20000 800f6a0: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; 800f6a2: 4a04 ldr r2, [pc, #16] @ (800f6b4 <__NVIC_SetPriorityGrouping+0x44>) 800f6a4: 68bb ldr r3, [r7, #8] 800f6a6: 60d3 str r3, [r2, #12] } 800f6a8: bf00 nop 800f6aa: 3714 adds r7, #20 800f6ac: 46bd mov sp, r7 800f6ae: bc80 pop {r7} 800f6b0: 4770 bx lr 800f6b2: bf00 nop 800f6b4: e000ed00 .word 0xe000ed00 0800f6b8 <__NVIC_GetPriorityGrouping>: { 800f6b8: b480 push {r7} 800f6ba: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); 800f6bc: 4b04 ldr r3, [pc, #16] @ (800f6d0 <__NVIC_GetPriorityGrouping+0x18>) 800f6be: 68db ldr r3, [r3, #12] 800f6c0: 0a1b lsrs r3, r3, #8 800f6c2: f003 0307 and.w r3, r3, #7 } 800f6c6: 4618 mov r0, r3 800f6c8: 46bd mov sp, r7 800f6ca: bc80 pop {r7} 800f6cc: 4770 bx lr 800f6ce: bf00 nop 800f6d0: e000ed00 .word 0xe000ed00 0800f6d4 <__NVIC_EnableIRQ>: { 800f6d4: b480 push {r7} 800f6d6: b083 sub sp, #12 800f6d8: af00 add r7, sp, #0 800f6da: 4603 mov r3, r0 800f6dc: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800f6de: f997 3007 ldrsb.w r3, [r7, #7] 800f6e2: 2b00 cmp r3, #0 800f6e4: db0b blt.n 800f6fe <__NVIC_EnableIRQ+0x2a> NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); 800f6e6: 79fb ldrb r3, [r7, #7] 800f6e8: f003 021f and.w r2, r3, #31 800f6ec: 4906 ldr r1, [pc, #24] @ (800f708 <__NVIC_EnableIRQ+0x34>) 800f6ee: f997 3007 ldrsb.w r3, [r7, #7] 800f6f2: 095b lsrs r3, r3, #5 800f6f4: 2001 movs r0, #1 800f6f6: fa00 f202 lsl.w r2, r0, r2 800f6fa: f841 2023 str.w r2, [r1, r3, lsl #2] } 800f6fe: bf00 nop 800f700: 370c adds r7, #12 800f702: 46bd mov sp, r7 800f704: bc80 pop {r7} 800f706: 4770 bx lr 800f708: e000e100 .word 0xe000e100 0800f70c <__NVIC_DisableIRQ>: { 800f70c: b480 push {r7} 800f70e: b083 sub sp, #12 800f710: af00 add r7, sp, #0 800f712: 4603 mov r3, r0 800f714: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800f716: f997 3007 ldrsb.w r3, [r7, #7] 800f71a: 2b00 cmp r3, #0 800f71c: db12 blt.n 800f744 <__NVIC_DisableIRQ+0x38> NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); 800f71e: 79fb ldrb r3, [r7, #7] 800f720: f003 021f and.w r2, r3, #31 800f724: 490a ldr r1, [pc, #40] @ (800f750 <__NVIC_DisableIRQ+0x44>) 800f726: f997 3007 ldrsb.w r3, [r7, #7] 800f72a: 095b lsrs r3, r3, #5 800f72c: 2001 movs r0, #1 800f72e: fa00 f202 lsl.w r2, r0, r2 800f732: 3320 adds r3, #32 800f734: f841 2023 str.w r2, [r1, r3, lsl #2] __ASM volatile ("dsb 0xF":::"memory"); 800f738: f3bf 8f4f dsb sy } 800f73c: bf00 nop __ASM volatile ("isb 0xF":::"memory"); 800f73e: f3bf 8f6f isb sy } 800f742: bf00 nop } 800f744: bf00 nop 800f746: 370c adds r7, #12 800f748: 46bd mov sp, r7 800f74a: bc80 pop {r7} 800f74c: 4770 bx lr 800f74e: bf00 nop 800f750: e000e100 .word 0xe000e100 0800f754 <__NVIC_SetPriority>: { 800f754: b480 push {r7} 800f756: b083 sub sp, #12 800f758: af00 add r7, sp, #0 800f75a: 4603 mov r3, r0 800f75c: 6039 str r1, [r7, #0] 800f75e: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800f760: f997 3007 ldrsb.w r3, [r7, #7] 800f764: 2b00 cmp r3, #0 800f766: db0a blt.n 800f77e <__NVIC_SetPriority+0x2a> NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 800f768: 683b ldr r3, [r7, #0] 800f76a: b2da uxtb r2, r3 800f76c: 490c ldr r1, [pc, #48] @ (800f7a0 <__NVIC_SetPriority+0x4c>) 800f76e: f997 3007 ldrsb.w r3, [r7, #7] 800f772: 0112 lsls r2, r2, #4 800f774: b2d2 uxtb r2, r2 800f776: 440b add r3, r1 800f778: f883 2300 strb.w r2, [r3, #768] @ 0x300 } 800f77c: e00a b.n 800f794 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 800f77e: 683b ldr r3, [r7, #0] 800f780: b2da uxtb r2, r3 800f782: 4908 ldr r1, [pc, #32] @ (800f7a4 <__NVIC_SetPriority+0x50>) 800f784: 79fb ldrb r3, [r7, #7] 800f786: f003 030f and.w r3, r3, #15 800f78a: 3b04 subs r3, #4 800f78c: 0112 lsls r2, r2, #4 800f78e: b2d2 uxtb r2, r2 800f790: 440b add r3, r1 800f792: 761a strb r2, [r3, #24] } 800f794: bf00 nop 800f796: 370c adds r7, #12 800f798: 46bd mov sp, r7 800f79a: bc80 pop {r7} 800f79c: 4770 bx lr 800f79e: bf00 nop 800f7a0: e000e100 .word 0xe000e100 800f7a4: e000ed00 .word 0xe000ed00 0800f7a8 : { 800f7a8: b480 push {r7} 800f7aa: b089 sub sp, #36 @ 0x24 800f7ac: af00 add r7, sp, #0 800f7ae: 60f8 str r0, [r7, #12] 800f7b0: 60b9 str r1, [r7, #8] 800f7b2: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 800f7b4: 68fb ldr r3, [r7, #12] 800f7b6: f003 0307 and.w r3, r3, #7 800f7ba: 61fb str r3, [r7, #28] PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); 800f7bc: 69fb ldr r3, [r7, #28] 800f7be: f1c3 0307 rsb r3, r3, #7 800f7c2: 2b04 cmp r3, #4 800f7c4: bf28 it cs 800f7c6: 2304 movcs r3, #4 800f7c8: 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)); 800f7ca: 69fb ldr r3, [r7, #28] 800f7cc: 3304 adds r3, #4 800f7ce: 2b06 cmp r3, #6 800f7d0: d902 bls.n 800f7d8 800f7d2: 69fb ldr r3, [r7, #28] 800f7d4: 3b03 subs r3, #3 800f7d6: e000 b.n 800f7da 800f7d8: 2300 movs r3, #0 800f7da: 617b str r3, [r7, #20] ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 800f7dc: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 800f7e0: 69bb ldr r3, [r7, #24] 800f7e2: fa02 f303 lsl.w r3, r2, r3 800f7e6: 43da mvns r2, r3 800f7e8: 68bb ldr r3, [r7, #8] 800f7ea: 401a ands r2, r3 800f7ec: 697b ldr r3, [r7, #20] 800f7ee: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) 800f7f0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff 800f7f4: 697b ldr r3, [r7, #20] 800f7f6: fa01 f303 lsl.w r3, r1, r3 800f7fa: 43d9 mvns r1, r3 800f7fc: 687b ldr r3, [r7, #4] 800f7fe: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 800f800: 4313 orrs r3, r2 } 800f802: 4618 mov r0, r3 800f804: 3724 adds r7, #36 @ 0x24 800f806: 46bd mov sp, r7 800f808: bc80 pop {r7} 800f80a: 4770 bx lr 0800f80c : \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) { 800f80c: b580 push {r7, lr} 800f80e: b082 sub sp, #8 800f810: af00 add r7, sp, #0 800f812: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) 800f814: 687b ldr r3, [r7, #4] 800f816: 3b01 subs r3, #1 800f818: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 800f81c: d301 bcc.n 800f822 { return (1UL); /* Reload value impossible */ 800f81e: 2301 movs r3, #1 800f820: e00f b.n 800f842 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ 800f822: 4a0a ldr r2, [pc, #40] @ (800f84c ) 800f824: 687b ldr r3, [r7, #4] 800f826: 3b01 subs r3, #1 800f828: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ 800f82a: 210f movs r1, #15 800f82c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 800f830: f7ff ff90 bl 800f754 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ 800f834: 4b05 ldr r3, [pc, #20] @ (800f84c ) 800f836: 2200 movs r2, #0 800f838: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | 800f83a: 4b04 ldr r3, [pc, #16] @ (800f84c ) 800f83c: 2207 movs r2, #7 800f83e: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ 800f840: 2300 movs r3, #0 } 800f842: 4618 mov r0, r3 800f844: 3708 adds r7, #8 800f846: 46bd mov sp, r7 800f848: bd80 pop {r7, pc} 800f84a: bf00 nop 800f84c: e000e010 .word 0xe000e010 0800f850 : * @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) { 800f850: b580 push {r7, lr} 800f852: b082 sub sp, #8 800f854: af00 add r7, sp, #0 800f856: 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); 800f858: 6878 ldr r0, [r7, #4] 800f85a: f7ff ff09 bl 800f670 <__NVIC_SetPriorityGrouping> } 800f85e: bf00 nop 800f860: 3708 adds r7, #8 800f862: 46bd mov sp, r7 800f864: bd80 pop {r7, pc} 0800f866 : * 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) { 800f866: b580 push {r7, lr} 800f868: b086 sub sp, #24 800f86a: af00 add r7, sp, #0 800f86c: 4603 mov r3, r0 800f86e: 60b9 str r1, [r7, #8] 800f870: 607a str r2, [r7, #4] 800f872: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; 800f874: 2300 movs r3, #0 800f876: 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(); 800f878: f7ff ff1e bl 800f6b8 <__NVIC_GetPriorityGrouping> 800f87c: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); 800f87e: 687a ldr r2, [r7, #4] 800f880: 68b9 ldr r1, [r7, #8] 800f882: 6978 ldr r0, [r7, #20] 800f884: f7ff ff90 bl 800f7a8 800f888: 4602 mov r2, r0 800f88a: f997 300f ldrsb.w r3, [r7, #15] 800f88e: 4611 mov r1, r2 800f890: 4618 mov r0, r3 800f892: f7ff ff5f bl 800f754 <__NVIC_SetPriority> } 800f896: bf00 nop 800f898: 3718 adds r7, #24 800f89a: 46bd mov sp, r7 800f89c: bd80 pop {r7, pc} 0800f89e : * 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) { 800f89e: b580 push {r7, lr} 800f8a0: b082 sub sp, #8 800f8a2: af00 add r7, sp, #0 800f8a4: 4603 mov r3, r0 800f8a6: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); 800f8a8: f997 3007 ldrsb.w r3, [r7, #7] 800f8ac: 4618 mov r0, r3 800f8ae: f7ff ff11 bl 800f6d4 <__NVIC_EnableIRQ> } 800f8b2: bf00 nop 800f8b4: 3708 adds r7, #8 800f8b6: 46bd mov sp, r7 800f8b8: bd80 pop {r7, pc} 0800f8ba : * 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) { 800f8ba: b580 push {r7, lr} 800f8bc: b082 sub sp, #8 800f8be: af00 add r7, sp, #0 800f8c0: 4603 mov r3, r0 800f8c2: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Disable interrupt */ NVIC_DisableIRQ(IRQn); 800f8c4: f997 3007 ldrsb.w r3, [r7, #7] 800f8c8: 4618 mov r0, r3 800f8ca: f7ff ff1f bl 800f70c <__NVIC_DisableIRQ> } 800f8ce: bf00 nop 800f8d0: 3708 adds r7, #8 800f8d2: 46bd mov sp, r7 800f8d4: bd80 pop {r7, pc} 0800f8d6 : * @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) { 800f8d6: b580 push {r7, lr} 800f8d8: b082 sub sp, #8 800f8da: af00 add r7, sp, #0 800f8dc: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); 800f8de: 6878 ldr r0, [r7, #4] 800f8e0: f7ff ff94 bl 800f80c 800f8e4: 4603 mov r3, r0 } 800f8e6: 4618 mov r0, r3 800f8e8: 3708 adds r7, #8 800f8ea: 46bd mov sp, r7 800f8ec: bd80 pop {r7, pc} 0800f8ee : * 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) { 800f8ee: b580 push {r7, lr} 800f8f0: b082 sub sp, #8 800f8f2: af00 add r7, sp, #0 800f8f4: 6078 str r0, [r7, #4] /* Check the CRC handle allocation */ if (hcrc == NULL) 800f8f6: 687b ldr r3, [r7, #4] 800f8f8: 2b00 cmp r3, #0 800f8fa: d101 bne.n 800f900 { return HAL_ERROR; 800f8fc: 2301 movs r3, #1 800f8fe: e00e b.n 800f91e } /* Check the parameters */ assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance)); if (hcrc->State == HAL_CRC_STATE_RESET) 800f900: 687b ldr r3, [r7, #4] 800f902: 795b ldrb r3, [r3, #5] 800f904: b2db uxtb r3, r3 800f906: 2b00 cmp r3, #0 800f908: d105 bne.n 800f916 { /* Allocate lock resource and initialize it */ hcrc->Lock = HAL_UNLOCKED; 800f90a: 687b ldr r3, [r7, #4] 800f90c: 2200 movs r2, #0 800f90e: 711a strb r2, [r3, #4] /* Init the low level hardware */ HAL_CRC_MspInit(hcrc); 800f910: 6878 ldr r0, [r7, #4] 800f912: f7fa fd03 bl 800a31c } /* Change CRC peripheral state */ hcrc->State = HAL_CRC_STATE_READY; 800f916: 687b ldr r3, [r7, #4] 800f918: 2201 movs r2, #1 800f91a: 715a strb r2, [r3, #5] /* Return function status */ return HAL_OK; 800f91c: 2300 movs r3, #0 } 800f91e: 4618 mov r0, r3 800f920: 3708 adds r7, #8 800f922: 46bd mov sp, r7 800f924: bd80 pop {r7, pc} ... 0800f928 : * @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) { 800f928: b480 push {r7} 800f92a: b085 sub sp, #20 800f92c: af00 add r7, sp, #0 800f92e: 6078 str r0, [r7, #4] uint32_t tmp = 0U; 800f930: 2300 movs r3, #0 800f932: 60fb str r3, [r7, #12] /* Check the DMA handle allocation */ if(hdma == NULL) 800f934: 687b ldr r3, [r7, #4] 800f936: 2b00 cmp r3, #0 800f938: d101 bne.n 800f93e { return HAL_ERROR; 800f93a: 2301 movs r3, #1 800f93c: e059 b.n 800f9f2 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)) 800f93e: 687b ldr r3, [r7, #4] 800f940: 681b ldr r3, [r3, #0] 800f942: 461a mov r2, r3 800f944: 4b2d ldr r3, [pc, #180] @ (800f9fc ) 800f946: 429a cmp r2, r3 800f948: d80f bhi.n 800f96a { /* DMA1 */ hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2; 800f94a: 687b ldr r3, [r7, #4] 800f94c: 681b ldr r3, [r3, #0] 800f94e: 461a mov r2, r3 800f950: 4b2b ldr r3, [pc, #172] @ (800fa00 ) 800f952: 4413 add r3, r2 800f954: 4a2b ldr r2, [pc, #172] @ (800fa04 ) 800f956: fba2 2303 umull r2, r3, r2, r3 800f95a: 091b lsrs r3, r3, #4 800f95c: 009a lsls r2, r3, #2 800f95e: 687b ldr r3, [r7, #4] 800f960: 641a str r2, [r3, #64] @ 0x40 hdma->DmaBaseAddress = DMA1; 800f962: 687b ldr r3, [r7, #4] 800f964: 4a28 ldr r2, [pc, #160] @ (800fa08 ) 800f966: 63da str r2, [r3, #60] @ 0x3c 800f968: e00e b.n 800f988 } else { /* DMA2 */ hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2; 800f96a: 687b ldr r3, [r7, #4] 800f96c: 681b ldr r3, [r3, #0] 800f96e: 461a mov r2, r3 800f970: 4b26 ldr r3, [pc, #152] @ (800fa0c ) 800f972: 4413 add r3, r2 800f974: 4a23 ldr r2, [pc, #140] @ (800fa04 ) 800f976: fba2 2303 umull r2, r3, r2, r3 800f97a: 091b lsrs r3, r3, #4 800f97c: 009a lsls r2, r3, #2 800f97e: 687b ldr r3, [r7, #4] 800f980: 641a str r2, [r3, #64] @ 0x40 hdma->DmaBaseAddress = DMA2; 800f982: 687b ldr r3, [r7, #4] 800f984: 4a22 ldr r2, [pc, #136] @ (800fa10 ) 800f986: 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; 800f988: 687b ldr r3, [r7, #4] 800f98a: 2202 movs r2, #2 800f98c: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Get the CR register value */ tmp = hdma->Instance->CCR; 800f990: 687b ldr r3, [r7, #4] 800f992: 681b ldr r3, [r3, #0] 800f994: 681b ldr r3, [r3, #0] 800f996: 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 | \ 800f998: 68fb ldr r3, [r7, #12] 800f99a: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 800f99e: f023 0330 bic.w r3, r3, #48 @ 0x30 800f9a2: 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 | 800f9a4: 687b ldr r3, [r7, #4] 800f9a6: 685a ldr r2, [r3, #4] hdma->Init.PeriphInc | hdma->Init.MemInc | 800f9a8: 687b ldr r3, [r7, #4] 800f9aa: 689b ldr r3, [r3, #8] tmp |= hdma->Init.Direction | 800f9ac: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | 800f9ae: 687b ldr r3, [r7, #4] 800f9b0: 68db ldr r3, [r3, #12] 800f9b2: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800f9b4: 687b ldr r3, [r7, #4] 800f9b6: 691b ldr r3, [r3, #16] hdma->Init.PeriphInc | hdma->Init.MemInc | 800f9b8: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800f9ba: 687b ldr r3, [r7, #4] 800f9bc: 695b ldr r3, [r3, #20] 800f9be: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; 800f9c0: 687b ldr r3, [r7, #4] 800f9c2: 699b ldr r3, [r3, #24] hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800f9c4: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; 800f9c6: 687b ldr r3, [r7, #4] 800f9c8: 69db ldr r3, [r3, #28] 800f9ca: 4313 orrs r3, r2 tmp |= hdma->Init.Direction | 800f9cc: 68fa ldr r2, [r7, #12] 800f9ce: 4313 orrs r3, r2 800f9d0: 60fb str r3, [r7, #12] /* Write to DMA Channel CR register */ hdma->Instance->CCR = tmp; 800f9d2: 687b ldr r3, [r7, #4] 800f9d4: 681b ldr r3, [r3, #0] 800f9d6: 68fa ldr r2, [r7, #12] 800f9d8: 601a str r2, [r3, #0] /* Initialise the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; 800f9da: 687b ldr r3, [r7, #4] 800f9dc: 2200 movs r2, #0 800f9de: 639a str r2, [r3, #56] @ 0x38 /* Initialize the DMA state*/ hdma->State = HAL_DMA_STATE_READY; 800f9e0: 687b ldr r3, [r7, #4] 800f9e2: 2201 movs r2, #1 800f9e4: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Allocate lock resource and initialize it */ hdma->Lock = HAL_UNLOCKED; 800f9e8: 687b ldr r3, [r7, #4] 800f9ea: 2200 movs r2, #0 800f9ec: f883 2020 strb.w r2, [r3, #32] return HAL_OK; 800f9f0: 2300 movs r3, #0 } 800f9f2: 4618 mov r0, r3 800f9f4: 3714 adds r7, #20 800f9f6: 46bd mov sp, r7 800f9f8: bc80 pop {r7} 800f9fa: 4770 bx lr 800f9fc: 40020407 .word 0x40020407 800fa00: bffdfff8 .word 0xbffdfff8 800fa04: cccccccd .word 0xcccccccd 800fa08: 40020000 .word 0x40020000 800fa0c: bffdfbf8 .word 0xbffdfbf8 800fa10: 40020400 .word 0x40020400 0800fa14 : * @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) { 800fa14: b580 push {r7, lr} 800fa16: b086 sub sp, #24 800fa18: af00 add r7, sp, #0 800fa1a: 60f8 str r0, [r7, #12] 800fa1c: 60b9 str r1, [r7, #8] 800fa1e: 607a str r2, [r7, #4] 800fa20: 603b str r3, [r7, #0] HAL_StatusTypeDef status = HAL_OK; 800fa22: 2300 movs r3, #0 800fa24: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); 800fa26: 68fb ldr r3, [r7, #12] 800fa28: f893 3020 ldrb.w r3, [r3, #32] 800fa2c: 2b01 cmp r3, #1 800fa2e: d101 bne.n 800fa34 800fa30: 2302 movs r3, #2 800fa32: e04b b.n 800facc 800fa34: 68fb ldr r3, [r7, #12] 800fa36: 2201 movs r2, #1 800fa38: f883 2020 strb.w r2, [r3, #32] if(HAL_DMA_STATE_READY == hdma->State) 800fa3c: 68fb ldr r3, [r7, #12] 800fa3e: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800fa42: b2db uxtb r3, r3 800fa44: 2b01 cmp r3, #1 800fa46: d13a bne.n 800fabe { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; 800fa48: 68fb ldr r3, [r7, #12] 800fa4a: 2202 movs r2, #2 800fa4c: f883 2021 strb.w r2, [r3, #33] @ 0x21 hdma->ErrorCode = HAL_DMA_ERROR_NONE; 800fa50: 68fb ldr r3, [r7, #12] 800fa52: 2200 movs r2, #0 800fa54: 639a str r2, [r3, #56] @ 0x38 /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); 800fa56: 68fb ldr r3, [r7, #12] 800fa58: 681b ldr r3, [r3, #0] 800fa5a: 681a ldr r2, [r3, #0] 800fa5c: 68fb ldr r3, [r7, #12] 800fa5e: 681b ldr r3, [r3, #0] 800fa60: f022 0201 bic.w r2, r2, #1 800fa64: 601a str r2, [r3, #0] /* Configure the source, destination address and the data length & clear flags*/ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); 800fa66: 683b ldr r3, [r7, #0] 800fa68: 687a ldr r2, [r7, #4] 800fa6a: 68b9 ldr r1, [r7, #8] 800fa6c: 68f8 ldr r0, [r7, #12] 800fa6e: f000 fbb1 bl 80101d4 /* Enable the transfer complete interrupt */ /* Enable the transfer Error interrupt */ if(NULL != hdma->XferHalfCpltCallback) 800fa72: 68fb ldr r3, [r7, #12] 800fa74: 6adb ldr r3, [r3, #44] @ 0x2c 800fa76: 2b00 cmp r3, #0 800fa78: d008 beq.n 800fa8c { /* Enable the Half transfer complete interrupt as well */ __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800fa7a: 68fb ldr r3, [r7, #12] 800fa7c: 681b ldr r3, [r3, #0] 800fa7e: 681a ldr r2, [r3, #0] 800fa80: 68fb ldr r3, [r7, #12] 800fa82: 681b ldr r3, [r3, #0] 800fa84: f042 020e orr.w r2, r2, #14 800fa88: 601a str r2, [r3, #0] 800fa8a: e00f b.n 800faac } else { __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); 800fa8c: 68fb ldr r3, [r7, #12] 800fa8e: 681b ldr r3, [r3, #0] 800fa90: 681a ldr r2, [r3, #0] 800fa92: 68fb ldr r3, [r7, #12] 800fa94: 681b ldr r3, [r3, #0] 800fa96: f022 0204 bic.w r2, r2, #4 800fa9a: 601a str r2, [r3, #0] __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE)); 800fa9c: 68fb ldr r3, [r7, #12] 800fa9e: 681b ldr r3, [r3, #0] 800faa0: 681a ldr r2, [r3, #0] 800faa2: 68fb ldr r3, [r7, #12] 800faa4: 681b ldr r3, [r3, #0] 800faa6: f042 020a orr.w r2, r2, #10 800faaa: 601a str r2, [r3, #0] } /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); 800faac: 68fb ldr r3, [r7, #12] 800faae: 681b ldr r3, [r3, #0] 800fab0: 681a ldr r2, [r3, #0] 800fab2: 68fb ldr r3, [r7, #12] 800fab4: 681b ldr r3, [r3, #0] 800fab6: f042 0201 orr.w r2, r2, #1 800faba: 601a str r2, [r3, #0] 800fabc: e005 b.n 800faca } else { /* Process Unlocked */ __HAL_UNLOCK(hdma); 800fabe: 68fb ldr r3, [r7, #12] 800fac0: 2200 movs r2, #0 800fac2: f883 2020 strb.w r2, [r3, #32] /* Remain BUSY */ status = HAL_BUSY; 800fac6: 2302 movs r3, #2 800fac8: 75fb strb r3, [r7, #23] } return status; 800faca: 7dfb ldrb r3, [r7, #23] } 800facc: 4618 mov r0, r3 800face: 3718 adds r7, #24 800fad0: 46bd mov sp, r7 800fad2: bd80 pop {r7, pc} 0800fad4 : * @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) { 800fad4: b480 push {r7} 800fad6: b085 sub sp, #20 800fad8: af00 add r7, sp, #0 800fada: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 800fadc: 2300 movs r3, #0 800fade: 73fb strb r3, [r7, #15] if(hdma->State != HAL_DMA_STATE_BUSY) 800fae0: 687b ldr r3, [r7, #4] 800fae2: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800fae6: b2db uxtb r3, r3 800fae8: 2b02 cmp r3, #2 800faea: d008 beq.n 800fafe { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; 800faec: 687b ldr r3, [r7, #4] 800faee: 2204 movs r2, #4 800faf0: 639a str r2, [r3, #56] @ 0x38 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800faf2: 687b ldr r3, [r7, #4] 800faf4: 2200 movs r2, #0 800faf6: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800fafa: 2301 movs r3, #1 800fafc: e020 b.n 800fb40 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800fafe: 687b ldr r3, [r7, #4] 800fb00: 681b ldr r3, [r3, #0] 800fb02: 681a ldr r2, [r3, #0] 800fb04: 687b ldr r3, [r7, #4] 800fb06: 681b ldr r3, [r3, #0] 800fb08: f022 020e bic.w r2, r2, #14 800fb0c: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); 800fb0e: 687b ldr r3, [r7, #4] 800fb10: 681b ldr r3, [r3, #0] 800fb12: 681a ldr r2, [r3, #0] 800fb14: 687b ldr r3, [r7, #4] 800fb16: 681b ldr r3, [r3, #0] 800fb18: f022 0201 bic.w r2, r2, #1 800fb1c: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 800fb1e: 687b ldr r3, [r7, #4] 800fb20: 6c1a ldr r2, [r3, #64] @ 0x40 800fb22: 687b ldr r3, [r7, #4] 800fb24: 6bdb ldr r3, [r3, #60] @ 0x3c 800fb26: 2101 movs r1, #1 800fb28: fa01 f202 lsl.w r2, r1, r2 800fb2c: 605a str r2, [r3, #4] } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 800fb2e: 687b ldr r3, [r7, #4] 800fb30: 2201 movs r2, #1 800fb32: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800fb36: 687b ldr r3, [r7, #4] 800fb38: 2200 movs r2, #0 800fb3a: f883 2020 strb.w r2, [r3, #32] return status; 800fb3e: 7bfb ldrb r3, [r7, #15] } 800fb40: 4618 mov r0, r3 800fb42: 3714 adds r7, #20 800fb44: 46bd mov sp, r7 800fb46: bc80 pop {r7} 800fb48: 4770 bx lr ... 0800fb4c : * @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) { 800fb4c: b580 push {r7, lr} 800fb4e: b084 sub sp, #16 800fb50: af00 add r7, sp, #0 800fb52: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 800fb54: 2300 movs r3, #0 800fb56: 73fb strb r3, [r7, #15] if(HAL_DMA_STATE_BUSY != hdma->State) 800fb58: 687b ldr r3, [r7, #4] 800fb5a: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800fb5e: b2db uxtb r3, r3 800fb60: 2b02 cmp r3, #2 800fb62: d005 beq.n 800fb70 { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; 800fb64: 687b ldr r3, [r7, #4] 800fb66: 2204 movs r2, #4 800fb68: 639a str r2, [r3, #56] @ 0x38 status = HAL_ERROR; 800fb6a: 2301 movs r3, #1 800fb6c: 73fb strb r3, [r7, #15] 800fb6e: e0d6 b.n 800fd1e } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800fb70: 687b ldr r3, [r7, #4] 800fb72: 681b ldr r3, [r3, #0] 800fb74: 681a ldr r2, [r3, #0] 800fb76: 687b ldr r3, [r7, #4] 800fb78: 681b ldr r3, [r3, #0] 800fb7a: f022 020e bic.w r2, r2, #14 800fb7e: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); 800fb80: 687b ldr r3, [r7, #4] 800fb82: 681b ldr r3, [r3, #0] 800fb84: 681a ldr r2, [r3, #0] 800fb86: 687b ldr r3, [r7, #4] 800fb88: 681b ldr r3, [r3, #0] 800fb8a: f022 0201 bic.w r2, r2, #1 800fb8e: 601a str r2, [r3, #0] /* Clear all flags */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma)); 800fb90: 687b ldr r3, [r7, #4] 800fb92: 681b ldr r3, [r3, #0] 800fb94: 461a mov r2, r3 800fb96: 4b64 ldr r3, [pc, #400] @ (800fd28 ) 800fb98: 429a cmp r2, r3 800fb9a: d958 bls.n 800fc4e 800fb9c: 687b ldr r3, [r7, #4] 800fb9e: 681b ldr r3, [r3, #0] 800fba0: 4a62 ldr r2, [pc, #392] @ (800fd2c ) 800fba2: 4293 cmp r3, r2 800fba4: d04f beq.n 800fc46 800fba6: 687b ldr r3, [r7, #4] 800fba8: 681b ldr r3, [r3, #0] 800fbaa: 4a61 ldr r2, [pc, #388] @ (800fd30 ) 800fbac: 4293 cmp r3, r2 800fbae: d048 beq.n 800fc42 800fbb0: 687b ldr r3, [r7, #4] 800fbb2: 681b ldr r3, [r3, #0] 800fbb4: 4a5f ldr r2, [pc, #380] @ (800fd34 ) 800fbb6: 4293 cmp r3, r2 800fbb8: d040 beq.n 800fc3c 800fbba: 687b ldr r3, [r7, #4] 800fbbc: 681b ldr r3, [r3, #0] 800fbbe: 4a5e ldr r2, [pc, #376] @ (800fd38 ) 800fbc0: 4293 cmp r3, r2 800fbc2: d038 beq.n 800fc36 800fbc4: 687b ldr r3, [r7, #4] 800fbc6: 681b ldr r3, [r3, #0] 800fbc8: 4a5c ldr r2, [pc, #368] @ (800fd3c ) 800fbca: 4293 cmp r3, r2 800fbcc: d030 beq.n 800fc30 800fbce: 687b ldr r3, [r7, #4] 800fbd0: 681b ldr r3, [r3, #0] 800fbd2: 4a5b ldr r2, [pc, #364] @ (800fd40 ) 800fbd4: 4293 cmp r3, r2 800fbd6: d028 beq.n 800fc2a 800fbd8: 687b ldr r3, [r7, #4] 800fbda: 681b ldr r3, [r3, #0] 800fbdc: 4a52 ldr r2, [pc, #328] @ (800fd28 ) 800fbde: 4293 cmp r3, r2 800fbe0: d020 beq.n 800fc24 800fbe2: 687b ldr r3, [r7, #4] 800fbe4: 681b ldr r3, [r3, #0] 800fbe6: 4a57 ldr r2, [pc, #348] @ (800fd44 ) 800fbe8: 4293 cmp r3, r2 800fbea: d019 beq.n 800fc20 800fbec: 687b ldr r3, [r7, #4] 800fbee: 681b ldr r3, [r3, #0] 800fbf0: 4a55 ldr r2, [pc, #340] @ (800fd48 ) 800fbf2: 4293 cmp r3, r2 800fbf4: d012 beq.n 800fc1c 800fbf6: 687b ldr r3, [r7, #4] 800fbf8: 681b ldr r3, [r3, #0] 800fbfa: 4a54 ldr r2, [pc, #336] @ (800fd4c ) 800fbfc: 4293 cmp r3, r2 800fbfe: d00a beq.n 800fc16 800fc00: 687b ldr r3, [r7, #4] 800fc02: 681b ldr r3, [r3, #0] 800fc04: 4a52 ldr r2, [pc, #328] @ (800fd50 ) 800fc06: 4293 cmp r3, r2 800fc08: d102 bne.n 800fc10 800fc0a: f44f 5380 mov.w r3, #4096 @ 0x1000 800fc0e: e01b b.n 800fc48 800fc10: f44f 3380 mov.w r3, #65536 @ 0x10000 800fc14: e018 b.n 800fc48 800fc16: f44f 7380 mov.w r3, #256 @ 0x100 800fc1a: e015 b.n 800fc48 800fc1c: 2310 movs r3, #16 800fc1e: e013 b.n 800fc48 800fc20: 2301 movs r3, #1 800fc22: e011 b.n 800fc48 800fc24: f04f 7380 mov.w r3, #16777216 @ 0x1000000 800fc28: e00e b.n 800fc48 800fc2a: f44f 1380 mov.w r3, #1048576 @ 0x100000 800fc2e: e00b b.n 800fc48 800fc30: f44f 3380 mov.w r3, #65536 @ 0x10000 800fc34: e008 b.n 800fc48 800fc36: f44f 5380 mov.w r3, #4096 @ 0x1000 800fc3a: e005 b.n 800fc48 800fc3c: f44f 7380 mov.w r3, #256 @ 0x100 800fc40: e002 b.n 800fc48 800fc42: 2310 movs r3, #16 800fc44: e000 b.n 800fc48 800fc46: 2301 movs r3, #1 800fc48: 4a42 ldr r2, [pc, #264] @ (800fd54 ) 800fc4a: 6053 str r3, [r2, #4] 800fc4c: e057 b.n 800fcfe 800fc4e: 687b ldr r3, [r7, #4] 800fc50: 681b ldr r3, [r3, #0] 800fc52: 4a36 ldr r2, [pc, #216] @ (800fd2c ) 800fc54: 4293 cmp r3, r2 800fc56: d04f beq.n 800fcf8 800fc58: 687b ldr r3, [r7, #4] 800fc5a: 681b ldr r3, [r3, #0] 800fc5c: 4a34 ldr r2, [pc, #208] @ (800fd30 ) 800fc5e: 4293 cmp r3, r2 800fc60: d048 beq.n 800fcf4 800fc62: 687b ldr r3, [r7, #4] 800fc64: 681b ldr r3, [r3, #0] 800fc66: 4a33 ldr r2, [pc, #204] @ (800fd34 ) 800fc68: 4293 cmp r3, r2 800fc6a: d040 beq.n 800fcee 800fc6c: 687b ldr r3, [r7, #4] 800fc6e: 681b ldr r3, [r3, #0] 800fc70: 4a31 ldr r2, [pc, #196] @ (800fd38 ) 800fc72: 4293 cmp r3, r2 800fc74: d038 beq.n 800fce8 800fc76: 687b ldr r3, [r7, #4] 800fc78: 681b ldr r3, [r3, #0] 800fc7a: 4a30 ldr r2, [pc, #192] @ (800fd3c ) 800fc7c: 4293 cmp r3, r2 800fc7e: d030 beq.n 800fce2 800fc80: 687b ldr r3, [r7, #4] 800fc82: 681b ldr r3, [r3, #0] 800fc84: 4a2e ldr r2, [pc, #184] @ (800fd40 ) 800fc86: 4293 cmp r3, r2 800fc88: d028 beq.n 800fcdc 800fc8a: 687b ldr r3, [r7, #4] 800fc8c: 681b ldr r3, [r3, #0] 800fc8e: 4a26 ldr r2, [pc, #152] @ (800fd28 ) 800fc90: 4293 cmp r3, r2 800fc92: d020 beq.n 800fcd6 800fc94: 687b ldr r3, [r7, #4] 800fc96: 681b ldr r3, [r3, #0] 800fc98: 4a2a ldr r2, [pc, #168] @ (800fd44 ) 800fc9a: 4293 cmp r3, r2 800fc9c: d019 beq.n 800fcd2 800fc9e: 687b ldr r3, [r7, #4] 800fca0: 681b ldr r3, [r3, #0] 800fca2: 4a29 ldr r2, [pc, #164] @ (800fd48 ) 800fca4: 4293 cmp r3, r2 800fca6: d012 beq.n 800fcce 800fca8: 687b ldr r3, [r7, #4] 800fcaa: 681b ldr r3, [r3, #0] 800fcac: 4a27 ldr r2, [pc, #156] @ (800fd4c ) 800fcae: 4293 cmp r3, r2 800fcb0: d00a beq.n 800fcc8 800fcb2: 687b ldr r3, [r7, #4] 800fcb4: 681b ldr r3, [r3, #0] 800fcb6: 4a26 ldr r2, [pc, #152] @ (800fd50 ) 800fcb8: 4293 cmp r3, r2 800fcba: d102 bne.n 800fcc2 800fcbc: f44f 5380 mov.w r3, #4096 @ 0x1000 800fcc0: e01b b.n 800fcfa 800fcc2: f44f 3380 mov.w r3, #65536 @ 0x10000 800fcc6: e018 b.n 800fcfa 800fcc8: f44f 7380 mov.w r3, #256 @ 0x100 800fccc: e015 b.n 800fcfa 800fcce: 2310 movs r3, #16 800fcd0: e013 b.n 800fcfa 800fcd2: 2301 movs r3, #1 800fcd4: e011 b.n 800fcfa 800fcd6: f04f 7380 mov.w r3, #16777216 @ 0x1000000 800fcda: e00e b.n 800fcfa 800fcdc: f44f 1380 mov.w r3, #1048576 @ 0x100000 800fce0: e00b b.n 800fcfa 800fce2: f44f 3380 mov.w r3, #65536 @ 0x10000 800fce6: e008 b.n 800fcfa 800fce8: f44f 5380 mov.w r3, #4096 @ 0x1000 800fcec: e005 b.n 800fcfa 800fcee: f44f 7380 mov.w r3, #256 @ 0x100 800fcf2: e002 b.n 800fcfa 800fcf4: 2310 movs r3, #16 800fcf6: e000 b.n 800fcfa 800fcf8: 2301 movs r3, #1 800fcfa: 4a17 ldr r2, [pc, #92] @ (800fd58 ) 800fcfc: 6053 str r3, [r2, #4] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 800fcfe: 687b ldr r3, [r7, #4] 800fd00: 2201 movs r2, #1 800fd02: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800fd06: 687b ldr r3, [r7, #4] 800fd08: 2200 movs r2, #0 800fd0a: f883 2020 strb.w r2, [r3, #32] /* Call User Abort callback */ if(hdma->XferAbortCallback != NULL) 800fd0e: 687b ldr r3, [r7, #4] 800fd10: 6b5b ldr r3, [r3, #52] @ 0x34 800fd12: 2b00 cmp r3, #0 800fd14: d003 beq.n 800fd1e { hdma->XferAbortCallback(hdma); 800fd16: 687b ldr r3, [r7, #4] 800fd18: 6b5b ldr r3, [r3, #52] @ 0x34 800fd1a: 6878 ldr r0, [r7, #4] 800fd1c: 4798 blx r3 } } return status; 800fd1e: 7bfb ldrb r3, [r7, #15] } 800fd20: 4618 mov r0, r3 800fd22: 3710 adds r7, #16 800fd24: 46bd mov sp, r7 800fd26: bd80 pop {r7, pc} 800fd28: 40020080 .word 0x40020080 800fd2c: 40020008 .word 0x40020008 800fd30: 4002001c .word 0x4002001c 800fd34: 40020030 .word 0x40020030 800fd38: 40020044 .word 0x40020044 800fd3c: 40020058 .word 0x40020058 800fd40: 4002006c .word 0x4002006c 800fd44: 40020408 .word 0x40020408 800fd48: 4002041c .word 0x4002041c 800fd4c: 40020430 .word 0x40020430 800fd50: 40020444 .word 0x40020444 800fd54: 40020400 .word 0x40020400 800fd58: 40020000 .word 0x40020000 0800fd5c : * @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) { 800fd5c: b580 push {r7, lr} 800fd5e: b084 sub sp, #16 800fd60: af00 add r7, sp, #0 800fd62: 6078 str r0, [r7, #4] uint32_t flag_it = hdma->DmaBaseAddress->ISR; 800fd64: 687b ldr r3, [r7, #4] 800fd66: 6bdb ldr r3, [r3, #60] @ 0x3c 800fd68: 681b ldr r3, [r3, #0] 800fd6a: 60fb str r3, [r7, #12] uint32_t source_it = hdma->Instance->CCR; 800fd6c: 687b ldr r3, [r7, #4] 800fd6e: 681b ldr r3, [r3, #0] 800fd70: 681b ldr r3, [r3, #0] 800fd72: 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)) 800fd74: 687b ldr r3, [r7, #4] 800fd76: 6c1b ldr r3, [r3, #64] @ 0x40 800fd78: 2204 movs r2, #4 800fd7a: 409a lsls r2, r3 800fd7c: 68fb ldr r3, [r7, #12] 800fd7e: 4013 ands r3, r2 800fd80: 2b00 cmp r3, #0 800fd82: f000 80f1 beq.w 800ff68 800fd86: 68bb ldr r3, [r7, #8] 800fd88: f003 0304 and.w r3, r3, #4 800fd8c: 2b00 cmp r3, #0 800fd8e: f000 80eb beq.w 800ff68 { /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 800fd92: 687b ldr r3, [r7, #4] 800fd94: 681b ldr r3, [r3, #0] 800fd96: 681b ldr r3, [r3, #0] 800fd98: f003 0320 and.w r3, r3, #32 800fd9c: 2b00 cmp r3, #0 800fd9e: d107 bne.n 800fdb0 { /* Disable the half transfer interrupt */ __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); 800fda0: 687b ldr r3, [r7, #4] 800fda2: 681b ldr r3, [r3, #0] 800fda4: 681a ldr r2, [r3, #0] 800fda6: 687b ldr r3, [r7, #4] 800fda8: 681b ldr r3, [r3, #0] 800fdaa: f022 0204 bic.w r2, r2, #4 800fdae: 601a str r2, [r3, #0] } /* Clear the half transfer complete flag */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma)); 800fdb0: 687b ldr r3, [r7, #4] 800fdb2: 681b ldr r3, [r3, #0] 800fdb4: 461a mov r2, r3 800fdb6: 4b5f ldr r3, [pc, #380] @ (800ff34 ) 800fdb8: 429a cmp r2, r3 800fdba: d958 bls.n 800fe6e 800fdbc: 687b ldr r3, [r7, #4] 800fdbe: 681b ldr r3, [r3, #0] 800fdc0: 4a5d ldr r2, [pc, #372] @ (800ff38 ) 800fdc2: 4293 cmp r3, r2 800fdc4: d04f beq.n 800fe66 800fdc6: 687b ldr r3, [r7, #4] 800fdc8: 681b ldr r3, [r3, #0] 800fdca: 4a5c ldr r2, [pc, #368] @ (800ff3c ) 800fdcc: 4293 cmp r3, r2 800fdce: d048 beq.n 800fe62 800fdd0: 687b ldr r3, [r7, #4] 800fdd2: 681b ldr r3, [r3, #0] 800fdd4: 4a5a ldr r2, [pc, #360] @ (800ff40 ) 800fdd6: 4293 cmp r3, r2 800fdd8: d040 beq.n 800fe5c 800fdda: 687b ldr r3, [r7, #4] 800fddc: 681b ldr r3, [r3, #0] 800fdde: 4a59 ldr r2, [pc, #356] @ (800ff44 ) 800fde0: 4293 cmp r3, r2 800fde2: d038 beq.n 800fe56 800fde4: 687b ldr r3, [r7, #4] 800fde6: 681b ldr r3, [r3, #0] 800fde8: 4a57 ldr r2, [pc, #348] @ (800ff48 ) 800fdea: 4293 cmp r3, r2 800fdec: d030 beq.n 800fe50 800fdee: 687b ldr r3, [r7, #4] 800fdf0: 681b ldr r3, [r3, #0] 800fdf2: 4a56 ldr r2, [pc, #344] @ (800ff4c ) 800fdf4: 4293 cmp r3, r2 800fdf6: d028 beq.n 800fe4a 800fdf8: 687b ldr r3, [r7, #4] 800fdfa: 681b ldr r3, [r3, #0] 800fdfc: 4a4d ldr r2, [pc, #308] @ (800ff34 ) 800fdfe: 4293 cmp r3, r2 800fe00: d020 beq.n 800fe44 800fe02: 687b ldr r3, [r7, #4] 800fe04: 681b ldr r3, [r3, #0] 800fe06: 4a52 ldr r2, [pc, #328] @ (800ff50 ) 800fe08: 4293 cmp r3, r2 800fe0a: d019 beq.n 800fe40 800fe0c: 687b ldr r3, [r7, #4] 800fe0e: 681b ldr r3, [r3, #0] 800fe10: 4a50 ldr r2, [pc, #320] @ (800ff54 ) 800fe12: 4293 cmp r3, r2 800fe14: d012 beq.n 800fe3c 800fe16: 687b ldr r3, [r7, #4] 800fe18: 681b ldr r3, [r3, #0] 800fe1a: 4a4f ldr r2, [pc, #316] @ (800ff58 ) 800fe1c: 4293 cmp r3, r2 800fe1e: d00a beq.n 800fe36 800fe20: 687b ldr r3, [r7, #4] 800fe22: 681b ldr r3, [r3, #0] 800fe24: 4a4d ldr r2, [pc, #308] @ (800ff5c ) 800fe26: 4293 cmp r3, r2 800fe28: d102 bne.n 800fe30 800fe2a: f44f 4380 mov.w r3, #16384 @ 0x4000 800fe2e: e01b b.n 800fe68 800fe30: f44f 2380 mov.w r3, #262144 @ 0x40000 800fe34: e018 b.n 800fe68 800fe36: f44f 6380 mov.w r3, #1024 @ 0x400 800fe3a: e015 b.n 800fe68 800fe3c: 2340 movs r3, #64 @ 0x40 800fe3e: e013 b.n 800fe68 800fe40: 2304 movs r3, #4 800fe42: e011 b.n 800fe68 800fe44: f04f 6380 mov.w r3, #67108864 @ 0x4000000 800fe48: e00e b.n 800fe68 800fe4a: f44f 0380 mov.w r3, #4194304 @ 0x400000 800fe4e: e00b b.n 800fe68 800fe50: f44f 2380 mov.w r3, #262144 @ 0x40000 800fe54: e008 b.n 800fe68 800fe56: f44f 4380 mov.w r3, #16384 @ 0x4000 800fe5a: e005 b.n 800fe68 800fe5c: f44f 6380 mov.w r3, #1024 @ 0x400 800fe60: e002 b.n 800fe68 800fe62: 2340 movs r3, #64 @ 0x40 800fe64: e000 b.n 800fe68 800fe66: 2304 movs r3, #4 800fe68: 4a3d ldr r2, [pc, #244] @ (800ff60 ) 800fe6a: 6053 str r3, [r2, #4] 800fe6c: e057 b.n 800ff1e 800fe6e: 687b ldr r3, [r7, #4] 800fe70: 681b ldr r3, [r3, #0] 800fe72: 4a31 ldr r2, [pc, #196] @ (800ff38 ) 800fe74: 4293 cmp r3, r2 800fe76: d04f beq.n 800ff18 800fe78: 687b ldr r3, [r7, #4] 800fe7a: 681b ldr r3, [r3, #0] 800fe7c: 4a2f ldr r2, [pc, #188] @ (800ff3c ) 800fe7e: 4293 cmp r3, r2 800fe80: d048 beq.n 800ff14 800fe82: 687b ldr r3, [r7, #4] 800fe84: 681b ldr r3, [r3, #0] 800fe86: 4a2e ldr r2, [pc, #184] @ (800ff40 ) 800fe88: 4293 cmp r3, r2 800fe8a: d040 beq.n 800ff0e 800fe8c: 687b ldr r3, [r7, #4] 800fe8e: 681b ldr r3, [r3, #0] 800fe90: 4a2c ldr r2, [pc, #176] @ (800ff44 ) 800fe92: 4293 cmp r3, r2 800fe94: d038 beq.n 800ff08 800fe96: 687b ldr r3, [r7, #4] 800fe98: 681b ldr r3, [r3, #0] 800fe9a: 4a2b ldr r2, [pc, #172] @ (800ff48 ) 800fe9c: 4293 cmp r3, r2 800fe9e: d030 beq.n 800ff02 800fea0: 687b ldr r3, [r7, #4] 800fea2: 681b ldr r3, [r3, #0] 800fea4: 4a29 ldr r2, [pc, #164] @ (800ff4c ) 800fea6: 4293 cmp r3, r2 800fea8: d028 beq.n 800fefc 800feaa: 687b ldr r3, [r7, #4] 800feac: 681b ldr r3, [r3, #0] 800feae: 4a21 ldr r2, [pc, #132] @ (800ff34 ) 800feb0: 4293 cmp r3, r2 800feb2: d020 beq.n 800fef6 800feb4: 687b ldr r3, [r7, #4] 800feb6: 681b ldr r3, [r3, #0] 800feb8: 4a25 ldr r2, [pc, #148] @ (800ff50 ) 800feba: 4293 cmp r3, r2 800febc: d019 beq.n 800fef2 800febe: 687b ldr r3, [r7, #4] 800fec0: 681b ldr r3, [r3, #0] 800fec2: 4a24 ldr r2, [pc, #144] @ (800ff54 ) 800fec4: 4293 cmp r3, r2 800fec6: d012 beq.n 800feee 800fec8: 687b ldr r3, [r7, #4] 800feca: 681b ldr r3, [r3, #0] 800fecc: 4a22 ldr r2, [pc, #136] @ (800ff58 ) 800fece: 4293 cmp r3, r2 800fed0: d00a beq.n 800fee8 800fed2: 687b ldr r3, [r7, #4] 800fed4: 681b ldr r3, [r3, #0] 800fed6: 4a21 ldr r2, [pc, #132] @ (800ff5c ) 800fed8: 4293 cmp r3, r2 800feda: d102 bne.n 800fee2 800fedc: f44f 4380 mov.w r3, #16384 @ 0x4000 800fee0: e01b b.n 800ff1a 800fee2: f44f 2380 mov.w r3, #262144 @ 0x40000 800fee6: e018 b.n 800ff1a 800fee8: f44f 6380 mov.w r3, #1024 @ 0x400 800feec: e015 b.n 800ff1a 800feee: 2340 movs r3, #64 @ 0x40 800fef0: e013 b.n 800ff1a 800fef2: 2304 movs r3, #4 800fef4: e011 b.n 800ff1a 800fef6: f04f 6380 mov.w r3, #67108864 @ 0x4000000 800fefa: e00e b.n 800ff1a 800fefc: f44f 0380 mov.w r3, #4194304 @ 0x400000 800ff00: e00b b.n 800ff1a 800ff02: f44f 2380 mov.w r3, #262144 @ 0x40000 800ff06: e008 b.n 800ff1a 800ff08: f44f 4380 mov.w r3, #16384 @ 0x4000 800ff0c: e005 b.n 800ff1a 800ff0e: f44f 6380 mov.w r3, #1024 @ 0x400 800ff12: e002 b.n 800ff1a 800ff14: 2340 movs r3, #64 @ 0x40 800ff16: e000 b.n 800ff1a 800ff18: 2304 movs r3, #4 800ff1a: 4a12 ldr r2, [pc, #72] @ (800ff64 ) 800ff1c: 6053 str r3, [r2, #4] /* DMA peripheral state is not updated in Half Transfer */ /* but in Transfer Complete case */ if(hdma->XferHalfCpltCallback != NULL) 800ff1e: 687b ldr r3, [r7, #4] 800ff20: 6adb ldr r3, [r3, #44] @ 0x2c 800ff22: 2b00 cmp r3, #0 800ff24: f000 8136 beq.w 8010194 { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); 800ff28: 687b ldr r3, [r7, #4] 800ff2a: 6adb ldr r3, [r3, #44] @ 0x2c 800ff2c: 6878 ldr r0, [r7, #4] 800ff2e: 4798 blx r3 if(hdma->XferHalfCpltCallback != NULL) 800ff30: e130 b.n 8010194 800ff32: bf00 nop 800ff34: 40020080 .word 0x40020080 800ff38: 40020008 .word 0x40020008 800ff3c: 4002001c .word 0x4002001c 800ff40: 40020030 .word 0x40020030 800ff44: 40020044 .word 0x40020044 800ff48: 40020058 .word 0x40020058 800ff4c: 4002006c .word 0x4002006c 800ff50: 40020408 .word 0x40020408 800ff54: 4002041c .word 0x4002041c 800ff58: 40020430 .word 0x40020430 800ff5c: 40020444 .word 0x40020444 800ff60: 40020400 .word 0x40020400 800ff64: 40020000 .word 0x40020000 } } /* Transfer Complete Interrupt management ***********************************/ else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET)) 800ff68: 687b ldr r3, [r7, #4] 800ff6a: 6c1b ldr r3, [r3, #64] @ 0x40 800ff6c: 2202 movs r2, #2 800ff6e: 409a lsls r2, r3 800ff70: 68fb ldr r3, [r7, #12] 800ff72: 4013 ands r3, r2 800ff74: 2b00 cmp r3, #0 800ff76: f000 80dd beq.w 8010134 800ff7a: 68bb ldr r3, [r7, #8] 800ff7c: f003 0302 and.w r3, r3, #2 800ff80: 2b00 cmp r3, #0 800ff82: f000 80d7 beq.w 8010134 { if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 800ff86: 687b ldr r3, [r7, #4] 800ff88: 681b ldr r3, [r3, #0] 800ff8a: 681b ldr r3, [r3, #0] 800ff8c: f003 0320 and.w r3, r3, #32 800ff90: 2b00 cmp r3, #0 800ff92: d10b bne.n 800ffac { /* Disable the transfer complete and error interrupt */ __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC); 800ff94: 687b ldr r3, [r7, #4] 800ff96: 681b ldr r3, [r3, #0] 800ff98: 681a ldr r2, [r3, #0] 800ff9a: 687b ldr r3, [r7, #4] 800ff9c: 681b ldr r3, [r3, #0] 800ff9e: f022 020a bic.w r2, r2, #10 800ffa2: 601a str r2, [r3, #0] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 800ffa4: 687b ldr r3, [r7, #4] 800ffa6: 2201 movs r2, #1 800ffa8: 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)); 800ffac: 687b ldr r3, [r7, #4] 800ffae: 681b ldr r3, [r3, #0] 800ffb0: 461a mov r2, r3 800ffb2: 4b7b ldr r3, [pc, #492] @ (80101a0 ) 800ffb4: 429a cmp r2, r3 800ffb6: d958 bls.n 801006a 800ffb8: 687b ldr r3, [r7, #4] 800ffba: 681b ldr r3, [r3, #0] 800ffbc: 4a79 ldr r2, [pc, #484] @ (80101a4 ) 800ffbe: 4293 cmp r3, r2 800ffc0: d04f beq.n 8010062 800ffc2: 687b ldr r3, [r7, #4] 800ffc4: 681b ldr r3, [r3, #0] 800ffc6: 4a78 ldr r2, [pc, #480] @ (80101a8 ) 800ffc8: 4293 cmp r3, r2 800ffca: d048 beq.n 801005e 800ffcc: 687b ldr r3, [r7, #4] 800ffce: 681b ldr r3, [r3, #0] 800ffd0: 4a76 ldr r2, [pc, #472] @ (80101ac ) 800ffd2: 4293 cmp r3, r2 800ffd4: d040 beq.n 8010058 800ffd6: 687b ldr r3, [r7, #4] 800ffd8: 681b ldr r3, [r3, #0] 800ffda: 4a75 ldr r2, [pc, #468] @ (80101b0 ) 800ffdc: 4293 cmp r3, r2 800ffde: d038 beq.n 8010052 800ffe0: 687b ldr r3, [r7, #4] 800ffe2: 681b ldr r3, [r3, #0] 800ffe4: 4a73 ldr r2, [pc, #460] @ (80101b4 ) 800ffe6: 4293 cmp r3, r2 800ffe8: d030 beq.n 801004c 800ffea: 687b ldr r3, [r7, #4] 800ffec: 681b ldr r3, [r3, #0] 800ffee: 4a72 ldr r2, [pc, #456] @ (80101b8 ) 800fff0: 4293 cmp r3, r2 800fff2: d028 beq.n 8010046 800fff4: 687b ldr r3, [r7, #4] 800fff6: 681b ldr r3, [r3, #0] 800fff8: 4a69 ldr r2, [pc, #420] @ (80101a0 ) 800fffa: 4293 cmp r3, r2 800fffc: d020 beq.n 8010040 800fffe: 687b ldr r3, [r7, #4] 8010000: 681b ldr r3, [r3, #0] 8010002: 4a6e ldr r2, [pc, #440] @ (80101bc ) 8010004: 4293 cmp r3, r2 8010006: d019 beq.n 801003c 8010008: 687b ldr r3, [r7, #4] 801000a: 681b ldr r3, [r3, #0] 801000c: 4a6c ldr r2, [pc, #432] @ (80101c0 ) 801000e: 4293 cmp r3, r2 8010010: d012 beq.n 8010038 8010012: 687b ldr r3, [r7, #4] 8010014: 681b ldr r3, [r3, #0] 8010016: 4a6b ldr r2, [pc, #428] @ (80101c4 ) 8010018: 4293 cmp r3, r2 801001a: d00a beq.n 8010032 801001c: 687b ldr r3, [r7, #4] 801001e: 681b ldr r3, [r3, #0] 8010020: 4a69 ldr r2, [pc, #420] @ (80101c8 ) 8010022: 4293 cmp r3, r2 8010024: d102 bne.n 801002c 8010026: f44f 5300 mov.w r3, #8192 @ 0x2000 801002a: e01b b.n 8010064 801002c: f44f 3300 mov.w r3, #131072 @ 0x20000 8010030: e018 b.n 8010064 8010032: f44f 7300 mov.w r3, #512 @ 0x200 8010036: e015 b.n 8010064 8010038: 2320 movs r3, #32 801003a: e013 b.n 8010064 801003c: 2302 movs r3, #2 801003e: e011 b.n 8010064 8010040: f04f 7300 mov.w r3, #33554432 @ 0x2000000 8010044: e00e b.n 8010064 8010046: f44f 1300 mov.w r3, #2097152 @ 0x200000 801004a: e00b b.n 8010064 801004c: f44f 3300 mov.w r3, #131072 @ 0x20000 8010050: e008 b.n 8010064 8010052: f44f 5300 mov.w r3, #8192 @ 0x2000 8010056: e005 b.n 8010064 8010058: f44f 7300 mov.w r3, #512 @ 0x200 801005c: e002 b.n 8010064 801005e: 2320 movs r3, #32 8010060: e000 b.n 8010064 8010062: 2302 movs r3, #2 8010064: 4a59 ldr r2, [pc, #356] @ (80101cc ) 8010066: 6053 str r3, [r2, #4] 8010068: e057 b.n 801011a 801006a: 687b ldr r3, [r7, #4] 801006c: 681b ldr r3, [r3, #0] 801006e: 4a4d ldr r2, [pc, #308] @ (80101a4 ) 8010070: 4293 cmp r3, r2 8010072: d04f beq.n 8010114 8010074: 687b ldr r3, [r7, #4] 8010076: 681b ldr r3, [r3, #0] 8010078: 4a4b ldr r2, [pc, #300] @ (80101a8 ) 801007a: 4293 cmp r3, r2 801007c: d048 beq.n 8010110 801007e: 687b ldr r3, [r7, #4] 8010080: 681b ldr r3, [r3, #0] 8010082: 4a4a ldr r2, [pc, #296] @ (80101ac ) 8010084: 4293 cmp r3, r2 8010086: d040 beq.n 801010a 8010088: 687b ldr r3, [r7, #4] 801008a: 681b ldr r3, [r3, #0] 801008c: 4a48 ldr r2, [pc, #288] @ (80101b0 ) 801008e: 4293 cmp r3, r2 8010090: d038 beq.n 8010104 8010092: 687b ldr r3, [r7, #4] 8010094: 681b ldr r3, [r3, #0] 8010096: 4a47 ldr r2, [pc, #284] @ (80101b4 ) 8010098: 4293 cmp r3, r2 801009a: d030 beq.n 80100fe 801009c: 687b ldr r3, [r7, #4] 801009e: 681b ldr r3, [r3, #0] 80100a0: 4a45 ldr r2, [pc, #276] @ (80101b8 ) 80100a2: 4293 cmp r3, r2 80100a4: d028 beq.n 80100f8 80100a6: 687b ldr r3, [r7, #4] 80100a8: 681b ldr r3, [r3, #0] 80100aa: 4a3d ldr r2, [pc, #244] @ (80101a0 ) 80100ac: 4293 cmp r3, r2 80100ae: d020 beq.n 80100f2 80100b0: 687b ldr r3, [r7, #4] 80100b2: 681b ldr r3, [r3, #0] 80100b4: 4a41 ldr r2, [pc, #260] @ (80101bc ) 80100b6: 4293 cmp r3, r2 80100b8: d019 beq.n 80100ee 80100ba: 687b ldr r3, [r7, #4] 80100bc: 681b ldr r3, [r3, #0] 80100be: 4a40 ldr r2, [pc, #256] @ (80101c0 ) 80100c0: 4293 cmp r3, r2 80100c2: d012 beq.n 80100ea 80100c4: 687b ldr r3, [r7, #4] 80100c6: 681b ldr r3, [r3, #0] 80100c8: 4a3e ldr r2, [pc, #248] @ (80101c4 ) 80100ca: 4293 cmp r3, r2 80100cc: d00a beq.n 80100e4 80100ce: 687b ldr r3, [r7, #4] 80100d0: 681b ldr r3, [r3, #0] 80100d2: 4a3d ldr r2, [pc, #244] @ (80101c8 ) 80100d4: 4293 cmp r3, r2 80100d6: d102 bne.n 80100de 80100d8: f44f 5300 mov.w r3, #8192 @ 0x2000 80100dc: e01b b.n 8010116 80100de: f44f 3300 mov.w r3, #131072 @ 0x20000 80100e2: e018 b.n 8010116 80100e4: f44f 7300 mov.w r3, #512 @ 0x200 80100e8: e015 b.n 8010116 80100ea: 2320 movs r3, #32 80100ec: e013 b.n 8010116 80100ee: 2302 movs r3, #2 80100f0: e011 b.n 8010116 80100f2: f04f 7300 mov.w r3, #33554432 @ 0x2000000 80100f6: e00e b.n 8010116 80100f8: f44f 1300 mov.w r3, #2097152 @ 0x200000 80100fc: e00b b.n 8010116 80100fe: f44f 3300 mov.w r3, #131072 @ 0x20000 8010102: e008 b.n 8010116 8010104: f44f 5300 mov.w r3, #8192 @ 0x2000 8010108: e005 b.n 8010116 801010a: f44f 7300 mov.w r3, #512 @ 0x200 801010e: e002 b.n 8010116 8010110: 2320 movs r3, #32 8010112: e000 b.n 8010116 8010114: 2302 movs r3, #2 8010116: 4a2e ldr r2, [pc, #184] @ (80101d0 ) 8010118: 6053 str r3, [r2, #4] /* Process Unlocked */ __HAL_UNLOCK(hdma); 801011a: 687b ldr r3, [r7, #4] 801011c: 2200 movs r2, #0 801011e: f883 2020 strb.w r2, [r3, #32] if(hdma->XferCpltCallback != NULL) 8010122: 687b ldr r3, [r7, #4] 8010124: 6a9b ldr r3, [r3, #40] @ 0x28 8010126: 2b00 cmp r3, #0 8010128: d034 beq.n 8010194 { /* Transfer complete callback */ hdma->XferCpltCallback(hdma); 801012a: 687b ldr r3, [r7, #4] 801012c: 6a9b ldr r3, [r3, #40] @ 0x28 801012e: 6878 ldr r0, [r7, #4] 8010130: 4798 blx r3 if(hdma->XferCpltCallback != NULL) 8010132: e02f b.n 8010194 } } /* Transfer Error Interrupt management **************************************/ else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE))) 8010134: 687b ldr r3, [r7, #4] 8010136: 6c1b ldr r3, [r3, #64] @ 0x40 8010138: 2208 movs r2, #8 801013a: 409a lsls r2, r3 801013c: 68fb ldr r3, [r7, #12] 801013e: 4013 ands r3, r2 8010140: 2b00 cmp r3, #0 8010142: d028 beq.n 8010196 8010144: 68bb ldr r3, [r7, #8] 8010146: f003 0308 and.w r3, r3, #8 801014a: 2b00 cmp r3, #0 801014c: d023 beq.n 8010196 { /* 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)); 801014e: 687b ldr r3, [r7, #4] 8010150: 681b ldr r3, [r3, #0] 8010152: 681a ldr r2, [r3, #0] 8010154: 687b ldr r3, [r7, #4] 8010156: 681b ldr r3, [r3, #0] 8010158: f022 020e bic.w r2, r2, #14 801015c: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 801015e: 687b ldr r3, [r7, #4] 8010160: 6c1a ldr r2, [r3, #64] @ 0x40 8010162: 687b ldr r3, [r7, #4] 8010164: 6bdb ldr r3, [r3, #60] @ 0x3c 8010166: 2101 movs r1, #1 8010168: fa01 f202 lsl.w r2, r1, r2 801016c: 605a str r2, [r3, #4] /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TE; 801016e: 687b ldr r3, [r7, #4] 8010170: 2201 movs r2, #1 8010172: 639a str r2, [r3, #56] @ 0x38 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 8010174: 687b ldr r3, [r7, #4] 8010176: 2201 movs r2, #1 8010178: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 801017c: 687b ldr r3, [r7, #4] 801017e: 2200 movs r2, #0 8010180: f883 2020 strb.w r2, [r3, #32] if (hdma->XferErrorCallback != NULL) 8010184: 687b ldr r3, [r7, #4] 8010186: 6b1b ldr r3, [r3, #48] @ 0x30 8010188: 2b00 cmp r3, #0 801018a: d004 beq.n 8010196 { /* Transfer error callback */ hdma->XferErrorCallback(hdma); 801018c: 687b ldr r3, [r7, #4] 801018e: 6b1b ldr r3, [r3, #48] @ 0x30 8010190: 6878 ldr r0, [r7, #4] 8010192: 4798 blx r3 } } return; 8010194: bf00 nop 8010196: bf00 nop } 8010198: 3710 adds r7, #16 801019a: 46bd mov sp, r7 801019c: bd80 pop {r7, pc} 801019e: bf00 nop 80101a0: 40020080 .word 0x40020080 80101a4: 40020008 .word 0x40020008 80101a8: 4002001c .word 0x4002001c 80101ac: 40020030 .word 0x40020030 80101b0: 40020044 .word 0x40020044 80101b4: 40020058 .word 0x40020058 80101b8: 4002006c .word 0x4002006c 80101bc: 40020408 .word 0x40020408 80101c0: 4002041c .word 0x4002041c 80101c4: 40020430 .word 0x40020430 80101c8: 40020444 .word 0x40020444 80101cc: 40020400 .word 0x40020400 80101d0: 40020000 .word 0x40020000 080101d4 : * @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) { 80101d4: b480 push {r7} 80101d6: b085 sub sp, #20 80101d8: af00 add r7, sp, #0 80101da: 60f8 str r0, [r7, #12] 80101dc: 60b9 str r1, [r7, #8] 80101de: 607a str r2, [r7, #4] 80101e0: 603b str r3, [r7, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 80101e2: 68fb ldr r3, [r7, #12] 80101e4: 6c1a ldr r2, [r3, #64] @ 0x40 80101e6: 68fb ldr r3, [r7, #12] 80101e8: 6bdb ldr r3, [r3, #60] @ 0x3c 80101ea: 2101 movs r1, #1 80101ec: fa01 f202 lsl.w r2, r1, r2 80101f0: 605a str r2, [r3, #4] /* Configure DMA Channel data length */ hdma->Instance->CNDTR = DataLength; 80101f2: 68fb ldr r3, [r7, #12] 80101f4: 681b ldr r3, [r3, #0] 80101f6: 683a ldr r2, [r7, #0] 80101f8: 605a str r2, [r3, #4] /* Memory to Peripheral */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) 80101fa: 68fb ldr r3, [r7, #12] 80101fc: 685b ldr r3, [r3, #4] 80101fe: 2b10 cmp r3, #16 8010200: d108 bne.n 8010214 { /* Configure DMA Channel destination address */ hdma->Instance->CPAR = DstAddress; 8010202: 68fb ldr r3, [r7, #12] 8010204: 681b ldr r3, [r3, #0] 8010206: 687a ldr r2, [r7, #4] 8010208: 609a str r2, [r3, #8] /* Configure DMA Channel source address */ hdma->Instance->CMAR = SrcAddress; 801020a: 68fb ldr r3, [r7, #12] 801020c: 681b ldr r3, [r3, #0] 801020e: 68ba ldr r2, [r7, #8] 8010210: 60da str r2, [r3, #12] hdma->Instance->CPAR = SrcAddress; /* Configure DMA Channel destination address */ hdma->Instance->CMAR = DstAddress; } } 8010212: e007 b.n 8010224 hdma->Instance->CPAR = SrcAddress; 8010214: 68fb ldr r3, [r7, #12] 8010216: 681b ldr r3, [r3, #0] 8010218: 68ba ldr r2, [r7, #8] 801021a: 609a str r2, [r3, #8] hdma->Instance->CMAR = DstAddress; 801021c: 68fb ldr r3, [r7, #12] 801021e: 681b ldr r3, [r3, #0] 8010220: 687a ldr r2, [r7, #4] 8010222: 60da str r2, [r3, #12] } 8010224: bf00 nop 8010226: 3714 adds r7, #20 8010228: 46bd mov sp, r7 801022a: bc80 pop {r7} 801022c: 4770 bx lr ... 08010230 : * @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) { 8010230: b480 push {r7} 8010232: b08b sub sp, #44 @ 0x2c 8010234: af00 add r7, sp, #0 8010236: 6078 str r0, [r7, #4] 8010238: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 801023a: 2300 movs r3, #0 801023c: 627b str r3, [r7, #36] @ 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; 801023e: 2300 movs r3, #0 8010240: 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) 8010242: e169 b.n 8010518 { /* Get the IO position */ ioposition = (0x01uL << position); 8010244: 2201 movs r2, #1 8010246: 6a7b ldr r3, [r7, #36] @ 0x24 8010248: fa02 f303 lsl.w r3, r2, r3 801024c: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; 801024e: 683b ldr r3, [r7, #0] 8010250: 681b ldr r3, [r3, #0] 8010252: 69fa ldr r2, [r7, #28] 8010254: 4013 ands r3, r2 8010256: 61bb str r3, [r7, #24] if (iocurrent == ioposition) 8010258: 69ba ldr r2, [r7, #24] 801025a: 69fb ldr r3, [r7, #28] 801025c: 429a cmp r2, r3 801025e: f040 8158 bne.w 8010512 { /* 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) 8010262: 683b ldr r3, [r7, #0] 8010264: 685b ldr r3, [r3, #4] 8010266: 4a9a ldr r2, [pc, #616] @ (80104d0 ) 8010268: 4293 cmp r3, r2 801026a: d05e beq.n 801032a 801026c: 4a98 ldr r2, [pc, #608] @ (80104d0 ) 801026e: 4293 cmp r3, r2 8010270: d875 bhi.n 801035e 8010272: 4a98 ldr r2, [pc, #608] @ (80104d4 ) 8010274: 4293 cmp r3, r2 8010276: d058 beq.n 801032a 8010278: 4a96 ldr r2, [pc, #600] @ (80104d4 ) 801027a: 4293 cmp r3, r2 801027c: d86f bhi.n 801035e 801027e: 4a96 ldr r2, [pc, #600] @ (80104d8 ) 8010280: 4293 cmp r3, r2 8010282: d052 beq.n 801032a 8010284: 4a94 ldr r2, [pc, #592] @ (80104d8 ) 8010286: 4293 cmp r3, r2 8010288: d869 bhi.n 801035e 801028a: 4a94 ldr r2, [pc, #592] @ (80104dc ) 801028c: 4293 cmp r3, r2 801028e: d04c beq.n 801032a 8010290: 4a92 ldr r2, [pc, #584] @ (80104dc ) 8010292: 4293 cmp r3, r2 8010294: d863 bhi.n 801035e 8010296: 4a92 ldr r2, [pc, #584] @ (80104e0 ) 8010298: 4293 cmp r3, r2 801029a: d046 beq.n 801032a 801029c: 4a90 ldr r2, [pc, #576] @ (80104e0 ) 801029e: 4293 cmp r3, r2 80102a0: d85d bhi.n 801035e 80102a2: 2b12 cmp r3, #18 80102a4: d82a bhi.n 80102fc 80102a6: 2b12 cmp r3, #18 80102a8: d859 bhi.n 801035e 80102aa: a201 add r2, pc, #4 @ (adr r2, 80102b0 ) 80102ac: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80102b0: 0801032b .word 0x0801032b 80102b4: 08010305 .word 0x08010305 80102b8: 08010317 .word 0x08010317 80102bc: 08010359 .word 0x08010359 80102c0: 0801035f .word 0x0801035f 80102c4: 0801035f .word 0x0801035f 80102c8: 0801035f .word 0x0801035f 80102cc: 0801035f .word 0x0801035f 80102d0: 0801035f .word 0x0801035f 80102d4: 0801035f .word 0x0801035f 80102d8: 0801035f .word 0x0801035f 80102dc: 0801035f .word 0x0801035f 80102e0: 0801035f .word 0x0801035f 80102e4: 0801035f .word 0x0801035f 80102e8: 0801035f .word 0x0801035f 80102ec: 0801035f .word 0x0801035f 80102f0: 0801035f .word 0x0801035f 80102f4: 0801030d .word 0x0801030d 80102f8: 08010321 .word 0x08010321 80102fc: 4a79 ldr r2, [pc, #484] @ (80104e4 ) 80102fe: 4293 cmp r3, r2 8010300: d013 beq.n 801032a config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; 8010302: e02c b.n 801035e config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; 8010304: 683b ldr r3, [r7, #0] 8010306: 68db ldr r3, [r3, #12] 8010308: 623b str r3, [r7, #32] break; 801030a: e029 b.n 8010360 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; 801030c: 683b ldr r3, [r7, #0] 801030e: 68db ldr r3, [r3, #12] 8010310: 3304 adds r3, #4 8010312: 623b str r3, [r7, #32] break; 8010314: e024 b.n 8010360 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; 8010316: 683b ldr r3, [r7, #0] 8010318: 68db ldr r3, [r3, #12] 801031a: 3308 adds r3, #8 801031c: 623b str r3, [r7, #32] break; 801031e: e01f b.n 8010360 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; 8010320: 683b ldr r3, [r7, #0] 8010322: 68db ldr r3, [r3, #12] 8010324: 330c adds r3, #12 8010326: 623b str r3, [r7, #32] break; 8010328: e01a b.n 8010360 if (GPIO_Init->Pull == GPIO_NOPULL) 801032a: 683b ldr r3, [r7, #0] 801032c: 689b ldr r3, [r3, #8] 801032e: 2b00 cmp r3, #0 8010330: d102 bne.n 8010338 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; 8010332: 2304 movs r3, #4 8010334: 623b str r3, [r7, #32] break; 8010336: e013 b.n 8010360 else if (GPIO_Init->Pull == GPIO_PULLUP) 8010338: 683b ldr r3, [r7, #0] 801033a: 689b ldr r3, [r3, #8] 801033c: 2b01 cmp r3, #1 801033e: d105 bne.n 801034c config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 8010340: 2308 movs r3, #8 8010342: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; 8010344: 687b ldr r3, [r7, #4] 8010346: 69fa ldr r2, [r7, #28] 8010348: 611a str r2, [r3, #16] break; 801034a: e009 b.n 8010360 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 801034c: 2308 movs r3, #8 801034e: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; 8010350: 687b ldr r3, [r7, #4] 8010352: 69fa ldr r2, [r7, #28] 8010354: 615a str r2, [r3, #20] break; 8010356: e003 b.n 8010360 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; 8010358: 2300 movs r3, #0 801035a: 623b str r3, [r7, #32] break; 801035c: e000 b.n 8010360 break; 801035e: 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; 8010360: 69bb ldr r3, [r7, #24] 8010362: 2bff cmp r3, #255 @ 0xff 8010364: d801 bhi.n 801036a 8010366: 687b ldr r3, [r7, #4] 8010368: e001 b.n 801036e 801036a: 687b ldr r3, [r7, #4] 801036c: 3304 adds r3, #4 801036e: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); 8010370: 69bb ldr r3, [r7, #24] 8010372: 2bff cmp r3, #255 @ 0xff 8010374: d802 bhi.n 801037c 8010376: 6a7b ldr r3, [r7, #36] @ 0x24 8010378: 009b lsls r3, r3, #2 801037a: e002 b.n 8010382 801037c: 6a7b ldr r3, [r7, #36] @ 0x24 801037e: 3b08 subs r3, #8 8010380: 009b lsls r3, r3, #2 8010382: 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)); 8010384: 697b ldr r3, [r7, #20] 8010386: 681a ldr r2, [r3, #0] 8010388: 210f movs r1, #15 801038a: 693b ldr r3, [r7, #16] 801038c: fa01 f303 lsl.w r3, r1, r3 8010390: 43db mvns r3, r3 8010392: 401a ands r2, r3 8010394: 6a39 ldr r1, [r7, #32] 8010396: 693b ldr r3, [r7, #16] 8010398: fa01 f303 lsl.w r3, r1, r3 801039c: 431a orrs r2, r3 801039e: 697b ldr r3, [r7, #20] 80103a0: 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) 80103a2: 683b ldr r3, [r7, #0] 80103a4: 685b ldr r3, [r3, #4] 80103a6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80103aa: 2b00 cmp r3, #0 80103ac: f000 80b1 beq.w 8010512 { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); 80103b0: 4b4d ldr r3, [pc, #308] @ (80104e8 ) 80103b2: 699b ldr r3, [r3, #24] 80103b4: 4a4c ldr r2, [pc, #304] @ (80104e8 ) 80103b6: f043 0301 orr.w r3, r3, #1 80103ba: 6193 str r3, [r2, #24] 80103bc: 4b4a ldr r3, [pc, #296] @ (80104e8 ) 80103be: 699b ldr r3, [r3, #24] 80103c0: f003 0301 and.w r3, r3, #1 80103c4: 60bb str r3, [r7, #8] 80103c6: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; 80103c8: 4a48 ldr r2, [pc, #288] @ (80104ec ) 80103ca: 6a7b ldr r3, [r7, #36] @ 0x24 80103cc: 089b lsrs r3, r3, #2 80103ce: 3302 adds r3, #2 80103d0: f852 3023 ldr.w r3, [r2, r3, lsl #2] 80103d4: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); 80103d6: 6a7b ldr r3, [r7, #36] @ 0x24 80103d8: f003 0303 and.w r3, r3, #3 80103dc: 009b lsls r3, r3, #2 80103de: 220f movs r2, #15 80103e0: fa02 f303 lsl.w r3, r2, r3 80103e4: 43db mvns r3, r3 80103e6: 68fa ldr r2, [r7, #12] 80103e8: 4013 ands r3, r2 80103ea: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); 80103ec: 687b ldr r3, [r7, #4] 80103ee: 4a40 ldr r2, [pc, #256] @ (80104f0 ) 80103f0: 4293 cmp r3, r2 80103f2: d013 beq.n 801041c 80103f4: 687b ldr r3, [r7, #4] 80103f6: 4a3f ldr r2, [pc, #252] @ (80104f4 ) 80103f8: 4293 cmp r3, r2 80103fa: d00d beq.n 8010418 80103fc: 687b ldr r3, [r7, #4] 80103fe: 4a3e ldr r2, [pc, #248] @ (80104f8 ) 8010400: 4293 cmp r3, r2 8010402: d007 beq.n 8010414 8010404: 687b ldr r3, [r7, #4] 8010406: 4a3d ldr r2, [pc, #244] @ (80104fc ) 8010408: 4293 cmp r3, r2 801040a: d101 bne.n 8010410 801040c: 2303 movs r3, #3 801040e: e006 b.n 801041e 8010410: 2304 movs r3, #4 8010412: e004 b.n 801041e 8010414: 2302 movs r3, #2 8010416: e002 b.n 801041e 8010418: 2301 movs r3, #1 801041a: e000 b.n 801041e 801041c: 2300 movs r3, #0 801041e: 6a7a ldr r2, [r7, #36] @ 0x24 8010420: f002 0203 and.w r2, r2, #3 8010424: 0092 lsls r2, r2, #2 8010426: 4093 lsls r3, r2 8010428: 68fa ldr r2, [r7, #12] 801042a: 4313 orrs r3, r2 801042c: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; 801042e: 492f ldr r1, [pc, #188] @ (80104ec ) 8010430: 6a7b ldr r3, [r7, #36] @ 0x24 8010432: 089b lsrs r3, r3, #2 8010434: 3302 adds r3, #2 8010436: 68fa ldr r2, [r7, #12] 8010438: f841 2023 str.w r2, [r1, r3, lsl #2] /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) 801043c: 683b ldr r3, [r7, #0] 801043e: 685b ldr r3, [r3, #4] 8010440: f403 1380 and.w r3, r3, #1048576 @ 0x100000 8010444: 2b00 cmp r3, #0 8010446: d006 beq.n 8010456 { SET_BIT(EXTI->RTSR, iocurrent); 8010448: 4b2d ldr r3, [pc, #180] @ (8010500 ) 801044a: 689a ldr r2, [r3, #8] 801044c: 492c ldr r1, [pc, #176] @ (8010500 ) 801044e: 69bb ldr r3, [r7, #24] 8010450: 4313 orrs r3, r2 8010452: 608b str r3, [r1, #8] 8010454: e006 b.n 8010464 } else { CLEAR_BIT(EXTI->RTSR, iocurrent); 8010456: 4b2a ldr r3, [pc, #168] @ (8010500 ) 8010458: 689a ldr r2, [r3, #8] 801045a: 69bb ldr r3, [r7, #24] 801045c: 43db mvns r3, r3 801045e: 4928 ldr r1, [pc, #160] @ (8010500 ) 8010460: 4013 ands r3, r2 8010462: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) 8010464: 683b ldr r3, [r7, #0] 8010466: 685b ldr r3, [r3, #4] 8010468: f403 1300 and.w r3, r3, #2097152 @ 0x200000 801046c: 2b00 cmp r3, #0 801046e: d006 beq.n 801047e { SET_BIT(EXTI->FTSR, iocurrent); 8010470: 4b23 ldr r3, [pc, #140] @ (8010500 ) 8010472: 68da ldr r2, [r3, #12] 8010474: 4922 ldr r1, [pc, #136] @ (8010500 ) 8010476: 69bb ldr r3, [r7, #24] 8010478: 4313 orrs r3, r2 801047a: 60cb str r3, [r1, #12] 801047c: e006 b.n 801048c } else { CLEAR_BIT(EXTI->FTSR, iocurrent); 801047e: 4b20 ldr r3, [pc, #128] @ (8010500 ) 8010480: 68da ldr r2, [r3, #12] 8010482: 69bb ldr r3, [r7, #24] 8010484: 43db mvns r3, r3 8010486: 491e ldr r1, [pc, #120] @ (8010500 ) 8010488: 4013 ands r3, r2 801048a: 60cb str r3, [r1, #12] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) 801048c: 683b ldr r3, [r7, #0] 801048e: 685b ldr r3, [r3, #4] 8010490: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010494: 2b00 cmp r3, #0 8010496: d006 beq.n 80104a6 { SET_BIT(EXTI->EMR, iocurrent); 8010498: 4b19 ldr r3, [pc, #100] @ (8010500 ) 801049a: 685a ldr r2, [r3, #4] 801049c: 4918 ldr r1, [pc, #96] @ (8010500 ) 801049e: 69bb ldr r3, [r7, #24] 80104a0: 4313 orrs r3, r2 80104a2: 604b str r3, [r1, #4] 80104a4: e006 b.n 80104b4 } else { CLEAR_BIT(EXTI->EMR, iocurrent); 80104a6: 4b16 ldr r3, [pc, #88] @ (8010500 ) 80104a8: 685a ldr r2, [r3, #4] 80104aa: 69bb ldr r3, [r7, #24] 80104ac: 43db mvns r3, r3 80104ae: 4914 ldr r1, [pc, #80] @ (8010500 ) 80104b0: 4013 ands r3, r2 80104b2: 604b str r3, [r1, #4] } /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) 80104b4: 683b ldr r3, [r7, #0] 80104b6: 685b ldr r3, [r3, #4] 80104b8: f403 3380 and.w r3, r3, #65536 @ 0x10000 80104bc: 2b00 cmp r3, #0 80104be: d021 beq.n 8010504 { SET_BIT(EXTI->IMR, iocurrent); 80104c0: 4b0f ldr r3, [pc, #60] @ (8010500 ) 80104c2: 681a ldr r2, [r3, #0] 80104c4: 490e ldr r1, [pc, #56] @ (8010500 ) 80104c6: 69bb ldr r3, [r7, #24] 80104c8: 4313 orrs r3, r2 80104ca: 600b str r3, [r1, #0] 80104cc: e021 b.n 8010512 80104ce: bf00 nop 80104d0: 10320000 .word 0x10320000 80104d4: 10310000 .word 0x10310000 80104d8: 10220000 .word 0x10220000 80104dc: 10210000 .word 0x10210000 80104e0: 10120000 .word 0x10120000 80104e4: 10110000 .word 0x10110000 80104e8: 40021000 .word 0x40021000 80104ec: 40010000 .word 0x40010000 80104f0: 40010800 .word 0x40010800 80104f4: 40010c00 .word 0x40010c00 80104f8: 40011000 .word 0x40011000 80104fc: 40011400 .word 0x40011400 8010500: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->IMR, iocurrent); 8010504: 4b0b ldr r3, [pc, #44] @ (8010534 ) 8010506: 681a ldr r2, [r3, #0] 8010508: 69bb ldr r3, [r7, #24] 801050a: 43db mvns r3, r3 801050c: 4909 ldr r1, [pc, #36] @ (8010534 ) 801050e: 4013 ands r3, r2 8010510: 600b str r3, [r1, #0] } } } position++; 8010512: 6a7b ldr r3, [r7, #36] @ 0x24 8010514: 3301 adds r3, #1 8010516: 627b str r3, [r7, #36] @ 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) 8010518: 683b ldr r3, [r7, #0] 801051a: 681a ldr r2, [r3, #0] 801051c: 6a7b ldr r3, [r7, #36] @ 0x24 801051e: fa22 f303 lsr.w r3, r2, r3 8010522: 2b00 cmp r3, #0 8010524: f47f ae8e bne.w 8010244 } } 8010528: bf00 nop 801052a: bf00 nop 801052c: 372c adds r7, #44 @ 0x2c 801052e: 46bd mov sp, r7 8010530: bc80 pop {r7} 8010532: 4770 bx lr 8010534: 40010400 .word 0x40010400 08010538 : * @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) { 8010538: b480 push {r7} 801053a: b089 sub sp, #36 @ 0x24 801053c: af00 add r7, sp, #0 801053e: 6078 str r0, [r7, #4] 8010540: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 8010542: 2300 movs r3, #0 8010544: 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) 8010546: e09a b.n 801067e { /* Get current io position */ iocurrent = (GPIO_Pin) & (1uL << position); 8010548: 2201 movs r2, #1 801054a: 69fb ldr r3, [r7, #28] 801054c: fa02 f303 lsl.w r3, r2, r3 8010550: 683a ldr r2, [r7, #0] 8010552: 4013 ands r3, r2 8010554: 61bb str r3, [r7, #24] if (iocurrent) 8010556: 69bb ldr r3, [r7, #24] 8010558: 2b00 cmp r3, #0 801055a: f000 808d beq.w 8010678 { /*------------------------- EXTI Mode Configuration --------------------*/ /* Clear the External Interrupt or Event for the current IO */ tmp = AFIO->EXTICR[position >> 2u]; 801055e: 4a4e ldr r2, [pc, #312] @ (8010698 ) 8010560: 69fb ldr r3, [r7, #28] 8010562: 089b lsrs r3, r3, #2 8010564: 3302 adds r3, #2 8010566: f852 3023 ldr.w r3, [r2, r3, lsl #2] 801056a: 617b str r3, [r7, #20] tmp &= 0x0FuL << (4u * (position & 0x03u)); 801056c: 69fb ldr r3, [r7, #28] 801056e: f003 0303 and.w r3, r3, #3 8010572: 009b lsls r3, r3, #2 8010574: 220f movs r2, #15 8010576: fa02 f303 lsl.w r3, r2, r3 801057a: 697a ldr r2, [r7, #20] 801057c: 4013 ands r3, r2 801057e: 617b str r3, [r7, #20] if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) 8010580: 687b ldr r3, [r7, #4] 8010582: 4a46 ldr r2, [pc, #280] @ (801069c ) 8010584: 4293 cmp r3, r2 8010586: d013 beq.n 80105b0 8010588: 687b ldr r3, [r7, #4] 801058a: 4a45 ldr r2, [pc, #276] @ (80106a0 ) 801058c: 4293 cmp r3, r2 801058e: d00d beq.n 80105ac 8010590: 687b ldr r3, [r7, #4] 8010592: 4a44 ldr r2, [pc, #272] @ (80106a4 ) 8010594: 4293 cmp r3, r2 8010596: d007 beq.n 80105a8 8010598: 687b ldr r3, [r7, #4] 801059a: 4a43 ldr r2, [pc, #268] @ (80106a8 ) 801059c: 4293 cmp r3, r2 801059e: d101 bne.n 80105a4 80105a0: 2303 movs r3, #3 80105a2: e006 b.n 80105b2 80105a4: 2304 movs r3, #4 80105a6: e004 b.n 80105b2 80105a8: 2302 movs r3, #2 80105aa: e002 b.n 80105b2 80105ac: 2301 movs r3, #1 80105ae: e000 b.n 80105b2 80105b0: 2300 movs r3, #0 80105b2: 69fa ldr r2, [r7, #28] 80105b4: f002 0203 and.w r2, r2, #3 80105b8: 0092 lsls r2, r2, #2 80105ba: 4093 lsls r3, r2 80105bc: 697a ldr r2, [r7, #20] 80105be: 429a cmp r2, r3 80105c0: d132 bne.n 8010628 { /* Clear EXTI line configuration */ CLEAR_BIT(EXTI->IMR, (uint32_t)iocurrent); 80105c2: 4b3a ldr r3, [pc, #232] @ (80106ac ) 80105c4: 681a ldr r2, [r3, #0] 80105c6: 69bb ldr r3, [r7, #24] 80105c8: 43db mvns r3, r3 80105ca: 4938 ldr r1, [pc, #224] @ (80106ac ) 80105cc: 4013 ands r3, r2 80105ce: 600b str r3, [r1, #0] CLEAR_BIT(EXTI->EMR, (uint32_t)iocurrent); 80105d0: 4b36 ldr r3, [pc, #216] @ (80106ac ) 80105d2: 685a ldr r2, [r3, #4] 80105d4: 69bb ldr r3, [r7, #24] 80105d6: 43db mvns r3, r3 80105d8: 4934 ldr r1, [pc, #208] @ (80106ac ) 80105da: 4013 ands r3, r2 80105dc: 604b str r3, [r1, #4] /* Clear Rising Falling edge configuration */ CLEAR_BIT(EXTI->FTSR, (uint32_t)iocurrent); 80105de: 4b33 ldr r3, [pc, #204] @ (80106ac ) 80105e0: 68da ldr r2, [r3, #12] 80105e2: 69bb ldr r3, [r7, #24] 80105e4: 43db mvns r3, r3 80105e6: 4931 ldr r1, [pc, #196] @ (80106ac ) 80105e8: 4013 ands r3, r2 80105ea: 60cb str r3, [r1, #12] CLEAR_BIT(EXTI->RTSR, (uint32_t)iocurrent); 80105ec: 4b2f ldr r3, [pc, #188] @ (80106ac ) 80105ee: 689a ldr r2, [r3, #8] 80105f0: 69bb ldr r3, [r7, #24] 80105f2: 43db mvns r3, r3 80105f4: 492d ldr r1, [pc, #180] @ (80106ac ) 80105f6: 4013 ands r3, r2 80105f8: 608b str r3, [r1, #8] tmp = 0x0FuL << (4u * (position & 0x03u)); 80105fa: 69fb ldr r3, [r7, #28] 80105fc: f003 0303 and.w r3, r3, #3 8010600: 009b lsls r3, r3, #2 8010602: 220f movs r2, #15 8010604: fa02 f303 lsl.w r3, r2, r3 8010608: 617b str r3, [r7, #20] CLEAR_BIT(AFIO->EXTICR[position >> 2u], tmp); 801060a: 4a23 ldr r2, [pc, #140] @ (8010698 ) 801060c: 69fb ldr r3, [r7, #28] 801060e: 089b lsrs r3, r3, #2 8010610: 3302 adds r3, #2 8010612: f852 1023 ldr.w r1, [r2, r3, lsl #2] 8010616: 697b ldr r3, [r7, #20] 8010618: 43da mvns r2, r3 801061a: 481f ldr r0, [pc, #124] @ (8010698 ) 801061c: 69fb ldr r3, [r7, #28] 801061e: 089b lsrs r3, r3, #2 8010620: 400a ands r2, r1 8010622: 3302 adds r3, #2 8010624: 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; 8010628: 69bb ldr r3, [r7, #24] 801062a: 2bff cmp r3, #255 @ 0xff 801062c: d801 bhi.n 8010632 801062e: 687b ldr r3, [r7, #4] 8010630: e001 b.n 8010636 8010632: 687b ldr r3, [r7, #4] 8010634: 3304 adds r3, #4 8010636: 613b str r3, [r7, #16] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); 8010638: 69bb ldr r3, [r7, #24] 801063a: 2bff cmp r3, #255 @ 0xff 801063c: d802 bhi.n 8010644 801063e: 69fb ldr r3, [r7, #28] 8010640: 009b lsls r3, r3, #2 8010642: e002 b.n 801064a 8010644: 69fb ldr r3, [r7, #28] 8010646: 3b08 subs r3, #8 8010648: 009b lsls r3, r3, #2 801064a: 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); 801064c: 693b ldr r3, [r7, #16] 801064e: 681a ldr r2, [r3, #0] 8010650: 210f movs r1, #15 8010652: 68fb ldr r3, [r7, #12] 8010654: fa01 f303 lsl.w r3, r1, r3 8010658: 43db mvns r3, r3 801065a: 401a ands r2, r3 801065c: 2104 movs r1, #4 801065e: 68fb ldr r3, [r7, #12] 8010660: fa01 f303 lsl.w r3, r1, r3 8010664: 431a orrs r2, r3 8010666: 693b ldr r3, [r7, #16] 8010668: 601a str r2, [r3, #0] /* ODR default value is 0 */ CLEAR_BIT(GPIOx->ODR, iocurrent); 801066a: 687b ldr r3, [r7, #4] 801066c: 68da ldr r2, [r3, #12] 801066e: 69bb ldr r3, [r7, #24] 8010670: 43db mvns r3, r3 8010672: 401a ands r2, r3 8010674: 687b ldr r3, [r7, #4] 8010676: 60da str r2, [r3, #12] } position++; 8010678: 69fb ldr r3, [r7, #28] 801067a: 3301 adds r3, #1 801067c: 61fb str r3, [r7, #28] while ((GPIO_Pin >> position) != 0u) 801067e: 683a ldr r2, [r7, #0] 8010680: 69fb ldr r3, [r7, #28] 8010682: fa22 f303 lsr.w r3, r2, r3 8010686: 2b00 cmp r3, #0 8010688: f47f af5e bne.w 8010548 } } 801068c: bf00 nop 801068e: bf00 nop 8010690: 3724 adds r7, #36 @ 0x24 8010692: 46bd mov sp, r7 8010694: bc80 pop {r7} 8010696: 4770 bx lr 8010698: 40010000 .word 0x40010000 801069c: 40010800 .word 0x40010800 80106a0: 40010c00 .word 0x40010c00 80106a4: 40011000 .word 0x40011000 80106a8: 40011400 .word 0x40011400 80106ac: 40010400 .word 0x40010400 080106b0 : * @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) { 80106b0: b480 push {r7} 80106b2: b085 sub sp, #20 80106b4: af00 add r7, sp, #0 80106b6: 6078 str r0, [r7, #4] 80106b8: 460b mov r3, r1 80106ba: 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) 80106bc: 687b ldr r3, [r7, #4] 80106be: 689a ldr r2, [r3, #8] 80106c0: 887b ldrh r3, [r7, #2] 80106c2: 4013 ands r3, r2 80106c4: 2b00 cmp r3, #0 80106c6: d002 beq.n 80106ce { bitstatus = GPIO_PIN_SET; 80106c8: 2301 movs r3, #1 80106ca: 73fb strb r3, [r7, #15] 80106cc: e001 b.n 80106d2 } else { bitstatus = GPIO_PIN_RESET; 80106ce: 2300 movs r3, #0 80106d0: 73fb strb r3, [r7, #15] } return bitstatus; 80106d2: 7bfb ldrb r3, [r7, #15] } 80106d4: 4618 mov r0, r3 80106d6: 3714 adds r7, #20 80106d8: 46bd mov sp, r7 80106da: bc80 pop {r7} 80106dc: 4770 bx lr 080106de : * @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) { 80106de: b480 push {r7} 80106e0: b083 sub sp, #12 80106e2: af00 add r7, sp, #0 80106e4: 6078 str r0, [r7, #4] 80106e6: 460b mov r3, r1 80106e8: 807b strh r3, [r7, #2] 80106ea: 4613 mov r3, r2 80106ec: 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) 80106ee: 787b ldrb r3, [r7, #1] 80106f0: 2b00 cmp r3, #0 80106f2: d003 beq.n 80106fc { GPIOx->BSRR = GPIO_Pin; 80106f4: 887a ldrh r2, [r7, #2] 80106f6: 687b ldr r3, [r7, #4] 80106f8: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } 80106fa: e003 b.n 8010704 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; 80106fc: 887b ldrh r3, [r7, #2] 80106fe: 041a lsls r2, r3, #16 8010700: 687b ldr r3, [r7, #4] 8010702: 611a str r2, [r3, #16] } 8010704: bf00 nop 8010706: 370c adds r7, #12 8010708: 46bd mov sp, r7 801070a: bc80 pop {r7} 801070c: 4770 bx lr ... 08010710 : * @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) { 8010710: b480 push {r7} 8010712: af00 add r7, sp, #0 /* Enable access to RTC and backup registers */ *(__IO uint32_t *) CR_DBP_BB = (uint32_t)ENABLE; 8010714: 4b03 ldr r3, [pc, #12] @ (8010724 ) 8010716: 2201 movs r2, #1 8010718: 601a str r2, [r3, #0] } 801071a: bf00 nop 801071c: 46bd mov sp, r7 801071e: bc80 pop {r7} 8010720: 4770 bx lr 8010722: bf00 nop 8010724: 420e0020 .word 0x420e0020 08010728 : * - Peripheral clocks * - LSI, LSE and RTC clocks * @retval HAL_StatusTypeDef */ HAL_StatusTypeDef HAL_RCC_DeInit(void) { 8010728: b580 push {r7, lr} 801072a: b082 sub sp, #8 801072c: af00 add r7, sp, #0 uint32_t tickstart; /* Get Start Tick */ tickstart = HAL_GetTick(); 801072e: f7fd fb5b bl 800dde8 8010732: 6078 str r0, [r7, #4] /* Set HSION bit */ SET_BIT(RCC->CR, RCC_CR_HSION); 8010734: 4b60 ldr r3, [pc, #384] @ (80108b8 ) 8010736: 681b ldr r3, [r3, #0] 8010738: 4a5f ldr r2, [pc, #380] @ (80108b8 ) 801073a: f043 0301 orr.w r3, r3, #1 801073e: 6013 str r3, [r2, #0] /* Wait till HSI is ready */ while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) 8010740: e008 b.n 8010754 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010742: f7fd fb51 bl 800dde8 8010746: 4602 mov r2, r0 8010748: 687b ldr r3, [r7, #4] 801074a: 1ad3 subs r3, r2, r3 801074c: 2b02 cmp r3, #2 801074e: d901 bls.n 8010754 { return HAL_TIMEOUT; 8010750: 2303 movs r3, #3 8010752: e0ac b.n 80108ae while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) 8010754: 4b58 ldr r3, [pc, #352] @ (80108b8 ) 8010756: 681b ldr r3, [r3, #0] 8010758: f003 0302 and.w r3, r3, #2 801075c: 2b00 cmp r3, #0 801075e: d0f0 beq.n 8010742 } } /* Set HSITRIM bits to the reset value */ MODIFY_REG(RCC->CR, RCC_CR_HSITRIM, (0x10U << RCC_CR_HSITRIM_Pos)); 8010760: 4b55 ldr r3, [pc, #340] @ (80108b8 ) 8010762: 681b ldr r3, [r3, #0] 8010764: f023 03f8 bic.w r3, r3, #248 @ 0xf8 8010768: 4a53 ldr r2, [pc, #332] @ (80108b8 ) 801076a: f043 0380 orr.w r3, r3, #128 @ 0x80 801076e: 6013 str r3, [r2, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010770: f7fd fb3a bl 800dde8 8010774: 6078 str r0, [r7, #4] /* Reset CFGR register */ CLEAR_REG(RCC->CFGR); 8010776: 4b50 ldr r3, [pc, #320] @ (80108b8 ) 8010778: 2200 movs r2, #0 801077a: 605a str r2, [r3, #4] /* Wait till clock switch is ready */ while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) 801077c: e00a b.n 8010794 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 801077e: f7fd fb33 bl 800dde8 8010782: 4602 mov r2, r0 8010784: 687b ldr r3, [r7, #4] 8010786: 1ad3 subs r3, r2, r3 8010788: f241 3288 movw r2, #5000 @ 0x1388 801078c: 4293 cmp r3, r2 801078e: d901 bls.n 8010794 { return HAL_TIMEOUT; 8010790: 2303 movs r3, #3 8010792: e08c b.n 80108ae while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) 8010794: 4b48 ldr r3, [pc, #288] @ (80108b8 ) 8010796: 685b ldr r3, [r3, #4] 8010798: f003 030c and.w r3, r3, #12 801079c: 2b00 cmp r3, #0 801079e: d1ee bne.n 801077e } } /* Update the SystemCoreClock global variable */ SystemCoreClock = HSI_VALUE; 80107a0: 4b46 ldr r3, [pc, #280] @ (80108bc ) 80107a2: 4a47 ldr r2, [pc, #284] @ (80108c0 ) 80107a4: 601a str r2, [r3, #0] /* Adapt Systick interrupt period */ if (HAL_InitTick(uwTickPrio) != HAL_OK) 80107a6: 4b47 ldr r3, [pc, #284] @ (80108c4 ) 80107a8: 681b ldr r3, [r3, #0] 80107aa: 4618 mov r0, r3 80107ac: f7fd fada bl 800dd64 80107b0: 4603 mov r3, r0 80107b2: 2b00 cmp r3, #0 80107b4: d001 beq.n 80107ba { return HAL_ERROR; 80107b6: 2301 movs r3, #1 80107b8: e079 b.n 80108ae } /* Get Start Tick */ tickstart = HAL_GetTick(); 80107ba: f7fd fb15 bl 800dde8 80107be: 6078 str r0, [r7, #4] /* Second step is to clear PLLON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLLON); 80107c0: 4b3d ldr r3, [pc, #244] @ (80108b8 ) 80107c2: 681b ldr r3, [r3, #0] 80107c4: 4a3c ldr r2, [pc, #240] @ (80108b8 ) 80107c6: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 80107ca: 6013 str r3, [r2, #0] /* Wait till PLL is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) 80107cc: e008 b.n 80107e0 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80107ce: f7fd fb0b bl 800dde8 80107d2: 4602 mov r2, r0 80107d4: 687b ldr r3, [r7, #4] 80107d6: 1ad3 subs r3, r2, r3 80107d8: 2b02 cmp r3, #2 80107da: d901 bls.n 80107e0 { return HAL_TIMEOUT; 80107dc: 2303 movs r3, #3 80107de: e066 b.n 80108ae while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) 80107e0: 4b35 ldr r3, [pc, #212] @ (80108b8 ) 80107e2: 681b ldr r3, [r3, #0] 80107e4: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 80107e8: 2b00 cmp r3, #0 80107ea: d1f0 bne.n 80107ce } } /* Ensure to reset PLLSRC and PLLMUL bits */ CLEAR_REG(RCC->CFGR); 80107ec: 4b32 ldr r3, [pc, #200] @ (80108b8 ) 80107ee: 2200 movs r2, #0 80107f0: 605a str r2, [r3, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 80107f2: f7fd faf9 bl 800dde8 80107f6: 6078 str r0, [r7, #4] /* Reset HSEON & CSSON bits */ CLEAR_BIT(RCC->CR, RCC_CR_HSEON | RCC_CR_CSSON); 80107f8: 4b2f ldr r3, [pc, #188] @ (80108b8 ) 80107fa: 681b ldr r3, [r3, #0] 80107fc: 4a2e ldr r2, [pc, #184] @ (80108b8 ) 80107fe: f423 2310 bic.w r3, r3, #589824 @ 0x90000 8010802: 6013 str r3, [r2, #0] /* Wait till HSE is disabled */ while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) 8010804: e008 b.n 8010818 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010806: f7fd faef bl 800dde8 801080a: 4602 mov r2, r0 801080c: 687b ldr r3, [r7, #4] 801080e: 1ad3 subs r3, r2, r3 8010810: 2b64 cmp r3, #100 @ 0x64 8010812: d901 bls.n 8010818 { return HAL_TIMEOUT; 8010814: 2303 movs r3, #3 8010816: e04a b.n 80108ae while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) 8010818: 4b27 ldr r3, [pc, #156] @ (80108b8 ) 801081a: 681b ldr r3, [r3, #0] 801081c: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010820: 2b00 cmp r3, #0 8010822: d1f0 bne.n 8010806 } } /* Reset HSEBYP bit */ CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); 8010824: 4b24 ldr r3, [pc, #144] @ (80108b8 ) 8010826: 681b ldr r3, [r3, #0] 8010828: 4a23 ldr r2, [pc, #140] @ (80108b8 ) 801082a: f423 2380 bic.w r3, r3, #262144 @ 0x40000 801082e: 6013 str r3, [r2, #0] #if defined(RCC_PLL2_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); 8010830: f7fd fada bl 800dde8 8010834: 6078 str r0, [r7, #4] /* Clear PLL2ON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLL2ON); 8010836: 4b20 ldr r3, [pc, #128] @ (80108b8 ) 8010838: 681b ldr r3, [r3, #0] 801083a: 4a1f ldr r2, [pc, #124] @ (80108b8 ) 801083c: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 8010840: 6013 str r3, [r2, #0] /* Wait till PLL2 is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != RESET) 8010842: e008 b.n 8010856 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010844: f7fd fad0 bl 800dde8 8010848: 4602 mov r2, r0 801084a: 687b ldr r3, [r7, #4] 801084c: 1ad3 subs r3, r2, r3 801084e: 2b64 cmp r3, #100 @ 0x64 8010850: d901 bls.n 8010856 { return HAL_TIMEOUT; 8010852: 2303 movs r3, #3 8010854: e02b b.n 80108ae while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != RESET) 8010856: 4b18 ldr r3, [pc, #96] @ (80108b8 ) 8010858: 681b ldr r3, [r3, #0] 801085a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 801085e: 2b00 cmp r3, #0 8010860: d1f0 bne.n 8010844 } #endif /* RCC_PLL2_SUPPORT */ #if defined(RCC_PLLI2S_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); 8010862: f7fd fac1 bl 800dde8 8010866: 6078 str r0, [r7, #4] /* Clear PLL3ON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLL3ON); 8010868: 4b13 ldr r3, [pc, #76] @ (80108b8 ) 801086a: 681b ldr r3, [r3, #0] 801086c: 4a12 ldr r2, [pc, #72] @ (80108b8 ) 801086e: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8010872: 6013 str r3, [r2, #0] /* Wait till PLL3 is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != RESET) 8010874: e008 b.n 8010888 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) 8010876: f7fd fab7 bl 800dde8 801087a: 4602 mov r2, r0 801087c: 687b ldr r3, [r7, #4] 801087e: 1ad3 subs r3, r2, r3 8010880: 2b64 cmp r3, #100 @ 0x64 8010882: d901 bls.n 8010888 { return HAL_TIMEOUT; 8010884: 2303 movs r3, #3 8010886: e012 b.n 80108ae while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != RESET) 8010888: 4b0b ldr r3, [pc, #44] @ (80108b8 ) 801088a: 681b ldr r3, [r3, #0] 801088c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 8010890: 2b00 cmp r3, #0 8010892: d1f0 bne.n 8010876 } #endif /* RCC_PLLI2S_SUPPORT */ #if defined(RCC_CFGR2_PREDIV1) /* Reset CFGR2 register */ CLEAR_REG(RCC->CFGR2); 8010894: 4b08 ldr r3, [pc, #32] @ (80108b8 ) 8010896: 2200 movs r2, #0 8010898: 62da str r2, [r3, #44] @ 0x2c #endif /* RCC_CFGR2_PREDIV1 */ /* Reset all CSR flags */ SET_BIT(RCC->CSR, RCC_CSR_RMVF); 801089a: 4b07 ldr r3, [pc, #28] @ (80108b8 ) 801089c: 6a5b ldr r3, [r3, #36] @ 0x24 801089e: 4a06 ldr r2, [pc, #24] @ (80108b8 ) 80108a0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 80108a4: 6253 str r3, [r2, #36] @ 0x24 /* Disable all interrupts */ CLEAR_REG(RCC->CIR); 80108a6: 4b04 ldr r3, [pc, #16] @ (80108b8 ) 80108a8: 2200 movs r2, #0 80108aa: 609a str r2, [r3, #8] return HAL_OK; 80108ac: 2300 movs r3, #0 } 80108ae: 4618 mov r0, r3 80108b0: 3708 adds r7, #8 80108b2: 46bd mov sp, r7 80108b4: bd80 pop {r7, pc} 80108b6: bf00 nop 80108b8: 40021000 .word 0x40021000 80108bc: 20000068 .word 0x20000068 80108c0: 007a1200 .word 0x007a1200 80108c4: 2000006c .word 0x2000006c 080108c8 : * 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) { 80108c8: b580 push {r7, lr} 80108ca: b086 sub sp, #24 80108cc: af00 add r7, sp, #0 80108ce: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) 80108d0: 687b ldr r3, [r7, #4] 80108d2: 2b00 cmp r3, #0 80108d4: d101 bne.n 80108da { return HAL_ERROR; 80108d6: 2301 movs r3, #1 80108d8: e304 b.n 8010ee4 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) 80108da: 687b ldr r3, [r7, #4] 80108dc: 681b ldr r3, [r3, #0] 80108de: f003 0301 and.w r3, r3, #1 80108e2: 2b00 cmp r3, #0 80108e4: f000 8087 beq.w 80109f6 { /* 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) 80108e8: 4b92 ldr r3, [pc, #584] @ (8010b34 ) 80108ea: 685b ldr r3, [r3, #4] 80108ec: f003 030c and.w r3, r3, #12 80108f0: 2b04 cmp r3, #4 80108f2: d00c beq.n 801090e || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) 80108f4: 4b8f ldr r3, [pc, #572] @ (8010b34 ) 80108f6: 685b ldr r3, [r3, #4] 80108f8: f003 030c and.w r3, r3, #12 80108fc: 2b08 cmp r3, #8 80108fe: d112 bne.n 8010926 8010900: 4b8c ldr r3, [pc, #560] @ (8010b34 ) 8010902: 685b ldr r3, [r3, #4] 8010904: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010908: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 801090c: d10b bne.n 8010926 { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 801090e: 4b89 ldr r3, [pc, #548] @ (8010b34 ) 8010910: 681b ldr r3, [r3, #0] 8010912: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010916: 2b00 cmp r3, #0 8010918: d06c beq.n 80109f4 801091a: 687b ldr r3, [r7, #4] 801091c: 689b ldr r3, [r3, #8] 801091e: 2b00 cmp r3, #0 8010920: d168 bne.n 80109f4 { return HAL_ERROR; 8010922: 2301 movs r3, #1 8010924: e2de b.n 8010ee4 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); 8010926: 687b ldr r3, [r7, #4] 8010928: 689b ldr r3, [r3, #8] 801092a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 801092e: d106 bne.n 801093e 8010930: 4b80 ldr r3, [pc, #512] @ (8010b34 ) 8010932: 681b ldr r3, [r3, #0] 8010934: 4a7f ldr r2, [pc, #508] @ (8010b34 ) 8010936: f443 3380 orr.w r3, r3, #65536 @ 0x10000 801093a: 6013 str r3, [r2, #0] 801093c: e02e b.n 801099c 801093e: 687b ldr r3, [r7, #4] 8010940: 689b ldr r3, [r3, #8] 8010942: 2b00 cmp r3, #0 8010944: d10c bne.n 8010960 8010946: 4b7b ldr r3, [pc, #492] @ (8010b34 ) 8010948: 681b ldr r3, [r3, #0] 801094a: 4a7a ldr r2, [pc, #488] @ (8010b34 ) 801094c: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010950: 6013 str r3, [r2, #0] 8010952: 4b78 ldr r3, [pc, #480] @ (8010b34 ) 8010954: 681b ldr r3, [r3, #0] 8010956: 4a77 ldr r2, [pc, #476] @ (8010b34 ) 8010958: f423 2380 bic.w r3, r3, #262144 @ 0x40000 801095c: 6013 str r3, [r2, #0] 801095e: e01d b.n 801099c 8010960: 687b ldr r3, [r7, #4] 8010962: 689b ldr r3, [r3, #8] 8010964: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 8010968: d10c bne.n 8010984 801096a: 4b72 ldr r3, [pc, #456] @ (8010b34 ) 801096c: 681b ldr r3, [r3, #0] 801096e: 4a71 ldr r2, [pc, #452] @ (8010b34 ) 8010970: f443 2380 orr.w r3, r3, #262144 @ 0x40000 8010974: 6013 str r3, [r2, #0] 8010976: 4b6f ldr r3, [pc, #444] @ (8010b34 ) 8010978: 681b ldr r3, [r3, #0] 801097a: 4a6e ldr r2, [pc, #440] @ (8010b34 ) 801097c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 8010980: 6013 str r3, [r2, #0] 8010982: e00b b.n 801099c 8010984: 4b6b ldr r3, [pc, #428] @ (8010b34 ) 8010986: 681b ldr r3, [r3, #0] 8010988: 4a6a ldr r2, [pc, #424] @ (8010b34 ) 801098a: f423 3380 bic.w r3, r3, #65536 @ 0x10000 801098e: 6013 str r3, [r2, #0] 8010990: 4b68 ldr r3, [pc, #416] @ (8010b34 ) 8010992: 681b ldr r3, [r3, #0] 8010994: 4a67 ldr r2, [pc, #412] @ (8010b34 ) 8010996: f423 2380 bic.w r3, r3, #262144 @ 0x40000 801099a: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) 801099c: 687b ldr r3, [r7, #4] 801099e: 689b ldr r3, [r3, #8] 80109a0: 2b00 cmp r3, #0 80109a2: d013 beq.n 80109cc { /* Get Start Tick */ tickstart = HAL_GetTick(); 80109a4: f7fd fa20 bl 800dde8 80109a8: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 80109aa: e008 b.n 80109be { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 80109ac: f7fd fa1c bl 800dde8 80109b0: 4602 mov r2, r0 80109b2: 693b ldr r3, [r7, #16] 80109b4: 1ad3 subs r3, r2, r3 80109b6: 2b64 cmp r3, #100 @ 0x64 80109b8: d901 bls.n 80109be { return HAL_TIMEOUT; 80109ba: 2303 movs r3, #3 80109bc: e292 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 80109be: 4b5d ldr r3, [pc, #372] @ (8010b34 ) 80109c0: 681b ldr r3, [r3, #0] 80109c2: f403 3300 and.w r3, r3, #131072 @ 0x20000 80109c6: 2b00 cmp r3, #0 80109c8: d0f0 beq.n 80109ac 80109ca: e014 b.n 80109f6 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 80109cc: f7fd fa0c bl 800dde8 80109d0: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 80109d2: e008 b.n 80109e6 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 80109d4: f7fd fa08 bl 800dde8 80109d8: 4602 mov r2, r0 80109da: 693b ldr r3, [r7, #16] 80109dc: 1ad3 subs r3, r2, r3 80109de: 2b64 cmp r3, #100 @ 0x64 80109e0: d901 bls.n 80109e6 { return HAL_TIMEOUT; 80109e2: 2303 movs r3, #3 80109e4: e27e b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 80109e6: 4b53 ldr r3, [pc, #332] @ (8010b34 ) 80109e8: 681b ldr r3, [r3, #0] 80109ea: f403 3300 and.w r3, r3, #131072 @ 0x20000 80109ee: 2b00 cmp r3, #0 80109f0: d1f0 bne.n 80109d4 80109f2: e000 b.n 80109f6 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 80109f4: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) 80109f6: 687b ldr r3, [r7, #4] 80109f8: 681b ldr r3, [r3, #0] 80109fa: f003 0302 and.w r3, r3, #2 80109fe: 2b00 cmp r3, #0 8010a00: d063 beq.n 8010aca /* 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) 8010a02: 4b4c ldr r3, [pc, #304] @ (8010b34 ) 8010a04: 685b ldr r3, [r3, #4] 8010a06: f003 030c and.w r3, r3, #12 8010a0a: 2b00 cmp r3, #0 8010a0c: d00b beq.n 8010a26 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) 8010a0e: 4b49 ldr r3, [pc, #292] @ (8010b34 ) 8010a10: 685b ldr r3, [r3, #4] 8010a12: f003 030c and.w r3, r3, #12 8010a16: 2b08 cmp r3, #8 8010a18: d11c bne.n 8010a54 8010a1a: 4b46 ldr r3, [pc, #280] @ (8010b34 ) 8010a1c: 685b ldr r3, [r3, #4] 8010a1e: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010a22: 2b00 cmp r3, #0 8010a24: d116 bne.n 8010a54 { /* 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)) 8010a26: 4b43 ldr r3, [pc, #268] @ (8010b34 ) 8010a28: 681b ldr r3, [r3, #0] 8010a2a: f003 0302 and.w r3, r3, #2 8010a2e: 2b00 cmp r3, #0 8010a30: d005 beq.n 8010a3e 8010a32: 687b ldr r3, [r7, #4] 8010a34: 695b ldr r3, [r3, #20] 8010a36: 2b01 cmp r3, #1 8010a38: d001 beq.n 8010a3e { return HAL_ERROR; 8010a3a: 2301 movs r3, #1 8010a3c: e252 b.n 8010ee4 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8010a3e: 4b3d ldr r3, [pc, #244] @ (8010b34 ) 8010a40: 681b ldr r3, [r3, #0] 8010a42: f023 02f8 bic.w r2, r3, #248 @ 0xf8 8010a46: 687b ldr r3, [r7, #4] 8010a48: 699b ldr r3, [r3, #24] 8010a4a: 00db lsls r3, r3, #3 8010a4c: 4939 ldr r1, [pc, #228] @ (8010b34 ) 8010a4e: 4313 orrs r3, r2 8010a50: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) 8010a52: e03a b.n 8010aca } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) 8010a54: 687b ldr r3, [r7, #4] 8010a56: 695b ldr r3, [r3, #20] 8010a58: 2b00 cmp r3, #0 8010a5a: d020 beq.n 8010a9e { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); 8010a5c: 4b36 ldr r3, [pc, #216] @ (8010b38 ) 8010a5e: 2201 movs r2, #1 8010a60: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010a62: f7fd f9c1 bl 800dde8 8010a66: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010a68: e008 b.n 8010a7c { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010a6a: f7fd f9bd bl 800dde8 8010a6e: 4602 mov r2, r0 8010a70: 693b ldr r3, [r7, #16] 8010a72: 1ad3 subs r3, r2, r3 8010a74: 2b02 cmp r3, #2 8010a76: d901 bls.n 8010a7c { return HAL_TIMEOUT; 8010a78: 2303 movs r3, #3 8010a7a: e233 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010a7c: 4b2d ldr r3, [pc, #180] @ (8010b34 ) 8010a7e: 681b ldr r3, [r3, #0] 8010a80: f003 0302 and.w r3, r3, #2 8010a84: 2b00 cmp r3, #0 8010a86: d0f0 beq.n 8010a6a } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8010a88: 4b2a ldr r3, [pc, #168] @ (8010b34 ) 8010a8a: 681b ldr r3, [r3, #0] 8010a8c: f023 02f8 bic.w r2, r3, #248 @ 0xf8 8010a90: 687b ldr r3, [r7, #4] 8010a92: 699b ldr r3, [r3, #24] 8010a94: 00db lsls r3, r3, #3 8010a96: 4927 ldr r1, [pc, #156] @ (8010b34 ) 8010a98: 4313 orrs r3, r2 8010a9a: 600b str r3, [r1, #0] 8010a9c: e015 b.n 8010aca } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); 8010a9e: 4b26 ldr r3, [pc, #152] @ (8010b38 ) 8010aa0: 2200 movs r2, #0 8010aa2: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010aa4: f7fd f9a0 bl 800dde8 8010aa8: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8010aaa: e008 b.n 8010abe { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010aac: f7fd f99c bl 800dde8 8010ab0: 4602 mov r2, r0 8010ab2: 693b ldr r3, [r7, #16] 8010ab4: 1ad3 subs r3, r2, r3 8010ab6: 2b02 cmp r3, #2 8010ab8: d901 bls.n 8010abe { return HAL_TIMEOUT; 8010aba: 2303 movs r3, #3 8010abc: e212 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8010abe: 4b1d ldr r3, [pc, #116] @ (8010b34 ) 8010ac0: 681b ldr r3, [r3, #0] 8010ac2: f003 0302 and.w r3, r3, #2 8010ac6: 2b00 cmp r3, #0 8010ac8: d1f0 bne.n 8010aac } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) 8010aca: 687b ldr r3, [r7, #4] 8010acc: 681b ldr r3, [r3, #0] 8010ace: f003 0308 and.w r3, r3, #8 8010ad2: 2b00 cmp r3, #0 8010ad4: d03a beq.n 8010b4c { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) 8010ad6: 687b ldr r3, [r7, #4] 8010ad8: 69db ldr r3, [r3, #28] 8010ada: 2b00 cmp r3, #0 8010adc: d019 beq.n 8010b12 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); 8010ade: 4b17 ldr r3, [pc, #92] @ (8010b3c ) 8010ae0: 2201 movs r2, #1 8010ae2: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010ae4: f7fd f980 bl 800dde8 8010ae8: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8010aea: e008 b.n 8010afe { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8010aec: f7fd f97c bl 800dde8 8010af0: 4602 mov r2, r0 8010af2: 693b ldr r3, [r7, #16] 8010af4: 1ad3 subs r3, r2, r3 8010af6: 2b02 cmp r3, #2 8010af8: d901 bls.n 8010afe { return HAL_TIMEOUT; 8010afa: 2303 movs r3, #3 8010afc: e1f2 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8010afe: 4b0d ldr r3, [pc, #52] @ (8010b34 ) 8010b00: 6a5b ldr r3, [r3, #36] @ 0x24 8010b02: f003 0302 and.w r3, r3, #2 8010b06: 2b00 cmp r3, #0 8010b08: d0f0 beq.n 8010aec } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); 8010b0a: 2001 movs r0, #1 8010b0c: f000 fbca bl 80112a4 8010b10: e01c b.n 8010b4c } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); 8010b12: 4b0a ldr r3, [pc, #40] @ (8010b3c ) 8010b14: 2200 movs r2, #0 8010b16: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010b18: f7fd f966 bl 800dde8 8010b1c: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 8010b1e: e00f b.n 8010b40 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8010b20: f7fd f962 bl 800dde8 8010b24: 4602 mov r2, r0 8010b26: 693b ldr r3, [r7, #16] 8010b28: 1ad3 subs r3, r2, r3 8010b2a: 2b02 cmp r3, #2 8010b2c: d908 bls.n 8010b40 { return HAL_TIMEOUT; 8010b2e: 2303 movs r3, #3 8010b30: e1d8 b.n 8010ee4 8010b32: bf00 nop 8010b34: 40021000 .word 0x40021000 8010b38: 42420000 .word 0x42420000 8010b3c: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 8010b40: 4b9b ldr r3, [pc, #620] @ (8010db0 ) 8010b42: 6a5b ldr r3, [r3, #36] @ 0x24 8010b44: f003 0302 and.w r3, r3, #2 8010b48: 2b00 cmp r3, #0 8010b4a: d1e9 bne.n 8010b20 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) 8010b4c: 687b ldr r3, [r7, #4] 8010b4e: 681b ldr r3, [r3, #0] 8010b50: f003 0304 and.w r3, r3, #4 8010b54: 2b00 cmp r3, #0 8010b56: f000 80a6 beq.w 8010ca6 { FlagStatus pwrclkchanged = RESET; 8010b5a: 2300 movs r3, #0 8010b5c: 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()) 8010b5e: 4b94 ldr r3, [pc, #592] @ (8010db0 ) 8010b60: 69db ldr r3, [r3, #28] 8010b62: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010b66: 2b00 cmp r3, #0 8010b68: d10d bne.n 8010b86 { __HAL_RCC_PWR_CLK_ENABLE(); 8010b6a: 4b91 ldr r3, [pc, #580] @ (8010db0 ) 8010b6c: 69db ldr r3, [r3, #28] 8010b6e: 4a90 ldr r2, [pc, #576] @ (8010db0 ) 8010b70: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 8010b74: 61d3 str r3, [r2, #28] 8010b76: 4b8e ldr r3, [pc, #568] @ (8010db0 ) 8010b78: 69db ldr r3, [r3, #28] 8010b7a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010b7e: 60bb str r3, [r7, #8] 8010b80: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; 8010b82: 2301 movs r3, #1 8010b84: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010b86: 4b8b ldr r3, [pc, #556] @ (8010db4 ) 8010b88: 681b ldr r3, [r3, #0] 8010b8a: f403 7380 and.w r3, r3, #256 @ 0x100 8010b8e: 2b00 cmp r3, #0 8010b90: d118 bne.n 8010bc4 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8010b92: 4b88 ldr r3, [pc, #544] @ (8010db4 ) 8010b94: 681b ldr r3, [r3, #0] 8010b96: 4a87 ldr r2, [pc, #540] @ (8010db4 ) 8010b98: f443 7380 orr.w r3, r3, #256 @ 0x100 8010b9c: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 8010b9e: f7fd f923 bl 800dde8 8010ba2: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010ba4: e008 b.n 8010bb8 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 8010ba6: f7fd f91f bl 800dde8 8010baa: 4602 mov r2, r0 8010bac: 693b ldr r3, [r7, #16] 8010bae: 1ad3 subs r3, r2, r3 8010bb0: 2b64 cmp r3, #100 @ 0x64 8010bb2: d901 bls.n 8010bb8 { return HAL_TIMEOUT; 8010bb4: 2303 movs r3, #3 8010bb6: e195 b.n 8010ee4 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010bb8: 4b7e ldr r3, [pc, #504] @ (8010db4 ) 8010bba: 681b ldr r3, [r3, #0] 8010bbc: f403 7380 and.w r3, r3, #256 @ 0x100 8010bc0: 2b00 cmp r3, #0 8010bc2: d0f0 beq.n 8010ba6 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); 8010bc4: 687b ldr r3, [r7, #4] 8010bc6: 691b ldr r3, [r3, #16] 8010bc8: 2b01 cmp r3, #1 8010bca: d106 bne.n 8010bda 8010bcc: 4b78 ldr r3, [pc, #480] @ (8010db0 ) 8010bce: 6a1b ldr r3, [r3, #32] 8010bd0: 4a77 ldr r2, [pc, #476] @ (8010db0 ) 8010bd2: f043 0301 orr.w r3, r3, #1 8010bd6: 6213 str r3, [r2, #32] 8010bd8: e02d b.n 8010c36 8010bda: 687b ldr r3, [r7, #4] 8010bdc: 691b ldr r3, [r3, #16] 8010bde: 2b00 cmp r3, #0 8010be0: d10c bne.n 8010bfc 8010be2: 4b73 ldr r3, [pc, #460] @ (8010db0 ) 8010be4: 6a1b ldr r3, [r3, #32] 8010be6: 4a72 ldr r2, [pc, #456] @ (8010db0 ) 8010be8: f023 0301 bic.w r3, r3, #1 8010bec: 6213 str r3, [r2, #32] 8010bee: 4b70 ldr r3, [pc, #448] @ (8010db0 ) 8010bf0: 6a1b ldr r3, [r3, #32] 8010bf2: 4a6f ldr r2, [pc, #444] @ (8010db0 ) 8010bf4: f023 0304 bic.w r3, r3, #4 8010bf8: 6213 str r3, [r2, #32] 8010bfa: e01c b.n 8010c36 8010bfc: 687b ldr r3, [r7, #4] 8010bfe: 691b ldr r3, [r3, #16] 8010c00: 2b05 cmp r3, #5 8010c02: d10c bne.n 8010c1e 8010c04: 4b6a ldr r3, [pc, #424] @ (8010db0 ) 8010c06: 6a1b ldr r3, [r3, #32] 8010c08: 4a69 ldr r2, [pc, #420] @ (8010db0 ) 8010c0a: f043 0304 orr.w r3, r3, #4 8010c0e: 6213 str r3, [r2, #32] 8010c10: 4b67 ldr r3, [pc, #412] @ (8010db0 ) 8010c12: 6a1b ldr r3, [r3, #32] 8010c14: 4a66 ldr r2, [pc, #408] @ (8010db0 ) 8010c16: f043 0301 orr.w r3, r3, #1 8010c1a: 6213 str r3, [r2, #32] 8010c1c: e00b b.n 8010c36 8010c1e: 4b64 ldr r3, [pc, #400] @ (8010db0 ) 8010c20: 6a1b ldr r3, [r3, #32] 8010c22: 4a63 ldr r2, [pc, #396] @ (8010db0 ) 8010c24: f023 0301 bic.w r3, r3, #1 8010c28: 6213 str r3, [r2, #32] 8010c2a: 4b61 ldr r3, [pc, #388] @ (8010db0 ) 8010c2c: 6a1b ldr r3, [r3, #32] 8010c2e: 4a60 ldr r2, [pc, #384] @ (8010db0 ) 8010c30: f023 0304 bic.w r3, r3, #4 8010c34: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) 8010c36: 687b ldr r3, [r7, #4] 8010c38: 691b ldr r3, [r3, #16] 8010c3a: 2b00 cmp r3, #0 8010c3c: d015 beq.n 8010c6a { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010c3e: f7fd f8d3 bl 800dde8 8010c42: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8010c44: e00a b.n 8010c5c { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8010c46: f7fd f8cf bl 800dde8 8010c4a: 4602 mov r2, r0 8010c4c: 693b ldr r3, [r7, #16] 8010c4e: 1ad3 subs r3, r2, r3 8010c50: f241 3288 movw r2, #5000 @ 0x1388 8010c54: 4293 cmp r3, r2 8010c56: d901 bls.n 8010c5c { return HAL_TIMEOUT; 8010c58: 2303 movs r3, #3 8010c5a: e143 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8010c5c: 4b54 ldr r3, [pc, #336] @ (8010db0 ) 8010c5e: 6a1b ldr r3, [r3, #32] 8010c60: f003 0302 and.w r3, r3, #2 8010c64: 2b00 cmp r3, #0 8010c66: d0ee beq.n 8010c46 8010c68: e014 b.n 8010c94 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010c6a: f7fd f8bd bl 800dde8 8010c6e: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8010c70: e00a b.n 8010c88 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8010c72: f7fd f8b9 bl 800dde8 8010c76: 4602 mov r2, r0 8010c78: 693b ldr r3, [r7, #16] 8010c7a: 1ad3 subs r3, r2, r3 8010c7c: f241 3288 movw r2, #5000 @ 0x1388 8010c80: 4293 cmp r3, r2 8010c82: d901 bls.n 8010c88 { return HAL_TIMEOUT; 8010c84: 2303 movs r3, #3 8010c86: e12d b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8010c88: 4b49 ldr r3, [pc, #292] @ (8010db0 ) 8010c8a: 6a1b ldr r3, [r3, #32] 8010c8c: f003 0302 and.w r3, r3, #2 8010c90: 2b00 cmp r3, #0 8010c92: d1ee bne.n 8010c72 } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 8010c94: 7dfb ldrb r3, [r7, #23] 8010c96: 2b01 cmp r3, #1 8010c98: d105 bne.n 8010ca6 { __HAL_RCC_PWR_CLK_DISABLE(); 8010c9a: 4b45 ldr r3, [pc, #276] @ (8010db0 ) 8010c9c: 69db ldr r3, [r3, #28] 8010c9e: 4a44 ldr r2, [pc, #272] @ (8010db0 ) 8010ca0: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8010ca4: 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) 8010ca6: 687b ldr r3, [r7, #4] 8010ca8: 6adb ldr r3, [r3, #44] @ 0x2c 8010caa: 2b00 cmp r3, #0 8010cac: f000 808c beq.w 8010dc8 { /* 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) && \ 8010cb0: 4b3f ldr r3, [pc, #252] @ (8010db0 ) 8010cb2: 685b ldr r3, [r3, #4] 8010cb4: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010cb8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010cbc: d10e bne.n 8010cdc (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ 8010cbe: 4b3c ldr r3, [pc, #240] @ (8010db0 ) 8010cc0: 685b ldr r3, [r3, #4] 8010cc2: f003 030c and.w r3, r3, #12 if ((__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE) && \ 8010cc6: 2b08 cmp r3, #8 8010cc8: d108 bne.n 8010cdc ((READ_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) == RCC_CFGR2_PREDIV1SRC_PLL2)) 8010cca: 4b39 ldr r3, [pc, #228] @ (8010db0 ) 8010ccc: 6adb ldr r3, [r3, #44] @ 0x2c 8010cce: f403 3380 and.w r3, r3, #65536 @ 0x10000 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ 8010cd2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010cd6: d101 bne.n 8010cdc { return HAL_ERROR; 8010cd8: 2301 movs r3, #1 8010cda: e103 b.n 8010ee4 } else { if ((RCC_OscInitStruct->PLL2.PLL2State) == RCC_PLL2_ON) 8010cdc: 687b ldr r3, [r7, #4] 8010cde: 6adb ldr r3, [r3, #44] @ 0x2c 8010ce0: 2b02 cmp r3, #2 8010ce2: d14e bne.n 8010d82 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) && \ 8010ce4: 4b32 ldr r3, [pc, #200] @ (8010db0 ) 8010ce6: 681b ldr r3, [r3, #0] 8010ce8: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010cec: 2b00 cmp r3, #0 8010cee: d009 beq.n 8010d04 (__HAL_RCC_HSE_GET_PREDIV2() != RCC_OscInitStruct->PLL2.HSEPrediv2Value)) 8010cf0: 4b2f ldr r3, [pc, #188] @ (8010db0 ) 8010cf2: 6adb ldr r3, [r3, #44] @ 0x2c 8010cf4: f003 02f0 and.w r2, r3, #240 @ 0xf0 8010cf8: 687b ldr r3, [r7, #4] 8010cfa: 6b5b ldr r3, [r3, #52] @ 0x34 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON) && \ 8010cfc: 429a cmp r2, r3 8010cfe: d001 beq.n 8010d04 { return HAL_ERROR; 8010d00: 2301 movs r3, #1 8010d02: e0ef b.n 8010ee4 } /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); 8010d04: 4b2c ldr r3, [pc, #176] @ (8010db8 ) 8010d06: 2200 movs r2, #0 8010d08: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010d0a: f7fd f86d bl 800dde8 8010d0e: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010d10: e008 b.n 8010d24 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010d12: f7fd f869 bl 800dde8 8010d16: 4602 mov r2, r0 8010d18: 693b ldr r3, [r7, #16] 8010d1a: 1ad3 subs r3, r2, r3 8010d1c: 2b64 cmp r3, #100 @ 0x64 8010d1e: d901 bls.n 8010d24 { return HAL_TIMEOUT; 8010d20: 2303 movs r3, #3 8010d22: e0df b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010d24: 4b22 ldr r3, [pc, #136] @ (8010db0 ) 8010d26: 681b ldr r3, [r3, #0] 8010d28: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010d2c: 2b00 cmp r3, #0 8010d2e: d1f0 bne.n 8010d12 } } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(RCC_OscInitStruct->PLL2.HSEPrediv2Value); 8010d30: 4b1f ldr r3, [pc, #124] @ (8010db0 ) 8010d32: 6adb ldr r3, [r3, #44] @ 0x2c 8010d34: f023 02f0 bic.w r2, r3, #240 @ 0xf0 8010d38: 687b ldr r3, [r7, #4] 8010d3a: 6b5b ldr r3, [r3, #52] @ 0x34 8010d3c: 491c ldr r1, [pc, #112] @ (8010db0 ) 8010d3e: 4313 orrs r3, r2 8010d40: 62cb str r3, [r1, #44] @ 0x2c /* Configure the main PLL2 multiplication factors. */ __HAL_RCC_PLL2_CONFIG(RCC_OscInitStruct->PLL2.PLL2MUL); 8010d42: 4b1b ldr r3, [pc, #108] @ (8010db0 ) 8010d44: 6adb ldr r3, [r3, #44] @ 0x2c 8010d46: f423 6270 bic.w r2, r3, #3840 @ 0xf00 8010d4a: 687b ldr r3, [r7, #4] 8010d4c: 6b1b ldr r3, [r3, #48] @ 0x30 8010d4e: 4918 ldr r1, [pc, #96] @ (8010db0 ) 8010d50: 4313 orrs r3, r2 8010d52: 62cb str r3, [r1, #44] @ 0x2c /* Enable the main PLL2. */ __HAL_RCC_PLL2_ENABLE(); 8010d54: 4b18 ldr r3, [pc, #96] @ (8010db8 ) 8010d56: 2201 movs r2, #1 8010d58: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010d5a: f7fd f845 bl 800dde8 8010d5e: 6138 str r0, [r7, #16] /* Wait till PLL2 is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) 8010d60: e008 b.n 8010d74 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010d62: f7fd f841 bl 800dde8 8010d66: 4602 mov r2, r0 8010d68: 693b ldr r3, [r7, #16] 8010d6a: 1ad3 subs r3, r2, r3 8010d6c: 2b64 cmp r3, #100 @ 0x64 8010d6e: d901 bls.n 8010d74 { return HAL_TIMEOUT; 8010d70: 2303 movs r3, #3 8010d72: e0b7 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) 8010d74: 4b0e ldr r3, [pc, #56] @ (8010db0 ) 8010d76: 681b ldr r3, [r3, #0] 8010d78: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010d7c: 2b00 cmp r3, #0 8010d7e: d0f0 beq.n 8010d62 8010d80: e022 b.n 8010dc8 } } else { /* Set PREDIV1 source to HSE */ CLEAR_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC); 8010d82: 4b0b ldr r3, [pc, #44] @ (8010db0 ) 8010d84: 6adb ldr r3, [r3, #44] @ 0x2c 8010d86: 4a0a ldr r2, [pc, #40] @ (8010db0 ) 8010d88: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010d8c: 62d3 str r3, [r2, #44] @ 0x2c /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); 8010d8e: 4b0a ldr r3, [pc, #40] @ (8010db8 ) 8010d90: 2200 movs r2, #0 8010d92: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010d94: f7fd f828 bl 800dde8 8010d98: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010d9a: e00f b.n 8010dbc { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010d9c: f7fd f824 bl 800dde8 8010da0: 4602 mov r2, r0 8010da2: 693b ldr r3, [r7, #16] 8010da4: 1ad3 subs r3, r2, r3 8010da6: 2b64 cmp r3, #100 @ 0x64 8010da8: d908 bls.n 8010dbc { return HAL_TIMEOUT; 8010daa: 2303 movs r3, #3 8010dac: e09a b.n 8010ee4 8010dae: bf00 nop 8010db0: 40021000 .word 0x40021000 8010db4: 40007000 .word 0x40007000 8010db8: 42420068 .word 0x42420068 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8010dbc: 4b4b ldr r3, [pc, #300] @ (8010eec ) 8010dbe: 681b ldr r3, [r3, #0] 8010dc0: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010dc4: 2b00 cmp r3, #0 8010dc6: d1e9 bne.n 8010d9c #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) 8010dc8: 687b ldr r3, [r7, #4] 8010dca: 6a1b ldr r3, [r3, #32] 8010dcc: 2b00 cmp r3, #0 8010dce: f000 8088 beq.w 8010ee2 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) 8010dd2: 4b46 ldr r3, [pc, #280] @ (8010eec ) 8010dd4: 685b ldr r3, [r3, #4] 8010dd6: f003 030c and.w r3, r3, #12 8010dda: 2b08 cmp r3, #8 8010ddc: d068 beq.n 8010eb0 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) 8010dde: 687b ldr r3, [r7, #4] 8010de0: 6a1b ldr r3, [r3, #32] 8010de2: 2b02 cmp r3, #2 8010de4: d14d bne.n 8010e82 /* 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(); 8010de6: 4b42 ldr r3, [pc, #264] @ (8010ef0 ) 8010de8: 2200 movs r2, #0 8010dea: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010dec: f7fc fffc bl 800dde8 8010df0: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8010df2: e008 b.n 8010e06 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 8010df4: f7fc fff8 bl 800dde8 8010df8: 4602 mov r2, r0 8010dfa: 693b ldr r3, [r7, #16] 8010dfc: 1ad3 subs r3, r2, r3 8010dfe: 2b02 cmp r3, #2 8010e00: d901 bls.n 8010e06 { return HAL_TIMEOUT; 8010e02: 2303 movs r3, #3 8010e04: e06e b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8010e06: 4b39 ldr r3, [pc, #228] @ (8010eec ) 8010e08: 681b ldr r3, [r3, #0] 8010e0a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8010e0e: 2b00 cmp r3, #0 8010e10: d1f0 bne.n 8010df4 } } /* 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) 8010e12: 687b ldr r3, [r7, #4] 8010e14: 6a5b ldr r3, [r3, #36] @ 0x24 8010e16: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010e1a: d10f bne.n 8010e3c 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); 8010e1c: 4b33 ldr r3, [pc, #204] @ (8010eec ) 8010e1e: 6ada ldr r2, [r3, #44] @ 0x2c 8010e20: 687b ldr r3, [r7, #4] 8010e22: 685b ldr r3, [r3, #4] 8010e24: 4931 ldr r1, [pc, #196] @ (8010eec ) 8010e26: 4313 orrs r3, r2 8010e28: 62cb str r3, [r1, #44] @ 0x2c #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); 8010e2a: 4b30 ldr r3, [pc, #192] @ (8010eec ) 8010e2c: 6adb ldr r3, [r3, #44] @ 0x2c 8010e2e: f023 020f bic.w r2, r3, #15 8010e32: 687b ldr r3, [r7, #4] 8010e34: 68db ldr r3, [r3, #12] 8010e36: 492d ldr r1, [pc, #180] @ (8010eec ) 8010e38: 4313 orrs r3, r2 8010e3a: 62cb str r3, [r1, #44] @ 0x2c } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, 8010e3c: 4b2b ldr r3, [pc, #172] @ (8010eec ) 8010e3e: 685b ldr r3, [r3, #4] 8010e40: f423 1274 bic.w r2, r3, #3997696 @ 0x3d0000 8010e44: 687b ldr r3, [r7, #4] 8010e46: 6a59 ldr r1, [r3, #36] @ 0x24 8010e48: 687b ldr r3, [r7, #4] 8010e4a: 6a9b ldr r3, [r3, #40] @ 0x28 8010e4c: 430b orrs r3, r1 8010e4e: 4927 ldr r1, [pc, #156] @ (8010eec ) 8010e50: 4313 orrs r3, r2 8010e52: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); 8010e54: 4b26 ldr r3, [pc, #152] @ (8010ef0 ) 8010e56: 2201 movs r2, #1 8010e58: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010e5a: f7fc ffc5 bl 800dde8 8010e5e: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 8010e60: e008 b.n 8010e74 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 8010e62: f7fc ffc1 bl 800dde8 8010e66: 4602 mov r2, r0 8010e68: 693b ldr r3, [r7, #16] 8010e6a: 1ad3 subs r3, r2, r3 8010e6c: 2b02 cmp r3, #2 8010e6e: d901 bls.n 8010e74 { return HAL_TIMEOUT; 8010e70: 2303 movs r3, #3 8010e72: e037 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 8010e74: 4b1d ldr r3, [pc, #116] @ (8010eec ) 8010e76: 681b ldr r3, [r3, #0] 8010e78: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8010e7c: 2b00 cmp r3, #0 8010e7e: d0f0 beq.n 8010e62 8010e80: e02f b.n 8010ee2 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 8010e82: 4b1b ldr r3, [pc, #108] @ (8010ef0 ) 8010e84: 2200 movs r2, #0 8010e86: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010e88: f7fc ffae bl 800dde8 8010e8c: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8010e8e: e008 b.n 8010ea2 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 8010e90: f7fc ffaa bl 800dde8 8010e94: 4602 mov r2, r0 8010e96: 693b ldr r3, [r7, #16] 8010e98: 1ad3 subs r3, r2, r3 8010e9a: 2b02 cmp r3, #2 8010e9c: d901 bls.n 8010ea2 { return HAL_TIMEOUT; 8010e9e: 2303 movs r3, #3 8010ea0: e020 b.n 8010ee4 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8010ea2: 4b12 ldr r3, [pc, #72] @ (8010eec ) 8010ea4: 681b ldr r3, [r3, #0] 8010ea6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8010eaa: 2b00 cmp r3, #0 8010eac: d1f0 bne.n 8010e90 8010eae: e018 b.n 8010ee2 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) 8010eb0: 687b ldr r3, [r7, #4] 8010eb2: 6a1b ldr r3, [r3, #32] 8010eb4: 2b01 cmp r3, #1 8010eb6: d101 bne.n 8010ebc { return HAL_ERROR; 8010eb8: 2301 movs r3, #1 8010eba: e013 b.n 8010ee4 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; 8010ebc: 4b0b ldr r3, [pc, #44] @ (8010eec ) 8010ebe: 685b ldr r3, [r3, #4] 8010ec0: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8010ec2: 68fb ldr r3, [r7, #12] 8010ec4: f403 3280 and.w r2, r3, #65536 @ 0x10000 8010ec8: 687b ldr r3, [r7, #4] 8010eca: 6a5b ldr r3, [r3, #36] @ 0x24 8010ecc: 429a cmp r2, r3 8010ece: d106 bne.n 8010ede (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) 8010ed0: 68fb ldr r3, [r7, #12] 8010ed2: f403 1270 and.w r2, r3, #3932160 @ 0x3c0000 8010ed6: 687b ldr r3, [r7, #4] 8010ed8: 6a9b ldr r3, [r3, #40] @ 0x28 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8010eda: 429a cmp r2, r3 8010edc: d001 beq.n 8010ee2 { return HAL_ERROR; 8010ede: 2301 movs r3, #1 8010ee0: e000 b.n 8010ee4 } } } } return HAL_OK; 8010ee2: 2300 movs r3, #0 } 8010ee4: 4618 mov r0, r3 8010ee6: 3718 adds r7, #24 8010ee8: 46bd mov sp, r7 8010eea: bd80 pop {r7, pc} 8010eec: 40021000 .word 0x40021000 8010ef0: 42420060 .word 0x42420060 08010ef4 : * 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) { 8010ef4: b580 push {r7, lr} 8010ef6: b084 sub sp, #16 8010ef8: af00 add r7, sp, #0 8010efa: 6078 str r0, [r7, #4] 8010efc: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) 8010efe: 687b ldr r3, [r7, #4] 8010f00: 2b00 cmp r3, #0 8010f02: d101 bne.n 8010f08 { return HAL_ERROR; 8010f04: 2301 movs r3, #1 8010f06: e0d0 b.n 80110aa 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()) 8010f08: 4b6a ldr r3, [pc, #424] @ (80110b4 ) 8010f0a: 681b ldr r3, [r3, #0] 8010f0c: f003 0307 and.w r3, r3, #7 8010f10: 683a ldr r2, [r7, #0] 8010f12: 429a cmp r2, r3 8010f14: d910 bls.n 8010f38 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 8010f16: 4b67 ldr r3, [pc, #412] @ (80110b4 ) 8010f18: 681b ldr r3, [r3, #0] 8010f1a: f023 0207 bic.w r2, r3, #7 8010f1e: 4965 ldr r1, [pc, #404] @ (80110b4 ) 8010f20: 683b ldr r3, [r7, #0] 8010f22: 4313 orrs r3, r2 8010f24: 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) 8010f26: 4b63 ldr r3, [pc, #396] @ (80110b4 ) 8010f28: 681b ldr r3, [r3, #0] 8010f2a: f003 0307 and.w r3, r3, #7 8010f2e: 683a ldr r2, [r7, #0] 8010f30: 429a cmp r2, r3 8010f32: d001 beq.n 8010f38 { return HAL_ERROR; 8010f34: 2301 movs r3, #1 8010f36: e0b8 b.n 80110aa } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) 8010f38: 687b ldr r3, [r7, #4] 8010f3a: 681b ldr r3, [r3, #0] 8010f3c: f003 0302 and.w r3, r3, #2 8010f40: 2b00 cmp r3, #0 8010f42: d020 beq.n 8010f86 { /* 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) 8010f44: 687b ldr r3, [r7, #4] 8010f46: 681b ldr r3, [r3, #0] 8010f48: f003 0304 and.w r3, r3, #4 8010f4c: 2b00 cmp r3, #0 8010f4e: d005 beq.n 8010f5c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); 8010f50: 4b59 ldr r3, [pc, #356] @ (80110b8 ) 8010f52: 685b ldr r3, [r3, #4] 8010f54: 4a58 ldr r2, [pc, #352] @ (80110b8 ) 8010f56: f443 63e0 orr.w r3, r3, #1792 @ 0x700 8010f5a: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 8010f5c: 687b ldr r3, [r7, #4] 8010f5e: 681b ldr r3, [r3, #0] 8010f60: f003 0308 and.w r3, r3, #8 8010f64: 2b00 cmp r3, #0 8010f66: d005 beq.n 8010f74 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); 8010f68: 4b53 ldr r3, [pc, #332] @ (80110b8 ) 8010f6a: 685b ldr r3, [r3, #4] 8010f6c: 4a52 ldr r2, [pc, #328] @ (80110b8 ) 8010f6e: f443 5360 orr.w r3, r3, #14336 @ 0x3800 8010f72: 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); 8010f74: 4b50 ldr r3, [pc, #320] @ (80110b8 ) 8010f76: 685b ldr r3, [r3, #4] 8010f78: f023 02f0 bic.w r2, r3, #240 @ 0xf0 8010f7c: 687b ldr r3, [r7, #4] 8010f7e: 689b ldr r3, [r3, #8] 8010f80: 494d ldr r1, [pc, #308] @ (80110b8 ) 8010f82: 4313 orrs r3, r2 8010f84: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) 8010f86: 687b ldr r3, [r7, #4] 8010f88: 681b ldr r3, [r3, #0] 8010f8a: f003 0301 and.w r3, r3, #1 8010f8e: 2b00 cmp r3, #0 8010f90: d040 beq.n 8011014 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) 8010f92: 687b ldr r3, [r7, #4] 8010f94: 685b ldr r3, [r3, #4] 8010f96: 2b01 cmp r3, #1 8010f98: d107 bne.n 8010faa { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8010f9a: 4b47 ldr r3, [pc, #284] @ (80110b8 ) 8010f9c: 681b ldr r3, [r3, #0] 8010f9e: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010fa2: 2b00 cmp r3, #0 8010fa4: d115 bne.n 8010fd2 { return HAL_ERROR; 8010fa6: 2301 movs r3, #1 8010fa8: e07f b.n 80110aa } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) 8010faa: 687b ldr r3, [r7, #4] 8010fac: 685b ldr r3, [r3, #4] 8010fae: 2b02 cmp r3, #2 8010fb0: d107 bne.n 8010fc2 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 8010fb2: 4b41 ldr r3, [pc, #260] @ (80110b8 ) 8010fb4: 681b ldr r3, [r3, #0] 8010fb6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8010fba: 2b00 cmp r3, #0 8010fbc: d109 bne.n 8010fd2 { return HAL_ERROR; 8010fbe: 2301 movs r3, #1 8010fc0: e073 b.n 80110aa } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010fc2: 4b3d ldr r3, [pc, #244] @ (80110b8 ) 8010fc4: 681b ldr r3, [r3, #0] 8010fc6: f003 0302 and.w r3, r3, #2 8010fca: 2b00 cmp r3, #0 8010fcc: d101 bne.n 8010fd2 { return HAL_ERROR; 8010fce: 2301 movs r3, #1 8010fd0: e06b b.n 80110aa } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); 8010fd2: 4b39 ldr r3, [pc, #228] @ (80110b8 ) 8010fd4: 685b ldr r3, [r3, #4] 8010fd6: f023 0203 bic.w r2, r3, #3 8010fda: 687b ldr r3, [r7, #4] 8010fdc: 685b ldr r3, [r3, #4] 8010fde: 4936 ldr r1, [pc, #216] @ (80110b8 ) 8010fe0: 4313 orrs r3, r2 8010fe2: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010fe4: f7fc ff00 bl 800dde8 8010fe8: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8010fea: e00a b.n 8011002 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 8010fec: f7fc fefc bl 800dde8 8010ff0: 4602 mov r2, r0 8010ff2: 68fb ldr r3, [r7, #12] 8010ff4: 1ad3 subs r3, r2, r3 8010ff6: f241 3288 movw r2, #5000 @ 0x1388 8010ffa: 4293 cmp r3, r2 8010ffc: d901 bls.n 8011002 { return HAL_TIMEOUT; 8010ffe: 2303 movs r3, #3 8011000: e053 b.n 80110aa while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8011002: 4b2d ldr r3, [pc, #180] @ (80110b8 ) 8011004: 685b ldr r3, [r3, #4] 8011006: f003 020c and.w r2, r3, #12 801100a: 687b ldr r3, [r7, #4] 801100c: 685b ldr r3, [r3, #4] 801100e: 009b lsls r3, r3, #2 8011010: 429a cmp r2, r3 8011012: d1eb bne.n 8010fec } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) 8011014: 4b27 ldr r3, [pc, #156] @ (80110b4 ) 8011016: 681b ldr r3, [r3, #0] 8011018: f003 0307 and.w r3, r3, #7 801101c: 683a ldr r2, [r7, #0] 801101e: 429a cmp r2, r3 8011020: d210 bcs.n 8011044 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 8011022: 4b24 ldr r3, [pc, #144] @ (80110b4 ) 8011024: 681b ldr r3, [r3, #0] 8011026: f023 0207 bic.w r2, r3, #7 801102a: 4922 ldr r1, [pc, #136] @ (80110b4 ) 801102c: 683b ldr r3, [r7, #0] 801102e: 4313 orrs r3, r2 8011030: 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) 8011032: 4b20 ldr r3, [pc, #128] @ (80110b4 ) 8011034: 681b ldr r3, [r3, #0] 8011036: f003 0307 and.w r3, r3, #7 801103a: 683a ldr r2, [r7, #0] 801103c: 429a cmp r2, r3 801103e: d001 beq.n 8011044 { return HAL_ERROR; 8011040: 2301 movs r3, #1 8011042: e032 b.n 80110aa } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) 8011044: 687b ldr r3, [r7, #4] 8011046: 681b ldr r3, [r3, #0] 8011048: f003 0304 and.w r3, r3, #4 801104c: 2b00 cmp r3, #0 801104e: d008 beq.n 8011062 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); 8011050: 4b19 ldr r3, [pc, #100] @ (80110b8 ) 8011052: 685b ldr r3, [r3, #4] 8011054: f423 62e0 bic.w r2, r3, #1792 @ 0x700 8011058: 687b ldr r3, [r7, #4] 801105a: 68db ldr r3, [r3, #12] 801105c: 4916 ldr r1, [pc, #88] @ (80110b8 ) 801105e: 4313 orrs r3, r2 8011060: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 8011062: 687b ldr r3, [r7, #4] 8011064: 681b ldr r3, [r3, #0] 8011066: f003 0308 and.w r3, r3, #8 801106a: 2b00 cmp r3, #0 801106c: d009 beq.n 8011082 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); 801106e: 4b12 ldr r3, [pc, #72] @ (80110b8 ) 8011070: 685b ldr r3, [r3, #4] 8011072: f423 5260 bic.w r2, r3, #14336 @ 0x3800 8011076: 687b ldr r3, [r7, #4] 8011078: 691b ldr r3, [r3, #16] 801107a: 00db lsls r3, r3, #3 801107c: 490e ldr r1, [pc, #56] @ (80110b8 ) 801107e: 4313 orrs r3, r2 8011080: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; 8011082: f000 f821 bl 80110c8 8011086: 4602 mov r2, r0 8011088: 4b0b ldr r3, [pc, #44] @ (80110b8 ) 801108a: 685b ldr r3, [r3, #4] 801108c: 091b lsrs r3, r3, #4 801108e: f003 030f and.w r3, r3, #15 8011092: 490a ldr r1, [pc, #40] @ (80110bc ) 8011094: 5ccb ldrb r3, [r1, r3] 8011096: fa22 f303 lsr.w r3, r2, r3 801109a: 4a09 ldr r2, [pc, #36] @ (80110c0 ) 801109c: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); 801109e: 4b09 ldr r3, [pc, #36] @ (80110c4 ) 80110a0: 681b ldr r3, [r3, #0] 80110a2: 4618 mov r0, r3 80110a4: f7fc fe5e bl 800dd64 return HAL_OK; 80110a8: 2300 movs r3, #0 } 80110aa: 4618 mov r0, r3 80110ac: 3710 adds r7, #16 80110ae: 46bd mov sp, r7 80110b0: bd80 pop {r7, pc} 80110b2: bf00 nop 80110b4: 40022000 .word 0x40022000 80110b8: 40021000 .word 0x40021000 80110bc: 08016fcc .word 0x08016fcc 80110c0: 20000068 .word 0x20000068 80110c4: 2000006c .word 0x2000006c 080110c8 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { 80110c8: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} 80110cc: b08e sub sp, #56 @ 0x38 80110ce: 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; 80110d0: 2300 movs r3, #0 80110d2: 62fb str r3, [r7, #44] @ 0x2c 80110d4: 2300 movs r3, #0 80110d6: 62bb str r3, [r7, #40] @ 0x28 80110d8: 2300 movs r3, #0 80110da: 637b str r3, [r7, #52] @ 0x34 80110dc: 2300 movs r3, #0 80110de: 627b str r3, [r7, #36] @ 0x24 uint32_t sysclockfreq = 0U; 80110e0: 2300 movs r3, #0 80110e2: 633b str r3, [r7, #48] @ 0x30 #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; 80110e4: 2300 movs r3, #0 80110e6: 623b str r3, [r7, #32] 80110e8: 2300 movs r3, #0 80110ea: 61fb str r3, [r7, #28] #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; 80110ec: 4b4e ldr r3, [pc, #312] @ (8011228 ) 80110ee: 685b ldr r3, [r3, #4] 80110f0: 62fb str r3, [r7, #44] @ 0x2c /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) 80110f2: 6afb ldr r3, [r7, #44] @ 0x2c 80110f4: f003 030c and.w r3, r3, #12 80110f8: 2b04 cmp r3, #4 80110fa: d002 beq.n 8011102 80110fc: 2b08 cmp r3, #8 80110fe: d003 beq.n 8011108 8011100: e089 b.n 8011216 { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; 8011102: 4b4a ldr r3, [pc, #296] @ (801122c ) 8011104: 633b str r3, [r7, #48] @ 0x30 break; 8011106: e089 b.n 801121c } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 8011108: 6afb ldr r3, [r7, #44] @ 0x2c 801110a: 0c9b lsrs r3, r3, #18 801110c: f003 020f and.w r2, r3, #15 8011110: 4b47 ldr r3, [pc, #284] @ (8011230 ) 8011112: 5c9b ldrb r3, [r3, r2] 8011114: 627b str r3, [r7, #36] @ 0x24 if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 8011116: 6afb ldr r3, [r7, #44] @ 0x2c 8011118: f403 3380 and.w r3, r3, #65536 @ 0x10000 801111c: 2b00 cmp r3, #0 801111e: d072 beq.n 8011206 { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; 8011120: 4b41 ldr r3, [pc, #260] @ (8011228 ) 8011122: 6adb ldr r3, [r3, #44] @ 0x2c 8011124: f003 020f and.w r2, r3, #15 8011128: 4b42 ldr r3, [pc, #264] @ (8011234 ) 801112a: 5c9b ldrb r3, [r3, r2] 801112c: 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)) 801112e: 4b3e ldr r3, [pc, #248] @ (8011228 ) 8011130: 6adb ldr r3, [r3, #44] @ 0x2c 8011132: f403 3380 and.w r3, r3, #65536 @ 0x10000 8011136: 2b00 cmp r3, #0 8011138: d053 beq.n 80111e2 { /* 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; 801113a: 4b3b ldr r3, [pc, #236] @ (8011228 ) 801113c: 6adb ldr r3, [r3, #44] @ 0x2c 801113e: 091b lsrs r3, r3, #4 8011140: f003 030f and.w r3, r3, #15 8011144: 3301 adds r3, #1 8011146: 623b str r3, [r7, #32] pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; 8011148: 4b37 ldr r3, [pc, #220] @ (8011228 ) 801114a: 6adb ldr r3, [r3, #44] @ 0x2c 801114c: 0a1b lsrs r3, r3, #8 801114e: f003 030f and.w r3, r3, #15 8011152: 3302 adds r3, #2 8011154: 61fb str r3, [r7, #28] pllclk = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pll2mul * (uint64_t)pllmul) / ((uint64_t)prediv2 * (uint64_t)prediv)); 8011156: 69fb ldr r3, [r7, #28] 8011158: 2200 movs r2, #0 801115a: 469a mov sl, r3 801115c: 4693 mov fp, r2 801115e: 6a7b ldr r3, [r7, #36] @ 0x24 8011160: 2200 movs r2, #0 8011162: 613b str r3, [r7, #16] 8011164: 617a str r2, [r7, #20] 8011166: 693b ldr r3, [r7, #16] 8011168: fb03 f20b mul.w r2, r3, fp 801116c: 697b ldr r3, [r7, #20] 801116e: fb0a f303 mul.w r3, sl, r3 8011172: 4413 add r3, r2 8011174: 693a ldr r2, [r7, #16] 8011176: fbaa 0102 umull r0, r1, sl, r2 801117a: 440b add r3, r1 801117c: 4619 mov r1, r3 801117e: 4b2b ldr r3, [pc, #172] @ (801122c ) 8011180: fb03 f201 mul.w r2, r3, r1 8011184: 2300 movs r3, #0 8011186: fb00 f303 mul.w r3, r0, r3 801118a: 4413 add r3, r2 801118c: 4a27 ldr r2, [pc, #156] @ (801122c ) 801118e: fba0 4502 umull r4, r5, r0, r2 8011192: 442b add r3, r5 8011194: 461d mov r5, r3 8011196: 6a3b ldr r3, [r7, #32] 8011198: 2200 movs r2, #0 801119a: 60bb str r3, [r7, #8] 801119c: 60fa str r2, [r7, #12] 801119e: 6abb ldr r3, [r7, #40] @ 0x28 80111a0: 2200 movs r2, #0 80111a2: 603b str r3, [r7, #0] 80111a4: 607a str r2, [r7, #4] 80111a6: e9d7 0102 ldrd r0, r1, [r7, #8] 80111aa: 460b mov r3, r1 80111ac: e9d7 ab00 ldrd sl, fp, [r7] 80111b0: 4652 mov r2, sl 80111b2: fb02 f203 mul.w r2, r2, r3 80111b6: 465b mov r3, fp 80111b8: 4684 mov ip, r0 80111ba: fb0c f303 mul.w r3, ip, r3 80111be: 4413 add r3, r2 80111c0: 4602 mov r2, r0 80111c2: 4651 mov r1, sl 80111c4: fba2 8901 umull r8, r9, r2, r1 80111c8: 444b add r3, r9 80111ca: 4699 mov r9, r3 80111cc: 4642 mov r2, r8 80111ce: 464b mov r3, r9 80111d0: 4620 mov r0, r4 80111d2: 4629 mov r1, r5 80111d4: f7f8 f80e bl 80091f4 <__aeabi_uldivmod> 80111d8: 4602 mov r2, r0 80111da: 460b mov r3, r1 80111dc: 4613 mov r3, r2 80111de: 637b str r3, [r7, #52] @ 0x34 80111e0: e007 b.n 80111f2 } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); 80111e2: 6a7b ldr r3, [r7, #36] @ 0x24 80111e4: 4a11 ldr r2, [pc, #68] @ (801122c ) 80111e6: fb03 f202 mul.w r2, r3, r2 80111ea: 6abb ldr r3, [r7, #40] @ 0x28 80111ec: fbb2 f3f3 udiv r3, r2, r3 80111f0: 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]) 80111f2: 4b0f ldr r3, [pc, #60] @ (8011230 ) 80111f4: 7b5b ldrb r3, [r3, #13] 80111f6: 461a mov r2, r3 80111f8: 6a7b ldr r3, [r7, #36] @ 0x24 80111fa: 4293 cmp r3, r2 80111fc: d108 bne.n 8011210 { pllclk = pllclk / 2; 80111fe: 6b7b ldr r3, [r7, #52] @ 0x34 8011200: 085b lsrs r3, r3, #1 8011202: 637b str r3, [r7, #52] @ 0x34 8011204: e004 b.n 8011210 #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 8011206: 6a7b ldr r3, [r7, #36] @ 0x24 8011208: 4a0b ldr r2, [pc, #44] @ (8011238 ) 801120a: fb02 f303 mul.w r3, r2, r3 801120e: 637b str r3, [r7, #52] @ 0x34 } sysclockfreq = pllclk; 8011210: 6b7b ldr r3, [r7, #52] @ 0x34 8011212: 633b str r3, [r7, #48] @ 0x30 break; 8011214: e002 b.n 801121c } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; 8011216: 4b09 ldr r3, [pc, #36] @ (801123c ) 8011218: 633b str r3, [r7, #48] @ 0x30 break; 801121a: bf00 nop } } return sysclockfreq; 801121c: 6b3b ldr r3, [r7, #48] @ 0x30 } 801121e: 4618 mov r0, r3 8011220: 3738 adds r7, #56 @ 0x38 8011222: 46bd mov sp, r7 8011224: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} 8011228: 40021000 .word 0x40021000 801122c: 017d7840 .word 0x017d7840 8011230: 08016fe4 .word 0x08016fe4 8011234: 08016ff4 .word 0x08016ff4 8011238: 003d0900 .word 0x003d0900 801123c: 007a1200 .word 0x007a1200 08011240 : * @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) { 8011240: b480 push {r7} 8011242: af00 add r7, sp, #0 return SystemCoreClock; 8011244: 4b02 ldr r3, [pc, #8] @ (8011250 ) 8011246: 681b ldr r3, [r3, #0] } 8011248: 4618 mov r0, r3 801124a: 46bd mov sp, r7 801124c: bc80 pop {r7} 801124e: 4770 bx lr 8011250: 20000068 .word 0x20000068 08011254 : * @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) { 8011254: b580 push {r7, lr} 8011256: 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]); 8011258: f7ff fff2 bl 8011240 801125c: 4602 mov r2, r0 801125e: 4b05 ldr r3, [pc, #20] @ (8011274 ) 8011260: 685b ldr r3, [r3, #4] 8011262: 0a1b lsrs r3, r3, #8 8011264: f003 0307 and.w r3, r3, #7 8011268: 4903 ldr r1, [pc, #12] @ (8011278 ) 801126a: 5ccb ldrb r3, [r1, r3] 801126c: fa22 f303 lsr.w r3, r2, r3 } 8011270: 4618 mov r0, r3 8011272: bd80 pop {r7, pc} 8011274: 40021000 .word 0x40021000 8011278: 08016fdc .word 0x08016fdc 0801127c : * @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) { 801127c: b580 push {r7, lr} 801127e: 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]); 8011280: f7ff ffde bl 8011240 8011284: 4602 mov r2, r0 8011286: 4b05 ldr r3, [pc, #20] @ (801129c ) 8011288: 685b ldr r3, [r3, #4] 801128a: 0adb lsrs r3, r3, #11 801128c: f003 0307 and.w r3, r3, #7 8011290: 4903 ldr r1, [pc, #12] @ (80112a0 ) 8011292: 5ccb ldrb r3, [r1, r3] 8011294: fa22 f303 lsr.w r3, r2, r3 } 8011298: 4618 mov r0, r3 801129a: bd80 pop {r7, pc} 801129c: 40021000 .word 0x40021000 80112a0: 08016fdc .word 0x08016fdc 080112a4 : * @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) { 80112a4: b480 push {r7} 80112a6: b085 sub sp, #20 80112a8: af00 add r7, sp, #0 80112aa: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); 80112ac: 4b0a ldr r3, [pc, #40] @ (80112d8 ) 80112ae: 681b ldr r3, [r3, #0] 80112b0: 4a0a ldr r2, [pc, #40] @ (80112dc ) 80112b2: fba2 2303 umull r2, r3, r2, r3 80112b6: 0a5b lsrs r3, r3, #9 80112b8: 687a ldr r2, [r7, #4] 80112ba: fb02 f303 mul.w r3, r2, r3 80112be: 60fb str r3, [r7, #12] do { __NOP(); 80112c0: bf00 nop } while (Delay --); 80112c2: 68fb ldr r3, [r7, #12] 80112c4: 1e5a subs r2, r3, #1 80112c6: 60fa str r2, [r7, #12] 80112c8: 2b00 cmp r3, #0 80112ca: d1f9 bne.n 80112c0 } 80112cc: bf00 nop 80112ce: bf00 nop 80112d0: 3714 adds r7, #20 80112d2: 46bd mov sp, r7 80112d4: bc80 pop {r7} 80112d6: 4770 bx lr 80112d8: 20000068 .word 0x20000068 80112dc: 10624dd3 .word 0x10624dd3 080112e0 : * manually disable it. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { 80112e0: b580 push {r7, lr} 80112e2: b088 sub sp, #32 80112e4: af00 add r7, sp, #0 80112e6: 6078 str r0, [r7, #4] uint32_t tickstart = 0U, temp_reg = 0U; 80112e8: 2300 movs r3, #0 80112ea: 617b str r3, [r7, #20] 80112ec: 2300 movs r3, #0 80112ee: 613b str r3, [r7, #16] #if defined(STM32F105xC) || defined(STM32F107xC) uint32_t pllactive = 0U; 80112f0: 2300 movs r3, #0 80112f2: 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)) 80112f4: 687b ldr r3, [r7, #4] 80112f6: 681b ldr r3, [r3, #0] 80112f8: f003 0301 and.w r3, r3, #1 80112fc: 2b00 cmp r3, #0 80112fe: d07d beq.n 80113fc { FlagStatus pwrclkchanged = RESET; 8011300: 2300 movs r3, #0 8011302: 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()) 8011304: 4b8b ldr r3, [pc, #556] @ (8011534 ) 8011306: 69db ldr r3, [r3, #28] 8011308: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 801130c: 2b00 cmp r3, #0 801130e: d10d bne.n 801132c { __HAL_RCC_PWR_CLK_ENABLE(); 8011310: 4b88 ldr r3, [pc, #544] @ (8011534 ) 8011312: 69db ldr r3, [r3, #28] 8011314: 4a87 ldr r2, [pc, #540] @ (8011534 ) 8011316: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 801131a: 61d3 str r3, [r2, #28] 801131c: 4b85 ldr r3, [pc, #532] @ (8011534 ) 801131e: 69db ldr r3, [r3, #28] 8011320: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011324: 60fb str r3, [r7, #12] 8011326: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; 8011328: 2301 movs r3, #1 801132a: 76fb strb r3, [r7, #27] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 801132c: 4b82 ldr r3, [pc, #520] @ (8011538 ) 801132e: 681b ldr r3, [r3, #0] 8011330: f403 7380 and.w r3, r3, #256 @ 0x100 8011334: 2b00 cmp r3, #0 8011336: d118 bne.n 801136a { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8011338: 4b7f ldr r3, [pc, #508] @ (8011538 ) 801133a: 681b ldr r3, [r3, #0] 801133c: 4a7e ldr r2, [pc, #504] @ (8011538 ) 801133e: f443 7380 orr.w r3, r3, #256 @ 0x100 8011342: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 8011344: f7fc fd50 bl 800dde8 8011348: 6178 str r0, [r7, #20] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 801134a: e008 b.n 801135e { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 801134c: f7fc fd4c bl 800dde8 8011350: 4602 mov r2, r0 8011352: 697b ldr r3, [r7, #20] 8011354: 1ad3 subs r3, r2, r3 8011356: 2b64 cmp r3, #100 @ 0x64 8011358: d901 bls.n 801135e { return HAL_TIMEOUT; 801135a: 2303 movs r3, #3 801135c: e0e5 b.n 801152a while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 801135e: 4b76 ldr r3, [pc, #472] @ (8011538 ) 8011360: 681b ldr r3, [r3, #0] 8011362: f403 7380 and.w r3, r3, #256 @ 0x100 8011366: 2b00 cmp r3, #0 8011368: d0f0 beq.n 801134c } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); 801136a: 4b72 ldr r3, [pc, #456] @ (8011534 ) 801136c: 6a1b ldr r3, [r3, #32] 801136e: f403 7340 and.w r3, r3, #768 @ 0x300 8011372: 613b str r3, [r7, #16] if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) 8011374: 693b ldr r3, [r7, #16] 8011376: 2b00 cmp r3, #0 8011378: d02e beq.n 80113d8 801137a: 687b ldr r3, [r7, #4] 801137c: 685b ldr r3, [r3, #4] 801137e: f403 7340 and.w r3, r3, #768 @ 0x300 8011382: 693a ldr r2, [r7, #16] 8011384: 429a cmp r2, r3 8011386: d027 beq.n 80113d8 { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); 8011388: 4b6a ldr r3, [pc, #424] @ (8011534 ) 801138a: 6a1b ldr r3, [r3, #32] 801138c: f423 7340 bic.w r3, r3, #768 @ 0x300 8011390: 613b str r3, [r7, #16] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); 8011392: 4b6a ldr r3, [pc, #424] @ (801153c ) 8011394: 2201 movs r2, #1 8011396: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); 8011398: 4b68 ldr r3, [pc, #416] @ (801153c ) 801139a: 2200 movs r2, #0 801139c: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; 801139e: 4a65 ldr r2, [pc, #404] @ (8011534 ) 80113a0: 693b ldr r3, [r7, #16] 80113a2: 6213 str r3, [r2, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) 80113a4: 693b ldr r3, [r7, #16] 80113a6: f003 0301 and.w r3, r3, #1 80113aa: 2b00 cmp r3, #0 80113ac: d014 beq.n 80113d8 { /* Get Start Tick */ tickstart = HAL_GetTick(); 80113ae: f7fc fd1b bl 800dde8 80113b2: 6178 str r0, [r7, #20] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 80113b4: e00a b.n 80113cc { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 80113b6: f7fc fd17 bl 800dde8 80113ba: 4602 mov r2, r0 80113bc: 697b ldr r3, [r7, #20] 80113be: 1ad3 subs r3, r2, r3 80113c0: f241 3288 movw r2, #5000 @ 0x1388 80113c4: 4293 cmp r3, r2 80113c6: d901 bls.n 80113cc { return HAL_TIMEOUT; 80113c8: 2303 movs r3, #3 80113ca: e0ae b.n 801152a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 80113cc: 4b59 ldr r3, [pc, #356] @ (8011534 ) 80113ce: 6a1b ldr r3, [r3, #32] 80113d0: f003 0302 and.w r3, r3, #2 80113d4: 2b00 cmp r3, #0 80113d6: d0ee beq.n 80113b6 } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); 80113d8: 4b56 ldr r3, [pc, #344] @ (8011534 ) 80113da: 6a1b ldr r3, [r3, #32] 80113dc: f423 7240 bic.w r2, r3, #768 @ 0x300 80113e0: 687b ldr r3, [r7, #4] 80113e2: 685b ldr r3, [r3, #4] 80113e4: 4953 ldr r1, [pc, #332] @ (8011534 ) 80113e6: 4313 orrs r3, r2 80113e8: 620b str r3, [r1, #32] /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 80113ea: 7efb ldrb r3, [r7, #27] 80113ec: 2b01 cmp r3, #1 80113ee: d105 bne.n 80113fc { __HAL_RCC_PWR_CLK_DISABLE(); 80113f0: 4b50 ldr r3, [pc, #320] @ (8011534 ) 80113f2: 69db ldr r3, [r3, #28] 80113f4: 4a4f ldr r2, [pc, #316] @ (8011534 ) 80113f6: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 80113fa: 61d3 str r3, [r2, #28] } } /*------------------------------ ADC clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) 80113fc: 687b ldr r3, [r7, #4] 80113fe: 681b ldr r3, [r3, #0] 8011400: f003 0302 and.w r3, r3, #2 8011404: 2b00 cmp r3, #0 8011406: d008 beq.n 801141a { /* Check the parameters */ assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection)); /* Configure the ADC clock source */ __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); 8011408: 4b4a ldr r3, [pc, #296] @ (8011534 ) 801140a: 685b ldr r3, [r3, #4] 801140c: f423 4240 bic.w r2, r3, #49152 @ 0xc000 8011410: 687b ldr r3, [r7, #4] 8011412: 689b ldr r3, [r3, #8] 8011414: 4947 ldr r1, [pc, #284] @ (8011534 ) 8011416: 4313 orrs r3, r2 8011418: 604b str r3, [r1, #4] } #if defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ I2S2 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S2) == RCC_PERIPHCLK_I2S2) 801141a: 687b ldr r3, [r7, #4] 801141c: 681b ldr r3, [r3, #0] 801141e: f003 0304 and.w r3, r3, #4 8011422: 2b00 cmp r3, #0 8011424: d008 beq.n 8011438 { /* Check the parameters */ assert_param(IS_RCC_I2S2CLKSOURCE(PeriphClkInit->I2s2ClockSelection)); /* Configure the I2S2 clock source */ __HAL_RCC_I2S2_CONFIG(PeriphClkInit->I2s2ClockSelection); 8011426: 4b43 ldr r3, [pc, #268] @ (8011534 ) 8011428: 6adb ldr r3, [r3, #44] @ 0x2c 801142a: f423 3200 bic.w r2, r3, #131072 @ 0x20000 801142e: 687b ldr r3, [r7, #4] 8011430: 68db ldr r3, [r3, #12] 8011432: 4940 ldr r1, [pc, #256] @ (8011534 ) 8011434: 4313 orrs r3, r2 8011436: 62cb str r3, [r1, #44] @ 0x2c } /*------------------------------ I2S3 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S3) == RCC_PERIPHCLK_I2S3) 8011438: 687b ldr r3, [r7, #4] 801143a: 681b ldr r3, [r3, #0] 801143c: f003 0308 and.w r3, r3, #8 8011440: 2b00 cmp r3, #0 8011442: d008 beq.n 8011456 { /* Check the parameters */ assert_param(IS_RCC_I2S3CLKSOURCE(PeriphClkInit->I2s3ClockSelection)); /* Configure the I2S3 clock source */ __HAL_RCC_I2S3_CONFIG(PeriphClkInit->I2s3ClockSelection); 8011444: 4b3b ldr r3, [pc, #236] @ (8011534 ) 8011446: 6adb ldr r3, [r3, #44] @ 0x2c 8011448: f423 2280 bic.w r2, r3, #262144 @ 0x40000 801144c: 687b ldr r3, [r7, #4] 801144e: 691b ldr r3, [r3, #16] 8011450: 4938 ldr r1, [pc, #224] @ (8011534 ) 8011452: 4313 orrs r3, r2 8011454: 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)) 8011456: 4b37 ldr r3, [pc, #220] @ (8011534 ) 8011458: 6adb ldr r3, [r3, #44] @ 0x2c 801145a: f403 3300 and.w r3, r3, #131072 @ 0x20000 801145e: 2b00 cmp r3, #0 8011460: d105 bne.n 801146e 8011462: 4b34 ldr r3, [pc, #208] @ (8011534 ) 8011464: 6adb ldr r3, [r3, #44] @ 0x2c 8011466: f403 2380 and.w r3, r3, #262144 @ 0x40000 801146a: 2b00 cmp r3, #0 801146c: d001 beq.n 8011472 { /* Update flag to indicate that PLL I2S should be active */ pllactive = 1; 801146e: 2301 movs r3, #1 8011470: 61fb str r3, [r7, #28] } /* Check if PLL I2S need to be enabled */ if (pllactive == 1) 8011472: 69fb ldr r3, [r7, #28] 8011474: 2b01 cmp r3, #1 8011476: d148 bne.n 801150a { /* Enable PLL I2S only if not active */ if (HAL_IS_BIT_CLR(RCC->CR, RCC_CR_PLL3ON)) 8011478: 4b2e ldr r3, [pc, #184] @ (8011534 ) 801147a: 681b ldr r3, [r3, #0] 801147c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011480: 2b00 cmp r3, #0 8011482: d138 bne.n 80114f6 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) && \ 8011484: 4b2b ldr r3, [pc, #172] @ (8011534 ) 8011486: 681b ldr r3, [r3, #0] 8011488: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 801148c: 2b00 cmp r3, #0 801148e: d009 beq.n 80114a4 (__HAL_RCC_HSE_GET_PREDIV2() != PeriphClkInit->PLLI2S.HSEPrediv2Value)) 8011490: 4b28 ldr r3, [pc, #160] @ (8011534 ) 8011492: 6adb ldr r3, [r3, #44] @ 0x2c 8011494: f003 02f0 and.w r2, r3, #240 @ 0xf0 8011498: 687b ldr r3, [r7, #4] 801149a: 699b ldr r3, [r3, #24] if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2ON) && \ 801149c: 429a cmp r2, r3 801149e: d001 beq.n 80114a4 { return HAL_ERROR; 80114a0: 2301 movs r3, #1 80114a2: e042 b.n 801152a } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(PeriphClkInit->PLLI2S.HSEPrediv2Value); 80114a4: 4b23 ldr r3, [pc, #140] @ (8011534 ) 80114a6: 6adb ldr r3, [r3, #44] @ 0x2c 80114a8: f023 02f0 bic.w r2, r3, #240 @ 0xf0 80114ac: 687b ldr r3, [r7, #4] 80114ae: 699b ldr r3, [r3, #24] 80114b0: 4920 ldr r1, [pc, #128] @ (8011534 ) 80114b2: 4313 orrs r3, r2 80114b4: 62cb str r3, [r1, #44] @ 0x2c /* Configure the main PLLI2S multiplication factors. */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SMUL); 80114b6: 4b1f ldr r3, [pc, #124] @ (8011534 ) 80114b8: 6adb ldr r3, [r3, #44] @ 0x2c 80114ba: f423 4270 bic.w r2, r3, #61440 @ 0xf000 80114be: 687b ldr r3, [r7, #4] 80114c0: 695b ldr r3, [r3, #20] 80114c2: 491c ldr r1, [pc, #112] @ (8011534 ) 80114c4: 4313 orrs r3, r2 80114c6: 62cb str r3, [r1, #44] @ 0x2c /* Enable the main PLLI2S. */ __HAL_RCC_PLLI2S_ENABLE(); 80114c8: 4b1d ldr r3, [pc, #116] @ (8011540 ) 80114ca: 2201 movs r2, #1 80114cc: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); 80114ce: f7fc fc8b bl 800dde8 80114d2: 6178 str r0, [r7, #20] /* Wait till PLLI2S is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) 80114d4: e008 b.n 80114e8 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) 80114d6: f7fc fc87 bl 800dde8 80114da: 4602 mov r2, r0 80114dc: 697b ldr r3, [r7, #20] 80114de: 1ad3 subs r3, r2, r3 80114e0: 2b64 cmp r3, #100 @ 0x64 80114e2: d901 bls.n 80114e8 { return HAL_TIMEOUT; 80114e4: 2303 movs r3, #3 80114e6: e020 b.n 801152a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) 80114e8: 4b12 ldr r3, [pc, #72] @ (8011534 ) 80114ea: 681b ldr r3, [r3, #0] 80114ec: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 80114f0: 2b00 cmp r3, #0 80114f2: d0f0 beq.n 80114d6 80114f4: e009 b.n 801150a } } 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) 80114f6: 4b0f ldr r3, [pc, #60] @ (8011534 ) 80114f8: 6adb ldr r3, [r3, #44] @ 0x2c 80114fa: f403 4270 and.w r2, r3, #61440 @ 0xf000 80114fe: 687b ldr r3, [r7, #4] 8011500: 695b ldr r3, [r3, #20] 8011502: 429a cmp r2, r3 8011504: d001 beq.n 801150a { return HAL_ERROR; 8011506: 2301 movs r3, #1 8011508: e00f b.n 801152a #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) 801150a: 687b ldr r3, [r7, #4] 801150c: 681b ldr r3, [r3, #0] 801150e: f003 0310 and.w r3, r3, #16 8011512: 2b00 cmp r3, #0 8011514: d008 beq.n 8011528 { /* Check the parameters */ assert_param(IS_RCC_USBPLLCLK_DIV(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); 8011516: 4b07 ldr r3, [pc, #28] @ (8011534 ) 8011518: 685b ldr r3, [r3, #4] 801151a: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 801151e: 687b ldr r3, [r7, #4] 8011520: 69db ldr r3, [r3, #28] 8011522: 4904 ldr r1, [pc, #16] @ (8011534 ) 8011524: 4313 orrs r3, r2 8011526: 604b str r3, [r1, #4] } #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ return HAL_OK; 8011528: 2300 movs r3, #0 } 801152a: 4618 mov r0, r3 801152c: 3720 adds r7, #32 801152e: 46bd mov sp, r7 8011530: bd80 pop {r7, pc} 8011532: bf00 nop 8011534: 40021000 .word 0x40021000 8011538: 40007000 .word 0x40007000 801153c: 42420440 .word 0x42420440 8011540: 42420070 .word 0x42420070 08011544 : * @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) { 8011544: b580 push {r7, lr} 8011546: b08a sub sp, #40 @ 0x28 8011548: af00 add r7, sp, #0 801154a: 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; 801154c: 2300 movs r3, #0 801154e: 61fb str r3, [r7, #28] 8011550: 2300 movs r3, #0 8011552: 627b str r3, [r7, #36] @ 0x24 8011554: 2300 movs r3, #0 8011556: 61bb str r3, [r7, #24] uint32_t pll2mul = 0U, pll3mul = 0U, prediv2 = 0U; 8011558: 2300 movs r3, #0 801155a: 617b str r3, [r7, #20] 801155c: 2300 movs r3, #0 801155e: 613b str r3, [r7, #16] 8011560: 2300 movs r3, #0 8011562: 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; 8011564: 2300 movs r3, #0 8011566: 60bb str r3, [r7, #8] 8011568: 2300 movs r3, #0 801156a: 623b str r3, [r7, #32] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClk)); switch (PeriphClk) 801156c: 687b ldr r3, [r7, #4] 801156e: 3b01 subs r3, #1 8011570: 2b0f cmp r3, #15 8011572: f200 811d bhi.w 80117b0 8011576: a201 add r2, pc, #4 @ (adr r2, 801157c ) 8011578: f852 f023 ldr.w pc, [r2, r3, lsl #2] 801157c: 08011731 .word 0x08011731 8011580: 08011795 .word 0x08011795 8011584: 080117b1 .word 0x080117b1 8011588: 0801168f .word 0x0801168f 801158c: 080117b1 .word 0x080117b1 8011590: 080117b1 .word 0x080117b1 8011594: 080117b1 .word 0x080117b1 8011598: 080116e1 .word 0x080116e1 801159c: 080117b1 .word 0x080117b1 80115a0: 080117b1 .word 0x080117b1 80115a4: 080117b1 .word 0x080117b1 80115a8: 080117b1 .word 0x080117b1 80115ac: 080117b1 .word 0x080117b1 80115b0: 080117b1 .word 0x080117b1 80115b4: 080117b1 .word 0x080117b1 80115b8: 080115bd .word 0x080115bd || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) case RCC_PERIPHCLK_USB: { /* Get RCC configuration ------------------------------------------------------*/ temp_reg = RCC->CFGR; 80115bc: 4b83 ldr r3, [pc, #524] @ (80117cc ) 80115be: 685b ldr r3, [r3, #4] 80115c0: 60bb str r3, [r7, #8] /* Check if PLL is enabled */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLLON)) 80115c2: 4b82 ldr r3, [pc, #520] @ (80117cc ) 80115c4: 681b ldr r3, [r3, #0] 80115c6: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 80115ca: 2b00 cmp r3, #0 80115cc: f000 80f2 beq.w 80117b4 { pllmul = aPLLMULFactorTable[(uint32_t)(temp_reg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 80115d0: 68bb ldr r3, [r7, #8] 80115d2: 0c9b lsrs r3, r3, #18 80115d4: f003 030f and.w r3, r3, #15 80115d8: 4a7d ldr r2, [pc, #500] @ (80117d0 ) 80115da: 5cd3 ldrb r3, [r2, r3] 80115dc: 61bb str r3, [r7, #24] if ((temp_reg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 80115de: 68bb ldr r3, [r7, #8] 80115e0: f403 3380 and.w r3, r3, #65536 @ 0x10000 80115e4: 2b00 cmp r3, #0 80115e6: d03b beq.n 8011660 { #if defined(STM32F105xC) || defined(STM32F107xC) || defined(STM32F100xB)\ || defined(STM32F100xE) prediv1 = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; 80115e8: 4b78 ldr r3, [pc, #480] @ (80117cc ) 80115ea: 6adb ldr r3, [r3, #44] @ 0x2c 80115ec: f003 030f and.w r3, r3, #15 80115f0: 4a78 ldr r2, [pc, #480] @ (80117d4 ) 80115f2: 5cd3 ldrb r3, [r2, r3] 80115f4: 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)) 80115f6: 4b75 ldr r3, [pc, #468] @ (80117cc ) 80115f8: 6adb ldr r3, [r3, #44] @ 0x2c 80115fa: f403 3380 and.w r3, r3, #65536 @ 0x10000 80115fe: 2b00 cmp r3, #0 8011600: d01c beq.n 801163c { /* 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; 8011602: 4b72 ldr r3, [pc, #456] @ (80117cc ) 8011604: 6adb ldr r3, [r3, #44] @ 0x2c 8011606: 091b lsrs r3, r3, #4 8011608: f003 030f and.w r3, r3, #15 801160c: 3301 adds r3, #1 801160e: 60fb str r3, [r7, #12] pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; 8011610: 4b6e ldr r3, [pc, #440] @ (80117cc ) 8011612: 6adb ldr r3, [r3, #44] @ 0x2c 8011614: 0a1b lsrs r3, r3, #8 8011616: f003 030f and.w r3, r3, #15 801161a: 3302 adds r3, #2 801161c: 617b str r3, [r7, #20] pllclk = (uint32_t)((((HSE_VALUE / prediv2) * pll2mul) / prediv1) * pllmul); 801161e: 4a6e ldr r2, [pc, #440] @ (80117d8 ) 8011620: 68fb ldr r3, [r7, #12] 8011622: fbb2 f3f3 udiv r3, r2, r3 8011626: 697a ldr r2, [r7, #20] 8011628: fb03 f202 mul.w r2, r3, r2 801162c: 69fb ldr r3, [r7, #28] 801162e: fbb2 f2f3 udiv r2, r2, r3 8011632: 69bb ldr r3, [r7, #24] 8011634: fb02 f303 mul.w r3, r2, r3 8011638: 627b str r3, [r7, #36] @ 0x24 801163a: e007 b.n 801164c } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE / prediv1) * pllmul); 801163c: 4a66 ldr r2, [pc, #408] @ (80117d8 ) 801163e: 69fb ldr r3, [r7, #28] 8011640: fbb2 f2f3 udiv r2, r2, r3 8011644: 69bb ldr r3, [r7, #24] 8011646: fb02 f303 mul.w r3, r2, r3 801164a: 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]) 801164c: 4b60 ldr r3, [pc, #384] @ (80117d0 ) 801164e: 7b5b ldrb r3, [r3, #13] 8011650: 461a mov r2, r3 8011652: 69bb ldr r3, [r7, #24] 8011654: 4293 cmp r3, r2 8011656: d108 bne.n 801166a { pllclk = pllclk / 2; 8011658: 6a7b ldr r3, [r7, #36] @ 0x24 801165a: 085b lsrs r3, r3, #1 801165c: 627b str r3, [r7, #36] @ 0x24 801165e: e004 b.n 801166a #endif /* STM32F105xC || STM32F107xC */ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 8011660: 69bb ldr r3, [r7, #24] 8011662: 4a5e ldr r2, [pc, #376] @ (80117dc ) 8011664: fb02 f303 mul.w r3, r2, r3 8011668: 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) 801166a: 4b58 ldr r3, [pc, #352] @ (80117cc ) 801166c: 685b ldr r3, [r3, #4] 801166e: f403 0380 and.w r3, r3, #4194304 @ 0x400000 8011672: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 8011676: d102 bne.n 801167e { /* Prescaler of 2 selected for USB */ frequency = pllclk; 8011678: 6a7b ldr r3, [r7, #36] @ 0x24 801167a: 623b str r3, [r7, #32] /* Prescaler of 1.5 selected for USB */ frequency = (pllclk * 2) / 3; } #endif } break; 801167c: e09a b.n 80117b4 frequency = (2 * pllclk) / 3; 801167e: 6a7b ldr r3, [r7, #36] @ 0x24 8011680: 005b lsls r3, r3, #1 8011682: 4a57 ldr r2, [pc, #348] @ (80117e0 ) 8011684: fba2 2303 umull r2, r3, r2, r3 8011688: 085b lsrs r3, r3, #1 801168a: 623b str r3, [r7, #32] break; 801168c: e092 b.n 80117b4 { #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) 801168e: 4b4f ldr r3, [pc, #316] @ (80117cc ) 8011690: 6adb ldr r3, [r3, #44] @ 0x2c 8011692: f403 3300 and.w r3, r3, #131072 @ 0x20000 8011696: 2b00 cmp r3, #0 8011698: d103 bne.n 80116a2 { /* SYSCLK used as source clock for I2S2 */ frequency = HAL_RCC_GetSysClockFreq(); 801169a: f7ff fd15 bl 80110c8 801169e: 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; 80116a0: e08a b.n 80117b8 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) 80116a2: 4b4a ldr r3, [pc, #296] @ (80117cc ) 80116a4: 681b ldr r3, [r3, #0] 80116a6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80116aa: 2b00 cmp r3, #0 80116ac: f000 8084 beq.w 80117b8 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 80116b0: 4b46 ldr r3, [pc, #280] @ (80117cc ) 80116b2: 6adb ldr r3, [r3, #44] @ 0x2c 80116b4: 091b lsrs r3, r3, #4 80116b6: f003 030f and.w r3, r3, #15 80116ba: 3301 adds r3, #1 80116bc: 60fb str r3, [r7, #12] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; 80116be: 4b43 ldr r3, [pc, #268] @ (80117cc ) 80116c0: 6adb ldr r3, [r3, #44] @ 0x2c 80116c2: 0b1b lsrs r3, r3, #12 80116c4: f003 030f and.w r3, r3, #15 80116c8: 3302 adds r3, #2 80116ca: 613b str r3, [r7, #16] frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); 80116cc: 4a42 ldr r2, [pc, #264] @ (80117d8 ) 80116ce: 68fb ldr r3, [r7, #12] 80116d0: fbb2 f3f3 udiv r3, r2, r3 80116d4: 693a ldr r2, [r7, #16] 80116d6: fb02 f303 mul.w r3, r2, r3 80116da: 005b lsls r3, r3, #1 80116dc: 623b str r3, [r7, #32] break; 80116de: e06b b.n 80117b8 { #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) 80116e0: 4b3a ldr r3, [pc, #232] @ (80117cc ) 80116e2: 6adb ldr r3, [r3, #44] @ 0x2c 80116e4: f403 2380 and.w r3, r3, #262144 @ 0x40000 80116e8: 2b00 cmp r3, #0 80116ea: d103 bne.n 80116f4 { /* SYSCLK used as source clock for I2S3 */ frequency = HAL_RCC_GetSysClockFreq(); 80116ec: f7ff fcec bl 80110c8 80116f0: 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; 80116f2: e063 b.n 80117bc if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) 80116f4: 4b35 ldr r3, [pc, #212] @ (80117cc ) 80116f6: 681b ldr r3, [r3, #0] 80116f8: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80116fc: 2b00 cmp r3, #0 80116fe: d05d beq.n 80117bc prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 8011700: 4b32 ldr r3, [pc, #200] @ (80117cc ) 8011702: 6adb ldr r3, [r3, #44] @ 0x2c 8011704: 091b lsrs r3, r3, #4 8011706: f003 030f and.w r3, r3, #15 801170a: 3301 adds r3, #1 801170c: 60fb str r3, [r7, #12] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; 801170e: 4b2f ldr r3, [pc, #188] @ (80117cc ) 8011710: 6adb ldr r3, [r3, #44] @ 0x2c 8011712: 0b1b lsrs r3, r3, #12 8011714: f003 030f and.w r3, r3, #15 8011718: 3302 adds r3, #2 801171a: 613b str r3, [r7, #16] frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); 801171c: 4a2e ldr r2, [pc, #184] @ (80117d8 ) 801171e: 68fb ldr r3, [r7, #12] 8011720: fbb2 f3f3 udiv r3, r2, r3 8011724: 693a ldr r2, [r7, #16] 8011726: fb02 f303 mul.w r3, r2, r3 801172a: 005b lsls r3, r3, #1 801172c: 623b str r3, [r7, #32] break; 801172e: e045 b.n 80117bc } #endif /* STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ case RCC_PERIPHCLK_RTC: { /* Get RCC BDCR configuration ------------------------------------------------------*/ temp_reg = RCC->BDCR; 8011730: 4b26 ldr r3, [pc, #152] @ (80117cc ) 8011732: 6a1b ldr r3, [r3, #32] 8011734: 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))) 8011736: 68bb ldr r3, [r7, #8] 8011738: f403 7340 and.w r3, r3, #768 @ 0x300 801173c: f5b3 7f80 cmp.w r3, #256 @ 0x100 8011740: d108 bne.n 8011754 8011742: 68bb ldr r3, [r7, #8] 8011744: f003 0302 and.w r3, r3, #2 8011748: 2b00 cmp r3, #0 801174a: d003 beq.n 8011754 { frequency = LSE_VALUE; 801174c: f44f 4300 mov.w r3, #32768 @ 0x8000 8011750: 623b str r3, [r7, #32] 8011752: e01e b.n 8011792 } /* 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))) 8011754: 68bb ldr r3, [r7, #8] 8011756: f403 7340 and.w r3, r3, #768 @ 0x300 801175a: f5b3 7f00 cmp.w r3, #512 @ 0x200 801175e: d109 bne.n 8011774 8011760: 4b1a ldr r3, [pc, #104] @ (80117cc ) 8011762: 6a5b ldr r3, [r3, #36] @ 0x24 8011764: f003 0302 and.w r3, r3, #2 8011768: 2b00 cmp r3, #0 801176a: d003 beq.n 8011774 { frequency = LSI_VALUE; 801176c: f649 4340 movw r3, #40000 @ 0x9c40 8011770: 623b str r3, [r7, #32] 8011772: e00e b.n 8011792 } else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))) 8011774: 68bb ldr r3, [r7, #8] 8011776: f403 7340 and.w r3, r3, #768 @ 0x300 801177a: f5b3 7f40 cmp.w r3, #768 @ 0x300 801177e: d11f bne.n 80117c0 8011780: 4b12 ldr r3, [pc, #72] @ (80117cc ) 8011782: 681b ldr r3, [r3, #0] 8011784: f403 3300 and.w r3, r3, #131072 @ 0x20000 8011788: 2b00 cmp r3, #0 801178a: d019 beq.n 80117c0 { frequency = HSE_VALUE / 128U; 801178c: 4b15 ldr r3, [pc, #84] @ (80117e4 ) 801178e: 623b str r3, [r7, #32] /* Clock not enabled for RTC*/ else { /* nothing to do: frequency already initialized to 0U */ } break; 8011790: e016 b.n 80117c0 8011792: e015 b.n 80117c0 } case RCC_PERIPHCLK_ADC: { frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2); 8011794: f7ff fd72 bl 801127c 8011798: 4602 mov r2, r0 801179a: 4b0c ldr r3, [pc, #48] @ (80117cc ) 801179c: 685b ldr r3, [r3, #4] 801179e: 0b9b lsrs r3, r3, #14 80117a0: f003 0303 and.w r3, r3, #3 80117a4: 3301 adds r3, #1 80117a6: 005b lsls r3, r3, #1 80117a8: fbb2 f3f3 udiv r3, r2, r3 80117ac: 623b str r3, [r7, #32] break; 80117ae: e008 b.n 80117c2 } default: { break; 80117b0: bf00 nop 80117b2: e006 b.n 80117c2 break; 80117b4: bf00 nop 80117b6: e004 b.n 80117c2 break; 80117b8: bf00 nop 80117ba: e002 b.n 80117c2 break; 80117bc: bf00 nop 80117be: e000 b.n 80117c2 break; 80117c0: bf00 nop } } return (frequency); 80117c2: 6a3b ldr r3, [r7, #32] } 80117c4: 4618 mov r0, r3 80117c6: 3728 adds r7, #40 @ 0x28 80117c8: 46bd mov sp, r7 80117ca: bd80 pop {r7, pc} 80117cc: 40021000 .word 0x40021000 80117d0: 08017004 .word 0x08017004 80117d4: 08017014 .word 0x08017014 80117d8: 017d7840 .word 0x017d7840 80117dc: 003d0900 .word 0x003d0900 80117e0: aaaaaaab .word 0xaaaaaaab 80117e4: 0002faf0 .word 0x0002faf0 080117e8 : * @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) { 80117e8: b580 push {r7, lr} 80117ea: b084 sub sp, #16 80117ec: af00 add r7, sp, #0 80117ee: 6078 str r0, [r7, #4] uint32_t prescaler = 0U; 80117f0: 2300 movs r3, #0 80117f2: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) 80117f4: 687b ldr r3, [r7, #4] 80117f6: 2b00 cmp r3, #0 80117f8: d101 bne.n 80117fe { return HAL_ERROR; 80117fa: 2301 movs r3, #1 80117fc: e07a b.n 80118f4 { hrtc->MspDeInitCallback = HAL_RTC_MspDeInit; } } #else if (hrtc->State == HAL_RTC_STATE_RESET) 80117fe: 687b ldr r3, [r7, #4] 8011800: 7c5b ldrb r3, [r3, #17] 8011802: b2db uxtb r3, r3 8011804: 2b00 cmp r3, #0 8011806: d105 bne.n 8011814 { /* Allocate lock resource and initialize it */ hrtc->Lock = HAL_UNLOCKED; 8011808: 687b ldr r3, [r7, #4] 801180a: 2200 movs r2, #0 801180c: 741a strb r2, [r3, #16] /* Initialize RTC MSP */ HAL_RTC_MspInit(hrtc); 801180e: 6878 ldr r0, [r7, #4] 8011810: f7fa f8b4 bl 800b97c } #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */ /* Set RTC state */ hrtc->State = HAL_RTC_STATE_BUSY; 8011814: 687b ldr r3, [r7, #4] 8011816: 2202 movs r2, #2 8011818: 745a strb r2, [r3, #17] /* Waiting for synchro */ if (HAL_RTC_WaitForSynchro(hrtc) != HAL_OK) 801181a: 6878 ldr r0, [r7, #4] 801181c: f000 f870 bl 8011900 8011820: 4603 mov r3, r0 8011822: 2b00 cmp r3, #0 8011824: d004 beq.n 8011830 { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; 8011826: 687b ldr r3, [r7, #4] 8011828: 2204 movs r2, #4 801182a: 745a strb r2, [r3, #17] return HAL_ERROR; 801182c: 2301 movs r3, #1 801182e: e061 b.n 80118f4 } /* Set Initialization mode */ if (RTC_EnterInitMode(hrtc) != HAL_OK) 8011830: 6878 ldr r0, [r7, #4] 8011832: f000 f892 bl 801195a 8011836: 4603 mov r3, r0 8011838: 2b00 cmp r3, #0 801183a: d004 beq.n 8011846 { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; 801183c: 687b ldr r3, [r7, #4] 801183e: 2204 movs r2, #4 8011840: 745a strb r2, [r3, #17] return HAL_ERROR; 8011842: 2301 movs r3, #1 8011844: e056 b.n 80118f4 } else { /* Clear Flags Bits */ CLEAR_BIT(hrtc->Instance->CRL, (RTC_FLAG_OW | RTC_FLAG_ALRAF | RTC_FLAG_SEC)); 8011846: 687b ldr r3, [r7, #4] 8011848: 681b ldr r3, [r3, #0] 801184a: 685a ldr r2, [r3, #4] 801184c: 687b ldr r3, [r7, #4] 801184e: 681b ldr r3, [r3, #0] 8011850: f022 0207 bic.w r2, r2, #7 8011854: 605a str r2, [r3, #4] if (hrtc->Init.OutPut != RTC_OUTPUTSOURCE_NONE) 8011856: 687b ldr r3, [r7, #4] 8011858: 689b ldr r3, [r3, #8] 801185a: 2b00 cmp r3, #0 801185c: d005 beq.n 801186a { /* Disable the selected Tamper pin */ CLEAR_BIT(BKP->CR, BKP_CR_TPE); 801185e: 4b27 ldr r3, [pc, #156] @ (80118fc ) 8011860: 6b1b ldr r3, [r3, #48] @ 0x30 8011862: 4a26 ldr r2, [pc, #152] @ (80118fc ) 8011864: f023 0301 bic.w r3, r3, #1 8011868: 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); 801186a: 4b24 ldr r3, [pc, #144] @ (80118fc ) 801186c: 6adb ldr r3, [r3, #44] @ 0x2c 801186e: f423 7260 bic.w r2, r3, #896 @ 0x380 8011872: 687b ldr r3, [r7, #4] 8011874: 689b ldr r3, [r3, #8] 8011876: 4921 ldr r1, [pc, #132] @ (80118fc ) 8011878: 4313 orrs r3, r2 801187a: 62cb str r3, [r1, #44] @ 0x2c if (hrtc->Init.AsynchPrediv != RTC_AUTO_1_SECOND) 801187c: 687b ldr r3, [r7, #4] 801187e: 685b ldr r3, [r3, #4] 8011880: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 8011884: d003 beq.n 801188e { /* RTC Prescaler provided directly by end-user*/ prescaler = hrtc->Init.AsynchPrediv; 8011886: 687b ldr r3, [r7, #4] 8011888: 685b ldr r3, [r3, #4] 801188a: 60fb str r3, [r7, #12] 801188c: e00e b.n 80118ac } else { /* RTC Prescaler will be automatically calculated to get 1 second timebase */ /* Get the RTCCLK frequency */ prescaler = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_RTC); 801188e: 2001 movs r0, #1 8011890: f7ff fe58 bl 8011544 8011894: 60f8 str r0, [r7, #12] /* Check that RTC clock is enabled*/ if (prescaler == 0U) 8011896: 68fb ldr r3, [r7, #12] 8011898: 2b00 cmp r3, #0 801189a: d104 bne.n 80118a6 { /* Should not happen. Frequency is not available*/ hrtc->State = HAL_RTC_STATE_ERROR; 801189c: 687b ldr r3, [r7, #4] 801189e: 2204 movs r2, #4 80118a0: 745a strb r2, [r3, #17] return HAL_ERROR; 80118a2: 2301 movs r3, #1 80118a4: e026 b.n 80118f4 } else { /* RTC period = RTCCLK/(RTC_PR + 1) */ prescaler = prescaler - 1U; 80118a6: 68fb ldr r3, [r7, #12] 80118a8: 3b01 subs r3, #1 80118aa: 60fb str r3, [r7, #12] } } /* Configure the RTC_PRLH / RTC_PRLL */ WRITE_REG(hrtc->Instance->PRLH, ((prescaler >> 16U) & RTC_PRLH_PRL)); 80118ac: 68fb ldr r3, [r7, #12] 80118ae: 0c1a lsrs r2, r3, #16 80118b0: 687b ldr r3, [r7, #4] 80118b2: 681b ldr r3, [r3, #0] 80118b4: f002 020f and.w r2, r2, #15 80118b8: 609a str r2, [r3, #8] WRITE_REG(hrtc->Instance->PRLL, (prescaler & RTC_PRLL_PRL)); 80118ba: 687b ldr r3, [r7, #4] 80118bc: 681b ldr r3, [r3, #0] 80118be: 68fa ldr r2, [r7, #12] 80118c0: b292 uxth r2, r2 80118c2: 60da str r2, [r3, #12] /* Wait for synchro */ if (RTC_ExitInitMode(hrtc) != HAL_OK) 80118c4: 6878 ldr r0, [r7, #4] 80118c6: f000 f870 bl 80119aa 80118ca: 4603 mov r3, r0 80118cc: 2b00 cmp r3, #0 80118ce: d004 beq.n 80118da { hrtc->State = HAL_RTC_STATE_ERROR; 80118d0: 687b ldr r3, [r7, #4] 80118d2: 2204 movs r2, #4 80118d4: 745a strb r2, [r3, #17] return HAL_ERROR; 80118d6: 2301 movs r3, #1 80118d8: e00c b.n 80118f4 } /* Initialize date to 1st of January 2000 */ hrtc->DateToUpdate.Year = 0x00U; 80118da: 687b ldr r3, [r7, #4] 80118dc: 2200 movs r2, #0 80118de: 73da strb r2, [r3, #15] hrtc->DateToUpdate.Month = RTC_MONTH_JANUARY; 80118e0: 687b ldr r3, [r7, #4] 80118e2: 2201 movs r2, #1 80118e4: 735a strb r2, [r3, #13] hrtc->DateToUpdate.Date = 0x01U; 80118e6: 687b ldr r3, [r7, #4] 80118e8: 2201 movs r2, #1 80118ea: 739a strb r2, [r3, #14] /* Set RTC state */ hrtc->State = HAL_RTC_STATE_READY; 80118ec: 687b ldr r3, [r7, #4] 80118ee: 2201 movs r2, #1 80118f0: 745a strb r2, [r3, #17] return HAL_OK; 80118f2: 2300 movs r3, #0 } } 80118f4: 4618 mov r0, r3 80118f6: 3710 adds r7, #16 80118f8: 46bd mov sp, r7 80118fa: bd80 pop {r7, pc} 80118fc: 40006c00 .word 0x40006c00 08011900 : * @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) { 8011900: b580 push {r7, lr} 8011902: b084 sub sp, #16 8011904: af00 add r7, sp, #0 8011906: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011908: 2300 movs r3, #0 801190a: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) 801190c: 687b ldr r3, [r7, #4] 801190e: 2b00 cmp r3, #0 8011910: d101 bne.n 8011916 { return HAL_ERROR; 8011912: 2301 movs r3, #1 8011914: e01d b.n 8011952 } /* Clear RSF flag */ CLEAR_BIT(hrtc->Instance->CRL, RTC_FLAG_RSF); 8011916: 687b ldr r3, [r7, #4] 8011918: 681b ldr r3, [r3, #0] 801191a: 685a ldr r2, [r3, #4] 801191c: 687b ldr r3, [r7, #4] 801191e: 681b ldr r3, [r3, #0] 8011920: f022 0208 bic.w r2, r2, #8 8011924: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); 8011926: f7fc fa5f bl 800dde8 801192a: 60f8 str r0, [r7, #12] /* Wait the registers to be synchronised */ while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) 801192c: e009 b.n 8011942 { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 801192e: f7fc fa5b bl 800dde8 8011932: 4602 mov r2, r0 8011934: 68fb ldr r3, [r7, #12] 8011936: 1ad3 subs r3, r2, r3 8011938: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 801193c: d901 bls.n 8011942 { return HAL_TIMEOUT; 801193e: 2303 movs r3, #3 8011940: e007 b.n 8011952 while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) 8011942: 687b ldr r3, [r7, #4] 8011944: 681b ldr r3, [r3, #0] 8011946: 685b ldr r3, [r3, #4] 8011948: f003 0308 and.w r3, r3, #8 801194c: 2b00 cmp r3, #0 801194e: d0ee beq.n 801192e } } return HAL_OK; 8011950: 2300 movs r3, #0 } 8011952: 4618 mov r0, r3 8011954: 3710 adds r7, #16 8011956: 46bd mov sp, r7 8011958: bd80 pop {r7, pc} 0801195a : * @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) { 801195a: b580 push {r7, lr} 801195c: b084 sub sp, #16 801195e: af00 add r7, sp, #0 8011960: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011962: 2300 movs r3, #0 8011964: 60fb str r3, [r7, #12] tickstart = HAL_GetTick(); 8011966: f7fc fa3f bl 800dde8 801196a: 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) 801196c: e009 b.n 8011982 { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 801196e: f7fc fa3b bl 800dde8 8011972: 4602 mov r2, r0 8011974: 68fb ldr r3, [r7, #12] 8011976: 1ad3 subs r3, r2, r3 8011978: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 801197c: d901 bls.n 8011982 { return HAL_TIMEOUT; 801197e: 2303 movs r3, #3 8011980: e00f b.n 80119a2 while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011982: 687b ldr r3, [r7, #4] 8011984: 681b ldr r3, [r3, #0] 8011986: 685b ldr r3, [r3, #4] 8011988: f003 0320 and.w r3, r3, #32 801198c: 2b00 cmp r3, #0 801198e: d0ee beq.n 801196e } } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); 8011990: 687b ldr r3, [r7, #4] 8011992: 681b ldr r3, [r3, #0] 8011994: 685a ldr r2, [r3, #4] 8011996: 687b ldr r3, [r7, #4] 8011998: 681b ldr r3, [r3, #0] 801199a: f042 0210 orr.w r2, r2, #16 801199e: 605a str r2, [r3, #4] return HAL_OK; 80119a0: 2300 movs r3, #0 } 80119a2: 4618 mov r0, r3 80119a4: 3710 adds r7, #16 80119a6: 46bd mov sp, r7 80119a8: bd80 pop {r7, pc} 080119aa : * @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) { 80119aa: b580 push {r7, lr} 80119ac: b084 sub sp, #16 80119ae: af00 add r7, sp, #0 80119b0: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 80119b2: 2300 movs r3, #0 80119b4: 60fb str r3, [r7, #12] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); 80119b6: 687b ldr r3, [r7, #4] 80119b8: 681b ldr r3, [r3, #0] 80119ba: 685a ldr r2, [r3, #4] 80119bc: 687b ldr r3, [r7, #4] 80119be: 681b ldr r3, [r3, #0] 80119c0: f022 0210 bic.w r2, r2, #16 80119c4: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); 80119c6: f7fc fa0f bl 800dde8 80119ca: 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) 80119cc: e009 b.n 80119e2 { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 80119ce: f7fc fa0b bl 800dde8 80119d2: 4602 mov r2, r0 80119d4: 68fb ldr r3, [r7, #12] 80119d6: 1ad3 subs r3, r2, r3 80119d8: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 80119dc: d901 bls.n 80119e2 { return HAL_TIMEOUT; 80119de: 2303 movs r3, #3 80119e0: e007 b.n 80119f2 while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 80119e2: 687b ldr r3, [r7, #4] 80119e4: 681b ldr r3, [r3, #0] 80119e6: 685b ldr r3, [r3, #4] 80119e8: f003 0320 and.w r3, r3, #32 80119ec: 2b00 cmp r3, #0 80119ee: d0ee beq.n 80119ce } } return HAL_OK; 80119f0: 2300 movs r3, #0 } 80119f2: 4618 mov r0, r3 80119f4: 3710 adds r7, #16 80119f6: 46bd mov sp, r7 80119f8: bd80 pop {r7, pc} 080119fa : * 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) { 80119fa: b580 push {r7, lr} 80119fc: b082 sub sp, #8 80119fe: af00 add r7, sp, #0 8011a00: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011a02: 687b ldr r3, [r7, #4] 8011a04: 2b00 cmp r3, #0 8011a06: d101 bne.n 8011a0c { return HAL_ERROR; 8011a08: 2301 movs r3, #1 8011a0a: e041 b.n 8011a90 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) 8011a0c: 687b ldr r3, [r7, #4] 8011a0e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011a12: b2db uxtb r3, r3 8011a14: 2b00 cmp r3, #0 8011a16: d106 bne.n 8011a26 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011a18: 687b ldr r3, [r7, #4] 8011a1a: 2200 movs r2, #0 8011a1c: 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); 8011a20: 6878 ldr r0, [r7, #4] 8011a22: f7fb fe67 bl 800d6f4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011a26: 687b ldr r3, [r7, #4] 8011a28: 2202 movs r2, #2 8011a2a: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011a2e: 687b ldr r3, [r7, #4] 8011a30: 681a ldr r2, [r3, #0] 8011a32: 687b ldr r3, [r7, #4] 8011a34: 3304 adds r3, #4 8011a36: 4619 mov r1, r3 8011a38: 4610 mov r0, r2 8011a3a: f000 fd33 bl 80124a4 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011a3e: 687b ldr r3, [r7, #4] 8011a40: 2201 movs r2, #1 8011a42: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011a46: 687b ldr r3, [r7, #4] 8011a48: 2201 movs r2, #1 8011a4a: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011a4e: 687b ldr r3, [r7, #4] 8011a50: 2201 movs r2, #1 8011a52: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011a56: 687b ldr r3, [r7, #4] 8011a58: 2201 movs r2, #1 8011a5a: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011a5e: 687b ldr r3, [r7, #4] 8011a60: 2201 movs r2, #1 8011a62: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011a66: 687b ldr r3, [r7, #4] 8011a68: 2201 movs r2, #1 8011a6a: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011a6e: 687b ldr r3, [r7, #4] 8011a70: 2201 movs r2, #1 8011a72: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011a76: 687b ldr r3, [r7, #4] 8011a78: 2201 movs r2, #1 8011a7a: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011a7e: 687b ldr r3, [r7, #4] 8011a80: 2201 movs r2, #1 8011a82: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011a86: 687b ldr r3, [r7, #4] 8011a88: 2201 movs r2, #1 8011a8a: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011a8e: 2300 movs r3, #0 } 8011a90: 4618 mov r0, r3 8011a92: 3708 adds r7, #8 8011a94: 46bd mov sp, r7 8011a96: bd80 pop {r7, pc} 08011a98 : * 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) { 8011a98: b580 push {r7, lr} 8011a9a: b082 sub sp, #8 8011a9c: af00 add r7, sp, #0 8011a9e: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011aa0: 687b ldr r3, [r7, #4] 8011aa2: 2b00 cmp r3, #0 8011aa4: d101 bne.n 8011aaa { return HAL_ERROR; 8011aa6: 2301 movs r3, #1 8011aa8: e041 b.n 8011b2e 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) 8011aaa: 687b ldr r3, [r7, #4] 8011aac: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011ab0: b2db uxtb r3, r3 8011ab2: 2b00 cmp r3, #0 8011ab4: d106 bne.n 8011ac4 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011ab6: 687b ldr r3, [r7, #4] 8011ab8: 2200 movs r2, #0 8011aba: 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); 8011abe: 6878 ldr r0, [r7, #4] 8011ac0: f000 f839 bl 8011b36 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011ac4: 687b ldr r3, [r7, #4] 8011ac6: 2202 movs r2, #2 8011ac8: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the Output Compare */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011acc: 687b ldr r3, [r7, #4] 8011ace: 681a ldr r2, [r3, #0] 8011ad0: 687b ldr r3, [r7, #4] 8011ad2: 3304 adds r3, #4 8011ad4: 4619 mov r1, r3 8011ad6: 4610 mov r0, r2 8011ad8: f000 fce4 bl 80124a4 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011adc: 687b ldr r3, [r7, #4] 8011ade: 2201 movs r2, #1 8011ae0: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011ae4: 687b ldr r3, [r7, #4] 8011ae6: 2201 movs r2, #1 8011ae8: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011aec: 687b ldr r3, [r7, #4] 8011aee: 2201 movs r2, #1 8011af0: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011af4: 687b ldr r3, [r7, #4] 8011af6: 2201 movs r2, #1 8011af8: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011afc: 687b ldr r3, [r7, #4] 8011afe: 2201 movs r2, #1 8011b00: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011b04: 687b ldr r3, [r7, #4] 8011b06: 2201 movs r2, #1 8011b08: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011b0c: 687b ldr r3, [r7, #4] 8011b0e: 2201 movs r2, #1 8011b10: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011b14: 687b ldr r3, [r7, #4] 8011b16: 2201 movs r2, #1 8011b18: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011b1c: 687b ldr r3, [r7, #4] 8011b1e: 2201 movs r2, #1 8011b20: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011b24: 687b ldr r3, [r7, #4] 8011b26: 2201 movs r2, #1 8011b28: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011b2c: 2300 movs r3, #0 } 8011b2e: 4618 mov r0, r3 8011b30: 3708 adds r7, #8 8011b32: 46bd mov sp, r7 8011b34: bd80 pop {r7, pc} 08011b36 : * @brief Initializes the TIM Output Compare MSP. * @param htim TIM Output Compare handle * @retval None */ __weak void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim) { 8011b36: b480 push {r7} 8011b38: b083 sub sp, #12 8011b3a: af00 add r7, sp, #0 8011b3c: 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 */ } 8011b3e: bf00 nop 8011b40: 370c adds r7, #12 8011b42: 46bd mov sp, r7 8011b44: bc80 pop {r7} 8011b46: 4770 bx lr 08011b48 : * @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) { 8011b48: b580 push {r7, lr} 8011b4a: b084 sub sp, #16 8011b4c: af00 add r7, sp, #0 8011b4e: 6078 str r0, [r7, #4] 8011b50: 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) 8011b52: 683b ldr r3, [r7, #0] 8011b54: 2b00 cmp r3, #0 8011b56: d109 bne.n 8011b6c 8011b58: 687b ldr r3, [r7, #4] 8011b5a: f893 303e ldrb.w r3, [r3, #62] @ 0x3e 8011b5e: b2db uxtb r3, r3 8011b60: 2b01 cmp r3, #1 8011b62: bf14 ite ne 8011b64: 2301 movne r3, #1 8011b66: 2300 moveq r3, #0 8011b68: b2db uxtb r3, r3 8011b6a: e022 b.n 8011bb2 8011b6c: 683b ldr r3, [r7, #0] 8011b6e: 2b04 cmp r3, #4 8011b70: d109 bne.n 8011b86 8011b72: 687b ldr r3, [r7, #4] 8011b74: f893 303f ldrb.w r3, [r3, #63] @ 0x3f 8011b78: b2db uxtb r3, r3 8011b7a: 2b01 cmp r3, #1 8011b7c: bf14 ite ne 8011b7e: 2301 movne r3, #1 8011b80: 2300 moveq r3, #0 8011b82: b2db uxtb r3, r3 8011b84: e015 b.n 8011bb2 8011b86: 683b ldr r3, [r7, #0] 8011b88: 2b08 cmp r3, #8 8011b8a: d109 bne.n 8011ba0 8011b8c: 687b ldr r3, [r7, #4] 8011b8e: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 8011b92: b2db uxtb r3, r3 8011b94: 2b01 cmp r3, #1 8011b96: bf14 ite ne 8011b98: 2301 movne r3, #1 8011b9a: 2300 moveq r3, #0 8011b9c: b2db uxtb r3, r3 8011b9e: e008 b.n 8011bb2 8011ba0: 687b ldr r3, [r7, #4] 8011ba2: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8011ba6: b2db uxtb r3, r3 8011ba8: 2b01 cmp r3, #1 8011baa: bf14 ite ne 8011bac: 2301 movne r3, #1 8011bae: 2300 moveq r3, #0 8011bb0: b2db uxtb r3, r3 8011bb2: 2b00 cmp r3, #0 8011bb4: d001 beq.n 8011bba { return HAL_ERROR; 8011bb6: 2301 movs r3, #1 8011bb8: e063 b.n 8011c82 } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8011bba: 683b ldr r3, [r7, #0] 8011bbc: 2b00 cmp r3, #0 8011bbe: d104 bne.n 8011bca 8011bc0: 687b ldr r3, [r7, #4] 8011bc2: 2202 movs r2, #2 8011bc4: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011bc8: e013 b.n 8011bf2 8011bca: 683b ldr r3, [r7, #0] 8011bcc: 2b04 cmp r3, #4 8011bce: d104 bne.n 8011bda 8011bd0: 687b ldr r3, [r7, #4] 8011bd2: 2202 movs r2, #2 8011bd4: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011bd8: e00b b.n 8011bf2 8011bda: 683b ldr r3, [r7, #0] 8011bdc: 2b08 cmp r3, #8 8011bde: d104 bne.n 8011bea 8011be0: 687b ldr r3, [r7, #4] 8011be2: 2202 movs r2, #2 8011be4: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011be8: e003 b.n 8011bf2 8011bea: 687b ldr r3, [r7, #4] 8011bec: 2202 movs r2, #2 8011bee: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 8011bf2: 687b ldr r3, [r7, #4] 8011bf4: 681b ldr r3, [r3, #0] 8011bf6: 2201 movs r2, #1 8011bf8: 6839 ldr r1, [r7, #0] 8011bfa: 4618 mov r0, r3 8011bfc: f000 fee8 bl 80129d0 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 8011c00: 687b ldr r3, [r7, #4] 8011c02: 681b ldr r3, [r3, #0] 8011c04: 4a21 ldr r2, [pc, #132] @ (8011c8c ) 8011c06: 4293 cmp r3, r2 8011c08: d107 bne.n 8011c1a { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8011c0a: 687b ldr r3, [r7, #4] 8011c0c: 681b ldr r3, [r3, #0] 8011c0e: 6c5a ldr r2, [r3, #68] @ 0x44 8011c10: 687b ldr r3, [r7, #4] 8011c12: 681b ldr r3, [r3, #0] 8011c14: f442 4200 orr.w r2, r2, #32768 @ 0x8000 8011c18: 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)) 8011c1a: 687b ldr r3, [r7, #4] 8011c1c: 681b ldr r3, [r3, #0] 8011c1e: 4a1b ldr r2, [pc, #108] @ (8011c8c ) 8011c20: 4293 cmp r3, r2 8011c22: d013 beq.n 8011c4c 8011c24: 687b ldr r3, [r7, #4] 8011c26: 681b ldr r3, [r3, #0] 8011c28: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8011c2c: d00e beq.n 8011c4c 8011c2e: 687b ldr r3, [r7, #4] 8011c30: 681b ldr r3, [r3, #0] 8011c32: 4a17 ldr r2, [pc, #92] @ (8011c90 ) 8011c34: 4293 cmp r3, r2 8011c36: d009 beq.n 8011c4c 8011c38: 687b ldr r3, [r7, #4] 8011c3a: 681b ldr r3, [r3, #0] 8011c3c: 4a15 ldr r2, [pc, #84] @ (8011c94 ) 8011c3e: 4293 cmp r3, r2 8011c40: d004 beq.n 8011c4c 8011c42: 687b ldr r3, [r7, #4] 8011c44: 681b ldr r3, [r3, #0] 8011c46: 4a14 ldr r2, [pc, #80] @ (8011c98 ) 8011c48: 4293 cmp r3, r2 8011c4a: d111 bne.n 8011c70 { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8011c4c: 687b ldr r3, [r7, #4] 8011c4e: 681b ldr r3, [r3, #0] 8011c50: 689b ldr r3, [r3, #8] 8011c52: f003 0307 and.w r3, r3, #7 8011c56: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011c58: 68fb ldr r3, [r7, #12] 8011c5a: 2b06 cmp r3, #6 8011c5c: d010 beq.n 8011c80 { __HAL_TIM_ENABLE(htim); 8011c5e: 687b ldr r3, [r7, #4] 8011c60: 681b ldr r3, [r3, #0] 8011c62: 681a ldr r2, [r3, #0] 8011c64: 687b ldr r3, [r7, #4] 8011c66: 681b ldr r3, [r3, #0] 8011c68: f042 0201 orr.w r2, r2, #1 8011c6c: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011c6e: e007 b.n 8011c80 } } else { __HAL_TIM_ENABLE(htim); 8011c70: 687b ldr r3, [r7, #4] 8011c72: 681b ldr r3, [r3, #0] 8011c74: 681a ldr r2, [r3, #0] 8011c76: 687b ldr r3, [r7, #4] 8011c78: 681b ldr r3, [r3, #0] 8011c7a: f042 0201 orr.w r2, r2, #1 8011c7e: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 8011c80: 2300 movs r3, #0 } 8011c82: 4618 mov r0, r3 8011c84: 3710 adds r7, #16 8011c86: 46bd mov sp, r7 8011c88: bd80 pop {r7, pc} 8011c8a: bf00 nop 8011c8c: 40012c00 .word 0x40012c00 8011c90: 40000400 .word 0x40000400 8011c94: 40000800 .word 0x40000800 8011c98: 40000c00 .word 0x40000c00 08011c9c : * 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) { 8011c9c: b580 push {r7, lr} 8011c9e: b082 sub sp, #8 8011ca0: af00 add r7, sp, #0 8011ca2: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011ca4: 687b ldr r3, [r7, #4] 8011ca6: 2b00 cmp r3, #0 8011ca8: d101 bne.n 8011cae { return HAL_ERROR; 8011caa: 2301 movs r3, #1 8011cac: e041 b.n 8011d32 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) 8011cae: 687b ldr r3, [r7, #4] 8011cb0: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011cb4: b2db uxtb r3, r3 8011cb6: 2b00 cmp r3, #0 8011cb8: d106 bne.n 8011cc8 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011cba: 687b ldr r3, [r7, #4] 8011cbc: 2200 movs r2, #0 8011cbe: 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); 8011cc2: 6878 ldr r0, [r7, #4] 8011cc4: f000 f839 bl 8011d3a #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011cc8: 687b ldr r3, [r7, #4] 8011cca: 2202 movs r2, #2 8011ccc: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011cd0: 687b ldr r3, [r7, #4] 8011cd2: 681a ldr r2, [r3, #0] 8011cd4: 687b ldr r3, [r7, #4] 8011cd6: 3304 adds r3, #4 8011cd8: 4619 mov r1, r3 8011cda: 4610 mov r0, r2 8011cdc: f000 fbe2 bl 80124a4 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011ce0: 687b ldr r3, [r7, #4] 8011ce2: 2201 movs r2, #1 8011ce4: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011ce8: 687b ldr r3, [r7, #4] 8011cea: 2201 movs r2, #1 8011cec: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011cf0: 687b ldr r3, [r7, #4] 8011cf2: 2201 movs r2, #1 8011cf4: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011cf8: 687b ldr r3, [r7, #4] 8011cfa: 2201 movs r2, #1 8011cfc: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011d00: 687b ldr r3, [r7, #4] 8011d02: 2201 movs r2, #1 8011d04: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011d08: 687b ldr r3, [r7, #4] 8011d0a: 2201 movs r2, #1 8011d0c: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011d10: 687b ldr r3, [r7, #4] 8011d12: 2201 movs r2, #1 8011d14: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011d18: 687b ldr r3, [r7, #4] 8011d1a: 2201 movs r2, #1 8011d1c: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011d20: 687b ldr r3, [r7, #4] 8011d22: 2201 movs r2, #1 8011d24: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011d28: 687b ldr r3, [r7, #4] 8011d2a: 2201 movs r2, #1 8011d2c: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011d30: 2300 movs r3, #0 } 8011d32: 4618 mov r0, r3 8011d34: 3708 adds r7, #8 8011d36: 46bd mov sp, r7 8011d38: bd80 pop {r7, pc} 08011d3a : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { 8011d3a: b480 push {r7} 8011d3c: b083 sub sp, #12 8011d3e: af00 add r7, sp, #0 8011d40: 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 */ } 8011d42: bf00 nop 8011d44: 370c adds r7, #12 8011d46: 46bd mov sp, r7 8011d48: bc80 pop {r7} 8011d4a: 4770 bx lr 08011d4c : * @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) { 8011d4c: b580 push {r7, lr} 8011d4e: b084 sub sp, #16 8011d50: af00 add r7, sp, #0 8011d52: 6078 str r0, [r7, #4] 8011d54: 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) 8011d56: 683b ldr r3, [r7, #0] 8011d58: 2b00 cmp r3, #0 8011d5a: d109 bne.n 8011d70 8011d5c: 687b ldr r3, [r7, #4] 8011d5e: f893 303e ldrb.w r3, [r3, #62] @ 0x3e 8011d62: b2db uxtb r3, r3 8011d64: 2b01 cmp r3, #1 8011d66: bf14 ite ne 8011d68: 2301 movne r3, #1 8011d6a: 2300 moveq r3, #0 8011d6c: b2db uxtb r3, r3 8011d6e: e022 b.n 8011db6 8011d70: 683b ldr r3, [r7, #0] 8011d72: 2b04 cmp r3, #4 8011d74: d109 bne.n 8011d8a 8011d76: 687b ldr r3, [r7, #4] 8011d78: f893 303f ldrb.w r3, [r3, #63] @ 0x3f 8011d7c: b2db uxtb r3, r3 8011d7e: 2b01 cmp r3, #1 8011d80: bf14 ite ne 8011d82: 2301 movne r3, #1 8011d84: 2300 moveq r3, #0 8011d86: b2db uxtb r3, r3 8011d88: e015 b.n 8011db6 8011d8a: 683b ldr r3, [r7, #0] 8011d8c: 2b08 cmp r3, #8 8011d8e: d109 bne.n 8011da4 8011d90: 687b ldr r3, [r7, #4] 8011d92: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 8011d96: b2db uxtb r3, r3 8011d98: 2b01 cmp r3, #1 8011d9a: bf14 ite ne 8011d9c: 2301 movne r3, #1 8011d9e: 2300 moveq r3, #0 8011da0: b2db uxtb r3, r3 8011da2: e008 b.n 8011db6 8011da4: 687b ldr r3, [r7, #4] 8011da6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8011daa: b2db uxtb r3, r3 8011dac: 2b01 cmp r3, #1 8011dae: bf14 ite ne 8011db0: 2301 movne r3, #1 8011db2: 2300 moveq r3, #0 8011db4: b2db uxtb r3, r3 8011db6: 2b00 cmp r3, #0 8011db8: d001 beq.n 8011dbe { return HAL_ERROR; 8011dba: 2301 movs r3, #1 8011dbc: e063 b.n 8011e86 } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8011dbe: 683b ldr r3, [r7, #0] 8011dc0: 2b00 cmp r3, #0 8011dc2: d104 bne.n 8011dce 8011dc4: 687b ldr r3, [r7, #4] 8011dc6: 2202 movs r2, #2 8011dc8: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011dcc: e013 b.n 8011df6 8011dce: 683b ldr r3, [r7, #0] 8011dd0: 2b04 cmp r3, #4 8011dd2: d104 bne.n 8011dde 8011dd4: 687b ldr r3, [r7, #4] 8011dd6: 2202 movs r2, #2 8011dd8: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011ddc: e00b b.n 8011df6 8011dde: 683b ldr r3, [r7, #0] 8011de0: 2b08 cmp r3, #8 8011de2: d104 bne.n 8011dee 8011de4: 687b ldr r3, [r7, #4] 8011de6: 2202 movs r2, #2 8011de8: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011dec: e003 b.n 8011df6 8011dee: 687b ldr r3, [r7, #4] 8011df0: 2202 movs r2, #2 8011df2: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 8011df6: 687b ldr r3, [r7, #4] 8011df8: 681b ldr r3, [r3, #0] 8011dfa: 2201 movs r2, #1 8011dfc: 6839 ldr r1, [r7, #0] 8011dfe: 4618 mov r0, r3 8011e00: f000 fde6 bl 80129d0 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 8011e04: 687b ldr r3, [r7, #4] 8011e06: 681b ldr r3, [r3, #0] 8011e08: 4a21 ldr r2, [pc, #132] @ (8011e90 ) 8011e0a: 4293 cmp r3, r2 8011e0c: d107 bne.n 8011e1e { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8011e0e: 687b ldr r3, [r7, #4] 8011e10: 681b ldr r3, [r3, #0] 8011e12: 6c5a ldr r2, [r3, #68] @ 0x44 8011e14: 687b ldr r3, [r7, #4] 8011e16: 681b ldr r3, [r3, #0] 8011e18: f442 4200 orr.w r2, r2, #32768 @ 0x8000 8011e1c: 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)) 8011e1e: 687b ldr r3, [r7, #4] 8011e20: 681b ldr r3, [r3, #0] 8011e22: 4a1b ldr r2, [pc, #108] @ (8011e90 ) 8011e24: 4293 cmp r3, r2 8011e26: d013 beq.n 8011e50 8011e28: 687b ldr r3, [r7, #4] 8011e2a: 681b ldr r3, [r3, #0] 8011e2c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8011e30: d00e beq.n 8011e50 8011e32: 687b ldr r3, [r7, #4] 8011e34: 681b ldr r3, [r3, #0] 8011e36: 4a17 ldr r2, [pc, #92] @ (8011e94 ) 8011e38: 4293 cmp r3, r2 8011e3a: d009 beq.n 8011e50 8011e3c: 687b ldr r3, [r7, #4] 8011e3e: 681b ldr r3, [r3, #0] 8011e40: 4a15 ldr r2, [pc, #84] @ (8011e98 ) 8011e42: 4293 cmp r3, r2 8011e44: d004 beq.n 8011e50 8011e46: 687b ldr r3, [r7, #4] 8011e48: 681b ldr r3, [r3, #0] 8011e4a: 4a14 ldr r2, [pc, #80] @ (8011e9c ) 8011e4c: 4293 cmp r3, r2 8011e4e: d111 bne.n 8011e74 { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8011e50: 687b ldr r3, [r7, #4] 8011e52: 681b ldr r3, [r3, #0] 8011e54: 689b ldr r3, [r3, #8] 8011e56: f003 0307 and.w r3, r3, #7 8011e5a: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011e5c: 68fb ldr r3, [r7, #12] 8011e5e: 2b06 cmp r3, #6 8011e60: d010 beq.n 8011e84 { __HAL_TIM_ENABLE(htim); 8011e62: 687b ldr r3, [r7, #4] 8011e64: 681b ldr r3, [r3, #0] 8011e66: 681a ldr r2, [r3, #0] 8011e68: 687b ldr r3, [r7, #4] 8011e6a: 681b ldr r3, [r3, #0] 8011e6c: f042 0201 orr.w r2, r2, #1 8011e70: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011e72: e007 b.n 8011e84 } } else { __HAL_TIM_ENABLE(htim); 8011e74: 687b ldr r3, [r7, #4] 8011e76: 681b ldr r3, [r3, #0] 8011e78: 681a ldr r2, [r3, #0] 8011e7a: 687b ldr r3, [r7, #4] 8011e7c: 681b ldr r3, [r3, #0] 8011e7e: f042 0201 orr.w r2, r2, #1 8011e82: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 8011e84: 2300 movs r3, #0 } 8011e86: 4618 mov r0, r3 8011e88: 3710 adds r7, #16 8011e8a: 46bd mov sp, r7 8011e8c: bd80 pop {r7, pc} 8011e8e: bf00 nop 8011e90: 40012c00 .word 0x40012c00 8011e94: 40000400 .word 0x40000400 8011e98: 40000800 .word 0x40000800 8011e9c: 40000c00 .word 0x40000c00 08011ea0 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { 8011ea0: b580 push {r7, lr} 8011ea2: b084 sub sp, #16 8011ea4: af00 add r7, sp, #0 8011ea6: 6078 str r0, [r7, #4] uint32_t itsource = htim->Instance->DIER; 8011ea8: 687b ldr r3, [r7, #4] 8011eaa: 681b ldr r3, [r3, #0] 8011eac: 68db ldr r3, [r3, #12] 8011eae: 60fb str r3, [r7, #12] uint32_t itflag = htim->Instance->SR; 8011eb0: 687b ldr r3, [r7, #4] 8011eb2: 681b ldr r3, [r3, #0] 8011eb4: 691b ldr r3, [r3, #16] 8011eb6: 60bb str r3, [r7, #8] /* Capture compare 1 event */ if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1)) 8011eb8: 68bb ldr r3, [r7, #8] 8011eba: f003 0302 and.w r3, r3, #2 8011ebe: 2b00 cmp r3, #0 8011ec0: d020 beq.n 8011f04 { if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1)) 8011ec2: 68fb ldr r3, [r7, #12] 8011ec4: f003 0302 and.w r3, r3, #2 8011ec8: 2b00 cmp r3, #0 8011eca: d01b beq.n 8011f04 { { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1); 8011ecc: 687b ldr r3, [r7, #4] 8011ece: 681b ldr r3, [r3, #0] 8011ed0: f06f 0202 mvn.w r2, #2 8011ed4: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; 8011ed6: 687b ldr r3, [r7, #4] 8011ed8: 2201 movs r2, #1 8011eda: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) 8011edc: 687b ldr r3, [r7, #4] 8011ede: 681b ldr r3, [r3, #0] 8011ee0: 699b ldr r3, [r3, #24] 8011ee2: f003 0303 and.w r3, r3, #3 8011ee6: 2b00 cmp r3, #0 8011ee8: d003 beq.n 8011ef2 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8011eea: 6878 ldr r0, [r7, #4] 8011eec: f000 fabf bl 801246e 8011ef0: e005 b.n 8011efe { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8011ef2: 6878 ldr r0, [r7, #4] 8011ef4: f000 fab2 bl 801245c HAL_TIM_PWM_PulseFinishedCallback(htim); 8011ef8: 6878 ldr r0, [r7, #4] 8011efa: f000 fac1 bl 8012480 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8011efe: 687b ldr r3, [r7, #4] 8011f00: 2200 movs r2, #0 8011f02: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2)) 8011f04: 68bb ldr r3, [r7, #8] 8011f06: f003 0304 and.w r3, r3, #4 8011f0a: 2b00 cmp r3, #0 8011f0c: d020 beq.n 8011f50 { if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2)) 8011f0e: 68fb ldr r3, [r7, #12] 8011f10: f003 0304 and.w r3, r3, #4 8011f14: 2b00 cmp r3, #0 8011f16: d01b beq.n 8011f50 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2); 8011f18: 687b ldr r3, [r7, #4] 8011f1a: 681b ldr r3, [r3, #0] 8011f1c: f06f 0204 mvn.w r2, #4 8011f20: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; 8011f22: 687b ldr r3, [r7, #4] 8011f24: 2202 movs r2, #2 8011f26: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) 8011f28: 687b ldr r3, [r7, #4] 8011f2a: 681b ldr r3, [r3, #0] 8011f2c: 699b ldr r3, [r3, #24] 8011f2e: f403 7340 and.w r3, r3, #768 @ 0x300 8011f32: 2b00 cmp r3, #0 8011f34: d003 beq.n 8011f3e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8011f36: 6878 ldr r0, [r7, #4] 8011f38: f000 fa99 bl 801246e 8011f3c: e005 b.n 8011f4a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8011f3e: 6878 ldr r0, [r7, #4] 8011f40: f000 fa8c bl 801245c HAL_TIM_PWM_PulseFinishedCallback(htim); 8011f44: 6878 ldr r0, [r7, #4] 8011f46: f000 fa9b bl 8012480 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8011f4a: 687b ldr r3, [r7, #4] 8011f4c: 2200 movs r2, #0 8011f4e: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3)) 8011f50: 68bb ldr r3, [r7, #8] 8011f52: f003 0308 and.w r3, r3, #8 8011f56: 2b00 cmp r3, #0 8011f58: d020 beq.n 8011f9c { if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3)) 8011f5a: 68fb ldr r3, [r7, #12] 8011f5c: f003 0308 and.w r3, r3, #8 8011f60: 2b00 cmp r3, #0 8011f62: d01b beq.n 8011f9c { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3); 8011f64: 687b ldr r3, [r7, #4] 8011f66: 681b ldr r3, [r3, #0] 8011f68: f06f 0208 mvn.w r2, #8 8011f6c: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; 8011f6e: 687b ldr r3, [r7, #4] 8011f70: 2204 movs r2, #4 8011f72: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) 8011f74: 687b ldr r3, [r7, #4] 8011f76: 681b ldr r3, [r3, #0] 8011f78: 69db ldr r3, [r3, #28] 8011f7a: f003 0303 and.w r3, r3, #3 8011f7e: 2b00 cmp r3, #0 8011f80: d003 beq.n 8011f8a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8011f82: 6878 ldr r0, [r7, #4] 8011f84: f000 fa73 bl 801246e 8011f88: e005 b.n 8011f96 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8011f8a: 6878 ldr r0, [r7, #4] 8011f8c: f000 fa66 bl 801245c HAL_TIM_PWM_PulseFinishedCallback(htim); 8011f90: 6878 ldr r0, [r7, #4] 8011f92: f000 fa75 bl 8012480 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8011f96: 687b ldr r3, [r7, #4] 8011f98: 2200 movs r2, #0 8011f9a: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4)) 8011f9c: 68bb ldr r3, [r7, #8] 8011f9e: f003 0310 and.w r3, r3, #16 8011fa2: 2b00 cmp r3, #0 8011fa4: d020 beq.n 8011fe8 { if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4)) 8011fa6: 68fb ldr r3, [r7, #12] 8011fa8: f003 0310 and.w r3, r3, #16 8011fac: 2b00 cmp r3, #0 8011fae: d01b beq.n 8011fe8 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4); 8011fb0: 687b ldr r3, [r7, #4] 8011fb2: 681b ldr r3, [r3, #0] 8011fb4: f06f 0210 mvn.w r2, #16 8011fb8: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; 8011fba: 687b ldr r3, [r7, #4] 8011fbc: 2208 movs r2, #8 8011fbe: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) 8011fc0: 687b ldr r3, [r7, #4] 8011fc2: 681b ldr r3, [r3, #0] 8011fc4: 69db ldr r3, [r3, #28] 8011fc6: f403 7340 and.w r3, r3, #768 @ 0x300 8011fca: 2b00 cmp r3, #0 8011fcc: d003 beq.n 8011fd6 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8011fce: 6878 ldr r0, [r7, #4] 8011fd0: f000 fa4d bl 801246e 8011fd4: e005 b.n 8011fe2 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8011fd6: 6878 ldr r0, [r7, #4] 8011fd8: f000 fa40 bl 801245c HAL_TIM_PWM_PulseFinishedCallback(htim); 8011fdc: 6878 ldr r0, [r7, #4] 8011fde: f000 fa4f bl 8012480 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8011fe2: 687b ldr r3, [r7, #4] 8011fe4: 2200 movs r2, #0 8011fe6: 771a strb r2, [r3, #28] } } /* TIM Update event */ if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE)) 8011fe8: 68bb ldr r3, [r7, #8] 8011fea: f003 0301 and.w r3, r3, #1 8011fee: 2b00 cmp r3, #0 8011ff0: d00c beq.n 801200c { if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE)) 8011ff2: 68fb ldr r3, [r7, #12] 8011ff4: f003 0301 and.w r3, r3, #1 8011ff8: 2b00 cmp r3, #0 8011ffa: d007 beq.n 801200c { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE); 8011ffc: 687b ldr r3, [r7, #4] 8011ffe: 681b ldr r3, [r3, #0] 8012000: f06f 0201 mvn.w r2, #1 8012004: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); 8012006: 6878 ldr r0, [r7, #4] 8012008: f000 fa1f bl 801244a #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if ((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) 801200c: 68bb ldr r3, [r7, #8] 801200e: f003 0380 and.w r3, r3, #128 @ 0x80 8012012: 2b00 cmp r3, #0 8012014: d00c beq.n 8012030 { if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK)) 8012016: 68fb ldr r3, [r7, #12] 8012018: f003 0380 and.w r3, r3, #128 @ 0x80 801201c: 2b00 cmp r3, #0 801201e: d007 beq.n 8012030 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK); 8012020: 687b ldr r3, [r7, #4] 8012022: 681b ldr r3, [r3, #0] 8012024: f06f 0280 mvn.w r2, #128 @ 0x80 8012028: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); 801202a: 6878 ldr r0, [r7, #4] 801202c: f000 fd63 bl 8012af6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER)) 8012030: 68bb ldr r3, [r7, #8] 8012032: f003 0340 and.w r3, r3, #64 @ 0x40 8012036: 2b00 cmp r3, #0 8012038: d00c beq.n 8012054 { if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER)) 801203a: 68fb ldr r3, [r7, #12] 801203c: f003 0340 and.w r3, r3, #64 @ 0x40 8012040: 2b00 cmp r3, #0 8012042: d007 beq.n 8012054 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER); 8012044: 687b ldr r3, [r7, #4] 8012046: 681b ldr r3, [r3, #0] 8012048: f06f 0240 mvn.w r2, #64 @ 0x40 801204c: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); 801204e: 6878 ldr r0, [r7, #4] 8012050: f000 fa1f bl 8012492 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM)) 8012054: 68bb ldr r3, [r7, #8] 8012056: f003 0320 and.w r3, r3, #32 801205a: 2b00 cmp r3, #0 801205c: d00c beq.n 8012078 { if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM)) 801205e: 68fb ldr r3, [r7, #12] 8012060: f003 0320 and.w r3, r3, #32 8012064: 2b00 cmp r3, #0 8012066: d007 beq.n 8012078 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM); 8012068: 687b ldr r3, [r7, #4] 801206a: 681b ldr r3, [r3, #0] 801206c: f06f 0220 mvn.w r2, #32 8012070: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); 8012072: 6878 ldr r0, [r7, #4] 8012074: f000 fd36 bl 8012ae4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } 8012078: bf00 nop 801207a: 3710 adds r7, #16 801207c: 46bd mov sp, r7 801207e: bd80 pop {r7, pc} 08012080 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 8012080: b580 push {r7, lr} 8012082: b086 sub sp, #24 8012084: af00 add r7, sp, #0 8012086: 60f8 str r0, [r7, #12] 8012088: 60b9 str r1, [r7, #8] 801208a: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 801208c: 2300 movs r3, #0 801208e: 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); 8012090: 68fb ldr r3, [r7, #12] 8012092: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012096: 2b01 cmp r3, #1 8012098: d101 bne.n 801209e 801209a: 2302 movs r3, #2 801209c: e048 b.n 8012130 801209e: 68fb ldr r3, [r7, #12] 80120a0: 2201 movs r2, #1 80120a2: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) 80120a6: 687b ldr r3, [r7, #4] 80120a8: 2b0c cmp r3, #12 80120aa: d839 bhi.n 8012120 80120ac: a201 add r2, pc, #4 @ (adr r2, 80120b4 ) 80120ae: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80120b2: bf00 nop 80120b4: 080120e9 .word 0x080120e9 80120b8: 08012121 .word 0x08012121 80120bc: 08012121 .word 0x08012121 80120c0: 08012121 .word 0x08012121 80120c4: 080120f7 .word 0x080120f7 80120c8: 08012121 .word 0x08012121 80120cc: 08012121 .word 0x08012121 80120d0: 08012121 .word 0x08012121 80120d4: 08012105 .word 0x08012105 80120d8: 08012121 .word 0x08012121 80120dc: 08012121 .word 0x08012121 80120e0: 08012121 .word 0x08012121 80120e4: 08012113 .word 0x08012113 { /* 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); 80120e8: 68fb ldr r3, [r7, #12] 80120ea: 681b ldr r3, [r3, #0] 80120ec: 68b9 ldr r1, [r7, #8] 80120ee: 4618 mov r0, r3 80120f0: f000 fa50 bl 8012594 break; 80120f4: e017 b.n 8012126 { /* 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); 80120f6: 68fb ldr r3, [r7, #12] 80120f8: 681b ldr r3, [r3, #0] 80120fa: 68b9 ldr r1, [r7, #8] 80120fc: 4618 mov r0, r3 80120fe: f000 faaf bl 8012660 break; 8012102: e010 b.n 8012126 { /* 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); 8012104: 68fb ldr r3, [r7, #12] 8012106: 681b ldr r3, [r3, #0] 8012108: 68b9 ldr r1, [r7, #8] 801210a: 4618 mov r0, r3 801210c: f000 fb12 bl 8012734 break; 8012110: e009 b.n 8012126 { /* 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); 8012112: 68fb ldr r3, [r7, #12] 8012114: 681b ldr r3, [r3, #0] 8012116: 68b9 ldr r1, [r7, #8] 8012118: 4618 mov r0, r3 801211a: f000 fb75 bl 8012808 break; 801211e: e002 b.n 8012126 } default: status = HAL_ERROR; 8012120: 2301 movs r3, #1 8012122: 75fb strb r3, [r7, #23] break; 8012124: bf00 nop } __HAL_UNLOCK(htim); 8012126: 68fb ldr r3, [r7, #12] 8012128: 2200 movs r2, #0 801212a: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 801212e: 7dfb ldrb r3, [r7, #23] } 8012130: 4618 mov r0, r3 8012132: 3718 adds r7, #24 8012134: 46bd mov sp, r7 8012136: bd80 pop {r7, pc} 08012138 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 8012138: b580 push {r7, lr} 801213a: b086 sub sp, #24 801213c: af00 add r7, sp, #0 801213e: 60f8 str r0, [r7, #12] 8012140: 60b9 str r1, [r7, #8] 8012142: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 8012144: 2300 movs r3, #0 8012146: 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); 8012148: 68fb ldr r3, [r7, #12] 801214a: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 801214e: 2b01 cmp r3, #1 8012150: d101 bne.n 8012156 8012152: 2302 movs r3, #2 8012154: e0ae b.n 80122b4 8012156: 68fb ldr r3, [r7, #12] 8012158: 2201 movs r2, #1 801215a: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) 801215e: 687b ldr r3, [r7, #4] 8012160: 2b0c cmp r3, #12 8012162: f200 809f bhi.w 80122a4 8012166: a201 add r2, pc, #4 @ (adr r2, 801216c ) 8012168: f852 f023 ldr.w pc, [r2, r3, lsl #2] 801216c: 080121a1 .word 0x080121a1 8012170: 080122a5 .word 0x080122a5 8012174: 080122a5 .word 0x080122a5 8012178: 080122a5 .word 0x080122a5 801217c: 080121e1 .word 0x080121e1 8012180: 080122a5 .word 0x080122a5 8012184: 080122a5 .word 0x080122a5 8012188: 080122a5 .word 0x080122a5 801218c: 08012223 .word 0x08012223 8012190: 080122a5 .word 0x080122a5 8012194: 080122a5 .word 0x080122a5 8012198: 080122a5 .word 0x080122a5 801219c: 08012263 .word 0x08012263 { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); 80121a0: 68fb ldr r3, [r7, #12] 80121a2: 681b ldr r3, [r3, #0] 80121a4: 68b9 ldr r1, [r7, #8] 80121a6: 4618 mov r0, r3 80121a8: f000 f9f4 bl 8012594 /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; 80121ac: 68fb ldr r3, [r7, #12] 80121ae: 681b ldr r3, [r3, #0] 80121b0: 699a ldr r2, [r3, #24] 80121b2: 68fb ldr r3, [r7, #12] 80121b4: 681b ldr r3, [r3, #0] 80121b6: f042 0208 orr.w r2, r2, #8 80121ba: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; 80121bc: 68fb ldr r3, [r7, #12] 80121be: 681b ldr r3, [r3, #0] 80121c0: 699a ldr r2, [r3, #24] 80121c2: 68fb ldr r3, [r7, #12] 80121c4: 681b ldr r3, [r3, #0] 80121c6: f022 0204 bic.w r2, r2, #4 80121ca: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; 80121cc: 68fb ldr r3, [r7, #12] 80121ce: 681b ldr r3, [r3, #0] 80121d0: 6999 ldr r1, [r3, #24] 80121d2: 68bb ldr r3, [r7, #8] 80121d4: 691a ldr r2, [r3, #16] 80121d6: 68fb ldr r3, [r7, #12] 80121d8: 681b ldr r3, [r3, #0] 80121da: 430a orrs r2, r1 80121dc: 619a str r2, [r3, #24] break; 80121de: e064 b.n 80122aa { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); 80121e0: 68fb ldr r3, [r7, #12] 80121e2: 681b ldr r3, [r3, #0] 80121e4: 68b9 ldr r1, [r7, #8] 80121e6: 4618 mov r0, r3 80121e8: f000 fa3a bl 8012660 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; 80121ec: 68fb ldr r3, [r7, #12] 80121ee: 681b ldr r3, [r3, #0] 80121f0: 699a ldr r2, [r3, #24] 80121f2: 68fb ldr r3, [r7, #12] 80121f4: 681b ldr r3, [r3, #0] 80121f6: f442 6200 orr.w r2, r2, #2048 @ 0x800 80121fa: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; 80121fc: 68fb ldr r3, [r7, #12] 80121fe: 681b ldr r3, [r3, #0] 8012200: 699a ldr r2, [r3, #24] 8012202: 68fb ldr r3, [r7, #12] 8012204: 681b ldr r3, [r3, #0] 8012206: f422 6280 bic.w r2, r2, #1024 @ 0x400 801220a: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; 801220c: 68fb ldr r3, [r7, #12] 801220e: 681b ldr r3, [r3, #0] 8012210: 6999 ldr r1, [r3, #24] 8012212: 68bb ldr r3, [r7, #8] 8012214: 691b ldr r3, [r3, #16] 8012216: 021a lsls r2, r3, #8 8012218: 68fb ldr r3, [r7, #12] 801221a: 681b ldr r3, [r3, #0] 801221c: 430a orrs r2, r1 801221e: 619a str r2, [r3, #24] break; 8012220: e043 b.n 80122aa { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); 8012222: 68fb ldr r3, [r7, #12] 8012224: 681b ldr r3, [r3, #0] 8012226: 68b9 ldr r1, [r7, #8] 8012228: 4618 mov r0, r3 801222a: f000 fa83 bl 8012734 /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; 801222e: 68fb ldr r3, [r7, #12] 8012230: 681b ldr r3, [r3, #0] 8012232: 69da ldr r2, [r3, #28] 8012234: 68fb ldr r3, [r7, #12] 8012236: 681b ldr r3, [r3, #0] 8012238: f042 0208 orr.w r2, r2, #8 801223c: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; 801223e: 68fb ldr r3, [r7, #12] 8012240: 681b ldr r3, [r3, #0] 8012242: 69da ldr r2, [r3, #28] 8012244: 68fb ldr r3, [r7, #12] 8012246: 681b ldr r3, [r3, #0] 8012248: f022 0204 bic.w r2, r2, #4 801224c: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; 801224e: 68fb ldr r3, [r7, #12] 8012250: 681b ldr r3, [r3, #0] 8012252: 69d9 ldr r1, [r3, #28] 8012254: 68bb ldr r3, [r7, #8] 8012256: 691a ldr r2, [r3, #16] 8012258: 68fb ldr r3, [r7, #12] 801225a: 681b ldr r3, [r3, #0] 801225c: 430a orrs r2, r1 801225e: 61da str r2, [r3, #28] break; 8012260: e023 b.n 80122aa { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); 8012262: 68fb ldr r3, [r7, #12] 8012264: 681b ldr r3, [r3, #0] 8012266: 68b9 ldr r1, [r7, #8] 8012268: 4618 mov r0, r3 801226a: f000 facd bl 8012808 /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; 801226e: 68fb ldr r3, [r7, #12] 8012270: 681b ldr r3, [r3, #0] 8012272: 69da ldr r2, [r3, #28] 8012274: 68fb ldr r3, [r7, #12] 8012276: 681b ldr r3, [r3, #0] 8012278: f442 6200 orr.w r2, r2, #2048 @ 0x800 801227c: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; 801227e: 68fb ldr r3, [r7, #12] 8012280: 681b ldr r3, [r3, #0] 8012282: 69da ldr r2, [r3, #28] 8012284: 68fb ldr r3, [r7, #12] 8012286: 681b ldr r3, [r3, #0] 8012288: f422 6280 bic.w r2, r2, #1024 @ 0x400 801228c: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; 801228e: 68fb ldr r3, [r7, #12] 8012290: 681b ldr r3, [r3, #0] 8012292: 69d9 ldr r1, [r3, #28] 8012294: 68bb ldr r3, [r7, #8] 8012296: 691b ldr r3, [r3, #16] 8012298: 021a lsls r2, r3, #8 801229a: 68fb ldr r3, [r7, #12] 801229c: 681b ldr r3, [r3, #0] 801229e: 430a orrs r2, r1 80122a0: 61da str r2, [r3, #28] break; 80122a2: e002 b.n 80122aa } default: status = HAL_ERROR; 80122a4: 2301 movs r3, #1 80122a6: 75fb strb r3, [r7, #23] break; 80122a8: bf00 nop } __HAL_UNLOCK(htim); 80122aa: 68fb ldr r3, [r7, #12] 80122ac: 2200 movs r2, #0 80122ae: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 80122b2: 7dfb ldrb r3, [r7, #23] } 80122b4: 4618 mov r0, r3 80122b6: 3718 adds r7, #24 80122b8: 46bd mov sp, r7 80122ba: bd80 pop {r7, pc} 080122bc : * @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) { 80122bc: b580 push {r7, lr} 80122be: b084 sub sp, #16 80122c0: af00 add r7, sp, #0 80122c2: 6078 str r0, [r7, #4] 80122c4: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; 80122c6: 2300 movs r3, #0 80122c8: 73fb strb r3, [r7, #15] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); 80122ca: 687b ldr r3, [r7, #4] 80122cc: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 80122d0: 2b01 cmp r3, #1 80122d2: d101 bne.n 80122d8 80122d4: 2302 movs r3, #2 80122d6: e0b4 b.n 8012442 80122d8: 687b ldr r3, [r7, #4] 80122da: 2201 movs r2, #1 80122dc: f883 203c strb.w r2, [r3, #60] @ 0x3c htim->State = HAL_TIM_STATE_BUSY; 80122e0: 687b ldr r3, [r7, #4] 80122e2: 2202 movs r2, #2 80122e4: 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; 80122e8: 687b ldr r3, [r7, #4] 80122ea: 681b ldr r3, [r3, #0] 80122ec: 689b ldr r3, [r3, #8] 80122ee: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); 80122f0: 68bb ldr r3, [r7, #8] 80122f2: f023 0377 bic.w r3, r3, #119 @ 0x77 80122f6: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 80122f8: 68bb ldr r3, [r7, #8] 80122fa: f423 437f bic.w r3, r3, #65280 @ 0xff00 80122fe: 60bb str r3, [r7, #8] htim->Instance->SMCR = tmpsmcr; 8012300: 687b ldr r3, [r7, #4] 8012302: 681b ldr r3, [r3, #0] 8012304: 68ba ldr r2, [r7, #8] 8012306: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) 8012308: 683b ldr r3, [r7, #0] 801230a: 681b ldr r3, [r3, #0] 801230c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 8012310: d03e beq.n 8012390 8012312: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 8012316: f200 8087 bhi.w 8012428 801231a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 801231e: f000 8086 beq.w 801242e 8012322: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8012326: d87f bhi.n 8012428 8012328: 2b70 cmp r3, #112 @ 0x70 801232a: d01a beq.n 8012362 801232c: 2b70 cmp r3, #112 @ 0x70 801232e: d87b bhi.n 8012428 8012330: 2b60 cmp r3, #96 @ 0x60 8012332: d050 beq.n 80123d6 8012334: 2b60 cmp r3, #96 @ 0x60 8012336: d877 bhi.n 8012428 8012338: 2b50 cmp r3, #80 @ 0x50 801233a: d03c beq.n 80123b6 801233c: 2b50 cmp r3, #80 @ 0x50 801233e: d873 bhi.n 8012428 8012340: 2b40 cmp r3, #64 @ 0x40 8012342: d058 beq.n 80123f6 8012344: 2b40 cmp r3, #64 @ 0x40 8012346: d86f bhi.n 8012428 8012348: 2b30 cmp r3, #48 @ 0x30 801234a: d064 beq.n 8012416 801234c: 2b30 cmp r3, #48 @ 0x30 801234e: d86b bhi.n 8012428 8012350: 2b20 cmp r3, #32 8012352: d060 beq.n 8012416 8012354: 2b20 cmp r3, #32 8012356: d867 bhi.n 8012428 8012358: 2b00 cmp r3, #0 801235a: d05c beq.n 8012416 801235c: 2b10 cmp r3, #16 801235e: d05a beq.n 8012416 8012360: e062 b.n 8012428 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, 8012362: 687b ldr r3, [r7, #4] 8012364: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, 8012366: 683b ldr r3, [r7, #0] 8012368: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, 801236a: 683b ldr r3, [r7, #0] 801236c: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); 801236e: 683b ldr r3, [r7, #0] 8012370: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, 8012372: f000 fb0e bl 8012992 /* Select the External clock mode1 and the ETRF trigger */ tmpsmcr = htim->Instance->SMCR; 8012376: 687b ldr r3, [r7, #4] 8012378: 681b ldr r3, [r3, #0] 801237a: 689b ldr r3, [r3, #8] 801237c: 60bb str r3, [r7, #8] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); 801237e: 68bb ldr r3, [r7, #8] 8012380: f043 0377 orr.w r3, r3, #119 @ 0x77 8012384: 60bb str r3, [r7, #8] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 8012386: 687b ldr r3, [r7, #4] 8012388: 681b ldr r3, [r3, #0] 801238a: 68ba ldr r2, [r7, #8] 801238c: 609a str r2, [r3, #8] break; 801238e: e04f b.n 8012430 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, 8012390: 687b ldr r3, [r7, #4] 8012392: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, 8012394: 683b ldr r3, [r7, #0] 8012396: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, 8012398: 683b ldr r3, [r7, #0] 801239a: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); 801239c: 683b ldr r3, [r7, #0] 801239e: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, 80123a0: f000 faf7 bl 8012992 /* Enable the External clock mode2 */ htim->Instance->SMCR |= TIM_SMCR_ECE; 80123a4: 687b ldr r3, [r7, #4] 80123a6: 681b ldr r3, [r3, #0] 80123a8: 689a ldr r2, [r3, #8] 80123aa: 687b ldr r3, [r7, #4] 80123ac: 681b ldr r3, [r3, #0] 80123ae: f442 4280 orr.w r2, r2, #16384 @ 0x4000 80123b2: 609a str r2, [r3, #8] break; 80123b4: e03c b.n 8012430 /* 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, 80123b6: 687b ldr r3, [r7, #4] 80123b8: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 80123ba: 683b ldr r3, [r7, #0] 80123bc: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 80123be: 683b ldr r3, [r7, #0] 80123c0: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, 80123c2: 461a mov r2, r3 80123c4: f000 fa6e bl 80128a4 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); 80123c8: 687b ldr r3, [r7, #4] 80123ca: 681b ldr r3, [r3, #0] 80123cc: 2150 movs r1, #80 @ 0x50 80123ce: 4618 mov r0, r3 80123d0: f000 fac5 bl 801295e break; 80123d4: e02c b.n 8012430 /* 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, 80123d6: 687b ldr r3, [r7, #4] 80123d8: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 80123da: 683b ldr r3, [r7, #0] 80123dc: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 80123de: 683b ldr r3, [r7, #0] 80123e0: 68db ldr r3, [r3, #12] TIM_TI2_ConfigInputStage(htim->Instance, 80123e2: 461a mov r2, r3 80123e4: f000 fa8c bl 8012900 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); 80123e8: 687b ldr r3, [r7, #4] 80123ea: 681b ldr r3, [r3, #0] 80123ec: 2160 movs r1, #96 @ 0x60 80123ee: 4618 mov r0, r3 80123f0: f000 fab5 bl 801295e break; 80123f4: e01c b.n 8012430 /* 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, 80123f6: 687b ldr r3, [r7, #4] 80123f8: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 80123fa: 683b ldr r3, [r7, #0] 80123fc: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 80123fe: 683b ldr r3, [r7, #0] 8012400: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, 8012402: 461a mov r2, r3 8012404: f000 fa4e bl 80128a4 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); 8012408: 687b ldr r3, [r7, #4] 801240a: 681b ldr r3, [r3, #0] 801240c: 2140 movs r1, #64 @ 0x40 801240e: 4618 mov r0, r3 8012410: f000 faa5 bl 801295e break; 8012414: e00c b.n 8012430 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); 8012416: 687b ldr r3, [r7, #4] 8012418: 681a ldr r2, [r3, #0] 801241a: 683b ldr r3, [r7, #0] 801241c: 681b ldr r3, [r3, #0] 801241e: 4619 mov r1, r3 8012420: 4610 mov r0, r2 8012422: f000 fa9c bl 801295e break; 8012426: e003 b.n 8012430 } default: status = HAL_ERROR; 8012428: 2301 movs r3, #1 801242a: 73fb strb r3, [r7, #15] break; 801242c: e000 b.n 8012430 break; 801242e: bf00 nop } htim->State = HAL_TIM_STATE_READY; 8012430: 687b ldr r3, [r7, #4] 8012432: 2201 movs r2, #1 8012434: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); 8012438: 687b ldr r3, [r7, #4] 801243a: 2200 movs r2, #0 801243c: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 8012440: 7bfb ldrb r3, [r7, #15] } 8012442: 4618 mov r0, r3 8012444: 3710 adds r7, #16 8012446: 46bd mov sp, r7 8012448: bd80 pop {r7, pc} 0801244a : * @brief Period elapsed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { 801244a: b480 push {r7} 801244c: b083 sub sp, #12 801244e: af00 add r7, sp, #0 8012450: 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 */ } 8012452: bf00 nop 8012454: 370c adds r7, #12 8012456: 46bd mov sp, r7 8012458: bc80 pop {r7} 801245a: 4770 bx lr 0801245c : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { 801245c: b480 push {r7} 801245e: b083 sub sp, #12 8012460: af00 add r7, sp, #0 8012462: 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 */ } 8012464: bf00 nop 8012466: 370c adds r7, #12 8012468: 46bd mov sp, r7 801246a: bc80 pop {r7} 801246c: 4770 bx lr 0801246e : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { 801246e: b480 push {r7} 8012470: b083 sub sp, #12 8012472: af00 add r7, sp, #0 8012474: 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 */ } 8012476: bf00 nop 8012478: 370c adds r7, #12 801247a: 46bd mov sp, r7 801247c: bc80 pop {r7} 801247e: 4770 bx lr 08012480 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { 8012480: b480 push {r7} 8012482: b083 sub sp, #12 8012484: af00 add r7, sp, #0 8012486: 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 */ } 8012488: bf00 nop 801248a: 370c adds r7, #12 801248c: 46bd mov sp, r7 801248e: bc80 pop {r7} 8012490: 4770 bx lr 08012492 : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { 8012492: b480 push {r7} 8012494: b083 sub sp, #12 8012496: af00 add r7, sp, #0 8012498: 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 */ } 801249a: bf00 nop 801249c: 370c adds r7, #12 801249e: 46bd mov sp, r7 80124a0: bc80 pop {r7} 80124a2: 4770 bx lr 080124a4 : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { 80124a4: b480 push {r7} 80124a6: b085 sub sp, #20 80124a8: af00 add r7, sp, #0 80124aa: 6078 str r0, [r7, #4] 80124ac: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; 80124ae: 687b ldr r3, [r7, #4] 80124b0: 681b ldr r3, [r3, #0] 80124b2: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) 80124b4: 687b ldr r3, [r7, #4] 80124b6: 4a33 ldr r2, [pc, #204] @ (8012584 ) 80124b8: 4293 cmp r3, r2 80124ba: d00f beq.n 80124dc 80124bc: 687b ldr r3, [r7, #4] 80124be: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 80124c2: d00b beq.n 80124dc 80124c4: 687b ldr r3, [r7, #4] 80124c6: 4a30 ldr r2, [pc, #192] @ (8012588 ) 80124c8: 4293 cmp r3, r2 80124ca: d007 beq.n 80124dc 80124cc: 687b ldr r3, [r7, #4] 80124ce: 4a2f ldr r2, [pc, #188] @ (801258c ) 80124d0: 4293 cmp r3, r2 80124d2: d003 beq.n 80124dc 80124d4: 687b ldr r3, [r7, #4] 80124d6: 4a2e ldr r2, [pc, #184] @ (8012590 ) 80124d8: 4293 cmp r3, r2 80124da: d108 bne.n 80124ee { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); 80124dc: 68fb ldr r3, [r7, #12] 80124de: f023 0370 bic.w r3, r3, #112 @ 0x70 80124e2: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; 80124e4: 683b ldr r3, [r7, #0] 80124e6: 685b ldr r3, [r3, #4] 80124e8: 68fa ldr r2, [r7, #12] 80124ea: 4313 orrs r3, r2 80124ec: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) 80124ee: 687b ldr r3, [r7, #4] 80124f0: 4a24 ldr r2, [pc, #144] @ (8012584 ) 80124f2: 4293 cmp r3, r2 80124f4: d00f beq.n 8012516 80124f6: 687b ldr r3, [r7, #4] 80124f8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 80124fc: d00b beq.n 8012516 80124fe: 687b ldr r3, [r7, #4] 8012500: 4a21 ldr r2, [pc, #132] @ (8012588 ) 8012502: 4293 cmp r3, r2 8012504: d007 beq.n 8012516 8012506: 687b ldr r3, [r7, #4] 8012508: 4a20 ldr r2, [pc, #128] @ (801258c ) 801250a: 4293 cmp r3, r2 801250c: d003 beq.n 8012516 801250e: 687b ldr r3, [r7, #4] 8012510: 4a1f ldr r2, [pc, #124] @ (8012590 ) 8012512: 4293 cmp r3, r2 8012514: d108 bne.n 8012528 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; 8012516: 68fb ldr r3, [r7, #12] 8012518: f423 7340 bic.w r3, r3, #768 @ 0x300 801251c: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; 801251e: 683b ldr r3, [r7, #0] 8012520: 68db ldr r3, [r3, #12] 8012522: 68fa ldr r2, [r7, #12] 8012524: 4313 orrs r3, r2 8012526: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); 8012528: 68fb ldr r3, [r7, #12] 801252a: f023 0280 bic.w r2, r3, #128 @ 0x80 801252e: 683b ldr r3, [r7, #0] 8012530: 695b ldr r3, [r3, #20] 8012532: 4313 orrs r3, r2 8012534: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; 8012536: 687b ldr r3, [r7, #4] 8012538: 68fa ldr r2, [r7, #12] 801253a: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; 801253c: 683b ldr r3, [r7, #0] 801253e: 689a ldr r2, [r3, #8] 8012540: 687b ldr r3, [r7, #4] 8012542: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; 8012544: 683b ldr r3, [r7, #0] 8012546: 681a ldr r2, [r3, #0] 8012548: 687b ldr r3, [r7, #4] 801254a: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) 801254c: 687b ldr r3, [r7, #4] 801254e: 4a0d ldr r2, [pc, #52] @ (8012584 ) 8012550: 4293 cmp r3, r2 8012552: d103 bne.n 801255c { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; 8012554: 683b ldr r3, [r7, #0] 8012556: 691a ldr r2, [r3, #16] 8012558: 687b ldr r3, [r7, #4] 801255a: 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; 801255c: 687b ldr r3, [r7, #4] 801255e: 2201 movs r2, #1 8012560: 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)) 8012562: 687b ldr r3, [r7, #4] 8012564: 691b ldr r3, [r3, #16] 8012566: f003 0301 and.w r3, r3, #1 801256a: 2b00 cmp r3, #0 801256c: d005 beq.n 801257a { /* Clear the update flag */ CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE); 801256e: 687b ldr r3, [r7, #4] 8012570: 691b ldr r3, [r3, #16] 8012572: f023 0201 bic.w r2, r3, #1 8012576: 687b ldr r3, [r7, #4] 8012578: 611a str r2, [r3, #16] } } 801257a: bf00 nop 801257c: 3714 adds r7, #20 801257e: 46bd mov sp, r7 8012580: bc80 pop {r7} 8012582: 4770 bx lr 8012584: 40012c00 .word 0x40012c00 8012588: 40000400 .word 0x40000400 801258c: 40000800 .word 0x40000800 8012590: 40000c00 .word 0x40000c00 08012594 : * @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) { 8012594: b480 push {r7} 8012596: b087 sub sp, #28 8012598: af00 add r7, sp, #0 801259a: 6078 str r0, [r7, #4] 801259c: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 801259e: 687b ldr r3, [r7, #4] 80125a0: 6a1b ldr r3, [r3, #32] 80125a2: 617b str r3, [r7, #20] /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; 80125a4: 687b ldr r3, [r7, #4] 80125a6: 6a1b ldr r3, [r3, #32] 80125a8: f023 0201 bic.w r2, r3, #1 80125ac: 687b ldr r3, [r7, #4] 80125ae: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 80125b0: 687b ldr r3, [r7, #4] 80125b2: 685b ldr r3, [r3, #4] 80125b4: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 80125b6: 687b ldr r3, [r7, #4] 80125b8: 699b ldr r3, [r3, #24] 80125ba: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; 80125bc: 68fb ldr r3, [r7, #12] 80125be: f023 0370 bic.w r3, r3, #112 @ 0x70 80125c2: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; 80125c4: 68fb ldr r3, [r7, #12] 80125c6: f023 0303 bic.w r3, r3, #3 80125ca: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 80125cc: 683b ldr r3, [r7, #0] 80125ce: 681b ldr r3, [r3, #0] 80125d0: 68fa ldr r2, [r7, #12] 80125d2: 4313 orrs r3, r2 80125d4: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; 80125d6: 697b ldr r3, [r7, #20] 80125d8: f023 0302 bic.w r3, r3, #2 80125dc: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; 80125de: 683b ldr r3, [r7, #0] 80125e0: 689b ldr r3, [r3, #8] 80125e2: 697a ldr r2, [r7, #20] 80125e4: 4313 orrs r3, r2 80125e6: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) 80125e8: 687b ldr r3, [r7, #4] 80125ea: 4a1c ldr r2, [pc, #112] @ (801265c ) 80125ec: 4293 cmp r3, r2 80125ee: d10c bne.n 801260a { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; 80125f0: 697b ldr r3, [r7, #20] 80125f2: f023 0308 bic.w r3, r3, #8 80125f6: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; 80125f8: 683b ldr r3, [r7, #0] 80125fa: 68db ldr r3, [r3, #12] 80125fc: 697a ldr r2, [r7, #20] 80125fe: 4313 orrs r3, r2 8012600: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; 8012602: 697b ldr r3, [r7, #20] 8012604: f023 0304 bic.w r3, r3, #4 8012608: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 801260a: 687b ldr r3, [r7, #4] 801260c: 4a13 ldr r2, [pc, #76] @ (801265c ) 801260e: 4293 cmp r3, r2 8012610: d111 bne.n 8012636 /* 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; 8012612: 693b ldr r3, [r7, #16] 8012614: f423 7380 bic.w r3, r3, #256 @ 0x100 8012618: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; 801261a: 693b ldr r3, [r7, #16] 801261c: f423 7300 bic.w r3, r3, #512 @ 0x200 8012620: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; 8012622: 683b ldr r3, [r7, #0] 8012624: 695b ldr r3, [r3, #20] 8012626: 693a ldr r2, [r7, #16] 8012628: 4313 orrs r3, r2 801262a: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; 801262c: 683b ldr r3, [r7, #0] 801262e: 699b ldr r3, [r3, #24] 8012630: 693a ldr r2, [r7, #16] 8012632: 4313 orrs r3, r2 8012634: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012636: 687b ldr r3, [r7, #4] 8012638: 693a ldr r2, [r7, #16] 801263a: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 801263c: 687b ldr r3, [r7, #4] 801263e: 68fa ldr r2, [r7, #12] 8012640: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; 8012642: 683b ldr r3, [r7, #0] 8012644: 685a ldr r2, [r3, #4] 8012646: 687b ldr r3, [r7, #4] 8012648: 635a str r2, [r3, #52] @ 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 801264a: 687b ldr r3, [r7, #4] 801264c: 697a ldr r2, [r7, #20] 801264e: 621a str r2, [r3, #32] } 8012650: bf00 nop 8012652: 371c adds r7, #28 8012654: 46bd mov sp, r7 8012656: bc80 pop {r7} 8012658: 4770 bx lr 801265a: bf00 nop 801265c: 40012c00 .word 0x40012c00 08012660 : * @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) { 8012660: b480 push {r7} 8012662: b087 sub sp, #28 8012664: af00 add r7, sp, #0 8012666: 6078 str r0, [r7, #4] 8012668: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 801266a: 687b ldr r3, [r7, #4] 801266c: 6a1b ldr r3, [r3, #32] 801266e: 617b str r3, [r7, #20] /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; 8012670: 687b ldr r3, [r7, #4] 8012672: 6a1b ldr r3, [r3, #32] 8012674: f023 0210 bic.w r2, r3, #16 8012678: 687b ldr r3, [r7, #4] 801267a: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 801267c: 687b ldr r3, [r7, #4] 801267e: 685b ldr r3, [r3, #4] 8012680: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 8012682: 687b ldr r3, [r7, #4] 8012684: 699b ldr r3, [r3, #24] 8012686: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; 8012688: 68fb ldr r3, [r7, #12] 801268a: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 801268e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; 8012690: 68fb ldr r3, [r7, #12] 8012692: f423 7340 bic.w r3, r3, #768 @ 0x300 8012696: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 8012698: 683b ldr r3, [r7, #0] 801269a: 681b ldr r3, [r3, #0] 801269c: 021b lsls r3, r3, #8 801269e: 68fa ldr r2, [r7, #12] 80126a0: 4313 orrs r3, r2 80126a2: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; 80126a4: 697b ldr r3, [r7, #20] 80126a6: f023 0320 bic.w r3, r3, #32 80126aa: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); 80126ac: 683b ldr r3, [r7, #0] 80126ae: 689b ldr r3, [r3, #8] 80126b0: 011b lsls r3, r3, #4 80126b2: 697a ldr r2, [r7, #20] 80126b4: 4313 orrs r3, r2 80126b6: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) 80126b8: 687b ldr r3, [r7, #4] 80126ba: 4a1d ldr r2, [pc, #116] @ (8012730 ) 80126bc: 4293 cmp r3, r2 80126be: d10d bne.n 80126dc { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; 80126c0: 697b ldr r3, [r7, #20] 80126c2: f023 0380 bic.w r3, r3, #128 @ 0x80 80126c6: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); 80126c8: 683b ldr r3, [r7, #0] 80126ca: 68db ldr r3, [r3, #12] 80126cc: 011b lsls r3, r3, #4 80126ce: 697a ldr r2, [r7, #20] 80126d0: 4313 orrs r3, r2 80126d2: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; 80126d4: 697b ldr r3, [r7, #20] 80126d6: f023 0340 bic.w r3, r3, #64 @ 0x40 80126da: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 80126dc: 687b ldr r3, [r7, #4] 80126de: 4a14 ldr r2, [pc, #80] @ (8012730 ) 80126e0: 4293 cmp r3, r2 80126e2: d113 bne.n 801270c /* 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; 80126e4: 693b ldr r3, [r7, #16] 80126e6: f423 6380 bic.w r3, r3, #1024 @ 0x400 80126ea: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; 80126ec: 693b ldr r3, [r7, #16] 80126ee: f423 6300 bic.w r3, r3, #2048 @ 0x800 80126f2: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); 80126f4: 683b ldr r3, [r7, #0] 80126f6: 695b ldr r3, [r3, #20] 80126f8: 009b lsls r3, r3, #2 80126fa: 693a ldr r2, [r7, #16] 80126fc: 4313 orrs r3, r2 80126fe: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); 8012700: 683b ldr r3, [r7, #0] 8012702: 699b ldr r3, [r3, #24] 8012704: 009b lsls r3, r3, #2 8012706: 693a ldr r2, [r7, #16] 8012708: 4313 orrs r3, r2 801270a: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 801270c: 687b ldr r3, [r7, #4] 801270e: 693a ldr r2, [r7, #16] 8012710: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 8012712: 687b ldr r3, [r7, #4] 8012714: 68fa ldr r2, [r7, #12] 8012716: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; 8012718: 683b ldr r3, [r7, #0] 801271a: 685a ldr r2, [r3, #4] 801271c: 687b ldr r3, [r7, #4] 801271e: 639a str r2, [r3, #56] @ 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012720: 687b ldr r3, [r7, #4] 8012722: 697a ldr r2, [r7, #20] 8012724: 621a str r2, [r3, #32] } 8012726: bf00 nop 8012728: 371c adds r7, #28 801272a: 46bd mov sp, r7 801272c: bc80 pop {r7} 801272e: 4770 bx lr 8012730: 40012c00 .word 0x40012c00 08012734 : * @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) { 8012734: b480 push {r7} 8012736: b087 sub sp, #28 8012738: af00 add r7, sp, #0 801273a: 6078 str r0, [r7, #4] 801273c: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 801273e: 687b ldr r3, [r7, #4] 8012740: 6a1b ldr r3, [r3, #32] 8012742: 617b str r3, [r7, #20] /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; 8012744: 687b ldr r3, [r7, #4] 8012746: 6a1b ldr r3, [r3, #32] 8012748: f423 7280 bic.w r2, r3, #256 @ 0x100 801274c: 687b ldr r3, [r7, #4] 801274e: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8012750: 687b ldr r3, [r7, #4] 8012752: 685b ldr r3, [r3, #4] 8012754: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 8012756: 687b ldr r3, [r7, #4] 8012758: 69db ldr r3, [r3, #28] 801275a: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; 801275c: 68fb ldr r3, [r7, #12] 801275e: f023 0370 bic.w r3, r3, #112 @ 0x70 8012762: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; 8012764: 68fb ldr r3, [r7, #12] 8012766: f023 0303 bic.w r3, r3, #3 801276a: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 801276c: 683b ldr r3, [r7, #0] 801276e: 681b ldr r3, [r3, #0] 8012770: 68fa ldr r2, [r7, #12] 8012772: 4313 orrs r3, r2 8012774: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; 8012776: 697b ldr r3, [r7, #20] 8012778: f423 7300 bic.w r3, r3, #512 @ 0x200 801277c: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); 801277e: 683b ldr r3, [r7, #0] 8012780: 689b ldr r3, [r3, #8] 8012782: 021b lsls r3, r3, #8 8012784: 697a ldr r2, [r7, #20] 8012786: 4313 orrs r3, r2 8012788: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) 801278a: 687b ldr r3, [r7, #4] 801278c: 4a1d ldr r2, [pc, #116] @ (8012804 ) 801278e: 4293 cmp r3, r2 8012790: d10d bne.n 80127ae { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; 8012792: 697b ldr r3, [r7, #20] 8012794: f423 6300 bic.w r3, r3, #2048 @ 0x800 8012798: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); 801279a: 683b ldr r3, [r7, #0] 801279c: 68db ldr r3, [r3, #12] 801279e: 021b lsls r3, r3, #8 80127a0: 697a ldr r2, [r7, #20] 80127a2: 4313 orrs r3, r2 80127a4: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; 80127a6: 697b ldr r3, [r7, #20] 80127a8: f423 6380 bic.w r3, r3, #1024 @ 0x400 80127ac: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 80127ae: 687b ldr r3, [r7, #4] 80127b0: 4a14 ldr r2, [pc, #80] @ (8012804 ) 80127b2: 4293 cmp r3, r2 80127b4: d113 bne.n 80127de /* 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; 80127b6: 693b ldr r3, [r7, #16] 80127b8: f423 5380 bic.w r3, r3, #4096 @ 0x1000 80127bc: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; 80127be: 693b ldr r3, [r7, #16] 80127c0: f423 5300 bic.w r3, r3, #8192 @ 0x2000 80127c4: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); 80127c6: 683b ldr r3, [r7, #0] 80127c8: 695b ldr r3, [r3, #20] 80127ca: 011b lsls r3, r3, #4 80127cc: 693a ldr r2, [r7, #16] 80127ce: 4313 orrs r3, r2 80127d0: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); 80127d2: 683b ldr r3, [r7, #0] 80127d4: 699b ldr r3, [r3, #24] 80127d6: 011b lsls r3, r3, #4 80127d8: 693a ldr r2, [r7, #16] 80127da: 4313 orrs r3, r2 80127dc: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 80127de: 687b ldr r3, [r7, #4] 80127e0: 693a ldr r2, [r7, #16] 80127e2: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 80127e4: 687b ldr r3, [r7, #4] 80127e6: 68fa ldr r2, [r7, #12] 80127e8: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; 80127ea: 683b ldr r3, [r7, #0] 80127ec: 685a ldr r2, [r3, #4] 80127ee: 687b ldr r3, [r7, #4] 80127f0: 63da str r2, [r3, #60] @ 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 80127f2: 687b ldr r3, [r7, #4] 80127f4: 697a ldr r2, [r7, #20] 80127f6: 621a str r2, [r3, #32] } 80127f8: bf00 nop 80127fa: 371c adds r7, #28 80127fc: 46bd mov sp, r7 80127fe: bc80 pop {r7} 8012800: 4770 bx lr 8012802: bf00 nop 8012804: 40012c00 .word 0x40012c00 08012808 : * @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) { 8012808: b480 push {r7} 801280a: b087 sub sp, #28 801280c: af00 add r7, sp, #0 801280e: 6078 str r0, [r7, #4] 8012810: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 8012812: 687b ldr r3, [r7, #4] 8012814: 6a1b ldr r3, [r3, #32] 8012816: 613b str r3, [r7, #16] /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; 8012818: 687b ldr r3, [r7, #4] 801281a: 6a1b ldr r3, [r3, #32] 801281c: f423 5280 bic.w r2, r3, #4096 @ 0x1000 8012820: 687b ldr r3, [r7, #4] 8012822: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8012824: 687b ldr r3, [r7, #4] 8012826: 685b ldr r3, [r3, #4] 8012828: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 801282a: 687b ldr r3, [r7, #4] 801282c: 69db ldr r3, [r3, #28] 801282e: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; 8012830: 68fb ldr r3, [r7, #12] 8012832: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 8012836: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; 8012838: 68fb ldr r3, [r7, #12] 801283a: f423 7340 bic.w r3, r3, #768 @ 0x300 801283e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 8012840: 683b ldr r3, [r7, #0] 8012842: 681b ldr r3, [r3, #0] 8012844: 021b lsls r3, r3, #8 8012846: 68fa ldr r2, [r7, #12] 8012848: 4313 orrs r3, r2 801284a: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; 801284c: 693b ldr r3, [r7, #16] 801284e: f423 5300 bic.w r3, r3, #8192 @ 0x2000 8012852: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); 8012854: 683b ldr r3, [r7, #0] 8012856: 689b ldr r3, [r3, #8] 8012858: 031b lsls r3, r3, #12 801285a: 693a ldr r2, [r7, #16] 801285c: 4313 orrs r3, r2 801285e: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012860: 687b ldr r3, [r7, #4] 8012862: 4a0f ldr r2, [pc, #60] @ (80128a0 ) 8012864: 4293 cmp r3, r2 8012866: d109 bne.n 801287c { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; 8012868: 697b ldr r3, [r7, #20] 801286a: f423 4380 bic.w r3, r3, #16384 @ 0x4000 801286e: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); 8012870: 683b ldr r3, [r7, #0] 8012872: 695b ldr r3, [r3, #20] 8012874: 019b lsls r3, r3, #6 8012876: 697a ldr r2, [r7, #20] 8012878: 4313 orrs r3, r2 801287a: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 801287c: 687b ldr r3, [r7, #4] 801287e: 697a ldr r2, [r7, #20] 8012880: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 8012882: 687b ldr r3, [r7, #4] 8012884: 68fa ldr r2, [r7, #12] 8012886: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; 8012888: 683b ldr r3, [r7, #0] 801288a: 685a ldr r2, [r3, #4] 801288c: 687b ldr r3, [r7, #4] 801288e: 641a str r2, [r3, #64] @ 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012890: 687b ldr r3, [r7, #4] 8012892: 693a ldr r2, [r7, #16] 8012894: 621a str r2, [r3, #32] } 8012896: bf00 nop 8012898: 371c adds r7, #28 801289a: 46bd mov sp, r7 801289c: bc80 pop {r7} 801289e: 4770 bx lr 80128a0: 40012c00 .word 0x40012c00 080128a4 : * @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) { 80128a4: b480 push {r7} 80128a6: b087 sub sp, #28 80128a8: af00 add r7, sp, #0 80128aa: 60f8 str r0, [r7, #12] 80128ac: 60b9 str r1, [r7, #8] 80128ae: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; 80128b0: 68fb ldr r3, [r7, #12] 80128b2: 6a1b ldr r3, [r3, #32] 80128b4: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; 80128b6: 68fb ldr r3, [r7, #12] 80128b8: 6a1b ldr r3, [r3, #32] 80128ba: f023 0201 bic.w r2, r3, #1 80128be: 68fb ldr r3, [r7, #12] 80128c0: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 80128c2: 68fb ldr r3, [r7, #12] 80128c4: 699b ldr r3, [r3, #24] 80128c6: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; 80128c8: 693b ldr r3, [r7, #16] 80128ca: f023 03f0 bic.w r3, r3, #240 @ 0xf0 80128ce: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); 80128d0: 687b ldr r3, [r7, #4] 80128d2: 011b lsls r3, r3, #4 80128d4: 693a ldr r2, [r7, #16] 80128d6: 4313 orrs r3, r2 80128d8: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); 80128da: 697b ldr r3, [r7, #20] 80128dc: f023 030a bic.w r3, r3, #10 80128e0: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; 80128e2: 697a ldr r2, [r7, #20] 80128e4: 68bb ldr r3, [r7, #8] 80128e6: 4313 orrs r3, r2 80128e8: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; 80128ea: 68fb ldr r3, [r7, #12] 80128ec: 693a ldr r2, [r7, #16] 80128ee: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 80128f0: 68fb ldr r3, [r7, #12] 80128f2: 697a ldr r2, [r7, #20] 80128f4: 621a str r2, [r3, #32] } 80128f6: bf00 nop 80128f8: 371c adds r7, #28 80128fa: 46bd mov sp, r7 80128fc: bc80 pop {r7} 80128fe: 4770 bx lr 08012900 : * @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) { 8012900: b480 push {r7} 8012902: b087 sub sp, #28 8012904: af00 add r7, sp, #0 8012906: 60f8 str r0, [r7, #12] 8012908: 60b9 str r1, [r7, #8] 801290a: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ tmpccer = TIMx->CCER; 801290c: 68fb ldr r3, [r7, #12] 801290e: 6a1b ldr r3, [r3, #32] 8012910: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC2E; 8012912: 68fb ldr r3, [r7, #12] 8012914: 6a1b ldr r3, [r3, #32] 8012916: f023 0210 bic.w r2, r3, #16 801291a: 68fb ldr r3, [r7, #12] 801291c: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 801291e: 68fb ldr r3, [r7, #12] 8012920: 699b ldr r3, [r3, #24] 8012922: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; 8012924: 693b ldr r3, [r7, #16] 8012926: f423 4370 bic.w r3, r3, #61440 @ 0xf000 801292a: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 12U); 801292c: 687b ldr r3, [r7, #4] 801292e: 031b lsls r3, r3, #12 8012930: 693a ldr r2, [r7, #16] 8012932: 4313 orrs r3, r2 8012934: 613b str r3, [r7, #16] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); 8012936: 697b ldr r3, [r7, #20] 8012938: f023 03a0 bic.w r3, r3, #160 @ 0xa0 801293c: 617b str r3, [r7, #20] tmpccer |= (TIM_ICPolarity << 4U); 801293e: 68bb ldr r3, [r7, #8] 8012940: 011b lsls r3, r3, #4 8012942: 697a ldr r2, [r7, #20] 8012944: 4313 orrs r3, r2 8012946: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; 8012948: 68fb ldr r3, [r7, #12] 801294a: 693a ldr r2, [r7, #16] 801294c: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 801294e: 68fb ldr r3, [r7, #12] 8012950: 697a ldr r2, [r7, #20] 8012952: 621a str r2, [r3, #32] } 8012954: bf00 nop 8012956: 371c adds r7, #28 8012958: 46bd mov sp, r7 801295a: bc80 pop {r7} 801295c: 4770 bx lr 0801295e : * @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) { 801295e: b480 push {r7} 8012960: b085 sub sp, #20 8012962: af00 add r7, sp, #0 8012964: 6078 str r0, [r7, #4] 8012966: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; 8012968: 687b ldr r3, [r7, #4] 801296a: 689b ldr r3, [r3, #8] 801296c: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; 801296e: 68fb ldr r3, [r7, #12] 8012970: f023 0370 bic.w r3, r3, #112 @ 0x70 8012974: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); 8012976: 683a ldr r2, [r7, #0] 8012978: 68fb ldr r3, [r7, #12] 801297a: 4313 orrs r3, r2 801297c: f043 0307 orr.w r3, r3, #7 8012980: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8012982: 687b ldr r3, [r7, #4] 8012984: 68fa ldr r2, [r7, #12] 8012986: 609a str r2, [r3, #8] } 8012988: bf00 nop 801298a: 3714 adds r7, #20 801298c: 46bd mov sp, r7 801298e: bc80 pop {r7} 8012990: 4770 bx lr 08012992 : * 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) { 8012992: b480 push {r7} 8012994: b087 sub sp, #28 8012996: af00 add r7, sp, #0 8012998: 60f8 str r0, [r7, #12] 801299a: 60b9 str r1, [r7, #8] 801299c: 607a str r2, [r7, #4] 801299e: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; 80129a0: 68fb ldr r3, [r7, #12] 80129a2: 689b ldr r3, [r3, #8] 80129a4: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 80129a6: 697b ldr r3, [r7, #20] 80129a8: f423 437f bic.w r3, r3, #65280 @ 0xff00 80129ac: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); 80129ae: 683b ldr r3, [r7, #0] 80129b0: 021a lsls r2, r3, #8 80129b2: 687b ldr r3, [r7, #4] 80129b4: 431a orrs r2, r3 80129b6: 68bb ldr r3, [r7, #8] 80129b8: 4313 orrs r3, r2 80129ba: 697a ldr r2, [r7, #20] 80129bc: 4313 orrs r3, r2 80129be: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 80129c0: 68fb ldr r3, [r7, #12] 80129c2: 697a ldr r2, [r7, #20] 80129c4: 609a str r2, [r3, #8] } 80129c6: bf00 nop 80129c8: 371c adds r7, #28 80129ca: 46bd mov sp, r7 80129cc: bc80 pop {r7} 80129ce: 4770 bx lr 080129d0 : * @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) { 80129d0: b480 push {r7} 80129d2: b087 sub sp, #28 80129d4: af00 add r7, sp, #0 80129d6: 60f8 str r0, [r7, #12] 80129d8: 60b9 str r1, [r7, #8] 80129da: 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 */ 80129dc: 68bb ldr r3, [r7, #8] 80129de: f003 031f and.w r3, r3, #31 80129e2: 2201 movs r2, #1 80129e4: fa02 f303 lsl.w r3, r2, r3 80129e8: 617b str r3, [r7, #20] /* Reset the CCxE Bit */ TIMx->CCER &= ~tmp; 80129ea: 68fb ldr r3, [r7, #12] 80129ec: 6a1a ldr r2, [r3, #32] 80129ee: 697b ldr r3, [r7, #20] 80129f0: 43db mvns r3, r3 80129f2: 401a ands r2, r3 80129f4: 68fb ldr r3, [r7, #12] 80129f6: 621a str r2, [r3, #32] /* Set or reset the CCxE Bit */ TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ 80129f8: 68fb ldr r3, [r7, #12] 80129fa: 6a1a ldr r2, [r3, #32] 80129fc: 68bb ldr r3, [r7, #8] 80129fe: f003 031f and.w r3, r3, #31 8012a02: 6879 ldr r1, [r7, #4] 8012a04: fa01 f303 lsl.w r3, r1, r3 8012a08: 431a orrs r2, r3 8012a0a: 68fb ldr r3, [r7, #12] 8012a0c: 621a str r2, [r3, #32] } 8012a0e: bf00 nop 8012a10: 371c adds r7, #28 8012a12: 46bd mov sp, r7 8012a14: bc80 pop {r7} 8012a16: 4770 bx lr 08012a18 : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { 8012a18: b480 push {r7} 8012a1a: b085 sub sp, #20 8012a1c: af00 add r7, sp, #0 8012a1e: 6078 str r0, [r7, #4] 8012a20: 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); 8012a22: 687b ldr r3, [r7, #4] 8012a24: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012a28: 2b01 cmp r3, #1 8012a2a: d101 bne.n 8012a30 8012a2c: 2302 movs r3, #2 8012a2e: e04b b.n 8012ac8 8012a30: 687b ldr r3, [r7, #4] 8012a32: 2201 movs r2, #1 8012a34: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; 8012a38: 687b ldr r3, [r7, #4] 8012a3a: 2202 movs r2, #2 8012a3c: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; 8012a40: 687b ldr r3, [r7, #4] 8012a42: 681b ldr r3, [r3, #0] 8012a44: 685b ldr r3, [r3, #4] 8012a46: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; 8012a48: 687b ldr r3, [r7, #4] 8012a4a: 681b ldr r3, [r3, #0] 8012a4c: 689b ldr r3, [r3, #8] 8012a4e: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; 8012a50: 68fb ldr r3, [r7, #12] 8012a52: f023 0370 bic.w r3, r3, #112 @ 0x70 8012a56: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; 8012a58: 683b ldr r3, [r7, #0] 8012a5a: 681b ldr r3, [r3, #0] 8012a5c: 68fa ldr r2, [r7, #12] 8012a5e: 4313 orrs r3, r2 8012a60: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; 8012a62: 687b ldr r3, [r7, #4] 8012a64: 681b ldr r3, [r3, #0] 8012a66: 68fa ldr r2, [r7, #12] 8012a68: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) 8012a6a: 687b ldr r3, [r7, #4] 8012a6c: 681b ldr r3, [r3, #0] 8012a6e: 4a19 ldr r2, [pc, #100] @ (8012ad4 ) 8012a70: 4293 cmp r3, r2 8012a72: d013 beq.n 8012a9c 8012a74: 687b ldr r3, [r7, #4] 8012a76: 681b ldr r3, [r3, #0] 8012a78: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012a7c: d00e beq.n 8012a9c 8012a7e: 687b ldr r3, [r7, #4] 8012a80: 681b ldr r3, [r3, #0] 8012a82: 4a15 ldr r2, [pc, #84] @ (8012ad8 ) 8012a84: 4293 cmp r3, r2 8012a86: d009 beq.n 8012a9c 8012a88: 687b ldr r3, [r7, #4] 8012a8a: 681b ldr r3, [r3, #0] 8012a8c: 4a13 ldr r2, [pc, #76] @ (8012adc ) 8012a8e: 4293 cmp r3, r2 8012a90: d004 beq.n 8012a9c 8012a92: 687b ldr r3, [r7, #4] 8012a94: 681b ldr r3, [r3, #0] 8012a96: 4a12 ldr r2, [pc, #72] @ (8012ae0 ) 8012a98: 4293 cmp r3, r2 8012a9a: d10c bne.n 8012ab6 { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; 8012a9c: 68bb ldr r3, [r7, #8] 8012a9e: f023 0380 bic.w r3, r3, #128 @ 0x80 8012aa2: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; 8012aa4: 683b ldr r3, [r7, #0] 8012aa6: 685b ldr r3, [r3, #4] 8012aa8: 68ba ldr r2, [r7, #8] 8012aaa: 4313 orrs r3, r2 8012aac: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 8012aae: 687b ldr r3, [r7, #4] 8012ab0: 681b ldr r3, [r3, #0] 8012ab2: 68ba ldr r2, [r7, #8] 8012ab4: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; 8012ab6: 687b ldr r3, [r7, #4] 8012ab8: 2201 movs r2, #1 8012aba: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); 8012abe: 687b ldr r3, [r7, #4] 8012ac0: 2200 movs r2, #0 8012ac2: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; 8012ac6: 2300 movs r3, #0 } 8012ac8: 4618 mov r0, r3 8012aca: 3714 adds r7, #20 8012acc: 46bd mov sp, r7 8012ace: bc80 pop {r7} 8012ad0: 4770 bx lr 8012ad2: bf00 nop 8012ad4: 40012c00 .word 0x40012c00 8012ad8: 40000400 .word 0x40000400 8012adc: 40000800 .word 0x40000800 8012ae0: 40000c00 .word 0x40000c00 08012ae4 : * @brief Commutation callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { 8012ae4: b480 push {r7} 8012ae6: b083 sub sp, #12 8012ae8: af00 add r7, sp, #0 8012aea: 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 */ } 8012aec: bf00 nop 8012aee: 370c adds r7, #12 8012af0: 46bd mov sp, r7 8012af2: bc80 pop {r7} 8012af4: 4770 bx lr 08012af6 : * @brief Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { 8012af6: b480 push {r7} 8012af8: b083 sub sp, #12 8012afa: af00 add r7, sp, #0 8012afc: 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 */ } 8012afe: bf00 nop 8012b00: 370c adds r7, #12 8012b02: 46bd mov sp, r7 8012b04: bc80 pop {r7} 8012b06: 4770 bx lr 08012b08 : * @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) { 8012b08: b580 push {r7, lr} 8012b0a: b082 sub sp, #8 8012b0c: af00 add r7, sp, #0 8012b0e: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) 8012b10: 687b ldr r3, [r7, #4] 8012b12: 2b00 cmp r3, #0 8012b14: d101 bne.n 8012b1a { return HAL_ERROR; 8012b16: 2301 movs r3, #1 8012b18: e042 b.n 8012ba0 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) 8012b1a: 687b ldr r3, [r7, #4] 8012b1c: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8012b20: b2db uxtb r3, r3 8012b22: 2b00 cmp r3, #0 8012b24: d106 bne.n 8012b34 { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; 8012b26: 687b ldr r3, [r7, #4] 8012b28: 2200 movs r2, #0 8012b2a: 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); 8012b2e: 6878 ldr r0, [r7, #4] 8012b30: f7fa ff28 bl 800d984 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; 8012b34: 687b ldr r3, [r7, #4] 8012b36: 2224 movs r2, #36 @ 0x24 8012b38: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); 8012b3c: 687b ldr r3, [r7, #4] 8012b3e: 681b ldr r3, [r3, #0] 8012b40: 68da ldr r2, [r3, #12] 8012b42: 687b ldr r3, [r7, #4] 8012b44: 681b ldr r3, [r3, #0] 8012b46: f422 5200 bic.w r2, r2, #8192 @ 0x2000 8012b4a: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); 8012b4c: 6878 ldr r0, [r7, #4] 8012b4e: f000 fee7 bl 8013920 /* 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)); 8012b52: 687b ldr r3, [r7, #4] 8012b54: 681b ldr r3, [r3, #0] 8012b56: 691a ldr r2, [r3, #16] 8012b58: 687b ldr r3, [r7, #4] 8012b5a: 681b ldr r3, [r3, #0] 8012b5c: f422 4290 bic.w r2, r2, #18432 @ 0x4800 8012b60: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); 8012b62: 687b ldr r3, [r7, #4] 8012b64: 681b ldr r3, [r3, #0] 8012b66: 695a ldr r2, [r3, #20] 8012b68: 687b ldr r3, [r7, #4] 8012b6a: 681b ldr r3, [r3, #0] 8012b6c: f022 022a bic.w r2, r2, #42 @ 0x2a 8012b70: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); 8012b72: 687b ldr r3, [r7, #4] 8012b74: 681b ldr r3, [r3, #0] 8012b76: 68da ldr r2, [r3, #12] 8012b78: 687b ldr r3, [r7, #4] 8012b7a: 681b ldr r3, [r3, #0] 8012b7c: f442 5200 orr.w r2, r2, #8192 @ 0x2000 8012b80: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8012b82: 687b ldr r3, [r7, #4] 8012b84: 2200 movs r2, #0 8012b86: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; 8012b88: 687b ldr r3, [r7, #4] 8012b8a: 2220 movs r2, #32 8012b8c: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 8012b90: 687b ldr r3, [r7, #4] 8012b92: 2220 movs r2, #32 8012b94: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012b98: 687b ldr r3, [r7, #4] 8012b9a: 2200 movs r2, #0 8012b9c: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; 8012b9e: 2300 movs r3, #0 } 8012ba0: 4618 mov r0, r3 8012ba2: 3708 adds r7, #8 8012ba4: 46bd mov sp, r7 8012ba6: bd80 pop {r7, pc} 08012ba8 : * @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) { 8012ba8: b580 push {r7, lr} 8012baa: b082 sub sp, #8 8012bac: af00 add r7, sp, #0 8012bae: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) 8012bb0: 687b ldr r3, [r7, #4] 8012bb2: 2b00 cmp r3, #0 8012bb4: d101 bne.n 8012bba { return HAL_ERROR; 8012bb6: 2301 movs r3, #1 8012bb8: e024 b.n 8012c04 } /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); huart->gState = HAL_UART_STATE_BUSY; 8012bba: 687b ldr r3, [r7, #4] 8012bbc: 2224 movs r2, #36 @ 0x24 8012bbe: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the Peripheral */ __HAL_UART_DISABLE(huart); 8012bc2: 687b ldr r3, [r7, #4] 8012bc4: 681b ldr r3, [r3, #0] 8012bc6: 68da ldr r2, [r3, #12] 8012bc8: 687b ldr r3, [r7, #4] 8012bca: 681b ldr r3, [r3, #0] 8012bcc: f422 5200 bic.w r2, r2, #8192 @ 0x2000 8012bd0: 60da str r2, [r3, #12] } /* DeInit the low level hardware */ huart->MspDeInitCallback(huart); #else /* DeInit the low level hardware */ HAL_UART_MspDeInit(huart); 8012bd2: 6878 ldr r0, [r7, #4] 8012bd4: f7fb f820 bl 800dc18 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8012bd8: 687b ldr r3, [r7, #4] 8012bda: 2200 movs r2, #0 8012bdc: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_RESET; 8012bde: 687b ldr r3, [r7, #4] 8012be0: 2200 movs r2, #0 8012be2: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_RESET; 8012be6: 687b ldr r3, [r7, #4] 8012be8: 2200 movs r2, #0 8012bea: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8012bee: 687b ldr r3, [r7, #4] 8012bf0: 2200 movs r2, #0 8012bf2: 631a str r2, [r3, #48] @ 0x30 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012bf4: 687b ldr r3, [r7, #4] 8012bf6: 2200 movs r2, #0 8012bf8: 635a str r2, [r3, #52] @ 0x34 /* Process Unlock */ __HAL_UNLOCK(huart); 8012bfa: 687b ldr r3, [r7, #4] 8012bfc: 2200 movs r2, #0 8012bfe: f883 2040 strb.w r2, [r3, #64] @ 0x40 return HAL_OK; 8012c02: 2300 movs r3, #0 } 8012c04: 4618 mov r0, r3 8012c06: 3708 adds r7, #8 8012c08: 46bd mov sp, r7 8012c0a: bd80 pop {r7, pc} 08012c0c : * @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) { 8012c0c: b480 push {r7} 8012c0e: b085 sub sp, #20 8012c10: af00 add r7, sp, #0 8012c12: 60f8 str r0, [r7, #12] 8012c14: 60b9 str r1, [r7, #8] 8012c16: 4613 mov r3, r2 8012c18: 80fb strh r3, [r7, #6] /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) 8012c1a: 68fb ldr r3, [r7, #12] 8012c1c: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8012c20: b2db uxtb r3, r3 8012c22: 2b20 cmp r3, #32 8012c24: d121 bne.n 8012c6a { if ((pData == NULL) || (Size == 0U)) 8012c26: 68bb ldr r3, [r7, #8] 8012c28: 2b00 cmp r3, #0 8012c2a: d002 beq.n 8012c32 8012c2c: 88fb ldrh r3, [r7, #6] 8012c2e: 2b00 cmp r3, #0 8012c30: d101 bne.n 8012c36 { return HAL_ERROR; 8012c32: 2301 movs r3, #1 8012c34: e01a b.n 8012c6c } huart->pTxBuffPtr = pData; 8012c36: 68fb ldr r3, [r7, #12] 8012c38: 68ba ldr r2, [r7, #8] 8012c3a: 621a str r2, [r3, #32] huart->TxXferSize = Size; 8012c3c: 68fb ldr r3, [r7, #12] 8012c3e: 88fa ldrh r2, [r7, #6] 8012c40: 849a strh r2, [r3, #36] @ 0x24 huart->TxXferCount = Size; 8012c42: 68fb ldr r3, [r7, #12] 8012c44: 88fa ldrh r2, [r7, #6] 8012c46: 84da strh r2, [r3, #38] @ 0x26 huart->ErrorCode = HAL_UART_ERROR_NONE; 8012c48: 68fb ldr r3, [r7, #12] 8012c4a: 2200 movs r2, #0 8012c4c: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_BUSY_TX; 8012c4e: 68fb ldr r3, [r7, #12] 8012c50: 2221 movs r2, #33 @ 0x21 8012c52: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the UART Transmit data register empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TXE); 8012c56: 68fb ldr r3, [r7, #12] 8012c58: 681b ldr r3, [r3, #0] 8012c5a: 68da ldr r2, [r3, #12] 8012c5c: 68fb ldr r3, [r7, #12] 8012c5e: 681b ldr r3, [r3, #0] 8012c60: f042 0280 orr.w r2, r2, #128 @ 0x80 8012c64: 60da str r2, [r3, #12] return HAL_OK; 8012c66: 2300 movs r3, #0 8012c68: e000 b.n 8012c6c } else { return HAL_BUSY; 8012c6a: 2302 movs r3, #2 } } 8012c6c: 4618 mov r0, r3 8012c6e: 3714 adds r7, #20 8012c70: 46bd mov sp, r7 8012c72: bc80 pop {r7} 8012c74: 4770 bx lr 08012c76 : * @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) { 8012c76: b580 push {r7, lr} 8012c78: b08c sub sp, #48 @ 0x30 8012c7a: af00 add r7, sp, #0 8012c7c: 60f8 str r0, [r7, #12] 8012c7e: 60b9 str r1, [r7, #8] 8012c80: 4613 mov r3, r2 8012c82: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) 8012c84: 68fb ldr r3, [r7, #12] 8012c86: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 8012c8a: b2db uxtb r3, r3 8012c8c: 2b20 cmp r3, #32 8012c8e: d14a bne.n 8012d26 { if ((pData == NULL) || (Size == 0U)) 8012c90: 68bb ldr r3, [r7, #8] 8012c92: 2b00 cmp r3, #0 8012c94: d002 beq.n 8012c9c 8012c96: 88fb ldrh r3, [r7, #6] 8012c98: 2b00 cmp r3, #0 8012c9a: d101 bne.n 8012ca0 { return HAL_ERROR; 8012c9c: 2301 movs r3, #1 8012c9e: e043 b.n 8012d28 } /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; 8012ca0: 68fb ldr r3, [r7, #12] 8012ca2: 2201 movs r2, #1 8012ca4: 631a str r2, [r3, #48] @ 0x30 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012ca6: 68fb ldr r3, [r7, #12] 8012ca8: 2200 movs r2, #0 8012caa: 635a str r2, [r3, #52] @ 0x34 status = UART_Start_Receive_IT(huart, pData, Size); 8012cac: 88fb ldrh r3, [r7, #6] 8012cae: 461a mov r2, r3 8012cb0: 68b9 ldr r1, [r7, #8] 8012cb2: 68f8 ldr r0, [r7, #12] 8012cb4: f000 fbff bl 80134b6 8012cb8: 4603 mov r3, r0 8012cba: f887 302f strb.w r3, [r7, #47] @ 0x2f /* Check Rx process has been successfully started */ if (status == HAL_OK) 8012cbe: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 8012cc2: 2b00 cmp r3, #0 8012cc4: d12c bne.n 8012d20 { if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8012cc6: 68fb ldr r3, [r7, #12] 8012cc8: 6b1b ldr r3, [r3, #48] @ 0x30 8012cca: 2b01 cmp r3, #1 8012ccc: d125 bne.n 8012d1a { __HAL_UART_CLEAR_IDLEFLAG(huart); 8012cce: 2300 movs r3, #0 8012cd0: 613b str r3, [r7, #16] 8012cd2: 68fb ldr r3, [r7, #12] 8012cd4: 681b ldr r3, [r3, #0] 8012cd6: 681b ldr r3, [r3, #0] 8012cd8: 613b str r3, [r7, #16] 8012cda: 68fb ldr r3, [r7, #12] 8012cdc: 681b ldr r3, [r3, #0] 8012cde: 685b ldr r3, [r3, #4] 8012ce0: 613b str r3, [r7, #16] 8012ce2: 693b ldr r3, [r7, #16] ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8012ce4: 68fb ldr r3, [r7, #12] 8012ce6: 681b ldr r3, [r3, #0] 8012ce8: 330c adds r3, #12 8012cea: 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) ); 8012cec: 69bb ldr r3, [r7, #24] 8012cee: e853 3f00 ldrex r3, [r3] 8012cf2: 617b str r3, [r7, #20] return(result); 8012cf4: 697b ldr r3, [r7, #20] 8012cf6: f043 0310 orr.w r3, r3, #16 8012cfa: 62bb str r3, [r7, #40] @ 0x28 8012cfc: 68fb ldr r3, [r7, #12] 8012cfe: 681b ldr r3, [r3, #0] 8012d00: 330c adds r3, #12 8012d02: 6aba ldr r2, [r7, #40] @ 0x28 8012d04: 627a str r2, [r7, #36] @ 0x24 8012d06: 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) ); 8012d08: 6a39 ldr r1, [r7, #32] 8012d0a: 6a7a ldr r2, [r7, #36] @ 0x24 8012d0c: e841 2300 strex r3, r2, [r1] 8012d10: 61fb str r3, [r7, #28] return(result); 8012d12: 69fb ldr r3, [r7, #28] 8012d14: 2b00 cmp r3, #0 8012d16: d1e5 bne.n 8012ce4 8012d18: e002 b.n 8012d20 { /* 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; 8012d1a: 2301 movs r3, #1 8012d1c: f887 302f strb.w r3, [r7, #47] @ 0x2f } } return status; 8012d20: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 8012d24: e000 b.n 8012d28 } else { return HAL_BUSY; 8012d26: 2302 movs r3, #2 } } 8012d28: 4618 mov r0, r3 8012d2a: 3730 adds r7, #48 @ 0x30 8012d2c: 46bd mov sp, r7 8012d2e: bd80 pop {r7, pc} 08012d30 : * @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) { 8012d30: b580 push {r7, lr} 8012d32: b0a2 sub sp, #136 @ 0x88 8012d34: af00 add r7, sp, #0 8012d36: 6078 str r0, [r7, #4] uint32_t AbortCplt = 0x01U; 8012d38: 2301 movs r3, #1 8012d3a: 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)); 8012d3e: 687b ldr r3, [r7, #4] 8012d40: 681b ldr r3, [r3, #0] 8012d42: 330c adds r3, #12 8012d44: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012d46: 6e3b ldr r3, [r7, #96] @ 0x60 8012d48: e853 3f00 ldrex r3, [r3] 8012d4c: 65fb str r3, [r7, #92] @ 0x5c return(result); 8012d4e: 6dfb ldr r3, [r7, #92] @ 0x5c 8012d50: f423 73f0 bic.w r3, r3, #480 @ 0x1e0 8012d54: f8c7 3080 str.w r3, [r7, #128] @ 0x80 8012d58: 687b ldr r3, [r7, #4] 8012d5a: 681b ldr r3, [r3, #0] 8012d5c: 330c adds r3, #12 8012d5e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 8012d62: 66fa str r2, [r7, #108] @ 0x6c 8012d64: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012d66: 6eb9 ldr r1, [r7, #104] @ 0x68 8012d68: 6efa ldr r2, [r7, #108] @ 0x6c 8012d6a: e841 2300 strex r3, r2, [r1] 8012d6e: 667b str r3, [r7, #100] @ 0x64 return(result); 8012d70: 6e7b ldr r3, [r7, #100] @ 0x64 8012d72: 2b00 cmp r3, #0 8012d74: d1e3 bne.n 8012d3e ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8012d76: 687b ldr r3, [r7, #4] 8012d78: 681b ldr r3, [r3, #0] 8012d7a: 3314 adds r3, #20 8012d7c: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012d7e: 6cfb ldr r3, [r7, #76] @ 0x4c 8012d80: e853 3f00 ldrex r3, [r3] 8012d84: 64bb str r3, [r7, #72] @ 0x48 return(result); 8012d86: 6cbb ldr r3, [r7, #72] @ 0x48 8012d88: f023 0301 bic.w r3, r3, #1 8012d8c: 67fb str r3, [r7, #124] @ 0x7c 8012d8e: 687b ldr r3, [r7, #4] 8012d90: 681b ldr r3, [r3, #0] 8012d92: 3314 adds r3, #20 8012d94: 6ffa ldr r2, [r7, #124] @ 0x7c 8012d96: 65ba str r2, [r7, #88] @ 0x58 8012d98: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012d9a: 6d79 ldr r1, [r7, #84] @ 0x54 8012d9c: 6dba ldr r2, [r7, #88] @ 0x58 8012d9e: e841 2300 strex r3, r2, [r1] 8012da2: 653b str r3, [r7, #80] @ 0x50 return(result); 8012da4: 6d3b ldr r3, [r7, #80] @ 0x50 8012da6: 2b00 cmp r3, #0 8012da8: d1e5 bne.n 8012d76 /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8012daa: 687b ldr r3, [r7, #4] 8012dac: 6b1b ldr r3, [r3, #48] @ 0x30 8012dae: 2b01 cmp r3, #1 8012db0: d119 bne.n 8012de6 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); 8012db2: 687b ldr r3, [r7, #4] 8012db4: 681b ldr r3, [r3, #0] 8012db6: 330c adds r3, #12 8012db8: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012dba: 6bbb ldr r3, [r7, #56] @ 0x38 8012dbc: e853 3f00 ldrex r3, [r3] 8012dc0: 637b str r3, [r7, #52] @ 0x34 return(result); 8012dc2: 6b7b ldr r3, [r7, #52] @ 0x34 8012dc4: f023 0310 bic.w r3, r3, #16 8012dc8: 67bb str r3, [r7, #120] @ 0x78 8012dca: 687b ldr r3, [r7, #4] 8012dcc: 681b ldr r3, [r3, #0] 8012dce: 330c adds r3, #12 8012dd0: 6fba ldr r2, [r7, #120] @ 0x78 8012dd2: 647a str r2, [r7, #68] @ 0x44 8012dd4: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012dd6: 6c39 ldr r1, [r7, #64] @ 0x40 8012dd8: 6c7a ldr r2, [r7, #68] @ 0x44 8012dda: e841 2300 strex r3, r2, [r1] 8012dde: 63fb str r3, [r7, #60] @ 0x3c return(result); 8012de0: 6bfb ldr r3, [r7, #60] @ 0x3c 8012de2: 2b00 cmp r3, #0 8012de4: d1e5 bne.n 8012db2 } /* 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) 8012de6: 687b ldr r3, [r7, #4] 8012de8: 6b9b ldr r3, [r3, #56] @ 0x38 8012dea: 2b00 cmp r3, #0 8012dec: d00f beq.n 8012e0e { /* 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)) 8012dee: 687b ldr r3, [r7, #4] 8012df0: 681b ldr r3, [r3, #0] 8012df2: 695b ldr r3, [r3, #20] 8012df4: f003 0380 and.w r3, r3, #128 @ 0x80 8012df8: 2b00 cmp r3, #0 8012dfa: d004 beq.n 8012e06 { huart->hdmatx->XferAbortCallback = UART_DMATxAbortCallback; 8012dfc: 687b ldr r3, [r7, #4] 8012dfe: 6b9b ldr r3, [r3, #56] @ 0x38 8012e00: 4a53 ldr r2, [pc, #332] @ (8012f50 ) 8012e02: 635a str r2, [r3, #52] @ 0x34 8012e04: e003 b.n 8012e0e } else { huart->hdmatx->XferAbortCallback = NULL; 8012e06: 687b ldr r3, [r7, #4] 8012e08: 6b9b ldr r3, [r3, #56] @ 0x38 8012e0a: 2200 movs r2, #0 8012e0c: 635a str r2, [r3, #52] @ 0x34 } } /* DMA Rx Handle is valid */ if (huart->hdmarx != NULL) 8012e0e: 687b ldr r3, [r7, #4] 8012e10: 6bdb ldr r3, [r3, #60] @ 0x3c 8012e12: 2b00 cmp r3, #0 8012e14: d00f beq.n 8012e36 { /* 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)) 8012e16: 687b ldr r3, [r7, #4] 8012e18: 681b ldr r3, [r3, #0] 8012e1a: 695b ldr r3, [r3, #20] 8012e1c: f003 0340 and.w r3, r3, #64 @ 0x40 8012e20: 2b00 cmp r3, #0 8012e22: d004 beq.n 8012e2e { huart->hdmarx->XferAbortCallback = UART_DMARxAbortCallback; 8012e24: 687b ldr r3, [r7, #4] 8012e26: 6bdb ldr r3, [r3, #60] @ 0x3c 8012e28: 4a4a ldr r2, [pc, #296] @ (8012f54 ) 8012e2a: 635a str r2, [r3, #52] @ 0x34 8012e2c: e003 b.n 8012e36 } else { huart->hdmarx->XferAbortCallback = NULL; 8012e2e: 687b ldr r3, [r7, #4] 8012e30: 6bdb ldr r3, [r3, #60] @ 0x3c 8012e32: 2200 movs r2, #0 8012e34: 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)) 8012e36: 687b ldr r3, [r7, #4] 8012e38: 681b ldr r3, [r3, #0] 8012e3a: 695b ldr r3, [r3, #20] 8012e3c: f003 0380 and.w r3, r3, #128 @ 0x80 8012e40: 2b00 cmp r3, #0 8012e42: d02d beq.n 8012ea0 { /* Disable DMA Tx at UART level */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); 8012e44: 687b ldr r3, [r7, #4] 8012e46: 681b ldr r3, [r3, #0] 8012e48: 3314 adds r3, #20 8012e4a: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012e4c: 6a7b ldr r3, [r7, #36] @ 0x24 8012e4e: e853 3f00 ldrex r3, [r3] 8012e52: 623b str r3, [r7, #32] return(result); 8012e54: 6a3b ldr r3, [r7, #32] 8012e56: f023 0380 bic.w r3, r3, #128 @ 0x80 8012e5a: 677b str r3, [r7, #116] @ 0x74 8012e5c: 687b ldr r3, [r7, #4] 8012e5e: 681b ldr r3, [r3, #0] 8012e60: 3314 adds r3, #20 8012e62: 6f7a ldr r2, [r7, #116] @ 0x74 8012e64: 633a str r2, [r7, #48] @ 0x30 8012e66: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012e68: 6af9 ldr r1, [r7, #44] @ 0x2c 8012e6a: 6b3a ldr r2, [r7, #48] @ 0x30 8012e6c: e841 2300 strex r3, r2, [r1] 8012e70: 62bb str r3, [r7, #40] @ 0x28 return(result); 8012e72: 6abb ldr r3, [r7, #40] @ 0x28 8012e74: 2b00 cmp r3, #0 8012e76: d1e5 bne.n 8012e44 /* Abort the UART DMA Tx channel : use non blocking DMA Abort API (callback) */ if (huart->hdmatx != NULL) 8012e78: 687b ldr r3, [r7, #4] 8012e7a: 6b9b ldr r3, [r3, #56] @ 0x38 8012e7c: 2b00 cmp r3, #0 8012e7e: d00f beq.n 8012ea0 { /* 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) 8012e80: 687b ldr r3, [r7, #4] 8012e82: 6b9b ldr r3, [r3, #56] @ 0x38 8012e84: 4618 mov r0, r3 8012e86: f7fc fe61 bl 800fb4c 8012e8a: 4603 mov r3, r0 8012e8c: 2b00 cmp r3, #0 8012e8e: d004 beq.n 8012e9a { huart->hdmatx->XferAbortCallback = NULL; 8012e90: 687b ldr r3, [r7, #4] 8012e92: 6b9b ldr r3, [r3, #56] @ 0x38 8012e94: 2200 movs r2, #0 8012e96: 635a str r2, [r3, #52] @ 0x34 8012e98: e002 b.n 8012ea0 } else { AbortCplt = 0x00U; 8012e9a: 2300 movs r3, #0 8012e9c: 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)) 8012ea0: 687b ldr r3, [r7, #4] 8012ea2: 681b ldr r3, [r3, #0] 8012ea4: 695b ldr r3, [r3, #20] 8012ea6: f003 0340 and.w r3, r3, #64 @ 0x40 8012eaa: 2b00 cmp r3, #0 8012eac: d030 beq.n 8012f10 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 8012eae: 687b ldr r3, [r7, #4] 8012eb0: 681b ldr r3, [r3, #0] 8012eb2: 3314 adds r3, #20 8012eb4: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8012eb6: 693b ldr r3, [r7, #16] 8012eb8: e853 3f00 ldrex r3, [r3] 8012ebc: 60fb str r3, [r7, #12] return(result); 8012ebe: 68fb ldr r3, [r7, #12] 8012ec0: f023 0340 bic.w r3, r3, #64 @ 0x40 8012ec4: 673b str r3, [r7, #112] @ 0x70 8012ec6: 687b ldr r3, [r7, #4] 8012ec8: 681b ldr r3, [r3, #0] 8012eca: 3314 adds r3, #20 8012ecc: 6f3a ldr r2, [r7, #112] @ 0x70 8012ece: 61fa str r2, [r7, #28] 8012ed0: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8012ed2: 69b9 ldr r1, [r7, #24] 8012ed4: 69fa ldr r2, [r7, #28] 8012ed6: e841 2300 strex r3, r2, [r1] 8012eda: 617b str r3, [r7, #20] return(result); 8012edc: 697b ldr r3, [r7, #20] 8012ede: 2b00 cmp r3, #0 8012ee0: d1e5 bne.n 8012eae /* Abort the UART DMA Rx channel : use non blocking DMA Abort API (callback) */ if (huart->hdmarx != NULL) 8012ee2: 687b ldr r3, [r7, #4] 8012ee4: 6bdb ldr r3, [r3, #60] @ 0x3c 8012ee6: 2b00 cmp r3, #0 8012ee8: d012 beq.n 8012f10 { /* 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) 8012eea: 687b ldr r3, [r7, #4] 8012eec: 6bdb ldr r3, [r3, #60] @ 0x3c 8012eee: 4618 mov r0, r3 8012ef0: f7fc fe2c bl 800fb4c 8012ef4: 4603 mov r3, r0 8012ef6: 2b00 cmp r3, #0 8012ef8: d007 beq.n 8012f0a { huart->hdmarx->XferAbortCallback = NULL; 8012efa: 687b ldr r3, [r7, #4] 8012efc: 6bdb ldr r3, [r3, #60] @ 0x3c 8012efe: 2200 movs r2, #0 8012f00: 635a str r2, [r3, #52] @ 0x34 AbortCplt = 0x01U; 8012f02: 2301 movs r3, #1 8012f04: f8c7 3084 str.w r3, [r7, #132] @ 0x84 8012f08: e002 b.n 8012f10 } else { AbortCplt = 0x00U; 8012f0a: 2300 movs r3, #0 8012f0c: 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) 8012f10: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 8012f14: 2b01 cmp r3, #1 8012f16: d116 bne.n 8012f46 { /* Reset Tx and Rx transfer counters */ huart->TxXferCount = 0x00U; 8012f18: 687b ldr r3, [r7, #4] 8012f1a: 2200 movs r2, #0 8012f1c: 84da strh r2, [r3, #38] @ 0x26 huart->RxXferCount = 0x00U; 8012f1e: 687b ldr r3, [r7, #4] 8012f20: 2200 movs r2, #0 8012f22: 85da strh r2, [r3, #46] @ 0x2e /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8012f24: 687b ldr r3, [r7, #4] 8012f26: 2200 movs r2, #0 8012f28: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; 8012f2a: 687b ldr r3, [r7, #4] 8012f2c: 2220 movs r2, #32 8012f2e: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 8012f32: 687b ldr r3, [r7, #4] 8012f34: 2220 movs r2, #32 8012f36: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8012f3a: 687b ldr r3, [r7, #4] 8012f3c: 2200 movs r2, #0 8012f3e: 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); 8012f40: 6878 ldr r0, [r7, #4] 8012f42: f000 faa4 bl 801348e #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; 8012f46: 2300 movs r3, #0 } 8012f48: 4618 mov r0, r3 8012f4a: 3788 adds r7, #136 @ 0x88 8012f4c: 46bd mov sp, r7 8012f4e: bd80 pop {r7, pc} 8012f50: 08013615 .word 0x08013615 8012f54: 08013675 .word 0x08013675 08012f58 : * @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) { 8012f58: b580 push {r7, lr} 8012f5a: b0ba sub sp, #232 @ 0xe8 8012f5c: af00 add r7, sp, #0 8012f5e: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); 8012f60: 687b ldr r3, [r7, #4] 8012f62: 681b ldr r3, [r3, #0] 8012f64: 681b ldr r3, [r3, #0] 8012f66: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); 8012f6a: 687b ldr r3, [r7, #4] 8012f6c: 681b ldr r3, [r3, #0] 8012f6e: 68db ldr r3, [r3, #12] 8012f70: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); 8012f74: 687b ldr r3, [r7, #4] 8012f76: 681b ldr r3, [r3, #0] 8012f78: 695b ldr r3, [r3, #20] 8012f7a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags = 0x00U; 8012f7e: 2300 movs r3, #0 8012f80: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 uint32_t dmarequest = 0x00U; 8012f84: 2300 movs r3, #0 8012f86: 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)); 8012f8a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8012f8e: f003 030f and.w r3, r3, #15 8012f92: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == RESET) 8012f96: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 8012f9a: 2b00 cmp r3, #0 8012f9c: d10f bne.n 8012fbe { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) 8012f9e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8012fa2: f003 0320 and.w r3, r3, #32 8012fa6: 2b00 cmp r3, #0 8012fa8: d009 beq.n 8012fbe 8012faa: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8012fae: f003 0320 and.w r3, r3, #32 8012fb2: 2b00 cmp r3, #0 8012fb4: d003 beq.n 8012fbe { UART_Receive_IT(huart); 8012fb6: 6878 ldr r0, [r7, #4] 8012fb8: f000 fbf3 bl 80137a2 return; 8012fbc: e25b b.n 8013476 } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) 8012fbe: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 8012fc2: 2b00 cmp r3, #0 8012fc4: f000 80de beq.w 8013184 8012fc8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8012fcc: f003 0301 and.w r3, r3, #1 8012fd0: 2b00 cmp r3, #0 8012fd2: d106 bne.n 8012fe2 || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) 8012fd4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8012fd8: f403 7390 and.w r3, r3, #288 @ 0x120 8012fdc: 2b00 cmp r3, #0 8012fde: f000 80d1 beq.w 8013184 { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) 8012fe2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8012fe6: f003 0301 and.w r3, r3, #1 8012fea: 2b00 cmp r3, #0 8012fec: d00b beq.n 8013006 8012fee: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8012ff2: f403 7380 and.w r3, r3, #256 @ 0x100 8012ff6: 2b00 cmp r3, #0 8012ff8: d005 beq.n 8013006 { huart->ErrorCode |= HAL_UART_ERROR_PE; 8012ffa: 687b ldr r3, [r7, #4] 8012ffc: 6c5b ldr r3, [r3, #68] @ 0x44 8012ffe: f043 0201 orr.w r2, r3, #1 8013002: 687b ldr r3, [r7, #4] 8013004: 645a str r2, [r3, #68] @ 0x44 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) 8013006: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801300a: f003 0304 and.w r3, r3, #4 801300e: 2b00 cmp r3, #0 8013010: d00b beq.n 801302a 8013012: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8013016: f003 0301 and.w r3, r3, #1 801301a: 2b00 cmp r3, #0 801301c: d005 beq.n 801302a { huart->ErrorCode |= HAL_UART_ERROR_NE; 801301e: 687b ldr r3, [r7, #4] 8013020: 6c5b ldr r3, [r3, #68] @ 0x44 8013022: f043 0202 orr.w r2, r3, #2 8013026: 687b ldr r3, [r7, #4] 8013028: 645a str r2, [r3, #68] @ 0x44 } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) 801302a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801302e: f003 0302 and.w r3, r3, #2 8013032: 2b00 cmp r3, #0 8013034: d00b beq.n 801304e 8013036: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 801303a: f003 0301 and.w r3, r3, #1 801303e: 2b00 cmp r3, #0 8013040: d005 beq.n 801304e { huart->ErrorCode |= HAL_UART_ERROR_FE; 8013042: 687b ldr r3, [r7, #4] 8013044: 6c5b ldr r3, [r3, #68] @ 0x44 8013046: f043 0204 orr.w r2, r3, #4 801304a: 687b ldr r3, [r7, #4] 801304c: 645a str r2, [r3, #68] @ 0x44 } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) 801304e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013052: f003 0308 and.w r3, r3, #8 8013056: 2b00 cmp r3, #0 8013058: d011 beq.n 801307e 801305a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 801305e: f003 0320 and.w r3, r3, #32 8013062: 2b00 cmp r3, #0 8013064: d105 bne.n 8013072 || ((cr3its & USART_CR3_EIE) != RESET))) 8013066: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 801306a: f003 0301 and.w r3, r3, #1 801306e: 2b00 cmp r3, #0 8013070: d005 beq.n 801307e { huart->ErrorCode |= HAL_UART_ERROR_ORE; 8013072: 687b ldr r3, [r7, #4] 8013074: 6c5b ldr r3, [r3, #68] @ 0x44 8013076: f043 0208 orr.w r2, r3, #8 801307a: 687b ldr r3, [r7, #4] 801307c: 645a str r2, [r3, #68] @ 0x44 } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) 801307e: 687b ldr r3, [r7, #4] 8013080: 6c5b ldr r3, [r3, #68] @ 0x44 8013082: 2b00 cmp r3, #0 8013084: f000 81f2 beq.w 801346c { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) 8013088: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801308c: f003 0320 and.w r3, r3, #32 8013090: 2b00 cmp r3, #0 8013092: d008 beq.n 80130a6 8013094: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8013098: f003 0320 and.w r3, r3, #32 801309c: 2b00 cmp r3, #0 801309e: d002 beq.n 80130a6 { UART_Receive_IT(huart); 80130a0: 6878 ldr r0, [r7, #4] 80130a2: f000 fb7e bl 80137a2 } /* 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); 80130a6: 687b ldr r3, [r7, #4] 80130a8: 681b ldr r3, [r3, #0] 80130aa: 695b ldr r3, [r3, #20] 80130ac: f003 0340 and.w r3, r3, #64 @ 0x40 80130b0: 2b00 cmp r3, #0 80130b2: bf14 ite ne 80130b4: 2301 movne r3, #1 80130b6: 2300 moveq r3, #0 80130b8: b2db uxtb r3, r3 80130ba: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) 80130be: 687b ldr r3, [r7, #4] 80130c0: 6c5b ldr r3, [r3, #68] @ 0x44 80130c2: f003 0308 and.w r3, r3, #8 80130c6: 2b00 cmp r3, #0 80130c8: d103 bne.n 80130d2 80130ca: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 80130ce: 2b00 cmp r3, #0 80130d0: d04f beq.n 8013172 { /* 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); 80130d2: 6878 ldr r0, [r7, #4] 80130d4: f000 fa28 bl 8013528 /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80130d8: 687b ldr r3, [r7, #4] 80130da: 681b ldr r3, [r3, #0] 80130dc: 695b ldr r3, [r3, #20] 80130de: f003 0340 and.w r3, r3, #64 @ 0x40 80130e2: 2b00 cmp r3, #0 80130e4: d041 beq.n 801316a { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 80130e6: 687b ldr r3, [r7, #4] 80130e8: 681b ldr r3, [r3, #0] 80130ea: 3314 adds r3, #20 80130ec: f8c7 309c str.w r3, [r7, #156] @ 0x9c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80130f0: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c 80130f4: e853 3f00 ldrex r3, [r3] 80130f8: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); 80130fc: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 8013100: f023 0340 bic.w r3, r3, #64 @ 0x40 8013104: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 8013108: 687b ldr r3, [r7, #4] 801310a: 681b ldr r3, [r3, #0] 801310c: 3314 adds r3, #20 801310e: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 8013112: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 8013116: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801311a: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 801311e: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 8013122: e841 2300 strex r3, r2, [r1] 8013126: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); 801312a: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 801312e: 2b00 cmp r3, #0 8013130: d1d9 bne.n 80130e6 /* Abort the UART DMA Rx channel */ if (huart->hdmarx != NULL) 8013132: 687b ldr r3, [r7, #4] 8013134: 6bdb ldr r3, [r3, #60] @ 0x3c 8013136: 2b00 cmp r3, #0 8013138: d013 beq.n 8013162 { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; 801313a: 687b ldr r3, [r7, #4] 801313c: 6bdb ldr r3, [r3, #60] @ 0x3c 801313e: 4a7e ldr r2, [pc, #504] @ (8013338 ) 8013140: 635a str r2, [r3, #52] @ 0x34 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) 8013142: 687b ldr r3, [r7, #4] 8013144: 6bdb ldr r3, [r3, #60] @ 0x3c 8013146: 4618 mov r0, r3 8013148: f7fc fd00 bl 800fb4c 801314c: 4603 mov r3, r0 801314e: 2b00 cmp r3, #0 8013150: d016 beq.n 8013180 { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); 8013152: 687b ldr r3, [r7, #4] 8013154: 6bdb ldr r3, [r3, #60] @ 0x3c 8013156: 6b5b ldr r3, [r3, #52] @ 0x34 8013158: 687a ldr r2, [r7, #4] 801315a: 6bd2 ldr r2, [r2, #60] @ 0x3c 801315c: 4610 mov r0, r2 801315e: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013160: e00e b.n 8013180 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 8013162: 6878 ldr r0, [r7, #4] 8013164: f7f8 fce2 bl 800bb2c if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013168: e00a b.n 8013180 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 801316a: 6878 ldr r0, [r7, #4] 801316c: f7f8 fcde bl 800bb2c if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013170: e006 b.n 8013180 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 8013172: 6878 ldr r0, [r7, #4] 8013174: f7f8 fcda bl 800bb2c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8013178: 687b ldr r3, [r7, #4] 801317a: 2200 movs r2, #0 801317c: 645a str r2, [r3, #68] @ 0x44 } } return; 801317e: e175 b.n 801346c if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013180: bf00 nop return; 8013182: e173 b.n 801346c } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013184: 687b ldr r3, [r7, #4] 8013186: 6b1b ldr r3, [r3, #48] @ 0x30 8013188: 2b01 cmp r3, #1 801318a: f040 814f bne.w 801342c && ((isrflags & USART_SR_IDLE) != 0U) 801318e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013192: f003 0310 and.w r3, r3, #16 8013196: 2b00 cmp r3, #0 8013198: f000 8148 beq.w 801342c && ((cr1its & USART_SR_IDLE) != 0U)) 801319c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80131a0: f003 0310 and.w r3, r3, #16 80131a4: 2b00 cmp r3, #0 80131a6: f000 8141 beq.w 801342c { __HAL_UART_CLEAR_IDLEFLAG(huart); 80131aa: 2300 movs r3, #0 80131ac: 60bb str r3, [r7, #8] 80131ae: 687b ldr r3, [r7, #4] 80131b0: 681b ldr r3, [r3, #0] 80131b2: 681b ldr r3, [r3, #0] 80131b4: 60bb str r3, [r7, #8] 80131b6: 687b ldr r3, [r7, #4] 80131b8: 681b ldr r3, [r3, #0] 80131ba: 685b ldr r3, [r3, #4] 80131bc: 60bb str r3, [r7, #8] 80131be: 68bb ldr r3, [r7, #8] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80131c0: 687b ldr r3, [r7, #4] 80131c2: 681b ldr r3, [r3, #0] 80131c4: 695b ldr r3, [r3, #20] 80131c6: f003 0340 and.w r3, r3, #64 @ 0x40 80131ca: 2b00 cmp r3, #0 80131cc: f000 80b6 beq.w 801333c { /* 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); 80131d0: 687b ldr r3, [r7, #4] 80131d2: 6bdb ldr r3, [r3, #60] @ 0x3c 80131d4: 681b ldr r3, [r3, #0] 80131d6: 685b ldr r3, [r3, #4] 80131d8: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) 80131dc: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe 80131e0: 2b00 cmp r3, #0 80131e2: f000 8145 beq.w 8013470 && (nb_remaining_rx_data < huart->RxXferSize)) 80131e6: 687b ldr r3, [r7, #4] 80131e8: 8d9b ldrh r3, [r3, #44] @ 0x2c 80131ea: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe 80131ee: 429a cmp r2, r3 80131f0: f080 813e bcs.w 8013470 { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; 80131f4: 687b ldr r3, [r7, #4] 80131f6: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe 80131fa: 85da strh r2, [r3, #46] @ 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) 80131fc: 687b ldr r3, [r7, #4] 80131fe: 6bdb ldr r3, [r3, #60] @ 0x3c 8013200: 699b ldr r3, [r3, #24] 8013202: 2b20 cmp r3, #32 8013204: f000 8088 beq.w 8013318 { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); 8013208: 687b ldr r3, [r7, #4] 801320a: 681b ldr r3, [r3, #0] 801320c: 330c adds r3, #12 801320e: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013212: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 8013216: e853 3f00 ldrex r3, [r3] 801321a: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); 801321e: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 8013222: f423 7380 bic.w r3, r3, #256 @ 0x100 8013226: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 801322a: 687b ldr r3, [r7, #4] 801322c: 681b ldr r3, [r3, #0] 801322e: 330c adds r3, #12 8013230: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 8013234: f8c7 2094 str.w r2, [r7, #148] @ 0x94 8013238: f8c7 3090 str.w r3, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801323c: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 8013240: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 8013244: e841 2300 strex r3, r2, [r1] 8013248: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); 801324c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c 8013250: 2b00 cmp r3, #0 8013252: d1d9 bne.n 8013208 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013254: 687b ldr r3, [r7, #4] 8013256: 681b ldr r3, [r3, #0] 8013258: 3314 adds r3, #20 801325a: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801325c: 6f7b ldr r3, [r7, #116] @ 0x74 801325e: e853 3f00 ldrex r3, [r3] 8013262: 673b str r3, [r7, #112] @ 0x70 return(result); 8013264: 6f3b ldr r3, [r7, #112] @ 0x70 8013266: f023 0301 bic.w r3, r3, #1 801326a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 801326e: 687b ldr r3, [r7, #4] 8013270: 681b ldr r3, [r3, #0] 8013272: 3314 adds r3, #20 8013274: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 8013278: f8c7 2080 str.w r2, [r7, #128] @ 0x80 801327c: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801327e: 6ff9 ldr r1, [r7, #124] @ 0x7c 8013280: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 8013284: e841 2300 strex r3, r2, [r1] 8013288: 67bb str r3, [r7, #120] @ 0x78 return(result); 801328a: 6fbb ldr r3, [r7, #120] @ 0x78 801328c: 2b00 cmp r3, #0 801328e: d1e1 bne.n 8013254 /* 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); 8013290: 687b ldr r3, [r7, #4] 8013292: 681b ldr r3, [r3, #0] 8013294: 3314 adds r3, #20 8013296: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013298: 6e3b ldr r3, [r7, #96] @ 0x60 801329a: e853 3f00 ldrex r3, [r3] 801329e: 65fb str r3, [r7, #92] @ 0x5c return(result); 80132a0: 6dfb ldr r3, [r7, #92] @ 0x5c 80132a2: f023 0340 bic.w r3, r3, #64 @ 0x40 80132a6: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 80132aa: 687b ldr r3, [r7, #4] 80132ac: 681b ldr r3, [r3, #0] 80132ae: 3314 adds r3, #20 80132b0: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 80132b4: 66fa str r2, [r7, #108] @ 0x6c 80132b6: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80132b8: 6eb9 ldr r1, [r7, #104] @ 0x68 80132ba: 6efa ldr r2, [r7, #108] @ 0x6c 80132bc: e841 2300 strex r3, r2, [r1] 80132c0: 667b str r3, [r7, #100] @ 0x64 return(result); 80132c2: 6e7b ldr r3, [r7, #100] @ 0x64 80132c4: 2b00 cmp r3, #0 80132c6: d1e3 bne.n 8013290 /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 80132c8: 687b ldr r3, [r7, #4] 80132ca: 2220 movs r2, #32 80132cc: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80132d0: 687b ldr r3, [r7, #4] 80132d2: 2200 movs r2, #0 80132d4: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80132d6: 687b ldr r3, [r7, #4] 80132d8: 681b ldr r3, [r3, #0] 80132da: 330c adds r3, #12 80132dc: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80132de: 6cfb ldr r3, [r7, #76] @ 0x4c 80132e0: e853 3f00 ldrex r3, [r3] 80132e4: 64bb str r3, [r7, #72] @ 0x48 return(result); 80132e6: 6cbb ldr r3, [r7, #72] @ 0x48 80132e8: f023 0310 bic.w r3, r3, #16 80132ec: f8c7 30ac str.w r3, [r7, #172] @ 0xac 80132f0: 687b ldr r3, [r7, #4] 80132f2: 681b ldr r3, [r3, #0] 80132f4: 330c adds r3, #12 80132f6: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac 80132fa: 65ba str r2, [r7, #88] @ 0x58 80132fc: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80132fe: 6d79 ldr r1, [r7, #84] @ 0x54 8013300: 6dba ldr r2, [r7, #88] @ 0x58 8013302: e841 2300 strex r3, r2, [r1] 8013306: 653b str r3, [r7, #80] @ 0x50 return(result); 8013308: 6d3b ldr r3, [r7, #80] @ 0x50 801330a: 2b00 cmp r3, #0 801330c: d1e3 bne.n 80132d6 /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); 801330e: 687b ldr r3, [r7, #4] 8013310: 6bdb ldr r3, [r3, #60] @ 0x3c 8013312: 4618 mov r0, r3 8013314: f7fc fbde bl 800fad4 } /* 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; 8013318: 687b ldr r3, [r7, #4] 801331a: 2202 movs r2, #2 801331c: 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)); 801331e: 687b ldr r3, [r7, #4] 8013320: 8d9a ldrh r2, [r3, #44] @ 0x2c 8013322: 687b ldr r3, [r7, #4] 8013324: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013326: b29b uxth r3, r3 8013328: 1ad3 subs r3, r2, r3 801332a: b29b uxth r3, r3 801332c: 4619 mov r1, r3 801332e: 6878 ldr r0, [r7, #4] 8013330: f7f9 fa44 bl 800c7bc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; 8013334: e09c b.n 8013470 8013336: bf00 nop 8013338: 080135ed .word 0x080135ed 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; 801333c: 687b ldr r3, [r7, #4] 801333e: 8d9a ldrh r2, [r3, #44] @ 0x2c 8013340: 687b ldr r3, [r7, #4] 8013342: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013344: b29b uxth r3, r3 8013346: 1ad3 subs r3, r2, r3 8013348: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) 801334c: 687b ldr r3, [r7, #4] 801334e: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013350: b29b uxth r3, r3 8013352: 2b00 cmp r3, #0 8013354: f000 808e beq.w 8013474 && (nb_rx_data > 0U)) 8013358: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce 801335c: 2b00 cmp r3, #0 801335e: f000 8089 beq.w 8013474 { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); 8013362: 687b ldr r3, [r7, #4] 8013364: 681b ldr r3, [r3, #0] 8013366: 330c adds r3, #12 8013368: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801336a: 6bbb ldr r3, [r7, #56] @ 0x38 801336c: e853 3f00 ldrex r3, [r3] 8013370: 637b str r3, [r7, #52] @ 0x34 return(result); 8013372: 6b7b ldr r3, [r7, #52] @ 0x34 8013374: f423 7390 bic.w r3, r3, #288 @ 0x120 8013378: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 801337c: 687b ldr r3, [r7, #4] 801337e: 681b ldr r3, [r3, #0] 8013380: 330c adds r3, #12 8013382: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 8013386: 647a str r2, [r7, #68] @ 0x44 8013388: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801338a: 6c39 ldr r1, [r7, #64] @ 0x40 801338c: 6c7a ldr r2, [r7, #68] @ 0x44 801338e: e841 2300 strex r3, r2, [r1] 8013392: 63fb str r3, [r7, #60] @ 0x3c return(result); 8013394: 6bfb ldr r3, [r7, #60] @ 0x3c 8013396: 2b00 cmp r3, #0 8013398: d1e3 bne.n 8013362 /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 801339a: 687b ldr r3, [r7, #4] 801339c: 681b ldr r3, [r3, #0] 801339e: 3314 adds r3, #20 80133a0: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80133a2: 6a7b ldr r3, [r7, #36] @ 0x24 80133a4: e853 3f00 ldrex r3, [r3] 80133a8: 623b str r3, [r7, #32] return(result); 80133aa: 6a3b ldr r3, [r7, #32] 80133ac: f023 0301 bic.w r3, r3, #1 80133b0: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 80133b4: 687b ldr r3, [r7, #4] 80133b6: 681b ldr r3, [r3, #0] 80133b8: 3314 adds r3, #20 80133ba: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 80133be: 633a str r2, [r7, #48] @ 0x30 80133c0: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80133c2: 6af9 ldr r1, [r7, #44] @ 0x2c 80133c4: 6b3a ldr r2, [r7, #48] @ 0x30 80133c6: e841 2300 strex r3, r2, [r1] 80133ca: 62bb str r3, [r7, #40] @ 0x28 return(result); 80133cc: 6abb ldr r3, [r7, #40] @ 0x28 80133ce: 2b00 cmp r3, #0 80133d0: d1e3 bne.n 801339a /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 80133d2: 687b ldr r3, [r7, #4] 80133d4: 2220 movs r2, #32 80133d6: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80133da: 687b ldr r3, [r7, #4] 80133dc: 2200 movs r2, #0 80133de: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80133e0: 687b ldr r3, [r7, #4] 80133e2: 681b ldr r3, [r3, #0] 80133e4: 330c adds r3, #12 80133e6: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80133e8: 693b ldr r3, [r7, #16] 80133ea: e853 3f00 ldrex r3, [r3] 80133ee: 60fb str r3, [r7, #12] return(result); 80133f0: 68fb ldr r3, [r7, #12] 80133f2: f023 0310 bic.w r3, r3, #16 80133f6: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 80133fa: 687b ldr r3, [r7, #4] 80133fc: 681b ldr r3, [r3, #0] 80133fe: 330c adds r3, #12 8013400: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 8013404: 61fa str r2, [r7, #28] 8013406: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013408: 69b9 ldr r1, [r7, #24] 801340a: 69fa ldr r2, [r7, #28] 801340c: e841 2300 strex r3, r2, [r1] 8013410: 617b str r3, [r7, #20] return(result); 8013412: 697b ldr r3, [r7, #20] 8013414: 2b00 cmp r3, #0 8013416: d1e3 bne.n 80133e0 /* 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; 8013418: 687b ldr r3, [r7, #4] 801341a: 2202 movs r2, #2 801341c: 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); 801341e: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce 8013422: 4619 mov r1, r3 8013424: 6878 ldr r0, [r7, #4] 8013426: f7f9 f9c9 bl 800c7bc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; 801342a: e023 b.n 8013474 } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) 801342c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013430: f003 0380 and.w r3, r3, #128 @ 0x80 8013434: 2b00 cmp r3, #0 8013436: d009 beq.n 801344c 8013438: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 801343c: f003 0380 and.w r3, r3, #128 @ 0x80 8013440: 2b00 cmp r3, #0 8013442: d003 beq.n 801344c { UART_Transmit_IT(huart); 8013444: 6878 ldr r0, [r7, #4] 8013446: f000 f945 bl 80136d4 return; 801344a: e014 b.n 8013476 } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) 801344c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013450: f003 0340 and.w r3, r3, #64 @ 0x40 8013454: 2b00 cmp r3, #0 8013456: d00e beq.n 8013476 8013458: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 801345c: f003 0340 and.w r3, r3, #64 @ 0x40 8013460: 2b00 cmp r3, #0 8013462: d008 beq.n 8013476 { UART_EndTransmit_IT(huart); 8013464: 6878 ldr r0, [r7, #4] 8013466: f000 f984 bl 8013772 return; 801346a: e004 b.n 8013476 return; 801346c: bf00 nop 801346e: e002 b.n 8013476 return; 8013470: bf00 nop 8013472: e000 b.n 8013476 return; 8013474: bf00 nop } } 8013476: 37e8 adds r7, #232 @ 0xe8 8013478: 46bd mov sp, r7 801347a: bd80 pop {r7, pc} 0801347c : * @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) { 801347c: b480 push {r7} 801347e: b083 sub sp, #12 8013480: af00 add r7, sp, #0 8013482: 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 */ } 8013484: bf00 nop 8013486: 370c adds r7, #12 8013488: 46bd mov sp, r7 801348a: bc80 pop {r7} 801348c: 4770 bx lr 0801348e : * @brief UART Abort Complete callback. * @param huart UART handle. * @retval None */ __weak void HAL_UART_AbortCpltCallback(UART_HandleTypeDef *huart) { 801348e: b480 push {r7} 8013490: b083 sub sp, #12 8013492: af00 add r7, sp, #0 8013494: 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. */ } 8013496: bf00 nop 8013498: 370c adds r7, #12 801349a: 46bd mov sp, r7 801349c: bc80 pop {r7} 801349e: 4770 bx lr 080134a0 : * @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) { 80134a0: b480 push {r7} 80134a2: b083 sub sp, #12 80134a4: af00 add r7, sp, #0 80134a6: 6078 str r0, [r7, #4] return huart->ErrorCode; 80134a8: 687b ldr r3, [r7, #4] 80134aa: 6c5b ldr r3, [r3, #68] @ 0x44 } 80134ac: 4618 mov r0, r3 80134ae: 370c adds r7, #12 80134b0: 46bd mov sp, r7 80134b2: bc80 pop {r7} 80134b4: 4770 bx lr 080134b6 : * @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) { 80134b6: b480 push {r7} 80134b8: b085 sub sp, #20 80134ba: af00 add r7, sp, #0 80134bc: 60f8 str r0, [r7, #12] 80134be: 60b9 str r1, [r7, #8] 80134c0: 4613 mov r3, r2 80134c2: 80fb strh r3, [r7, #6] huart->pRxBuffPtr = pData; 80134c4: 68fb ldr r3, [r7, #12] 80134c6: 68ba ldr r2, [r7, #8] 80134c8: 629a str r2, [r3, #40] @ 0x28 huart->RxXferSize = Size; 80134ca: 68fb ldr r3, [r7, #12] 80134cc: 88fa ldrh r2, [r7, #6] 80134ce: 859a strh r2, [r3, #44] @ 0x2c huart->RxXferCount = Size; 80134d0: 68fb ldr r3, [r7, #12] 80134d2: 88fa ldrh r2, [r7, #6] 80134d4: 85da strh r2, [r3, #46] @ 0x2e huart->ErrorCode = HAL_UART_ERROR_NONE; 80134d6: 68fb ldr r3, [r7, #12] 80134d8: 2200 movs r2, #0 80134da: 645a str r2, [r3, #68] @ 0x44 huart->RxState = HAL_UART_STATE_BUSY_RX; 80134dc: 68fb ldr r3, [r7, #12] 80134de: 2222 movs r2, #34 @ 0x22 80134e0: f883 2042 strb.w r2, [r3, #66] @ 0x42 if (huart->Init.Parity != UART_PARITY_NONE) 80134e4: 68fb ldr r3, [r7, #12] 80134e6: 691b ldr r3, [r3, #16] 80134e8: 2b00 cmp r3, #0 80134ea: d007 beq.n 80134fc { /* Enable the UART Parity Error Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_PE); 80134ec: 68fb ldr r3, [r7, #12] 80134ee: 681b ldr r3, [r3, #0] 80134f0: 68da ldr r2, [r3, #12] 80134f2: 68fb ldr r3, [r7, #12] 80134f4: 681b ldr r3, [r3, #0] 80134f6: f442 7280 orr.w r2, r2, #256 @ 0x100 80134fa: 60da str r2, [r3, #12] } /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_ENABLE_IT(huart, UART_IT_ERR); 80134fc: 68fb ldr r3, [r7, #12] 80134fe: 681b ldr r3, [r3, #0] 8013500: 695a ldr r2, [r3, #20] 8013502: 68fb ldr r3, [r7, #12] 8013504: 681b ldr r3, [r3, #0] 8013506: f042 0201 orr.w r2, r2, #1 801350a: 615a str r2, [r3, #20] /* Enable the UART Data Register not empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE); 801350c: 68fb ldr r3, [r7, #12] 801350e: 681b ldr r3, [r3, #0] 8013510: 68da ldr r2, [r3, #12] 8013512: 68fb ldr r3, [r7, #12] 8013514: 681b ldr r3, [r3, #0] 8013516: f042 0220 orr.w r2, r2, #32 801351a: 60da str r2, [r3, #12] return HAL_OK; 801351c: 2300 movs r3, #0 } 801351e: 4618 mov r0, r3 8013520: 3714 adds r7, #20 8013522: 46bd mov sp, r7 8013524: bc80 pop {r7} 8013526: 4770 bx lr 08013528 : * @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) { 8013528: b480 push {r7} 801352a: b095 sub sp, #84 @ 0x54 801352c: af00 add r7, sp, #0 801352e: 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)); 8013530: 687b ldr r3, [r7, #4] 8013532: 681b ldr r3, [r3, #0] 8013534: 330c adds r3, #12 8013536: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013538: 6b7b ldr r3, [r7, #52] @ 0x34 801353a: e853 3f00 ldrex r3, [r3] 801353e: 633b str r3, [r7, #48] @ 0x30 return(result); 8013540: 6b3b ldr r3, [r7, #48] @ 0x30 8013542: f423 7390 bic.w r3, r3, #288 @ 0x120 8013546: 64fb str r3, [r7, #76] @ 0x4c 8013548: 687b ldr r3, [r7, #4] 801354a: 681b ldr r3, [r3, #0] 801354c: 330c adds r3, #12 801354e: 6cfa ldr r2, [r7, #76] @ 0x4c 8013550: 643a str r2, [r7, #64] @ 0x40 8013552: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013554: 6bf9 ldr r1, [r7, #60] @ 0x3c 8013556: 6c3a ldr r2, [r7, #64] @ 0x40 8013558: e841 2300 strex r3, r2, [r1] 801355c: 63bb str r3, [r7, #56] @ 0x38 return(result); 801355e: 6bbb ldr r3, [r7, #56] @ 0x38 8013560: 2b00 cmp r3, #0 8013562: d1e5 bne.n 8013530 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013564: 687b ldr r3, [r7, #4] 8013566: 681b ldr r3, [r3, #0] 8013568: 3314 adds r3, #20 801356a: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801356c: 6a3b ldr r3, [r7, #32] 801356e: e853 3f00 ldrex r3, [r3] 8013572: 61fb str r3, [r7, #28] return(result); 8013574: 69fb ldr r3, [r7, #28] 8013576: f023 0301 bic.w r3, r3, #1 801357a: 64bb str r3, [r7, #72] @ 0x48 801357c: 687b ldr r3, [r7, #4] 801357e: 681b ldr r3, [r3, #0] 8013580: 3314 adds r3, #20 8013582: 6cba ldr r2, [r7, #72] @ 0x48 8013584: 62fa str r2, [r7, #44] @ 0x2c 8013586: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013588: 6ab9 ldr r1, [r7, #40] @ 0x28 801358a: 6afa ldr r2, [r7, #44] @ 0x2c 801358c: e841 2300 strex r3, r2, [r1] 8013590: 627b str r3, [r7, #36] @ 0x24 return(result); 8013592: 6a7b ldr r3, [r7, #36] @ 0x24 8013594: 2b00 cmp r3, #0 8013596: d1e5 bne.n 8013564 /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013598: 687b ldr r3, [r7, #4] 801359a: 6b1b ldr r3, [r3, #48] @ 0x30 801359c: 2b01 cmp r3, #1 801359e: d119 bne.n 80135d4 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80135a0: 687b ldr r3, [r7, #4] 80135a2: 681b ldr r3, [r3, #0] 80135a4: 330c adds r3, #12 80135a6: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80135a8: 68fb ldr r3, [r7, #12] 80135aa: e853 3f00 ldrex r3, [r3] 80135ae: 60bb str r3, [r7, #8] return(result); 80135b0: 68bb ldr r3, [r7, #8] 80135b2: f023 0310 bic.w r3, r3, #16 80135b6: 647b str r3, [r7, #68] @ 0x44 80135b8: 687b ldr r3, [r7, #4] 80135ba: 681b ldr r3, [r3, #0] 80135bc: 330c adds r3, #12 80135be: 6c7a ldr r2, [r7, #68] @ 0x44 80135c0: 61ba str r2, [r7, #24] 80135c2: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80135c4: 6979 ldr r1, [r7, #20] 80135c6: 69ba ldr r2, [r7, #24] 80135c8: e841 2300 strex r3, r2, [r1] 80135cc: 613b str r3, [r7, #16] return(result); 80135ce: 693b ldr r3, [r7, #16] 80135d0: 2b00 cmp r3, #0 80135d2: d1e5 bne.n 80135a0 } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 80135d4: 687b ldr r3, [r7, #4] 80135d6: 2220 movs r2, #32 80135d8: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80135dc: 687b ldr r3, [r7, #4] 80135de: 2200 movs r2, #0 80135e0: 631a str r2, [r3, #48] @ 0x30 } 80135e2: bf00 nop 80135e4: 3754 adds r7, #84 @ 0x54 80135e6: 46bd mov sp, r7 80135e8: bc80 pop {r7} 80135ea: 4770 bx lr 080135ec : * @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) { 80135ec: b580 push {r7, lr} 80135ee: b084 sub sp, #16 80135f0: af00 add r7, sp, #0 80135f2: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 80135f4: 687b ldr r3, [r7, #4] 80135f6: 6a5b ldr r3, [r3, #36] @ 0x24 80135f8: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; 80135fa: 68fb ldr r3, [r7, #12] 80135fc: 2200 movs r2, #0 80135fe: 85da strh r2, [r3, #46] @ 0x2e huart->TxXferCount = 0x00U; 8013600: 68fb ldr r3, [r7, #12] 8013602: 2200 movs r2, #0 8013604: 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); 8013606: 68f8 ldr r0, [r7, #12] 8013608: f7f8 fa90 bl 800bb2c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 801360c: bf00 nop 801360e: 3710 adds r7, #16 8013610: 46bd mov sp, r7 8013612: bd80 pop {r7, pc} 08013614 : * @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) { 8013614: b580 push {r7, lr} 8013616: b084 sub sp, #16 8013618: af00 add r7, sp, #0 801361a: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 801361c: 687b ldr r3, [r7, #4] 801361e: 6a5b ldr r3, [r3, #36] @ 0x24 8013620: 60fb str r3, [r7, #12] huart->hdmatx->XferAbortCallback = NULL; 8013622: 68fb ldr r3, [r7, #12] 8013624: 6b9b ldr r3, [r3, #56] @ 0x38 8013626: 2200 movs r2, #0 8013628: 635a str r2, [r3, #52] @ 0x34 /* Check if an Abort process is still ongoing */ if (huart->hdmarx != NULL) 801362a: 68fb ldr r3, [r7, #12] 801362c: 6bdb ldr r3, [r3, #60] @ 0x3c 801362e: 2b00 cmp r3, #0 8013630: d004 beq.n 801363c { if (huart->hdmarx->XferAbortCallback != NULL) 8013632: 68fb ldr r3, [r7, #12] 8013634: 6bdb ldr r3, [r3, #60] @ 0x3c 8013636: 6b5b ldr r3, [r3, #52] @ 0x34 8013638: 2b00 cmp r3, #0 801363a: d117 bne.n 801366c return; } } /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ huart->TxXferCount = 0x00U; 801363c: 68fb ldr r3, [r7, #12] 801363e: 2200 movs r2, #0 8013640: 84da strh r2, [r3, #38] @ 0x26 huart->RxXferCount = 0x00U; 8013642: 68fb ldr r3, [r7, #12] 8013644: 2200 movs r2, #0 8013646: 85da strh r2, [r3, #46] @ 0x2e /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8013648: 68fb ldr r3, [r7, #12] 801364a: 2200 movs r2, #0 801364c: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; 801364e: 68fb ldr r3, [r7, #12] 8013650: 2220 movs r2, #32 8013652: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 8013656: 68fb ldr r3, [r7, #12] 8013658: 2220 movs r2, #32 801365a: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 801365e: 68fb ldr r3, [r7, #12] 8013660: 2200 movs r2, #0 8013662: 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); 8013664: 68f8 ldr r0, [r7, #12] 8013666: f7ff ff12 bl 801348e 801366a: e000 b.n 801366e return; 801366c: bf00 nop #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 801366e: 3710 adds r7, #16 8013670: 46bd mov sp, r7 8013672: bd80 pop {r7, pc} 08013674 : * @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) { 8013674: b580 push {r7, lr} 8013676: b084 sub sp, #16 8013678: af00 add r7, sp, #0 801367a: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 801367c: 687b ldr r3, [r7, #4] 801367e: 6a5b ldr r3, [r3, #36] @ 0x24 8013680: 60fb str r3, [r7, #12] huart->hdmarx->XferAbortCallback = NULL; 8013682: 68fb ldr r3, [r7, #12] 8013684: 6bdb ldr r3, [r3, #60] @ 0x3c 8013686: 2200 movs r2, #0 8013688: 635a str r2, [r3, #52] @ 0x34 /* Check if an Abort process is still ongoing */ if (huart->hdmatx != NULL) 801368a: 68fb ldr r3, [r7, #12] 801368c: 6b9b ldr r3, [r3, #56] @ 0x38 801368e: 2b00 cmp r3, #0 8013690: d004 beq.n 801369c { if (huart->hdmatx->XferAbortCallback != NULL) 8013692: 68fb ldr r3, [r7, #12] 8013694: 6b9b ldr r3, [r3, #56] @ 0x38 8013696: 6b5b ldr r3, [r3, #52] @ 0x34 8013698: 2b00 cmp r3, #0 801369a: d117 bne.n 80136cc return; } } /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ huart->TxXferCount = 0x00U; 801369c: 68fb ldr r3, [r7, #12] 801369e: 2200 movs r2, #0 80136a0: 84da strh r2, [r3, #38] @ 0x26 huart->RxXferCount = 0x00U; 80136a2: 68fb ldr r3, [r7, #12] 80136a4: 2200 movs r2, #0 80136a6: 85da strh r2, [r3, #46] @ 0x2e /* Reset ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; 80136a8: 68fb ldr r3, [r7, #12] 80136aa: 2200 movs r2, #0 80136ac: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState and huart->RxState to Ready */ huart->gState = HAL_UART_STATE_READY; 80136ae: 68fb ldr r3, [r7, #12] 80136b0: 2220 movs r2, #32 80136b2: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 80136b6: 68fb ldr r3, [r7, #12] 80136b8: 2220 movs r2, #32 80136ba: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80136be: 68fb ldr r3, [r7, #12] 80136c0: 2200 movs r2, #0 80136c2: 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); 80136c4: 68f8 ldr r0, [r7, #12] 80136c6: f7ff fee2 bl 801348e 80136ca: e000 b.n 80136ce return; 80136cc: bf00 nop #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 80136ce: 3710 adds r7, #16 80136d0: 46bd mov sp, r7 80136d2: bd80 pop {r7, pc} 080136d4 : * @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) { 80136d4: b480 push {r7} 80136d6: b085 sub sp, #20 80136d8: af00 add r7, sp, #0 80136da: 6078 str r0, [r7, #4] const uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) 80136dc: 687b ldr r3, [r7, #4] 80136de: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 80136e2: b2db uxtb r3, r3 80136e4: 2b21 cmp r3, #33 @ 0x21 80136e6: d13e bne.n 8013766 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) 80136e8: 687b ldr r3, [r7, #4] 80136ea: 689b ldr r3, [r3, #8] 80136ec: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 80136f0: d114 bne.n 801371c 80136f2: 687b ldr r3, [r7, #4] 80136f4: 691b ldr r3, [r3, #16] 80136f6: 2b00 cmp r3, #0 80136f8: d110 bne.n 801371c { tmp = (const uint16_t *) huart->pTxBuffPtr; 80136fa: 687b ldr r3, [r7, #4] 80136fc: 6a1b ldr r3, [r3, #32] 80136fe: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); 8013700: 68fb ldr r3, [r7, #12] 8013702: 881b ldrh r3, [r3, #0] 8013704: 461a mov r2, r3 8013706: 687b ldr r3, [r7, #4] 8013708: 681b ldr r3, [r3, #0] 801370a: f3c2 0208 ubfx r2, r2, #0, #9 801370e: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; 8013710: 687b ldr r3, [r7, #4] 8013712: 6a1b ldr r3, [r3, #32] 8013714: 1c9a adds r2, r3, #2 8013716: 687b ldr r3, [r7, #4] 8013718: 621a str r2, [r3, #32] 801371a: e008 b.n 801372e } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); 801371c: 687b ldr r3, [r7, #4] 801371e: 6a1b ldr r3, [r3, #32] 8013720: 1c59 adds r1, r3, #1 8013722: 687a ldr r2, [r7, #4] 8013724: 6211 str r1, [r2, #32] 8013726: 781a ldrb r2, [r3, #0] 8013728: 687b ldr r3, [r7, #4] 801372a: 681b ldr r3, [r3, #0] 801372c: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) 801372e: 687b ldr r3, [r7, #4] 8013730: 8cdb ldrh r3, [r3, #38] @ 0x26 8013732: b29b uxth r3, r3 8013734: 3b01 subs r3, #1 8013736: b29b uxth r3, r3 8013738: 687a ldr r2, [r7, #4] 801373a: 4619 mov r1, r3 801373c: 84d1 strh r1, [r2, #38] @ 0x26 801373e: 2b00 cmp r3, #0 8013740: d10f bne.n 8013762 { /* Disable the UART Transmit Data Register Empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); 8013742: 687b ldr r3, [r7, #4] 8013744: 681b ldr r3, [r3, #0] 8013746: 68da ldr r2, [r3, #12] 8013748: 687b ldr r3, [r7, #4] 801374a: 681b ldr r3, [r3, #0] 801374c: f022 0280 bic.w r2, r2, #128 @ 0x80 8013750: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); 8013752: 687b ldr r3, [r7, #4] 8013754: 681b ldr r3, [r3, #0] 8013756: 68da ldr r2, [r3, #12] 8013758: 687b ldr r3, [r7, #4] 801375a: 681b ldr r3, [r3, #0] 801375c: f042 0240 orr.w r2, r2, #64 @ 0x40 8013760: 60da str r2, [r3, #12] } return HAL_OK; 8013762: 2300 movs r3, #0 8013764: e000 b.n 8013768 } else { return HAL_BUSY; 8013766: 2302 movs r3, #2 } } 8013768: 4618 mov r0, r3 801376a: 3714 adds r7, #20 801376c: 46bd mov sp, r7 801376e: bc80 pop {r7} 8013770: 4770 bx lr 08013772 : * @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) { 8013772: b580 push {r7, lr} 8013774: b082 sub sp, #8 8013776: af00 add r7, sp, #0 8013778: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); 801377a: 687b ldr r3, [r7, #4] 801377c: 681b ldr r3, [r3, #0] 801377e: 68da ldr r2, [r3, #12] 8013780: 687b ldr r3, [r7, #4] 8013782: 681b ldr r3, [r3, #0] 8013784: f022 0240 bic.w r2, r2, #64 @ 0x40 8013788: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; 801378a: 687b ldr r3, [r7, #4] 801378c: 2220 movs r2, #32 801378e: 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); 8013792: 6878 ldr r0, [r7, #4] 8013794: f7f9 f87a bl 800c88c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; 8013798: 2300 movs r3, #0 } 801379a: 4618 mov r0, r3 801379c: 3708 adds r7, #8 801379e: 46bd mov sp, r7 80137a0: bd80 pop {r7, pc} 080137a2 : * @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) { 80137a2: b580 push {r7, lr} 80137a4: b08c sub sp, #48 @ 0x30 80137a6: af00 add r7, sp, #0 80137a8: 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) 80137aa: 687b ldr r3, [r7, #4] 80137ac: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 80137b0: b2db uxtb r3, r3 80137b2: 2b22 cmp r3, #34 @ 0x22 80137b4: f040 80ae bne.w 8013914 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) 80137b8: 687b ldr r3, [r7, #4] 80137ba: 689b ldr r3, [r3, #8] 80137bc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 80137c0: d117 bne.n 80137f2 80137c2: 687b ldr r3, [r7, #4] 80137c4: 691b ldr r3, [r3, #16] 80137c6: 2b00 cmp r3, #0 80137c8: d113 bne.n 80137f2 { pdata8bits = NULL; 80137ca: 2300 movs r3, #0 80137cc: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = (uint16_t *) huart->pRxBuffPtr; 80137ce: 687b ldr r3, [r7, #4] 80137d0: 6a9b ldr r3, [r3, #40] @ 0x28 80137d2: 62bb str r3, [r7, #40] @ 0x28 *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); 80137d4: 687b ldr r3, [r7, #4] 80137d6: 681b ldr r3, [r3, #0] 80137d8: 685b ldr r3, [r3, #4] 80137da: b29b uxth r3, r3 80137dc: f3c3 0308 ubfx r3, r3, #0, #9 80137e0: b29a uxth r2, r3 80137e2: 6abb ldr r3, [r7, #40] @ 0x28 80137e4: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; 80137e6: 687b ldr r3, [r7, #4] 80137e8: 6a9b ldr r3, [r3, #40] @ 0x28 80137ea: 1c9a adds r2, r3, #2 80137ec: 687b ldr r3, [r7, #4] 80137ee: 629a str r2, [r3, #40] @ 0x28 80137f0: e026 b.n 8013840 } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; 80137f2: 687b ldr r3, [r7, #4] 80137f4: 6a9b ldr r3, [r3, #40] @ 0x28 80137f6: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = NULL; 80137f8: 2300 movs r3, #0 80137fa: 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))) 80137fc: 687b ldr r3, [r7, #4] 80137fe: 689b ldr r3, [r3, #8] 8013800: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013804: d007 beq.n 8013816 8013806: 687b ldr r3, [r7, #4] 8013808: 689b ldr r3, [r3, #8] 801380a: 2b00 cmp r3, #0 801380c: d10a bne.n 8013824 801380e: 687b ldr r3, [r7, #4] 8013810: 691b ldr r3, [r3, #16] 8013812: 2b00 cmp r3, #0 8013814: d106 bne.n 8013824 { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); 8013816: 687b ldr r3, [r7, #4] 8013818: 681b ldr r3, [r3, #0] 801381a: 685b ldr r3, [r3, #4] 801381c: b2da uxtb r2, r3 801381e: 6afb ldr r3, [r7, #44] @ 0x2c 8013820: 701a strb r2, [r3, #0] 8013822: e008 b.n 8013836 } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); 8013824: 687b ldr r3, [r7, #4] 8013826: 681b ldr r3, [r3, #0] 8013828: 685b ldr r3, [r3, #4] 801382a: b2db uxtb r3, r3 801382c: f003 037f and.w r3, r3, #127 @ 0x7f 8013830: b2da uxtb r2, r3 8013832: 6afb ldr r3, [r7, #44] @ 0x2c 8013834: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; 8013836: 687b ldr r3, [r7, #4] 8013838: 6a9b ldr r3, [r3, #40] @ 0x28 801383a: 1c5a adds r2, r3, #1 801383c: 687b ldr r3, [r7, #4] 801383e: 629a str r2, [r3, #40] @ 0x28 } if (--huart->RxXferCount == 0U) 8013840: 687b ldr r3, [r7, #4] 8013842: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013844: b29b uxth r3, r3 8013846: 3b01 subs r3, #1 8013848: b29b uxth r3, r3 801384a: 687a ldr r2, [r7, #4] 801384c: 4619 mov r1, r3 801384e: 85d1 strh r1, [r2, #46] @ 0x2e 8013850: 2b00 cmp r3, #0 8013852: d15d bne.n 8013910 { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); 8013854: 687b ldr r3, [r7, #4] 8013856: 681b ldr r3, [r3, #0] 8013858: 68da ldr r2, [r3, #12] 801385a: 687b ldr r3, [r7, #4] 801385c: 681b ldr r3, [r3, #0] 801385e: f022 0220 bic.w r2, r2, #32 8013862: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); 8013864: 687b ldr r3, [r7, #4] 8013866: 681b ldr r3, [r3, #0] 8013868: 68da ldr r2, [r3, #12] 801386a: 687b ldr r3, [r7, #4] 801386c: 681b ldr r3, [r3, #0] 801386e: f422 7280 bic.w r2, r2, #256 @ 0x100 8013872: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); 8013874: 687b ldr r3, [r7, #4] 8013876: 681b ldr r3, [r3, #0] 8013878: 695a ldr r2, [r3, #20] 801387a: 687b ldr r3, [r7, #4] 801387c: 681b ldr r3, [r3, #0] 801387e: f022 0201 bic.w r2, r2, #1 8013882: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 8013884: 687b ldr r3, [r7, #4] 8013886: 2220 movs r2, #32 8013888: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; 801388c: 687b ldr r3, [r7, #4] 801388e: 2200 movs r2, #0 8013890: 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) 8013892: 687b ldr r3, [r7, #4] 8013894: 6b1b ldr r3, [r3, #48] @ 0x30 8013896: 2b01 cmp r3, #1 8013898: d135 bne.n 8013906 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 801389a: 687b ldr r3, [r7, #4] 801389c: 2200 movs r2, #0 801389e: 631a str r2, [r3, #48] @ 0x30 /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80138a0: 687b ldr r3, [r7, #4] 80138a2: 681b ldr r3, [r3, #0] 80138a4: 330c adds r3, #12 80138a6: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80138a8: 697b ldr r3, [r7, #20] 80138aa: e853 3f00 ldrex r3, [r3] 80138ae: 613b str r3, [r7, #16] return(result); 80138b0: 693b ldr r3, [r7, #16] 80138b2: f023 0310 bic.w r3, r3, #16 80138b6: 627b str r3, [r7, #36] @ 0x24 80138b8: 687b ldr r3, [r7, #4] 80138ba: 681b ldr r3, [r3, #0] 80138bc: 330c adds r3, #12 80138be: 6a7a ldr r2, [r7, #36] @ 0x24 80138c0: 623a str r2, [r7, #32] 80138c2: 61fb str r3, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80138c4: 69f9 ldr r1, [r7, #28] 80138c6: 6a3a ldr r2, [r7, #32] 80138c8: e841 2300 strex r3, r2, [r1] 80138cc: 61bb str r3, [r7, #24] return(result); 80138ce: 69bb ldr r3, [r7, #24] 80138d0: 2b00 cmp r3, #0 80138d2: d1e5 bne.n 80138a0 /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) 80138d4: 687b ldr r3, [r7, #4] 80138d6: 681b ldr r3, [r3, #0] 80138d8: 681b ldr r3, [r3, #0] 80138da: f003 0310 and.w r3, r3, #16 80138de: 2b10 cmp r3, #16 80138e0: d10a bne.n 80138f8 { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); 80138e2: 2300 movs r3, #0 80138e4: 60fb str r3, [r7, #12] 80138e6: 687b ldr r3, [r7, #4] 80138e8: 681b ldr r3, [r3, #0] 80138ea: 681b ldr r3, [r3, #0] 80138ec: 60fb str r3, [r7, #12] 80138ee: 687b ldr r3, [r7, #4] 80138f0: 681b ldr r3, [r3, #0] 80138f2: 685b ldr r3, [r3, #4] 80138f4: 60fb str r3, [r7, #12] 80138f6: 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); 80138f8: 687b ldr r3, [r7, #4] 80138fa: 8d9b ldrh r3, [r3, #44] @ 0x2c 80138fc: 4619 mov r1, r3 80138fe: 6878 ldr r0, [r7, #4] 8013900: f7f8 ff5c bl 800c7bc 8013904: e002 b.n 801390c #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); 8013906: 6878 ldr r0, [r7, #4] 8013908: f7ff fdb8 bl 801347c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; 801390c: 2300 movs r3, #0 801390e: e002 b.n 8013916 } return HAL_OK; 8013910: 2300 movs r3, #0 8013912: e000 b.n 8013916 } else { return HAL_BUSY; 8013914: 2302 movs r3, #2 } } 8013916: 4618 mov r0, r3 8013918: 3730 adds r7, #48 @ 0x30 801391a: 46bd mov sp, r7 801391c: bd80 pop {r7, pc} ... 08013920 : * @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) { 8013920: b580 push {r7, lr} 8013922: b084 sub sp, #16 8013924: af00 add r7, sp, #0 8013926: 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); 8013928: 687b ldr r3, [r7, #4] 801392a: 681b ldr r3, [r3, #0] 801392c: 691b ldr r3, [r3, #16] 801392e: f423 5140 bic.w r1, r3, #12288 @ 0x3000 8013932: 687b ldr r3, [r7, #4] 8013934: 68da ldr r2, [r3, #12] 8013936: 687b ldr r3, [r7, #4] 8013938: 681b ldr r3, [r3, #0] 801393a: 430a orrs r2, r1 801393c: 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; 801393e: 687b ldr r3, [r7, #4] 8013940: 689a ldr r2, [r3, #8] 8013942: 687b ldr r3, [r7, #4] 8013944: 691b ldr r3, [r3, #16] 8013946: 431a orrs r2, r3 8013948: 687b ldr r3, [r7, #4] 801394a: 695b ldr r3, [r3, #20] 801394c: 4313 orrs r3, r2 801394e: 60bb str r3, [r7, #8] MODIFY_REG(huart->Instance->CR1, 8013950: 687b ldr r3, [r7, #4] 8013952: 681b ldr r3, [r3, #0] 8013954: 68db ldr r3, [r3, #12] 8013956: f423 53b0 bic.w r3, r3, #5632 @ 0x1600 801395a: f023 030c bic.w r3, r3, #12 801395e: 687a ldr r2, [r7, #4] 8013960: 6812 ldr r2, [r2, #0] 8013962: 68b9 ldr r1, [r7, #8] 8013964: 430b orrs r3, r1 8013966: 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); 8013968: 687b ldr r3, [r7, #4] 801396a: 681b ldr r3, [r3, #0] 801396c: 695b ldr r3, [r3, #20] 801396e: f423 7140 bic.w r1, r3, #768 @ 0x300 8013972: 687b ldr r3, [r7, #4] 8013974: 699a ldr r2, [r3, #24] 8013976: 687b ldr r3, [r7, #4] 8013978: 681b ldr r3, [r3, #0] 801397a: 430a orrs r2, r1 801397c: 615a str r2, [r3, #20] if(huart->Instance == USART1) 801397e: 687b ldr r3, [r7, #4] 8013980: 681b ldr r3, [r3, #0] 8013982: 4a2c ldr r2, [pc, #176] @ (8013a34 ) 8013984: 4293 cmp r3, r2 8013986: d103 bne.n 8013990 { pclk = HAL_RCC_GetPCLK2Freq(); 8013988: f7fd fc78 bl 801127c 801398c: 60f8 str r0, [r7, #12] 801398e: e002 b.n 8013996 } else { pclk = HAL_RCC_GetPCLK1Freq(); 8013990: f7fd fc60 bl 8011254 8013994: 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); 8013996: 68fa ldr r2, [r7, #12] 8013998: 4613 mov r3, r2 801399a: 009b lsls r3, r3, #2 801399c: 4413 add r3, r2 801399e: 009a lsls r2, r3, #2 80139a0: 441a add r2, r3 80139a2: 687b ldr r3, [r7, #4] 80139a4: 685b ldr r3, [r3, #4] 80139a6: 009b lsls r3, r3, #2 80139a8: fbb2 f3f3 udiv r3, r2, r3 80139ac: 4a22 ldr r2, [pc, #136] @ (8013a38 ) 80139ae: fba2 2303 umull r2, r3, r2, r3 80139b2: 095b lsrs r3, r3, #5 80139b4: 0119 lsls r1, r3, #4 80139b6: 68fa ldr r2, [r7, #12] 80139b8: 4613 mov r3, r2 80139ba: 009b lsls r3, r3, #2 80139bc: 4413 add r3, r2 80139be: 009a lsls r2, r3, #2 80139c0: 441a add r2, r3 80139c2: 687b ldr r3, [r7, #4] 80139c4: 685b ldr r3, [r3, #4] 80139c6: 009b lsls r3, r3, #2 80139c8: fbb2 f2f3 udiv r2, r2, r3 80139cc: 4b1a ldr r3, [pc, #104] @ (8013a38 ) 80139ce: fba3 0302 umull r0, r3, r3, r2 80139d2: 095b lsrs r3, r3, #5 80139d4: 2064 movs r0, #100 @ 0x64 80139d6: fb00 f303 mul.w r3, r0, r3 80139da: 1ad3 subs r3, r2, r3 80139dc: 011b lsls r3, r3, #4 80139de: 3332 adds r3, #50 @ 0x32 80139e0: 4a15 ldr r2, [pc, #84] @ (8013a38 ) 80139e2: fba2 2303 umull r2, r3, r2, r3 80139e6: 095b lsrs r3, r3, #5 80139e8: f003 03f0 and.w r3, r3, #240 @ 0xf0 80139ec: 4419 add r1, r3 80139ee: 68fa ldr r2, [r7, #12] 80139f0: 4613 mov r3, r2 80139f2: 009b lsls r3, r3, #2 80139f4: 4413 add r3, r2 80139f6: 009a lsls r2, r3, #2 80139f8: 441a add r2, r3 80139fa: 687b ldr r3, [r7, #4] 80139fc: 685b ldr r3, [r3, #4] 80139fe: 009b lsls r3, r3, #2 8013a00: fbb2 f2f3 udiv r2, r2, r3 8013a04: 4b0c ldr r3, [pc, #48] @ (8013a38 ) 8013a06: fba3 0302 umull r0, r3, r3, r2 8013a0a: 095b lsrs r3, r3, #5 8013a0c: 2064 movs r0, #100 @ 0x64 8013a0e: fb00 f303 mul.w r3, r0, r3 8013a12: 1ad3 subs r3, r2, r3 8013a14: 011b lsls r3, r3, #4 8013a16: 3332 adds r3, #50 @ 0x32 8013a18: 4a07 ldr r2, [pc, #28] @ (8013a38 ) 8013a1a: fba2 2303 umull r2, r3, r2, r3 8013a1e: 095b lsrs r3, r3, #5 8013a20: f003 020f and.w r2, r3, #15 8013a24: 687b ldr r3, [r7, #4] 8013a26: 681b ldr r3, [r3, #0] 8013a28: 440a add r2, r1 8013a2a: 609a str r2, [r3, #8] #endif /* USART_CR1_OVER8 */ } 8013a2c: bf00 nop 8013a2e: 3710 adds r7, #16 8013a30: 46bd mov sp, r7 8013a32: bd80 pop {r7, pc} 8013a34: 40013800 .word 0x40013800 8013a38: 51eb851f .word 0x51eb851f 08013a3c <__cvt>: 8013a3c: 2b00 cmp r3, #0 8013a3e: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8013a42: 461d mov r5, r3 8013a44: bfbb ittet lt 8013a46: f103 4300 addlt.w r3, r3, #2147483648 @ 0x80000000 8013a4a: 461d movlt r5, r3 8013a4c: 2300 movge r3, #0 8013a4e: 232d movlt r3, #45 @ 0x2d 8013a50: b088 sub sp, #32 8013a52: 4614 mov r4, r2 8013a54: bfb8 it lt 8013a56: 4614 movlt r4, r2 8013a58: 9a12 ldr r2, [sp, #72] @ 0x48 8013a5a: 9e10 ldr r6, [sp, #64] @ 0x40 8013a5c: 7013 strb r3, [r2, #0] 8013a5e: 9b14 ldr r3, [sp, #80] @ 0x50 8013a60: f8dd a04c ldr.w sl, [sp, #76] @ 0x4c 8013a64: f023 0820 bic.w r8, r3, #32 8013a68: f1b8 0f46 cmp.w r8, #70 @ 0x46 8013a6c: d005 beq.n 8013a7a <__cvt+0x3e> 8013a6e: f1b8 0f45 cmp.w r8, #69 @ 0x45 8013a72: d100 bne.n 8013a76 <__cvt+0x3a> 8013a74: 3601 adds r6, #1 8013a76: 2302 movs r3, #2 8013a78: e000 b.n 8013a7c <__cvt+0x40> 8013a7a: 2303 movs r3, #3 8013a7c: aa07 add r2, sp, #28 8013a7e: 9204 str r2, [sp, #16] 8013a80: aa06 add r2, sp, #24 8013a82: e9cd a202 strd sl, r2, [sp, #8] 8013a86: e9cd 3600 strd r3, r6, [sp] 8013a8a: 4622 mov r2, r4 8013a8c: 462b mov r3, r5 8013a8e: f000 fe3b bl 8014708 <_dtoa_r> 8013a92: f1b8 0f47 cmp.w r8, #71 @ 0x47 8013a96: 4607 mov r7, r0 8013a98: d119 bne.n 8013ace <__cvt+0x92> 8013a9a: 9b11 ldr r3, [sp, #68] @ 0x44 8013a9c: 07db lsls r3, r3, #31 8013a9e: d50e bpl.n 8013abe <__cvt+0x82> 8013aa0: eb00 0906 add.w r9, r0, r6 8013aa4: 2200 movs r2, #0 8013aa6: 2300 movs r3, #0 8013aa8: 4620 mov r0, r4 8013aaa: 4629 mov r1, r5 8013aac: f7f4 ffe8 bl 8008a80 <__aeabi_dcmpeq> 8013ab0: b108 cbz r0, 8013ab6 <__cvt+0x7a> 8013ab2: f8cd 901c str.w r9, [sp, #28] 8013ab6: 2230 movs r2, #48 @ 0x30 8013ab8: 9b07 ldr r3, [sp, #28] 8013aba: 454b cmp r3, r9 8013abc: d31e bcc.n 8013afc <__cvt+0xc0> 8013abe: 4638 mov r0, r7 8013ac0: 9b07 ldr r3, [sp, #28] 8013ac2: 9a15 ldr r2, [sp, #84] @ 0x54 8013ac4: 1bdb subs r3, r3, r7 8013ac6: 6013 str r3, [r2, #0] 8013ac8: b008 add sp, #32 8013aca: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8013ace: f1b8 0f46 cmp.w r8, #70 @ 0x46 8013ad2: eb00 0906 add.w r9, r0, r6 8013ad6: d1e5 bne.n 8013aa4 <__cvt+0x68> 8013ad8: 7803 ldrb r3, [r0, #0] 8013ada: 2b30 cmp r3, #48 @ 0x30 8013adc: d10a bne.n 8013af4 <__cvt+0xb8> 8013ade: 2200 movs r2, #0 8013ae0: 2300 movs r3, #0 8013ae2: 4620 mov r0, r4 8013ae4: 4629 mov r1, r5 8013ae6: f7f4 ffcb bl 8008a80 <__aeabi_dcmpeq> 8013aea: b918 cbnz r0, 8013af4 <__cvt+0xb8> 8013aec: f1c6 0601 rsb r6, r6, #1 8013af0: f8ca 6000 str.w r6, [sl] 8013af4: f8da 3000 ldr.w r3, [sl] 8013af8: 4499 add r9, r3 8013afa: e7d3 b.n 8013aa4 <__cvt+0x68> 8013afc: 1c59 adds r1, r3, #1 8013afe: 9107 str r1, [sp, #28] 8013b00: 701a strb r2, [r3, #0] 8013b02: e7d9 b.n 8013ab8 <__cvt+0x7c> 08013b04 <__exponent>: 8013b04: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8013b06: 2900 cmp r1, #0 8013b08: bfb6 itet lt 8013b0a: 232d movlt r3, #45 @ 0x2d 8013b0c: 232b movge r3, #43 @ 0x2b 8013b0e: 4249 neglt r1, r1 8013b10: 2909 cmp r1, #9 8013b12: 7002 strb r2, [r0, #0] 8013b14: 7043 strb r3, [r0, #1] 8013b16: dd29 ble.n 8013b6c <__exponent+0x68> 8013b18: f10d 0307 add.w r3, sp, #7 8013b1c: 461d mov r5, r3 8013b1e: 270a movs r7, #10 8013b20: fbb1 f6f7 udiv r6, r1, r7 8013b24: 461a mov r2, r3 8013b26: fb07 1416 mls r4, r7, r6, r1 8013b2a: 3430 adds r4, #48 @ 0x30 8013b2c: f802 4c01 strb.w r4, [r2, #-1] 8013b30: 460c mov r4, r1 8013b32: 2c63 cmp r4, #99 @ 0x63 8013b34: 4631 mov r1, r6 8013b36: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff 8013b3a: dcf1 bgt.n 8013b20 <__exponent+0x1c> 8013b3c: 3130 adds r1, #48 @ 0x30 8013b3e: 1e94 subs r4, r2, #2 8013b40: f803 1c01 strb.w r1, [r3, #-1] 8013b44: 4623 mov r3, r4 8013b46: 1c41 adds r1, r0, #1 8013b48: 42ab cmp r3, r5 8013b4a: d30a bcc.n 8013b62 <__exponent+0x5e> 8013b4c: f10d 0309 add.w r3, sp, #9 8013b50: 1a9b subs r3, r3, r2 8013b52: 42ac cmp r4, r5 8013b54: bf88 it hi 8013b56: 2300 movhi r3, #0 8013b58: 3302 adds r3, #2 8013b5a: 4403 add r3, r0 8013b5c: 1a18 subs r0, r3, r0 8013b5e: b003 add sp, #12 8013b60: bdf0 pop {r4, r5, r6, r7, pc} 8013b62: f813 6b01 ldrb.w r6, [r3], #1 8013b66: f801 6f01 strb.w r6, [r1, #1]! 8013b6a: e7ed b.n 8013b48 <__exponent+0x44> 8013b6c: 2330 movs r3, #48 @ 0x30 8013b6e: 3130 adds r1, #48 @ 0x30 8013b70: 7083 strb r3, [r0, #2] 8013b72: 70c1 strb r1, [r0, #3] 8013b74: 1d03 adds r3, r0, #4 8013b76: e7f1 b.n 8013b5c <__exponent+0x58> 08013b78 <_printf_float>: 8013b78: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8013b7c: b091 sub sp, #68 @ 0x44 8013b7e: 460c mov r4, r1 8013b80: f8dd 8068 ldr.w r8, [sp, #104] @ 0x68 8013b84: 4616 mov r6, r2 8013b86: 461f mov r7, r3 8013b88: 4605 mov r5, r0 8013b8a: f000 fcf7 bl 801457c <_localeconv_r> 8013b8e: 6803 ldr r3, [r0, #0] 8013b90: 4618 mov r0, r3 8013b92: 9308 str r3, [sp, #32] 8013b94: f7f4 fb48 bl 8008228 8013b98: 2300 movs r3, #0 8013b9a: 930e str r3, [sp, #56] @ 0x38 8013b9c: f8d8 3000 ldr.w r3, [r8] 8013ba0: 9009 str r0, [sp, #36] @ 0x24 8013ba2: 3307 adds r3, #7 8013ba4: f023 0307 bic.w r3, r3, #7 8013ba8: f103 0208 add.w r2, r3, #8 8013bac: f894 a018 ldrb.w sl, [r4, #24] 8013bb0: f8d4 b000 ldr.w fp, [r4] 8013bb4: f8c8 2000 str.w r2, [r8] 8013bb8: e9d3 8900 ldrd r8, r9, [r3] 8013bbc: f029 4300 bic.w r3, r9, #2147483648 @ 0x80000000 8013bc0: 930b str r3, [sp, #44] @ 0x2c 8013bc2: f8cd 8028 str.w r8, [sp, #40] @ 0x28 8013bc6: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8013bca: e9dd 010a ldrd r0, r1, [sp, #40] @ 0x28 8013bce: e9c4 8912 strd r8, r9, [r4, #72] @ 0x48 8013bd2: 4b9c ldr r3, [pc, #624] @ (8013e44 <_printf_float+0x2cc>) 8013bd4: f7f4 ff86 bl 8008ae4 <__aeabi_dcmpun> 8013bd8: bb70 cbnz r0, 8013c38 <_printf_float+0xc0> 8013bda: e9dd 010a ldrd r0, r1, [sp, #40] @ 0x28 8013bde: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8013be2: 4b98 ldr r3, [pc, #608] @ (8013e44 <_printf_float+0x2cc>) 8013be4: f7f4 ff60 bl 8008aa8 <__aeabi_dcmple> 8013be8: bb30 cbnz r0, 8013c38 <_printf_float+0xc0> 8013bea: 2200 movs r2, #0 8013bec: 2300 movs r3, #0 8013bee: 4640 mov r0, r8 8013bf0: 4649 mov r1, r9 8013bf2: f7f4 ff4f bl 8008a94 <__aeabi_dcmplt> 8013bf6: b110 cbz r0, 8013bfe <_printf_float+0x86> 8013bf8: 232d movs r3, #45 @ 0x2d 8013bfa: f884 3043 strb.w r3, [r4, #67] @ 0x43 8013bfe: 4a92 ldr r2, [pc, #584] @ (8013e48 <_printf_float+0x2d0>) 8013c00: 4b92 ldr r3, [pc, #584] @ (8013e4c <_printf_float+0x2d4>) 8013c02: f1ba 0f47 cmp.w sl, #71 @ 0x47 8013c06: bf8c ite hi 8013c08: 4690 movhi r8, r2 8013c0a: 4698 movls r8, r3 8013c0c: 2303 movs r3, #3 8013c0e: f04f 0900 mov.w r9, #0 8013c12: 6123 str r3, [r4, #16] 8013c14: f02b 0304 bic.w r3, fp, #4 8013c18: 6023 str r3, [r4, #0] 8013c1a: 4633 mov r3, r6 8013c1c: 4621 mov r1, r4 8013c1e: 4628 mov r0, r5 8013c20: 9700 str r7, [sp, #0] 8013c22: aa0f add r2, sp, #60 @ 0x3c 8013c24: f000 f9d4 bl 8013fd0 <_printf_common> 8013c28: 3001 adds r0, #1 8013c2a: f040 8090 bne.w 8013d4e <_printf_float+0x1d6> 8013c2e: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8013c32: b011 add sp, #68 @ 0x44 8013c34: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8013c38: 4642 mov r2, r8 8013c3a: 464b mov r3, r9 8013c3c: 4640 mov r0, r8 8013c3e: 4649 mov r1, r9 8013c40: f7f4 ff50 bl 8008ae4 <__aeabi_dcmpun> 8013c44: b148 cbz r0, 8013c5a <_printf_float+0xe2> 8013c46: 464b mov r3, r9 8013c48: 2b00 cmp r3, #0 8013c4a: bfb8 it lt 8013c4c: 232d movlt r3, #45 @ 0x2d 8013c4e: 4a80 ldr r2, [pc, #512] @ (8013e50 <_printf_float+0x2d8>) 8013c50: bfb8 it lt 8013c52: f884 3043 strblt.w r3, [r4, #67] @ 0x43 8013c56: 4b7f ldr r3, [pc, #508] @ (8013e54 <_printf_float+0x2dc>) 8013c58: e7d3 b.n 8013c02 <_printf_float+0x8a> 8013c5a: 6863 ldr r3, [r4, #4] 8013c5c: f00a 01df and.w r1, sl, #223 @ 0xdf 8013c60: 1c5a adds r2, r3, #1 8013c62: d13f bne.n 8013ce4 <_printf_float+0x16c> 8013c64: 2306 movs r3, #6 8013c66: 6063 str r3, [r4, #4] 8013c68: 2200 movs r2, #0 8013c6a: f44b 6380 orr.w r3, fp, #1024 @ 0x400 8013c6e: 6023 str r3, [r4, #0] 8013c70: 9206 str r2, [sp, #24] 8013c72: aa0e add r2, sp, #56 @ 0x38 8013c74: e9cd a204 strd sl, r2, [sp, #16] 8013c78: aa0d add r2, sp, #52 @ 0x34 8013c7a: 9203 str r2, [sp, #12] 8013c7c: f10d 0233 add.w r2, sp, #51 @ 0x33 8013c80: e9cd 3201 strd r3, r2, [sp, #4] 8013c84: 6863 ldr r3, [r4, #4] 8013c86: 4642 mov r2, r8 8013c88: 9300 str r3, [sp, #0] 8013c8a: 4628 mov r0, r5 8013c8c: 464b mov r3, r9 8013c8e: 910a str r1, [sp, #40] @ 0x28 8013c90: f7ff fed4 bl 8013a3c <__cvt> 8013c94: 990a ldr r1, [sp, #40] @ 0x28 8013c96: 4680 mov r8, r0 8013c98: 2947 cmp r1, #71 @ 0x47 8013c9a: 990d ldr r1, [sp, #52] @ 0x34 8013c9c: d128 bne.n 8013cf0 <_printf_float+0x178> 8013c9e: 1cc8 adds r0, r1, #3 8013ca0: db02 blt.n 8013ca8 <_printf_float+0x130> 8013ca2: 6863 ldr r3, [r4, #4] 8013ca4: 4299 cmp r1, r3 8013ca6: dd40 ble.n 8013d2a <_printf_float+0x1b2> 8013ca8: f1aa 0a02 sub.w sl, sl, #2 8013cac: fa5f fa8a uxtb.w sl, sl 8013cb0: 4652 mov r2, sl 8013cb2: 3901 subs r1, #1 8013cb4: f104 0050 add.w r0, r4, #80 @ 0x50 8013cb8: 910d str r1, [sp, #52] @ 0x34 8013cba: f7ff ff23 bl 8013b04 <__exponent> 8013cbe: 9a0e ldr r2, [sp, #56] @ 0x38 8013cc0: 4681 mov r9, r0 8013cc2: 1813 adds r3, r2, r0 8013cc4: 2a01 cmp r2, #1 8013cc6: 6123 str r3, [r4, #16] 8013cc8: dc02 bgt.n 8013cd0 <_printf_float+0x158> 8013cca: 6822 ldr r2, [r4, #0] 8013ccc: 07d2 lsls r2, r2, #31 8013cce: d501 bpl.n 8013cd4 <_printf_float+0x15c> 8013cd0: 3301 adds r3, #1 8013cd2: 6123 str r3, [r4, #16] 8013cd4: f89d 3033 ldrb.w r3, [sp, #51] @ 0x33 8013cd8: 2b00 cmp r3, #0 8013cda: d09e beq.n 8013c1a <_printf_float+0xa2> 8013cdc: 232d movs r3, #45 @ 0x2d 8013cde: f884 3043 strb.w r3, [r4, #67] @ 0x43 8013ce2: e79a b.n 8013c1a <_printf_float+0xa2> 8013ce4: 2947 cmp r1, #71 @ 0x47 8013ce6: d1bf bne.n 8013c68 <_printf_float+0xf0> 8013ce8: 2b00 cmp r3, #0 8013cea: d1bd bne.n 8013c68 <_printf_float+0xf0> 8013cec: 2301 movs r3, #1 8013cee: e7ba b.n 8013c66 <_printf_float+0xee> 8013cf0: f1ba 0f65 cmp.w sl, #101 @ 0x65 8013cf4: d9dc bls.n 8013cb0 <_printf_float+0x138> 8013cf6: f1ba 0f66 cmp.w sl, #102 @ 0x66 8013cfa: d118 bne.n 8013d2e <_printf_float+0x1b6> 8013cfc: 2900 cmp r1, #0 8013cfe: 6863 ldr r3, [r4, #4] 8013d00: dd0b ble.n 8013d1a <_printf_float+0x1a2> 8013d02: 6121 str r1, [r4, #16] 8013d04: b913 cbnz r3, 8013d0c <_printf_float+0x194> 8013d06: 6822 ldr r2, [r4, #0] 8013d08: 07d0 lsls r0, r2, #31 8013d0a: d502 bpl.n 8013d12 <_printf_float+0x19a> 8013d0c: 3301 adds r3, #1 8013d0e: 440b add r3, r1 8013d10: 6123 str r3, [r4, #16] 8013d12: f04f 0900 mov.w r9, #0 8013d16: 65a1 str r1, [r4, #88] @ 0x58 8013d18: e7dc b.n 8013cd4 <_printf_float+0x15c> 8013d1a: b913 cbnz r3, 8013d22 <_printf_float+0x1aa> 8013d1c: 6822 ldr r2, [r4, #0] 8013d1e: 07d2 lsls r2, r2, #31 8013d20: d501 bpl.n 8013d26 <_printf_float+0x1ae> 8013d22: 3302 adds r3, #2 8013d24: e7f4 b.n 8013d10 <_printf_float+0x198> 8013d26: 2301 movs r3, #1 8013d28: e7f2 b.n 8013d10 <_printf_float+0x198> 8013d2a: f04f 0a67 mov.w sl, #103 @ 0x67 8013d2e: 9b0e ldr r3, [sp, #56] @ 0x38 8013d30: 4299 cmp r1, r3 8013d32: db05 blt.n 8013d40 <_printf_float+0x1c8> 8013d34: 6823 ldr r3, [r4, #0] 8013d36: 6121 str r1, [r4, #16] 8013d38: 07d8 lsls r0, r3, #31 8013d3a: d5ea bpl.n 8013d12 <_printf_float+0x19a> 8013d3c: 1c4b adds r3, r1, #1 8013d3e: e7e7 b.n 8013d10 <_printf_float+0x198> 8013d40: 2900 cmp r1, #0 8013d42: bfcc ite gt 8013d44: 2201 movgt r2, #1 8013d46: f1c1 0202 rsble r2, r1, #2 8013d4a: 4413 add r3, r2 8013d4c: e7e0 b.n 8013d10 <_printf_float+0x198> 8013d4e: 6823 ldr r3, [r4, #0] 8013d50: 055a lsls r2, r3, #21 8013d52: d407 bmi.n 8013d64 <_printf_float+0x1ec> 8013d54: 6923 ldr r3, [r4, #16] 8013d56: 4642 mov r2, r8 8013d58: 4631 mov r1, r6 8013d5a: 4628 mov r0, r5 8013d5c: 47b8 blx r7 8013d5e: 3001 adds r0, #1 8013d60: d12b bne.n 8013dba <_printf_float+0x242> 8013d62: e764 b.n 8013c2e <_printf_float+0xb6> 8013d64: f1ba 0f65 cmp.w sl, #101 @ 0x65 8013d68: f240 80dc bls.w 8013f24 <_printf_float+0x3ac> 8013d6c: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48 8013d70: 2200 movs r2, #0 8013d72: 2300 movs r3, #0 8013d74: f7f4 fe84 bl 8008a80 <__aeabi_dcmpeq> 8013d78: 2800 cmp r0, #0 8013d7a: d033 beq.n 8013de4 <_printf_float+0x26c> 8013d7c: 2301 movs r3, #1 8013d7e: 4631 mov r1, r6 8013d80: 4628 mov r0, r5 8013d82: 4a35 ldr r2, [pc, #212] @ (8013e58 <_printf_float+0x2e0>) 8013d84: 47b8 blx r7 8013d86: 3001 adds r0, #1 8013d88: f43f af51 beq.w 8013c2e <_printf_float+0xb6> 8013d8c: e9dd 380d ldrd r3, r8, [sp, #52] @ 0x34 8013d90: 4543 cmp r3, r8 8013d92: db02 blt.n 8013d9a <_printf_float+0x222> 8013d94: 6823 ldr r3, [r4, #0] 8013d96: 07d8 lsls r0, r3, #31 8013d98: d50f bpl.n 8013dba <_printf_float+0x242> 8013d9a: e9dd 2308 ldrd r2, r3, [sp, #32] 8013d9e: 4631 mov r1, r6 8013da0: 4628 mov r0, r5 8013da2: 47b8 blx r7 8013da4: 3001 adds r0, #1 8013da6: f43f af42 beq.w 8013c2e <_printf_float+0xb6> 8013daa: f04f 0900 mov.w r9, #0 8013dae: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff 8013db2: f104 0a1a add.w sl, r4, #26 8013db6: 45c8 cmp r8, r9 8013db8: dc09 bgt.n 8013dce <_printf_float+0x256> 8013dba: 6823 ldr r3, [r4, #0] 8013dbc: 079b lsls r3, r3, #30 8013dbe: f100 8102 bmi.w 8013fc6 <_printf_float+0x44e> 8013dc2: 68e0 ldr r0, [r4, #12] 8013dc4: 9b0f ldr r3, [sp, #60] @ 0x3c 8013dc6: 4298 cmp r0, r3 8013dc8: bfb8 it lt 8013dca: 4618 movlt r0, r3 8013dcc: e731 b.n 8013c32 <_printf_float+0xba> 8013dce: 2301 movs r3, #1 8013dd0: 4652 mov r2, sl 8013dd2: 4631 mov r1, r6 8013dd4: 4628 mov r0, r5 8013dd6: 47b8 blx r7 8013dd8: 3001 adds r0, #1 8013dda: f43f af28 beq.w 8013c2e <_printf_float+0xb6> 8013dde: f109 0901 add.w r9, r9, #1 8013de2: e7e8 b.n 8013db6 <_printf_float+0x23e> 8013de4: 9b0d ldr r3, [sp, #52] @ 0x34 8013de6: 2b00 cmp r3, #0 8013de8: dc38 bgt.n 8013e5c <_printf_float+0x2e4> 8013dea: 2301 movs r3, #1 8013dec: 4631 mov r1, r6 8013dee: 4628 mov r0, r5 8013df0: 4a19 ldr r2, [pc, #100] @ (8013e58 <_printf_float+0x2e0>) 8013df2: 47b8 blx r7 8013df4: 3001 adds r0, #1 8013df6: f43f af1a beq.w 8013c2e <_printf_float+0xb6> 8013dfa: e9dd 390d ldrd r3, r9, [sp, #52] @ 0x34 8013dfe: ea59 0303 orrs.w r3, r9, r3 8013e02: d102 bne.n 8013e0a <_printf_float+0x292> 8013e04: 6823 ldr r3, [r4, #0] 8013e06: 07d9 lsls r1, r3, #31 8013e08: d5d7 bpl.n 8013dba <_printf_float+0x242> 8013e0a: e9dd 2308 ldrd r2, r3, [sp, #32] 8013e0e: 4631 mov r1, r6 8013e10: 4628 mov r0, r5 8013e12: 47b8 blx r7 8013e14: 3001 adds r0, #1 8013e16: f43f af0a beq.w 8013c2e <_printf_float+0xb6> 8013e1a: f04f 0a00 mov.w sl, #0 8013e1e: f104 0b1a add.w fp, r4, #26 8013e22: 9b0d ldr r3, [sp, #52] @ 0x34 8013e24: 425b negs r3, r3 8013e26: 4553 cmp r3, sl 8013e28: dc01 bgt.n 8013e2e <_printf_float+0x2b6> 8013e2a: 464b mov r3, r9 8013e2c: e793 b.n 8013d56 <_printf_float+0x1de> 8013e2e: 2301 movs r3, #1 8013e30: 465a mov r2, fp 8013e32: 4631 mov r1, r6 8013e34: 4628 mov r0, r5 8013e36: 47b8 blx r7 8013e38: 3001 adds r0, #1 8013e3a: f43f aef8 beq.w 8013c2e <_printf_float+0xb6> 8013e3e: f10a 0a01 add.w sl, sl, #1 8013e42: e7ee b.n 8013e22 <_printf_float+0x2aa> 8013e44: 7fefffff .word 0x7fefffff 8013e48: 08017028 .word 0x08017028 8013e4c: 08017024 .word 0x08017024 8013e50: 08017030 .word 0x08017030 8013e54: 0801702c .word 0x0801702c 8013e58: 08017034 .word 0x08017034 8013e5c: 6da3 ldr r3, [r4, #88] @ 0x58 8013e5e: f8dd a038 ldr.w sl, [sp, #56] @ 0x38 8013e62: 4553 cmp r3, sl 8013e64: bfa8 it ge 8013e66: 4653 movge r3, sl 8013e68: 2b00 cmp r3, #0 8013e6a: 4699 mov r9, r3 8013e6c: dc36 bgt.n 8013edc <_printf_float+0x364> 8013e6e: f04f 0b00 mov.w fp, #0 8013e72: ea29 79e9 bic.w r9, r9, r9, asr #31 8013e76: f104 021a add.w r2, r4, #26 8013e7a: 6da3 ldr r3, [r4, #88] @ 0x58 8013e7c: 930a str r3, [sp, #40] @ 0x28 8013e7e: eba3 0309 sub.w r3, r3, r9 8013e82: 455b cmp r3, fp 8013e84: dc31 bgt.n 8013eea <_printf_float+0x372> 8013e86: 9b0d ldr r3, [sp, #52] @ 0x34 8013e88: 459a cmp sl, r3 8013e8a: dc3a bgt.n 8013f02 <_printf_float+0x38a> 8013e8c: 6823 ldr r3, [r4, #0] 8013e8e: 07da lsls r2, r3, #31 8013e90: d437 bmi.n 8013f02 <_printf_float+0x38a> 8013e92: 9b0d ldr r3, [sp, #52] @ 0x34 8013e94: ebaa 0903 sub.w r9, sl, r3 8013e98: 9b0a ldr r3, [sp, #40] @ 0x28 8013e9a: ebaa 0303 sub.w r3, sl, r3 8013e9e: 4599 cmp r9, r3 8013ea0: bfa8 it ge 8013ea2: 4699 movge r9, r3 8013ea4: f1b9 0f00 cmp.w r9, #0 8013ea8: dc33 bgt.n 8013f12 <_printf_float+0x39a> 8013eaa: f04f 0800 mov.w r8, #0 8013eae: ea29 79e9 bic.w r9, r9, r9, asr #31 8013eb2: f104 0b1a add.w fp, r4, #26 8013eb6: 9b0d ldr r3, [sp, #52] @ 0x34 8013eb8: ebaa 0303 sub.w r3, sl, r3 8013ebc: eba3 0309 sub.w r3, r3, r9 8013ec0: 4543 cmp r3, r8 8013ec2: f77f af7a ble.w 8013dba <_printf_float+0x242> 8013ec6: 2301 movs r3, #1 8013ec8: 465a mov r2, fp 8013eca: 4631 mov r1, r6 8013ecc: 4628 mov r0, r5 8013ece: 47b8 blx r7 8013ed0: 3001 adds r0, #1 8013ed2: f43f aeac beq.w 8013c2e <_printf_float+0xb6> 8013ed6: f108 0801 add.w r8, r8, #1 8013eda: e7ec b.n 8013eb6 <_printf_float+0x33e> 8013edc: 4642 mov r2, r8 8013ede: 4631 mov r1, r6 8013ee0: 4628 mov r0, r5 8013ee2: 47b8 blx r7 8013ee4: 3001 adds r0, #1 8013ee6: d1c2 bne.n 8013e6e <_printf_float+0x2f6> 8013ee8: e6a1 b.n 8013c2e <_printf_float+0xb6> 8013eea: 2301 movs r3, #1 8013eec: 4631 mov r1, r6 8013eee: 4628 mov r0, r5 8013ef0: 920a str r2, [sp, #40] @ 0x28 8013ef2: 47b8 blx r7 8013ef4: 3001 adds r0, #1 8013ef6: f43f ae9a beq.w 8013c2e <_printf_float+0xb6> 8013efa: 9a0a ldr r2, [sp, #40] @ 0x28 8013efc: f10b 0b01 add.w fp, fp, #1 8013f00: e7bb b.n 8013e7a <_printf_float+0x302> 8013f02: 4631 mov r1, r6 8013f04: e9dd 2308 ldrd r2, r3, [sp, #32] 8013f08: 4628 mov r0, r5 8013f0a: 47b8 blx r7 8013f0c: 3001 adds r0, #1 8013f0e: d1c0 bne.n 8013e92 <_printf_float+0x31a> 8013f10: e68d b.n 8013c2e <_printf_float+0xb6> 8013f12: 9a0a ldr r2, [sp, #40] @ 0x28 8013f14: 464b mov r3, r9 8013f16: 4631 mov r1, r6 8013f18: 4628 mov r0, r5 8013f1a: 4442 add r2, r8 8013f1c: 47b8 blx r7 8013f1e: 3001 adds r0, #1 8013f20: d1c3 bne.n 8013eaa <_printf_float+0x332> 8013f22: e684 b.n 8013c2e <_printf_float+0xb6> 8013f24: f8dd a038 ldr.w sl, [sp, #56] @ 0x38 8013f28: f1ba 0f01 cmp.w sl, #1 8013f2c: dc01 bgt.n 8013f32 <_printf_float+0x3ba> 8013f2e: 07db lsls r3, r3, #31 8013f30: d536 bpl.n 8013fa0 <_printf_float+0x428> 8013f32: 2301 movs r3, #1 8013f34: 4642 mov r2, r8 8013f36: 4631 mov r1, r6 8013f38: 4628 mov r0, r5 8013f3a: 47b8 blx r7 8013f3c: 3001 adds r0, #1 8013f3e: f43f ae76 beq.w 8013c2e <_printf_float+0xb6> 8013f42: e9dd 2308 ldrd r2, r3, [sp, #32] 8013f46: 4631 mov r1, r6 8013f48: 4628 mov r0, r5 8013f4a: 47b8 blx r7 8013f4c: 3001 adds r0, #1 8013f4e: f43f ae6e beq.w 8013c2e <_printf_float+0xb6> 8013f52: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48 8013f56: 2200 movs r2, #0 8013f58: 2300 movs r3, #0 8013f5a: f10a 3aff add.w sl, sl, #4294967295 @ 0xffffffff 8013f5e: f7f4 fd8f bl 8008a80 <__aeabi_dcmpeq> 8013f62: b9c0 cbnz r0, 8013f96 <_printf_float+0x41e> 8013f64: 4653 mov r3, sl 8013f66: f108 0201 add.w r2, r8, #1 8013f6a: 4631 mov r1, r6 8013f6c: 4628 mov r0, r5 8013f6e: 47b8 blx r7 8013f70: 3001 adds r0, #1 8013f72: d10c bne.n 8013f8e <_printf_float+0x416> 8013f74: e65b b.n 8013c2e <_printf_float+0xb6> 8013f76: 2301 movs r3, #1 8013f78: 465a mov r2, fp 8013f7a: 4631 mov r1, r6 8013f7c: 4628 mov r0, r5 8013f7e: 47b8 blx r7 8013f80: 3001 adds r0, #1 8013f82: f43f ae54 beq.w 8013c2e <_printf_float+0xb6> 8013f86: f108 0801 add.w r8, r8, #1 8013f8a: 45d0 cmp r8, sl 8013f8c: dbf3 blt.n 8013f76 <_printf_float+0x3fe> 8013f8e: 464b mov r3, r9 8013f90: f104 0250 add.w r2, r4, #80 @ 0x50 8013f94: e6e0 b.n 8013d58 <_printf_float+0x1e0> 8013f96: f04f 0800 mov.w r8, #0 8013f9a: f104 0b1a add.w fp, r4, #26 8013f9e: e7f4 b.n 8013f8a <_printf_float+0x412> 8013fa0: 2301 movs r3, #1 8013fa2: 4642 mov r2, r8 8013fa4: e7e1 b.n 8013f6a <_printf_float+0x3f2> 8013fa6: 2301 movs r3, #1 8013fa8: 464a mov r2, r9 8013faa: 4631 mov r1, r6 8013fac: 4628 mov r0, r5 8013fae: 47b8 blx r7 8013fb0: 3001 adds r0, #1 8013fb2: f43f ae3c beq.w 8013c2e <_printf_float+0xb6> 8013fb6: f108 0801 add.w r8, r8, #1 8013fba: 68e3 ldr r3, [r4, #12] 8013fbc: 990f ldr r1, [sp, #60] @ 0x3c 8013fbe: 1a5b subs r3, r3, r1 8013fc0: 4543 cmp r3, r8 8013fc2: dcf0 bgt.n 8013fa6 <_printf_float+0x42e> 8013fc4: e6fd b.n 8013dc2 <_printf_float+0x24a> 8013fc6: f04f 0800 mov.w r8, #0 8013fca: f104 0919 add.w r9, r4, #25 8013fce: e7f4 b.n 8013fba <_printf_float+0x442> 08013fd0 <_printf_common>: 8013fd0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8013fd4: 4616 mov r6, r2 8013fd6: 4698 mov r8, r3 8013fd8: 688a ldr r2, [r1, #8] 8013fda: 690b ldr r3, [r1, #16] 8013fdc: 4607 mov r7, r0 8013fde: 4293 cmp r3, r2 8013fe0: bfb8 it lt 8013fe2: 4613 movlt r3, r2 8013fe4: 6033 str r3, [r6, #0] 8013fe6: f891 2043 ldrb.w r2, [r1, #67] @ 0x43 8013fea: 460c mov r4, r1 8013fec: f8dd 9020 ldr.w r9, [sp, #32] 8013ff0: b10a cbz r2, 8013ff6 <_printf_common+0x26> 8013ff2: 3301 adds r3, #1 8013ff4: 6033 str r3, [r6, #0] 8013ff6: 6823 ldr r3, [r4, #0] 8013ff8: 0699 lsls r1, r3, #26 8013ffa: bf42 ittt mi 8013ffc: 6833 ldrmi r3, [r6, #0] 8013ffe: 3302 addmi r3, #2 8014000: 6033 strmi r3, [r6, #0] 8014002: 6825 ldr r5, [r4, #0] 8014004: f015 0506 ands.w r5, r5, #6 8014008: d106 bne.n 8014018 <_printf_common+0x48> 801400a: f104 0a19 add.w sl, r4, #25 801400e: 68e3 ldr r3, [r4, #12] 8014010: 6832 ldr r2, [r6, #0] 8014012: 1a9b subs r3, r3, r2 8014014: 42ab cmp r3, r5 8014016: dc2b bgt.n 8014070 <_printf_common+0xa0> 8014018: f894 3043 ldrb.w r3, [r4, #67] @ 0x43 801401c: 6822 ldr r2, [r4, #0] 801401e: 3b00 subs r3, #0 8014020: bf18 it ne 8014022: 2301 movne r3, #1 8014024: 0692 lsls r2, r2, #26 8014026: d430 bmi.n 801408a <_printf_common+0xba> 8014028: 4641 mov r1, r8 801402a: 4638 mov r0, r7 801402c: f104 0243 add.w r2, r4, #67 @ 0x43 8014030: 47c8 blx r9 8014032: 3001 adds r0, #1 8014034: d023 beq.n 801407e <_printf_common+0xae> 8014036: 6823 ldr r3, [r4, #0] 8014038: 6922 ldr r2, [r4, #16] 801403a: f003 0306 and.w r3, r3, #6 801403e: 2b04 cmp r3, #4 8014040: bf14 ite ne 8014042: 2500 movne r5, #0 8014044: 6833 ldreq r3, [r6, #0] 8014046: f04f 0600 mov.w r6, #0 801404a: bf08 it eq 801404c: 68e5 ldreq r5, [r4, #12] 801404e: f104 041a add.w r4, r4, #26 8014052: bf08 it eq 8014054: 1aed subeq r5, r5, r3 8014056: f854 3c12 ldr.w r3, [r4, #-18] 801405a: bf08 it eq 801405c: ea25 75e5 biceq.w r5, r5, r5, asr #31 8014060: 4293 cmp r3, r2 8014062: bfc4 itt gt 8014064: 1a9b subgt r3, r3, r2 8014066: 18ed addgt r5, r5, r3 8014068: 42b5 cmp r5, r6 801406a: d11a bne.n 80140a2 <_printf_common+0xd2> 801406c: 2000 movs r0, #0 801406e: e008 b.n 8014082 <_printf_common+0xb2> 8014070: 2301 movs r3, #1 8014072: 4652 mov r2, sl 8014074: 4641 mov r1, r8 8014076: 4638 mov r0, r7 8014078: 47c8 blx r9 801407a: 3001 adds r0, #1 801407c: d103 bne.n 8014086 <_printf_common+0xb6> 801407e: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8014082: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8014086: 3501 adds r5, #1 8014088: e7c1 b.n 801400e <_printf_common+0x3e> 801408a: 2030 movs r0, #48 @ 0x30 801408c: 18e1 adds r1, r4, r3 801408e: f881 0043 strb.w r0, [r1, #67] @ 0x43 8014092: 1c5a adds r2, r3, #1 8014094: f894 1045 ldrb.w r1, [r4, #69] @ 0x45 8014098: 4422 add r2, r4 801409a: 3302 adds r3, #2 801409c: f882 1043 strb.w r1, [r2, #67] @ 0x43 80140a0: e7c2 b.n 8014028 <_printf_common+0x58> 80140a2: 2301 movs r3, #1 80140a4: 4622 mov r2, r4 80140a6: 4641 mov r1, r8 80140a8: 4638 mov r0, r7 80140aa: 47c8 blx r9 80140ac: 3001 adds r0, #1 80140ae: d0e6 beq.n 801407e <_printf_common+0xae> 80140b0: 3601 adds r6, #1 80140b2: e7d9 b.n 8014068 <_printf_common+0x98> 080140b4 <_printf_i>: 80140b4: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} 80140b8: 7e0f ldrb r7, [r1, #24] 80140ba: 4691 mov r9, r2 80140bc: 2f78 cmp r7, #120 @ 0x78 80140be: 4680 mov r8, r0 80140c0: 460c mov r4, r1 80140c2: 469a mov sl, r3 80140c4: 9e0c ldr r6, [sp, #48] @ 0x30 80140c6: f101 0243 add.w r2, r1, #67 @ 0x43 80140ca: d807 bhi.n 80140dc <_printf_i+0x28> 80140cc: 2f62 cmp r7, #98 @ 0x62 80140ce: d80a bhi.n 80140e6 <_printf_i+0x32> 80140d0: 2f00 cmp r7, #0 80140d2: f000 80d1 beq.w 8014278 <_printf_i+0x1c4> 80140d6: 2f58 cmp r7, #88 @ 0x58 80140d8: f000 80b8 beq.w 801424c <_printf_i+0x198> 80140dc: f104 0642 add.w r6, r4, #66 @ 0x42 80140e0: f884 7042 strb.w r7, [r4, #66] @ 0x42 80140e4: e03a b.n 801415c <_printf_i+0xa8> 80140e6: f1a7 0363 sub.w r3, r7, #99 @ 0x63 80140ea: 2b15 cmp r3, #21 80140ec: d8f6 bhi.n 80140dc <_printf_i+0x28> 80140ee: a101 add r1, pc, #4 @ (adr r1, 80140f4 <_printf_i+0x40>) 80140f0: f851 f023 ldr.w pc, [r1, r3, lsl #2] 80140f4: 0801414d .word 0x0801414d 80140f8: 08014161 .word 0x08014161 80140fc: 080140dd .word 0x080140dd 8014100: 080140dd .word 0x080140dd 8014104: 080140dd .word 0x080140dd 8014108: 080140dd .word 0x080140dd 801410c: 08014161 .word 0x08014161 8014110: 080140dd .word 0x080140dd 8014114: 080140dd .word 0x080140dd 8014118: 080140dd .word 0x080140dd 801411c: 080140dd .word 0x080140dd 8014120: 0801425f .word 0x0801425f 8014124: 0801418b .word 0x0801418b 8014128: 08014219 .word 0x08014219 801412c: 080140dd .word 0x080140dd 8014130: 080140dd .word 0x080140dd 8014134: 08014281 .word 0x08014281 8014138: 080140dd .word 0x080140dd 801413c: 0801418b .word 0x0801418b 8014140: 080140dd .word 0x080140dd 8014144: 080140dd .word 0x080140dd 8014148: 08014221 .word 0x08014221 801414c: 6833 ldr r3, [r6, #0] 801414e: 1d1a adds r2, r3, #4 8014150: 681b ldr r3, [r3, #0] 8014152: 6032 str r2, [r6, #0] 8014154: f104 0642 add.w r6, r4, #66 @ 0x42 8014158: f884 3042 strb.w r3, [r4, #66] @ 0x42 801415c: 2301 movs r3, #1 801415e: e09c b.n 801429a <_printf_i+0x1e6> 8014160: 6833 ldr r3, [r6, #0] 8014162: 6820 ldr r0, [r4, #0] 8014164: 1d19 adds r1, r3, #4 8014166: 6031 str r1, [r6, #0] 8014168: 0606 lsls r6, r0, #24 801416a: d501 bpl.n 8014170 <_printf_i+0xbc> 801416c: 681d ldr r5, [r3, #0] 801416e: e003 b.n 8014178 <_printf_i+0xc4> 8014170: 0645 lsls r5, r0, #25 8014172: d5fb bpl.n 801416c <_printf_i+0xb8> 8014174: f9b3 5000 ldrsh.w r5, [r3] 8014178: 2d00 cmp r5, #0 801417a: da03 bge.n 8014184 <_printf_i+0xd0> 801417c: 232d movs r3, #45 @ 0x2d 801417e: 426d negs r5, r5 8014180: f884 3043 strb.w r3, [r4, #67] @ 0x43 8014184: 230a movs r3, #10 8014186: 4858 ldr r0, [pc, #352] @ (80142e8 <_printf_i+0x234>) 8014188: e011 b.n 80141ae <_printf_i+0xfa> 801418a: 6821 ldr r1, [r4, #0] 801418c: 6833 ldr r3, [r6, #0] 801418e: 0608 lsls r0, r1, #24 8014190: f853 5b04 ldr.w r5, [r3], #4 8014194: d402 bmi.n 801419c <_printf_i+0xe8> 8014196: 0649 lsls r1, r1, #25 8014198: bf48 it mi 801419a: b2ad uxthmi r5, r5 801419c: 2f6f cmp r7, #111 @ 0x6f 801419e: 6033 str r3, [r6, #0] 80141a0: bf14 ite ne 80141a2: 230a movne r3, #10 80141a4: 2308 moveq r3, #8 80141a6: 4850 ldr r0, [pc, #320] @ (80142e8 <_printf_i+0x234>) 80141a8: 2100 movs r1, #0 80141aa: f884 1043 strb.w r1, [r4, #67] @ 0x43 80141ae: 6866 ldr r6, [r4, #4] 80141b0: 2e00 cmp r6, #0 80141b2: 60a6 str r6, [r4, #8] 80141b4: db05 blt.n 80141c2 <_printf_i+0x10e> 80141b6: 6821 ldr r1, [r4, #0] 80141b8: 432e orrs r6, r5 80141ba: f021 0104 bic.w r1, r1, #4 80141be: 6021 str r1, [r4, #0] 80141c0: d04b beq.n 801425a <_printf_i+0x1a6> 80141c2: 4616 mov r6, r2 80141c4: fbb5 f1f3 udiv r1, r5, r3 80141c8: fb03 5711 mls r7, r3, r1, r5 80141cc: 5dc7 ldrb r7, [r0, r7] 80141ce: f806 7d01 strb.w r7, [r6, #-1]! 80141d2: 462f mov r7, r5 80141d4: 42bb cmp r3, r7 80141d6: 460d mov r5, r1 80141d8: d9f4 bls.n 80141c4 <_printf_i+0x110> 80141da: 2b08 cmp r3, #8 80141dc: d10b bne.n 80141f6 <_printf_i+0x142> 80141de: 6823 ldr r3, [r4, #0] 80141e0: 07df lsls r7, r3, #31 80141e2: d508 bpl.n 80141f6 <_printf_i+0x142> 80141e4: 6923 ldr r3, [r4, #16] 80141e6: 6861 ldr r1, [r4, #4] 80141e8: 4299 cmp r1, r3 80141ea: bfde ittt le 80141ec: 2330 movle r3, #48 @ 0x30 80141ee: f806 3c01 strble.w r3, [r6, #-1] 80141f2: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff 80141f6: 1b92 subs r2, r2, r6 80141f8: 6122 str r2, [r4, #16] 80141fa: 464b mov r3, r9 80141fc: 4621 mov r1, r4 80141fe: 4640 mov r0, r8 8014200: f8cd a000 str.w sl, [sp] 8014204: aa03 add r2, sp, #12 8014206: f7ff fee3 bl 8013fd0 <_printf_common> 801420a: 3001 adds r0, #1 801420c: d14a bne.n 80142a4 <_printf_i+0x1f0> 801420e: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8014212: b004 add sp, #16 8014214: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8014218: 6823 ldr r3, [r4, #0] 801421a: f043 0320 orr.w r3, r3, #32 801421e: 6023 str r3, [r4, #0] 8014220: 2778 movs r7, #120 @ 0x78 8014222: 4832 ldr r0, [pc, #200] @ (80142ec <_printf_i+0x238>) 8014224: f884 7045 strb.w r7, [r4, #69] @ 0x45 8014228: 6823 ldr r3, [r4, #0] 801422a: 6831 ldr r1, [r6, #0] 801422c: 061f lsls r7, r3, #24 801422e: f851 5b04 ldr.w r5, [r1], #4 8014232: d402 bmi.n 801423a <_printf_i+0x186> 8014234: 065f lsls r7, r3, #25 8014236: bf48 it mi 8014238: b2ad uxthmi r5, r5 801423a: 6031 str r1, [r6, #0] 801423c: 07d9 lsls r1, r3, #31 801423e: bf44 itt mi 8014240: f043 0320 orrmi.w r3, r3, #32 8014244: 6023 strmi r3, [r4, #0] 8014246: b11d cbz r5, 8014250 <_printf_i+0x19c> 8014248: 2310 movs r3, #16 801424a: e7ad b.n 80141a8 <_printf_i+0xf4> 801424c: 4826 ldr r0, [pc, #152] @ (80142e8 <_printf_i+0x234>) 801424e: e7e9 b.n 8014224 <_printf_i+0x170> 8014250: 6823 ldr r3, [r4, #0] 8014252: f023 0320 bic.w r3, r3, #32 8014256: 6023 str r3, [r4, #0] 8014258: e7f6 b.n 8014248 <_printf_i+0x194> 801425a: 4616 mov r6, r2 801425c: e7bd b.n 80141da <_printf_i+0x126> 801425e: 6833 ldr r3, [r6, #0] 8014260: 6825 ldr r5, [r4, #0] 8014262: 1d18 adds r0, r3, #4 8014264: 6961 ldr r1, [r4, #20] 8014266: 6030 str r0, [r6, #0] 8014268: 062e lsls r6, r5, #24 801426a: 681b ldr r3, [r3, #0] 801426c: d501 bpl.n 8014272 <_printf_i+0x1be> 801426e: 6019 str r1, [r3, #0] 8014270: e002 b.n 8014278 <_printf_i+0x1c4> 8014272: 0668 lsls r0, r5, #25 8014274: d5fb bpl.n 801426e <_printf_i+0x1ba> 8014276: 8019 strh r1, [r3, #0] 8014278: 2300 movs r3, #0 801427a: 4616 mov r6, r2 801427c: 6123 str r3, [r4, #16] 801427e: e7bc b.n 80141fa <_printf_i+0x146> 8014280: 6833 ldr r3, [r6, #0] 8014282: 2100 movs r1, #0 8014284: 1d1a adds r2, r3, #4 8014286: 6032 str r2, [r6, #0] 8014288: 681e ldr r6, [r3, #0] 801428a: 6862 ldr r2, [r4, #4] 801428c: 4630 mov r0, r6 801428e: f000 f979 bl 8014584 8014292: b108 cbz r0, 8014298 <_printf_i+0x1e4> 8014294: 1b80 subs r0, r0, r6 8014296: 6060 str r0, [r4, #4] 8014298: 6863 ldr r3, [r4, #4] 801429a: 6123 str r3, [r4, #16] 801429c: 2300 movs r3, #0 801429e: f884 3043 strb.w r3, [r4, #67] @ 0x43 80142a2: e7aa b.n 80141fa <_printf_i+0x146> 80142a4: 4632 mov r2, r6 80142a6: 4649 mov r1, r9 80142a8: 4640 mov r0, r8 80142aa: 6923 ldr r3, [r4, #16] 80142ac: 47d0 blx sl 80142ae: 3001 adds r0, #1 80142b0: d0ad beq.n 801420e <_printf_i+0x15a> 80142b2: 6823 ldr r3, [r4, #0] 80142b4: 079b lsls r3, r3, #30 80142b6: d413 bmi.n 80142e0 <_printf_i+0x22c> 80142b8: 68e0 ldr r0, [r4, #12] 80142ba: 9b03 ldr r3, [sp, #12] 80142bc: 4298 cmp r0, r3 80142be: bfb8 it lt 80142c0: 4618 movlt r0, r3 80142c2: e7a6 b.n 8014212 <_printf_i+0x15e> 80142c4: 2301 movs r3, #1 80142c6: 4632 mov r2, r6 80142c8: 4649 mov r1, r9 80142ca: 4640 mov r0, r8 80142cc: 47d0 blx sl 80142ce: 3001 adds r0, #1 80142d0: d09d beq.n 801420e <_printf_i+0x15a> 80142d2: 3501 adds r5, #1 80142d4: 68e3 ldr r3, [r4, #12] 80142d6: 9903 ldr r1, [sp, #12] 80142d8: 1a5b subs r3, r3, r1 80142da: 42ab cmp r3, r5 80142dc: dcf2 bgt.n 80142c4 <_printf_i+0x210> 80142de: e7eb b.n 80142b8 <_printf_i+0x204> 80142e0: 2500 movs r5, #0 80142e2: f104 0619 add.w r6, r4, #25 80142e6: e7f5 b.n 80142d4 <_printf_i+0x220> 80142e8: 08017036 .word 0x08017036 80142ec: 08017047 .word 0x08017047 080142f0 : 80142f0: 2300 movs r3, #0 80142f2: b510 push {r4, lr} 80142f4: 4604 mov r4, r0 80142f6: e9c0 3300 strd r3, r3, [r0] 80142fa: e9c0 3304 strd r3, r3, [r0, #16] 80142fe: 6083 str r3, [r0, #8] 8014300: 8181 strh r1, [r0, #12] 8014302: 6643 str r3, [r0, #100] @ 0x64 8014304: 81c2 strh r2, [r0, #14] 8014306: 6183 str r3, [r0, #24] 8014308: 4619 mov r1, r3 801430a: 2208 movs r2, #8 801430c: 305c adds r0, #92 @ 0x5c 801430e: f000 f8ff bl 8014510 8014312: 4b0d ldr r3, [pc, #52] @ (8014348 ) 8014314: 6224 str r4, [r4, #32] 8014316: 6263 str r3, [r4, #36] @ 0x24 8014318: 4b0c ldr r3, [pc, #48] @ (801434c ) 801431a: 62a3 str r3, [r4, #40] @ 0x28 801431c: 4b0c ldr r3, [pc, #48] @ (8014350 ) 801431e: 62e3 str r3, [r4, #44] @ 0x2c 8014320: 4b0c ldr r3, [pc, #48] @ (8014354 ) 8014322: 6323 str r3, [r4, #48] @ 0x30 8014324: 4b0c ldr r3, [pc, #48] @ (8014358 ) 8014326: 429c cmp r4, r3 8014328: d006 beq.n 8014338 801432a: f103 0268 add.w r2, r3, #104 @ 0x68 801432e: 4294 cmp r4, r2 8014330: d002 beq.n 8014338 8014332: 33d0 adds r3, #208 @ 0xd0 8014334: 429c cmp r4, r3 8014336: d105 bne.n 8014344 8014338: f104 0058 add.w r0, r4, #88 @ 0x58 801433c: e8bd 4010 ldmia.w sp!, {r4, lr} 8014340: f000 b918 b.w 8014574 <__retarget_lock_init_recursive> 8014344: bd10 pop {r4, pc} 8014346: bf00 nop 8014348: 08016191 .word 0x08016191 801434c: 080161b3 .word 0x080161b3 8014350: 080161eb .word 0x080161eb 8014354: 0801620f .word 0x0801620f 8014358: 2000124c .word 0x2000124c 0801435c : 801435c: 4a02 ldr r2, [pc, #8] @ (8014368 ) 801435e: 4903 ldr r1, [pc, #12] @ (801436c ) 8014360: 4803 ldr r0, [pc, #12] @ (8014370 ) 8014362: f000 b8a5 b.w 80144b0 <_fwalk_sglue> 8014366: bf00 nop 8014368: 20000074 .word 0x20000074 801436c: 08015a35 .word 0x08015a35 8014370: 20000084 .word 0x20000084 08014374 : 8014374: 6841 ldr r1, [r0, #4] 8014376: 4b0c ldr r3, [pc, #48] @ (80143a8 ) 8014378: b510 push {r4, lr} 801437a: 4299 cmp r1, r3 801437c: 4604 mov r4, r0 801437e: d001 beq.n 8014384 8014380: f001 fb58 bl 8015a34 <_fflush_r> 8014384: 68a1 ldr r1, [r4, #8] 8014386: 4b09 ldr r3, [pc, #36] @ (80143ac ) 8014388: 4299 cmp r1, r3 801438a: d002 beq.n 8014392 801438c: 4620 mov r0, r4 801438e: f001 fb51 bl 8015a34 <_fflush_r> 8014392: 68e1 ldr r1, [r4, #12] 8014394: 4b06 ldr r3, [pc, #24] @ (80143b0 ) 8014396: 4299 cmp r1, r3 8014398: d004 beq.n 80143a4 801439a: 4620 mov r0, r4 801439c: e8bd 4010 ldmia.w sp!, {r4, lr} 80143a0: f001 bb48 b.w 8015a34 <_fflush_r> 80143a4: bd10 pop {r4, pc} 80143a6: bf00 nop 80143a8: 2000124c .word 0x2000124c 80143ac: 200012b4 .word 0x200012b4 80143b0: 2000131c .word 0x2000131c 080143b4 : 80143b4: b510 push {r4, lr} 80143b6: 4b0b ldr r3, [pc, #44] @ (80143e4 ) 80143b8: 4c0b ldr r4, [pc, #44] @ (80143e8 ) 80143ba: 4a0c ldr r2, [pc, #48] @ (80143ec ) 80143bc: 4620 mov r0, r4 80143be: 601a str r2, [r3, #0] 80143c0: 2104 movs r1, #4 80143c2: 2200 movs r2, #0 80143c4: f7ff ff94 bl 80142f0 80143c8: f104 0068 add.w r0, r4, #104 @ 0x68 80143cc: 2201 movs r2, #1 80143ce: 2109 movs r1, #9 80143d0: f7ff ff8e bl 80142f0 80143d4: f104 00d0 add.w r0, r4, #208 @ 0xd0 80143d8: 2202 movs r2, #2 80143da: e8bd 4010 ldmia.w sp!, {r4, lr} 80143de: 2112 movs r1, #18 80143e0: f7ff bf86 b.w 80142f0 80143e4: 20001384 .word 0x20001384 80143e8: 2000124c .word 0x2000124c 80143ec: 0801435d .word 0x0801435d 080143f0 <__sfp_lock_acquire>: 80143f0: 4801 ldr r0, [pc, #4] @ (80143f8 <__sfp_lock_acquire+0x8>) 80143f2: f000 b8c0 b.w 8014576 <__retarget_lock_acquire_recursive> 80143f6: bf00 nop 80143f8: 20001389 .word 0x20001389 080143fc <__sfp_lock_release>: 80143fc: 4801 ldr r0, [pc, #4] @ (8014404 <__sfp_lock_release+0x8>) 80143fe: f000 b8bb b.w 8014578 <__retarget_lock_release_recursive> 8014402: bf00 nop 8014404: 20001389 .word 0x20001389 08014408 <__sinit>: 8014408: b510 push {r4, lr} 801440a: 4604 mov r4, r0 801440c: f7ff fff0 bl 80143f0 <__sfp_lock_acquire> 8014410: 6a23 ldr r3, [r4, #32] 8014412: b11b cbz r3, 801441c <__sinit+0x14> 8014414: e8bd 4010 ldmia.w sp!, {r4, lr} 8014418: f7ff bff0 b.w 80143fc <__sfp_lock_release> 801441c: 4b04 ldr r3, [pc, #16] @ (8014430 <__sinit+0x28>) 801441e: 6223 str r3, [r4, #32] 8014420: 4b04 ldr r3, [pc, #16] @ (8014434 <__sinit+0x2c>) 8014422: 681b ldr r3, [r3, #0] 8014424: 2b00 cmp r3, #0 8014426: d1f5 bne.n 8014414 <__sinit+0xc> 8014428: f7ff ffc4 bl 80143b4 801442c: e7f2 b.n 8014414 <__sinit+0xc> 801442e: bf00 nop 8014430: 08014375 .word 0x08014375 8014434: 20001384 .word 0x20001384 08014438 <_vsniprintf_r>: 8014438: b530 push {r4, r5, lr} 801443a: 4614 mov r4, r2 801443c: 2c00 cmp r4, #0 801443e: 4605 mov r5, r0 8014440: 461a mov r2, r3 8014442: b09b sub sp, #108 @ 0x6c 8014444: da05 bge.n 8014452 <_vsniprintf_r+0x1a> 8014446: 238b movs r3, #139 @ 0x8b 8014448: 6003 str r3, [r0, #0] 801444a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 801444e: b01b add sp, #108 @ 0x6c 8014450: bd30 pop {r4, r5, pc} 8014452: f44f 7302 mov.w r3, #520 @ 0x208 8014456: f8ad 300c strh.w r3, [sp, #12] 801445a: f04f 0300 mov.w r3, #0 801445e: 9319 str r3, [sp, #100] @ 0x64 8014460: bf0c ite eq 8014462: 4623 moveq r3, r4 8014464: f104 33ff addne.w r3, r4, #4294967295 @ 0xffffffff 8014468: 9302 str r3, [sp, #8] 801446a: 9305 str r3, [sp, #20] 801446c: f64f 73ff movw r3, #65535 @ 0xffff 8014470: 9100 str r1, [sp, #0] 8014472: 9104 str r1, [sp, #16] 8014474: f8ad 300e strh.w r3, [sp, #14] 8014478: 4669 mov r1, sp 801447a: 9b1e ldr r3, [sp, #120] @ 0x78 801447c: f000 ff74 bl 8015368 <_svfiprintf_r> 8014480: 1c43 adds r3, r0, #1 8014482: bfbc itt lt 8014484: 238b movlt r3, #139 @ 0x8b 8014486: 602b strlt r3, [r5, #0] 8014488: 2c00 cmp r4, #0 801448a: d0e0 beq.n 801444e <_vsniprintf_r+0x16> 801448c: 2200 movs r2, #0 801448e: 9b00 ldr r3, [sp, #0] 8014490: 701a strb r2, [r3, #0] 8014492: e7dc b.n 801444e <_vsniprintf_r+0x16> 08014494 : 8014494: b507 push {r0, r1, r2, lr} 8014496: 9300 str r3, [sp, #0] 8014498: 4613 mov r3, r2 801449a: 460a mov r2, r1 801449c: 4601 mov r1, r0 801449e: 4803 ldr r0, [pc, #12] @ (80144ac ) 80144a0: 6800 ldr r0, [r0, #0] 80144a2: f7ff ffc9 bl 8014438 <_vsniprintf_r> 80144a6: b003 add sp, #12 80144a8: f85d fb04 ldr.w pc, [sp], #4 80144ac: 20000080 .word 0x20000080 080144b0 <_fwalk_sglue>: 80144b0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 80144b4: 4607 mov r7, r0 80144b6: 4688 mov r8, r1 80144b8: 4614 mov r4, r2 80144ba: 2600 movs r6, #0 80144bc: e9d4 9501 ldrd r9, r5, [r4, #4] 80144c0: f1b9 0901 subs.w r9, r9, #1 80144c4: d505 bpl.n 80144d2 <_fwalk_sglue+0x22> 80144c6: 6824 ldr r4, [r4, #0] 80144c8: 2c00 cmp r4, #0 80144ca: d1f7 bne.n 80144bc <_fwalk_sglue+0xc> 80144cc: 4630 mov r0, r6 80144ce: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 80144d2: 89ab ldrh r3, [r5, #12] 80144d4: 2b01 cmp r3, #1 80144d6: d907 bls.n 80144e8 <_fwalk_sglue+0x38> 80144d8: f9b5 300e ldrsh.w r3, [r5, #14] 80144dc: 3301 adds r3, #1 80144de: d003 beq.n 80144e8 <_fwalk_sglue+0x38> 80144e0: 4629 mov r1, r5 80144e2: 4638 mov r0, r7 80144e4: 47c0 blx r8 80144e6: 4306 orrs r6, r0 80144e8: 3568 adds r5, #104 @ 0x68 80144ea: e7e9 b.n 80144c0 <_fwalk_sglue+0x10> 080144ec : 80144ec: b40f push {r0, r1, r2, r3} 80144ee: b507 push {r0, r1, r2, lr} 80144f0: 4906 ldr r1, [pc, #24] @ (801450c ) 80144f2: ab04 add r3, sp, #16 80144f4: 6808 ldr r0, [r1, #0] 80144f6: f853 2b04 ldr.w r2, [r3], #4 80144fa: 6881 ldr r1, [r0, #8] 80144fc: 9301 str r3, [sp, #4] 80144fe: f001 f857 bl 80155b0 <_vfiprintf_r> 8014502: b003 add sp, #12 8014504: f85d eb04 ldr.w lr, [sp], #4 8014508: b004 add sp, #16 801450a: 4770 bx lr 801450c: 20000080 .word 0x20000080 08014510 : 8014510: 4603 mov r3, r0 8014512: 4402 add r2, r0 8014514: 4293 cmp r3, r2 8014516: d100 bne.n 801451a 8014518: 4770 bx lr 801451a: f803 1b01 strb.w r1, [r3], #1 801451e: e7f9 b.n 8014514 08014520 <__errno>: 8014520: 4b01 ldr r3, [pc, #4] @ (8014528 <__errno+0x8>) 8014522: 6818 ldr r0, [r3, #0] 8014524: 4770 bx lr 8014526: bf00 nop 8014528: 20000080 .word 0x20000080 0801452c <__libc_init_array>: 801452c: b570 push {r4, r5, r6, lr} 801452e: 2600 movs r6, #0 8014530: 4d0c ldr r5, [pc, #48] @ (8014564 <__libc_init_array+0x38>) 8014532: 4c0d ldr r4, [pc, #52] @ (8014568 <__libc_init_array+0x3c>) 8014534: 1b64 subs r4, r4, r5 8014536: 10a4 asrs r4, r4, #2 8014538: 42a6 cmp r6, r4 801453a: d109 bne.n 8014550 <__libc_init_array+0x24> 801453c: f002 f904 bl 8016748 <_init> 8014540: 2600 movs r6, #0 8014542: 4d0a ldr r5, [pc, #40] @ (801456c <__libc_init_array+0x40>) 8014544: 4c0a ldr r4, [pc, #40] @ (8014570 <__libc_init_array+0x44>) 8014546: 1b64 subs r4, r4, r5 8014548: 10a4 asrs r4, r4, #2 801454a: 42a6 cmp r6, r4 801454c: d105 bne.n 801455a <__libc_init_array+0x2e> 801454e: bd70 pop {r4, r5, r6, pc} 8014550: f855 3b04 ldr.w r3, [r5], #4 8014554: 4798 blx r3 8014556: 3601 adds r6, #1 8014558: e7ee b.n 8014538 <__libc_init_array+0xc> 801455a: f855 3b04 ldr.w r3, [r5], #4 801455e: 4798 blx r3 8014560: 3601 adds r6, #1 8014562: e7f2 b.n 801454a <__libc_init_array+0x1e> 8014564: 080173a4 .word 0x080173a4 8014568: 080173a4 .word 0x080173a4 801456c: 080173a4 .word 0x080173a4 8014570: 080173a8 .word 0x080173a8 08014574 <__retarget_lock_init_recursive>: 8014574: 4770 bx lr 08014576 <__retarget_lock_acquire_recursive>: 8014576: 4770 bx lr 08014578 <__retarget_lock_release_recursive>: 8014578: 4770 bx lr ... 0801457c <_localeconv_r>: 801457c: 4800 ldr r0, [pc, #0] @ (8014580 <_localeconv_r+0x4>) 801457e: 4770 bx lr 8014580: 200001c0 .word 0x200001c0 08014584 : 8014584: 4603 mov r3, r0 8014586: b510 push {r4, lr} 8014588: b2c9 uxtb r1, r1 801458a: 4402 add r2, r0 801458c: 4293 cmp r3, r2 801458e: 4618 mov r0, r3 8014590: d101 bne.n 8014596 8014592: 2000 movs r0, #0 8014594: e003 b.n 801459e 8014596: 7804 ldrb r4, [r0, #0] 8014598: 3301 adds r3, #1 801459a: 428c cmp r4, r1 801459c: d1f6 bne.n 801458c 801459e: bd10 pop {r4, pc} 080145a0 : 80145a0: 440a add r2, r1 80145a2: 4291 cmp r1, r2 80145a4: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff 80145a8: d100 bne.n 80145ac 80145aa: 4770 bx lr 80145ac: b510 push {r4, lr} 80145ae: f811 4b01 ldrb.w r4, [r1], #1 80145b2: 4291 cmp r1, r2 80145b4: f803 4f01 strb.w r4, [r3, #1]! 80145b8: d1f9 bne.n 80145ae 80145ba: bd10 pop {r4, pc} 080145bc <__assert_func>: 80145bc: b51f push {r0, r1, r2, r3, r4, lr} 80145be: 4614 mov r4, r2 80145c0: 461a mov r2, r3 80145c2: 4b09 ldr r3, [pc, #36] @ (80145e8 <__assert_func+0x2c>) 80145c4: 4605 mov r5, r0 80145c6: 681b ldr r3, [r3, #0] 80145c8: 68d8 ldr r0, [r3, #12] 80145ca: b14c cbz r4, 80145e0 <__assert_func+0x24> 80145cc: 4b07 ldr r3, [pc, #28] @ (80145ec <__assert_func+0x30>) 80145ce: e9cd 3401 strd r3, r4, [sp, #4] 80145d2: 9100 str r1, [sp, #0] 80145d4: 462b mov r3, r5 80145d6: 4906 ldr r1, [pc, #24] @ (80145f0 <__assert_func+0x34>) 80145d8: f001 fe1e bl 8016218 80145dc: f001 ffe4 bl 80165a8 80145e0: 4b04 ldr r3, [pc, #16] @ (80145f4 <__assert_func+0x38>) 80145e2: 461c mov r4, r3 80145e4: e7f3 b.n 80145ce <__assert_func+0x12> 80145e6: bf00 nop 80145e8: 20000080 .word 0x20000080 80145ec: 08017058 .word 0x08017058 80145f0: 08017065 .word 0x08017065 80145f4: 08017093 .word 0x08017093 080145f8 : 80145f8: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 80145fc: 6903 ldr r3, [r0, #16] 80145fe: 690c ldr r4, [r1, #16] 8014600: 4607 mov r7, r0 8014602: 42a3 cmp r3, r4 8014604: db7e blt.n 8014704 8014606: 3c01 subs r4, #1 8014608: 00a3 lsls r3, r4, #2 801460a: f100 0514 add.w r5, r0, #20 801460e: f101 0814 add.w r8, r1, #20 8014612: 9300 str r3, [sp, #0] 8014614: eb05 0384 add.w r3, r5, r4, lsl #2 8014618: 9301 str r3, [sp, #4] 801461a: f858 3024 ldr.w r3, [r8, r4, lsl #2] 801461e: f855 2024 ldr.w r2, [r5, r4, lsl #2] 8014622: 3301 adds r3, #1 8014624: 429a cmp r2, r3 8014626: fbb2 f6f3 udiv r6, r2, r3 801462a: eb08 0984 add.w r9, r8, r4, lsl #2 801462e: d32e bcc.n 801468e 8014630: f04f 0a00 mov.w sl, #0 8014634: 46c4 mov ip, r8 8014636: 46ae mov lr, r5 8014638: 46d3 mov fp, sl 801463a: f85c 3b04 ldr.w r3, [ip], #4 801463e: b298 uxth r0, r3 8014640: fb06 a000 mla r0, r6, r0, sl 8014644: 0c1b lsrs r3, r3, #16 8014646: 0c02 lsrs r2, r0, #16 8014648: fb06 2303 mla r3, r6, r3, r2 801464c: f8de 2000 ldr.w r2, [lr] 8014650: b280 uxth r0, r0 8014652: b292 uxth r2, r2 8014654: 1a12 subs r2, r2, r0 8014656: 445a add r2, fp 8014658: f8de 0000 ldr.w r0, [lr] 801465c: ea4f 4a13 mov.w sl, r3, lsr #16 8014660: b29b uxth r3, r3 8014662: ebc3 4322 rsb r3, r3, r2, asr #16 8014666: eb03 4310 add.w r3, r3, r0, lsr #16 801466a: b292 uxth r2, r2 801466c: ea42 4203 orr.w r2, r2, r3, lsl #16 8014670: 45e1 cmp r9, ip 8014672: ea4f 4b23 mov.w fp, r3, asr #16 8014676: f84e 2b04 str.w r2, [lr], #4 801467a: d2de bcs.n 801463a 801467c: 9b00 ldr r3, [sp, #0] 801467e: 58eb ldr r3, [r5, r3] 8014680: b92b cbnz r3, 801468e 8014682: 9b01 ldr r3, [sp, #4] 8014684: 3b04 subs r3, #4 8014686: 429d cmp r5, r3 8014688: 461a mov r2, r3 801468a: d32f bcc.n 80146ec 801468c: 613c str r4, [r7, #16] 801468e: 4638 mov r0, r7 8014690: f001 fc76 bl 8015f80 <__mcmp> 8014694: 2800 cmp r0, #0 8014696: db25 blt.n 80146e4 8014698: 4629 mov r1, r5 801469a: 2000 movs r0, #0 801469c: f858 2b04 ldr.w r2, [r8], #4 80146a0: f8d1 c000 ldr.w ip, [r1] 80146a4: fa1f fe82 uxth.w lr, r2 80146a8: fa1f f38c uxth.w r3, ip 80146ac: eba3 030e sub.w r3, r3, lr 80146b0: 4403 add r3, r0 80146b2: 0c12 lsrs r2, r2, #16 80146b4: ebc2 4223 rsb r2, r2, r3, asr #16 80146b8: eb02 421c add.w r2, r2, ip, lsr #16 80146bc: b29b uxth r3, r3 80146be: ea43 4302 orr.w r3, r3, r2, lsl #16 80146c2: 45c1 cmp r9, r8 80146c4: ea4f 4022 mov.w r0, r2, asr #16 80146c8: f841 3b04 str.w r3, [r1], #4 80146cc: d2e6 bcs.n 801469c 80146ce: f855 2024 ldr.w r2, [r5, r4, lsl #2] 80146d2: eb05 0384 add.w r3, r5, r4, lsl #2 80146d6: b922 cbnz r2, 80146e2 80146d8: 3b04 subs r3, #4 80146da: 429d cmp r5, r3 80146dc: 461a mov r2, r3 80146de: d30b bcc.n 80146f8 80146e0: 613c str r4, [r7, #16] 80146e2: 3601 adds r6, #1 80146e4: 4630 mov r0, r6 80146e6: b003 add sp, #12 80146e8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80146ec: 6812 ldr r2, [r2, #0] 80146ee: 3b04 subs r3, #4 80146f0: 2a00 cmp r2, #0 80146f2: d1cb bne.n 801468c 80146f4: 3c01 subs r4, #1 80146f6: e7c6 b.n 8014686 80146f8: 6812 ldr r2, [r2, #0] 80146fa: 3b04 subs r3, #4 80146fc: 2a00 cmp r2, #0 80146fe: d1ef bne.n 80146e0 8014700: 3c01 subs r4, #1 8014702: e7ea b.n 80146da 8014704: 2000 movs r0, #0 8014706: e7ee b.n 80146e6 08014708 <_dtoa_r>: 8014708: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 801470c: 4614 mov r4, r2 801470e: 461d mov r5, r3 8014710: 69c7 ldr r7, [r0, #28] 8014712: b097 sub sp, #92 @ 0x5c 8014714: 4681 mov r9, r0 8014716: e9cd 4506 strd r4, r5, [sp, #24] 801471a: 9e23 ldr r6, [sp, #140] @ 0x8c 801471c: b97f cbnz r7, 801473e <_dtoa_r+0x36> 801471e: 2010 movs r0, #16 8014720: f001 f85e bl 80157e0 8014724: 4602 mov r2, r0 8014726: f8c9 001c str.w r0, [r9, #28] 801472a: b920 cbnz r0, 8014736 <_dtoa_r+0x2e> 801472c: 21ef movs r1, #239 @ 0xef 801472e: 4bac ldr r3, [pc, #688] @ (80149e0 <_dtoa_r+0x2d8>) 8014730: 48ac ldr r0, [pc, #688] @ (80149e4 <_dtoa_r+0x2dc>) 8014732: f7ff ff43 bl 80145bc <__assert_func> 8014736: e9c0 7701 strd r7, r7, [r0, #4] 801473a: 6007 str r7, [r0, #0] 801473c: 60c7 str r7, [r0, #12] 801473e: f8d9 301c ldr.w r3, [r9, #28] 8014742: 6819 ldr r1, [r3, #0] 8014744: b159 cbz r1, 801475e <_dtoa_r+0x56> 8014746: 685a ldr r2, [r3, #4] 8014748: 2301 movs r3, #1 801474a: 4093 lsls r3, r2 801474c: 604a str r2, [r1, #4] 801474e: 608b str r3, [r1, #8] 8014750: 4648 mov r0, r9 8014752: f001 f9e3 bl 8015b1c <_Bfree> 8014756: 2200 movs r2, #0 8014758: f8d9 301c ldr.w r3, [r9, #28] 801475c: 601a str r2, [r3, #0] 801475e: 1e2b subs r3, r5, #0 8014760: bfaf iteee ge 8014762: 2300 movge r3, #0 8014764: 2201 movlt r2, #1 8014766: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000 801476a: 9307 strlt r3, [sp, #28] 801476c: bfa8 it ge 801476e: 6033 strge r3, [r6, #0] 8014770: f8dd 801c ldr.w r8, [sp, #28] 8014774: 4b9c ldr r3, [pc, #624] @ (80149e8 <_dtoa_r+0x2e0>) 8014776: bfb8 it lt 8014778: 6032 strlt r2, [r6, #0] 801477a: ea33 0308 bics.w r3, r3, r8 801477e: d112 bne.n 80147a6 <_dtoa_r+0x9e> 8014780: f242 730f movw r3, #9999 @ 0x270f 8014784: 9a22 ldr r2, [sp, #136] @ 0x88 8014786: 6013 str r3, [r2, #0] 8014788: f3c8 0313 ubfx r3, r8, #0, #20 801478c: 4323 orrs r3, r4 801478e: f000 855e beq.w 801524e <_dtoa_r+0xb46> 8014792: 9b24 ldr r3, [sp, #144] @ 0x90 8014794: f8df a254 ldr.w sl, [pc, #596] @ 80149ec <_dtoa_r+0x2e4> 8014798: 2b00 cmp r3, #0 801479a: f000 8560 beq.w 801525e <_dtoa_r+0xb56> 801479e: f10a 0303 add.w r3, sl, #3 80147a2: f000 bd5a b.w 801525a <_dtoa_r+0xb52> 80147a6: e9dd 2306 ldrd r2, r3, [sp, #24] 80147aa: e9cd 230c strd r2, r3, [sp, #48] @ 0x30 80147ae: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 80147b2: 2200 movs r2, #0 80147b4: 2300 movs r3, #0 80147b6: f7f4 f963 bl 8008a80 <__aeabi_dcmpeq> 80147ba: 4607 mov r7, r0 80147bc: b158 cbz r0, 80147d6 <_dtoa_r+0xce> 80147be: 2301 movs r3, #1 80147c0: 9a22 ldr r2, [sp, #136] @ 0x88 80147c2: 6013 str r3, [r2, #0] 80147c4: 9b24 ldr r3, [sp, #144] @ 0x90 80147c6: b113 cbz r3, 80147ce <_dtoa_r+0xc6> 80147c8: 4b89 ldr r3, [pc, #548] @ (80149f0 <_dtoa_r+0x2e8>) 80147ca: 9a24 ldr r2, [sp, #144] @ 0x90 80147cc: 6013 str r3, [r2, #0] 80147ce: f8df a224 ldr.w sl, [pc, #548] @ 80149f4 <_dtoa_r+0x2ec> 80147d2: f000 bd44 b.w 801525e <_dtoa_r+0xb56> 80147d6: ab14 add r3, sp, #80 @ 0x50 80147d8: 9301 str r3, [sp, #4] 80147da: ab15 add r3, sp, #84 @ 0x54 80147dc: 9300 str r3, [sp, #0] 80147de: 4648 mov r0, r9 80147e0: e9dd 230c ldrd r2, r3, [sp, #48] @ 0x30 80147e4: f001 fc7c bl 80160e0 <__d2b> 80147e8: f3c8 560a ubfx r6, r8, #20, #11 80147ec: 9003 str r0, [sp, #12] 80147ee: 2e00 cmp r6, #0 80147f0: d078 beq.n 80148e4 <_dtoa_r+0x1dc> 80147f2: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 80147f6: 9b0d ldr r3, [sp, #52] @ 0x34 80147f8: f2a6 36ff subw r6, r6, #1023 @ 0x3ff 80147fc: f3c3 0313 ubfx r3, r3, #0, #20 8014800: f043 537f orr.w r3, r3, #1069547520 @ 0x3fc00000 8014804: f443 1340 orr.w r3, r3, #3145728 @ 0x300000 8014808: 9712 str r7, [sp, #72] @ 0x48 801480a: 4619 mov r1, r3 801480c: 2200 movs r2, #0 801480e: 4b7a ldr r3, [pc, #488] @ (80149f8 <_dtoa_r+0x2f0>) 8014810: f7f3 fd16 bl 8008240 <__aeabi_dsub> 8014814: a36c add r3, pc, #432 @ (adr r3, 80149c8 <_dtoa_r+0x2c0>) 8014816: e9d3 2300 ldrd r2, r3, [r3] 801481a: f7f3 fec9 bl 80085b0 <__aeabi_dmul> 801481e: a36c add r3, pc, #432 @ (adr r3, 80149d0 <_dtoa_r+0x2c8>) 8014820: e9d3 2300 ldrd r2, r3, [r3] 8014824: f7f3 fd0e bl 8008244 <__adddf3> 8014828: 4604 mov r4, r0 801482a: 4630 mov r0, r6 801482c: 460d mov r5, r1 801482e: f7f3 fe55 bl 80084dc <__aeabi_i2d> 8014832: a369 add r3, pc, #420 @ (adr r3, 80149d8 <_dtoa_r+0x2d0>) 8014834: e9d3 2300 ldrd r2, r3, [r3] 8014838: f7f3 feba bl 80085b0 <__aeabi_dmul> 801483c: 4602 mov r2, r0 801483e: 460b mov r3, r1 8014840: 4620 mov r0, r4 8014842: 4629 mov r1, r5 8014844: f7f3 fcfe bl 8008244 <__adddf3> 8014848: 4604 mov r4, r0 801484a: 460d mov r5, r1 801484c: f7f4 f960 bl 8008b10 <__aeabi_d2iz> 8014850: 2200 movs r2, #0 8014852: 4607 mov r7, r0 8014854: 2300 movs r3, #0 8014856: 4620 mov r0, r4 8014858: 4629 mov r1, r5 801485a: f7f4 f91b bl 8008a94 <__aeabi_dcmplt> 801485e: b140 cbz r0, 8014872 <_dtoa_r+0x16a> 8014860: 4638 mov r0, r7 8014862: f7f3 fe3b bl 80084dc <__aeabi_i2d> 8014866: 4622 mov r2, r4 8014868: 462b mov r3, r5 801486a: f7f4 f909 bl 8008a80 <__aeabi_dcmpeq> 801486e: b900 cbnz r0, 8014872 <_dtoa_r+0x16a> 8014870: 3f01 subs r7, #1 8014872: 2f16 cmp r7, #22 8014874: d854 bhi.n 8014920 <_dtoa_r+0x218> 8014876: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 801487a: 4b60 ldr r3, [pc, #384] @ (80149fc <_dtoa_r+0x2f4>) 801487c: eb03 03c7 add.w r3, r3, r7, lsl #3 8014880: e9d3 2300 ldrd r2, r3, [r3] 8014884: f7f4 f906 bl 8008a94 <__aeabi_dcmplt> 8014888: 2800 cmp r0, #0 801488a: d04b beq.n 8014924 <_dtoa_r+0x21c> 801488c: 2300 movs r3, #0 801488e: 3f01 subs r7, #1 8014890: 930f str r3, [sp, #60] @ 0x3c 8014892: 9b14 ldr r3, [sp, #80] @ 0x50 8014894: 1b9b subs r3, r3, r6 8014896: 1e5a subs r2, r3, #1 8014898: bf49 itett mi 801489a: f1c3 0301 rsbmi r3, r3, #1 801489e: 2300 movpl r3, #0 80148a0: 9304 strmi r3, [sp, #16] 80148a2: 2300 movmi r3, #0 80148a4: 9209 str r2, [sp, #36] @ 0x24 80148a6: bf54 ite pl 80148a8: 9304 strpl r3, [sp, #16] 80148aa: 9309 strmi r3, [sp, #36] @ 0x24 80148ac: 2f00 cmp r7, #0 80148ae: db3b blt.n 8014928 <_dtoa_r+0x220> 80148b0: 9b09 ldr r3, [sp, #36] @ 0x24 80148b2: 970e str r7, [sp, #56] @ 0x38 80148b4: 443b add r3, r7 80148b6: 9309 str r3, [sp, #36] @ 0x24 80148b8: 2300 movs r3, #0 80148ba: 930a str r3, [sp, #40] @ 0x28 80148bc: 9b20 ldr r3, [sp, #128] @ 0x80 80148be: 2b09 cmp r3, #9 80148c0: d865 bhi.n 801498e <_dtoa_r+0x286> 80148c2: 2b05 cmp r3, #5 80148c4: bfc4 itt gt 80148c6: 3b04 subgt r3, #4 80148c8: 9320 strgt r3, [sp, #128] @ 0x80 80148ca: 9b20 ldr r3, [sp, #128] @ 0x80 80148cc: bfc8 it gt 80148ce: 2400 movgt r4, #0 80148d0: f1a3 0302 sub.w r3, r3, #2 80148d4: bfd8 it le 80148d6: 2401 movle r4, #1 80148d8: 2b03 cmp r3, #3 80148da: d864 bhi.n 80149a6 <_dtoa_r+0x29e> 80148dc: e8df f003 tbb [pc, r3] 80148e0: 2c385553 .word 0x2c385553 80148e4: e9dd 6314 ldrd r6, r3, [sp, #80] @ 0x50 80148e8: 441e add r6, r3 80148ea: f206 4332 addw r3, r6, #1074 @ 0x432 80148ee: 2b20 cmp r3, #32 80148f0: bfc1 itttt gt 80148f2: f1c3 0340 rsbgt r3, r3, #64 @ 0x40 80148f6: fa08 f803 lslgt.w r8, r8, r3 80148fa: f206 4312 addwgt r3, r6, #1042 @ 0x412 80148fe: fa24 f303 lsrgt.w r3, r4, r3 8014902: bfd6 itet le 8014904: f1c3 0320 rsble r3, r3, #32 8014908: ea48 0003 orrgt.w r0, r8, r3 801490c: fa04 f003 lslle.w r0, r4, r3 8014910: f7f3 fdd4 bl 80084bc <__aeabi_ui2d> 8014914: 2201 movs r2, #1 8014916: f1a1 73f8 sub.w r3, r1, #32505856 @ 0x1f00000 801491a: 3e01 subs r6, #1 801491c: 9212 str r2, [sp, #72] @ 0x48 801491e: e774 b.n 801480a <_dtoa_r+0x102> 8014920: 2301 movs r3, #1 8014922: e7b5 b.n 8014890 <_dtoa_r+0x188> 8014924: 900f str r0, [sp, #60] @ 0x3c 8014926: e7b4 b.n 8014892 <_dtoa_r+0x18a> 8014928: 9b04 ldr r3, [sp, #16] 801492a: 1bdb subs r3, r3, r7 801492c: 9304 str r3, [sp, #16] 801492e: 427b negs r3, r7 8014930: 930a str r3, [sp, #40] @ 0x28 8014932: 2300 movs r3, #0 8014934: 930e str r3, [sp, #56] @ 0x38 8014936: e7c1 b.n 80148bc <_dtoa_r+0x1b4> 8014938: 2301 movs r3, #1 801493a: 930b str r3, [sp, #44] @ 0x2c 801493c: 9b21 ldr r3, [sp, #132] @ 0x84 801493e: eb07 0b03 add.w fp, r7, r3 8014942: f10b 0301 add.w r3, fp, #1 8014946: 2b01 cmp r3, #1 8014948: 9308 str r3, [sp, #32] 801494a: bfb8 it lt 801494c: 2301 movlt r3, #1 801494e: e006 b.n 801495e <_dtoa_r+0x256> 8014950: 2301 movs r3, #1 8014952: 930b str r3, [sp, #44] @ 0x2c 8014954: 9b21 ldr r3, [sp, #132] @ 0x84 8014956: 2b00 cmp r3, #0 8014958: dd28 ble.n 80149ac <_dtoa_r+0x2a4> 801495a: 469b mov fp, r3 801495c: 9308 str r3, [sp, #32] 801495e: 2100 movs r1, #0 8014960: 2204 movs r2, #4 8014962: f8d9 001c ldr.w r0, [r9, #28] 8014966: f102 0514 add.w r5, r2, #20 801496a: 429d cmp r5, r3 801496c: d926 bls.n 80149bc <_dtoa_r+0x2b4> 801496e: 6041 str r1, [r0, #4] 8014970: 4648 mov r0, r9 8014972: f001 f893 bl 8015a9c <_Balloc> 8014976: 4682 mov sl, r0 8014978: 2800 cmp r0, #0 801497a: d143 bne.n 8014a04 <_dtoa_r+0x2fc> 801497c: 4602 mov r2, r0 801497e: f240 11af movw r1, #431 @ 0x1af 8014982: 4b1f ldr r3, [pc, #124] @ (8014a00 <_dtoa_r+0x2f8>) 8014984: e6d4 b.n 8014730 <_dtoa_r+0x28> 8014986: 2300 movs r3, #0 8014988: e7e3 b.n 8014952 <_dtoa_r+0x24a> 801498a: 2300 movs r3, #0 801498c: e7d5 b.n 801493a <_dtoa_r+0x232> 801498e: 2401 movs r4, #1 8014990: 2300 movs r3, #0 8014992: 940b str r4, [sp, #44] @ 0x2c 8014994: 9320 str r3, [sp, #128] @ 0x80 8014996: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff 801499a: 2200 movs r2, #0 801499c: 2312 movs r3, #18 801499e: f8cd b020 str.w fp, [sp, #32] 80149a2: 9221 str r2, [sp, #132] @ 0x84 80149a4: e7db b.n 801495e <_dtoa_r+0x256> 80149a6: 2301 movs r3, #1 80149a8: 930b str r3, [sp, #44] @ 0x2c 80149aa: e7f4 b.n 8014996 <_dtoa_r+0x28e> 80149ac: f04f 0b01 mov.w fp, #1 80149b0: 465b mov r3, fp 80149b2: f8cd b020 str.w fp, [sp, #32] 80149b6: f8cd b084 str.w fp, [sp, #132] @ 0x84 80149ba: e7d0 b.n 801495e <_dtoa_r+0x256> 80149bc: 3101 adds r1, #1 80149be: 0052 lsls r2, r2, #1 80149c0: e7d1 b.n 8014966 <_dtoa_r+0x25e> 80149c2: bf00 nop 80149c4: f3af 8000 nop.w 80149c8: 636f4361 .word 0x636f4361 80149cc: 3fd287a7 .word 0x3fd287a7 80149d0: 8b60c8b3 .word 0x8b60c8b3 80149d4: 3fc68a28 .word 0x3fc68a28 80149d8: 509f79fb .word 0x509f79fb 80149dc: 3fd34413 .word 0x3fd34413 80149e0: 080170a1 .word 0x080170a1 80149e4: 080170b8 .word 0x080170b8 80149e8: 7ff00000 .word 0x7ff00000 80149ec: 0801709d .word 0x0801709d 80149f0: 08017035 .word 0x08017035 80149f4: 08017034 .word 0x08017034 80149f8: 3ff80000 .word 0x3ff80000 80149fc: 080171d0 .word 0x080171d0 8014a00: 08017110 .word 0x08017110 8014a04: f8d9 301c ldr.w r3, [r9, #28] 8014a08: 6018 str r0, [r3, #0] 8014a0a: 9b08 ldr r3, [sp, #32] 8014a0c: 2b0e cmp r3, #14 8014a0e: f200 80a1 bhi.w 8014b54 <_dtoa_r+0x44c> 8014a12: 2c00 cmp r4, #0 8014a14: f000 809e beq.w 8014b54 <_dtoa_r+0x44c> 8014a18: 2f00 cmp r7, #0 8014a1a: dd33 ble.n 8014a84 <_dtoa_r+0x37c> 8014a1c: 4b9c ldr r3, [pc, #624] @ (8014c90 <_dtoa_r+0x588>) 8014a1e: f007 020f and.w r2, r7, #15 8014a22: eb03 03c2 add.w r3, r3, r2, lsl #3 8014a26: 05f8 lsls r0, r7, #23 8014a28: e9d3 3400 ldrd r3, r4, [r3] 8014a2c: e9cd 3410 strd r3, r4, [sp, #64] @ 0x40 8014a30: ea4f 1427 mov.w r4, r7, asr #4 8014a34: d516 bpl.n 8014a64 <_dtoa_r+0x35c> 8014a36: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014a3a: 4b96 ldr r3, [pc, #600] @ (8014c94 <_dtoa_r+0x58c>) 8014a3c: 2603 movs r6, #3 8014a3e: e9d3 2308 ldrd r2, r3, [r3, #32] 8014a42: f7f3 fedf bl 8008804 <__aeabi_ddiv> 8014a46: e9cd 0106 strd r0, r1, [sp, #24] 8014a4a: f004 040f and.w r4, r4, #15 8014a4e: 4d91 ldr r5, [pc, #580] @ (8014c94 <_dtoa_r+0x58c>) 8014a50: b954 cbnz r4, 8014a68 <_dtoa_r+0x360> 8014a52: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014a56: e9dd 0106 ldrd r0, r1, [sp, #24] 8014a5a: f7f3 fed3 bl 8008804 <__aeabi_ddiv> 8014a5e: e9cd 0106 strd r0, r1, [sp, #24] 8014a62: e028 b.n 8014ab6 <_dtoa_r+0x3ae> 8014a64: 2602 movs r6, #2 8014a66: e7f2 b.n 8014a4e <_dtoa_r+0x346> 8014a68: 07e1 lsls r1, r4, #31 8014a6a: d508 bpl.n 8014a7e <_dtoa_r+0x376> 8014a6c: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8014a70: e9d5 2300 ldrd r2, r3, [r5] 8014a74: f7f3 fd9c bl 80085b0 <__aeabi_dmul> 8014a78: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014a7c: 3601 adds r6, #1 8014a7e: 1064 asrs r4, r4, #1 8014a80: 3508 adds r5, #8 8014a82: e7e5 b.n 8014a50 <_dtoa_r+0x348> 8014a84: f000 80af beq.w 8014be6 <_dtoa_r+0x4de> 8014a88: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014a8c: 427c negs r4, r7 8014a8e: 4b80 ldr r3, [pc, #512] @ (8014c90 <_dtoa_r+0x588>) 8014a90: f004 020f and.w r2, r4, #15 8014a94: eb03 03c2 add.w r3, r3, r2, lsl #3 8014a98: e9d3 2300 ldrd r2, r3, [r3] 8014a9c: f7f3 fd88 bl 80085b0 <__aeabi_dmul> 8014aa0: 2602 movs r6, #2 8014aa2: 2300 movs r3, #0 8014aa4: e9cd 0106 strd r0, r1, [sp, #24] 8014aa8: 4d7a ldr r5, [pc, #488] @ (8014c94 <_dtoa_r+0x58c>) 8014aaa: 1124 asrs r4, r4, #4 8014aac: 2c00 cmp r4, #0 8014aae: f040 808f bne.w 8014bd0 <_dtoa_r+0x4c8> 8014ab2: 2b00 cmp r3, #0 8014ab4: d1d3 bne.n 8014a5e <_dtoa_r+0x356> 8014ab6: e9dd 4506 ldrd r4, r5, [sp, #24] 8014aba: 9b0f ldr r3, [sp, #60] @ 0x3c 8014abc: 2b00 cmp r3, #0 8014abe: f000 8094 beq.w 8014bea <_dtoa_r+0x4e2> 8014ac2: 2200 movs r2, #0 8014ac4: 4620 mov r0, r4 8014ac6: 4629 mov r1, r5 8014ac8: 4b73 ldr r3, [pc, #460] @ (8014c98 <_dtoa_r+0x590>) 8014aca: f7f3 ffe3 bl 8008a94 <__aeabi_dcmplt> 8014ace: 2800 cmp r0, #0 8014ad0: f000 808b beq.w 8014bea <_dtoa_r+0x4e2> 8014ad4: 9b08 ldr r3, [sp, #32] 8014ad6: 2b00 cmp r3, #0 8014ad8: f000 8087 beq.w 8014bea <_dtoa_r+0x4e2> 8014adc: f1bb 0f00 cmp.w fp, #0 8014ae0: dd34 ble.n 8014b4c <_dtoa_r+0x444> 8014ae2: 4620 mov r0, r4 8014ae4: 2200 movs r2, #0 8014ae6: 4629 mov r1, r5 8014ae8: 4b6c ldr r3, [pc, #432] @ (8014c9c <_dtoa_r+0x594>) 8014aea: f7f3 fd61 bl 80085b0 <__aeabi_dmul> 8014aee: 465c mov r4, fp 8014af0: e9cd 0106 strd r0, r1, [sp, #24] 8014af4: f107 38ff add.w r8, r7, #4294967295 @ 0xffffffff 8014af8: 3601 adds r6, #1 8014afa: 4630 mov r0, r6 8014afc: f7f3 fcee bl 80084dc <__aeabi_i2d> 8014b00: e9dd 2306 ldrd r2, r3, [sp, #24] 8014b04: f7f3 fd54 bl 80085b0 <__aeabi_dmul> 8014b08: 2200 movs r2, #0 8014b0a: 4b65 ldr r3, [pc, #404] @ (8014ca0 <_dtoa_r+0x598>) 8014b0c: f7f3 fb9a bl 8008244 <__adddf3> 8014b10: 4605 mov r5, r0 8014b12: f1a1 7650 sub.w r6, r1, #54525952 @ 0x3400000 8014b16: 2c00 cmp r4, #0 8014b18: d16a bne.n 8014bf0 <_dtoa_r+0x4e8> 8014b1a: e9dd 0106 ldrd r0, r1, [sp, #24] 8014b1e: 2200 movs r2, #0 8014b20: 4b60 ldr r3, [pc, #384] @ (8014ca4 <_dtoa_r+0x59c>) 8014b22: f7f3 fb8d bl 8008240 <__aeabi_dsub> 8014b26: 4602 mov r2, r0 8014b28: 460b mov r3, r1 8014b2a: e9cd 2306 strd r2, r3, [sp, #24] 8014b2e: 462a mov r2, r5 8014b30: 4633 mov r3, r6 8014b32: f7f3 ffcd bl 8008ad0 <__aeabi_dcmpgt> 8014b36: 2800 cmp r0, #0 8014b38: f040 8298 bne.w 801506c <_dtoa_r+0x964> 8014b3c: e9dd 0106 ldrd r0, r1, [sp, #24] 8014b40: 462a mov r2, r5 8014b42: f106 4300 add.w r3, r6, #2147483648 @ 0x80000000 8014b46: f7f3 ffa5 bl 8008a94 <__aeabi_dcmplt> 8014b4a: bb38 cbnz r0, 8014b9c <_dtoa_r+0x494> 8014b4c: e9dd 340c ldrd r3, r4, [sp, #48] @ 0x30 8014b50: e9cd 3406 strd r3, r4, [sp, #24] 8014b54: 9b15 ldr r3, [sp, #84] @ 0x54 8014b56: 2b00 cmp r3, #0 8014b58: f2c0 8157 blt.w 8014e0a <_dtoa_r+0x702> 8014b5c: 2f0e cmp r7, #14 8014b5e: f300 8154 bgt.w 8014e0a <_dtoa_r+0x702> 8014b62: 4b4b ldr r3, [pc, #300] @ (8014c90 <_dtoa_r+0x588>) 8014b64: eb03 03c7 add.w r3, r3, r7, lsl #3 8014b68: e9d3 3400 ldrd r3, r4, [r3] 8014b6c: e9cd 3404 strd r3, r4, [sp, #16] 8014b70: 9b21 ldr r3, [sp, #132] @ 0x84 8014b72: 2b00 cmp r3, #0 8014b74: f280 80e5 bge.w 8014d42 <_dtoa_r+0x63a> 8014b78: 9b08 ldr r3, [sp, #32] 8014b7a: 2b00 cmp r3, #0 8014b7c: f300 80e1 bgt.w 8014d42 <_dtoa_r+0x63a> 8014b80: d10c bne.n 8014b9c <_dtoa_r+0x494> 8014b82: e9dd 0104 ldrd r0, r1, [sp, #16] 8014b86: 2200 movs r2, #0 8014b88: 4b46 ldr r3, [pc, #280] @ (8014ca4 <_dtoa_r+0x59c>) 8014b8a: f7f3 fd11 bl 80085b0 <__aeabi_dmul> 8014b8e: e9dd 2306 ldrd r2, r3, [sp, #24] 8014b92: f7f3 ff93 bl 8008abc <__aeabi_dcmpge> 8014b96: 2800 cmp r0, #0 8014b98: f000 8266 beq.w 8015068 <_dtoa_r+0x960> 8014b9c: 2400 movs r4, #0 8014b9e: 4625 mov r5, r4 8014ba0: 9b21 ldr r3, [sp, #132] @ 0x84 8014ba2: 4656 mov r6, sl 8014ba4: ea6f 0803 mvn.w r8, r3 8014ba8: 2700 movs r7, #0 8014baa: 4621 mov r1, r4 8014bac: 4648 mov r0, r9 8014bae: f000 ffb5 bl 8015b1c <_Bfree> 8014bb2: 2d00 cmp r5, #0 8014bb4: f000 80bd beq.w 8014d32 <_dtoa_r+0x62a> 8014bb8: b12f cbz r7, 8014bc6 <_dtoa_r+0x4be> 8014bba: 42af cmp r7, r5 8014bbc: d003 beq.n 8014bc6 <_dtoa_r+0x4be> 8014bbe: 4639 mov r1, r7 8014bc0: 4648 mov r0, r9 8014bc2: f000 ffab bl 8015b1c <_Bfree> 8014bc6: 4629 mov r1, r5 8014bc8: 4648 mov r0, r9 8014bca: f000 ffa7 bl 8015b1c <_Bfree> 8014bce: e0b0 b.n 8014d32 <_dtoa_r+0x62a> 8014bd0: 07e2 lsls r2, r4, #31 8014bd2: d505 bpl.n 8014be0 <_dtoa_r+0x4d8> 8014bd4: e9d5 2300 ldrd r2, r3, [r5] 8014bd8: f7f3 fcea bl 80085b0 <__aeabi_dmul> 8014bdc: 2301 movs r3, #1 8014bde: 3601 adds r6, #1 8014be0: 1064 asrs r4, r4, #1 8014be2: 3508 adds r5, #8 8014be4: e762 b.n 8014aac <_dtoa_r+0x3a4> 8014be6: 2602 movs r6, #2 8014be8: e765 b.n 8014ab6 <_dtoa_r+0x3ae> 8014bea: 46b8 mov r8, r7 8014bec: 9c08 ldr r4, [sp, #32] 8014bee: e784 b.n 8014afa <_dtoa_r+0x3f2> 8014bf0: 4b27 ldr r3, [pc, #156] @ (8014c90 <_dtoa_r+0x588>) 8014bf2: 990b ldr r1, [sp, #44] @ 0x2c 8014bf4: eb03 03c4 add.w r3, r3, r4, lsl #3 8014bf8: e953 2302 ldrd r2, r3, [r3, #-8] 8014bfc: 4454 add r4, sl 8014bfe: 2900 cmp r1, #0 8014c00: d054 beq.n 8014cac <_dtoa_r+0x5a4> 8014c02: 2000 movs r0, #0 8014c04: 4928 ldr r1, [pc, #160] @ (8014ca8 <_dtoa_r+0x5a0>) 8014c06: f7f3 fdfd bl 8008804 <__aeabi_ddiv> 8014c0a: 4633 mov r3, r6 8014c0c: 462a mov r2, r5 8014c0e: f7f3 fb17 bl 8008240 <__aeabi_dsub> 8014c12: 4656 mov r6, sl 8014c14: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014c18: e9dd 0106 ldrd r0, r1, [sp, #24] 8014c1c: f7f3 ff78 bl 8008b10 <__aeabi_d2iz> 8014c20: 4605 mov r5, r0 8014c22: f7f3 fc5b bl 80084dc <__aeabi_i2d> 8014c26: 4602 mov r2, r0 8014c28: 460b mov r3, r1 8014c2a: e9dd 0106 ldrd r0, r1, [sp, #24] 8014c2e: f7f3 fb07 bl 8008240 <__aeabi_dsub> 8014c32: 4602 mov r2, r0 8014c34: 460b mov r3, r1 8014c36: 3530 adds r5, #48 @ 0x30 8014c38: e9cd 2306 strd r2, r3, [sp, #24] 8014c3c: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014c40: f806 5b01 strb.w r5, [r6], #1 8014c44: f7f3 ff26 bl 8008a94 <__aeabi_dcmplt> 8014c48: 2800 cmp r0, #0 8014c4a: d172 bne.n 8014d32 <_dtoa_r+0x62a> 8014c4c: e9dd 2306 ldrd r2, r3, [sp, #24] 8014c50: 2000 movs r0, #0 8014c52: 4911 ldr r1, [pc, #68] @ (8014c98 <_dtoa_r+0x590>) 8014c54: f7f3 faf4 bl 8008240 <__aeabi_dsub> 8014c58: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014c5c: f7f3 ff1a bl 8008a94 <__aeabi_dcmplt> 8014c60: 2800 cmp r0, #0 8014c62: f040 80b4 bne.w 8014dce <_dtoa_r+0x6c6> 8014c66: 42a6 cmp r6, r4 8014c68: f43f af70 beq.w 8014b4c <_dtoa_r+0x444> 8014c6c: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8014c70: 2200 movs r2, #0 8014c72: 4b0a ldr r3, [pc, #40] @ (8014c9c <_dtoa_r+0x594>) 8014c74: f7f3 fc9c bl 80085b0 <__aeabi_dmul> 8014c78: 2200 movs r2, #0 8014c7a: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014c7e: e9dd 0106 ldrd r0, r1, [sp, #24] 8014c82: 4b06 ldr r3, [pc, #24] @ (8014c9c <_dtoa_r+0x594>) 8014c84: f7f3 fc94 bl 80085b0 <__aeabi_dmul> 8014c88: e9cd 0106 strd r0, r1, [sp, #24] 8014c8c: e7c4 b.n 8014c18 <_dtoa_r+0x510> 8014c8e: bf00 nop 8014c90: 080171d0 .word 0x080171d0 8014c94: 080171a8 .word 0x080171a8 8014c98: 3ff00000 .word 0x3ff00000 8014c9c: 40240000 .word 0x40240000 8014ca0: 401c0000 .word 0x401c0000 8014ca4: 40140000 .word 0x40140000 8014ca8: 3fe00000 .word 0x3fe00000 8014cac: 4631 mov r1, r6 8014cae: 4628 mov r0, r5 8014cb0: f7f3 fc7e bl 80085b0 <__aeabi_dmul> 8014cb4: 4656 mov r6, sl 8014cb6: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8014cba: 9413 str r4, [sp, #76] @ 0x4c 8014cbc: e9dd 0106 ldrd r0, r1, [sp, #24] 8014cc0: f7f3 ff26 bl 8008b10 <__aeabi_d2iz> 8014cc4: 4605 mov r5, r0 8014cc6: f7f3 fc09 bl 80084dc <__aeabi_i2d> 8014cca: 4602 mov r2, r0 8014ccc: 460b mov r3, r1 8014cce: e9dd 0106 ldrd r0, r1, [sp, #24] 8014cd2: f7f3 fab5 bl 8008240 <__aeabi_dsub> 8014cd6: 4602 mov r2, r0 8014cd8: 460b mov r3, r1 8014cda: 3530 adds r5, #48 @ 0x30 8014cdc: f806 5b01 strb.w r5, [r6], #1 8014ce0: 42a6 cmp r6, r4 8014ce2: e9cd 2306 strd r2, r3, [sp, #24] 8014ce6: f04f 0200 mov.w r2, #0 8014cea: d124 bne.n 8014d36 <_dtoa_r+0x62e> 8014cec: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8014cf0: 4bae ldr r3, [pc, #696] @ (8014fac <_dtoa_r+0x8a4>) 8014cf2: f7f3 faa7 bl 8008244 <__adddf3> 8014cf6: 4602 mov r2, r0 8014cf8: 460b mov r3, r1 8014cfa: e9dd 0106 ldrd r0, r1, [sp, #24] 8014cfe: f7f3 fee7 bl 8008ad0 <__aeabi_dcmpgt> 8014d02: 2800 cmp r0, #0 8014d04: d163 bne.n 8014dce <_dtoa_r+0x6c6> 8014d06: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 8014d0a: 2000 movs r0, #0 8014d0c: 49a7 ldr r1, [pc, #668] @ (8014fac <_dtoa_r+0x8a4>) 8014d0e: f7f3 fa97 bl 8008240 <__aeabi_dsub> 8014d12: 4602 mov r2, r0 8014d14: 460b mov r3, r1 8014d16: e9dd 0106 ldrd r0, r1, [sp, #24] 8014d1a: f7f3 febb bl 8008a94 <__aeabi_dcmplt> 8014d1e: 2800 cmp r0, #0 8014d20: f43f af14 beq.w 8014b4c <_dtoa_r+0x444> 8014d24: 9e13 ldr r6, [sp, #76] @ 0x4c 8014d26: 1e73 subs r3, r6, #1 8014d28: 9313 str r3, [sp, #76] @ 0x4c 8014d2a: f816 3c01 ldrb.w r3, [r6, #-1] 8014d2e: 2b30 cmp r3, #48 @ 0x30 8014d30: d0f8 beq.n 8014d24 <_dtoa_r+0x61c> 8014d32: 4647 mov r7, r8 8014d34: e03b b.n 8014dae <_dtoa_r+0x6a6> 8014d36: 4b9e ldr r3, [pc, #632] @ (8014fb0 <_dtoa_r+0x8a8>) 8014d38: f7f3 fc3a bl 80085b0 <__aeabi_dmul> 8014d3c: e9cd 0106 strd r0, r1, [sp, #24] 8014d40: e7bc b.n 8014cbc <_dtoa_r+0x5b4> 8014d42: 4656 mov r6, sl 8014d44: e9dd 4506 ldrd r4, r5, [sp, #24] 8014d48: e9dd 2304 ldrd r2, r3, [sp, #16] 8014d4c: 4620 mov r0, r4 8014d4e: 4629 mov r1, r5 8014d50: f7f3 fd58 bl 8008804 <__aeabi_ddiv> 8014d54: f7f3 fedc bl 8008b10 <__aeabi_d2iz> 8014d58: 4680 mov r8, r0 8014d5a: f7f3 fbbf bl 80084dc <__aeabi_i2d> 8014d5e: e9dd 2304 ldrd r2, r3, [sp, #16] 8014d62: f7f3 fc25 bl 80085b0 <__aeabi_dmul> 8014d66: 4602 mov r2, r0 8014d68: 460b mov r3, r1 8014d6a: 4620 mov r0, r4 8014d6c: 4629 mov r1, r5 8014d6e: f7f3 fa67 bl 8008240 <__aeabi_dsub> 8014d72: f108 0430 add.w r4, r8, #48 @ 0x30 8014d76: 9d08 ldr r5, [sp, #32] 8014d78: f806 4b01 strb.w r4, [r6], #1 8014d7c: eba6 040a sub.w r4, r6, sl 8014d80: 42a5 cmp r5, r4 8014d82: 4602 mov r2, r0 8014d84: 460b mov r3, r1 8014d86: d133 bne.n 8014df0 <_dtoa_r+0x6e8> 8014d88: f7f3 fa5c bl 8008244 <__adddf3> 8014d8c: e9dd 2304 ldrd r2, r3, [sp, #16] 8014d90: 4604 mov r4, r0 8014d92: 460d mov r5, r1 8014d94: f7f3 fe9c bl 8008ad0 <__aeabi_dcmpgt> 8014d98: b9c0 cbnz r0, 8014dcc <_dtoa_r+0x6c4> 8014d9a: e9dd 2304 ldrd r2, r3, [sp, #16] 8014d9e: 4620 mov r0, r4 8014da0: 4629 mov r1, r5 8014da2: f7f3 fe6d bl 8008a80 <__aeabi_dcmpeq> 8014da6: b110 cbz r0, 8014dae <_dtoa_r+0x6a6> 8014da8: f018 0f01 tst.w r8, #1 8014dac: d10e bne.n 8014dcc <_dtoa_r+0x6c4> 8014dae: 4648 mov r0, r9 8014db0: 9903 ldr r1, [sp, #12] 8014db2: f000 feb3 bl 8015b1c <_Bfree> 8014db6: 2300 movs r3, #0 8014db8: 7033 strb r3, [r6, #0] 8014dba: 9b22 ldr r3, [sp, #136] @ 0x88 8014dbc: 3701 adds r7, #1 8014dbe: 601f str r7, [r3, #0] 8014dc0: 9b24 ldr r3, [sp, #144] @ 0x90 8014dc2: 2b00 cmp r3, #0 8014dc4: f000 824b beq.w 801525e <_dtoa_r+0xb56> 8014dc8: 601e str r6, [r3, #0] 8014dca: e248 b.n 801525e <_dtoa_r+0xb56> 8014dcc: 46b8 mov r8, r7 8014dce: 4633 mov r3, r6 8014dd0: 461e mov r6, r3 8014dd2: f813 2d01 ldrb.w r2, [r3, #-1]! 8014dd6: 2a39 cmp r2, #57 @ 0x39 8014dd8: d106 bne.n 8014de8 <_dtoa_r+0x6e0> 8014dda: 459a cmp sl, r3 8014ddc: d1f8 bne.n 8014dd0 <_dtoa_r+0x6c8> 8014dde: 2230 movs r2, #48 @ 0x30 8014de0: f108 0801 add.w r8, r8, #1 8014de4: f88a 2000 strb.w r2, [sl] 8014de8: 781a ldrb r2, [r3, #0] 8014dea: 3201 adds r2, #1 8014dec: 701a strb r2, [r3, #0] 8014dee: e7a0 b.n 8014d32 <_dtoa_r+0x62a> 8014df0: 2200 movs r2, #0 8014df2: 4b6f ldr r3, [pc, #444] @ (8014fb0 <_dtoa_r+0x8a8>) 8014df4: f7f3 fbdc bl 80085b0 <__aeabi_dmul> 8014df8: 2200 movs r2, #0 8014dfa: 2300 movs r3, #0 8014dfc: 4604 mov r4, r0 8014dfe: 460d mov r5, r1 8014e00: f7f3 fe3e bl 8008a80 <__aeabi_dcmpeq> 8014e04: 2800 cmp r0, #0 8014e06: d09f beq.n 8014d48 <_dtoa_r+0x640> 8014e08: e7d1 b.n 8014dae <_dtoa_r+0x6a6> 8014e0a: 9a0b ldr r2, [sp, #44] @ 0x2c 8014e0c: 2a00 cmp r2, #0 8014e0e: f000 80ea beq.w 8014fe6 <_dtoa_r+0x8de> 8014e12: 9a20 ldr r2, [sp, #128] @ 0x80 8014e14: 2a01 cmp r2, #1 8014e16: f300 80cd bgt.w 8014fb4 <_dtoa_r+0x8ac> 8014e1a: 9a12 ldr r2, [sp, #72] @ 0x48 8014e1c: 2a00 cmp r2, #0 8014e1e: f000 80c1 beq.w 8014fa4 <_dtoa_r+0x89c> 8014e22: f203 4333 addw r3, r3, #1075 @ 0x433 8014e26: 9c0a ldr r4, [sp, #40] @ 0x28 8014e28: 9e04 ldr r6, [sp, #16] 8014e2a: 9a04 ldr r2, [sp, #16] 8014e2c: 2101 movs r1, #1 8014e2e: 441a add r2, r3 8014e30: 9204 str r2, [sp, #16] 8014e32: 9a09 ldr r2, [sp, #36] @ 0x24 8014e34: 4648 mov r0, r9 8014e36: 441a add r2, r3 8014e38: 9209 str r2, [sp, #36] @ 0x24 8014e3a: f000 ff23 bl 8015c84 <__i2b> 8014e3e: 4605 mov r5, r0 8014e40: b166 cbz r6, 8014e5c <_dtoa_r+0x754> 8014e42: 9b09 ldr r3, [sp, #36] @ 0x24 8014e44: 2b00 cmp r3, #0 8014e46: dd09 ble.n 8014e5c <_dtoa_r+0x754> 8014e48: 42b3 cmp r3, r6 8014e4a: bfa8 it ge 8014e4c: 4633 movge r3, r6 8014e4e: 9a04 ldr r2, [sp, #16] 8014e50: 1af6 subs r6, r6, r3 8014e52: 1ad2 subs r2, r2, r3 8014e54: 9204 str r2, [sp, #16] 8014e56: 9a09 ldr r2, [sp, #36] @ 0x24 8014e58: 1ad3 subs r3, r2, r3 8014e5a: 9309 str r3, [sp, #36] @ 0x24 8014e5c: 9b0a ldr r3, [sp, #40] @ 0x28 8014e5e: b30b cbz r3, 8014ea4 <_dtoa_r+0x79c> 8014e60: 9b0b ldr r3, [sp, #44] @ 0x2c 8014e62: 2b00 cmp r3, #0 8014e64: f000 80c6 beq.w 8014ff4 <_dtoa_r+0x8ec> 8014e68: 2c00 cmp r4, #0 8014e6a: f000 80c0 beq.w 8014fee <_dtoa_r+0x8e6> 8014e6e: 4629 mov r1, r5 8014e70: 4622 mov r2, r4 8014e72: 4648 mov r0, r9 8014e74: f000 ffbe bl 8015df4 <__pow5mult> 8014e78: 9a03 ldr r2, [sp, #12] 8014e7a: 4601 mov r1, r0 8014e7c: 4605 mov r5, r0 8014e7e: 4648 mov r0, r9 8014e80: f000 ff16 bl 8015cb0 <__multiply> 8014e84: 9903 ldr r1, [sp, #12] 8014e86: 4680 mov r8, r0 8014e88: 4648 mov r0, r9 8014e8a: f000 fe47 bl 8015b1c <_Bfree> 8014e8e: 9b0a ldr r3, [sp, #40] @ 0x28 8014e90: 1b1b subs r3, r3, r4 8014e92: 930a str r3, [sp, #40] @ 0x28 8014e94: f000 80b1 beq.w 8014ffa <_dtoa_r+0x8f2> 8014e98: 4641 mov r1, r8 8014e9a: 9a0a ldr r2, [sp, #40] @ 0x28 8014e9c: 4648 mov r0, r9 8014e9e: f000 ffa9 bl 8015df4 <__pow5mult> 8014ea2: 9003 str r0, [sp, #12] 8014ea4: 2101 movs r1, #1 8014ea6: 4648 mov r0, r9 8014ea8: f000 feec bl 8015c84 <__i2b> 8014eac: 9b0e ldr r3, [sp, #56] @ 0x38 8014eae: 4604 mov r4, r0 8014eb0: 2b00 cmp r3, #0 8014eb2: f000 81d8 beq.w 8015266 <_dtoa_r+0xb5e> 8014eb6: 461a mov r2, r3 8014eb8: 4601 mov r1, r0 8014eba: 4648 mov r0, r9 8014ebc: f000 ff9a bl 8015df4 <__pow5mult> 8014ec0: 9b20 ldr r3, [sp, #128] @ 0x80 8014ec2: 4604 mov r4, r0 8014ec4: 2b01 cmp r3, #1 8014ec6: f300 809f bgt.w 8015008 <_dtoa_r+0x900> 8014eca: 9b06 ldr r3, [sp, #24] 8014ecc: 2b00 cmp r3, #0 8014ece: f040 8097 bne.w 8015000 <_dtoa_r+0x8f8> 8014ed2: 9b07 ldr r3, [sp, #28] 8014ed4: f3c3 0313 ubfx r3, r3, #0, #20 8014ed8: 2b00 cmp r3, #0 8014eda: f040 8093 bne.w 8015004 <_dtoa_r+0x8fc> 8014ede: 9b07 ldr r3, [sp, #28] 8014ee0: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 8014ee4: 0d1b lsrs r3, r3, #20 8014ee6: 051b lsls r3, r3, #20 8014ee8: b133 cbz r3, 8014ef8 <_dtoa_r+0x7f0> 8014eea: 9b04 ldr r3, [sp, #16] 8014eec: 3301 adds r3, #1 8014eee: 9304 str r3, [sp, #16] 8014ef0: 9b09 ldr r3, [sp, #36] @ 0x24 8014ef2: 3301 adds r3, #1 8014ef4: 9309 str r3, [sp, #36] @ 0x24 8014ef6: 2301 movs r3, #1 8014ef8: 930a str r3, [sp, #40] @ 0x28 8014efa: 9b0e ldr r3, [sp, #56] @ 0x38 8014efc: 2b00 cmp r3, #0 8014efe: f000 81b8 beq.w 8015272 <_dtoa_r+0xb6a> 8014f02: 6923 ldr r3, [r4, #16] 8014f04: eb04 0383 add.w r3, r4, r3, lsl #2 8014f08: 6918 ldr r0, [r3, #16] 8014f0a: f000 fe6f bl 8015bec <__hi0bits> 8014f0e: f1c0 0020 rsb r0, r0, #32 8014f12: 9b09 ldr r3, [sp, #36] @ 0x24 8014f14: 4418 add r0, r3 8014f16: f010 001f ands.w r0, r0, #31 8014f1a: f000 8082 beq.w 8015022 <_dtoa_r+0x91a> 8014f1e: f1c0 0320 rsb r3, r0, #32 8014f22: 2b04 cmp r3, #4 8014f24: dd73 ble.n 801500e <_dtoa_r+0x906> 8014f26: 9b04 ldr r3, [sp, #16] 8014f28: f1c0 001c rsb r0, r0, #28 8014f2c: 4403 add r3, r0 8014f2e: 9304 str r3, [sp, #16] 8014f30: 9b09 ldr r3, [sp, #36] @ 0x24 8014f32: 4406 add r6, r0 8014f34: 4403 add r3, r0 8014f36: 9309 str r3, [sp, #36] @ 0x24 8014f38: 9b04 ldr r3, [sp, #16] 8014f3a: 2b00 cmp r3, #0 8014f3c: dd05 ble.n 8014f4a <_dtoa_r+0x842> 8014f3e: 461a mov r2, r3 8014f40: 4648 mov r0, r9 8014f42: 9903 ldr r1, [sp, #12] 8014f44: f000 ffb0 bl 8015ea8 <__lshift> 8014f48: 9003 str r0, [sp, #12] 8014f4a: 9b09 ldr r3, [sp, #36] @ 0x24 8014f4c: 2b00 cmp r3, #0 8014f4e: dd05 ble.n 8014f5c <_dtoa_r+0x854> 8014f50: 4621 mov r1, r4 8014f52: 461a mov r2, r3 8014f54: 4648 mov r0, r9 8014f56: f000 ffa7 bl 8015ea8 <__lshift> 8014f5a: 4604 mov r4, r0 8014f5c: 9b0f ldr r3, [sp, #60] @ 0x3c 8014f5e: 2b00 cmp r3, #0 8014f60: d061 beq.n 8015026 <_dtoa_r+0x91e> 8014f62: 4621 mov r1, r4 8014f64: 9803 ldr r0, [sp, #12] 8014f66: f001 f80b bl 8015f80 <__mcmp> 8014f6a: 2800 cmp r0, #0 8014f6c: da5b bge.n 8015026 <_dtoa_r+0x91e> 8014f6e: 2300 movs r3, #0 8014f70: 220a movs r2, #10 8014f72: 4648 mov r0, r9 8014f74: 9903 ldr r1, [sp, #12] 8014f76: f000 fdf3 bl 8015b60 <__multadd> 8014f7a: 9b0b ldr r3, [sp, #44] @ 0x2c 8014f7c: f107 38ff add.w r8, r7, #4294967295 @ 0xffffffff 8014f80: 9003 str r0, [sp, #12] 8014f82: 2b00 cmp r3, #0 8014f84: f000 8177 beq.w 8015276 <_dtoa_r+0xb6e> 8014f88: 4629 mov r1, r5 8014f8a: 2300 movs r3, #0 8014f8c: 220a movs r2, #10 8014f8e: 4648 mov r0, r9 8014f90: f000 fde6 bl 8015b60 <__multadd> 8014f94: f1bb 0f00 cmp.w fp, #0 8014f98: 4605 mov r5, r0 8014f9a: dc6f bgt.n 801507c <_dtoa_r+0x974> 8014f9c: 9b20 ldr r3, [sp, #128] @ 0x80 8014f9e: 2b02 cmp r3, #2 8014fa0: dc49 bgt.n 8015036 <_dtoa_r+0x92e> 8014fa2: e06b b.n 801507c <_dtoa_r+0x974> 8014fa4: 9b14 ldr r3, [sp, #80] @ 0x50 8014fa6: f1c3 0336 rsb r3, r3, #54 @ 0x36 8014faa: e73c b.n 8014e26 <_dtoa_r+0x71e> 8014fac: 3fe00000 .word 0x3fe00000 8014fb0: 40240000 .word 0x40240000 8014fb4: 9b08 ldr r3, [sp, #32] 8014fb6: 1e5c subs r4, r3, #1 8014fb8: 9b0a ldr r3, [sp, #40] @ 0x28 8014fba: 42a3 cmp r3, r4 8014fbc: db09 blt.n 8014fd2 <_dtoa_r+0x8ca> 8014fbe: 1b1c subs r4, r3, r4 8014fc0: 9b08 ldr r3, [sp, #32] 8014fc2: 2b00 cmp r3, #0 8014fc4: f6bf af30 bge.w 8014e28 <_dtoa_r+0x720> 8014fc8: 9b04 ldr r3, [sp, #16] 8014fca: 9a08 ldr r2, [sp, #32] 8014fcc: 1a9e subs r6, r3, r2 8014fce: 2300 movs r3, #0 8014fd0: e72b b.n 8014e2a <_dtoa_r+0x722> 8014fd2: 9b0a ldr r3, [sp, #40] @ 0x28 8014fd4: 9a0e ldr r2, [sp, #56] @ 0x38 8014fd6: 1ae3 subs r3, r4, r3 8014fd8: 441a add r2, r3 8014fda: 940a str r4, [sp, #40] @ 0x28 8014fdc: 9e04 ldr r6, [sp, #16] 8014fde: 2400 movs r4, #0 8014fe0: 9b08 ldr r3, [sp, #32] 8014fe2: 920e str r2, [sp, #56] @ 0x38 8014fe4: e721 b.n 8014e2a <_dtoa_r+0x722> 8014fe6: 9c0a ldr r4, [sp, #40] @ 0x28 8014fe8: 9e04 ldr r6, [sp, #16] 8014fea: 9d0b ldr r5, [sp, #44] @ 0x2c 8014fec: e728 b.n 8014e40 <_dtoa_r+0x738> 8014fee: f8dd 800c ldr.w r8, [sp, #12] 8014ff2: e751 b.n 8014e98 <_dtoa_r+0x790> 8014ff4: 9a0a ldr r2, [sp, #40] @ 0x28 8014ff6: 9903 ldr r1, [sp, #12] 8014ff8: e750 b.n 8014e9c <_dtoa_r+0x794> 8014ffa: f8cd 800c str.w r8, [sp, #12] 8014ffe: e751 b.n 8014ea4 <_dtoa_r+0x79c> 8015000: 2300 movs r3, #0 8015002: e779 b.n 8014ef8 <_dtoa_r+0x7f0> 8015004: 9b06 ldr r3, [sp, #24] 8015006: e777 b.n 8014ef8 <_dtoa_r+0x7f0> 8015008: 2300 movs r3, #0 801500a: 930a str r3, [sp, #40] @ 0x28 801500c: e779 b.n 8014f02 <_dtoa_r+0x7fa> 801500e: d093 beq.n 8014f38 <_dtoa_r+0x830> 8015010: 9a04 ldr r2, [sp, #16] 8015012: 331c adds r3, #28 8015014: 441a add r2, r3 8015016: 9204 str r2, [sp, #16] 8015018: 9a09 ldr r2, [sp, #36] @ 0x24 801501a: 441e add r6, r3 801501c: 441a add r2, r3 801501e: 9209 str r2, [sp, #36] @ 0x24 8015020: e78a b.n 8014f38 <_dtoa_r+0x830> 8015022: 4603 mov r3, r0 8015024: e7f4 b.n 8015010 <_dtoa_r+0x908> 8015026: 9b08 ldr r3, [sp, #32] 8015028: 46b8 mov r8, r7 801502a: 2b00 cmp r3, #0 801502c: dc20 bgt.n 8015070 <_dtoa_r+0x968> 801502e: 469b mov fp, r3 8015030: 9b20 ldr r3, [sp, #128] @ 0x80 8015032: 2b02 cmp r3, #2 8015034: dd1e ble.n 8015074 <_dtoa_r+0x96c> 8015036: f1bb 0f00 cmp.w fp, #0 801503a: f47f adb1 bne.w 8014ba0 <_dtoa_r+0x498> 801503e: 4621 mov r1, r4 8015040: 465b mov r3, fp 8015042: 2205 movs r2, #5 8015044: 4648 mov r0, r9 8015046: f000 fd8b bl 8015b60 <__multadd> 801504a: 4601 mov r1, r0 801504c: 4604 mov r4, r0 801504e: 9803 ldr r0, [sp, #12] 8015050: f000 ff96 bl 8015f80 <__mcmp> 8015054: 2800 cmp r0, #0 8015056: f77f ada3 ble.w 8014ba0 <_dtoa_r+0x498> 801505a: 4656 mov r6, sl 801505c: 2331 movs r3, #49 @ 0x31 801505e: f108 0801 add.w r8, r8, #1 8015062: f806 3b01 strb.w r3, [r6], #1 8015066: e59f b.n 8014ba8 <_dtoa_r+0x4a0> 8015068: 46b8 mov r8, r7 801506a: 9c08 ldr r4, [sp, #32] 801506c: 4625 mov r5, r4 801506e: e7f4 b.n 801505a <_dtoa_r+0x952> 8015070: f8dd b020 ldr.w fp, [sp, #32] 8015074: 9b0b ldr r3, [sp, #44] @ 0x2c 8015076: 2b00 cmp r3, #0 8015078: f000 8101 beq.w 801527e <_dtoa_r+0xb76> 801507c: 2e00 cmp r6, #0 801507e: dd05 ble.n 801508c <_dtoa_r+0x984> 8015080: 4629 mov r1, r5 8015082: 4632 mov r2, r6 8015084: 4648 mov r0, r9 8015086: f000 ff0f bl 8015ea8 <__lshift> 801508a: 4605 mov r5, r0 801508c: 9b0a ldr r3, [sp, #40] @ 0x28 801508e: 2b00 cmp r3, #0 8015090: d05c beq.n 801514c <_dtoa_r+0xa44> 8015092: 4648 mov r0, r9 8015094: 6869 ldr r1, [r5, #4] 8015096: f000 fd01 bl 8015a9c <_Balloc> 801509a: 4606 mov r6, r0 801509c: b928 cbnz r0, 80150aa <_dtoa_r+0x9a2> 801509e: 4602 mov r2, r0 80150a0: f240 21ef movw r1, #751 @ 0x2ef 80150a4: 4b80 ldr r3, [pc, #512] @ (80152a8 <_dtoa_r+0xba0>) 80150a6: f7ff bb43 b.w 8014730 <_dtoa_r+0x28> 80150aa: 692a ldr r2, [r5, #16] 80150ac: f105 010c add.w r1, r5, #12 80150b0: 3202 adds r2, #2 80150b2: 0092 lsls r2, r2, #2 80150b4: 300c adds r0, #12 80150b6: f7ff fa73 bl 80145a0 80150ba: 2201 movs r2, #1 80150bc: 4631 mov r1, r6 80150be: 4648 mov r0, r9 80150c0: f000 fef2 bl 8015ea8 <__lshift> 80150c4: 462f mov r7, r5 80150c6: 4605 mov r5, r0 80150c8: f10a 0301 add.w r3, sl, #1 80150cc: 9304 str r3, [sp, #16] 80150ce: eb0a 030b add.w r3, sl, fp 80150d2: 930a str r3, [sp, #40] @ 0x28 80150d4: 9b06 ldr r3, [sp, #24] 80150d6: f003 0301 and.w r3, r3, #1 80150da: 9309 str r3, [sp, #36] @ 0x24 80150dc: 9b04 ldr r3, [sp, #16] 80150de: 4621 mov r1, r4 80150e0: 9803 ldr r0, [sp, #12] 80150e2: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff 80150e6: f7ff fa87 bl 80145f8 80150ea: 4603 mov r3, r0 80150ec: 4639 mov r1, r7 80150ee: 3330 adds r3, #48 @ 0x30 80150f0: 9006 str r0, [sp, #24] 80150f2: 9803 ldr r0, [sp, #12] 80150f4: 930b str r3, [sp, #44] @ 0x2c 80150f6: f000 ff43 bl 8015f80 <__mcmp> 80150fa: 462a mov r2, r5 80150fc: 9008 str r0, [sp, #32] 80150fe: 4621 mov r1, r4 8015100: 4648 mov r0, r9 8015102: f000 ff59 bl 8015fb8 <__mdiff> 8015106: 68c2 ldr r2, [r0, #12] 8015108: 4606 mov r6, r0 801510a: 9b0b ldr r3, [sp, #44] @ 0x2c 801510c: bb02 cbnz r2, 8015150 <_dtoa_r+0xa48> 801510e: 4601 mov r1, r0 8015110: 9803 ldr r0, [sp, #12] 8015112: f000 ff35 bl 8015f80 <__mcmp> 8015116: 4602 mov r2, r0 8015118: 9b0b ldr r3, [sp, #44] @ 0x2c 801511a: 4631 mov r1, r6 801511c: 4648 mov r0, r9 801511e: e9cd 320b strd r3, r2, [sp, #44] @ 0x2c 8015122: f000 fcfb bl 8015b1c <_Bfree> 8015126: 9b20 ldr r3, [sp, #128] @ 0x80 8015128: 9a0c ldr r2, [sp, #48] @ 0x30 801512a: 9e04 ldr r6, [sp, #16] 801512c: ea42 0103 orr.w r1, r2, r3 8015130: 9b09 ldr r3, [sp, #36] @ 0x24 8015132: 4319 orrs r1, r3 8015134: 9b0b ldr r3, [sp, #44] @ 0x2c 8015136: d10d bne.n 8015154 <_dtoa_r+0xa4c> 8015138: 2b39 cmp r3, #57 @ 0x39 801513a: d027 beq.n 801518c <_dtoa_r+0xa84> 801513c: 9a08 ldr r2, [sp, #32] 801513e: 2a00 cmp r2, #0 8015140: dd01 ble.n 8015146 <_dtoa_r+0xa3e> 8015142: 9b06 ldr r3, [sp, #24] 8015144: 3331 adds r3, #49 @ 0x31 8015146: f88b 3000 strb.w r3, [fp] 801514a: e52e b.n 8014baa <_dtoa_r+0x4a2> 801514c: 4628 mov r0, r5 801514e: e7b9 b.n 80150c4 <_dtoa_r+0x9bc> 8015150: 2201 movs r2, #1 8015152: e7e2 b.n 801511a <_dtoa_r+0xa12> 8015154: 9908 ldr r1, [sp, #32] 8015156: 2900 cmp r1, #0 8015158: db04 blt.n 8015164 <_dtoa_r+0xa5c> 801515a: 9820 ldr r0, [sp, #128] @ 0x80 801515c: 4301 orrs r1, r0 801515e: 9809 ldr r0, [sp, #36] @ 0x24 8015160: 4301 orrs r1, r0 8015162: d120 bne.n 80151a6 <_dtoa_r+0xa9e> 8015164: 2a00 cmp r2, #0 8015166: ddee ble.n 8015146 <_dtoa_r+0xa3e> 8015168: 2201 movs r2, #1 801516a: 9903 ldr r1, [sp, #12] 801516c: 4648 mov r0, r9 801516e: 9304 str r3, [sp, #16] 8015170: f000 fe9a bl 8015ea8 <__lshift> 8015174: 4621 mov r1, r4 8015176: 9003 str r0, [sp, #12] 8015178: f000 ff02 bl 8015f80 <__mcmp> 801517c: 2800 cmp r0, #0 801517e: 9b04 ldr r3, [sp, #16] 8015180: dc02 bgt.n 8015188 <_dtoa_r+0xa80> 8015182: d1e0 bne.n 8015146 <_dtoa_r+0xa3e> 8015184: 07da lsls r2, r3, #31 8015186: d5de bpl.n 8015146 <_dtoa_r+0xa3e> 8015188: 2b39 cmp r3, #57 @ 0x39 801518a: d1da bne.n 8015142 <_dtoa_r+0xa3a> 801518c: 2339 movs r3, #57 @ 0x39 801518e: f88b 3000 strb.w r3, [fp] 8015192: 4633 mov r3, r6 8015194: 461e mov r6, r3 8015196: f816 2c01 ldrb.w r2, [r6, #-1] 801519a: 3b01 subs r3, #1 801519c: 2a39 cmp r2, #57 @ 0x39 801519e: d04e beq.n 801523e <_dtoa_r+0xb36> 80151a0: 3201 adds r2, #1 80151a2: 701a strb r2, [r3, #0] 80151a4: e501 b.n 8014baa <_dtoa_r+0x4a2> 80151a6: 2a00 cmp r2, #0 80151a8: dd03 ble.n 80151b2 <_dtoa_r+0xaaa> 80151aa: 2b39 cmp r3, #57 @ 0x39 80151ac: d0ee beq.n 801518c <_dtoa_r+0xa84> 80151ae: 3301 adds r3, #1 80151b0: e7c9 b.n 8015146 <_dtoa_r+0xa3e> 80151b2: 9a04 ldr r2, [sp, #16] 80151b4: 990a ldr r1, [sp, #40] @ 0x28 80151b6: f802 3c01 strb.w r3, [r2, #-1] 80151ba: 428a cmp r2, r1 80151bc: d028 beq.n 8015210 <_dtoa_r+0xb08> 80151be: 2300 movs r3, #0 80151c0: 220a movs r2, #10 80151c2: 9903 ldr r1, [sp, #12] 80151c4: 4648 mov r0, r9 80151c6: f000 fccb bl 8015b60 <__multadd> 80151ca: 42af cmp r7, r5 80151cc: 9003 str r0, [sp, #12] 80151ce: f04f 0300 mov.w r3, #0 80151d2: f04f 020a mov.w r2, #10 80151d6: 4639 mov r1, r7 80151d8: 4648 mov r0, r9 80151da: d107 bne.n 80151ec <_dtoa_r+0xae4> 80151dc: f000 fcc0 bl 8015b60 <__multadd> 80151e0: 4607 mov r7, r0 80151e2: 4605 mov r5, r0 80151e4: 9b04 ldr r3, [sp, #16] 80151e6: 3301 adds r3, #1 80151e8: 9304 str r3, [sp, #16] 80151ea: e777 b.n 80150dc <_dtoa_r+0x9d4> 80151ec: f000 fcb8 bl 8015b60 <__multadd> 80151f0: 4629 mov r1, r5 80151f2: 4607 mov r7, r0 80151f4: 2300 movs r3, #0 80151f6: 220a movs r2, #10 80151f8: 4648 mov r0, r9 80151fa: f000 fcb1 bl 8015b60 <__multadd> 80151fe: 4605 mov r5, r0 8015200: e7f0 b.n 80151e4 <_dtoa_r+0xadc> 8015202: f1bb 0f00 cmp.w fp, #0 8015206: bfcc ite gt 8015208: 465e movgt r6, fp 801520a: 2601 movle r6, #1 801520c: 2700 movs r7, #0 801520e: 4456 add r6, sl 8015210: 2201 movs r2, #1 8015212: 9903 ldr r1, [sp, #12] 8015214: 4648 mov r0, r9 8015216: 9304 str r3, [sp, #16] 8015218: f000 fe46 bl 8015ea8 <__lshift> 801521c: 4621 mov r1, r4 801521e: 9003 str r0, [sp, #12] 8015220: f000 feae bl 8015f80 <__mcmp> 8015224: 2800 cmp r0, #0 8015226: dcb4 bgt.n 8015192 <_dtoa_r+0xa8a> 8015228: d102 bne.n 8015230 <_dtoa_r+0xb28> 801522a: 9b04 ldr r3, [sp, #16] 801522c: 07db lsls r3, r3, #31 801522e: d4b0 bmi.n 8015192 <_dtoa_r+0xa8a> 8015230: 4633 mov r3, r6 8015232: 461e mov r6, r3 8015234: f813 2d01 ldrb.w r2, [r3, #-1]! 8015238: 2a30 cmp r2, #48 @ 0x30 801523a: d0fa beq.n 8015232 <_dtoa_r+0xb2a> 801523c: e4b5 b.n 8014baa <_dtoa_r+0x4a2> 801523e: 459a cmp sl, r3 8015240: d1a8 bne.n 8015194 <_dtoa_r+0xa8c> 8015242: 2331 movs r3, #49 @ 0x31 8015244: f108 0801 add.w r8, r8, #1 8015248: f88a 3000 strb.w r3, [sl] 801524c: e4ad b.n 8014baa <_dtoa_r+0x4a2> 801524e: 9b24 ldr r3, [sp, #144] @ 0x90 8015250: f8df a058 ldr.w sl, [pc, #88] @ 80152ac <_dtoa_r+0xba4> 8015254: b11b cbz r3, 801525e <_dtoa_r+0xb56> 8015256: f10a 0308 add.w r3, sl, #8 801525a: 9a24 ldr r2, [sp, #144] @ 0x90 801525c: 6013 str r3, [r2, #0] 801525e: 4650 mov r0, sl 8015260: b017 add sp, #92 @ 0x5c 8015262: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015266: 9b20 ldr r3, [sp, #128] @ 0x80 8015268: 2b01 cmp r3, #1 801526a: f77f ae2e ble.w 8014eca <_dtoa_r+0x7c2> 801526e: 9b0e ldr r3, [sp, #56] @ 0x38 8015270: 930a str r3, [sp, #40] @ 0x28 8015272: 2001 movs r0, #1 8015274: e64d b.n 8014f12 <_dtoa_r+0x80a> 8015276: f1bb 0f00 cmp.w fp, #0 801527a: f77f aed9 ble.w 8015030 <_dtoa_r+0x928> 801527e: 4656 mov r6, sl 8015280: 4621 mov r1, r4 8015282: 9803 ldr r0, [sp, #12] 8015284: f7ff f9b8 bl 80145f8 8015288: f100 0330 add.w r3, r0, #48 @ 0x30 801528c: f806 3b01 strb.w r3, [r6], #1 8015290: eba6 020a sub.w r2, r6, sl 8015294: 4593 cmp fp, r2 8015296: ddb4 ble.n 8015202 <_dtoa_r+0xafa> 8015298: 2300 movs r3, #0 801529a: 220a movs r2, #10 801529c: 4648 mov r0, r9 801529e: 9903 ldr r1, [sp, #12] 80152a0: f000 fc5e bl 8015b60 <__multadd> 80152a4: 9003 str r0, [sp, #12] 80152a6: e7eb b.n 8015280 <_dtoa_r+0xb78> 80152a8: 08017110 .word 0x08017110 80152ac: 08017094 .word 0x08017094 080152b0 <__ssputs_r>: 80152b0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 80152b4: 461f mov r7, r3 80152b6: 688e ldr r6, [r1, #8] 80152b8: 4682 mov sl, r0 80152ba: 42be cmp r6, r7 80152bc: 460c mov r4, r1 80152be: 4690 mov r8, r2 80152c0: 680b ldr r3, [r1, #0] 80152c2: d82d bhi.n 8015320 <__ssputs_r+0x70> 80152c4: f9b1 200c ldrsh.w r2, [r1, #12] 80152c8: f412 6f90 tst.w r2, #1152 @ 0x480 80152cc: d026 beq.n 801531c <__ssputs_r+0x6c> 80152ce: 6965 ldr r5, [r4, #20] 80152d0: 6909 ldr r1, [r1, #16] 80152d2: eb05 0545 add.w r5, r5, r5, lsl #1 80152d6: eba3 0901 sub.w r9, r3, r1 80152da: eb05 75d5 add.w r5, r5, r5, lsr #31 80152de: 1c7b adds r3, r7, #1 80152e0: 444b add r3, r9 80152e2: 106d asrs r5, r5, #1 80152e4: 429d cmp r5, r3 80152e6: bf38 it cc 80152e8: 461d movcc r5, r3 80152ea: 0553 lsls r3, r2, #21 80152ec: d527 bpl.n 801533e <__ssputs_r+0x8e> 80152ee: 4629 mov r1, r5 80152f0: f000 faa0 bl 8015834 <_malloc_r> 80152f4: 4606 mov r6, r0 80152f6: b360 cbz r0, 8015352 <__ssputs_r+0xa2> 80152f8: 464a mov r2, r9 80152fa: 6921 ldr r1, [r4, #16] 80152fc: f7ff f950 bl 80145a0 8015300: 89a3 ldrh r3, [r4, #12] 8015302: f423 6390 bic.w r3, r3, #1152 @ 0x480 8015306: f043 0380 orr.w r3, r3, #128 @ 0x80 801530a: 81a3 strh r3, [r4, #12] 801530c: 6126 str r6, [r4, #16] 801530e: 444e add r6, r9 8015310: 6026 str r6, [r4, #0] 8015312: 463e mov r6, r7 8015314: 6165 str r5, [r4, #20] 8015316: eba5 0509 sub.w r5, r5, r9 801531a: 60a5 str r5, [r4, #8] 801531c: 42be cmp r6, r7 801531e: d900 bls.n 8015322 <__ssputs_r+0x72> 8015320: 463e mov r6, r7 8015322: 4632 mov r2, r6 8015324: 4641 mov r1, r8 8015326: 6820 ldr r0, [r4, #0] 8015328: f001 f8ab bl 8016482 801532c: 2000 movs r0, #0 801532e: 68a3 ldr r3, [r4, #8] 8015330: 1b9b subs r3, r3, r6 8015332: 60a3 str r3, [r4, #8] 8015334: 6823 ldr r3, [r4, #0] 8015336: 4433 add r3, r6 8015338: 6023 str r3, [r4, #0] 801533a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 801533e: 462a mov r2, r5 8015340: f000 ff7c bl 801623c <_realloc_r> 8015344: 4606 mov r6, r0 8015346: 2800 cmp r0, #0 8015348: d1e0 bne.n 801530c <__ssputs_r+0x5c> 801534a: 4650 mov r0, sl 801534c: 6921 ldr r1, [r4, #16] 801534e: f001 f947 bl 80165e0 <_free_r> 8015352: 230c movs r3, #12 8015354: f8ca 3000 str.w r3, [sl] 8015358: 89a3 ldrh r3, [r4, #12] 801535a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 801535e: f043 0340 orr.w r3, r3, #64 @ 0x40 8015362: 81a3 strh r3, [r4, #12] 8015364: e7e9 b.n 801533a <__ssputs_r+0x8a> ... 08015368 <_svfiprintf_r>: 8015368: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 801536c: 4698 mov r8, r3 801536e: 898b ldrh r3, [r1, #12] 8015370: 4607 mov r7, r0 8015372: 061b lsls r3, r3, #24 8015374: 460d mov r5, r1 8015376: 4614 mov r4, r2 8015378: b09d sub sp, #116 @ 0x74 801537a: d510 bpl.n 801539e <_svfiprintf_r+0x36> 801537c: 690b ldr r3, [r1, #16] 801537e: b973 cbnz r3, 801539e <_svfiprintf_r+0x36> 8015380: 2140 movs r1, #64 @ 0x40 8015382: f000 fa57 bl 8015834 <_malloc_r> 8015386: 6028 str r0, [r5, #0] 8015388: 6128 str r0, [r5, #16] 801538a: b930 cbnz r0, 801539a <_svfiprintf_r+0x32> 801538c: 230c movs r3, #12 801538e: 603b str r3, [r7, #0] 8015390: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015394: b01d add sp, #116 @ 0x74 8015396: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 801539a: 2340 movs r3, #64 @ 0x40 801539c: 616b str r3, [r5, #20] 801539e: 2300 movs r3, #0 80153a0: 9309 str r3, [sp, #36] @ 0x24 80153a2: 2320 movs r3, #32 80153a4: f88d 3029 strb.w r3, [sp, #41] @ 0x29 80153a8: 2330 movs r3, #48 @ 0x30 80153aa: f04f 0901 mov.w r9, #1 80153ae: f8cd 800c str.w r8, [sp, #12] 80153b2: f8df 8198 ldr.w r8, [pc, #408] @ 801554c <_svfiprintf_r+0x1e4> 80153b6: f88d 302a strb.w r3, [sp, #42] @ 0x2a 80153ba: 4623 mov r3, r4 80153bc: 469a mov sl, r3 80153be: f813 2b01 ldrb.w r2, [r3], #1 80153c2: b10a cbz r2, 80153c8 <_svfiprintf_r+0x60> 80153c4: 2a25 cmp r2, #37 @ 0x25 80153c6: d1f9 bne.n 80153bc <_svfiprintf_r+0x54> 80153c8: ebba 0b04 subs.w fp, sl, r4 80153cc: d00b beq.n 80153e6 <_svfiprintf_r+0x7e> 80153ce: 465b mov r3, fp 80153d0: 4622 mov r2, r4 80153d2: 4629 mov r1, r5 80153d4: 4638 mov r0, r7 80153d6: f7ff ff6b bl 80152b0 <__ssputs_r> 80153da: 3001 adds r0, #1 80153dc: f000 80a7 beq.w 801552e <_svfiprintf_r+0x1c6> 80153e0: 9a09 ldr r2, [sp, #36] @ 0x24 80153e2: 445a add r2, fp 80153e4: 9209 str r2, [sp, #36] @ 0x24 80153e6: f89a 3000 ldrb.w r3, [sl] 80153ea: 2b00 cmp r3, #0 80153ec: f000 809f beq.w 801552e <_svfiprintf_r+0x1c6> 80153f0: 2300 movs r3, #0 80153f2: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 80153f6: e9cd 2305 strd r2, r3, [sp, #20] 80153fa: f10a 0a01 add.w sl, sl, #1 80153fe: 9304 str r3, [sp, #16] 8015400: 9307 str r3, [sp, #28] 8015402: f88d 3053 strb.w r3, [sp, #83] @ 0x53 8015406: 931a str r3, [sp, #104] @ 0x68 8015408: 4654 mov r4, sl 801540a: 2205 movs r2, #5 801540c: f814 1b01 ldrb.w r1, [r4], #1 8015410: 484e ldr r0, [pc, #312] @ (801554c <_svfiprintf_r+0x1e4>) 8015412: f7ff f8b7 bl 8014584 8015416: 9a04 ldr r2, [sp, #16] 8015418: b9d8 cbnz r0, 8015452 <_svfiprintf_r+0xea> 801541a: 06d0 lsls r0, r2, #27 801541c: bf44 itt mi 801541e: 2320 movmi r3, #32 8015420: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015424: 0711 lsls r1, r2, #28 8015426: bf44 itt mi 8015428: 232b movmi r3, #43 @ 0x2b 801542a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 801542e: f89a 3000 ldrb.w r3, [sl] 8015432: 2b2a cmp r3, #42 @ 0x2a 8015434: d015 beq.n 8015462 <_svfiprintf_r+0xfa> 8015436: 4654 mov r4, sl 8015438: 2000 movs r0, #0 801543a: f04f 0c0a mov.w ip, #10 801543e: 9a07 ldr r2, [sp, #28] 8015440: 4621 mov r1, r4 8015442: f811 3b01 ldrb.w r3, [r1], #1 8015446: 3b30 subs r3, #48 @ 0x30 8015448: 2b09 cmp r3, #9 801544a: d94b bls.n 80154e4 <_svfiprintf_r+0x17c> 801544c: b1b0 cbz r0, 801547c <_svfiprintf_r+0x114> 801544e: 9207 str r2, [sp, #28] 8015450: e014 b.n 801547c <_svfiprintf_r+0x114> 8015452: eba0 0308 sub.w r3, r0, r8 8015456: fa09 f303 lsl.w r3, r9, r3 801545a: 4313 orrs r3, r2 801545c: 46a2 mov sl, r4 801545e: 9304 str r3, [sp, #16] 8015460: e7d2 b.n 8015408 <_svfiprintf_r+0xa0> 8015462: 9b03 ldr r3, [sp, #12] 8015464: 1d19 adds r1, r3, #4 8015466: 681b ldr r3, [r3, #0] 8015468: 9103 str r1, [sp, #12] 801546a: 2b00 cmp r3, #0 801546c: bfbb ittet lt 801546e: 425b neglt r3, r3 8015470: f042 0202 orrlt.w r2, r2, #2 8015474: 9307 strge r3, [sp, #28] 8015476: 9307 strlt r3, [sp, #28] 8015478: bfb8 it lt 801547a: 9204 strlt r2, [sp, #16] 801547c: 7823 ldrb r3, [r4, #0] 801547e: 2b2e cmp r3, #46 @ 0x2e 8015480: d10a bne.n 8015498 <_svfiprintf_r+0x130> 8015482: 7863 ldrb r3, [r4, #1] 8015484: 2b2a cmp r3, #42 @ 0x2a 8015486: d132 bne.n 80154ee <_svfiprintf_r+0x186> 8015488: 9b03 ldr r3, [sp, #12] 801548a: 3402 adds r4, #2 801548c: 1d1a adds r2, r3, #4 801548e: 681b ldr r3, [r3, #0] 8015490: 9203 str r2, [sp, #12] 8015492: ea43 73e3 orr.w r3, r3, r3, asr #31 8015496: 9305 str r3, [sp, #20] 8015498: f8df a0b4 ldr.w sl, [pc, #180] @ 8015550 <_svfiprintf_r+0x1e8> 801549c: 2203 movs r2, #3 801549e: 4650 mov r0, sl 80154a0: 7821 ldrb r1, [r4, #0] 80154a2: f7ff f86f bl 8014584 80154a6: b138 cbz r0, 80154b8 <_svfiprintf_r+0x150> 80154a8: 2240 movs r2, #64 @ 0x40 80154aa: 9b04 ldr r3, [sp, #16] 80154ac: eba0 000a sub.w r0, r0, sl 80154b0: 4082 lsls r2, r0 80154b2: 4313 orrs r3, r2 80154b4: 3401 adds r4, #1 80154b6: 9304 str r3, [sp, #16] 80154b8: f814 1b01 ldrb.w r1, [r4], #1 80154bc: 2206 movs r2, #6 80154be: 4825 ldr r0, [pc, #148] @ (8015554 <_svfiprintf_r+0x1ec>) 80154c0: f88d 1028 strb.w r1, [sp, #40] @ 0x28 80154c4: f7ff f85e bl 8014584 80154c8: 2800 cmp r0, #0 80154ca: d036 beq.n 801553a <_svfiprintf_r+0x1d2> 80154cc: 4b22 ldr r3, [pc, #136] @ (8015558 <_svfiprintf_r+0x1f0>) 80154ce: bb1b cbnz r3, 8015518 <_svfiprintf_r+0x1b0> 80154d0: 9b03 ldr r3, [sp, #12] 80154d2: 3307 adds r3, #7 80154d4: f023 0307 bic.w r3, r3, #7 80154d8: 3308 adds r3, #8 80154da: 9303 str r3, [sp, #12] 80154dc: 9b09 ldr r3, [sp, #36] @ 0x24 80154de: 4433 add r3, r6 80154e0: 9309 str r3, [sp, #36] @ 0x24 80154e2: e76a b.n 80153ba <_svfiprintf_r+0x52> 80154e4: 460c mov r4, r1 80154e6: 2001 movs r0, #1 80154e8: fb0c 3202 mla r2, ip, r2, r3 80154ec: e7a8 b.n 8015440 <_svfiprintf_r+0xd8> 80154ee: 2300 movs r3, #0 80154f0: f04f 0c0a mov.w ip, #10 80154f4: 4619 mov r1, r3 80154f6: 3401 adds r4, #1 80154f8: 9305 str r3, [sp, #20] 80154fa: 4620 mov r0, r4 80154fc: f810 2b01 ldrb.w r2, [r0], #1 8015500: 3a30 subs r2, #48 @ 0x30 8015502: 2a09 cmp r2, #9 8015504: d903 bls.n 801550e <_svfiprintf_r+0x1a6> 8015506: 2b00 cmp r3, #0 8015508: d0c6 beq.n 8015498 <_svfiprintf_r+0x130> 801550a: 9105 str r1, [sp, #20] 801550c: e7c4 b.n 8015498 <_svfiprintf_r+0x130> 801550e: 4604 mov r4, r0 8015510: 2301 movs r3, #1 8015512: fb0c 2101 mla r1, ip, r1, r2 8015516: e7f0 b.n 80154fa <_svfiprintf_r+0x192> 8015518: ab03 add r3, sp, #12 801551a: 9300 str r3, [sp, #0] 801551c: 462a mov r2, r5 801551e: 4638 mov r0, r7 8015520: 4b0e ldr r3, [pc, #56] @ (801555c <_svfiprintf_r+0x1f4>) 8015522: a904 add r1, sp, #16 8015524: f7fe fb28 bl 8013b78 <_printf_float> 8015528: 1c42 adds r2, r0, #1 801552a: 4606 mov r6, r0 801552c: d1d6 bne.n 80154dc <_svfiprintf_r+0x174> 801552e: 89ab ldrh r3, [r5, #12] 8015530: 065b lsls r3, r3, #25 8015532: f53f af2d bmi.w 8015390 <_svfiprintf_r+0x28> 8015536: 9809 ldr r0, [sp, #36] @ 0x24 8015538: e72c b.n 8015394 <_svfiprintf_r+0x2c> 801553a: ab03 add r3, sp, #12 801553c: 9300 str r3, [sp, #0] 801553e: 462a mov r2, r5 8015540: 4638 mov r0, r7 8015542: 4b06 ldr r3, [pc, #24] @ (801555c <_svfiprintf_r+0x1f4>) 8015544: a904 add r1, sp, #16 8015546: f7fe fdb5 bl 80140b4 <_printf_i> 801554a: e7ed b.n 8015528 <_svfiprintf_r+0x1c0> 801554c: 08017121 .word 0x08017121 8015550: 08017127 .word 0x08017127 8015554: 0801712b .word 0x0801712b 8015558: 08013b79 .word 0x08013b79 801555c: 080152b1 .word 0x080152b1 08015560 <__sfputc_r>: 8015560: 6893 ldr r3, [r2, #8] 8015562: b410 push {r4} 8015564: 3b01 subs r3, #1 8015566: 2b00 cmp r3, #0 8015568: 6093 str r3, [r2, #8] 801556a: da07 bge.n 801557c <__sfputc_r+0x1c> 801556c: 6994 ldr r4, [r2, #24] 801556e: 42a3 cmp r3, r4 8015570: db01 blt.n 8015576 <__sfputc_r+0x16> 8015572: 290a cmp r1, #10 8015574: d102 bne.n 801557c <__sfputc_r+0x1c> 8015576: bc10 pop {r4} 8015578: f000 be8e b.w 8016298 <__swbuf_r> 801557c: 6813 ldr r3, [r2, #0] 801557e: 1c58 adds r0, r3, #1 8015580: 6010 str r0, [r2, #0] 8015582: 7019 strb r1, [r3, #0] 8015584: 4608 mov r0, r1 8015586: bc10 pop {r4} 8015588: 4770 bx lr 0801558a <__sfputs_r>: 801558a: b5f8 push {r3, r4, r5, r6, r7, lr} 801558c: 4606 mov r6, r0 801558e: 460f mov r7, r1 8015590: 4614 mov r4, r2 8015592: 18d5 adds r5, r2, r3 8015594: 42ac cmp r4, r5 8015596: d101 bne.n 801559c <__sfputs_r+0x12> 8015598: 2000 movs r0, #0 801559a: e007 b.n 80155ac <__sfputs_r+0x22> 801559c: 463a mov r2, r7 801559e: 4630 mov r0, r6 80155a0: f814 1b01 ldrb.w r1, [r4], #1 80155a4: f7ff ffdc bl 8015560 <__sfputc_r> 80155a8: 1c43 adds r3, r0, #1 80155aa: d1f3 bne.n 8015594 <__sfputs_r+0xa> 80155ac: bdf8 pop {r3, r4, r5, r6, r7, pc} ... 080155b0 <_vfiprintf_r>: 80155b0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 80155b4: 460d mov r5, r1 80155b6: 4614 mov r4, r2 80155b8: 4698 mov r8, r3 80155ba: 4606 mov r6, r0 80155bc: b09d sub sp, #116 @ 0x74 80155be: b118 cbz r0, 80155c8 <_vfiprintf_r+0x18> 80155c0: 6a03 ldr r3, [r0, #32] 80155c2: b90b cbnz r3, 80155c8 <_vfiprintf_r+0x18> 80155c4: f7fe ff20 bl 8014408 <__sinit> 80155c8: 6e6b ldr r3, [r5, #100] @ 0x64 80155ca: 07d9 lsls r1, r3, #31 80155cc: d405 bmi.n 80155da <_vfiprintf_r+0x2a> 80155ce: 89ab ldrh r3, [r5, #12] 80155d0: 059a lsls r2, r3, #22 80155d2: d402 bmi.n 80155da <_vfiprintf_r+0x2a> 80155d4: 6da8 ldr r0, [r5, #88] @ 0x58 80155d6: f7fe ffce bl 8014576 <__retarget_lock_acquire_recursive> 80155da: 89ab ldrh r3, [r5, #12] 80155dc: 071b lsls r3, r3, #28 80155de: d501 bpl.n 80155e4 <_vfiprintf_r+0x34> 80155e0: 692b ldr r3, [r5, #16] 80155e2: b99b cbnz r3, 801560c <_vfiprintf_r+0x5c> 80155e4: 4629 mov r1, r5 80155e6: 4630 mov r0, r6 80155e8: f000 fe94 bl 8016314 <__swsetup_r> 80155ec: b170 cbz r0, 801560c <_vfiprintf_r+0x5c> 80155ee: 6e6b ldr r3, [r5, #100] @ 0x64 80155f0: 07dc lsls r4, r3, #31 80155f2: d504 bpl.n 80155fe <_vfiprintf_r+0x4e> 80155f4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80155f8: b01d add sp, #116 @ 0x74 80155fa: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80155fe: 89ab ldrh r3, [r5, #12] 8015600: 0598 lsls r0, r3, #22 8015602: d4f7 bmi.n 80155f4 <_vfiprintf_r+0x44> 8015604: 6da8 ldr r0, [r5, #88] @ 0x58 8015606: f7fe ffb7 bl 8014578 <__retarget_lock_release_recursive> 801560a: e7f3 b.n 80155f4 <_vfiprintf_r+0x44> 801560c: 2300 movs r3, #0 801560e: 9309 str r3, [sp, #36] @ 0x24 8015610: 2320 movs r3, #32 8015612: f88d 3029 strb.w r3, [sp, #41] @ 0x29 8015616: 2330 movs r3, #48 @ 0x30 8015618: f04f 0901 mov.w r9, #1 801561c: f8cd 800c str.w r8, [sp, #12] 8015620: f8df 81a8 ldr.w r8, [pc, #424] @ 80157cc <_vfiprintf_r+0x21c> 8015624: f88d 302a strb.w r3, [sp, #42] @ 0x2a 8015628: 4623 mov r3, r4 801562a: 469a mov sl, r3 801562c: f813 2b01 ldrb.w r2, [r3], #1 8015630: b10a cbz r2, 8015636 <_vfiprintf_r+0x86> 8015632: 2a25 cmp r2, #37 @ 0x25 8015634: d1f9 bne.n 801562a <_vfiprintf_r+0x7a> 8015636: ebba 0b04 subs.w fp, sl, r4 801563a: d00b beq.n 8015654 <_vfiprintf_r+0xa4> 801563c: 465b mov r3, fp 801563e: 4622 mov r2, r4 8015640: 4629 mov r1, r5 8015642: 4630 mov r0, r6 8015644: f7ff ffa1 bl 801558a <__sfputs_r> 8015648: 3001 adds r0, #1 801564a: f000 80a7 beq.w 801579c <_vfiprintf_r+0x1ec> 801564e: 9a09 ldr r2, [sp, #36] @ 0x24 8015650: 445a add r2, fp 8015652: 9209 str r2, [sp, #36] @ 0x24 8015654: f89a 3000 ldrb.w r3, [sl] 8015658: 2b00 cmp r3, #0 801565a: f000 809f beq.w 801579c <_vfiprintf_r+0x1ec> 801565e: 2300 movs r3, #0 8015660: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8015664: e9cd 2305 strd r2, r3, [sp, #20] 8015668: f10a 0a01 add.w sl, sl, #1 801566c: 9304 str r3, [sp, #16] 801566e: 9307 str r3, [sp, #28] 8015670: f88d 3053 strb.w r3, [sp, #83] @ 0x53 8015674: 931a str r3, [sp, #104] @ 0x68 8015676: 4654 mov r4, sl 8015678: 2205 movs r2, #5 801567a: f814 1b01 ldrb.w r1, [r4], #1 801567e: 4853 ldr r0, [pc, #332] @ (80157cc <_vfiprintf_r+0x21c>) 8015680: f7fe ff80 bl 8014584 8015684: 9a04 ldr r2, [sp, #16] 8015686: b9d8 cbnz r0, 80156c0 <_vfiprintf_r+0x110> 8015688: 06d1 lsls r1, r2, #27 801568a: bf44 itt mi 801568c: 2320 movmi r3, #32 801568e: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015692: 0713 lsls r3, r2, #28 8015694: bf44 itt mi 8015696: 232b movmi r3, #43 @ 0x2b 8015698: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 801569c: f89a 3000 ldrb.w r3, [sl] 80156a0: 2b2a cmp r3, #42 @ 0x2a 80156a2: d015 beq.n 80156d0 <_vfiprintf_r+0x120> 80156a4: 4654 mov r4, sl 80156a6: 2000 movs r0, #0 80156a8: f04f 0c0a mov.w ip, #10 80156ac: 9a07 ldr r2, [sp, #28] 80156ae: 4621 mov r1, r4 80156b0: f811 3b01 ldrb.w r3, [r1], #1 80156b4: 3b30 subs r3, #48 @ 0x30 80156b6: 2b09 cmp r3, #9 80156b8: d94b bls.n 8015752 <_vfiprintf_r+0x1a2> 80156ba: b1b0 cbz r0, 80156ea <_vfiprintf_r+0x13a> 80156bc: 9207 str r2, [sp, #28] 80156be: e014 b.n 80156ea <_vfiprintf_r+0x13a> 80156c0: eba0 0308 sub.w r3, r0, r8 80156c4: fa09 f303 lsl.w r3, r9, r3 80156c8: 4313 orrs r3, r2 80156ca: 46a2 mov sl, r4 80156cc: 9304 str r3, [sp, #16] 80156ce: e7d2 b.n 8015676 <_vfiprintf_r+0xc6> 80156d0: 9b03 ldr r3, [sp, #12] 80156d2: 1d19 adds r1, r3, #4 80156d4: 681b ldr r3, [r3, #0] 80156d6: 9103 str r1, [sp, #12] 80156d8: 2b00 cmp r3, #0 80156da: bfbb ittet lt 80156dc: 425b neglt r3, r3 80156de: f042 0202 orrlt.w r2, r2, #2 80156e2: 9307 strge r3, [sp, #28] 80156e4: 9307 strlt r3, [sp, #28] 80156e6: bfb8 it lt 80156e8: 9204 strlt r2, [sp, #16] 80156ea: 7823 ldrb r3, [r4, #0] 80156ec: 2b2e cmp r3, #46 @ 0x2e 80156ee: d10a bne.n 8015706 <_vfiprintf_r+0x156> 80156f0: 7863 ldrb r3, [r4, #1] 80156f2: 2b2a cmp r3, #42 @ 0x2a 80156f4: d132 bne.n 801575c <_vfiprintf_r+0x1ac> 80156f6: 9b03 ldr r3, [sp, #12] 80156f8: 3402 adds r4, #2 80156fa: 1d1a adds r2, r3, #4 80156fc: 681b ldr r3, [r3, #0] 80156fe: 9203 str r2, [sp, #12] 8015700: ea43 73e3 orr.w r3, r3, r3, asr #31 8015704: 9305 str r3, [sp, #20] 8015706: f8df a0c8 ldr.w sl, [pc, #200] @ 80157d0 <_vfiprintf_r+0x220> 801570a: 2203 movs r2, #3 801570c: 4650 mov r0, sl 801570e: 7821 ldrb r1, [r4, #0] 8015710: f7fe ff38 bl 8014584 8015714: b138 cbz r0, 8015726 <_vfiprintf_r+0x176> 8015716: 2240 movs r2, #64 @ 0x40 8015718: 9b04 ldr r3, [sp, #16] 801571a: eba0 000a sub.w r0, r0, sl 801571e: 4082 lsls r2, r0 8015720: 4313 orrs r3, r2 8015722: 3401 adds r4, #1 8015724: 9304 str r3, [sp, #16] 8015726: f814 1b01 ldrb.w r1, [r4], #1 801572a: 2206 movs r2, #6 801572c: 4829 ldr r0, [pc, #164] @ (80157d4 <_vfiprintf_r+0x224>) 801572e: f88d 1028 strb.w r1, [sp, #40] @ 0x28 8015732: f7fe ff27 bl 8014584 8015736: 2800 cmp r0, #0 8015738: d03f beq.n 80157ba <_vfiprintf_r+0x20a> 801573a: 4b27 ldr r3, [pc, #156] @ (80157d8 <_vfiprintf_r+0x228>) 801573c: bb1b cbnz r3, 8015786 <_vfiprintf_r+0x1d6> 801573e: 9b03 ldr r3, [sp, #12] 8015740: 3307 adds r3, #7 8015742: f023 0307 bic.w r3, r3, #7 8015746: 3308 adds r3, #8 8015748: 9303 str r3, [sp, #12] 801574a: 9b09 ldr r3, [sp, #36] @ 0x24 801574c: 443b add r3, r7 801574e: 9309 str r3, [sp, #36] @ 0x24 8015750: e76a b.n 8015628 <_vfiprintf_r+0x78> 8015752: 460c mov r4, r1 8015754: 2001 movs r0, #1 8015756: fb0c 3202 mla r2, ip, r2, r3 801575a: e7a8 b.n 80156ae <_vfiprintf_r+0xfe> 801575c: 2300 movs r3, #0 801575e: f04f 0c0a mov.w ip, #10 8015762: 4619 mov r1, r3 8015764: 3401 adds r4, #1 8015766: 9305 str r3, [sp, #20] 8015768: 4620 mov r0, r4 801576a: f810 2b01 ldrb.w r2, [r0], #1 801576e: 3a30 subs r2, #48 @ 0x30 8015770: 2a09 cmp r2, #9 8015772: d903 bls.n 801577c <_vfiprintf_r+0x1cc> 8015774: 2b00 cmp r3, #0 8015776: d0c6 beq.n 8015706 <_vfiprintf_r+0x156> 8015778: 9105 str r1, [sp, #20] 801577a: e7c4 b.n 8015706 <_vfiprintf_r+0x156> 801577c: 4604 mov r4, r0 801577e: 2301 movs r3, #1 8015780: fb0c 2101 mla r1, ip, r1, r2 8015784: e7f0 b.n 8015768 <_vfiprintf_r+0x1b8> 8015786: ab03 add r3, sp, #12 8015788: 9300 str r3, [sp, #0] 801578a: 462a mov r2, r5 801578c: 4630 mov r0, r6 801578e: 4b13 ldr r3, [pc, #76] @ (80157dc <_vfiprintf_r+0x22c>) 8015790: a904 add r1, sp, #16 8015792: f7fe f9f1 bl 8013b78 <_printf_float> 8015796: 4607 mov r7, r0 8015798: 1c78 adds r0, r7, #1 801579a: d1d6 bne.n 801574a <_vfiprintf_r+0x19a> 801579c: 6e6b ldr r3, [r5, #100] @ 0x64 801579e: 07d9 lsls r1, r3, #31 80157a0: d405 bmi.n 80157ae <_vfiprintf_r+0x1fe> 80157a2: 89ab ldrh r3, [r5, #12] 80157a4: 059a lsls r2, r3, #22 80157a6: d402 bmi.n 80157ae <_vfiprintf_r+0x1fe> 80157a8: 6da8 ldr r0, [r5, #88] @ 0x58 80157aa: f7fe fee5 bl 8014578 <__retarget_lock_release_recursive> 80157ae: 89ab ldrh r3, [r5, #12] 80157b0: 065b lsls r3, r3, #25 80157b2: f53f af1f bmi.w 80155f4 <_vfiprintf_r+0x44> 80157b6: 9809 ldr r0, [sp, #36] @ 0x24 80157b8: e71e b.n 80155f8 <_vfiprintf_r+0x48> 80157ba: ab03 add r3, sp, #12 80157bc: 9300 str r3, [sp, #0] 80157be: 462a mov r2, r5 80157c0: 4630 mov r0, r6 80157c2: 4b06 ldr r3, [pc, #24] @ (80157dc <_vfiprintf_r+0x22c>) 80157c4: a904 add r1, sp, #16 80157c6: f7fe fc75 bl 80140b4 <_printf_i> 80157ca: e7e4 b.n 8015796 <_vfiprintf_r+0x1e6> 80157cc: 08017121 .word 0x08017121 80157d0: 08017127 .word 0x08017127 80157d4: 0801712b .word 0x0801712b 80157d8: 08013b79 .word 0x08013b79 80157dc: 0801558b .word 0x0801558b 080157e0 : 80157e0: 4b02 ldr r3, [pc, #8] @ (80157ec ) 80157e2: 4601 mov r1, r0 80157e4: 6818 ldr r0, [r3, #0] 80157e6: f000 b825 b.w 8015834 <_malloc_r> 80157ea: bf00 nop 80157ec: 20000080 .word 0x20000080 080157f0 : 80157f0: b570 push {r4, r5, r6, lr} 80157f2: 4e0f ldr r6, [pc, #60] @ (8015830 ) 80157f4: 460c mov r4, r1 80157f6: 6831 ldr r1, [r6, #0] 80157f8: 4605 mov r5, r0 80157fa: b911 cbnz r1, 8015802 80157fc: f000 fe90 bl 8016520 <_sbrk_r> 8015800: 6030 str r0, [r6, #0] 8015802: 4621 mov r1, r4 8015804: 4628 mov r0, r5 8015806: f000 fe8b bl 8016520 <_sbrk_r> 801580a: 1c43 adds r3, r0, #1 801580c: d103 bne.n 8015816 801580e: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff 8015812: 4620 mov r0, r4 8015814: bd70 pop {r4, r5, r6, pc} 8015816: 1cc4 adds r4, r0, #3 8015818: f024 0403 bic.w r4, r4, #3 801581c: 42a0 cmp r0, r4 801581e: d0f8 beq.n 8015812 8015820: 1a21 subs r1, r4, r0 8015822: 4628 mov r0, r5 8015824: f000 fe7c bl 8016520 <_sbrk_r> 8015828: 3001 adds r0, #1 801582a: d1f2 bne.n 8015812 801582c: e7ef b.n 801580e 801582e: bf00 nop 8015830: 2000138c .word 0x2000138c 08015834 <_malloc_r>: 8015834: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8015838: 1ccd adds r5, r1, #3 801583a: f025 0503 bic.w r5, r5, #3 801583e: 3508 adds r5, #8 8015840: 2d0c cmp r5, #12 8015842: bf38 it cc 8015844: 250c movcc r5, #12 8015846: 2d00 cmp r5, #0 8015848: 4606 mov r6, r0 801584a: db01 blt.n 8015850 <_malloc_r+0x1c> 801584c: 42a9 cmp r1, r5 801584e: d904 bls.n 801585a <_malloc_r+0x26> 8015850: 230c movs r3, #12 8015852: 6033 str r3, [r6, #0] 8015854: 2000 movs r0, #0 8015856: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 801585a: f8df 80d4 ldr.w r8, [pc, #212] @ 8015930 <_malloc_r+0xfc> 801585e: f000 f911 bl 8015a84 <__malloc_lock> 8015862: f8d8 3000 ldr.w r3, [r8] 8015866: 461c mov r4, r3 8015868: bb44 cbnz r4, 80158bc <_malloc_r+0x88> 801586a: 4629 mov r1, r5 801586c: 4630 mov r0, r6 801586e: f7ff ffbf bl 80157f0 8015872: 1c43 adds r3, r0, #1 8015874: 4604 mov r4, r0 8015876: d158 bne.n 801592a <_malloc_r+0xf6> 8015878: f8d8 4000 ldr.w r4, [r8] 801587c: 4627 mov r7, r4 801587e: 2f00 cmp r7, #0 8015880: d143 bne.n 801590a <_malloc_r+0xd6> 8015882: 2c00 cmp r4, #0 8015884: d04b beq.n 801591e <_malloc_r+0xea> 8015886: 6823 ldr r3, [r4, #0] 8015888: 4639 mov r1, r7 801588a: 4630 mov r0, r6 801588c: eb04 0903 add.w r9, r4, r3 8015890: f000 fe46 bl 8016520 <_sbrk_r> 8015894: 4581 cmp r9, r0 8015896: d142 bne.n 801591e <_malloc_r+0xea> 8015898: 6821 ldr r1, [r4, #0] 801589a: 4630 mov r0, r6 801589c: 1a6d subs r5, r5, r1 801589e: 4629 mov r1, r5 80158a0: f7ff ffa6 bl 80157f0 80158a4: 3001 adds r0, #1 80158a6: d03a beq.n 801591e <_malloc_r+0xea> 80158a8: 6823 ldr r3, [r4, #0] 80158aa: 442b add r3, r5 80158ac: 6023 str r3, [r4, #0] 80158ae: f8d8 3000 ldr.w r3, [r8] 80158b2: 685a ldr r2, [r3, #4] 80158b4: bb62 cbnz r2, 8015910 <_malloc_r+0xdc> 80158b6: f8c8 7000 str.w r7, [r8] 80158ba: e00f b.n 80158dc <_malloc_r+0xa8> 80158bc: 6822 ldr r2, [r4, #0] 80158be: 1b52 subs r2, r2, r5 80158c0: d420 bmi.n 8015904 <_malloc_r+0xd0> 80158c2: 2a0b cmp r2, #11 80158c4: d917 bls.n 80158f6 <_malloc_r+0xc2> 80158c6: 1961 adds r1, r4, r5 80158c8: 42a3 cmp r3, r4 80158ca: 6025 str r5, [r4, #0] 80158cc: bf18 it ne 80158ce: 6059 strne r1, [r3, #4] 80158d0: 6863 ldr r3, [r4, #4] 80158d2: bf08 it eq 80158d4: f8c8 1000 streq.w r1, [r8] 80158d8: 5162 str r2, [r4, r5] 80158da: 604b str r3, [r1, #4] 80158dc: 4630 mov r0, r6 80158de: f000 f8d7 bl 8015a90 <__malloc_unlock> 80158e2: f104 000b add.w r0, r4, #11 80158e6: 1d23 adds r3, r4, #4 80158e8: f020 0007 bic.w r0, r0, #7 80158ec: 1ac2 subs r2, r0, r3 80158ee: bf1c itt ne 80158f0: 1a1b subne r3, r3, r0 80158f2: 50a3 strne r3, [r4, r2] 80158f4: e7af b.n 8015856 <_malloc_r+0x22> 80158f6: 6862 ldr r2, [r4, #4] 80158f8: 42a3 cmp r3, r4 80158fa: bf0c ite eq 80158fc: f8c8 2000 streq.w r2, [r8] 8015900: 605a strne r2, [r3, #4] 8015902: e7eb b.n 80158dc <_malloc_r+0xa8> 8015904: 4623 mov r3, r4 8015906: 6864 ldr r4, [r4, #4] 8015908: e7ae b.n 8015868 <_malloc_r+0x34> 801590a: 463c mov r4, r7 801590c: 687f ldr r7, [r7, #4] 801590e: e7b6 b.n 801587e <_malloc_r+0x4a> 8015910: 461a mov r2, r3 8015912: 685b ldr r3, [r3, #4] 8015914: 42a3 cmp r3, r4 8015916: d1fb bne.n 8015910 <_malloc_r+0xdc> 8015918: 2300 movs r3, #0 801591a: 6053 str r3, [r2, #4] 801591c: e7de b.n 80158dc <_malloc_r+0xa8> 801591e: 230c movs r3, #12 8015920: 4630 mov r0, r6 8015922: 6033 str r3, [r6, #0] 8015924: f000 f8b4 bl 8015a90 <__malloc_unlock> 8015928: e794 b.n 8015854 <_malloc_r+0x20> 801592a: 6005 str r5, [r0, #0] 801592c: e7d6 b.n 80158dc <_malloc_r+0xa8> 801592e: bf00 nop 8015930: 20001390 .word 0x20001390 08015934 <__sflush_r>: 8015934: f9b1 200c ldrsh.w r2, [r1, #12] 8015938: b5f8 push {r3, r4, r5, r6, r7, lr} 801593a: 0716 lsls r6, r2, #28 801593c: 4605 mov r5, r0 801593e: 460c mov r4, r1 8015940: d454 bmi.n 80159ec <__sflush_r+0xb8> 8015942: 684b ldr r3, [r1, #4] 8015944: 2b00 cmp r3, #0 8015946: dc02 bgt.n 801594e <__sflush_r+0x1a> 8015948: 6c0b ldr r3, [r1, #64] @ 0x40 801594a: 2b00 cmp r3, #0 801594c: dd48 ble.n 80159e0 <__sflush_r+0xac> 801594e: 6ae6 ldr r6, [r4, #44] @ 0x2c 8015950: 2e00 cmp r6, #0 8015952: d045 beq.n 80159e0 <__sflush_r+0xac> 8015954: 2300 movs r3, #0 8015956: f412 5280 ands.w r2, r2, #4096 @ 0x1000 801595a: 682f ldr r7, [r5, #0] 801595c: 6a21 ldr r1, [r4, #32] 801595e: 602b str r3, [r5, #0] 8015960: d030 beq.n 80159c4 <__sflush_r+0x90> 8015962: 6d62 ldr r2, [r4, #84] @ 0x54 8015964: 89a3 ldrh r3, [r4, #12] 8015966: 0759 lsls r1, r3, #29 8015968: d505 bpl.n 8015976 <__sflush_r+0x42> 801596a: 6863 ldr r3, [r4, #4] 801596c: 1ad2 subs r2, r2, r3 801596e: 6b63 ldr r3, [r4, #52] @ 0x34 8015970: b10b cbz r3, 8015976 <__sflush_r+0x42> 8015972: 6c23 ldr r3, [r4, #64] @ 0x40 8015974: 1ad2 subs r2, r2, r3 8015976: 2300 movs r3, #0 8015978: 4628 mov r0, r5 801597a: 6ae6 ldr r6, [r4, #44] @ 0x2c 801597c: 6a21 ldr r1, [r4, #32] 801597e: 47b0 blx r6 8015980: 1c43 adds r3, r0, #1 8015982: 89a3 ldrh r3, [r4, #12] 8015984: d106 bne.n 8015994 <__sflush_r+0x60> 8015986: 6829 ldr r1, [r5, #0] 8015988: 291d cmp r1, #29 801598a: d82b bhi.n 80159e4 <__sflush_r+0xb0> 801598c: 4a28 ldr r2, [pc, #160] @ (8015a30 <__sflush_r+0xfc>) 801598e: 40ca lsrs r2, r1 8015990: 07d6 lsls r6, r2, #31 8015992: d527 bpl.n 80159e4 <__sflush_r+0xb0> 8015994: 2200 movs r2, #0 8015996: 6062 str r2, [r4, #4] 8015998: 6922 ldr r2, [r4, #16] 801599a: 04d9 lsls r1, r3, #19 801599c: 6022 str r2, [r4, #0] 801599e: d504 bpl.n 80159aa <__sflush_r+0x76> 80159a0: 1c42 adds r2, r0, #1 80159a2: d101 bne.n 80159a8 <__sflush_r+0x74> 80159a4: 682b ldr r3, [r5, #0] 80159a6: b903 cbnz r3, 80159aa <__sflush_r+0x76> 80159a8: 6560 str r0, [r4, #84] @ 0x54 80159aa: 6b61 ldr r1, [r4, #52] @ 0x34 80159ac: 602f str r7, [r5, #0] 80159ae: b1b9 cbz r1, 80159e0 <__sflush_r+0xac> 80159b0: f104 0344 add.w r3, r4, #68 @ 0x44 80159b4: 4299 cmp r1, r3 80159b6: d002 beq.n 80159be <__sflush_r+0x8a> 80159b8: 4628 mov r0, r5 80159ba: f000 fe11 bl 80165e0 <_free_r> 80159be: 2300 movs r3, #0 80159c0: 6363 str r3, [r4, #52] @ 0x34 80159c2: e00d b.n 80159e0 <__sflush_r+0xac> 80159c4: 2301 movs r3, #1 80159c6: 4628 mov r0, r5 80159c8: 47b0 blx r6 80159ca: 4602 mov r2, r0 80159cc: 1c50 adds r0, r2, #1 80159ce: d1c9 bne.n 8015964 <__sflush_r+0x30> 80159d0: 682b ldr r3, [r5, #0] 80159d2: 2b00 cmp r3, #0 80159d4: d0c6 beq.n 8015964 <__sflush_r+0x30> 80159d6: 2b1d cmp r3, #29 80159d8: d001 beq.n 80159de <__sflush_r+0xaa> 80159da: 2b16 cmp r3, #22 80159dc: d11d bne.n 8015a1a <__sflush_r+0xe6> 80159de: 602f str r7, [r5, #0] 80159e0: 2000 movs r0, #0 80159e2: e021 b.n 8015a28 <__sflush_r+0xf4> 80159e4: f043 0340 orr.w r3, r3, #64 @ 0x40 80159e8: b21b sxth r3, r3 80159ea: e01a b.n 8015a22 <__sflush_r+0xee> 80159ec: 690f ldr r7, [r1, #16] 80159ee: 2f00 cmp r7, #0 80159f0: d0f6 beq.n 80159e0 <__sflush_r+0xac> 80159f2: 0793 lsls r3, r2, #30 80159f4: bf18 it ne 80159f6: 2300 movne r3, #0 80159f8: 680e ldr r6, [r1, #0] 80159fa: bf08 it eq 80159fc: 694b ldreq r3, [r1, #20] 80159fe: 1bf6 subs r6, r6, r7 8015a00: 600f str r7, [r1, #0] 8015a02: 608b str r3, [r1, #8] 8015a04: 2e00 cmp r6, #0 8015a06: ddeb ble.n 80159e0 <__sflush_r+0xac> 8015a08: 4633 mov r3, r6 8015a0a: 463a mov r2, r7 8015a0c: 4628 mov r0, r5 8015a0e: 6a21 ldr r1, [r4, #32] 8015a10: f8d4 c028 ldr.w ip, [r4, #40] @ 0x28 8015a14: 47e0 blx ip 8015a16: 2800 cmp r0, #0 8015a18: dc07 bgt.n 8015a2a <__sflush_r+0xf6> 8015a1a: f9b4 300c ldrsh.w r3, [r4, #12] 8015a1e: f043 0340 orr.w r3, r3, #64 @ 0x40 8015a22: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015a26: 81a3 strh r3, [r4, #12] 8015a28: bdf8 pop {r3, r4, r5, r6, r7, pc} 8015a2a: 4407 add r7, r0 8015a2c: 1a36 subs r6, r6, r0 8015a2e: e7e9 b.n 8015a04 <__sflush_r+0xd0> 8015a30: 20400001 .word 0x20400001 08015a34 <_fflush_r>: 8015a34: b538 push {r3, r4, r5, lr} 8015a36: 690b ldr r3, [r1, #16] 8015a38: 4605 mov r5, r0 8015a3a: 460c mov r4, r1 8015a3c: b913 cbnz r3, 8015a44 <_fflush_r+0x10> 8015a3e: 2500 movs r5, #0 8015a40: 4628 mov r0, r5 8015a42: bd38 pop {r3, r4, r5, pc} 8015a44: b118 cbz r0, 8015a4e <_fflush_r+0x1a> 8015a46: 6a03 ldr r3, [r0, #32] 8015a48: b90b cbnz r3, 8015a4e <_fflush_r+0x1a> 8015a4a: f7fe fcdd bl 8014408 <__sinit> 8015a4e: f9b4 300c ldrsh.w r3, [r4, #12] 8015a52: 2b00 cmp r3, #0 8015a54: d0f3 beq.n 8015a3e <_fflush_r+0xa> 8015a56: 6e62 ldr r2, [r4, #100] @ 0x64 8015a58: 07d0 lsls r0, r2, #31 8015a5a: d404 bmi.n 8015a66 <_fflush_r+0x32> 8015a5c: 0599 lsls r1, r3, #22 8015a5e: d402 bmi.n 8015a66 <_fflush_r+0x32> 8015a60: 6da0 ldr r0, [r4, #88] @ 0x58 8015a62: f7fe fd88 bl 8014576 <__retarget_lock_acquire_recursive> 8015a66: 4628 mov r0, r5 8015a68: 4621 mov r1, r4 8015a6a: f7ff ff63 bl 8015934 <__sflush_r> 8015a6e: 6e63 ldr r3, [r4, #100] @ 0x64 8015a70: 4605 mov r5, r0 8015a72: 07da lsls r2, r3, #31 8015a74: d4e4 bmi.n 8015a40 <_fflush_r+0xc> 8015a76: 89a3 ldrh r3, [r4, #12] 8015a78: 059b lsls r3, r3, #22 8015a7a: d4e1 bmi.n 8015a40 <_fflush_r+0xc> 8015a7c: 6da0 ldr r0, [r4, #88] @ 0x58 8015a7e: f7fe fd7b bl 8014578 <__retarget_lock_release_recursive> 8015a82: e7dd b.n 8015a40 <_fflush_r+0xc> 08015a84 <__malloc_lock>: 8015a84: 4801 ldr r0, [pc, #4] @ (8015a8c <__malloc_lock+0x8>) 8015a86: f7fe bd76 b.w 8014576 <__retarget_lock_acquire_recursive> 8015a8a: bf00 nop 8015a8c: 20001388 .word 0x20001388 08015a90 <__malloc_unlock>: 8015a90: 4801 ldr r0, [pc, #4] @ (8015a98 <__malloc_unlock+0x8>) 8015a92: f7fe bd71 b.w 8014578 <__retarget_lock_release_recursive> 8015a96: bf00 nop 8015a98: 20001388 .word 0x20001388 08015a9c <_Balloc>: 8015a9c: b570 push {r4, r5, r6, lr} 8015a9e: 69c6 ldr r6, [r0, #28] 8015aa0: 4604 mov r4, r0 8015aa2: 460d mov r5, r1 8015aa4: b976 cbnz r6, 8015ac4 <_Balloc+0x28> 8015aa6: 2010 movs r0, #16 8015aa8: f7ff fe9a bl 80157e0 8015aac: 4602 mov r2, r0 8015aae: 61e0 str r0, [r4, #28] 8015ab0: b920 cbnz r0, 8015abc <_Balloc+0x20> 8015ab2: 216b movs r1, #107 @ 0x6b 8015ab4: 4b17 ldr r3, [pc, #92] @ (8015b14 <_Balloc+0x78>) 8015ab6: 4818 ldr r0, [pc, #96] @ (8015b18 <_Balloc+0x7c>) 8015ab8: f7fe fd80 bl 80145bc <__assert_func> 8015abc: e9c0 6601 strd r6, r6, [r0, #4] 8015ac0: 6006 str r6, [r0, #0] 8015ac2: 60c6 str r6, [r0, #12] 8015ac4: 69e6 ldr r6, [r4, #28] 8015ac6: 68f3 ldr r3, [r6, #12] 8015ac8: b183 cbz r3, 8015aec <_Balloc+0x50> 8015aca: 69e3 ldr r3, [r4, #28] 8015acc: 68db ldr r3, [r3, #12] 8015ace: f853 0025 ldr.w r0, [r3, r5, lsl #2] 8015ad2: b9b8 cbnz r0, 8015b04 <_Balloc+0x68> 8015ad4: 2101 movs r1, #1 8015ad6: fa01 f605 lsl.w r6, r1, r5 8015ada: 1d72 adds r2, r6, #5 8015adc: 4620 mov r0, r4 8015ade: 0092 lsls r2, r2, #2 8015ae0: f000 fd69 bl 80165b6 <_calloc_r> 8015ae4: b160 cbz r0, 8015b00 <_Balloc+0x64> 8015ae6: e9c0 5601 strd r5, r6, [r0, #4] 8015aea: e00e b.n 8015b0a <_Balloc+0x6e> 8015aec: 2221 movs r2, #33 @ 0x21 8015aee: 2104 movs r1, #4 8015af0: 4620 mov r0, r4 8015af2: f000 fd60 bl 80165b6 <_calloc_r> 8015af6: 69e3 ldr r3, [r4, #28] 8015af8: 60f0 str r0, [r6, #12] 8015afa: 68db ldr r3, [r3, #12] 8015afc: 2b00 cmp r3, #0 8015afe: d1e4 bne.n 8015aca <_Balloc+0x2e> 8015b00: 2000 movs r0, #0 8015b02: bd70 pop {r4, r5, r6, pc} 8015b04: 6802 ldr r2, [r0, #0] 8015b06: f843 2025 str.w r2, [r3, r5, lsl #2] 8015b0a: 2300 movs r3, #0 8015b0c: e9c0 3303 strd r3, r3, [r0, #12] 8015b10: e7f7 b.n 8015b02 <_Balloc+0x66> 8015b12: bf00 nop 8015b14: 080170a1 .word 0x080170a1 8015b18: 08017132 .word 0x08017132 08015b1c <_Bfree>: 8015b1c: b570 push {r4, r5, r6, lr} 8015b1e: 69c6 ldr r6, [r0, #28] 8015b20: 4605 mov r5, r0 8015b22: 460c mov r4, r1 8015b24: b976 cbnz r6, 8015b44 <_Bfree+0x28> 8015b26: 2010 movs r0, #16 8015b28: f7ff fe5a bl 80157e0 8015b2c: 4602 mov r2, r0 8015b2e: 61e8 str r0, [r5, #28] 8015b30: b920 cbnz r0, 8015b3c <_Bfree+0x20> 8015b32: 218f movs r1, #143 @ 0x8f 8015b34: 4b08 ldr r3, [pc, #32] @ (8015b58 <_Bfree+0x3c>) 8015b36: 4809 ldr r0, [pc, #36] @ (8015b5c <_Bfree+0x40>) 8015b38: f7fe fd40 bl 80145bc <__assert_func> 8015b3c: e9c0 6601 strd r6, r6, [r0, #4] 8015b40: 6006 str r6, [r0, #0] 8015b42: 60c6 str r6, [r0, #12] 8015b44: b13c cbz r4, 8015b56 <_Bfree+0x3a> 8015b46: 69eb ldr r3, [r5, #28] 8015b48: 6862 ldr r2, [r4, #4] 8015b4a: 68db ldr r3, [r3, #12] 8015b4c: f853 1022 ldr.w r1, [r3, r2, lsl #2] 8015b50: 6021 str r1, [r4, #0] 8015b52: f843 4022 str.w r4, [r3, r2, lsl #2] 8015b56: bd70 pop {r4, r5, r6, pc} 8015b58: 080170a1 .word 0x080170a1 8015b5c: 08017132 .word 0x08017132 08015b60 <__multadd>: 8015b60: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 8015b64: 4607 mov r7, r0 8015b66: 460c mov r4, r1 8015b68: 461e mov r6, r3 8015b6a: 2000 movs r0, #0 8015b6c: 690d ldr r5, [r1, #16] 8015b6e: f101 0c14 add.w ip, r1, #20 8015b72: f8dc 3000 ldr.w r3, [ip] 8015b76: 3001 adds r0, #1 8015b78: b299 uxth r1, r3 8015b7a: fb02 6101 mla r1, r2, r1, r6 8015b7e: 0c1e lsrs r6, r3, #16 8015b80: 0c0b lsrs r3, r1, #16 8015b82: fb02 3306 mla r3, r2, r6, r3 8015b86: b289 uxth r1, r1 8015b88: eb01 4103 add.w r1, r1, r3, lsl #16 8015b8c: 4285 cmp r5, r0 8015b8e: ea4f 4613 mov.w r6, r3, lsr #16 8015b92: f84c 1b04 str.w r1, [ip], #4 8015b96: dcec bgt.n 8015b72 <__multadd+0x12> 8015b98: b30e cbz r6, 8015bde <__multadd+0x7e> 8015b9a: 68a3 ldr r3, [r4, #8] 8015b9c: 42ab cmp r3, r5 8015b9e: dc19 bgt.n 8015bd4 <__multadd+0x74> 8015ba0: 6861 ldr r1, [r4, #4] 8015ba2: 4638 mov r0, r7 8015ba4: 3101 adds r1, #1 8015ba6: f7ff ff79 bl 8015a9c <_Balloc> 8015baa: 4680 mov r8, r0 8015bac: b928 cbnz r0, 8015bba <__multadd+0x5a> 8015bae: 4602 mov r2, r0 8015bb0: 21ba movs r1, #186 @ 0xba 8015bb2: 4b0c ldr r3, [pc, #48] @ (8015be4 <__multadd+0x84>) 8015bb4: 480c ldr r0, [pc, #48] @ (8015be8 <__multadd+0x88>) 8015bb6: f7fe fd01 bl 80145bc <__assert_func> 8015bba: 6922 ldr r2, [r4, #16] 8015bbc: f104 010c add.w r1, r4, #12 8015bc0: 3202 adds r2, #2 8015bc2: 0092 lsls r2, r2, #2 8015bc4: 300c adds r0, #12 8015bc6: f7fe fceb bl 80145a0 8015bca: 4621 mov r1, r4 8015bcc: 4638 mov r0, r7 8015bce: f7ff ffa5 bl 8015b1c <_Bfree> 8015bd2: 4644 mov r4, r8 8015bd4: eb04 0385 add.w r3, r4, r5, lsl #2 8015bd8: 3501 adds r5, #1 8015bda: 615e str r6, [r3, #20] 8015bdc: 6125 str r5, [r4, #16] 8015bde: 4620 mov r0, r4 8015be0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 8015be4: 08017110 .word 0x08017110 8015be8: 08017132 .word 0x08017132 08015bec <__hi0bits>: 8015bec: 4603 mov r3, r0 8015bee: f5b0 3f80 cmp.w r0, #65536 @ 0x10000 8015bf2: bf3a itte cc 8015bf4: 0403 lslcc r3, r0, #16 8015bf6: 2010 movcc r0, #16 8015bf8: 2000 movcs r0, #0 8015bfa: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 8015bfe: bf3c itt cc 8015c00: 021b lslcc r3, r3, #8 8015c02: 3008 addcc r0, #8 8015c04: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 8015c08: bf3c itt cc 8015c0a: 011b lslcc r3, r3, #4 8015c0c: 3004 addcc r0, #4 8015c0e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8015c12: bf3c itt cc 8015c14: 009b lslcc r3, r3, #2 8015c16: 3002 addcc r0, #2 8015c18: 2b00 cmp r3, #0 8015c1a: db05 blt.n 8015c28 <__hi0bits+0x3c> 8015c1c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000 8015c20: f100 0001 add.w r0, r0, #1 8015c24: bf08 it eq 8015c26: 2020 moveq r0, #32 8015c28: 4770 bx lr 08015c2a <__lo0bits>: 8015c2a: 6803 ldr r3, [r0, #0] 8015c2c: 4602 mov r2, r0 8015c2e: f013 0007 ands.w r0, r3, #7 8015c32: d00b beq.n 8015c4c <__lo0bits+0x22> 8015c34: 07d9 lsls r1, r3, #31 8015c36: d421 bmi.n 8015c7c <__lo0bits+0x52> 8015c38: 0798 lsls r0, r3, #30 8015c3a: bf49 itett mi 8015c3c: 085b lsrmi r3, r3, #1 8015c3e: 089b lsrpl r3, r3, #2 8015c40: 2001 movmi r0, #1 8015c42: 6013 strmi r3, [r2, #0] 8015c44: bf5c itt pl 8015c46: 2002 movpl r0, #2 8015c48: 6013 strpl r3, [r2, #0] 8015c4a: 4770 bx lr 8015c4c: b299 uxth r1, r3 8015c4e: b909 cbnz r1, 8015c54 <__lo0bits+0x2a> 8015c50: 2010 movs r0, #16 8015c52: 0c1b lsrs r3, r3, #16 8015c54: b2d9 uxtb r1, r3 8015c56: b909 cbnz r1, 8015c5c <__lo0bits+0x32> 8015c58: 3008 adds r0, #8 8015c5a: 0a1b lsrs r3, r3, #8 8015c5c: 0719 lsls r1, r3, #28 8015c5e: bf04 itt eq 8015c60: 091b lsreq r3, r3, #4 8015c62: 3004 addeq r0, #4 8015c64: 0799 lsls r1, r3, #30 8015c66: bf04 itt eq 8015c68: 089b lsreq r3, r3, #2 8015c6a: 3002 addeq r0, #2 8015c6c: 07d9 lsls r1, r3, #31 8015c6e: d403 bmi.n 8015c78 <__lo0bits+0x4e> 8015c70: 085b lsrs r3, r3, #1 8015c72: f100 0001 add.w r0, r0, #1 8015c76: d003 beq.n 8015c80 <__lo0bits+0x56> 8015c78: 6013 str r3, [r2, #0] 8015c7a: 4770 bx lr 8015c7c: 2000 movs r0, #0 8015c7e: 4770 bx lr 8015c80: 2020 movs r0, #32 8015c82: 4770 bx lr 08015c84 <__i2b>: 8015c84: b510 push {r4, lr} 8015c86: 460c mov r4, r1 8015c88: 2101 movs r1, #1 8015c8a: f7ff ff07 bl 8015a9c <_Balloc> 8015c8e: 4602 mov r2, r0 8015c90: b928 cbnz r0, 8015c9e <__i2b+0x1a> 8015c92: f240 1145 movw r1, #325 @ 0x145 8015c96: 4b04 ldr r3, [pc, #16] @ (8015ca8 <__i2b+0x24>) 8015c98: 4804 ldr r0, [pc, #16] @ (8015cac <__i2b+0x28>) 8015c9a: f7fe fc8f bl 80145bc <__assert_func> 8015c9e: 2301 movs r3, #1 8015ca0: 6144 str r4, [r0, #20] 8015ca2: 6103 str r3, [r0, #16] 8015ca4: bd10 pop {r4, pc} 8015ca6: bf00 nop 8015ca8: 08017110 .word 0x08017110 8015cac: 08017132 .word 0x08017132 08015cb0 <__multiply>: 8015cb0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8015cb4: 4617 mov r7, r2 8015cb6: 690a ldr r2, [r1, #16] 8015cb8: 693b ldr r3, [r7, #16] 8015cba: 4689 mov r9, r1 8015cbc: 429a cmp r2, r3 8015cbe: bfa2 ittt ge 8015cc0: 463b movge r3, r7 8015cc2: 460f movge r7, r1 8015cc4: 4699 movge r9, r3 8015cc6: 693d ldr r5, [r7, #16] 8015cc8: f8d9 a010 ldr.w sl, [r9, #16] 8015ccc: 68bb ldr r3, [r7, #8] 8015cce: 6879 ldr r1, [r7, #4] 8015cd0: eb05 060a add.w r6, r5, sl 8015cd4: 42b3 cmp r3, r6 8015cd6: b085 sub sp, #20 8015cd8: bfb8 it lt 8015cda: 3101 addlt r1, #1 8015cdc: f7ff fede bl 8015a9c <_Balloc> 8015ce0: b930 cbnz r0, 8015cf0 <__multiply+0x40> 8015ce2: 4602 mov r2, r0 8015ce4: f44f 71b1 mov.w r1, #354 @ 0x162 8015ce8: 4b40 ldr r3, [pc, #256] @ (8015dec <__multiply+0x13c>) 8015cea: 4841 ldr r0, [pc, #260] @ (8015df0 <__multiply+0x140>) 8015cec: f7fe fc66 bl 80145bc <__assert_func> 8015cf0: f100 0414 add.w r4, r0, #20 8015cf4: 4623 mov r3, r4 8015cf6: 2200 movs r2, #0 8015cf8: eb04 0e86 add.w lr, r4, r6, lsl #2 8015cfc: 4573 cmp r3, lr 8015cfe: d320 bcc.n 8015d42 <__multiply+0x92> 8015d00: f107 0814 add.w r8, r7, #20 8015d04: f109 0114 add.w r1, r9, #20 8015d08: eb08 0585 add.w r5, r8, r5, lsl #2 8015d0c: eb01 038a add.w r3, r1, sl, lsl #2 8015d10: 9302 str r3, [sp, #8] 8015d12: 1beb subs r3, r5, r7 8015d14: 3b15 subs r3, #21 8015d16: f023 0303 bic.w r3, r3, #3 8015d1a: 3304 adds r3, #4 8015d1c: 3715 adds r7, #21 8015d1e: 42bd cmp r5, r7 8015d20: bf38 it cc 8015d22: 2304 movcc r3, #4 8015d24: 9301 str r3, [sp, #4] 8015d26: 9b02 ldr r3, [sp, #8] 8015d28: 9103 str r1, [sp, #12] 8015d2a: 428b cmp r3, r1 8015d2c: d80c bhi.n 8015d48 <__multiply+0x98> 8015d2e: 2e00 cmp r6, #0 8015d30: dd03 ble.n 8015d3a <__multiply+0x8a> 8015d32: f85e 3d04 ldr.w r3, [lr, #-4]! 8015d36: 2b00 cmp r3, #0 8015d38: d055 beq.n 8015de6 <__multiply+0x136> 8015d3a: 6106 str r6, [r0, #16] 8015d3c: b005 add sp, #20 8015d3e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015d42: f843 2b04 str.w r2, [r3], #4 8015d46: e7d9 b.n 8015cfc <__multiply+0x4c> 8015d48: f8b1 a000 ldrh.w sl, [r1] 8015d4c: f1ba 0f00 cmp.w sl, #0 8015d50: d01f beq.n 8015d92 <__multiply+0xe2> 8015d52: 46c4 mov ip, r8 8015d54: 46a1 mov r9, r4 8015d56: 2700 movs r7, #0 8015d58: f85c 2b04 ldr.w r2, [ip], #4 8015d5c: f8d9 3000 ldr.w r3, [r9] 8015d60: fa1f fb82 uxth.w fp, r2 8015d64: b29b uxth r3, r3 8015d66: fb0a 330b mla r3, sl, fp, r3 8015d6a: 443b add r3, r7 8015d6c: f8d9 7000 ldr.w r7, [r9] 8015d70: 0c12 lsrs r2, r2, #16 8015d72: 0c3f lsrs r7, r7, #16 8015d74: fb0a 7202 mla r2, sl, r2, r7 8015d78: eb02 4213 add.w r2, r2, r3, lsr #16 8015d7c: b29b uxth r3, r3 8015d7e: ea43 4302 orr.w r3, r3, r2, lsl #16 8015d82: 4565 cmp r5, ip 8015d84: ea4f 4712 mov.w r7, r2, lsr #16 8015d88: f849 3b04 str.w r3, [r9], #4 8015d8c: d8e4 bhi.n 8015d58 <__multiply+0xa8> 8015d8e: 9b01 ldr r3, [sp, #4] 8015d90: 50e7 str r7, [r4, r3] 8015d92: 9b03 ldr r3, [sp, #12] 8015d94: 3104 adds r1, #4 8015d96: f8b3 9002 ldrh.w r9, [r3, #2] 8015d9a: f1b9 0f00 cmp.w r9, #0 8015d9e: d020 beq.n 8015de2 <__multiply+0x132> 8015da0: 4647 mov r7, r8 8015da2: 46a4 mov ip, r4 8015da4: f04f 0a00 mov.w sl, #0 8015da8: 6823 ldr r3, [r4, #0] 8015daa: f8b7 b000 ldrh.w fp, [r7] 8015dae: f8bc 2002 ldrh.w r2, [ip, #2] 8015db2: b29b uxth r3, r3 8015db4: fb09 220b mla r2, r9, fp, r2 8015db8: 4452 add r2, sl 8015dba: ea43 4302 orr.w r3, r3, r2, lsl #16 8015dbe: f84c 3b04 str.w r3, [ip], #4 8015dc2: f857 3b04 ldr.w r3, [r7], #4 8015dc6: ea4f 4a13 mov.w sl, r3, lsr #16 8015dca: f8bc 3000 ldrh.w r3, [ip] 8015dce: 42bd cmp r5, r7 8015dd0: fb09 330a mla r3, r9, sl, r3 8015dd4: eb03 4312 add.w r3, r3, r2, lsr #16 8015dd8: ea4f 4a13 mov.w sl, r3, lsr #16 8015ddc: d8e5 bhi.n 8015daa <__multiply+0xfa> 8015dde: 9a01 ldr r2, [sp, #4] 8015de0: 50a3 str r3, [r4, r2] 8015de2: 3404 adds r4, #4 8015de4: e79f b.n 8015d26 <__multiply+0x76> 8015de6: 3e01 subs r6, #1 8015de8: e7a1 b.n 8015d2e <__multiply+0x7e> 8015dea: bf00 nop 8015dec: 08017110 .word 0x08017110 8015df0: 08017132 .word 0x08017132 08015df4 <__pow5mult>: 8015df4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8015df8: 4615 mov r5, r2 8015dfa: f012 0203 ands.w r2, r2, #3 8015dfe: 4607 mov r7, r0 8015e00: 460e mov r6, r1 8015e02: d007 beq.n 8015e14 <__pow5mult+0x20> 8015e04: 4c25 ldr r4, [pc, #148] @ (8015e9c <__pow5mult+0xa8>) 8015e06: 3a01 subs r2, #1 8015e08: 2300 movs r3, #0 8015e0a: f854 2022 ldr.w r2, [r4, r2, lsl #2] 8015e0e: f7ff fea7 bl 8015b60 <__multadd> 8015e12: 4606 mov r6, r0 8015e14: 10ad asrs r5, r5, #2 8015e16: d03d beq.n 8015e94 <__pow5mult+0xa0> 8015e18: 69fc ldr r4, [r7, #28] 8015e1a: b97c cbnz r4, 8015e3c <__pow5mult+0x48> 8015e1c: 2010 movs r0, #16 8015e1e: f7ff fcdf bl 80157e0 8015e22: 4602 mov r2, r0 8015e24: 61f8 str r0, [r7, #28] 8015e26: b928 cbnz r0, 8015e34 <__pow5mult+0x40> 8015e28: f240 11b3 movw r1, #435 @ 0x1b3 8015e2c: 4b1c ldr r3, [pc, #112] @ (8015ea0 <__pow5mult+0xac>) 8015e2e: 481d ldr r0, [pc, #116] @ (8015ea4 <__pow5mult+0xb0>) 8015e30: f7fe fbc4 bl 80145bc <__assert_func> 8015e34: e9c0 4401 strd r4, r4, [r0, #4] 8015e38: 6004 str r4, [r0, #0] 8015e3a: 60c4 str r4, [r0, #12] 8015e3c: f8d7 801c ldr.w r8, [r7, #28] 8015e40: f8d8 4008 ldr.w r4, [r8, #8] 8015e44: b94c cbnz r4, 8015e5a <__pow5mult+0x66> 8015e46: f240 2171 movw r1, #625 @ 0x271 8015e4a: 4638 mov r0, r7 8015e4c: f7ff ff1a bl 8015c84 <__i2b> 8015e50: 2300 movs r3, #0 8015e52: 4604 mov r4, r0 8015e54: f8c8 0008 str.w r0, [r8, #8] 8015e58: 6003 str r3, [r0, #0] 8015e5a: f04f 0900 mov.w r9, #0 8015e5e: 07eb lsls r3, r5, #31 8015e60: d50a bpl.n 8015e78 <__pow5mult+0x84> 8015e62: 4631 mov r1, r6 8015e64: 4622 mov r2, r4 8015e66: 4638 mov r0, r7 8015e68: f7ff ff22 bl 8015cb0 <__multiply> 8015e6c: 4680 mov r8, r0 8015e6e: 4631 mov r1, r6 8015e70: 4638 mov r0, r7 8015e72: f7ff fe53 bl 8015b1c <_Bfree> 8015e76: 4646 mov r6, r8 8015e78: 106d asrs r5, r5, #1 8015e7a: d00b beq.n 8015e94 <__pow5mult+0xa0> 8015e7c: 6820 ldr r0, [r4, #0] 8015e7e: b938 cbnz r0, 8015e90 <__pow5mult+0x9c> 8015e80: 4622 mov r2, r4 8015e82: 4621 mov r1, r4 8015e84: 4638 mov r0, r7 8015e86: f7ff ff13 bl 8015cb0 <__multiply> 8015e8a: 6020 str r0, [r4, #0] 8015e8c: f8c0 9000 str.w r9, [r0] 8015e90: 4604 mov r4, r0 8015e92: e7e4 b.n 8015e5e <__pow5mult+0x6a> 8015e94: 4630 mov r0, r6 8015e96: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8015e9a: bf00 nop 8015e9c: 08017198 .word 0x08017198 8015ea0: 080170a1 .word 0x080170a1 8015ea4: 08017132 .word 0x08017132 08015ea8 <__lshift>: 8015ea8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8015eac: 460c mov r4, r1 8015eae: 4607 mov r7, r0 8015eb0: 4691 mov r9, r2 8015eb2: 6923 ldr r3, [r4, #16] 8015eb4: 6849 ldr r1, [r1, #4] 8015eb6: eb03 1862 add.w r8, r3, r2, asr #5 8015eba: 68a3 ldr r3, [r4, #8] 8015ebc: ea4f 1a62 mov.w sl, r2, asr #5 8015ec0: f108 0601 add.w r6, r8, #1 8015ec4: 42b3 cmp r3, r6 8015ec6: db0b blt.n 8015ee0 <__lshift+0x38> 8015ec8: 4638 mov r0, r7 8015eca: f7ff fde7 bl 8015a9c <_Balloc> 8015ece: 4605 mov r5, r0 8015ed0: b948 cbnz r0, 8015ee6 <__lshift+0x3e> 8015ed2: 4602 mov r2, r0 8015ed4: f44f 71ef mov.w r1, #478 @ 0x1de 8015ed8: 4b27 ldr r3, [pc, #156] @ (8015f78 <__lshift+0xd0>) 8015eda: 4828 ldr r0, [pc, #160] @ (8015f7c <__lshift+0xd4>) 8015edc: f7fe fb6e bl 80145bc <__assert_func> 8015ee0: 3101 adds r1, #1 8015ee2: 005b lsls r3, r3, #1 8015ee4: e7ee b.n 8015ec4 <__lshift+0x1c> 8015ee6: 2300 movs r3, #0 8015ee8: f100 0114 add.w r1, r0, #20 8015eec: f100 0210 add.w r2, r0, #16 8015ef0: 4618 mov r0, r3 8015ef2: 4553 cmp r3, sl 8015ef4: db33 blt.n 8015f5e <__lshift+0xb6> 8015ef6: 6920 ldr r0, [r4, #16] 8015ef8: ea2a 7aea bic.w sl, sl, sl, asr #31 8015efc: f104 0314 add.w r3, r4, #20 8015f00: f019 091f ands.w r9, r9, #31 8015f04: eb01 018a add.w r1, r1, sl, lsl #2 8015f08: eb03 0c80 add.w ip, r3, r0, lsl #2 8015f0c: d02b beq.n 8015f66 <__lshift+0xbe> 8015f0e: 468a mov sl, r1 8015f10: 2200 movs r2, #0 8015f12: f1c9 0e20 rsb lr, r9, #32 8015f16: 6818 ldr r0, [r3, #0] 8015f18: fa00 f009 lsl.w r0, r0, r9 8015f1c: 4310 orrs r0, r2 8015f1e: f84a 0b04 str.w r0, [sl], #4 8015f22: f853 2b04 ldr.w r2, [r3], #4 8015f26: 459c cmp ip, r3 8015f28: fa22 f20e lsr.w r2, r2, lr 8015f2c: d8f3 bhi.n 8015f16 <__lshift+0x6e> 8015f2e: ebac 0304 sub.w r3, ip, r4 8015f32: 3b15 subs r3, #21 8015f34: f023 0303 bic.w r3, r3, #3 8015f38: 3304 adds r3, #4 8015f3a: f104 0015 add.w r0, r4, #21 8015f3e: 4560 cmp r0, ip 8015f40: bf88 it hi 8015f42: 2304 movhi r3, #4 8015f44: 50ca str r2, [r1, r3] 8015f46: b10a cbz r2, 8015f4c <__lshift+0xa4> 8015f48: f108 0602 add.w r6, r8, #2 8015f4c: 3e01 subs r6, #1 8015f4e: 4638 mov r0, r7 8015f50: 4621 mov r1, r4 8015f52: 612e str r6, [r5, #16] 8015f54: f7ff fde2 bl 8015b1c <_Bfree> 8015f58: 4628 mov r0, r5 8015f5a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8015f5e: f842 0f04 str.w r0, [r2, #4]! 8015f62: 3301 adds r3, #1 8015f64: e7c5 b.n 8015ef2 <__lshift+0x4a> 8015f66: 3904 subs r1, #4 8015f68: f853 2b04 ldr.w r2, [r3], #4 8015f6c: 459c cmp ip, r3 8015f6e: f841 2f04 str.w r2, [r1, #4]! 8015f72: d8f9 bhi.n 8015f68 <__lshift+0xc0> 8015f74: e7ea b.n 8015f4c <__lshift+0xa4> 8015f76: bf00 nop 8015f78: 08017110 .word 0x08017110 8015f7c: 08017132 .word 0x08017132 08015f80 <__mcmp>: 8015f80: 4603 mov r3, r0 8015f82: 690a ldr r2, [r1, #16] 8015f84: 6900 ldr r0, [r0, #16] 8015f86: b530 push {r4, r5, lr} 8015f88: 1a80 subs r0, r0, r2 8015f8a: d10e bne.n 8015faa <__mcmp+0x2a> 8015f8c: 3314 adds r3, #20 8015f8e: 3114 adds r1, #20 8015f90: eb03 0482 add.w r4, r3, r2, lsl #2 8015f94: eb01 0182 add.w r1, r1, r2, lsl #2 8015f98: f854 5d04 ldr.w r5, [r4, #-4]! 8015f9c: f851 2d04 ldr.w r2, [r1, #-4]! 8015fa0: 4295 cmp r5, r2 8015fa2: d003 beq.n 8015fac <__mcmp+0x2c> 8015fa4: d205 bcs.n 8015fb2 <__mcmp+0x32> 8015fa6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015faa: bd30 pop {r4, r5, pc} 8015fac: 42a3 cmp r3, r4 8015fae: d3f3 bcc.n 8015f98 <__mcmp+0x18> 8015fb0: e7fb b.n 8015faa <__mcmp+0x2a> 8015fb2: 2001 movs r0, #1 8015fb4: e7f9 b.n 8015faa <__mcmp+0x2a> ... 08015fb8 <__mdiff>: 8015fb8: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 8015fbc: 4689 mov r9, r1 8015fbe: 4606 mov r6, r0 8015fc0: 4611 mov r1, r2 8015fc2: 4648 mov r0, r9 8015fc4: 4614 mov r4, r2 8015fc6: f7ff ffdb bl 8015f80 <__mcmp> 8015fca: 1e05 subs r5, r0, #0 8015fcc: d112 bne.n 8015ff4 <__mdiff+0x3c> 8015fce: 4629 mov r1, r5 8015fd0: 4630 mov r0, r6 8015fd2: f7ff fd63 bl 8015a9c <_Balloc> 8015fd6: 4602 mov r2, r0 8015fd8: b928 cbnz r0, 8015fe6 <__mdiff+0x2e> 8015fda: f240 2137 movw r1, #567 @ 0x237 8015fde: 4b3e ldr r3, [pc, #248] @ (80160d8 <__mdiff+0x120>) 8015fe0: 483e ldr r0, [pc, #248] @ (80160dc <__mdiff+0x124>) 8015fe2: f7fe faeb bl 80145bc <__assert_func> 8015fe6: 2301 movs r3, #1 8015fe8: e9c0 3504 strd r3, r5, [r0, #16] 8015fec: 4610 mov r0, r2 8015fee: b003 add sp, #12 8015ff0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015ff4: bfbc itt lt 8015ff6: 464b movlt r3, r9 8015ff8: 46a1 movlt r9, r4 8015ffa: 4630 mov r0, r6 8015ffc: f8d9 1004 ldr.w r1, [r9, #4] 8016000: bfba itte lt 8016002: 461c movlt r4, r3 8016004: 2501 movlt r5, #1 8016006: 2500 movge r5, #0 8016008: f7ff fd48 bl 8015a9c <_Balloc> 801600c: 4602 mov r2, r0 801600e: b918 cbnz r0, 8016018 <__mdiff+0x60> 8016010: f240 2145 movw r1, #581 @ 0x245 8016014: 4b30 ldr r3, [pc, #192] @ (80160d8 <__mdiff+0x120>) 8016016: e7e3 b.n 8015fe0 <__mdiff+0x28> 8016018: f100 0b14 add.w fp, r0, #20 801601c: f8d9 7010 ldr.w r7, [r9, #16] 8016020: f109 0310 add.w r3, r9, #16 8016024: 60c5 str r5, [r0, #12] 8016026: f04f 0c00 mov.w ip, #0 801602a: f109 0514 add.w r5, r9, #20 801602e: 46d9 mov r9, fp 8016030: 6926 ldr r6, [r4, #16] 8016032: f104 0e14 add.w lr, r4, #20 8016036: eb05 0887 add.w r8, r5, r7, lsl #2 801603a: eb0e 0686 add.w r6, lr, r6, lsl #2 801603e: 9301 str r3, [sp, #4] 8016040: 9b01 ldr r3, [sp, #4] 8016042: f85e 0b04 ldr.w r0, [lr], #4 8016046: f853 af04 ldr.w sl, [r3, #4]! 801604a: b281 uxth r1, r0 801604c: 9301 str r3, [sp, #4] 801604e: fa1f f38a uxth.w r3, sl 8016052: 1a5b subs r3, r3, r1 8016054: 0c00 lsrs r0, r0, #16 8016056: 4463 add r3, ip 8016058: ebc0 401a rsb r0, r0, sl, lsr #16 801605c: eb00 4023 add.w r0, r0, r3, asr #16 8016060: b29b uxth r3, r3 8016062: ea43 4300 orr.w r3, r3, r0, lsl #16 8016066: 4576 cmp r6, lr 8016068: ea4f 4c20 mov.w ip, r0, asr #16 801606c: f849 3b04 str.w r3, [r9], #4 8016070: d8e6 bhi.n 8016040 <__mdiff+0x88> 8016072: 1b33 subs r3, r6, r4 8016074: 3b15 subs r3, #21 8016076: f023 0303 bic.w r3, r3, #3 801607a: 3415 adds r4, #21 801607c: 3304 adds r3, #4 801607e: 42a6 cmp r6, r4 8016080: bf38 it cc 8016082: 2304 movcc r3, #4 8016084: 441d add r5, r3 8016086: 445b add r3, fp 8016088: 461e mov r6, r3 801608a: 462c mov r4, r5 801608c: 4544 cmp r4, r8 801608e: d30e bcc.n 80160ae <__mdiff+0xf6> 8016090: f108 0103 add.w r1, r8, #3 8016094: 1b49 subs r1, r1, r5 8016096: f021 0103 bic.w r1, r1, #3 801609a: 3d03 subs r5, #3 801609c: 45a8 cmp r8, r5 801609e: bf38 it cc 80160a0: 2100 movcc r1, #0 80160a2: 440b add r3, r1 80160a4: f853 1d04 ldr.w r1, [r3, #-4]! 80160a8: b199 cbz r1, 80160d2 <__mdiff+0x11a> 80160aa: 6117 str r7, [r2, #16] 80160ac: e79e b.n 8015fec <__mdiff+0x34> 80160ae: 46e6 mov lr, ip 80160b0: f854 1b04 ldr.w r1, [r4], #4 80160b4: fa1f fc81 uxth.w ip, r1 80160b8: 44f4 add ip, lr 80160ba: 0c08 lsrs r0, r1, #16 80160bc: 4471 add r1, lr 80160be: eb00 402c add.w r0, r0, ip, asr #16 80160c2: b289 uxth r1, r1 80160c4: ea41 4100 orr.w r1, r1, r0, lsl #16 80160c8: ea4f 4c20 mov.w ip, r0, asr #16 80160cc: f846 1b04 str.w r1, [r6], #4 80160d0: e7dc b.n 801608c <__mdiff+0xd4> 80160d2: 3f01 subs r7, #1 80160d4: e7e6 b.n 80160a4 <__mdiff+0xec> 80160d6: bf00 nop 80160d8: 08017110 .word 0x08017110 80160dc: 08017132 .word 0x08017132 080160e0 <__d2b>: 80160e0: e92d 4373 stmdb sp!, {r0, r1, r4, r5, r6, r8, r9, lr} 80160e4: 2101 movs r1, #1 80160e6: 4690 mov r8, r2 80160e8: 4699 mov r9, r3 80160ea: 9e08 ldr r6, [sp, #32] 80160ec: f7ff fcd6 bl 8015a9c <_Balloc> 80160f0: 4604 mov r4, r0 80160f2: b930 cbnz r0, 8016102 <__d2b+0x22> 80160f4: 4602 mov r2, r0 80160f6: f240 310f movw r1, #783 @ 0x30f 80160fa: 4b23 ldr r3, [pc, #140] @ (8016188 <__d2b+0xa8>) 80160fc: 4823 ldr r0, [pc, #140] @ (801618c <__d2b+0xac>) 80160fe: f7fe fa5d bl 80145bc <__assert_func> 8016102: f3c9 550a ubfx r5, r9, #20, #11 8016106: f3c9 0313 ubfx r3, r9, #0, #20 801610a: b10d cbz r5, 8016110 <__d2b+0x30> 801610c: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 8016110: 9301 str r3, [sp, #4] 8016112: f1b8 0300 subs.w r3, r8, #0 8016116: d024 beq.n 8016162 <__d2b+0x82> 8016118: 4668 mov r0, sp 801611a: 9300 str r3, [sp, #0] 801611c: f7ff fd85 bl 8015c2a <__lo0bits> 8016120: e9dd 1200 ldrd r1, r2, [sp] 8016124: b1d8 cbz r0, 801615e <__d2b+0x7e> 8016126: f1c0 0320 rsb r3, r0, #32 801612a: fa02 f303 lsl.w r3, r2, r3 801612e: 430b orrs r3, r1 8016130: 40c2 lsrs r2, r0 8016132: 6163 str r3, [r4, #20] 8016134: 9201 str r2, [sp, #4] 8016136: 9b01 ldr r3, [sp, #4] 8016138: 2b00 cmp r3, #0 801613a: bf0c ite eq 801613c: 2201 moveq r2, #1 801613e: 2202 movne r2, #2 8016140: 61a3 str r3, [r4, #24] 8016142: 6122 str r2, [r4, #16] 8016144: b1ad cbz r5, 8016172 <__d2b+0x92> 8016146: f2a5 4533 subw r5, r5, #1075 @ 0x433 801614a: 4405 add r5, r0 801614c: 6035 str r5, [r6, #0] 801614e: f1c0 0035 rsb r0, r0, #53 @ 0x35 8016152: 9b09 ldr r3, [sp, #36] @ 0x24 8016154: 6018 str r0, [r3, #0] 8016156: 4620 mov r0, r4 8016158: b002 add sp, #8 801615a: e8bd 8370 ldmia.w sp!, {r4, r5, r6, r8, r9, pc} 801615e: 6161 str r1, [r4, #20] 8016160: e7e9 b.n 8016136 <__d2b+0x56> 8016162: a801 add r0, sp, #4 8016164: f7ff fd61 bl 8015c2a <__lo0bits> 8016168: 9b01 ldr r3, [sp, #4] 801616a: 2201 movs r2, #1 801616c: 6163 str r3, [r4, #20] 801616e: 3020 adds r0, #32 8016170: e7e7 b.n 8016142 <__d2b+0x62> 8016172: f2a0 4032 subw r0, r0, #1074 @ 0x432 8016176: eb04 0382 add.w r3, r4, r2, lsl #2 801617a: 6030 str r0, [r6, #0] 801617c: 6918 ldr r0, [r3, #16] 801617e: f7ff fd35 bl 8015bec <__hi0bits> 8016182: ebc0 1042 rsb r0, r0, r2, lsl #5 8016186: e7e4 b.n 8016152 <__d2b+0x72> 8016188: 08017110 .word 0x08017110 801618c: 08017132 .word 0x08017132 08016190 <__sread>: 8016190: b510 push {r4, lr} 8016192: 460c mov r4, r1 8016194: f9b1 100e ldrsh.w r1, [r1, #14] 8016198: f000 f9b0 bl 80164fc <_read_r> 801619c: 2800 cmp r0, #0 801619e: bfab itete ge 80161a0: 6d63 ldrge r3, [r4, #84] @ 0x54 80161a2: 89a3 ldrhlt r3, [r4, #12] 80161a4: 181b addge r3, r3, r0 80161a6: f423 5380 biclt.w r3, r3, #4096 @ 0x1000 80161aa: bfac ite ge 80161ac: 6563 strge r3, [r4, #84] @ 0x54 80161ae: 81a3 strhlt r3, [r4, #12] 80161b0: bd10 pop {r4, pc} 080161b2 <__swrite>: 80161b2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 80161b6: 461f mov r7, r3 80161b8: 898b ldrh r3, [r1, #12] 80161ba: 4605 mov r5, r0 80161bc: 05db lsls r3, r3, #23 80161be: 460c mov r4, r1 80161c0: 4616 mov r6, r2 80161c2: d505 bpl.n 80161d0 <__swrite+0x1e> 80161c4: 2302 movs r3, #2 80161c6: 2200 movs r2, #0 80161c8: f9b1 100e ldrsh.w r1, [r1, #14] 80161cc: f000 f984 bl 80164d8 <_lseek_r> 80161d0: 89a3 ldrh r3, [r4, #12] 80161d2: 4632 mov r2, r6 80161d4: f423 5380 bic.w r3, r3, #4096 @ 0x1000 80161d8: 81a3 strh r3, [r4, #12] 80161da: 4628 mov r0, r5 80161dc: 463b mov r3, r7 80161de: f9b4 100e ldrsh.w r1, [r4, #14] 80161e2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 80161e6: f000 b9ab b.w 8016540 <_write_r> 080161ea <__sseek>: 80161ea: b510 push {r4, lr} 80161ec: 460c mov r4, r1 80161ee: f9b1 100e ldrsh.w r1, [r1, #14] 80161f2: f000 f971 bl 80164d8 <_lseek_r> 80161f6: 1c43 adds r3, r0, #1 80161f8: 89a3 ldrh r3, [r4, #12] 80161fa: bf15 itete ne 80161fc: 6560 strne r0, [r4, #84] @ 0x54 80161fe: f423 5380 biceq.w r3, r3, #4096 @ 0x1000 8016202: f443 5380 orrne.w r3, r3, #4096 @ 0x1000 8016206: 81a3 strheq r3, [r4, #12] 8016208: bf18 it ne 801620a: 81a3 strhne r3, [r4, #12] 801620c: bd10 pop {r4, pc} 0801620e <__sclose>: 801620e: f9b1 100e ldrsh.w r1, [r1, #14] 8016212: f000 b9a7 b.w 8016564 <_close_r> ... 08016218 : 8016218: b40e push {r1, r2, r3} 801621a: b503 push {r0, r1, lr} 801621c: 4601 mov r1, r0 801621e: ab03 add r3, sp, #12 8016220: 4805 ldr r0, [pc, #20] @ (8016238 ) 8016222: f853 2b04 ldr.w r2, [r3], #4 8016226: 6800 ldr r0, [r0, #0] 8016228: 9301 str r3, [sp, #4] 801622a: f7ff f9c1 bl 80155b0 <_vfiprintf_r> 801622e: b002 add sp, #8 8016230: f85d eb04 ldr.w lr, [sp], #4 8016234: b003 add sp, #12 8016236: 4770 bx lr 8016238: 20000080 .word 0x20000080 0801623c <_realloc_r>: 801623c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 8016240: 4607 mov r7, r0 8016242: 4614 mov r4, r2 8016244: 460d mov r5, r1 8016246: b921 cbnz r1, 8016252 <_realloc_r+0x16> 8016248: 4611 mov r1, r2 801624a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 801624e: f7ff baf1 b.w 8015834 <_malloc_r> 8016252: b92a cbnz r2, 8016260 <_realloc_r+0x24> 8016254: f000 f9c4 bl 80165e0 <_free_r> 8016258: 4625 mov r5, r4 801625a: 4628 mov r0, r5 801625c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 8016260: f000 fa18 bl 8016694 <_malloc_usable_size_r> 8016264: 4284 cmp r4, r0 8016266: 4606 mov r6, r0 8016268: d802 bhi.n 8016270 <_realloc_r+0x34> 801626a: ebb4 0f50 cmp.w r4, r0, lsr #1 801626e: d8f4 bhi.n 801625a <_realloc_r+0x1e> 8016270: 4621 mov r1, r4 8016272: 4638 mov r0, r7 8016274: f7ff fade bl 8015834 <_malloc_r> 8016278: 4680 mov r8, r0 801627a: b908 cbnz r0, 8016280 <_realloc_r+0x44> 801627c: 4645 mov r5, r8 801627e: e7ec b.n 801625a <_realloc_r+0x1e> 8016280: 42b4 cmp r4, r6 8016282: 4622 mov r2, r4 8016284: 4629 mov r1, r5 8016286: bf28 it cs 8016288: 4632 movcs r2, r6 801628a: f7fe f989 bl 80145a0 801628e: 4629 mov r1, r5 8016290: 4638 mov r0, r7 8016292: f000 f9a5 bl 80165e0 <_free_r> 8016296: e7f1 b.n 801627c <_realloc_r+0x40> 08016298 <__swbuf_r>: 8016298: b5f8 push {r3, r4, r5, r6, r7, lr} 801629a: 460e mov r6, r1 801629c: 4614 mov r4, r2 801629e: 4605 mov r5, r0 80162a0: b118 cbz r0, 80162aa <__swbuf_r+0x12> 80162a2: 6a03 ldr r3, [r0, #32] 80162a4: b90b cbnz r3, 80162aa <__swbuf_r+0x12> 80162a6: f7fe f8af bl 8014408 <__sinit> 80162aa: 69a3 ldr r3, [r4, #24] 80162ac: 60a3 str r3, [r4, #8] 80162ae: 89a3 ldrh r3, [r4, #12] 80162b0: 071a lsls r2, r3, #28 80162b2: d501 bpl.n 80162b8 <__swbuf_r+0x20> 80162b4: 6923 ldr r3, [r4, #16] 80162b6: b943 cbnz r3, 80162ca <__swbuf_r+0x32> 80162b8: 4621 mov r1, r4 80162ba: 4628 mov r0, r5 80162bc: f000 f82a bl 8016314 <__swsetup_r> 80162c0: b118 cbz r0, 80162ca <__swbuf_r+0x32> 80162c2: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff 80162c6: 4638 mov r0, r7 80162c8: bdf8 pop {r3, r4, r5, r6, r7, pc} 80162ca: 6823 ldr r3, [r4, #0] 80162cc: 6922 ldr r2, [r4, #16] 80162ce: b2f6 uxtb r6, r6 80162d0: 1a98 subs r0, r3, r2 80162d2: 6963 ldr r3, [r4, #20] 80162d4: 4637 mov r7, r6 80162d6: 4283 cmp r3, r0 80162d8: dc05 bgt.n 80162e6 <__swbuf_r+0x4e> 80162da: 4621 mov r1, r4 80162dc: 4628 mov r0, r5 80162de: f7ff fba9 bl 8015a34 <_fflush_r> 80162e2: 2800 cmp r0, #0 80162e4: d1ed bne.n 80162c2 <__swbuf_r+0x2a> 80162e6: 68a3 ldr r3, [r4, #8] 80162e8: 3b01 subs r3, #1 80162ea: 60a3 str r3, [r4, #8] 80162ec: 6823 ldr r3, [r4, #0] 80162ee: 1c5a adds r2, r3, #1 80162f0: 6022 str r2, [r4, #0] 80162f2: 701e strb r6, [r3, #0] 80162f4: 6962 ldr r2, [r4, #20] 80162f6: 1c43 adds r3, r0, #1 80162f8: 429a cmp r2, r3 80162fa: d004 beq.n 8016306 <__swbuf_r+0x6e> 80162fc: 89a3 ldrh r3, [r4, #12] 80162fe: 07db lsls r3, r3, #31 8016300: d5e1 bpl.n 80162c6 <__swbuf_r+0x2e> 8016302: 2e0a cmp r6, #10 8016304: d1df bne.n 80162c6 <__swbuf_r+0x2e> 8016306: 4621 mov r1, r4 8016308: 4628 mov r0, r5 801630a: f7ff fb93 bl 8015a34 <_fflush_r> 801630e: 2800 cmp r0, #0 8016310: d0d9 beq.n 80162c6 <__swbuf_r+0x2e> 8016312: e7d6 b.n 80162c2 <__swbuf_r+0x2a> 08016314 <__swsetup_r>: 8016314: b538 push {r3, r4, r5, lr} 8016316: 4b29 ldr r3, [pc, #164] @ (80163bc <__swsetup_r+0xa8>) 8016318: 4605 mov r5, r0 801631a: 6818 ldr r0, [r3, #0] 801631c: 460c mov r4, r1 801631e: b118 cbz r0, 8016328 <__swsetup_r+0x14> 8016320: 6a03 ldr r3, [r0, #32] 8016322: b90b cbnz r3, 8016328 <__swsetup_r+0x14> 8016324: f7fe f870 bl 8014408 <__sinit> 8016328: f9b4 300c ldrsh.w r3, [r4, #12] 801632c: 0719 lsls r1, r3, #28 801632e: d422 bmi.n 8016376 <__swsetup_r+0x62> 8016330: 06da lsls r2, r3, #27 8016332: d407 bmi.n 8016344 <__swsetup_r+0x30> 8016334: 2209 movs r2, #9 8016336: 602a str r2, [r5, #0] 8016338: f043 0340 orr.w r3, r3, #64 @ 0x40 801633c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8016340: 81a3 strh r3, [r4, #12] 8016342: e033 b.n 80163ac <__swsetup_r+0x98> 8016344: 0758 lsls r0, r3, #29 8016346: d512 bpl.n 801636e <__swsetup_r+0x5a> 8016348: 6b61 ldr r1, [r4, #52] @ 0x34 801634a: b141 cbz r1, 801635e <__swsetup_r+0x4a> 801634c: f104 0344 add.w r3, r4, #68 @ 0x44 8016350: 4299 cmp r1, r3 8016352: d002 beq.n 801635a <__swsetup_r+0x46> 8016354: 4628 mov r0, r5 8016356: f000 f943 bl 80165e0 <_free_r> 801635a: 2300 movs r3, #0 801635c: 6363 str r3, [r4, #52] @ 0x34 801635e: 89a3 ldrh r3, [r4, #12] 8016360: f023 0324 bic.w r3, r3, #36 @ 0x24 8016364: 81a3 strh r3, [r4, #12] 8016366: 2300 movs r3, #0 8016368: 6063 str r3, [r4, #4] 801636a: 6923 ldr r3, [r4, #16] 801636c: 6023 str r3, [r4, #0] 801636e: 89a3 ldrh r3, [r4, #12] 8016370: f043 0308 orr.w r3, r3, #8 8016374: 81a3 strh r3, [r4, #12] 8016376: 6923 ldr r3, [r4, #16] 8016378: b94b cbnz r3, 801638e <__swsetup_r+0x7a> 801637a: 89a3 ldrh r3, [r4, #12] 801637c: f403 7320 and.w r3, r3, #640 @ 0x280 8016380: f5b3 7f00 cmp.w r3, #512 @ 0x200 8016384: d003 beq.n 801638e <__swsetup_r+0x7a> 8016386: 4621 mov r1, r4 8016388: 4628 mov r0, r5 801638a: f000 f83e bl 801640a <__smakebuf_r> 801638e: f9b4 300c ldrsh.w r3, [r4, #12] 8016392: f013 0201 ands.w r2, r3, #1 8016396: d00a beq.n 80163ae <__swsetup_r+0x9a> 8016398: 2200 movs r2, #0 801639a: 60a2 str r2, [r4, #8] 801639c: 6962 ldr r2, [r4, #20] 801639e: 4252 negs r2, r2 80163a0: 61a2 str r2, [r4, #24] 80163a2: 6922 ldr r2, [r4, #16] 80163a4: b942 cbnz r2, 80163b8 <__swsetup_r+0xa4> 80163a6: f013 0080 ands.w r0, r3, #128 @ 0x80 80163aa: d1c5 bne.n 8016338 <__swsetup_r+0x24> 80163ac: bd38 pop {r3, r4, r5, pc} 80163ae: 0799 lsls r1, r3, #30 80163b0: bf58 it pl 80163b2: 6962 ldrpl r2, [r4, #20] 80163b4: 60a2 str r2, [r4, #8] 80163b6: e7f4 b.n 80163a2 <__swsetup_r+0x8e> 80163b8: 2000 movs r0, #0 80163ba: e7f7 b.n 80163ac <__swsetup_r+0x98> 80163bc: 20000080 .word 0x20000080 080163c0 <__swhatbuf_r>: 80163c0: b570 push {r4, r5, r6, lr} 80163c2: 460c mov r4, r1 80163c4: f9b1 100e ldrsh.w r1, [r1, #14] 80163c8: 4615 mov r5, r2 80163ca: 2900 cmp r1, #0 80163cc: 461e mov r6, r3 80163ce: b096 sub sp, #88 @ 0x58 80163d0: da0c bge.n 80163ec <__swhatbuf_r+0x2c> 80163d2: 89a3 ldrh r3, [r4, #12] 80163d4: 2100 movs r1, #0 80163d6: f013 0f80 tst.w r3, #128 @ 0x80 80163da: bf14 ite ne 80163dc: 2340 movne r3, #64 @ 0x40 80163de: f44f 6380 moveq.w r3, #1024 @ 0x400 80163e2: 2000 movs r0, #0 80163e4: 6031 str r1, [r6, #0] 80163e6: 602b str r3, [r5, #0] 80163e8: b016 add sp, #88 @ 0x58 80163ea: bd70 pop {r4, r5, r6, pc} 80163ec: 466a mov r2, sp 80163ee: f000 f8c9 bl 8016584 <_fstat_r> 80163f2: 2800 cmp r0, #0 80163f4: dbed blt.n 80163d2 <__swhatbuf_r+0x12> 80163f6: 9901 ldr r1, [sp, #4] 80163f8: f401 4170 and.w r1, r1, #61440 @ 0xf000 80163fc: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000 8016400: 4259 negs r1, r3 8016402: 4159 adcs r1, r3 8016404: f44f 6380 mov.w r3, #1024 @ 0x400 8016408: e7eb b.n 80163e2 <__swhatbuf_r+0x22> 0801640a <__smakebuf_r>: 801640a: 898b ldrh r3, [r1, #12] 801640c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 801640e: 079d lsls r5, r3, #30 8016410: 4606 mov r6, r0 8016412: 460c mov r4, r1 8016414: d507 bpl.n 8016426 <__smakebuf_r+0x1c> 8016416: f104 0347 add.w r3, r4, #71 @ 0x47 801641a: 6023 str r3, [r4, #0] 801641c: 6123 str r3, [r4, #16] 801641e: 2301 movs r3, #1 8016420: 6163 str r3, [r4, #20] 8016422: b003 add sp, #12 8016424: bdf0 pop {r4, r5, r6, r7, pc} 8016426: 466a mov r2, sp 8016428: ab01 add r3, sp, #4 801642a: f7ff ffc9 bl 80163c0 <__swhatbuf_r> 801642e: 9f00 ldr r7, [sp, #0] 8016430: 4605 mov r5, r0 8016432: 4639 mov r1, r7 8016434: 4630 mov r0, r6 8016436: f7ff f9fd bl 8015834 <_malloc_r> 801643a: b948 cbnz r0, 8016450 <__smakebuf_r+0x46> 801643c: f9b4 300c ldrsh.w r3, [r4, #12] 8016440: 059a lsls r2, r3, #22 8016442: d4ee bmi.n 8016422 <__smakebuf_r+0x18> 8016444: f023 0303 bic.w r3, r3, #3 8016448: f043 0302 orr.w r3, r3, #2 801644c: 81a3 strh r3, [r4, #12] 801644e: e7e2 b.n 8016416 <__smakebuf_r+0xc> 8016450: 89a3 ldrh r3, [r4, #12] 8016452: e9c4 0704 strd r0, r7, [r4, #16] 8016456: f043 0380 orr.w r3, r3, #128 @ 0x80 801645a: 81a3 strh r3, [r4, #12] 801645c: 9b01 ldr r3, [sp, #4] 801645e: 6020 str r0, [r4, #0] 8016460: b15b cbz r3, 801647a <__smakebuf_r+0x70> 8016462: 4630 mov r0, r6 8016464: f9b4 100e ldrsh.w r1, [r4, #14] 8016468: f000 f826 bl 80164b8 <_isatty_r> 801646c: b128 cbz r0, 801647a <__smakebuf_r+0x70> 801646e: 89a3 ldrh r3, [r4, #12] 8016470: f023 0303 bic.w r3, r3, #3 8016474: f043 0301 orr.w r3, r3, #1 8016478: 81a3 strh r3, [r4, #12] 801647a: 89a3 ldrh r3, [r4, #12] 801647c: 431d orrs r5, r3 801647e: 81a5 strh r5, [r4, #12] 8016480: e7cf b.n 8016422 <__smakebuf_r+0x18> 08016482 : 8016482: 4288 cmp r0, r1 8016484: b510 push {r4, lr} 8016486: eb01 0402 add.w r4, r1, r2 801648a: d902 bls.n 8016492 801648c: 4284 cmp r4, r0 801648e: 4623 mov r3, r4 8016490: d807 bhi.n 80164a2 8016492: 1e43 subs r3, r0, #1 8016494: 42a1 cmp r1, r4 8016496: d008 beq.n 80164aa 8016498: f811 2b01 ldrb.w r2, [r1], #1 801649c: f803 2f01 strb.w r2, [r3, #1]! 80164a0: e7f8 b.n 8016494 80164a2: 4601 mov r1, r0 80164a4: 4402 add r2, r0 80164a6: 428a cmp r2, r1 80164a8: d100 bne.n 80164ac 80164aa: bd10 pop {r4, pc} 80164ac: f813 4d01 ldrb.w r4, [r3, #-1]! 80164b0: f802 4d01 strb.w r4, [r2, #-1]! 80164b4: e7f7 b.n 80164a6 ... 080164b8 <_isatty_r>: 80164b8: b538 push {r3, r4, r5, lr} 80164ba: 2300 movs r3, #0 80164bc: 4d05 ldr r5, [pc, #20] @ (80164d4 <_isatty_r+0x1c>) 80164be: 4604 mov r4, r0 80164c0: 4608 mov r0, r1 80164c2: 602b str r3, [r5, #0] 80164c4: f7f6 ffa9 bl 800d41a <_isatty> 80164c8: 1c43 adds r3, r0, #1 80164ca: d102 bne.n 80164d2 <_isatty_r+0x1a> 80164cc: 682b ldr r3, [r5, #0] 80164ce: b103 cbz r3, 80164d2 <_isatty_r+0x1a> 80164d0: 6023 str r3, [r4, #0] 80164d2: bd38 pop {r3, r4, r5, pc} 80164d4: 20001394 .word 0x20001394 080164d8 <_lseek_r>: 80164d8: b538 push {r3, r4, r5, lr} 80164da: 4604 mov r4, r0 80164dc: 4608 mov r0, r1 80164de: 4611 mov r1, r2 80164e0: 2200 movs r2, #0 80164e2: 4d05 ldr r5, [pc, #20] @ (80164f8 <_lseek_r+0x20>) 80164e4: 602a str r2, [r5, #0] 80164e6: 461a mov r2, r3 80164e8: f7f6 ffa1 bl 800d42e <_lseek> 80164ec: 1c43 adds r3, r0, #1 80164ee: d102 bne.n 80164f6 <_lseek_r+0x1e> 80164f0: 682b ldr r3, [r5, #0] 80164f2: b103 cbz r3, 80164f6 <_lseek_r+0x1e> 80164f4: 6023 str r3, [r4, #0] 80164f6: bd38 pop {r3, r4, r5, pc} 80164f8: 20001394 .word 0x20001394 080164fc <_read_r>: 80164fc: b538 push {r3, r4, r5, lr} 80164fe: 4604 mov r4, r0 8016500: 4608 mov r0, r1 8016502: 4611 mov r1, r2 8016504: 2200 movs r2, #0 8016506: 4d05 ldr r5, [pc, #20] @ (801651c <_read_r+0x20>) 8016508: 602a str r2, [r5, #0] 801650a: 461a mov r2, r3 801650c: f7f6 ff4e bl 800d3ac <_read> 8016510: 1c43 adds r3, r0, #1 8016512: d102 bne.n 801651a <_read_r+0x1e> 8016514: 682b ldr r3, [r5, #0] 8016516: b103 cbz r3, 801651a <_read_r+0x1e> 8016518: 6023 str r3, [r4, #0] 801651a: bd38 pop {r3, r4, r5, pc} 801651c: 20001394 .word 0x20001394 08016520 <_sbrk_r>: 8016520: b538 push {r3, r4, r5, lr} 8016522: 2300 movs r3, #0 8016524: 4d05 ldr r5, [pc, #20] @ (801653c <_sbrk_r+0x1c>) 8016526: 4604 mov r4, r0 8016528: 4608 mov r0, r1 801652a: 602b str r3, [r5, #0] 801652c: f7f6 ff8c bl 800d448 <_sbrk> 8016530: 1c43 adds r3, r0, #1 8016532: d102 bne.n 801653a <_sbrk_r+0x1a> 8016534: 682b ldr r3, [r5, #0] 8016536: b103 cbz r3, 801653a <_sbrk_r+0x1a> 8016538: 6023 str r3, [r4, #0] 801653a: bd38 pop {r3, r4, r5, pc} 801653c: 20001394 .word 0x20001394 08016540 <_write_r>: 8016540: b538 push {r3, r4, r5, lr} 8016542: 4604 mov r4, r0 8016544: 4608 mov r0, r1 8016546: 4611 mov r1, r2 8016548: 2200 movs r2, #0 801654a: 4d05 ldr r5, [pc, #20] @ (8016560 <_write_r+0x20>) 801654c: 602a str r2, [r5, #0] 801654e: 461a mov r2, r3 8016550: f7f3 ff02 bl 800a358 <_write> 8016554: 1c43 adds r3, r0, #1 8016556: d102 bne.n 801655e <_write_r+0x1e> 8016558: 682b ldr r3, [r5, #0] 801655a: b103 cbz r3, 801655e <_write_r+0x1e> 801655c: 6023 str r3, [r4, #0] 801655e: bd38 pop {r3, r4, r5, pc} 8016560: 20001394 .word 0x20001394 08016564 <_close_r>: 8016564: b538 push {r3, r4, r5, lr} 8016566: 2300 movs r3, #0 8016568: 4d05 ldr r5, [pc, #20] @ (8016580 <_close_r+0x1c>) 801656a: 4604 mov r4, r0 801656c: 4608 mov r0, r1 801656e: 602b str r3, [r5, #0] 8016570: f7f6 ff39 bl 800d3e6 <_close> 8016574: 1c43 adds r3, r0, #1 8016576: d102 bne.n 801657e <_close_r+0x1a> 8016578: 682b ldr r3, [r5, #0] 801657a: b103 cbz r3, 801657e <_close_r+0x1a> 801657c: 6023 str r3, [r4, #0] 801657e: bd38 pop {r3, r4, r5, pc} 8016580: 20001394 .word 0x20001394 08016584 <_fstat_r>: 8016584: b538 push {r3, r4, r5, lr} 8016586: 2300 movs r3, #0 8016588: 4d06 ldr r5, [pc, #24] @ (80165a4 <_fstat_r+0x20>) 801658a: 4604 mov r4, r0 801658c: 4608 mov r0, r1 801658e: 4611 mov r1, r2 8016590: 602b str r3, [r5, #0] 8016592: f7f6 ff33 bl 800d3fc <_fstat> 8016596: 1c43 adds r3, r0, #1 8016598: d102 bne.n 80165a0 <_fstat_r+0x1c> 801659a: 682b ldr r3, [r5, #0] 801659c: b103 cbz r3, 80165a0 <_fstat_r+0x1c> 801659e: 6023 str r3, [r4, #0] 80165a0: bd38 pop {r3, r4, r5, pc} 80165a2: bf00 nop 80165a4: 20001394 .word 0x20001394 080165a8 : 80165a8: 2006 movs r0, #6 80165aa: b508 push {r3, lr} 80165ac: f000 f8b0 bl 8016710 80165b0: 2001 movs r0, #1 80165b2: f7f6 fef0 bl 800d396 <_exit> 080165b6 <_calloc_r>: 80165b6: b570 push {r4, r5, r6, lr} 80165b8: fba1 5402 umull r5, r4, r1, r2 80165bc: b934 cbnz r4, 80165cc <_calloc_r+0x16> 80165be: 4629 mov r1, r5 80165c0: f7ff f938 bl 8015834 <_malloc_r> 80165c4: 4606 mov r6, r0 80165c6: b928 cbnz r0, 80165d4 <_calloc_r+0x1e> 80165c8: 4630 mov r0, r6 80165ca: bd70 pop {r4, r5, r6, pc} 80165cc: 220c movs r2, #12 80165ce: 2600 movs r6, #0 80165d0: 6002 str r2, [r0, #0] 80165d2: e7f9 b.n 80165c8 <_calloc_r+0x12> 80165d4: 462a mov r2, r5 80165d6: 4621 mov r1, r4 80165d8: f7fd ff9a bl 8014510 80165dc: e7f4 b.n 80165c8 <_calloc_r+0x12> ... 080165e0 <_free_r>: 80165e0: b538 push {r3, r4, r5, lr} 80165e2: 4605 mov r5, r0 80165e4: 2900 cmp r1, #0 80165e6: d040 beq.n 801666a <_free_r+0x8a> 80165e8: f851 3c04 ldr.w r3, [r1, #-4] 80165ec: 1f0c subs r4, r1, #4 80165ee: 2b00 cmp r3, #0 80165f0: bfb8 it lt 80165f2: 18e4 addlt r4, r4, r3 80165f4: f7ff fa46 bl 8015a84 <__malloc_lock> 80165f8: 4a1c ldr r2, [pc, #112] @ (801666c <_free_r+0x8c>) 80165fa: 6813 ldr r3, [r2, #0] 80165fc: b933 cbnz r3, 801660c <_free_r+0x2c> 80165fe: 6063 str r3, [r4, #4] 8016600: 6014 str r4, [r2, #0] 8016602: 4628 mov r0, r5 8016604: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 8016608: f7ff ba42 b.w 8015a90 <__malloc_unlock> 801660c: 42a3 cmp r3, r4 801660e: d908 bls.n 8016622 <_free_r+0x42> 8016610: 6820 ldr r0, [r4, #0] 8016612: 1821 adds r1, r4, r0 8016614: 428b cmp r3, r1 8016616: bf01 itttt eq 8016618: 6819 ldreq r1, [r3, #0] 801661a: 685b ldreq r3, [r3, #4] 801661c: 1809 addeq r1, r1, r0 801661e: 6021 streq r1, [r4, #0] 8016620: e7ed b.n 80165fe <_free_r+0x1e> 8016622: 461a mov r2, r3 8016624: 685b ldr r3, [r3, #4] 8016626: b10b cbz r3, 801662c <_free_r+0x4c> 8016628: 42a3 cmp r3, r4 801662a: d9fa bls.n 8016622 <_free_r+0x42> 801662c: 6811 ldr r1, [r2, #0] 801662e: 1850 adds r0, r2, r1 8016630: 42a0 cmp r0, r4 8016632: d10b bne.n 801664c <_free_r+0x6c> 8016634: 6820 ldr r0, [r4, #0] 8016636: 4401 add r1, r0 8016638: 1850 adds r0, r2, r1 801663a: 4283 cmp r3, r0 801663c: 6011 str r1, [r2, #0] 801663e: d1e0 bne.n 8016602 <_free_r+0x22> 8016640: 6818 ldr r0, [r3, #0] 8016642: 685b ldr r3, [r3, #4] 8016644: 4408 add r0, r1 8016646: 6010 str r0, [r2, #0] 8016648: 6053 str r3, [r2, #4] 801664a: e7da b.n 8016602 <_free_r+0x22> 801664c: d902 bls.n 8016654 <_free_r+0x74> 801664e: 230c movs r3, #12 8016650: 602b str r3, [r5, #0] 8016652: e7d6 b.n 8016602 <_free_r+0x22> 8016654: 6820 ldr r0, [r4, #0] 8016656: 1821 adds r1, r4, r0 8016658: 428b cmp r3, r1 801665a: bf01 itttt eq 801665c: 6819 ldreq r1, [r3, #0] 801665e: 685b ldreq r3, [r3, #4] 8016660: 1809 addeq r1, r1, r0 8016662: 6021 streq r1, [r4, #0] 8016664: 6063 str r3, [r4, #4] 8016666: 6054 str r4, [r2, #4] 8016668: e7cb b.n 8016602 <_free_r+0x22> 801666a: bd38 pop {r3, r4, r5, pc} 801666c: 20001390 .word 0x20001390 08016670 <__ascii_mbtowc>: 8016670: b082 sub sp, #8 8016672: b901 cbnz r1, 8016676 <__ascii_mbtowc+0x6> 8016674: a901 add r1, sp, #4 8016676: b142 cbz r2, 801668a <__ascii_mbtowc+0x1a> 8016678: b14b cbz r3, 801668e <__ascii_mbtowc+0x1e> 801667a: 7813 ldrb r3, [r2, #0] 801667c: 600b str r3, [r1, #0] 801667e: 7812 ldrb r2, [r2, #0] 8016680: 1e10 subs r0, r2, #0 8016682: bf18 it ne 8016684: 2001 movne r0, #1 8016686: b002 add sp, #8 8016688: 4770 bx lr 801668a: 4610 mov r0, r2 801668c: e7fb b.n 8016686 <__ascii_mbtowc+0x16> 801668e: f06f 0001 mvn.w r0, #1 8016692: e7f8 b.n 8016686 <__ascii_mbtowc+0x16> 08016694 <_malloc_usable_size_r>: 8016694: f851 3c04 ldr.w r3, [r1, #-4] 8016698: 1f18 subs r0, r3, #4 801669a: 2b00 cmp r3, #0 801669c: bfbc itt lt 801669e: 580b ldrlt r3, [r1, r0] 80166a0: 18c0 addlt r0, r0, r3 80166a2: 4770 bx lr 080166a4 <__ascii_wctomb>: 80166a4: 4603 mov r3, r0 80166a6: 4608 mov r0, r1 80166a8: b141 cbz r1, 80166bc <__ascii_wctomb+0x18> 80166aa: 2aff cmp r2, #255 @ 0xff 80166ac: d904 bls.n 80166b8 <__ascii_wctomb+0x14> 80166ae: 228a movs r2, #138 @ 0x8a 80166b0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80166b4: 601a str r2, [r3, #0] 80166b6: 4770 bx lr 80166b8: 2001 movs r0, #1 80166ba: 700a strb r2, [r1, #0] 80166bc: 4770 bx lr 080166be <_raise_r>: 80166be: 291f cmp r1, #31 80166c0: b538 push {r3, r4, r5, lr} 80166c2: 4605 mov r5, r0 80166c4: 460c mov r4, r1 80166c6: d904 bls.n 80166d2 <_raise_r+0x14> 80166c8: 2316 movs r3, #22 80166ca: 6003 str r3, [r0, #0] 80166cc: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80166d0: bd38 pop {r3, r4, r5, pc} 80166d2: 6bc2 ldr r2, [r0, #60] @ 0x3c 80166d4: b112 cbz r2, 80166dc <_raise_r+0x1e> 80166d6: f852 3021 ldr.w r3, [r2, r1, lsl #2] 80166da: b94b cbnz r3, 80166f0 <_raise_r+0x32> 80166dc: 4628 mov r0, r5 80166de: f000 f831 bl 8016744 <_getpid_r> 80166e2: 4622 mov r2, r4 80166e4: 4601 mov r1, r0 80166e6: 4628 mov r0, r5 80166e8: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 80166ec: f000 b818 b.w 8016720 <_kill_r> 80166f0: 2b01 cmp r3, #1 80166f2: d00a beq.n 801670a <_raise_r+0x4c> 80166f4: 1c59 adds r1, r3, #1 80166f6: d103 bne.n 8016700 <_raise_r+0x42> 80166f8: 2316 movs r3, #22 80166fa: 6003 str r3, [r0, #0] 80166fc: 2001 movs r0, #1 80166fe: e7e7 b.n 80166d0 <_raise_r+0x12> 8016700: 2100 movs r1, #0 8016702: 4620 mov r0, r4 8016704: f842 1024 str.w r1, [r2, r4, lsl #2] 8016708: 4798 blx r3 801670a: 2000 movs r0, #0 801670c: e7e0 b.n 80166d0 <_raise_r+0x12> ... 08016710 : 8016710: 4b02 ldr r3, [pc, #8] @ (801671c ) 8016712: 4601 mov r1, r0 8016714: 6818 ldr r0, [r3, #0] 8016716: f7ff bfd2 b.w 80166be <_raise_r> 801671a: bf00 nop 801671c: 20000080 .word 0x20000080 08016720 <_kill_r>: 8016720: b538 push {r3, r4, r5, lr} 8016722: 2300 movs r3, #0 8016724: 4d06 ldr r5, [pc, #24] @ (8016740 <_kill_r+0x20>) 8016726: 4604 mov r4, r0 8016728: 4608 mov r0, r1 801672a: 4611 mov r1, r2 801672c: 602b str r3, [r5, #0] 801672e: f7f6 fe22 bl 800d376 <_kill> 8016732: 1c43 adds r3, r0, #1 8016734: d102 bne.n 801673c <_kill_r+0x1c> 8016736: 682b ldr r3, [r5, #0] 8016738: b103 cbz r3, 801673c <_kill_r+0x1c> 801673a: 6023 str r3, [r4, #0] 801673c: bd38 pop {r3, r4, r5, pc} 801673e: bf00 nop 8016740: 20001394 .word 0x20001394 08016744 <_getpid_r>: 8016744: f7f6 be10 b.w 800d368 <_getpid> 08016748 <_init>: 8016748: b5f8 push {r3, r4, r5, r6, r7, lr} 801674a: bf00 nop 801674c: bcf8 pop {r3, r4, r5, r6, r7} 801674e: bc08 pop {r3} 8016750: 469e mov lr, r3 8016752: 4770 bx lr 08016754 <_fini>: 8016754: b5f8 push {r3, r4, r5, r6, r7, lr} 8016756: bf00 nop 8016758: bcf8 pop {r3, r4, r5, r6, r7} 801675a: bc08 pop {r3} 801675c: 469e mov lr, r3 801675e: 4770 bx lr