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 0000ecf8 080081e8 080081e8 000011e8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .rodata 00000dfc 08016ee0 08016ee0 0000fee0 2**3 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .ARM.extab 00000000 08017cdc 08017cdc 00011258 2**0 CONTENTS 4 .ARM 00000008 08017cdc 08017cdc 00010cdc 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 .preinit_array 00000000 08017ce4 08017ce4 00011258 2**0 CONTENTS, ALLOC, LOAD, DATA 6 .init_array 00000004 08017ce4 08017ce4 00010ce4 2**2 CONTENTS, ALLOC, LOAD, DATA 7 .fini_array 00000004 08017ce8 08017ce8 00010ce8 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .data 00000258 20000000 08017cec 00011000 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .bss 0000138c 20000258 08017f44 00011258 2**3 ALLOC 10 ._user_heap_stack 00000604 200015e4 08017f44 000115e4 2**0 ALLOC 11 .ARM.attributes 00000029 00000000 00000000 00011258 2**0 CONTENTS, READONLY 12 .debug_info 0001d770 00000000 00000000 00011281 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 13 .debug_abbrev 00005835 00000000 00000000 0002e9f1 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 14 .debug_loclists 00000f96 00000000 00000000 00034226 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 15 .debug_aranges 00001758 00000000 00000000 000351c0 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_rnglists 00001252 00000000 00000000 00036918 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 17 .debug_macro 0002653d 00000000 00000000 00037b6a 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 18 .debug_line 000211d8 00000000 00000000 0005e0a7 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 19 .debug_str 000c9b05 00000000 00000000 0007f27f 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 20 .comment 00000043 00000000 00000000 00148d84 2**0 CONTENTS, READONLY 21 .debug_frame 00006ea8 00000000 00000000 00148dc8 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS 22 .debug_line_str 00000073 00000000 00000000 0014fc70 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: 080081e8 <__do_global_dtors_aux>: 80081e8: b510 push {r4, lr} 80081ea: 4c05 ldr r4, [pc, #20] @ (8008200 <__do_global_dtors_aux+0x18>) 80081ec: 7823 ldrb r3, [r4, #0] 80081ee: b933 cbnz r3, 80081fe <__do_global_dtors_aux+0x16> 80081f0: 4b04 ldr r3, [pc, #16] @ (8008204 <__do_global_dtors_aux+0x1c>) 80081f2: b113 cbz r3, 80081fa <__do_global_dtors_aux+0x12> 80081f4: 4804 ldr r0, [pc, #16] @ (8008208 <__do_global_dtors_aux+0x20>) 80081f6: f3af 8000 nop.w 80081fa: 2301 movs r3, #1 80081fc: 7023 strb r3, [r4, #0] 80081fe: bd10 pop {r4, pc} 8008200: 20000258 .word 0x20000258 8008204: 00000000 .word 0x00000000 8008208: 08016ec8 .word 0x08016ec8 0800820c : 800820c: b508 push {r3, lr} 800820e: 4b03 ldr r3, [pc, #12] @ (800821c ) 8008210: b11b cbz r3, 800821a 8008212: 4903 ldr r1, [pc, #12] @ (8008220 ) 8008214: 4803 ldr r0, [pc, #12] @ (8008224 ) 8008216: f3af 8000 nop.w 800821a: bd08 pop {r3, pc} 800821c: 00000000 .word 0x00000000 8008220: 2000025c .word 0x2000025c 8008224: 08016ec8 .word 0x08016ec8 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 ffe7 bl 800e504 8009536: 4603 mov r3, r0 8009538: 2b00 cmp r3, #0 800953a: d001 beq.n 8009540 { Error_Handler(); 800953c: f001 fb78 bl 800ac30 } } 8009540: bf00 nop 8009542: bd80 pop {r7, pc} 8009544: 20000274 .word 0x20000274 8009548: 20000290 .word 0x20000290 0800954c : ISR_FAST void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) { if (hadc->Instance != ADC1) 800954c: 4b0e ldr r3, [pc, #56] @ (8009588 ) 800954e: 6802 ldr r2, [r0, #0] 8009550: 429a cmp r2, r3 8009552: d118 bne.n 8009586 adc_data.cp_raw = adc_dma_raw[1]; adc_data.ntc1_raw = adc_dma_raw[2]; adc_data.ntc2_raw = adc_dma_raw[3]; adc_data.temp_sensor_raw = adc_dma_raw[4]; adc_data.vrefint_raw = adc_dma_raw[5]; adc_scan_data_ready = 1u; 8009554: f04f 0c01 mov.w ip, #1 adc_data.in3_raw = adc_dma_raw[0]; 8009558: 4a0c ldr r2, [pc, #48] @ (800958c ) 800955a: 4b0d ldr r3, [pc, #52] @ (8009590 ) 800955c: 8811 ldrh r1, [r2, #0] adc_scan_data_ready = 1u; 800955e: 480d ldr r0, [pc, #52] @ (8009594 ) adc_data.in3_raw = adc_dma_raw[0]; 8009560: b289 uxth r1, r1 8009562: 8019 strh r1, [r3, #0] adc_data.cp_raw = adc_dma_raw[1]; 8009564: 8851 ldrh r1, [r2, #2] 8009566: b289 uxth r1, r1 8009568: 8059 strh r1, [r3, #2] adc_data.ntc1_raw = adc_dma_raw[2]; 800956a: 8891 ldrh r1, [r2, #4] 800956c: b289 uxth r1, r1 800956e: 8099 strh r1, [r3, #4] adc_data.ntc2_raw = adc_dma_raw[3]; 8009570: 88d1 ldrh r1, [r2, #6] 8009572: b289 uxth r1, r1 8009574: 80d9 strh r1, [r3, #6] adc_data.temp_sensor_raw = adc_dma_raw[4]; 8009576: 8911 ldrh r1, [r2, #8] 8009578: b289 uxth r1, r1 800957a: 8119 strh r1, [r3, #8] adc_data.vrefint_raw = adc_dma_raw[5]; 800957c: 8952 ldrh r2, [r2, #10] 800957e: b292 uxth r2, r2 8009580: 815a strh r2, [r3, #10] adc_scan_data_ready = 1u; 8009582: f880 c000 strb.w ip, [r0] } 8009586: 4770 bx lr 8009588: 40012400 .word 0x40012400 800958c: 20000274 .word 0x20000274 8009590: 20000280 .word 0x20000280 8009594: 2000028c .word 0x2000028c 08009598 : ADC_HandleTypeDef hadc1; DMA_HandleTypeDef hdma_adc1; /* ADC1 init function */ void MX_ADC1_Init(void) { 8009598: b580 push {r7, lr} 800959a: b084 sub sp, #16 800959c: af00 add r7, sp, #0 /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; 800959e: 1d3b adds r3, r7, #4 80095a0: 2200 movs r2, #0 80095a2: 601a str r2, [r3, #0] 80095a4: 605a str r2, [r3, #4] 80095a6: 609a str r2, [r3, #8] /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; 80095a8: 4b3c ldr r3, [pc, #240] @ (800969c ) 80095aa: 4a3d ldr r2, [pc, #244] @ (80096a0 ) 80095ac: 601a str r2, [r3, #0] hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE; 80095ae: 4b3b ldr r3, [pc, #236] @ (800969c ) 80095b0: f44f 7280 mov.w r2, #256 @ 0x100 80095b4: 609a str r2, [r3, #8] hadc1.Init.ContinuousConvMode = DISABLE; 80095b6: 4b39 ldr r3, [pc, #228] @ (800969c ) 80095b8: 2200 movs r2, #0 80095ba: 731a strb r2, [r3, #12] hadc1.Init.DiscontinuousConvMode = DISABLE; 80095bc: 4b37 ldr r3, [pc, #220] @ (800969c ) 80095be: 2200 movs r2, #0 80095c0: 751a strb r2, [r3, #20] hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIGCONV_T3_TRGO; 80095c2: 4b36 ldr r3, [pc, #216] @ (800969c ) 80095c4: f44f 2200 mov.w r2, #524288 @ 0x80000 80095c8: 61da str r2, [r3, #28] hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; 80095ca: 4b34 ldr r3, [pc, #208] @ (800969c ) 80095cc: 2200 movs r2, #0 80095ce: 605a str r2, [r3, #4] hadc1.Init.NbrOfConversion = 6; 80095d0: 4b32 ldr r3, [pc, #200] @ (800969c ) 80095d2: 2206 movs r2, #6 80095d4: 611a str r2, [r3, #16] if (HAL_ADC_Init(&hadc1) != HAL_OK) 80095d6: 4831 ldr r0, [pc, #196] @ (800969c ) 80095d8: f004 febc bl 800e354 80095dc: 4603 mov r3, r0 80095de: 2b00 cmp r3, #0 80095e0: d001 beq.n 80095e6 { Error_Handler(); 80095e2: f001 fb25 bl 800ac30 } /** 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: f005 f93c bl 800e874 80095fc: 4603 mov r3, r0 80095fe: 2b00 cmp r3, #0 8009600: d001 beq.n 8009606 { Error_Handler(); 8009602: f001 fb15 bl 800ac30 } /** 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: f005 f92e bl 800e874 8009618: 4603 mov r3, r0 800961a: 2b00 cmp r3, #0 800961c: d001 beq.n 8009622 { Error_Handler(); 800961e: f001 fb07 bl 800ac30 } /** 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: f005 f920 bl 800e874 8009634: 4603 mov r3, r0 8009636: 2b00 cmp r3, #0 8009638: d001 beq.n 800963e { Error_Handler(); 800963a: f001 faf9 bl 800ac30 } /** 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: f005 f912 bl 800e874 8009650: 4603 mov r3, r0 8009652: 2b00 cmp r3, #0 8009654: d001 beq.n 800965a { Error_Handler(); 8009656: f001 faeb bl 800ac30 } /** 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: f005 f904 bl 800e874 800966c: 4603 mov r3, r0 800966e: 2b00 cmp r3, #0 8009670: d001 beq.n 8009676 { Error_Handler(); 8009672: f001 fadd bl 800ac30 } /** 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: f005 f8f6 bl 800e874 8009688: 4603 mov r3, r0 800968a: 2b00 cmp r3, #0 800968c: d001 beq.n 8009692 { Error_Handler(); 800968e: f001 facf bl 800ac30 } /* USER CODE BEGIN ADC1_Init 2 */ /* USER CODE END ADC1_Init 2 */ } 8009692: bf00 nop 8009694: 3710 adds r7, #16 8009696: 46bd mov sp, r7 8009698: bd80 pop {r7, pc} 800969a: bf00 nop 800969c: 20000290 .word 0x20000290 80096a0: 40012400 .word 0x40012400 080096a4 : void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) { 80096a4: b580 push {r7, lr} 80096a6: b08a sub sp, #40 @ 0x28 80096a8: af00 add r7, sp, #0 80096aa: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 80096ac: f107 0318 add.w r3, r7, #24 80096b0: 2200 movs r2, #0 80096b2: 601a str r2, [r3, #0] 80096b4: 605a str r2, [r3, #4] 80096b6: 609a str r2, [r3, #8] 80096b8: 60da str r2, [r3, #12] if(adcHandle->Instance==ADC1) 80096ba: 687b ldr r3, [r7, #4] 80096bc: 681b ldr r3, [r3, #0] 80096be: 4a38 ldr r2, [pc, #224] @ (80097a0 ) 80096c0: 4293 cmp r3, r2 80096c2: d168 bne.n 8009796 { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* ADC1 clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); 80096c4: 4b37 ldr r3, [pc, #220] @ (80097a4 ) 80096c6: 699b ldr r3, [r3, #24] 80096c8: 4a36 ldr r2, [pc, #216] @ (80097a4 ) 80096ca: f443 7300 orr.w r3, r3, #512 @ 0x200 80096ce: 6193 str r3, [r2, #24] 80096d0: 4b34 ldr r3, [pc, #208] @ (80097a4 ) 80096d2: 699b ldr r3, [r3, #24] 80096d4: f403 7300 and.w r3, r3, #512 @ 0x200 80096d8: 617b str r3, [r7, #20] 80096da: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); 80096dc: 4b31 ldr r3, [pc, #196] @ (80097a4 ) 80096de: 699b ldr r3, [r3, #24] 80096e0: 4a30 ldr r2, [pc, #192] @ (80097a4 ) 80096e2: f043 0304 orr.w r3, r3, #4 80096e6: 6193 str r3, [r2, #24] 80096e8: 4b2e ldr r3, [pc, #184] @ (80097a4 ) 80096ea: 699b ldr r3, [r3, #24] 80096ec: f003 0304 and.w r3, r3, #4 80096f0: 613b str r3, [r7, #16] 80096f2: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); 80096f4: 4b2b ldr r3, [pc, #172] @ (80097a4 ) 80096f6: 699b ldr r3, [r3, #24] 80096f8: 4a2a ldr r2, [pc, #168] @ (80097a4 ) 80096fa: f043 0308 orr.w r3, r3, #8 80096fe: 6193 str r3, [r2, #24] 8009700: 4b28 ldr r3, [pc, #160] @ (80097a4 ) 8009702: 699b ldr r3, [r3, #24] 8009704: f003 0308 and.w r3, r3, #8 8009708: 60fb str r3, [r7, #12] 800970a: 68fb ldr r3, [r7, #12] PA3 ------> ADC1_IN3 PA4 ------> ADC1_IN4 PB0 ------> ADC1_IN8 PB1 ------> ADC1_IN9 */ GPIO_InitStruct.Pin = GPIO_PIN_3|CP_ADC_Pin; 800970c: 2318 movs r3, #24 800970e: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; 8009710: 2303 movs r3, #3 8009712: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 8009714: f107 0318 add.w r3, r7, #24 8009718: 4619 mov r1, r3 800971a: 4823 ldr r0, [pc, #140] @ (80097a8 ) 800971c: f006 ffe8 bl 80106f0 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 ffde bl 80106f0 /* 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_MEDIUM; 8009762: 4b13 ldr r3, [pc, #76] @ (80097b0 ) 8009764: f44f 5280 mov.w r2, #4096 @ 0x1000 8009768: 61da str r2, [r3, #28] if (HAL_DMA_Init(&hdma_adc1) != HAL_OK) 800976a: 4811 ldr r0, [pc, #68] @ (80097b0 ) 800976c: f006 fb32 bl 800fdd4 8009770: 4603 mov r3, r0 8009772: 2b00 cmp r3, #0 8009774: d001 beq.n 800977a { Error_Handler(); 8009776: f001 fa5b bl 800ac30 } __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, 7, 0); 8009786: 2200 movs r2, #0 8009788: 2107 movs r1, #7 800978a: 2012 movs r0, #18 800978c: f006 facf bl 800fd2e HAL_NVIC_EnableIRQ(ADC1_2_IRQn); 8009790: 2012 movs r0, #18 8009792: f006 fae8 bl 800fd66 /* USER CODE BEGIN ADC1_MspInit 1 */ /* USER CODE END ADC1_MspInit 1 */ } } 8009796: bf00 nop 8009798: 3728 adds r7, #40 @ 0x28 800979a: 46bd mov sp, r7 800979c: bd80 pop {r7, pc} 800979e: bf00 nop 80097a0: 40012400 .word 0x40012400 80097a4: 40021000 .word 0x40021000 80097a8: 40010800 .word 0x40010800 80097ac: 40010c00 .word 0x40010c00 80097b0: 200002c0 .word 0x200002c0 80097b4: 40020008 .word 0x40020008 080097b8 : uint8_t RELAY_State[RELAY_COUNT]; static volatile uint8_t adc_lock = 0; static SMAFilter_t conn_temp_adc_filter[2]; void RELAY_Write(relay_t num, uint8_t state){ 80097b8: b580 push {r7, lr} 80097ba: b082 sub sp, #8 80097bc: af00 add r7, sp, #0 80097be: 4603 mov r3, r0 80097c0: 460a mov r2, r1 80097c2: 71fb strb r3, [r7, #7] 80097c4: 4613 mov r3, r2 80097c6: 71bb strb r3, [r7, #6] switch (num) { 80097c8: 79fb ldrb r3, [r7, #7] 80097ca: 2b07 cmp r3, #7 80097cc: d850 bhi.n 8009870 80097ce: a201 add r2, pc, #4 @ (adr r2, 80097d4 ) 80097d0: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80097d4: 080097f5 .word 0x080097f5 80097d8: 08009805 .word 0x08009805 80097dc: 08009815 .word 0x08009815 80097e0: 08009825 .word 0x08009825 80097e4: 08009835 .word 0x08009835 80097e8: 08009845 .word 0x08009845 80097ec: 08009853 .word 0x08009853 80097f0: 08009863 .word 0x08009863 case RELAY_AUX0: HAL_GPIO_WritePin(RELAY1_GPIO_Port, RELAY1_Pin, state); 80097f4: 79bb ldrb r3, [r7, #6] 80097f6: 461a mov r2, r3 80097f8: f44f 7180 mov.w r1, #256 @ 0x100 80097fc: 4821 ldr r0, [pc, #132] @ (8009884 ) 80097fe: f007 f912 bl 8010a26 break; 8009802: e036 b.n 8009872 case RELAY_AUX1: HAL_GPIO_WritePin(RELAY2_GPIO_Port, RELAY2_Pin, state); 8009804: 79bb ldrb r3, [r7, #6] 8009806: 461a mov r2, r3 8009808: f44f 7100 mov.w r1, #512 @ 0x200 800980c: 481d ldr r0, [pc, #116] @ (8009884 ) 800980e: f007 f90a bl 8010a26 break; 8009812: e02e b.n 8009872 case RELAY3: HAL_GPIO_WritePin(RELAY3_GPIO_Port, RELAY3_Pin, state); 8009814: 79bb ldrb r3, [r7, #6] 8009816: 461a mov r2, r3 8009818: f44f 6180 mov.w r1, #1024 @ 0x400 800981c: 4819 ldr r0, [pc, #100] @ (8009884 ) 800981e: f007 f902 bl 8010a26 break; 8009822: e026 b.n 8009872 case RELAY_DC: HAL_GPIO_WritePin(RELAY4_GPIO_Port, RELAY4_Pin, state); 8009824: 79bb ldrb r3, [r7, #6] 8009826: 461a mov r2, r3 8009828: f44f 6100 mov.w r1, #2048 @ 0x800 800982c: 4815 ldr r0, [pc, #84] @ (8009884 ) 800982e: f007 f8fa bl 8010a26 break; 8009832: e01e b.n 8009872 case RELAY_AC: HAL_GPIO_WritePin(RELAY5_GPIO_Port, RELAY5_Pin, state); 8009834: 79bb ldrb r3, [r7, #6] 8009836: 461a mov r2, r3 8009838: f44f 5180 mov.w r1, #4096 @ 0x1000 800983c: 4811 ldr r0, [pc, #68] @ (8009884 ) 800983e: f007 f8f2 bl 8010a26 break; 8009842: e016 b.n 8009872 case RELAY_CP: HAL_GPIO_WritePin(RELAY_CP_GPIO_Port, RELAY_CP_Pin, state); 8009844: 79bb ldrb r3, [r7, #6] 8009846: 461a mov r2, r3 8009848: 2108 movs r1, #8 800984a: 480f ldr r0, [pc, #60] @ (8009888 ) 800984c: f007 f8eb bl 8010a26 break; 8009850: e00f b.n 8009872 case RELAY_CC: HAL_GPIO_WritePin(RELAY_CC_GPIO_Port, RELAY_CC_Pin, state); 8009852: 79bb ldrb r3, [r7, #6] 8009854: 461a mov r2, r3 8009856: f44f 4100 mov.w r1, #32768 @ 0x8000 800985a: 480c ldr r0, [pc, #48] @ (800988c ) 800985c: f007 f8e3 bl 8010a26 break; 8009860: e007 b.n 8009872 case RELAY_DC1: HAL_GPIO_WritePin(RELAY_DC_GPIO_Port, RELAY_DC_Pin, state); 8009862: 79bb ldrb r3, [r7, #6] 8009864: 461a mov r2, r3 8009866: 2108 movs r1, #8 8009868: 4809 ldr r0, [pc, #36] @ (8009890 ) 800986a: f007 f8dc bl 8010a26 break; 800986e: e000 b.n 8009872 default: break; 8009870: bf00 nop } RELAY_State[num] = state; 8009872: 79fb ldrb r3, [r7, #7] 8009874: 4907 ldr r1, [pc, #28] @ (8009894 ) 8009876: 79ba ldrb r2, [r7, #6] 8009878: 54ca strb r2, [r1, r3] } 800987a: bf00 nop 800987c: 3708 adds r7, #8 800987e: 46bd mov sp, r7 8009880: bd80 pop {r7, pc} 8009882: bf00 nop 8009884: 40011800 .word 0x40011800 8009888: 40011000 .word 0x40011000 800988c: 40010800 .word 0x40010800 8009890: 40011400 .word 0x40011400 8009894: 20000304 .word 0x20000304 08009898 : uint8_t RELAY_Read(relay_t num){ 8009898: b480 push {r7} 800989a: b083 sub sp, #12 800989c: af00 add r7, sp, #0 800989e: 4603 mov r3, r0 80098a0: 71fb strb r3, [r7, #7] return RELAY_State[num]; 80098a2: 79fb ldrb r3, [r7, #7] 80098a4: 4a03 ldr r2, [pc, #12] @ (80098b4 ) 80098a6: 5cd3 ldrb r3, [r2, r3] } 80098a8: 4618 mov r0, r3 80098aa: 370c adds r7, #12 80098ac: 46bd mov sp, r7 80098ae: bc80 pop {r7} 80098b0: 4770 bx lr 80098b2: bf00 nop 80098b4: 20000304 .word 0x20000304 080098b8 : uint8_t IN_ReadInput(inputNum_t input_n){ 80098b8: b580 push {r7, lr} 80098ba: b082 sub sp, #8 80098bc: af00 add r7, sp, #0 80098be: 4603 mov r3, r0 80098c0: 71fb strb r3, [r7, #7] switch(input_n){ 80098c2: 79fb ldrb r3, [r7, #7] 80098c4: 2b06 cmp r3, #6 80098c6: d83b bhi.n 8009940 80098c8: a201 add r2, pc, #4 @ (adr r2, 80098d0 ) 80098ca: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80098ce: bf00 nop 80098d0: 080098ed .word 0x080098ed 80098d4: 080098f9 .word 0x080098f9 80098d8: 08009905 .word 0x08009905 80098dc: 08009911 .word 0x08009911 80098e0: 0800991d .word 0x0800991d 80098e4: 08009929 .word 0x08009929 80098e8: 08009935 .word 0x08009935 case IN_SW0: return HAL_GPIO_ReadPin(IN_SW0_GPIO_Port, IN_SW0_Pin); 80098ec: 2102 movs r1, #2 80098ee: 4817 ldr r0, [pc, #92] @ (800994c ) 80098f0: f007 f882 bl 80109f8 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: f007 f87c bl 80109f8 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: f007 f876 bl 80109f8 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: f007 f870 bl 80109f8 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: f007 f86a bl 80109f8 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: f007 f864 bl 80109f8 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: f007 f85e bl 80109f8 800993c: 4603 mov r3, r0 800993e: e000 b.n 8009942 default: return 0; 8009940: 2300 movs r3, #0 } } 8009942: 4618 mov r0, r3 8009944: 3708 adds r7, #8 8009946: 46bd mov sp, r7 8009948: bd80 pop {r7, pc} 800994a: bf00 nop 800994c: 40010800 .word 0x40010800 8009950: 40011800 .word 0x40011800 8009954: 40011400 .word 0x40011400 8009958: 40010c00 .word 0x40010c00 0800995c : // // HAL_ADC_Stop(&hadc1); // stop adc return 0; } void Init_Peripheral(){ 800995c: b580 push {r7, lr} 800995e: af00 add r7, sp, #0 HAL_ADCEx_Calibration_Start(&hadc1); 8009960: 4816 ldr r0, [pc, #88] @ (80099bc ) 8009962: f005 f981 bl 800ec68 ADC_ScanStart(); 8009966: f7ff fddf bl 8009528 RELAY_Write(RELAY_AUX0, 0); 800996a: 2100 movs r1, #0 800996c: 2000 movs r0, #0 800996e: f7ff ff23 bl 80097b8 RELAY_Write(RELAY_AUX1, 0); 8009972: 2100 movs r1, #0 8009974: 2001 movs r0, #1 8009976: f7ff ff1f bl 80097b8 RELAY_Write(RELAY3, 0); 800997a: 2100 movs r1, #0 800997c: 2002 movs r0, #2 800997e: f7ff ff1b bl 80097b8 RELAY_Write(RELAY_DC, 0); 8009982: 2100 movs r1, #0 8009984: 2003 movs r0, #3 8009986: f7ff ff17 bl 80097b8 RELAY_Write(RELAY_AC, 0); 800998a: 2100 movs r1, #0 800998c: 2004 movs r0, #4 800998e: f7ff ff13 bl 80097b8 RELAY_Write(RELAY_CP, 0); 8009992: 2100 movs r1, #0 8009994: 2005 movs r0, #5 8009996: f7ff ff0f bl 80097b8 RELAY_Write(RELAY_CC, 0); 800999a: 2100 movs r1, #0 800999c: 2006 movs r0, #6 800999e: f7ff ff0b bl 80097b8 RELAY_Write(RELAY_DC1, 0); 80099a2: 2100 movs r1, #0 80099a4: 2007 movs r0, #7 80099a6: f7ff ff07 bl 80097b8 SMAFilter_Init(&conn_temp_adc_filter[0]); 80099aa: 4805 ldr r0, [pc, #20] @ (80099c0 ) 80099ac: f003 fd5a bl 800d464 SMAFilter_Init(&conn_temp_adc_filter[1]); 80099b0: 4804 ldr r0, [pc, #16] @ (80099c4 ) 80099b2: f003 fd57 bl 800d464 } 80099b6: bf00 nop 80099b8: bd80 pop {r7, pc} 80099ba: bf00 nop 80099bc: 20000290 .word 0x20000290 80099c0: 2000030c .word 0x2000030c 80099c4: 20000334 .word 0x20000334 080099c8 : float pt1000_to_temperature(float resistance) { 80099c8: b590 push {r4, r7, lr} 80099ca: b087 sub sp, #28 80099cc: af00 add r7, sp, #0 80099ce: 6078 str r0, [r7, #4] // Константы для PT1000 const float R0 = 1000.0; // Сопротивление при 0 °C 80099d0: 4b0c ldr r3, [pc, #48] @ (8009a04 ) 80099d2: 617b str r3, [r7, #20] const float C_A = 3.9083E-3f; 80099d4: 4b0c ldr r3, [pc, #48] @ (8009a08 ) 80099d6: 613b str r3, [r7, #16] float temperature = (resistance-R0) / ( R0 * C_A); 80099d8: 6979 ldr r1, [r7, #20] 80099da: 6878 ldr r0, [r7, #4] 80099dc: f7ff f914 bl 8008c08 <__aeabi_fsub> 80099e0: 4603 mov r3, r0 80099e2: 461c mov r4, r3 80099e4: 6939 ldr r1, [r7, #16] 80099e6: 6978 ldr r0, [r7, #20] 80099e8: f7ff fa18 bl 8008e1c <__aeabi_fmul> 80099ec: 4603 mov r3, r0 80099ee: 4619 mov r1, r3 80099f0: 4620 mov r0, r4 80099f2: f7ff fac7 bl 8008f84 <__aeabi_fdiv> 80099f6: 4603 mov r3, r0 80099f8: 60fb str r3, [r7, #12] return temperature; 80099fa: 68fb ldr r3, [r7, #12] } 80099fc: 4618 mov r0, r3 80099fe: 371c adds r7, #28 8009a00: 46bd mov sp, r7 8009a02: bd90 pop {r4, r7, pc} 8009a04: 447a0000 .word 0x447a0000 8009a08: 3b801132 .word 0x3b801132 8009a0c: 00000000 .word 0x00000000 08009a10 : float calculate_NTC_resistance(int adc_value, float Vref, float Vin, float R) { 8009a10: b5b0 push {r4, r5, r7, lr} 8009a12: b086 sub sp, #24 8009a14: af00 add r7, sp, #0 8009a16: 60f8 str r0, [r7, #12] 8009a18: 60b9 str r1, [r7, #8] 8009a1a: 607a str r2, [r7, #4] 8009a1c: 603b str r3, [r7, #0] // Преобразуем значение АЦП в выходное напряжение float Vout = (adc_value / 4095.0) * Vref; 8009a1e: 68f8 ldr r0, [r7, #12] 8009a20: f7fe fd5c bl 80084dc <__aeabi_i2d> 8009a24: a31c add r3, pc, #112 @ (adr r3, 8009a98 ) 8009a26: e9d3 2300 ldrd r2, r3, [r3] 8009a2a: f7fe feeb bl 8008804 <__aeabi_ddiv> 8009a2e: 4602 mov r2, r0 8009a30: 460b mov r3, r1 8009a32: 4614 mov r4, r2 8009a34: 461d mov r5, r3 8009a36: 68b8 ldr r0, [r7, #8] 8009a38: f7fe fd62 bl 8008500 <__aeabi_f2d> 8009a3c: 4602 mov r2, r0 8009a3e: 460b mov r3, r1 8009a40: 4620 mov r0, r4 8009a42: 4629 mov r1, r5 8009a44: f7fe fdb4 bl 80085b0 <__aeabi_dmul> 8009a48: 4602 mov r2, r0 8009a4a: 460b mov r3, r1 8009a4c: 4610 mov r0, r2 8009a4e: 4619 mov r1, r3 8009a50: f7ff f886 bl 8008b60 <__aeabi_d2f> 8009a54: 4603 mov r3, r0 8009a56: 617b str r3, [r7, #20] // Проверяем, чтобы Vout не было равно Vin if (Vout >= Vin) { 8009a58: 6879 ldr r1, [r7, #4] 8009a5a: 6978 ldr r0, [r7, #20] 8009a5c: f7ff fb90 bl 8009180 <__aeabi_fcmpge> 8009a60: 4603 mov r3, r0 8009a62: 2b00 cmp r3, #0 8009a64: d001 beq.n 8009a6a return -1; // Ошибка: Vout не может быть больше или равно Vin 8009a66: 4b0e ldr r3, [pc, #56] @ (8009aa0 ) 8009a68: e010 b.n 8009a8c } // Вычисляем сопротивление термистора float R_NTC = R * (Vout / (Vin - Vout)); 8009a6a: 6979 ldr r1, [r7, #20] 8009a6c: 6878 ldr r0, [r7, #4] 8009a6e: f7ff f8cb bl 8008c08 <__aeabi_fsub> 8009a72: 4603 mov r3, r0 8009a74: 4619 mov r1, r3 8009a76: 6978 ldr r0, [r7, #20] 8009a78: f7ff fa84 bl 8008f84 <__aeabi_fdiv> 8009a7c: 4603 mov r3, r0 8009a7e: 4619 mov r1, r3 8009a80: 6838 ldr r0, [r7, #0] 8009a82: f7ff f9cb bl 8008e1c <__aeabi_fmul> 8009a86: 4603 mov r3, r0 8009a88: 613b str r3, [r7, #16] return R_NTC; 8009a8a: 693b ldr r3, [r7, #16] } 8009a8c: 4618 mov r0, r3 8009a8e: 3718 adds r7, #24 8009a90: 46bd mov sp, r7 8009a92: bdb0 pop {r4, r5, r7, pc} 8009a94: f3af 8000 nop.w 8009a98: 00000000 .word 0x00000000 8009a9c: 40affe00 .word 0x40affe00 8009aa0: bf800000 .word 0xbf800000 08009aa4 : int16_t CONN_ReadTemp(uint8_t ch){ 8009aa4: b580 push {r7, lr} 8009aa6: b088 sub sp, #32 8009aa8: af00 add r7, sp, #0 8009aaa: 4603 mov r3, r0 8009aac: 71fb strb r3, [r7, #7] uint32_t adcValue = 0u; 8009aae: 2300 movs r3, #0 8009ab0: 61fb str r3, [r7, #28] adcValue = ch ? adc_data.ntc2_raw : adc_data.ntc1_raw; 8009ab2: 79fb ldrb r3, [r7, #7] 8009ab4: 2b00 cmp r3, #0 8009ab6: d003 beq.n 8009ac0 8009ab8: 4b1c ldr r3, [pc, #112] @ (8009b2c ) 8009aba: 88db ldrh r3, [r3, #6] 8009abc: b29b uxth r3, r3 8009abe: e002 b.n 8009ac6 8009ac0: 4b1a ldr r3, [pc, #104] @ (8009b2c ) 8009ac2: 889b ldrh r3, [r3, #4] 8009ac4: b29b uxth r3, r3 8009ac6: 61fb str r3, [r7, #28] int32_t adc_filtered = SMAFilter_Update(&conn_temp_adc_filter[ch ? 1u : 0u], (int32_t)adcValue); 8009ac8: 79fb ldrb r3, [r7, #7] 8009aca: 2b00 cmp r3, #0 8009acc: d001 beq.n 8009ad2 8009ace: 2201 movs r2, #1 8009ad0: e000 b.n 8009ad4 8009ad2: 2200 movs r2, #0 8009ad4: 4613 mov r3, r2 8009ad6: 009b lsls r3, r3, #2 8009ad8: 4413 add r3, r2 8009ada: 00db lsls r3, r3, #3 8009adc: 4a14 ldr r2, [pc, #80] @ (8009b30 ) 8009ade: 4413 add r3, r2 8009ae0: 69fa ldr r2, [r7, #28] 8009ae2: 4611 mov r1, r2 8009ae4: 4618 mov r0, r3 8009ae6: f003 fce2 bl 800d4ae 8009aea: 61b8 str r0, [r7, #24] if((uint32_t)adc_filtered > 4000u) { 8009aec: 69bb ldr r3, [r7, #24] 8009aee: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 8009af2: d901 bls.n 8009af8 return 20; //Термодатчик не подключен 8009af4: 2314 movs r3, #20 8009af6: e015 b.n 8009b24 } // int adc_value = 2048; // Пример значения АЦП float Vref = 3.3; // Напряжение опорное 8009af8: 4b0e ldr r3, [pc, #56] @ (8009b34 ) 8009afa: 617b str r3, [r7, #20] float Vin = 5.0; // Входное напряжение 8009afc: 4b0e ldr r3, [pc, #56] @ (8009b38 ) 8009afe: 613b str r3, [r7, #16] float R = 1000; // Сопротивление резистора в Омах 8009b00: 4b0e ldr r3, [pc, #56] @ (8009b3c ) 8009b02: 60fb str r3, [r7, #12] float temp = pt1000_to_temperature(calculate_NTC_resistance((int)adc_filtered, Vref, Vin, R)); 8009b04: 68fb ldr r3, [r7, #12] 8009b06: 693a ldr r2, [r7, #16] 8009b08: 6979 ldr r1, [r7, #20] 8009b0a: 69b8 ldr r0, [r7, #24] 8009b0c: f7ff ff80 bl 8009a10 8009b10: 4603 mov r3, r0 8009b12: 4618 mov r0, r3 8009b14: f7ff ff58 bl 80099c8 8009b18: 60b8 str r0, [r7, #8] return (int16_t)temp; 8009b1a: 68b8 ldr r0, [r7, #8] 8009b1c: f7ff fb44 bl 80091a8 <__aeabi_f2iz> 8009b20: 4603 mov r3, r0 8009b22: b21b sxth r3, r3 } 8009b24: 4618 mov r0, r3 8009b26: 3720 adds r7, #32 8009b28: 46bd mov sp, r7 8009b2a: bd80 pop {r7, pc} 8009b2c: 20000280 .word 0x20000280 8009b30: 2000030c .word 0x2000030c 8009b34: 40533333 .word 0x40533333 8009b38: 40a00000 .word 0x40a00000 8009b3c: 447a0000 .word 0x447a0000 08009b40 : CAN_HandleTypeDef hcan1; CAN_HandleTypeDef hcan2; /* CAN1 init function */ void MX_CAN1_Init(void) { 8009b40: b580 push {r7, lr} 8009b42: af00 add r7, sp, #0 /* USER CODE END CAN1_Init 0 */ /* USER CODE BEGIN CAN1_Init 1 */ /* USER CODE END CAN1_Init 1 */ hcan1.Instance = CAN1; 8009b44: 4b17 ldr r3, [pc, #92] @ (8009ba4 ) 8009b46: 4a18 ldr r2, [pc, #96] @ (8009ba8 ) 8009b48: 601a str r2, [r3, #0] hcan1.Init.Prescaler = 8; 8009b4a: 4b16 ldr r3, [pc, #88] @ (8009ba4 ) 8009b4c: 2208 movs r2, #8 8009b4e: 605a str r2, [r3, #4] hcan1.Init.Mode = CAN_MODE_NORMAL; 8009b50: 4b14 ldr r3, [pc, #80] @ (8009ba4 ) 8009b52: 2200 movs r2, #0 8009b54: 609a str r2, [r3, #8] hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ; 8009b56: 4b13 ldr r3, [pc, #76] @ (8009ba4 ) 8009b58: 2200 movs r2, #0 8009b5a: 60da str r2, [r3, #12] hcan1.Init.TimeSeg1 = CAN_BS1_15TQ; 8009b5c: 4b11 ldr r3, [pc, #68] @ (8009ba4 ) 8009b5e: f44f 2260 mov.w r2, #917504 @ 0xe0000 8009b62: 611a str r2, [r3, #16] hcan1.Init.TimeSeg2 = CAN_BS2_2TQ; 8009b64: 4b0f ldr r3, [pc, #60] @ (8009ba4 ) 8009b66: f44f 1280 mov.w r2, #1048576 @ 0x100000 8009b6a: 615a str r2, [r3, #20] hcan1.Init.TimeTriggeredMode = DISABLE; 8009b6c: 4b0d ldr r3, [pc, #52] @ (8009ba4 ) 8009b6e: 2200 movs r2, #0 8009b70: 761a strb r2, [r3, #24] hcan1.Init.AutoBusOff = ENABLE; 8009b72: 4b0c ldr r3, [pc, #48] @ (8009ba4 ) 8009b74: 2201 movs r2, #1 8009b76: 765a strb r2, [r3, #25] hcan1.Init.AutoWakeUp = ENABLE; 8009b78: 4b0a ldr r3, [pc, #40] @ (8009ba4 ) 8009b7a: 2201 movs r2, #1 8009b7c: 769a strb r2, [r3, #26] hcan1.Init.AutoRetransmission = ENABLE; 8009b7e: 4b09 ldr r3, [pc, #36] @ (8009ba4 ) 8009b80: 2201 movs r2, #1 8009b82: 76da strb r2, [r3, #27] hcan1.Init.ReceiveFifoLocked = DISABLE; 8009b84: 4b07 ldr r3, [pc, #28] @ (8009ba4 ) 8009b86: 2200 movs r2, #0 8009b88: 771a strb r2, [r3, #28] hcan1.Init.TransmitFifoPriority = ENABLE; 8009b8a: 4b06 ldr r3, [pc, #24] @ (8009ba4 ) 8009b8c: 2201 movs r2, #1 8009b8e: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan1) != HAL_OK) 8009b90: 4804 ldr r0, [pc, #16] @ (8009ba4 ) 8009b92: f005 f920 bl 800edd6 8009b96: 4603 mov r3, r0 8009b98: 2b00 cmp r3, #0 8009b9a: d001 beq.n 8009ba0 { Error_Handler(); 8009b9c: f001 f848 bl 800ac30 } /* USER CODE BEGIN CAN1_Init 2 */ /* USER CODE END CAN1_Init 2 */ } 8009ba0: bf00 nop 8009ba2: bd80 pop {r7, pc} 8009ba4: 2000035c .word 0x2000035c 8009ba8: 40006400 .word 0x40006400 08009bac : /* CAN2 init function */ void MX_CAN2_Init(void) { 8009bac: b580 push {r7, lr} 8009bae: af00 add r7, sp, #0 /* USER CODE END CAN2_Init 0 */ /* USER CODE BEGIN CAN2_Init 1 */ /* USER CODE END CAN2_Init 1 */ hcan2.Instance = CAN2; 8009bb0: 4b17 ldr r3, [pc, #92] @ (8009c10 ) 8009bb2: 4a18 ldr r2, [pc, #96] @ (8009c14 ) 8009bb4: 601a str r2, [r3, #0] hcan2.Init.Prescaler = 16; 8009bb6: 4b16 ldr r3, [pc, #88] @ (8009c10 ) 8009bb8: 2210 movs r2, #16 8009bba: 605a str r2, [r3, #4] hcan2.Init.Mode = CAN_MODE_NORMAL; 8009bbc: 4b14 ldr r3, [pc, #80] @ (8009c10 ) 8009bbe: 2200 movs r2, #0 8009bc0: 609a str r2, [r3, #8] hcan2.Init.SyncJumpWidth = CAN_SJW_1TQ; 8009bc2: 4b13 ldr r3, [pc, #76] @ (8009c10 ) 8009bc4: 2200 movs r2, #0 8009bc6: 60da str r2, [r3, #12] hcan2.Init.TimeSeg1 = CAN_BS1_15TQ; 8009bc8: 4b11 ldr r3, [pc, #68] @ (8009c10 ) 8009bca: f44f 2260 mov.w r2, #917504 @ 0xe0000 8009bce: 611a str r2, [r3, #16] hcan2.Init.TimeSeg2 = CAN_BS2_2TQ; 8009bd0: 4b0f ldr r3, [pc, #60] @ (8009c10 ) 8009bd2: f44f 1280 mov.w r2, #1048576 @ 0x100000 8009bd6: 615a str r2, [r3, #20] hcan2.Init.TimeTriggeredMode = DISABLE; 8009bd8: 4b0d ldr r3, [pc, #52] @ (8009c10 ) 8009bda: 2200 movs r2, #0 8009bdc: 761a strb r2, [r3, #24] hcan2.Init.AutoBusOff = ENABLE; 8009bde: 4b0c ldr r3, [pc, #48] @ (8009c10 ) 8009be0: 2201 movs r2, #1 8009be2: 765a strb r2, [r3, #25] hcan2.Init.AutoWakeUp = ENABLE; 8009be4: 4b0a ldr r3, [pc, #40] @ (8009c10 ) 8009be6: 2201 movs r2, #1 8009be8: 769a strb r2, [r3, #26] hcan2.Init.AutoRetransmission = ENABLE; 8009bea: 4b09 ldr r3, [pc, #36] @ (8009c10 ) 8009bec: 2201 movs r2, #1 8009bee: 76da strb r2, [r3, #27] hcan2.Init.ReceiveFifoLocked = DISABLE; 8009bf0: 4b07 ldr r3, [pc, #28] @ (8009c10 ) 8009bf2: 2200 movs r2, #0 8009bf4: 771a strb r2, [r3, #28] hcan2.Init.TransmitFifoPriority = ENABLE; 8009bf6: 4b06 ldr r3, [pc, #24] @ (8009c10 ) 8009bf8: 2201 movs r2, #1 8009bfa: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan2) != HAL_OK) 8009bfc: 4804 ldr r0, [pc, #16] @ (8009c10 ) 8009bfe: f005 f8ea bl 800edd6 8009c02: 4603 mov r3, r0 8009c04: 2b00 cmp r3, #0 8009c06: d001 beq.n 8009c0c { Error_Handler(); 8009c08: f001 f812 bl 800ac30 } /* USER CODE BEGIN CAN2_Init 2 */ /* USER CODE END CAN2_Init 2 */ } 8009c0c: bf00 nop 8009c0e: bd80 pop {r7, pc} 8009c10: 20000384 .word 0x20000384 8009c14: 40006800 .word 0x40006800 08009c18 : static uint32_t HAL_RCC_CAN1_CLK_ENABLED=0; void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) { 8009c18: b580 push {r7, lr} 8009c1a: b08e sub sp, #56 @ 0x38 8009c1c: af00 add r7, sp, #0 8009c1e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 8009c20: f107 0320 add.w r3, r7, #32 8009c24: 2200 movs r2, #0 8009c26: 601a str r2, [r3, #0] 8009c28: 605a str r2, [r3, #4] 8009c2a: 609a str r2, [r3, #8] 8009c2c: 60da str r2, [r3, #12] if(canHandle->Instance==CAN1) 8009c2e: 687b ldr r3, [r7, #4] 8009c30: 681b ldr r3, [r3, #0] 8009c32: 4a61 ldr r2, [pc, #388] @ (8009db8 ) 8009c34: 4293 cmp r3, r2 8009c36: d153 bne.n 8009ce0 { /* USER CODE BEGIN CAN1_MspInit 0 */ /* USER CODE END CAN1_MspInit 0 */ /* CAN1 clock enable */ HAL_RCC_CAN1_CLK_ENABLED++; 8009c38: 4b60 ldr r3, [pc, #384] @ (8009dbc ) 8009c3a: 681b ldr r3, [r3, #0] 8009c3c: 3301 adds r3, #1 8009c3e: 4a5f ldr r2, [pc, #380] @ (8009dbc ) 8009c40: 6013 str r3, [r2, #0] if(HAL_RCC_CAN1_CLK_ENABLED==1){ 8009c42: 4b5e ldr r3, [pc, #376] @ (8009dbc ) 8009c44: 681b ldr r3, [r3, #0] 8009c46: 2b01 cmp r3, #1 8009c48: d10b bne.n 8009c62 __HAL_RCC_CAN1_CLK_ENABLE(); 8009c4a: 4b5d ldr r3, [pc, #372] @ (8009dc0 ) 8009c4c: 69db ldr r3, [r3, #28] 8009c4e: 4a5c ldr r2, [pc, #368] @ (8009dc0 ) 8009c50: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 8009c54: 61d3 str r3, [r2, #28] 8009c56: 4b5a ldr r3, [pc, #360] @ (8009dc0 ) 8009c58: 69db ldr r3, [r3, #28] 8009c5a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8009c5e: 61fb str r3, [r7, #28] 8009c60: 69fb ldr r3, [r7, #28] } __HAL_RCC_GPIOD_CLK_ENABLE(); 8009c62: 4b57 ldr r3, [pc, #348] @ (8009dc0 ) 8009c64: 699b ldr r3, [r3, #24] 8009c66: 4a56 ldr r2, [pc, #344] @ (8009dc0 ) 8009c68: f043 0320 orr.w r3, r3, #32 8009c6c: 6193 str r3, [r2, #24] 8009c6e: 4b54 ldr r3, [pc, #336] @ (8009dc0 ) 8009c70: 699b ldr r3, [r3, #24] 8009c72: f003 0320 and.w r3, r3, #32 8009c76: 61bb str r3, [r7, #24] 8009c78: 69bb ldr r3, [r7, #24] /**CAN1 GPIO Configuration PD0 ------> CAN1_RX PD1 ------> CAN1_TX */ GPIO_InitStruct.Pin = GPIO_PIN_0; 8009c7a: 2301 movs r3, #1 8009c7c: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 8009c7e: 2300 movs r3, #0 8009c80: 627b str r3, [r7, #36] @ 0x24 GPIO_InitStruct.Pull = GPIO_NOPULL; 8009c82: 2300 movs r3, #0 8009c84: 62bb str r3, [r7, #40] @ 0x28 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 8009c86: f107 0320 add.w r3, r7, #32 8009c8a: 4619 mov r1, r3 8009c8c: 484d ldr r0, [pc, #308] @ (8009dc4 ) 8009c8e: f006 fd2f bl 80106f0 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 fd23 bl 80106f0 __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, 3, 0); 8009cce: 2200 movs r2, #0 8009cd0: 2103 movs r1, #3 8009cd2: 2014 movs r0, #20 8009cd4: f006 f82b bl 800fd2e HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn); 8009cd8: 2014 movs r0, #20 8009cda: f006 f844 bl 800fd66 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 fcca bl 80106f0 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 fcbe bl 80106f0 __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 ffca bl 800fd2e HAL_NVIC_EnableIRQ(CAN2_TX_IRQn); 8009d9a: 203f movs r0, #63 @ 0x3f 8009d9c: f005 ffe3 bl 800fd66 HAL_NVIC_SetPriority(CAN2_RX1_IRQn, 3, 0); 8009da0: 2200 movs r2, #0 8009da2: 2103 movs r1, #3 8009da4: 2041 movs r0, #65 @ 0x41 8009da6: f005 ffc2 bl 800fd2e HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); 8009daa: 2041 movs r0, #65 @ 0x41 8009dac: f005 ffdb bl 800fd66 } 8009db0: bf00 nop 8009db2: 3738 adds r7, #56 @ 0x38 8009db4: 46bd mov sp, r7 8009db6: bd80 pop {r7, pc} 8009db8: 40006400 .word 0x40006400 8009dbc: 200003ac .word 0x200003ac 8009dc0: 40021000 .word 0x40021000 8009dc4: 40011400 .word 0x40011400 8009dc8: 40010000 .word 0x40010000 8009dcc: 40006800 .word 0x40006800 8009dd0: 40010c00 .word 0x40010c00 08009dd4 : ChargingConnector_t CONN; CONN_State_t connectorState; extern uint8_t config_initialized; void CONN_Init(){ 8009dd4: b480 push {r7} 8009dd6: af00 add r7, sp, #0 CONN.connControl = CMD_NONE; 8009dd8: 4b08 ldr r3, [pc, #32] @ (8009dfc ) 8009dda: 2200 movs r2, #0 8009ddc: 701a strb r2, [r3, #0] CONN.connState = Unknown; 8009dde: 4b07 ldr r3, [pc, #28] @ (8009dfc ) 8009de0: 2200 movs r2, #0 8009de2: 705a strb r2, [r3, #1] CONN.RequestedVoltage = PSU_MIN_VOLTAGE; 8009de4: 4b05 ldr r3, [pc, #20] @ (8009dfc ) 8009de6: 2200 movs r2, #0 8009de8: f062 0269 orn r2, r2, #105 @ 0x69 8009dec: 73da strb r2, [r3, #15] 8009dee: 2200 movs r2, #0 8009df0: 741a strb r2, [r3, #16] } 8009df2: bf00 nop 8009df4: 46bd mov sp, r7 8009df6: bc80 pop {r7} 8009df8: 4770 bx lr 8009dfa: bf00 nop 8009dfc: 200003b0 .word 0x200003b0 08009e00 : void CONN_Loop(){ 8009e00: b580 push {r7, lr} 8009e02: af00 add r7, sp, #0 static CONN_State_t last_connState = Unknown; if(last_connState != CONN.connState){ 8009e04: 4b1a ldr r3, [pc, #104] @ (8009e70 ) 8009e06: 785a ldrb r2, [r3, #1] 8009e08: 4b1a ldr r3, [pc, #104] @ (8009e74 ) 8009e0a: 781b ldrb r3, [r3, #0] 8009e0c: 429a cmp r2, r3 8009e0e: d006 beq.n 8009e1e last_connState = CONN.connState; 8009e10: 4b17 ldr r3, [pc, #92] @ (8009e70 ) 8009e12: 785a ldrb r2, [r3, #1] 8009e14: 4b17 ldr r3, [pc, #92] @ (8009e74 ) 8009e16: 701a strb r2, [r3, #0] CONN.connControl = CMD_NONE; 8009e18: 4b15 ldr r3, [pc, #84] @ (8009e70 ) 8009e1a: 2200 movs r2, #0 8009e1c: 701a strb r2, [r3, #0] } if(PSU0.cont_fault){ 8009e1e: 4b16 ldr r3, [pc, #88] @ (8009e78 ) 8009e20: 7b1b ldrb r3, [r3, #12] 8009e22: 2b00 cmp r3, #0 8009e24: d003 beq.n 8009e2e CONN.chargingError = CONN_ERR_CONTACTOR; 8009e26: 4b12 ldr r3, [pc, #72] @ (8009e70 ) 8009e28: 2207 movs r2, #7 8009e2a: 775a strb r2, [r3, #29] 8009e2c: e00e b.n 8009e4c } else if(PSU0.psu_fault){ 8009e2e: 4b12 ldr r3, [pc, #72] @ (8009e78 ) 8009e30: 7b5b ldrb r3, [r3, #13] 8009e32: 2b00 cmp r3, #0 8009e34: d003 beq.n 8009e3e CONN.chargingError = CONN_ERR_PSU_FAULT; 8009e36: 4b0e ldr r3, [pc, #56] @ (8009e70 ) 8009e38: 220a movs r2, #10 8009e3a: 775a strb r2, [r3, #29] 8009e3c: e006 b.n 8009e4c // } else if(!CTRL.ac_ok) { // CONN.chargingError = CONN_ERR_AC_FAULT; // } else }else if (CONN.EvConnected == 0){ 8009e3e: 4b0c ldr r3, [pc, #48] @ (8009e70 ) 8009e40: 7f9b ldrb r3, [r3, #30] 8009e42: 2b00 cmp r3, #0 8009e44: d102 bne.n 8009e4c CONN.chargingError = CONN_NO_ERROR; 8009e46: 4b0a ldr r3, [pc, #40] @ (8009e70 ) 8009e48: 2200 movs r2, #0 8009e4a: 775a strb r2, [r3, #29] } if(ED_TraceWarning(CONN.chargingError, 0)) printf("CONN%d Error: %d\n", 0, CONN.chargingError); 8009e4c: 4b08 ldr r3, [pc, #32] @ (8009e70 ) 8009e4e: 7f5b ldrb r3, [r3, #29] 8009e50: 2100 movs r1, #0 8009e52: 4618 mov r0, r3 8009e54: f000 fd2c bl 800a8b0 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 ff00 bl 8014c6c } 8009e6c: bf00 nop 8009e6e: bd80 pop {r7, pc} 8009e70: 200003b0 .word 0x200003b0 8009e74: 200003d0 .word 0x200003d0 8009e78: 2000090c .word 0x2000090c 8009e7c: 08016ee0 .word 0x08016ee0 08009e80 : void CONN_Task(){ 8009e80: b480 push {r7} 8009e82: af00 add r7, sp, #0 /* CCS state machine is handled in serial.c. * Keep this task lightweight for scheduler compatibility. */ return; 8009e84: bf00 nop } 8009e86: 46bd mov sp, r7 8009e88: bc80 pop {r7} 8009e8a: 4770 bx lr 08009e8c : void CONN_SetState(CONN_State_t state){ 8009e8c: b580 push {r7, lr} 8009e8e: b082 sub sp, #8 8009e90: af00 add r7, sp, #0 8009e92: 4603 mov r3, r0 8009e94: 71fb strb r3, [r7, #7] if (connectorState == state) { 8009e96: 4b41 ldr r3, [pc, #260] @ (8009f9c ) 8009e98: 781b ldrb r3, [r3, #0] 8009e9a: 79fa ldrb r2, [r7, #7] 8009e9c: 429a cmp r2, r3 8009e9e: d103 bne.n 8009ea8 CONN.connState = state; 8009ea0: 4a3f ldr r2, [pc, #252] @ (8009fa0 ) 8009ea2: 79fb ldrb r3, [r7, #7] 8009ea4: 7053 strb r3, [r2, #1] return; 8009ea6: e075 b.n 8009f94 } connectorState = state; 8009ea8: 4a3c ldr r2, [pc, #240] @ (8009f9c ) 8009eaa: 79fb ldrb r3, [r7, #7] 8009eac: 7013 strb r3, [r2, #0] if(connectorState == Unknown) log_printf(LOG_INFO, "Connector: Unknown\n"); 8009eae: 4b3b ldr r3, [pc, #236] @ (8009f9c ) 8009eb0: 781b ldrb r3, [r3, #0] 8009eb2: 2b00 cmp r3, #0 8009eb4: d103 bne.n 8009ebe 8009eb6: 493b ldr r1, [pc, #236] @ (8009fa4 ) 8009eb8: 2007 movs r0, #7 8009eba: f000 fb21 bl 800a500 if(connectorState == Unplugged) log_printf(LOG_INFO, "Connector: Unplugged\n"); 8009ebe: 4b37 ldr r3, [pc, #220] @ (8009f9c ) 8009ec0: 781b ldrb r3, [r3, #0] 8009ec2: 2b01 cmp r3, #1 8009ec4: d103 bne.n 8009ece 8009ec6: 4938 ldr r1, [pc, #224] @ (8009fa8 ) 8009ec8: 2007 movs r0, #7 8009eca: f000 fb19 bl 800a500 if(connectorState == Disabled) log_printf(LOG_INFO, "Connector: Disabled\n"); 8009ece: 4b33 ldr r3, [pc, #204] @ (8009f9c ) 8009ed0: 781b ldrb r3, [r3, #0] 8009ed2: 2b02 cmp r3, #2 8009ed4: d103 bne.n 8009ede 8009ed6: 4935 ldr r1, [pc, #212] @ (8009fac ) 8009ed8: 2007 movs r0, #7 8009eda: f000 fb11 bl 800a500 if(connectorState == Preparing) log_printf(LOG_INFO, "Connector: Preparing\n"); 8009ede: 4b2f ldr r3, [pc, #188] @ (8009f9c ) 8009ee0: 781b ldrb r3, [r3, #0] 8009ee2: 2b03 cmp r3, #3 8009ee4: d103 bne.n 8009eee 8009ee6: 4932 ldr r1, [pc, #200] @ (8009fb0 ) 8009ee8: 2007 movs r0, #7 8009eea: f000 fb09 bl 800a500 if(connectorState == AuthRequired) log_printf(LOG_INFO, "Connector: AuthRequired\n"); 8009eee: 4b2b ldr r3, [pc, #172] @ (8009f9c ) 8009ef0: 781b ldrb r3, [r3, #0] 8009ef2: 2b04 cmp r3, #4 8009ef4: d103 bne.n 8009efe 8009ef6: 492f ldr r1, [pc, #188] @ (8009fb4 ) 8009ef8: 2007 movs r0, #7 8009efa: f000 fb01 bl 800a500 if(connectorState == WaitingForEnergy) log_printf(LOG_INFO, "Connector: WaitingForEnergy\n"); 8009efe: 4b27 ldr r3, [pc, #156] @ (8009f9c ) 8009f00: 781b ldrb r3, [r3, #0] 8009f02: 2b05 cmp r3, #5 8009f04: d103 bne.n 8009f0e 8009f06: 492c ldr r1, [pc, #176] @ (8009fb8 ) 8009f08: 2007 movs r0, #7 8009f0a: f000 faf9 bl 800a500 if(connectorState == ChargingPausedEV) log_printf(LOG_INFO, "Connector: ChargingPausedEV\n"); 8009f0e: 4b23 ldr r3, [pc, #140] @ (8009f9c ) 8009f10: 781b ldrb r3, [r3, #0] 8009f12: 2b06 cmp r3, #6 8009f14: d103 bne.n 8009f1e 8009f16: 4929 ldr r1, [pc, #164] @ (8009fbc ) 8009f18: 2007 movs r0, #7 8009f1a: f000 faf1 bl 800a500 if(connectorState == ChargingPausedEVSE) log_printf(LOG_INFO, "Connector: ChargingPausedEVSE\n"); 8009f1e: 4b1f ldr r3, [pc, #124] @ (8009f9c ) 8009f20: 781b ldrb r3, [r3, #0] 8009f22: 2b07 cmp r3, #7 8009f24: d103 bne.n 8009f2e 8009f26: 4926 ldr r1, [pc, #152] @ (8009fc0 ) 8009f28: 2007 movs r0, #7 8009f2a: f000 fae9 bl 800a500 if(connectorState == Charging) log_printf(LOG_INFO, "Connector: Charging\n"); 8009f2e: 4b1b ldr r3, [pc, #108] @ (8009f9c ) 8009f30: 781b ldrb r3, [r3, #0] 8009f32: 2b08 cmp r3, #8 8009f34: d103 bne.n 8009f3e 8009f36: 4923 ldr r1, [pc, #140] @ (8009fc4 ) 8009f38: 2007 movs r0, #7 8009f3a: f000 fae1 bl 800a500 if(connectorState == AuthTimeout) log_printf(LOG_INFO, "Connector: AuthTimeout\n"); 8009f3e: 4b17 ldr r3, [pc, #92] @ (8009f9c ) 8009f40: 781b ldrb r3, [r3, #0] 8009f42: 2b09 cmp r3, #9 8009f44: d103 bne.n 8009f4e 8009f46: 4920 ldr r1, [pc, #128] @ (8009fc8 ) 8009f48: 2007 movs r0, #7 8009f4a: f000 fad9 bl 800a500 if(connectorState == Finished) log_printf(LOG_INFO, "Connector: Finished\n"); 8009f4e: 4b13 ldr r3, [pc, #76] @ (8009f9c ) 8009f50: 781b ldrb r3, [r3, #0] 8009f52: 2b0a cmp r3, #10 8009f54: d103 bne.n 8009f5e 8009f56: 491d ldr r1, [pc, #116] @ (8009fcc ) 8009f58: 2007 movs r0, #7 8009f5a: f000 fad1 bl 800a500 if(connectorState == FinishedEVSE) log_printf(LOG_INFO, "Connector: FinishedEVSE\n"); 8009f5e: 4b0f ldr r3, [pc, #60] @ (8009f9c ) 8009f60: 781b ldrb r3, [r3, #0] 8009f62: 2b0b cmp r3, #11 8009f64: d103 bne.n 8009f6e 8009f66: 491a ldr r1, [pc, #104] @ (8009fd0 ) 8009f68: 2007 movs r0, #7 8009f6a: f000 fac9 bl 800a500 if(connectorState == FinishedEV) log_printf(LOG_INFO, "Connector: FinishedEV\n"); 8009f6e: 4b0b ldr r3, [pc, #44] @ (8009f9c ) 8009f70: 781b ldrb r3, [r3, #0] 8009f72: 2b0c cmp r3, #12 8009f74: d103 bne.n 8009f7e 8009f76: 4917 ldr r1, [pc, #92] @ (8009fd4 ) 8009f78: 2007 movs r0, #7 8009f7a: f000 fac1 bl 800a500 if(connectorState == Replugging) log_printf(LOG_INFO, "Connector: Replugging\n"); 8009f7e: 4b07 ldr r3, [pc, #28] @ (8009f9c ) 8009f80: 781b ldrb r3, [r3, #0] 8009f82: 2b0d cmp r3, #13 8009f84: d103 bne.n 8009f8e 8009f86: 4914 ldr r1, [pc, #80] @ (8009fd8 ) 8009f88: 2007 movs r0, #7 8009f8a: f000 fab9 bl 800a500 CONN.connState = state; 8009f8e: 4a04 ldr r2, [pc, #16] @ (8009fa0 ) 8009f90: 79fb ldrb r3, [r7, #7] 8009f92: 7053 strb r3, [r2, #1] } 8009f94: 3708 adds r7, #8 8009f96: 46bd mov sp, r7 8009f98: bd80 pop {r7, pc} 8009f9a: bf00 nop 8009f9c: 200003cf .word 0x200003cf 8009fa0: 200003b0 .word 0x200003b0 8009fa4: 08016ef4 .word 0x08016ef4 8009fa8: 08016f08 .word 0x08016f08 8009fac: 08016f20 .word 0x08016f20 8009fb0: 08016f38 .word 0x08016f38 8009fb4: 08016f50 .word 0x08016f50 8009fb8: 08016f6c .word 0x08016f6c 8009fbc: 08016f8c .word 0x08016f8c 8009fc0: 08016fac .word 0x08016fac 8009fc4: 08016fcc .word 0x08016fcc 8009fc8: 08016fe4 .word 0x08016fe4 8009fcc: 08016ffc .word 0x08016ffc 8009fd0: 08017014 .word 0x08017014 8009fd4: 08017030 .word 0x08017030 8009fd8: 08017048 .word 0x08017048 08009fdc : CP_State_t cp_state_buffer = EV_STATE_ACQUIRING; #define VREFINT_CAL_ADDR ((uint16_t*)0x1FFFF7BA) // для STM32F1! static int32_t CP_ReadVoltageMv(void) { 8009fdc: b480 push {r7} 8009fde: b087 sub sp, #28 8009fe0: af00 add r7, sp, #0 uint32_t adc_cp = adc_data.cp_raw; 8009fe2: 4b13 ldr r3, [pc, #76] @ (800a030 ) 8009fe4: 885b ldrh r3, [r3, #2] 8009fe6: b29b uxth r3, r3 8009fe8: 617b str r3, [r7, #20] uint32_t adc_vref = adc_data.vrefint_raw; // нужно измерять! 8009fea: 4b11 ldr r3, [pc, #68] @ (800a030 ) 8009fec: 895b ldrh r3, [r3, #10] 8009fee: b29b uxth r3, r3 8009ff0: 613b str r3, [r7, #16] // VREFINT в мВ (берётся из даташита или калибровки MCU) const int32_t VREFINT_MV = 1210; 8009ff2: f240 43ba movw r3, #1210 @ 0x4ba 8009ff6: 60fb str r3, [r7, #12] // напряжение на входе АЦП int32_t v_adc_mv = (adc_cp * VREFINT_MV) / adc_vref; 8009ff8: 68fb ldr r3, [r7, #12] 8009ffa: 697a ldr r2, [r7, #20] 8009ffc: fb03 f202 mul.w r2, r3, r2 800a000: 693b ldr r3, [r7, #16] 800a002: fbb2 f3f3 udiv r3, r2, r3 800a006: 60bb str r3, [r7, #8] // дальше твоя формула int32_t v_out_mv = ((v_adc_mv - 1723) * 7704) / 1000; 800a008: 68bb ldr r3, [r7, #8] 800a00a: f2a3 63bb subw r3, r3, #1723 @ 0x6bb 800a00e: f641 6218 movw r2, #7704 @ 0x1e18 800a012: fb02 f303 mul.w r3, r2, r3 800a016: 4a07 ldr r2, [pc, #28] @ (800a034 ) 800a018: fb82 1203 smull r1, r2, r2, r3 800a01c: 1192 asrs r2, r2, #6 800a01e: 17db asrs r3, r3, #31 800a020: 1ad3 subs r3, r2, r3 800a022: 607b str r3, [r7, #4] return v_out_mv; 800a024: 687b ldr r3, [r7, #4] } 800a026: 4618 mov r0, r3 800a028: 371c adds r7, #28 800a02a: 46bd mov sp, r7 800a02c: bc80 pop {r7} 800a02e: 4770 bx lr 800a030: 20000280 .word 0x20000280 800a034: 10624dd3 .word 0x10624dd3 0800a038 : void CP_Init(void) { 800a038: b580 push {r7, lr} 800a03a: af00 add r7, sp, #0 /* TIM3_CH2 (PA7): set 1kHz PWM like original CCS logic. */ htim3.Instance->PSC = 160 - 1; 800a03c: 4b0e ldr r3, [pc, #56] @ (800a078 ) 800a03e: 681b ldr r3, [r3, #0] 800a040: 229f movs r2, #159 @ 0x9f 800a042: 629a str r2, [r3, #40] @ 0x28 htim3.Instance->ARR = MAX_DUTY - 1; 800a044: 4b0c ldr r3, [pc, #48] @ (800a078 ) 800a046: 681b ldr r3, [r3, #0] 800a048: f240 12c1 movw r2, #449 @ 0x1c1 800a04c: 62da str r2, [r3, #44] @ 0x2c #if DUTY_INVERT == 0 htim3.Instance->CCR2 = MAX_DUTY; 800a04e: 4b0a ldr r3, [pc, #40] @ (800a078 ) 800a050: 681b ldr r3, [r3, #0] 800a052: f44f 72e1 mov.w r2, #450 @ 0x1c2 800a056: 639a str r2, [r3, #56] @ 0x38 htim3.Instance->CCR1 = MAX_DUTY + 5; 800a058: 4b07 ldr r3, [pc, #28] @ (800a078 ) 800a05a: 681b ldr r3, [r3, #0] 800a05c: f240 12c7 movw r2, #455 @ 0x1c7 800a060: 635a str r2, [r3, #52] @ 0x34 #else htim3.Instance->CCR2 = 0; htim3.Instance->CCR1 = 0; #endif HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_2); 800a062: 2104 movs r1, #4 800a064: 4804 ldr r0, [pc, #16] @ (800a078 ) 800a066: f008 f815 bl 8012094 HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_1); 800a06a: 2100 movs r1, #0 800a06c: 4802 ldr r0, [pc, #8] @ (800a078 ) 800a06e: f007 ff0f bl 8011e90 } 800a072: bf00 nop 800a074: bd80 pop {r7, pc} 800a076: bf00 nop 800a078: 200011d4 .word 0x200011d4 0800a07c : void CP_SetDuty(uint8_t percentage) { 800a07c: b480 push {r7} 800a07e: b085 sub sp, #20 800a080: af00 add r7, sp, #0 800a082: 4603 mov r3, r0 800a084: 71fb strb r3, [r7, #7] uint32_t pwmduty = MAX_DUTY * percentage / 100; 800a086: 79fb ldrb r3, [r7, #7] 800a088: f44f 72e1 mov.w r2, #450 @ 0x1c2 800a08c: fb02 f303 mul.w r3, r2, r3 800a090: 4a0b ldr r2, [pc, #44] @ (800a0c0 ) 800a092: fb82 1203 smull r1, r2, r2, r3 800a096: 1152 asrs r2, r2, #5 800a098: 17db asrs r3, r3, #31 800a09a: 1ad3 subs r3, r2, r3 800a09c: 60fb str r3, [r7, #12] cp_duty = percentage; 800a09e: 4a09 ldr r2, [pc, #36] @ (800a0c4 ) 800a0a0: 79fb ldrb r3, [r7, #7] 800a0a2: 7013 strb r3, [r2, #0] #if DUTY_INVERT == 0 htim3.Instance->CCR2 = pwmduty; 800a0a4: 4b08 ldr r3, [pc, #32] @ (800a0c8 ) 800a0a6: 681b ldr r3, [r3, #0] 800a0a8: 68fa ldr r2, [r7, #12] 800a0aa: 639a str r2, [r3, #56] @ 0x38 htim3.Instance->CCR1 = 0 + 1; 800a0ac: 4b06 ldr r3, [pc, #24] @ (800a0c8 ) 800a0ae: 681b ldr r3, [r3, #0] 800a0b0: 2201 movs r2, #1 800a0b2: 635a str r2, [r3, #52] @ 0x34 #else htim3.Instance->CCR2 = MAX_DUTY - pwmduty; htim3.Instance->CCR1 = MAX_DUTY - pwmduty + 5; #endif } 800a0b4: bf00 nop 800a0b6: 3714 adds r7, #20 800a0b8: 46bd mov sp, r7 800a0ba: bc80 pop {r7} 800a0bc: 4770 bx lr 800a0be: bf00 nop 800a0c0: 51eb851f .word 0x51eb851f 800a0c4: 200003d8 .word 0x200003d8 800a0c8: 200011d4 .word 0x200011d4 0800a0cc : uint8_t CP_GetDuty(void) { 800a0cc: b480 push {r7} 800a0ce: af00 add r7, sp, #0 return cp_duty; 800a0d0: 4b02 ldr r3, [pc, #8] @ (800a0dc ) 800a0d2: 781b ldrb r3, [r3, #0] } 800a0d4: 4618 mov r0, r3 800a0d6: 46bd mov sp, r7 800a0d8: bc80 pop {r7} 800a0da: 4770 bx lr 800a0dc: 200003d8 .word 0x200003d8 0800a0e0 : int32_t CP_GetVoltage(void) { 800a0e0: b580 push {r7, lr} 800a0e2: af00 add r7, sp, #0 cp_voltage_mv = CP_ReadVoltageMv(); 800a0e4: f7ff ff7a bl 8009fdc 800a0e8: 4603 mov r3, r0 800a0ea: 4a03 ldr r2, [pc, #12] @ (800a0f8 ) 800a0ec: 6013 str r3, [r2, #0] return cp_voltage_mv; 800a0ee: 4b02 ldr r3, [pc, #8] @ (800a0f8 ) 800a0f0: 681b ldr r3, [r3, #0] } 800a0f2: 4618 mov r0, r3 800a0f4: bd80 pop {r7, pc} 800a0f6: bf00 nop 800a0f8: 200003d4 .word 0x200003d4 0800a0fc : CP_State_t CP_GetState(void) { 800a0fc: b580 push {r7, lr} 800a0fe: b082 sub sp, #8 800a100: af00 add r7, sp, #0 int32_t voltage_real = CP_GetVoltage(); 800a102: f7ff ffed bl 800a0e0 800a106: 6078 str r0, [r7, #4] if(fake_cp_state != EV_STATE_ACQUIRING) { 800a108: 4b21 ldr r3, [pc, #132] @ (800a190 ) 800a10a: 781b ldrb r3, [r3, #0] 800a10c: 2b06 cmp r3, #6 800a10e: d002 beq.n 800a116 return fake_cp_state; 800a110: 4b1f ldr r3, [pc, #124] @ (800a190 ) 800a112: 781b ldrb r3, [r3, #0] 800a114: e038 b.n 800a188 } if (voltage_real >= (12000-1000)) { 800a116: 687b ldr r3, [r7, #4] 800a118: f642 22f7 movw r2, #10999 @ 0x2af7 800a11c: 4293 cmp r3, r2 800a11e: dd01 ble.n 800a124 return EV_STATE_A_IDLE; 800a120: 2300 movs r3, #0 800a122: e031 b.n 800a188 } else if (voltage_real >= (9000-1000) && voltage_real <= (9000+1000)) { 800a124: 687b ldr r3, [r7, #4] 800a126: f5b3 5ffa cmp.w r3, #8000 @ 0x1f40 800a12a: db06 blt.n 800a13a 800a12c: 687b ldr r3, [r7, #4] 800a12e: f242 7210 movw r2, #10000 @ 0x2710 800a132: 4293 cmp r3, r2 800a134: dc01 bgt.n 800a13a return EV_STATE_B_CONN_PREP; 800a136: 2301 movs r3, #1 800a138: e026 b.n 800a188 } else if (voltage_real >= (6000-1000) && voltage_real <= (6000+1000)) { 800a13a: 687b ldr r3, [r7, #4] 800a13c: f241 3287 movw r2, #4999 @ 0x1387 800a140: 4293 cmp r3, r2 800a142: dd06 ble.n 800a152 800a144: 687b ldr r3, [r7, #4] 800a146: f641 3258 movw r2, #7000 @ 0x1b58 800a14a: 4293 cmp r3, r2 800a14c: dc01 bgt.n 800a152 return EV_STATE_C_CONN_ACTIVE; 800a14e: 2302 movs r3, #2 800a150: e01a b.n 800a188 } else if (voltage_real >= (3000-1000) && voltage_real <= (3000 + 1000)) { 800a152: 687b ldr r3, [r7, #4] 800a154: f5b3 6ffa cmp.w r3, #2000 @ 0x7d0 800a158: db05 blt.n 800a166 800a15a: 687b ldr r3, [r7, #4] 800a15c: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800a160: dc01 bgt.n 800a166 return EV_STATE_D_CONN_ACT_VENT; 800a162: 2303 movs r3, #3 800a164: e010 b.n 800a188 } else if (voltage_real >= (0-1000) && voltage_real <= (0+2000)){ 800a166: 687b ldr r3, [r7, #4] 800a168: f513 7f7a cmn.w r3, #1000 @ 0x3e8 800a16c: db05 blt.n 800a17a 800a16e: 687b ldr r3, [r7, #4] 800a170: f5b3 6ffa cmp.w r3, #2000 @ 0x7d0 800a174: dc01 bgt.n 800a17a return EV_STATE_E_NO_POWER; 800a176: 2304 movs r3, #4 800a178: e006 b.n 800a188 } else if (voltage_real <= (-12000+1000)) { 800a17a: 687b ldr r3, [r7, #4] 800a17c: 4a05 ldr r2, [pc, #20] @ (800a194 ) 800a17e: 4293 cmp r3, r2 800a180: da01 bge.n 800a186 return EV_STATE_F_ERROR; 800a182: 2305 movs r3, #5 800a184: e000 b.n 800a188 } else { return EV_STATE_ACQUIRING; 800a186: 2306 movs r3, #6 } } 800a188: 4618 mov r0, r3 800a18a: 3708 adds r7, #8 800a18c: 46bd mov sp, r7 800a18e: bd80 pop {r7, pc} 800a190: 20000004 .word 0x20000004 800a194: ffffd509 .word 0xffffd509 0800a198 : CP_State_t CP_GetFilteredState(void) { 800a198: b480 push {r7} 800a19a: af00 add r7, sp, #0 return cp_state_buffer; 800a19c: 4b02 ldr r3, [pc, #8] @ (800a1a8 ) 800a19e: 781b ldrb r3, [r3, #0] } 800a1a0: 4618 mov r0, r3 800a1a2: 46bd mov sp, r7 800a1a4: bc80 pop {r7} 800a1a6: 4770 bx lr 800a1a8: 20000005 .word 0x20000005 0800a1ac : void CP_FilterState(void) { 800a1ac: b580 push {r7, lr} 800a1ae: b082 sub sp, #8 800a1b0: af00 add r7, sp, #0 static CP_State_t pending_state = EV_STATE_ACQUIRING; static uint8_t stable_count = 0u; CP_State_t current_state = CP_GetState(); 800a1b2: f7ff ffa3 bl 800a0fc 800a1b6: 4603 mov r3, r0 800a1b8: 71fb strb r3, [r7, #7] /* Keep last accepted state while CP is still acquiring. */ if (current_state == EV_STATE_ACQUIRING) { 800a1ba: 79fb ldrb r3, [r7, #7] 800a1bc: 2b06 cmp r3, #6 800a1be: d106 bne.n 800a1ce pending_state = EV_STATE_ACQUIRING; 800a1c0: 4b13 ldr r3, [pc, #76] @ (800a210 ) 800a1c2: 2206 movs r2, #6 800a1c4: 701a strb r2, [r3, #0] stable_count = 0u; 800a1c6: 4b13 ldr r3, [pc, #76] @ (800a214 ) 800a1c8: 2200 movs r2, #0 800a1ca: 701a strb r2, [r3, #0] return; 800a1cc: e01d b.n 800a20a } if (current_state != pending_state) { 800a1ce: 4b10 ldr r3, [pc, #64] @ (800a210 ) 800a1d0: 781b ldrb r3, [r3, #0] 800a1d2: 79fa ldrb r2, [r7, #7] 800a1d4: 429a cmp r2, r3 800a1d6: d006 beq.n 800a1e6 pending_state = current_state; 800a1d8: 4a0d ldr r2, [pc, #52] @ (800a210 ) 800a1da: 79fb ldrb r3, [r7, #7] 800a1dc: 7013 strb r3, [r2, #0] stable_count = 1u; 800a1de: 4b0d ldr r3, [pc, #52] @ (800a214 ) 800a1e0: 2201 movs r2, #1 800a1e2: 701a strb r2, [r3, #0] return; 800a1e4: e011 b.n 800a20a } if (stable_count < FILTER_ORDER) { 800a1e6: 4b0b ldr r3, [pc, #44] @ (800a214 ) 800a1e8: 781b ldrb r3, [r3, #0] 800a1ea: 2b63 cmp r3, #99 @ 0x63 800a1ec: d805 bhi.n 800a1fa stable_count++; 800a1ee: 4b09 ldr r3, [pc, #36] @ (800a214 ) 800a1f0: 781b ldrb r3, [r3, #0] 800a1f2: 3301 adds r3, #1 800a1f4: b2da uxtb r2, r3 800a1f6: 4b07 ldr r3, [pc, #28] @ (800a214 ) 800a1f8: 701a strb r2, [r3, #0] } if (stable_count >= FILTER_ORDER) { 800a1fa: 4b06 ldr r3, [pc, #24] @ (800a214 ) 800a1fc: 781b ldrb r3, [r3, #0] 800a1fe: 2b63 cmp r3, #99 @ 0x63 800a200: d903 bls.n 800a20a cp_state_buffer = pending_state; 800a202: 4b03 ldr r3, [pc, #12] @ (800a210 ) 800a204: 781a ldrb r2, [r3, #0] 800a206: 4b04 ldr r3, [pc, #16] @ (800a218 ) 800a208: 701a strb r2, [r3, #0] } } 800a20a: 3708 adds r7, #8 800a20c: 46bd mov sp, r7 800a20e: bd80 pop {r7, pc} 800a210: 20000006 .word 0x20000006 800a214: 200003d9 .word 0x200003d9 800a218: 20000005 .word 0x20000005 0800a21c : void CP_Loop(void) { 800a21c: b580 push {r7, lr} 800a21e: b082 sub sp, #8 800a220: af00 add r7, sp, #0 static uint32_t tick; if ((int32_t)(HAL_GetTick() - tick) < 1) return; 800a222: f004 f869 bl 800e2f8 800a226: 4602 mov r2, r0 800a228: 4b22 ldr r3, [pc, #136] @ (800a2b4 ) 800a22a: 681b ldr r3, [r3, #0] 800a22c: 1ad3 subs r3, r2, r3 800a22e: 2b00 cmp r3, #0 800a230: dd3c ble.n 800a2ac tick = HAL_GetTick(); 800a232: f004 f861 bl 800e2f8 800a236: 4603 mov r3, r0 800a238: 4a1e ldr r2, [pc, #120] @ (800a2b4 ) 800a23a: 6013 str r3, [r2, #0] static uint8_t initialized = 0; static CP_State_t prev_state = EV_STATE_ACQUIRING; static uint8_t prev_duty = 0; CP_FilterState(); 800a23c: f7ff ffb6 bl 800a1ac CP_State_t current_state = CP_GetFilteredState(); 800a240: f7ff ffaa bl 800a198 800a244: 4603 mov r3, r0 800a246: 71fb strb r3, [r7, #7] uint8_t current_duty = cp_duty; 800a248: 4b1b ldr r3, [pc, #108] @ (800a2b8 ) 800a24a: 781b ldrb r3, [r3, #0] 800a24c: 71bb strb r3, [r7, #6] if (!initialized) { 800a24e: 4b1b ldr r3, [pc, #108] @ (800a2bc ) 800a250: 781b ldrb r3, [r3, #0] 800a252: 2b00 cmp r3, #0 800a254: d109 bne.n 800a26a prev_state = current_state; 800a256: 4a1a ldr r2, [pc, #104] @ (800a2c0 ) 800a258: 79fb ldrb r3, [r7, #7] 800a25a: 7013 strb r3, [r2, #0] prev_duty = current_duty; 800a25c: 4a19 ldr r2, [pc, #100] @ (800a2c4 ) 800a25e: 79bb ldrb r3, [r7, #6] 800a260: 7013 strb r3, [r2, #0] initialized = 1; 800a262: 4b16 ldr r3, [pc, #88] @ (800a2bc ) 800a264: 2201 movs r2, #1 800a266: 701a strb r2, [r3, #0] return; 800a268: e021 b.n 800a2ae } if (current_state != prev_state) { 800a26a: 4b15 ldr r3, [pc, #84] @ (800a2c0 ) 800a26c: 781b ldrb r3, [r3, #0] 800a26e: 79fa ldrb r2, [r7, #7] 800a270: 429a cmp r2, r3 800a272: d00a beq.n 800a28a log_printf(LOG_INFO, "CP state changed: %d -> %d\n", prev_state, current_state); 800a274: 4b12 ldr r3, [pc, #72] @ (800a2c0 ) 800a276: 781b ldrb r3, [r3, #0] 800a278: 461a mov r2, r3 800a27a: 79fb ldrb r3, [r7, #7] 800a27c: 4912 ldr r1, [pc, #72] @ (800a2c8 ) 800a27e: 2007 movs r0, #7 800a280: f000 f93e bl 800a500 prev_state = current_state; 800a284: 4a0e ldr r2, [pc, #56] @ (800a2c0 ) 800a286: 79fb ldrb r3, [r7, #7] 800a288: 7013 strb r3, [r2, #0] } if (current_duty != prev_duty) { 800a28a: 4b0e ldr r3, [pc, #56] @ (800a2c4 ) 800a28c: 781b ldrb r3, [r3, #0] 800a28e: 79ba ldrb r2, [r7, #6] 800a290: 429a cmp r2, r3 800a292: d00c beq.n 800a2ae log_printf(LOG_INFO, "CP duty changed: %u -> %u\n", prev_duty, current_duty); 800a294: 4b0b ldr r3, [pc, #44] @ (800a2c4 ) 800a296: 781b ldrb r3, [r3, #0] 800a298: 461a mov r2, r3 800a29a: 79bb ldrb r3, [r7, #6] 800a29c: 490b ldr r1, [pc, #44] @ (800a2cc ) 800a29e: 2007 movs r0, #7 800a2a0: f000 f92e bl 800a500 prev_duty = current_duty; 800a2a4: 4a07 ldr r2, [pc, #28] @ (800a2c4 ) 800a2a6: 79bb ldrb r3, [r7, #6] 800a2a8: 7013 strb r3, [r2, #0] 800a2aa: e000 b.n 800a2ae if ((int32_t)(HAL_GetTick() - tick) < 1) return; 800a2ac: bf00 nop } } 800a2ae: 3708 adds r7, #8 800a2b0: 46bd mov sp, r7 800a2b2: bd80 pop {r7, pc} 800a2b4: 200003dc .word 0x200003dc 800a2b8: 200003d8 .word 0x200003d8 800a2bc: 200003e0 .word 0x200003e0 800a2c0: 20000007 .word 0x20000007 800a2c4: 200003e1 .word 0x200003e1 800a2c8: 08017094 .word 0x08017094 800a2cc: 080170b0 .word 0x080170b0 0800a2d0 : CRC_HandleTypeDef hcrc; /* CRC init function */ void MX_CRC_Init(void) { 800a2d0: b580 push {r7, lr} 800a2d2: 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; 800a2d4: 4b06 ldr r3, [pc, #24] @ (800a2f0 ) 800a2d6: 4a07 ldr r2, [pc, #28] @ (800a2f4 ) 800a2d8: 601a str r2, [r3, #0] if (HAL_CRC_Init(&hcrc) != HAL_OK) 800a2da: 4805 ldr r0, [pc, #20] @ (800a2f0 ) 800a2dc: f005 fd5d bl 800fd9a 800a2e0: 4603 mov r3, r0 800a2e2: 2b00 cmp r3, #0 800a2e4: d001 beq.n 800a2ea { Error_Handler(); 800a2e6: f000 fca3 bl 800ac30 } /* USER CODE BEGIN CRC_Init 2 */ /* USER CODE END CRC_Init 2 */ } 800a2ea: bf00 nop 800a2ec: bd80 pop {r7, pc} 800a2ee: bf00 nop 800a2f0: 200003e4 .word 0x200003e4 800a2f4: 40023000 .word 0x40023000 0800a2f8 : void HAL_CRC_MspInit(CRC_HandleTypeDef* crcHandle) { 800a2f8: b480 push {r7} 800a2fa: b085 sub sp, #20 800a2fc: af00 add r7, sp, #0 800a2fe: 6078 str r0, [r7, #4] if(crcHandle->Instance==CRC) 800a300: 687b ldr r3, [r7, #4] 800a302: 681b ldr r3, [r3, #0] 800a304: 4a09 ldr r2, [pc, #36] @ (800a32c ) 800a306: 4293 cmp r3, r2 800a308: d10b bne.n 800a322 { /* USER CODE BEGIN CRC_MspInit 0 */ /* USER CODE END CRC_MspInit 0 */ /* CRC clock enable */ __HAL_RCC_CRC_CLK_ENABLE(); 800a30a: 4b09 ldr r3, [pc, #36] @ (800a330 ) 800a30c: 695b ldr r3, [r3, #20] 800a30e: 4a08 ldr r2, [pc, #32] @ (800a330 ) 800a310: f043 0340 orr.w r3, r3, #64 @ 0x40 800a314: 6153 str r3, [r2, #20] 800a316: 4b06 ldr r3, [pc, #24] @ (800a330 ) 800a318: 695b ldr r3, [r3, #20] 800a31a: f003 0340 and.w r3, r3, #64 @ 0x40 800a31e: 60fb str r3, [r7, #12] 800a320: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN CRC_MspInit 1 */ /* USER CODE END CRC_MspInit 1 */ } } 800a322: bf00 nop 800a324: 3714 adds r7, #20 800a326: 46bd mov sp, r7 800a328: bc80 pop {r7} 800a32a: 4770 bx lr 800a32c: 40023000 .word 0x40023000 800a330: 40021000 .word 0x40021000 0800a334 <_write>: #if defined(__GNUC__) int _write(int fd, char * ptr, int len) { 800a334: b580 push {r7, lr} 800a336: b084 sub sp, #16 800a338: af00 add r7, sp, #0 800a33a: 60f8 str r0, [r7, #12] 800a33c: 60b9 str r1, [r7, #8] 800a33e: 607a str r2, [r7, #4] debug_buffer_add((const uint8_t*)ptr, len); 800a340: 687b ldr r3, [r7, #4] 800a342: b29b uxth r3, r3 800a344: 4619 mov r1, r3 800a346: 68b8 ldr r0, [r7, #8] 800a348: f000 f806 bl 800a358 return len; 800a34c: 687b ldr r3, [r7, #4] } 800a34e: 4618 mov r0, r3 800a350: 3710 adds r7, #16 800a352: 46bd mov sp, r7 800a354: bd80 pop {r7, pc} ... 0800a358 : #endif // Добавляет данные в кольцевой буфер void debug_buffer_add(const uint8_t* data, uint16_t len) { 800a358: b480 push {r7} 800a35a: b085 sub sp, #20 800a35c: af00 add r7, sp, #0 800a35e: 6078 str r0, [r7, #4] 800a360: 460b mov r3, r1 800a362: 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"); 800a364: b672 cpsid i } 800a366: bf00 nop __disable_irq(); for (uint16_t i = 0; i < len; i++) { 800a368: 2300 movs r3, #0 800a36a: 81fb strh r3, [r7, #14] 800a36c: e045 b.n 800a3fa // Если буфер полон, перезаписываем старые данные if (debug_buffer.count >= DEBUG_BUFFER_SIZE) { 800a36e: 4b28 ldr r3, [pc, #160] @ (800a410 ) 800a370: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a374: b29b uxth r3, r3 800a376: f5b3 6f80 cmp.w r3, #1024 @ 0x400 800a37a: d318 bcc.n 800a3ae debug_buffer.read_index = (debug_buffer.read_index + 1) % DEBUG_BUFFER_SIZE; 800a37c: 4b24 ldr r3, [pc, #144] @ (800a410 ) 800a37e: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a382: b29b uxth r3, r3 800a384: 3301 adds r3, #1 800a386: 425a negs r2, r3 800a388: f3c3 0309 ubfx r3, r3, #0, #10 800a38c: f3c2 0209 ubfx r2, r2, #0, #10 800a390: bf58 it pl 800a392: 4253 negpl r3, r2 800a394: b29a uxth r2, r3 800a396: 4b1e ldr r3, [pc, #120] @ (800a410 ) 800a398: f8a3 2402 strh.w r2, [r3, #1026] @ 0x402 debug_buffer.count--; 800a39c: 4b1c ldr r3, [pc, #112] @ (800a410 ) 800a39e: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a3a2: b29b uxth r3, r3 800a3a4: 3b01 subs r3, #1 800a3a6: b29a uxth r2, r3 800a3a8: 4b19 ldr r3, [pc, #100] @ (800a410 ) 800a3aa: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 } debug_buffer.buffer[debug_buffer.write_index] = data[i]; 800a3ae: 89fb ldrh r3, [r7, #14] 800a3b0: 687a ldr r2, [r7, #4] 800a3b2: 4413 add r3, r2 800a3b4: 4a16 ldr r2, [pc, #88] @ (800a410 ) 800a3b6: f8b2 2400 ldrh.w r2, [r2, #1024] @ 0x400 800a3ba: b292 uxth r2, r2 800a3bc: 7819 ldrb r1, [r3, #0] 800a3be: 4b14 ldr r3, [pc, #80] @ (800a410 ) 800a3c0: 5499 strb r1, [r3, r2] debug_buffer.write_index = (debug_buffer.write_index + 1) % DEBUG_BUFFER_SIZE; 800a3c2: 4b13 ldr r3, [pc, #76] @ (800a410 ) 800a3c4: f8b3 3400 ldrh.w r3, [r3, #1024] @ 0x400 800a3c8: b29b uxth r3, r3 800a3ca: 3301 adds r3, #1 800a3cc: 425a negs r2, r3 800a3ce: f3c3 0309 ubfx r3, r3, #0, #10 800a3d2: f3c2 0209 ubfx r2, r2, #0, #10 800a3d6: bf58 it pl 800a3d8: 4253 negpl r3, r2 800a3da: b29a uxth r2, r3 800a3dc: 4b0c ldr r3, [pc, #48] @ (800a410 ) 800a3de: f8a3 2400 strh.w r2, [r3, #1024] @ 0x400 debug_buffer.count++; 800a3e2: 4b0b ldr r3, [pc, #44] @ (800a410 ) 800a3e4: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a3e8: b29b uxth r3, r3 800a3ea: 3301 adds r3, #1 800a3ec: b29a uxth r2, r3 800a3ee: 4b08 ldr r3, [pc, #32] @ (800a410 ) 800a3f0: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 for (uint16_t i = 0; i < len; i++) { 800a3f4: 89fb ldrh r3, [r7, #14] 800a3f6: 3301 adds r3, #1 800a3f8: 81fb strh r3, [r7, #14] 800a3fa: 89fa ldrh r2, [r7, #14] 800a3fc: 887b ldrh r3, [r7, #2] 800a3fe: 429a cmp r2, r3 800a400: d3b5 bcc.n 800a36e __ASM volatile ("cpsie i" : : : "memory"); 800a402: b662 cpsie i } 800a404: bf00 nop } __enable_irq(); } 800a406: bf00 nop 800a408: 3714 adds r7, #20 800a40a: 46bd mov sp, r7 800a40c: bc80 pop {r7} 800a40e: 4770 bx lr 800a410: 200003ec .word 0x200003ec 0800a414 : // Возвращает количество доступных данных в буфере uint16_t debug_buffer_available(void) { 800a414: b480 push {r7} 800a416: b083 sub sp, #12 800a418: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800a41a: b672 cpsid i } 800a41c: bf00 nop __disable_irq(); uint16_t count = debug_buffer.count; 800a41e: 4b06 ldr r3, [pc, #24] @ (800a438 ) 800a420: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a424: 80fb strh r3, [r7, #6] __ASM volatile ("cpsie i" : : : "memory"); 800a426: b662 cpsie i } 800a428: bf00 nop __enable_irq(); return count; 800a42a: 88fb ldrh r3, [r7, #6] } 800a42c: 4618 mov r0, r3 800a42e: 370c adds r7, #12 800a430: 46bd mov sp, r7 800a432: bc80 pop {r7} 800a434: 4770 bx lr 800a436: bf00 nop 800a438: 200003ec .word 0x200003ec 0800a43c : // Отправляет один пакет данных из буфера через SC_SendPacket (не более 250 байт) void debug_buffer_send(void) { 800a43c: b580 push {r7, lr} 800a43e: b082 sub sp, #8 800a440: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800a442: b672 cpsid i } 800a444: bf00 nop __disable_irq(); // Если буфер пуст, ничего не делаем if (debug_buffer.count == 0) { 800a446: 4b2d ldr r3, [pc, #180] @ (800a4fc ) 800a448: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a44c: b29b uxth r3, r3 800a44e: 2b00 cmp r3, #0 800a450: d102 bne.n 800a458 __ASM volatile ("cpsie i" : : : "memory"); 800a452: b662 cpsie i } 800a454: bf00 nop __enable_irq(); return; 800a456: e04e b.n 800a4f6 } // Определяем сколько байт можно отправить (не более 250) uint16_t bytes_to_send = debug_buffer.count; 800a458: 4b28 ldr r3, [pc, #160] @ (800a4fc ) 800a45a: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a45e: 80fb strh r3, [r7, #6] if (bytes_to_send > DEBUG_BUFFER_MAX_COUNT) { 800a460: 88fb ldrh r3, [r7, #6] 800a462: 2b80 cmp r3, #128 @ 0x80 800a464: d901 bls.n 800a46a bytes_to_send = DEBUG_BUFFER_MAX_COUNT; 800a466: 2380 movs r3, #128 @ 0x80 800a468: 80fb strh r3, [r7, #6] } // Вычисляем сколько байт до конца буфера uint16_t bytes_to_end = DEBUG_BUFFER_SIZE - debug_buffer.read_index; 800a46a: 4b24 ldr r3, [pc, #144] @ (800a4fc ) 800a46c: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a470: b29b uxth r3, r3 800a472: f5c3 6380 rsb r3, r3, #1024 @ 0x400 800a476: 80bb strh r3, [r7, #4] // Отправляем только непрерывный блок (до конца буфера или до bytes_to_send) if (bytes_to_send > bytes_to_end) { 800a478: 88fa ldrh r2, [r7, #6] 800a47a: 88bb ldrh r3, [r7, #4] 800a47c: 429a cmp r2, r3 800a47e: d901 bls.n 800a484 bytes_to_send = bytes_to_end; 800a480: 88bb ldrh r3, [r7, #4] 800a482: 80fb strh r3, [r7, #6] } // Отправляем данные напрямую из буфера if(bytes_to_send == debug_buffer.count){ 800a484: 4b1d ldr r3, [pc, #116] @ (800a4fc ) 800a486: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a48a: b29b uxth r3, r3 800a48c: 88fa ldrh r2, [r7, #6] 800a48e: 429a cmp r2, r3 800a490: d10c bne.n 800a4ac SC_SendPacket(&debug_buffer.buffer[debug_buffer.read_index], bytes_to_send, CMD_GET_LOG); 800a492: 4b1a ldr r3, [pc, #104] @ (800a4fc ) 800a494: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a498: b29b uxth r3, r3 800a49a: 461a mov r2, r3 800a49c: 4b17 ldr r3, [pc, #92] @ (800a4fc ) 800a49e: 4413 add r3, r2 800a4a0: 88f9 ldrh r1, [r7, #6] 800a4a2: 2250 movs r2, #80 @ 0x50 800a4a4: 4618 mov r0, r3 800a4a6: f002 fc43 bl 800cd30 800a4aa: e00b b.n 800a4c4 }else{ SC_SendPacket(&debug_buffer.buffer[debug_buffer.read_index], bytes_to_send, CMD_GET_LOG_CONTINUE); 800a4ac: 4b13 ldr r3, [pc, #76] @ (800a4fc ) 800a4ae: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a4b2: b29b uxth r3, r3 800a4b4: 461a mov r2, r3 800a4b6: 4b11 ldr r3, [pc, #68] @ (800a4fc ) 800a4b8: 4413 add r3, r2 800a4ba: 88f9 ldrh r1, [r7, #6] 800a4bc: 2251 movs r2, #81 @ 0x51 800a4be: 4618 mov r0, r3 800a4c0: f002 fc36 bl 800cd30 } debug_buffer.read_index = (debug_buffer.read_index + bytes_to_send) % DEBUG_BUFFER_SIZE; 800a4c4: 4b0d ldr r3, [pc, #52] @ (800a4fc ) 800a4c6: f8b3 3402 ldrh.w r3, [r3, #1026] @ 0x402 800a4ca: b29a uxth r2, r3 800a4cc: 88fb ldrh r3, [r7, #6] 800a4ce: 4413 add r3, r2 800a4d0: b29b uxth r3, r3 800a4d2: f3c3 0309 ubfx r3, r3, #0, #10 800a4d6: b29a uxth r2, r3 800a4d8: 4b08 ldr r3, [pc, #32] @ (800a4fc ) 800a4da: f8a3 2402 strh.w r2, [r3, #1026] @ 0x402 debug_buffer.count -= bytes_to_send; 800a4de: 4b07 ldr r3, [pc, #28] @ (800a4fc ) 800a4e0: f8b3 3404 ldrh.w r3, [r3, #1028] @ 0x404 800a4e4: b29a uxth r2, r3 800a4e6: 88fb ldrh r3, [r7, #6] 800a4e8: 1ad3 subs r3, r2, r3 800a4ea: b29a uxth r2, r3 800a4ec: 4b03 ldr r3, [pc, #12] @ (800a4fc ) 800a4ee: f8a3 2404 strh.w r2, [r3, #1028] @ 0x404 __ASM volatile ("cpsie i" : : : "memory"); 800a4f2: b662 cpsie i } 800a4f4: bf00 nop __enable_irq(); } 800a4f6: 3708 adds r7, #8 800a4f8: 46bd mov sp, r7 800a4fa: bd80 pop {r7, pc} 800a4fc: 200003ec .word 0x200003ec 0800a500 : #define LOG_BUFFER_SIZE 128 uint8_t log_buffer[LOG_BUFFER_SIZE]; // Кастомный printf с приоритетом лога int log_printf(LogLevel_t level, const char *format, ...) { 800a500: b40e push {r1, r2, r3} 800a502: b580 push {r7, lr} 800a504: b085 sub sp, #20 800a506: af00 add r7, sp, #0 800a508: 4603 mov r3, r0 800a50a: 71fb strb r3, [r7, #7] va_list args; int result; // Добавляем приоритет первым байтом log_buffer[0] = (uint8_t)level; 800a50c: 4a15 ldr r2, [pc, #84] @ (800a564 ) 800a50e: 79fb ldrb r3, [r7, #7] 800a510: 7013 strb r3, [r2, #0] // Форматируем строку начиная со второго байта va_start(args, format); 800a512: f107 0320 add.w r3, r7, #32 800a516: 60bb str r3, [r7, #8] result = vsnprintf((char*)&log_buffer[1], LOG_BUFFER_SIZE - 2, format, args); 800a518: 68bb ldr r3, [r7, #8] 800a51a: 69fa ldr r2, [r7, #28] 800a51c: 217e movs r1, #126 @ 0x7e 800a51e: 4812 ldr r0, [pc, #72] @ (800a568 ) 800a520: f00a fb78 bl 8014c14 800a524: 60f8 str r0, [r7, #12] va_end(args); // Проверяем, не переполнился ли буфер if (result < 0) { 800a526: 68fb ldr r3, [r7, #12] 800a528: 2b00 cmp r3, #0 800a52a: da01 bge.n 800a530 return result; 800a52c: 68fb ldr r3, [r7, #12] 800a52e: e012 b.n 800a556 } // Ограничиваем размер, чтобы оставить место для нуль-терминатора if (result >= (LOG_BUFFER_SIZE - 2)) { 800a530: 68fb ldr r3, [r7, #12] 800a532: 2b7d cmp r3, #125 @ 0x7d 800a534: dd01 ble.n 800a53a result = LOG_BUFFER_SIZE - 2; 800a536: 237e movs r3, #126 @ 0x7e 800a538: 60fb str r3, [r7, #12] } // Добавляем нуль-терминатор в конец log_buffer[result + 1] = '\0'; 800a53a: 68fb ldr r3, [r7, #12] 800a53c: 3301 adds r3, #1 800a53e: 4a09 ldr r2, [pc, #36] @ (800a564 ) 800a540: 2100 movs r1, #0 800a542: 54d1 strb r1, [r2, r3] // Отправляем в буфер (приоритет + строка + нуль-терминатор) debug_buffer_add(log_buffer, result + 2); 800a544: 68fb ldr r3, [r7, #12] 800a546: b29b uxth r3, r3 800a548: 3302 adds r3, #2 800a54a: b29b uxth r3, r3 800a54c: 4619 mov r1, r3 800a54e: 4805 ldr r0, [pc, #20] @ (800a564 ) 800a550: f7ff ff02 bl 800a358 return result; 800a554: 68fb ldr r3, [r7, #12] } 800a556: 4618 mov r0, r3 800a558: 3714 adds r7, #20 800a55a: 46bd mov sp, r7 800a55c: e8bd 4080 ldmia.w sp!, {r7, lr} 800a560: b003 add sp, #12 800a562: 4770 bx lr 800a564: 200007f4 .word 0x200007f4 800a568: 200007f5 .word 0x200007f5 0800a56c : /** * Enable DMA controller clock */ void MX_DMA_Init(void) { 800a56c: b580 push {r7, lr} 800a56e: b082 sub sp, #8 800a570: af00 add r7, sp, #0 /* DMA controller clock enable */ __HAL_RCC_DMA1_CLK_ENABLE(); 800a572: 4b1c ldr r3, [pc, #112] @ (800a5e4 ) 800a574: 695b ldr r3, [r3, #20] 800a576: 4a1b ldr r2, [pc, #108] @ (800a5e4 ) 800a578: f043 0301 orr.w r3, r3, #1 800a57c: 6153 str r3, [r2, #20] 800a57e: 4b19 ldr r3, [pc, #100] @ (800a5e4 ) 800a580: 695b ldr r3, [r3, #20] 800a582: f003 0301 and.w r3, r3, #1 800a586: 607b str r3, [r7, #4] 800a588: 687b ldr r3, [r7, #4] /* DMA interrupt init */ /* DMA1_Channel1_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 1, 0); 800a58a: 2200 movs r2, #0 800a58c: 2101 movs r1, #1 800a58e: 200b movs r0, #11 800a590: f005 fbcd bl 800fd2e HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn); 800a594: 200b movs r0, #11 800a596: f005 fbe6 bl 800fd66 /* DMA1_Channel2_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 4, 0); 800a59a: 2200 movs r2, #0 800a59c: 2104 movs r1, #4 800a59e: 200c movs r0, #12 800a5a0: f005 fbc5 bl 800fd2e HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn); 800a5a4: 200c movs r0, #12 800a5a6: f005 fbde bl 800fd66 /* DMA1_Channel3_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 1, 0); 800a5aa: 2200 movs r2, #0 800a5ac: 2101 movs r1, #1 800a5ae: 200d movs r0, #13 800a5b0: f005 fbbd bl 800fd2e HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn); 800a5b4: 200d movs r0, #13 800a5b6: f005 fbd6 bl 800fd66 /* DMA1_Channel6_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel6_IRQn, 1, 0); 800a5ba: 2200 movs r2, #0 800a5bc: 2101 movs r1, #1 800a5be: 2010 movs r0, #16 800a5c0: f005 fbb5 bl 800fd2e HAL_NVIC_EnableIRQ(DMA1_Channel6_IRQn); 800a5c4: 2010 movs r0, #16 800a5c6: f005 fbce bl 800fd66 /* DMA1_Channel7_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Channel7_IRQn, 4, 0); 800a5ca: 2200 movs r2, #0 800a5cc: 2104 movs r1, #4 800a5ce: 2011 movs r0, #17 800a5d0: f005 fbad bl 800fd2e HAL_NVIC_EnableIRQ(DMA1_Channel7_IRQn); 800a5d4: 2011 movs r0, #17 800a5d6: f005 fbc6 bl 800fd66 } 800a5da: bf00 nop 800a5dc: 3708 adds r7, #8 800a5de: 46bd mov sp, r7 800a5e0: bd80 pop {r7, pc} 800a5e2: bf00 nop 800a5e4: 40021000 .word 0x40021000 0800a5e8 : * EXTI PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA */ void MX_GPIO_Init(void) { 800a5e8: b580 push {r7, lr} 800a5ea: b08a sub sp, #40 @ 0x28 800a5ec: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; 800a5ee: f107 0314 add.w r3, r7, #20 800a5f2: 2200 movs r2, #0 800a5f4: 601a str r2, [r3, #0] 800a5f6: 605a str r2, [r3, #4] 800a5f8: 609a str r2, [r3, #8] 800a5fa: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); 800a5fc: 4b93 ldr r3, [pc, #588] @ (800a84c ) 800a5fe: 699b ldr r3, [r3, #24] 800a600: 4a92 ldr r2, [pc, #584] @ (800a84c ) 800a602: f043 0310 orr.w r3, r3, #16 800a606: 6193 str r3, [r2, #24] 800a608: 4b90 ldr r3, [pc, #576] @ (800a84c ) 800a60a: 699b ldr r3, [r3, #24] 800a60c: f003 0310 and.w r3, r3, #16 800a610: 613b str r3, [r7, #16] 800a612: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); 800a614: 4b8d ldr r3, [pc, #564] @ (800a84c ) 800a616: 699b ldr r3, [r3, #24] 800a618: 4a8c ldr r2, [pc, #560] @ (800a84c ) 800a61a: f043 0304 orr.w r3, r3, #4 800a61e: 6193 str r3, [r2, #24] 800a620: 4b8a ldr r3, [pc, #552] @ (800a84c ) 800a622: 699b ldr r3, [r3, #24] 800a624: f003 0304 and.w r3, r3, #4 800a628: 60fb str r3, [r7, #12] 800a62a: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOB_CLK_ENABLE(); 800a62c: 4b87 ldr r3, [pc, #540] @ (800a84c ) 800a62e: 699b ldr r3, [r3, #24] 800a630: 4a86 ldr r2, [pc, #536] @ (800a84c ) 800a632: f043 0308 orr.w r3, r3, #8 800a636: 6193 str r3, [r2, #24] 800a638: 4b84 ldr r3, [pc, #528] @ (800a84c ) 800a63a: 699b ldr r3, [r3, #24] 800a63c: f003 0308 and.w r3, r3, #8 800a640: 60bb str r3, [r7, #8] 800a642: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOE_CLK_ENABLE(); 800a644: 4b81 ldr r3, [pc, #516] @ (800a84c ) 800a646: 699b ldr r3, [r3, #24] 800a648: 4a80 ldr r2, [pc, #512] @ (800a84c ) 800a64a: f043 0340 orr.w r3, r3, #64 @ 0x40 800a64e: 6193 str r3, [r2, #24] 800a650: 4b7e ldr r3, [pc, #504] @ (800a84c ) 800a652: 699b ldr r3, [r3, #24] 800a654: f003 0340 and.w r3, r3, #64 @ 0x40 800a658: 607b str r3, [r7, #4] 800a65a: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOD_CLK_ENABLE(); 800a65c: 4b7b ldr r3, [pc, #492] @ (800a84c ) 800a65e: 699b ldr r3, [r3, #24] 800a660: 4a7a ldr r2, [pc, #488] @ (800a84c ) 800a662: f043 0320 orr.w r3, r3, #32 800a666: 6193 str r3, [r2, #24] 800a668: 4b78 ldr r3, [pc, #480] @ (800a84c ) 800a66a: 699b ldr r3, [r3, #24] 800a66c: f003 0320 and.w r3, r3, #32 800a670: 603b str r3, [r7, #0] 800a672: 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); 800a674: 2200 movs r2, #0 800a676: 213c movs r1, #60 @ 0x3c 800a678: 4875 ldr r0, [pc, #468] @ (800a850 ) 800a67a: f006 f9d4 bl 8010a26 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, DBG2_Pin|DBG3_Pin|RELAY_CC_Pin, GPIO_PIN_RESET); 800a67e: 2200 movs r2, #0 800a680: f248 0160 movw r1, #32864 @ 0x8060 800a684: 4873 ldr r0, [pc, #460] @ (800a854 ) 800a686: f006 f9ce bl 8010a26 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOE, RELAY1_Pin|RELAY2_Pin|RELAY3_Pin|RELAY4_Pin 800a68a: 2200 movs r2, #0 800a68c: f44f 51f8 mov.w r1, #7936 @ 0x1f00 800a690: 4871 ldr r0, [pc, #452] @ (800a858 ) 800a692: f006 f9c8 bl 8010a26 |RELAY5_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, DBG5_Pin|DBG4_Pin|EE_WP_Pin, GPIO_PIN_RESET); 800a696: 2200 movs r2, #0 800a698: f44f 6148 mov.w r1, #3200 @ 0xc80 800a69c: 486f ldr r0, [pc, #444] @ (800a85c ) 800a69e: f006 f9c2 bl 8010a26 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOD, RELAY_DC_Pin|USART2_DIR_Pin, GPIO_PIN_RESET); 800a6a2: 2200 movs r2, #0 800a6a4: 2118 movs r1, #24 800a6a6: 486e ldr r0, [pc, #440] @ (800a860 ) 800a6a8: f006 f9bd bl 8010a26 /*Configure GPIO pin : DBG1_Pin */ GPIO_InitStruct.Pin = DBG1_Pin; 800a6ac: 2304 movs r3, #4 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_HIGH; 800a6b8: 2303 movs r3, #3 800a6ba: 623b str r3, [r7, #32] HAL_GPIO_Init(DBG1_GPIO_Port, &GPIO_InitStruct); 800a6bc: f107 0314 add.w r3, r7, #20 800a6c0: 4619 mov r1, r3 800a6c2: 4863 ldr r0, [pc, #396] @ (800a850 ) 800a6c4: f006 f814 bl 80106f0 /*Configure GPIO pins : RELAY_CP_Pin LOCK_A_Pin LOCK_B_Pin */ GPIO_InitStruct.Pin = RELAY_CP_Pin|LOCK_A_Pin|LOCK_B_Pin; 800a6c8: 2338 movs r3, #56 @ 0x38 800a6ca: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a6cc: 2301 movs r3, #1 800a6ce: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6d0: 2300 movs r3, #0 800a6d2: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a6d4: 2302 movs r3, #2 800a6d6: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800a6d8: f107 0314 add.w r3, r7, #20 800a6dc: 4619 mov r1, r3 800a6de: 485c ldr r0, [pc, #368] @ (800a850 ) 800a6e0: f006 f806 bl 80106f0 /*Configure GPIO pin : IN_SW0_Pin */ GPIO_InitStruct.Pin = IN_SW0_Pin; 800a6e4: 2302 movs r3, #2 800a6e6: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a6e8: 2300 movs r3, #0 800a6ea: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a6ec: 2300 movs r3, #0 800a6ee: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_SW0_GPIO_Port, &GPIO_InitStruct); 800a6f0: f107 0314 add.w r3, r7, #20 800a6f4: 4619 mov r1, r3 800a6f6: 4857 ldr r0, [pc, #348] @ (800a854 ) 800a6f8: f005 fffa bl 80106f0 /*Configure GPIO pin : IN_SW1_Pin */ GPIO_InitStruct.Pin = IN_SW1_Pin; 800a6fc: 2304 movs r3, #4 800a6fe: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a700: 2300 movs r3, #0 800a702: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_PULLDOWN; 800a704: 2302 movs r3, #2 800a706: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_SW1_GPIO_Port, &GPIO_InitStruct); 800a708: f107 0314 add.w r3, r7, #20 800a70c: 4619 mov r1, r3 800a70e: 4851 ldr r0, [pc, #324] @ (800a854 ) 800a710: f005 ffee bl 80106f0 /*Configure GPIO pins : DBG2_Pin DBG3_Pin */ GPIO_InitStruct.Pin = DBG2_Pin|DBG3_Pin; 800a714: 2360 movs r3, #96 @ 0x60 800a716: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a718: 2301 movs r3, #1 800a71a: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a71c: 2300 movs r3, #0 800a71e: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a720: 2303 movs r3, #3 800a722: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800a724: f107 0314 add.w r3, r7, #20 800a728: 4619 mov r1, r3 800a72a: 484a ldr r0, [pc, #296] @ (800a854 ) 800a72c: f005 ffe0 bl 80106f0 /*Configure GPIO pins : IN0_Pin AC_OK_Pin ISO_IN_Pin */ GPIO_InitStruct.Pin = IN0_Pin|AC_OK_Pin|ISO_IN_Pin; 800a730: f244 0382 movw r3, #16514 @ 0x4082 800a734: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a736: 2300 movs r3, #0 800a738: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a73a: 2300 movs r3, #0 800a73c: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 800a73e: f107 0314 add.w r3, r7, #20 800a742: 4619 mov r1, r3 800a744: 4844 ldr r0, [pc, #272] @ (800a858 ) 800a746: f005 ffd3 bl 80106f0 /*Configure GPIO pins : RELAY1_Pin RELAY2_Pin RELAY3_Pin RELAY4_Pin RELAY5_Pin */ GPIO_InitStruct.Pin = RELAY1_Pin|RELAY2_Pin|RELAY3_Pin|RELAY4_Pin 800a74a: f44f 53f8 mov.w r3, #7936 @ 0x1f00 800a74e: 617b str r3, [r7, #20] |RELAY5_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a750: 2301 movs r3, #1 800a752: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a754: 2300 movs r3, #0 800a756: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a758: 2302 movs r3, #2 800a75a: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 800a75c: f107 0314 add.w r3, r7, #20 800a760: 4619 mov r1, r3 800a762: 483d ldr r0, [pc, #244] @ (800a858 ) 800a764: f005 ffc4 bl 80106f0 /*Configure GPIO pins : DBG5_Pin DBG4_Pin */ GPIO_InitStruct.Pin = DBG5_Pin|DBG4_Pin; 800a768: f44f 6340 mov.w r3, #3072 @ 0xc00 800a76c: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a76e: 2301 movs r3, #1 800a770: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a772: 2300 movs r3, #0 800a774: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a776: 2303 movs r3, #3 800a778: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a77a: f107 0314 add.w r3, r7, #20 800a77e: 4619 mov r1, r3 800a780: 4836 ldr r0, [pc, #216] @ (800a85c ) 800a782: f005 ffb5 bl 80106f0 /*Configure GPIO pin : RELAY_CC_Pin */ GPIO_InitStruct.Pin = RELAY_CC_Pin; 800a786: f44f 4300 mov.w r3, #32768 @ 0x8000 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(RELAY_CC_GPIO_Port, &GPIO_InitStruct); 800a798: f107 0314 add.w r3, r7, #20 800a79c: 4619 mov r1, r3 800a79e: 482d ldr r0, [pc, #180] @ (800a854 ) 800a7a0: f005 ffa6 bl 80106f0 /*Configure GPIO pins : RELAY_DC_Pin USART2_DIR_Pin */ GPIO_InitStruct.Pin = RELAY_DC_Pin|USART2_DIR_Pin; 800a7a4: 2318 movs r3, #24 800a7a6: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a7a8: 2301 movs r3, #1 800a7aa: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7ac: 2300 movs r3, #0 800a7ae: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a7b0: 2302 movs r3, #2 800a7b2: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800a7b4: f107 0314 add.w r3, r7, #20 800a7b8: 4619 mov r1, r3 800a7ba: 4829 ldr r0, [pc, #164] @ (800a860 ) 800a7bc: f005 ff98 bl 80106f0 /*Configure GPIO pin : IN_ESTOP_Pin */ GPIO_InitStruct.Pin = IN_ESTOP_Pin; 800a7c0: 2380 movs r3, #128 @ 0x80 800a7c2: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a7c4: 2300 movs r3, #0 800a7c6: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7c8: 2300 movs r3, #0 800a7ca: 61fb str r3, [r7, #28] HAL_GPIO_Init(IN_ESTOP_GPIO_Port, &GPIO_InitStruct); 800a7cc: f107 0314 add.w r3, r7, #20 800a7d0: 4619 mov r1, r3 800a7d2: 4823 ldr r0, [pc, #140] @ (800a860 ) 800a7d4: f005 ff8c bl 80106f0 /*Configure GPIO pins : IN_FB2_Pin IN_FB1_Pin */ GPIO_InitStruct.Pin = IN_FB2_Pin|IN_FB1_Pin; 800a7d8: 2318 movs r3, #24 800a7da: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800a7dc: 2300 movs r3, #0 800a7de: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7e0: 2300 movs r3, #0 800a7e2: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a7e4: f107 0314 add.w r3, r7, #20 800a7e8: 4619 mov r1, r3 800a7ea: 481c ldr r0, [pc, #112] @ (800a85c ) 800a7ec: f005 ff80 bl 80106f0 /*Configure GPIO pin : EE_WP_Pin */ GPIO_InitStruct.Pin = EE_WP_Pin; 800a7f0: 2380 movs r3, #128 @ 0x80 800a7f2: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800a7f4: 2301 movs r3, #1 800a7f6: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; 800a7f8: 2300 movs r3, #0 800a7fa: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800a7fc: 2302 movs r3, #2 800a7fe: 623b str r3, [r7, #32] HAL_GPIO_Init(EE_WP_GPIO_Port, &GPIO_InitStruct); 800a800: f107 0314 add.w r3, r7, #20 800a804: 4619 mov r1, r3 800a806: 4815 ldr r0, [pc, #84] @ (800a85c ) 800a808: f005 ff72 bl 80106f0 /*Configure GPIO pins : PB8 PB9 */ GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9; 800a80c: f44f 7340 mov.w r3, #768 @ 0x300 800a810: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; 800a812: 2312 movs r3, #18 800a814: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800a816: 2303 movs r3, #3 800a818: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800a81a: f107 0314 add.w r3, r7, #20 800a81e: 4619 mov r1, r3 800a820: 480e ldr r0, [pc, #56] @ (800a85c ) 800a822: f005 ff65 bl 80106f0 /*Configure peripheral I/O remapping */ __HAL_AFIO_REMAP_I2C1_ENABLE(); 800a826: 4b0f ldr r3, [pc, #60] @ (800a864 ) 800a828: 685b ldr r3, [r3, #4] 800a82a: 627b str r3, [r7, #36] @ 0x24 800a82c: 6a7b ldr r3, [r7, #36] @ 0x24 800a82e: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800a832: 627b str r3, [r7, #36] @ 0x24 800a834: 6a7b ldr r3, [r7, #36] @ 0x24 800a836: f043 0302 orr.w r3, r3, #2 800a83a: 627b str r3, [r7, #36] @ 0x24 800a83c: 4a09 ldr r2, [pc, #36] @ (800a864 ) 800a83e: 6a7b ldr r3, [r7, #36] @ 0x24 800a840: 6053 str r3, [r2, #4] } 800a842: bf00 nop 800a844: 3728 adds r7, #40 @ 0x28 800a846: 46bd mov sp, r7 800a848: bd80 pop {r7, pc} 800a84a: bf00 nop 800a84c: 40021000 .word 0x40021000 800a850: 40011000 .word 0x40011000 800a854: 40010800 .word 0x40010800 800a858: 40011800 .word 0x40011800 800a85c: 40010c00 .word 0x40010c00 800a860: 40011400 .word 0x40011400 800a864: 40010000 .word 0x40010000 0800a868 <__NVIC_SystemReset>: /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { 800a868: b480 push {r7} 800a86a: 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"); 800a86c: f3bf 8f4f dsb sy } 800a870: 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) | 800a872: 4b06 ldr r3, [pc, #24] @ (800a88c <__NVIC_SystemReset+0x24>) 800a874: 68db ldr r3, [r3, #12] 800a876: f403 62e0 and.w r2, r3, #1792 @ 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800a87a: 4904 ldr r1, [pc, #16] @ (800a88c <__NVIC_SystemReset+0x24>) 800a87c: 4b04 ldr r3, [pc, #16] @ (800a890 <__NVIC_SystemReset+0x28>) 800a87e: 4313 orrs r3, r2 800a880: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); 800a882: f3bf 8f4f dsb sy } 800a886: bf00 nop SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); 800a888: bf00 nop 800a88a: e7fd b.n 800a888 <__NVIC_SystemReset+0x20> 800a88c: e000ed00 .word 0xe000ed00 800a890: 05fa0004 .word 0x05fa0004 0800a894 : * bootloader before starting this program. Unfortunately, function * SystemInit() overwrites this change again. * @return none. */ static void VectorBase_Config(void) { 800a894: b480 push {r7} 800a896: 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]; 800a898: 4b03 ldr r3, [pc, #12] @ (800a8a8 ) 800a89a: 4a04 ldr r2, [pc, #16] @ (800a8ac ) 800a89c: 609a str r2, [r3, #8] } 800a89e: bf00 nop 800a8a0: 46bd mov sp, r7 800a8a2: bc80 pop {r7} 800a8a4: 4770 bx lr 800a8a6: bf00 nop 800a8a8: e000ed00 .word 0xe000ed00 800a8ac: 08008000 .word 0x08008000 0800a8b0 : uint8_t ED_TraceWarning(uint8_t flag, uint8_t id){ 800a8b0: b480 push {r7} 800a8b2: b085 sub sp, #20 800a8b4: af00 add r7, sp, #0 800a8b6: 4603 mov r3, r0 800a8b8: 460a mov r2, r1 800a8ba: 71fb strb r3, [r7, #7] 800a8bc: 4613 mov r3, r2 800a8be: 71bb strb r3, [r7, #6] static uint8_t memory[32]; if(id > 31) return 0; 800a8c0: 79bb ldrb r3, [r7, #6] 800a8c2: 2b1f cmp r3, #31 800a8c4: d901 bls.n 800a8ca 800a8c6: 2300 movs r3, #0 800a8c8: e00e b.n 800a8e8 uint8_t result = 0; 800a8ca: 2300 movs r3, #0 800a8cc: 73fb strb r3, [r7, #15] if(memory[id] != flag){ 800a8ce: 79bb ldrb r3, [r7, #6] 800a8d0: 4a08 ldr r2, [pc, #32] @ (800a8f4 ) 800a8d2: 5cd3 ldrb r3, [r2, r3] 800a8d4: 79fa ldrb r2, [r7, #7] 800a8d6: 429a cmp r2, r3 800a8d8: d001 beq.n 800a8de result = 1; 800a8da: 2301 movs r3, #1 800a8dc: 73fb strb r3, [r7, #15] } memory[id] = flag; 800a8de: 79bb ldrb r3, [r7, #6] 800a8e0: 4904 ldr r1, [pc, #16] @ (800a8f4 ) 800a8e2: 79fa ldrb r2, [r7, #7] 800a8e4: 54ca strb r2, [r1, r3] return result; 800a8e6: 7bfb ldrb r3, [r7, #15] } 800a8e8: 4618 mov r0, r3 800a8ea: 3714 adds r7, #20 800a8ec: 46bd mov sp, r7 800a8ee: bc80 pop {r7} 800a8f0: 4770 bx lr 800a8f2: bf00 nop 800a8f4: 20000874 .word 0x20000874 0800a8f8 : void ED_Delay(uint32_t Delay) { 800a8f8: b580 push {r7, lr} 800a8fa: b084 sub sp, #16 800a8fc: af00 add r7, sp, #0 800a8fe: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 800a900: f003 fcfa bl 800e2f8 800a904: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 800a906: 687b ldr r3, [r7, #4] 800a908: 60fb str r3, [r7, #12] if (wait < HAL_MAX_DELAY) 800a90a: 68fb ldr r3, [r7, #12] 800a90c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 800a910: d012 beq.n 800a938 { wait += (uint32_t)(uwTickFreq); 800a912: 4b10 ldr r3, [pc, #64] @ (800a954 ) 800a914: 781b ldrb r3, [r3, #0] 800a916: 461a mov r2, r3 800a918: 68fb ldr r3, [r7, #12] 800a91a: 4413 add r3, r2 800a91c: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait){ 800a91e: e00b b.n 800a938 CCS_SerialLoop(); 800a920: f001 fa54 bl 800bdcc StopButtonControl(); 800a924: f000 f818 bl 800a958 CP_Loop(); 800a928: f7ff fc78 bl 800a21c CONN_Task(); 800a92c: f7ff faa8 bl 8009e80 LED_Task(); 800a930: f001 f814 bl 800b95c SC_Task(); 800a934: f002 f8a2 bl 800ca7c while ((HAL_GetTick() - tickstart) < wait){ 800a938: f003 fcde bl 800e2f8 800a93c: 4602 mov r2, r0 800a93e: 68bb ldr r3, [r7, #8] 800a940: 1ad3 subs r3, r2, r3 800a942: 68fa ldr r2, [r7, #12] 800a944: 429a cmp r2, r3 800a946: d8eb bhi.n 800a920 } } 800a948: bf00 nop 800a94a: bf00 nop 800a94c: 3710 adds r7, #16 800a94e: 46bd mov sp, r7 800a950: bd80 pop {r7, pc} 800a952: bf00 nop 800a954: 2000008c .word 0x2000008c 0800a958 : void StopButtonControl(){ 800a958: b580 push {r7, lr} 800a95a: b082 sub sp, #8 800a95c: af00 add r7, sp, #0 static uint32_t tick; static uint32_t hold_time; static uint8_t stop_btn_fault = 1; uint32_t now = HAL_GetTick(); 800a95e: f003 fccb bl 800e2f8 800a962: 6078 str r0, [r7, #4] /* Run no faster than once per 10 ms. */ if((now - tick) < 10){ 800a964: 4b2a ldr r3, [pc, #168] @ (800aa10 ) 800a966: 681b ldr r3, [r3, #0] 800a968: 687a ldr r2, [r7, #4] 800a96a: 1ad3 subs r3, r2, r3 800a96c: 2b09 cmp r3, #9 800a96e: d949 bls.n 800aa04 return; } tick = now; 800a970: 4a27 ldr r2, [pc, #156] @ (800aa10 ) 800a972: 687b ldr r3, [r7, #4] 800a974: 6013 str r3, [r2, #0] uint8_t pressed = !IN_ReadInput(IN_ESTOP); 800a976: 2003 movs r0, #3 800a978: f7fe ff9e bl 80098b8 800a97c: 4603 mov r3, r0 800a97e: 2b00 cmp r3, #0 800a980: bf0c ite eq 800a982: 2301 moveq r3, #1 800a984: 2300 movne r3, #0 800a986: b2db uxtb r3, r3 800a988: 70fb strb r3, [r7, #3] if(!pressed){ 800a98a: 78fb ldrb r3, [r7, #3] 800a98c: 2b00 cmp r3, #0 800a98e: d102 bne.n 800a996 stop_btn_fault = 0; 800a990: 4b20 ldr r3, [pc, #128] @ (800aa14 ) 800a992: 2200 movs r2, #0 800a994: 701a strb r2, [r3, #0] } if(stop_btn_fault){ 800a996: 4b1f ldr r3, [pc, #124] @ (800aa14 ) 800a998: 781b ldrb r3, [r3, #0] 800a99a: 2b00 cmp r3, #0 800a99c: d134 bne.n 800aa08 return; } if(pressed){ 800a99e: 78fb ldrb r3, [r7, #3] 800a9a0: 2b00 cmp r3, #0 800a9a2: d02b beq.n 800a9fc if(hold_time == 0){ 800a9a4: 4b1c ldr r3, [pc, #112] @ (800aa18 ) 800a9a6: 681b ldr r3, [r3, #0] 800a9a8: 2b00 cmp r3, #0 800a9aa: d102 bne.n 800a9b2 CONN.connControl = CMD_STOP; 800a9ac: 4b1b ldr r3, [pc, #108] @ (800aa1c ) 800a9ae: 2201 movs r2, #1 800a9b0: 701a strb r2, [r3, #0] } hold_time += 10; 800a9b2: 4b19 ldr r3, [pc, #100] @ (800aa18 ) 800a9b4: 681b ldr r3, [r3, #0] 800a9b6: 330a adds r3, #10 800a9b8: 4a17 ldr r2, [pc, #92] @ (800aa18 ) 800a9ba: 6013 str r3, [r2, #0] if(hold_time == 5000){ 800a9bc: 4b16 ldr r3, [pc, #88] @ (800aa18 ) 800a9be: 681b ldr r3, [r3, #0] 800a9c0: f241 3288 movw r2, #5000 @ 0x1388 800a9c4: 4293 cmp r3, r2 800a9c6: d102 bne.n 800a9ce CONN.connControl = CMD_FORCE_UNLOCK; 800a9c8: 4b14 ldr r3, [pc, #80] @ (800aa1c ) 800a9ca: 2203 movs r2, #3 800a9cc: 701a strb r2, [r3, #0] } if(hold_time > 40000){ 800a9ce: 4b12 ldr r3, [pc, #72] @ (800aa18 ) 800a9d0: 681b ldr r3, [r3, #0] 800a9d2: f649 4240 movw r2, #40000 @ 0x9c40 800a9d6: 4293 cmp r3, r2 800a9d8: d917 bls.n 800aa0a SC_SendPacket(NULL, 0, RESP_SUCCESS); 800a9da: 2212 movs r2, #18 800a9dc: 2100 movs r1, #0 800a9de: 2000 movs r0, #0 800a9e0: f002 f9a6 bl 800cd30 while(huart2.gState == HAL_UART_STATE_BUSY_TX); 800a9e4: bf00 nop 800a9e6: 4b0e ldr r3, [pc, #56] @ (800aa20 ) 800a9e8: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800a9ec: b2db uxtb r3, r3 800a9ee: 2b21 cmp r3, #33 @ 0x21 800a9f0: d0f9 beq.n 800a9e6 HAL_Delay(10); 800a9f2: 200a movs r0, #10 800a9f4: f003 fc8a bl 800e30c NVIC_SystemReset(); 800a9f8: f7ff ff36 bl 800a868 <__NVIC_SystemReset> } } else{ hold_time = 0; 800a9fc: 4b06 ldr r3, [pc, #24] @ (800aa18 ) 800a9fe: 2200 movs r2, #0 800aa00: 601a str r2, [r3, #0] 800aa02: e002 b.n 800aa0a return; 800aa04: bf00 nop 800aa06: e000 b.n 800aa0a return; 800aa08: bf00 nop } } 800aa0a: 3708 adds r7, #8 800aa0c: 46bd mov sp, r7 800aa0e: bd80 pop {r7, pc} 800aa10: 20000894 .word 0x20000894 800aa14: 20000008 .word 0x20000008 800aa18: 20000898 .word 0x20000898 800aa1c: 200003b0 .word 0x200003b0 800aa20: 200012f4 .word 0x200012f4 0800aa24 : uint8_t temp0, temp1; static void CAN1_MinimalReInit(void) { 800aa24: b580 push {r7, lr} 800aa26: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan1); 800aa28: 480b ldr r0, [pc, #44] @ (800aa58 ) 800aa2a: f004 fbf3 bl 800f214 MX_CAN1_Init(); 800aa2e: f7ff f887 bl 8009b40 if (HAL_CAN_Start(&hcan1) != HAL_OK) { 800aa32: 4809 ldr r0, [pc, #36] @ (800aa58 ) 800aa34: f004 fbaa bl 800f18c 800aa38: 4603 mov r3, r0 800aa3a: 2b00 cmp r3, #0 800aa3c: d001 beq.n 800aa42 Error_Handler(); 800aa3e: f000 f8f7 bl 800ac30 } if (HAL_CAN_ActivateNotification(&hcan1, CAN_IT_RX_FIFO0_MSG_PENDING) != HAL_OK) { 800aa42: 2102 movs r1, #2 800aa44: 4804 ldr r0, [pc, #16] @ (800aa58 ) 800aa46: f004 fe52 bl 800f6ee 800aa4a: 4603 mov r3, r0 800aa4c: 2b00 cmp r3, #0 800aa4e: d001 beq.n 800aa54 Error_Handler(); 800aa50: f000 f8ee bl 800ac30 } } 800aa54: bf00 nop 800aa56: bd80 pop {r7, pc} 800aa58: 2000035c .word 0x2000035c 0800aa5c
: /** * @brief The application entry point. * @retval int */ int main(void) { 800aa5c: b580 push {r7, lr} 800aa5e: b082 sub sp, #8 800aa60: af02 add r7, sp, #8 /* USER CODE BEGIN 1 */ VectorBase_Config(); 800aa62: f7ff ff17 bl 800a894 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); 800aa66: f003 fbef bl 800e248 /* USER CODE BEGIN Init */ HAL_RCC_DeInit(); 800aa6a: f006 f801 bl 8010a70 /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); 800aa6e: f000 f86f bl 800ab50 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); 800aa72: f7ff fdb9 bl 800a5e8 MX_DMA_Init(); 800aa76: f7ff fd79 bl 800a56c MX_ADC1_Init(); 800aa7a: f7fe fd8d bl 8009598 MX_CAN1_Init(); 800aa7e: f7ff f85f bl 8009b40 MX_CAN2_Init(); 800aa82: f7ff f893 bl 8009bac MX_RTC_Init(); 800aa86: f001 f807 bl 800ba98 MX_TIM4_Init(); 800aa8a: f002 ffe5 bl 800da58 MX_USART2_UART_Init(); 800aa8e: f003 f963 bl 800dd58 MX_CRC_Init(); 800aa92: f7ff fc1d bl 800a2d0 MX_UART5_Init(); 800aa96: f003 f90b bl 800dcb0 MX_USART1_UART_Init(); 800aa9a: f003 f933 bl 800dd04 MX_USART3_UART_Init(); 800aa9e: f003 f985 bl 800ddac MX_TIM3_Init(); 800aaa2: f002 ff4b bl 800d93c /* USER CODE BEGIN 2 */ Init_Peripheral(); 800aaa6: f7fe ff59 bl 800995c LED_Init(); 800aaaa: f000 ff37 bl 800b91c HAL_Delay(300); 800aaae: f44f 7096 mov.w r0, #300 @ 0x12c 800aab2: f003 fc2b bl 800e30c CCS_Init(); 800aab6: f001 fc21 bl 800c2fc SC_Init(); 800aaba: f001 ffb5 bl 800ca28 log_printf(LOG_INFO, "CCS module start\n"); 800aabe: 491f ldr r1, [pc, #124] @ (800ab3c ) 800aac0: 2007 movs r0, #7 800aac2: f7ff fd1d bl 800a500 ReadVersion(); 800aac6: f001 ff8b bl 800c9e0 log_printf(LOG_INFO, "Serial number: %d\n", infoPacket.serialNumber); 800aaca: 4b1d ldr r3, [pc, #116] @ (800ab40 ) 800aacc: 881b ldrh r3, [r3, #0] 800aace: b29b uxth r3, r3 800aad0: 461a mov r2, r3 800aad2: 491c ldr r1, [pc, #112] @ (800ab44 ) 800aad4: 2007 movs r0, #7 800aad6: f7ff fd13 bl 800a500 log_printf(LOG_INFO, "Board revision: %d\n", infoPacket.boardVersion); 800aada: 4b19 ldr r3, [pc, #100] @ (800ab40 ) 800aadc: 789b ldrb r3, [r3, #2] 800aade: 461a mov r2, r3 800aae0: 4919 ldr r1, [pc, #100] @ (800ab48 ) 800aae2: 2007 movs r0, #7 800aae4: f7ff fd0c bl 800a500 log_printf(LOG_INFO, "FW version: %d.%d.%d\n", infoPacket.fw_version_major, infoPacket.fw_version_minor, infoPacket.fw_version_patch); 800aae8: 4b15 ldr r3, [pc, #84] @ (800ab40 ) 800aaea: 889b ldrh r3, [r3, #4] 800aaec: b29b uxth r3, r3 800aaee: 461a mov r2, r3 800aaf0: 4b13 ldr r3, [pc, #76] @ (800ab40 ) 800aaf2: 88db ldrh r3, [r3, #6] 800aaf4: b29b uxth r3, r3 800aaf6: 4619 mov r1, r3 800aaf8: 4b11 ldr r3, [pc, #68] @ (800ab40 ) 800aafa: 891b ldrh r3, [r3, #8] 800aafc: b29b uxth r3, r3 800aafe: 9300 str r3, [sp, #0] 800ab00: 460b mov r3, r1 800ab02: 4912 ldr r1, [pc, #72] @ (800ab4c ) 800ab04: 2007 movs r0, #7 800ab06: f7ff fcfb bl 800a500 CAN1_MinimalReInit(); 800ab0a: f7ff ff8b bl 800aa24 PSU_Init(); 800ab0e: f000 f9e9 bl 800aee4 CONN_Init(); 800ab12: f7ff f95f bl 8009dd4 /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ PSU_ReadWrite(); 800ab16: f000 faf7 bl 800b108 PSU_Task(); 800ab1a: f000 fbbb bl 800b294 ED_Delay(10); 800ab1e: 200a movs r0, #10 800ab20: f7ff feea bl 800a8f8 METER_CalculateEnergy(); 800ab24: f000 f88a bl 800ac3c CONN_Loop(); 800ab28: f7ff f96a bl 8009e00 LED_Write(); 800ab2c: f000 fda8 bl 800b680 ED_Delay(10); 800ab30: 200a movs r0, #10 800ab32: f7ff fee1 bl 800a8f8 { 800ab36: bf00 nop 800ab38: e7ed b.n 800ab16 800ab3a: bf00 nop 800ab3c: 080170cc .word 0x080170cc 800ab40: 200011bc .word 0x200011bc 800ab44: 080170e0 .word 0x080170e0 800ab48: 080170f4 .word 0x080170f4 800ab4c: 08017108 .word 0x08017108 0800ab50 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { 800ab50: b580 push {r7, lr} 800ab52: b09c sub sp, #112 @ 0x70 800ab54: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; 800ab56: f107 0338 add.w r3, r7, #56 @ 0x38 800ab5a: 2238 movs r2, #56 @ 0x38 800ab5c: 2100 movs r1, #0 800ab5e: 4618 mov r0, r3 800ab60: f00a f896 bl 8014c90 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 800ab64: f107 0324 add.w r3, r7, #36 @ 0x24 800ab68: 2200 movs r2, #0 800ab6a: 601a str r2, [r3, #0] 800ab6c: 605a str r2, [r3, #4] 800ab6e: 609a str r2, [r3, #8] 800ab70: 60da str r2, [r3, #12] 800ab72: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; 800ab74: 1d3b adds r3, r7, #4 800ab76: 2220 movs r2, #32 800ab78: 2100 movs r1, #0 800ab7a: 4618 mov r0, r3 800ab7c: f00a f888 bl 8014c90 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE|RCC_OSCILLATORTYPE_LSE; 800ab80: 2305 movs r3, #5 800ab82: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.HSEState = RCC_HSE_ON; 800ab84: f44f 3380 mov.w r3, #65536 @ 0x10000 800ab88: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV5; 800ab8a: 2304 movs r3, #4 800ab8c: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.LSEState = RCC_LSE_ON; 800ab8e: 2301 movs r3, #1 800ab90: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.HSIState = RCC_HSI_ON; 800ab92: 2301 movs r3, #1 800ab94: 64fb str r3, [r7, #76] @ 0x4c RCC_OscInitStruct.Prediv1Source = RCC_PREDIV1_SOURCE_PLL2; 800ab96: f44f 3380 mov.w r3, #65536 @ 0x10000 800ab9a: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; 800ab9c: 2302 movs r3, #2 800ab9e: 65bb str r3, [r7, #88] @ 0x58 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; 800aba0: f44f 3380 mov.w r3, #65536 @ 0x10000 800aba4: 65fb str r3, [r7, #92] @ 0x5c RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; 800aba6: f44f 13e0 mov.w r3, #1835008 @ 0x1c0000 800abaa: 663b str r3, [r7, #96] @ 0x60 RCC_OscInitStruct.PLL2.PLL2State = RCC_PLL2_ON; 800abac: 2302 movs r3, #2 800abae: 667b str r3, [r7, #100] @ 0x64 RCC_OscInitStruct.PLL2.PLL2MUL = RCC_PLL2_MUL8; 800abb0: f44f 63c0 mov.w r3, #1536 @ 0x600 800abb4: 66bb str r3, [r7, #104] @ 0x68 RCC_OscInitStruct.PLL2.HSEPrediv2Value = RCC_HSE_PREDIV2_DIV5; 800abb6: 2340 movs r3, #64 @ 0x40 800abb8: 66fb str r3, [r7, #108] @ 0x6c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800abba: f107 0338 add.w r3, r7, #56 @ 0x38 800abbe: 4618 mov r0, r3 800abc0: f006 f826 bl 8010c10 800abc4: 4603 mov r3, r0 800abc6: 2b00 cmp r3, #0 800abc8: d001 beq.n 800abce { Error_Handler(); 800abca: f000 f831 bl 800ac30 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK 800abce: 230f movs r3, #15 800abd0: 627b str r3, [r7, #36] @ 0x24 |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; 800abd2: 2302 movs r3, #2 800abd4: 62bb str r3, [r7, #40] @ 0x28 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; 800abd6: 2300 movs r3, #0 800abd8: 62fb str r3, [r7, #44] @ 0x2c RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; 800abda: f44f 6380 mov.w r3, #1024 @ 0x400 800abde: 633b str r3, [r7, #48] @ 0x30 RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; 800abe0: 2300 movs r3, #0 800abe2: 637b str r3, [r7, #52] @ 0x34 if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) 800abe4: f107 0324 add.w r3, r7, #36 @ 0x24 800abe8: 2102 movs r1, #2 800abea: 4618 mov r0, r3 800abec: f006 fb26 bl 801123c 800abf0: 4603 mov r3, r0 800abf2: 2b00 cmp r3, #0 800abf4: d001 beq.n 800abfa { Error_Handler(); 800abf6: f000 f81b bl 800ac30 } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_ADC; 800abfa: 2303 movs r3, #3 800abfc: 607b str r3, [r7, #4] PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE; 800abfe: f44f 7380 mov.w r3, #256 @ 0x100 800ac02: 60bb str r3, [r7, #8] PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV6; 800ac04: f44f 4300 mov.w r3, #32768 @ 0x8000 800ac08: 60fb str r3, [r7, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) 800ac0a: 1d3b adds r3, r7, #4 800ac0c: 4618 mov r0, r3 800ac0e: f006 fd0b bl 8011628 800ac12: 4603 mov r3, r0 800ac14: 2b00 cmp r3, #0 800ac16: d001 beq.n 800ac1c { Error_Handler(); 800ac18: f000 f80a bl 800ac30 } /** Configure the Systick interrupt time */ __HAL_RCC_PLLI2S_ENABLE(); 800ac1c: 4b03 ldr r3, [pc, #12] @ (800ac2c ) 800ac1e: 2201 movs r2, #1 800ac20: 601a str r2, [r3, #0] } 800ac22: bf00 nop 800ac24: 3770 adds r7, #112 @ 0x70 800ac26: 46bd mov sp, r7 800ac28: bd80 pop {r7, pc} 800ac2a: bf00 nop 800ac2c: 42420070 .word 0x42420070 0800ac30 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { 800ac30: b480 push {r7} 800ac32: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); 800ac34: b672 cpsid i } 800ac36: 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) 800ac38: bf00 nop 800ac3a: e7fd b.n 800ac38 0800ac3c : METER_t METER; // Функция для расчета и накопления энергии c дробной частью без счетчиков void METER_CalculateEnergy() { 800ac3c: e92d 43b0 stmdb sp!, {r4, r5, r7, r8, r9, lr} 800ac40: b084 sub sp, #16 800ac42: af00 add r7, sp, #0 // Проверяем, что индекс находится в пределах массива METER.online = 0; 800ac44: 4b2e ldr r3, [pc, #184] @ (800ad00 ) 800ac46: 2200 movs r2, #0 800ac48: 711a strb r2, [r3, #4] if(CONN.connState == Charging){ 800ac4a: 4b2e ldr r3, [pc, #184] @ (800ad04 ) 800ac4c: 785b ldrb r3, [r3, #1] 800ac4e: 2b08 cmp r3, #8 800ac50: d104 bne.n 800ac5c METER.enable = 1; 800ac52: 4b2b ldr r3, [pc, #172] @ (800ad00 ) 800ac54: 2201 movs r2, #1 800ac56: f883 2024 strb.w r2, [r3, #36] @ 0x24 800ac5a: e003 b.n 800ac64 }else{ METER.enable = 0; 800ac5c: 4b28 ldr r3, [pc, #160] @ (800ad00 ) 800ac5e: 2200 movs r2, #0 800ac60: f883 2024 strb.w r2, [r3, #36] @ 0x24 } uint32_t currentTick = HAL_GetTick(); // Получаем текущее время в миллисекундах 800ac64: f003 fb48 bl 800e2f8 800ac68: 60f8 str r0, [r7, #12] uint32_t elapsedTimeMs = currentTick - METER.lastTick; // Вычисляем время, прошедшее с последнего вызова в секундах 800ac6a: 4b25 ldr r3, [pc, #148] @ (800ad00 ) 800ac6c: 689b ldr r3, [r3, #8] 800ac6e: 68fa ldr r2, [r7, #12] 800ac70: 1ad3 subs r3, r2, r3 800ac72: 60bb str r3, [r7, #8] METER.lastTick = currentTick; // Обновляем время последнего вызова для текущего коннектора 800ac74: 4a22 ldr r2, [pc, #136] @ (800ad00 ) 800ac76: 68fb ldr r3, [r7, #12] 800ac78: 6093 str r3, [r2, #8] uint32_t energyWs = CONN.Power * elapsedTimeMs / 1000; // Рассчитываем энергию в ватт-секундах за прошедший промежуток времени 800ac7a: 4b22 ldr r3, [pc, #136] @ (800ad04 ) 800ac7c: f8d3 3003 ldr.w r3, [r3, #3] 800ac80: 68ba ldr r2, [r7, #8] 800ac82: fb02 f303 mul.w r3, r2, r3 800ac86: 4a20 ldr r2, [pc, #128] @ (800ad08 ) 800ac88: fba2 2303 umull r2, r3, r2, r3 800ac8c: 099b lsrs r3, r3, #6 800ac8e: 607b str r3, [r7, #4] //Расчет энергии теперь идет всегда, смещение берем суммарное METER.EnergyPSU_Ws += energyWs; 800ac90: 4b1b ldr r3, [pc, #108] @ (800ad00 ) 800ac92: e9d3 2304 ldrd r2, r3, [r3, #16] 800ac96: 6879 ldr r1, [r7, #4] 800ac98: 2000 movs r0, #0 800ac9a: 460c mov r4, r1 800ac9c: 4605 mov r5, r0 800ac9e: eb12 0804 adds.w r8, r2, r4 800aca2: eb43 0905 adc.w r9, r3, r5 800aca6: 4b16 ldr r3, [pc, #88] @ (800ad00 ) 800aca8: e9c3 8904 strd r8, r9, [r3, #16] // Абсолютное значение энергии разъема складывается из накопленной дробной части и значения со счетчиков METER.AbsoluteEnergy = (uint32_t)METER.EnergyPSU_Ws/3600; //переводим в Вт*час 800acac: 4b14 ldr r3, [pc, #80] @ (800ad00 ) 800acae: e9d3 2304 ldrd r2, r3, [r3, #16] 800acb2: 4b16 ldr r3, [pc, #88] @ (800ad0c ) 800acb4: fba3 2302 umull r2, r3, r3, r2 800acb8: 0adb lsrs r3, r3, #11 800acba: 4a11 ldr r2, [pc, #68] @ (800ad00 ) 800acbc: 6193 str r3, [r2, #24] if(METER.enable) { 800acbe: 4b10 ldr r3, [pc, #64] @ (800ad00 ) 800acc0: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800acc4: 2b00 cmp r3, #0 800acc6: d008 beq.n 800acda //enabled state CONN.Energy = METER.AbsoluteEnergy - METER.EnergyOffset;//переводим в Вт*час 800acc8: 4b0d ldr r3, [pc, #52] @ (800ad00 ) 800acca: 699a ldr r2, [r3, #24] 800accc: 4b0c ldr r3, [pc, #48] @ (800ad00 ) 800acce: 69db ldr r3, [r3, #28] 800acd0: 1ad3 subs r3, r2, r3 800acd2: 4a0c ldr r2, [pc, #48] @ (800ad04 ) 800acd4: f8c2 3007 str.w r3, [r2, #7] METER.EnergyOffset = METER.AbsoluteEnergy; } } 800acd8: e00c b.n 800acf4 CONN.Energy = 0; 800acda: 4b0a ldr r3, [pc, #40] @ (800ad04 ) 800acdc: 2200 movs r2, #0 800acde: 71da strb r2, [r3, #7] 800ace0: 2200 movs r2, #0 800ace2: 721a strb r2, [r3, #8] 800ace4: 2200 movs r2, #0 800ace6: 725a strb r2, [r3, #9] 800ace8: 2200 movs r2, #0 800acea: 729a strb r2, [r3, #10] METER.EnergyOffset = METER.AbsoluteEnergy; 800acec: 4b04 ldr r3, [pc, #16] @ (800ad00 ) 800acee: 699b ldr r3, [r3, #24] 800acf0: 4a03 ldr r2, [pc, #12] @ (800ad00 ) 800acf2: 61d3 str r3, [r2, #28] } 800acf4: bf00 nop 800acf6: 3710 adds r7, #16 800acf8: 46bd mov sp, r7 800acfa: e8bd 83b0 ldmia.w sp!, {r4, r5, r7, r8, r9, pc} 800acfe: bf00 nop 800ad00: 200008a0 .word 0x200008a0 800ad04: 200003b0 .word 0x200003b0 800ad08: 10624dd3 .word 0x10624dd3 800ad0c: 91a2b3c5 .word 0x91a2b3c5 0800ad10 : uint32_t can_lastpacket; extern CAN_HandleTypeDef hcan2; static void PSU_SwitchState(PSU_State_t state){ 800ad10: b580 push {r7, lr} 800ad12: b082 sub sp, #8 800ad14: af00 add r7, sp, #0 800ad16: 4603 mov r3, r0 800ad18: 71fb strb r3, [r7, #7] PSU0.state = state; 800ad1a: 4a06 ldr r2, [pc, #24] @ (800ad34 ) 800ad1c: 79fb ldrb r3, [r7, #7] 800ad1e: 71d3 strb r3, [r2, #7] PSU0.statetick = HAL_GetTick(); 800ad20: f003 faea bl 800e2f8 800ad24: 4603 mov r3, r0 800ad26: 4a03 ldr r2, [pc, #12] @ (800ad34 ) 800ad28: 6113 str r3, [r2, #16] } 800ad2a: bf00 nop 800ad2c: 3708 adds r7, #8 800ad2e: 46bd mov sp, r7 800ad30: bd80 pop {r7, pc} 800ad32: bf00 nop 800ad34: 2000090c .word 0x2000090c 0800ad38 : static uint32_t PSU_StateTime(void){ 800ad38: b580 push {r7, lr} 800ad3a: af00 add r7, sp, #0 return HAL_GetTick() - PSU0.statetick; 800ad3c: f003 fadc bl 800e2f8 800ad40: 4602 mov r2, r0 800ad42: 4b02 ldr r3, [pc, #8] @ (800ad4c ) 800ad44: 691b ldr r3, [r3, #16] 800ad46: 1ad3 subs r3, r2, r3 } 800ad48: 4618 mov r0, r3 800ad4a: bd80 pop {r7, pc} 800ad4c: 2000090c .word 0x2000090c 0800ad50 : ISR_FAST void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan){ 800ad50: 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) 800ad52: 4c42 ldr r4, [pc, #264] @ (800ae5c ) 800ad54: 4d42 ldr r5, [pc, #264] @ (800ae60 ) 800ad56: 4623 mov r3, r4 800ad58: 462a mov r2, r5 800ad5a: 2101 movs r1, #1 800ad5c: f004 fba6 bl 800f4ac 800ad60: b910 cbnz r0, 800ad68 { memcpy(&CanId, &RxHeader.ExtId, sizeof(CanId_t)); 800ad62: 686d ldr r5, [r5, #4] /* Для DC30 поддерживается только один силовой модуль (source == 0) */ if(CanId.source != 0) return; 800ad64: b2eb uxtb r3, r5 800ad66: b103 cbz r3, 800ad6a CONN.outputEnabled = PSU0.PSU_enabled; } } } } } 800ad68: bd38 pop {r3, r4, r5, pc} can_lastpacket = HAL_GetTick(); 800ad6a: f003 fac5 bl 800e2f8 if(CanId.command==0x02){ 800ad6e: f3c5 4505 ubfx r5, r5, #16, #6 can_lastpacket = HAL_GetTick(); 800ad72: 4b3c ldr r3, [pc, #240] @ (800ae64 ) if(CanId.command==0x02){ 800ad74: 2d02 cmp r5, #2 can_lastpacket = HAL_GetTick(); 800ad76: 6018 str r0, [r3, #0] if(CanId.command==0x02){ 800ad78: d013 beq.n 800ada2 if(CanId.command==0x04){ 800ad7a: 2d04 cmp r5, #4 800ad7c: d117 bne.n 800adae memcpy(&PSU_04, RxData, 8); 800ad7e: e894 0003 ldmia.w r4, {r0, r1} 800ad82: 4b39 ldr r3, [pc, #228] @ (800ae68 ) PSU0.tempAmbient = PSU_04.moduleTemperature; 800ad84: 4a39 ldr r2, [pc, #228] @ (800ae6c ) memcpy(&PSU_04, RxData, 8); 800ad86: e883 0003 stmia.w r3, {r0, r1} PSU0.status0.raw = PSU_04.modularForm0; 800ad8a: 7a18 ldrb r0, [r3, #8] PSU0.tempAmbient = PSU_04.moduleTemperature; 800ad8c: 791c ldrb r4, [r3, #4] PSU0.status1.raw = PSU_04.modularForm1; 800ad8e: 79d9 ldrb r1, [r3, #7] PSU0.status2.raw = PSU_04.modularForm2; 800ad90: 799b ldrb r3, [r3, #6] PSU0.tempAmbient = PSU_04.moduleTemperature; 800ad92: 6214 str r4, [r2, #32] PSU0.status0.raw = PSU_04.modularForm0; 800ad94: f882 0024 strb.w r0, [r2, #36] @ 0x24 PSU0.status1.raw = PSU_04.modularForm1; 800ad98: f882 1025 strb.w r1, [r2, #37] @ 0x25 PSU0.status2.raw = PSU_04.modularForm2; 800ad9c: f882 3026 strb.w r3, [r2, #38] @ 0x26 } 800ada0: bd38 pop {r3, r4, r5, pc} memcpy(&PSU_02, RxData, 8); 800ada2: 4b33 ldr r3, [pc, #204] @ (800ae70 ) 800ada4: e894 0003 ldmia.w r4, {r0, r1} 800ada8: e883 0003 stmia.w r3, {r0, r1} } 800adac: bd38 pop {r3, r4, r5, pc} if(CanId.command==0x06){ 800adae: 2d06 cmp r5, #6 800adb0: d111 bne.n 800add6 memcpy(&PSU_06, RxData, 8); 800adb2: e894 0003 ldmia.w r4, {r0, r1} 800adb6: 4b2f ldr r3, [pc, #188] @ (800ae74 ) 800adb8: e883 0003 stmia.w r3, {r0, r1} PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800adbc: 8818 ldrh r0, [r3, #0] PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800adbe: 8859 ldrh r1, [r3, #2] PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800adc0: 889a ldrh r2, [r3, #4] PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800adc2: ba40 rev16 r0, r0 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800adc4: ba49 rev16 r1, r1 PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800adc6: ba52 rev16 r2, r2 PSU_06.VAB = PSU_06.VABLo+(PSU_06.VABHi<<8); 800adc8: b280 uxth r0, r0 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800adca: b289 uxth r1, r1 PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800adcc: b292 uxth r2, r2 PSU_06.VBC = PSU_06.VBCLo+(PSU_06.VBCHi<<8); 800adce: e9c3 0102 strd r0, r1, [r3, #8] PSU_06.VCA = PSU_06.VCALo+(PSU_06.VCAHi<<8); 800add2: 611a str r2, [r3, #16] } 800add4: bd38 pop {r3, r4, r5, pc} if(CanId.command==0x08){ 800add6: 2d08 cmp r5, #8 800add8: d03a beq.n 800ae50 if(CanId.command==0x09){ 800adda: 2d09 cmp r5, #9 800addc: d1c4 bne.n 800ad68 memcpy(&PSU_09, RxData, 8); 800adde: e894 0003 ldmia.w r4, {r0, r1} PSU0.temperature = PSU_04.moduleTemperature; 800ade2: 4b21 ldr r3, [pc, #132] @ (800ae68 ) memcpy(&PSU_09, RxData, 8); 800ade4: 4d24 ldr r5, [pc, #144] @ (800ae78 ) PSU0.outputVoltage = v; 800ade6: 4c21 ldr r4, [pc, #132] @ (800ae6c ) PSU0.temperature = PSU_04.moduleTemperature; 800ade8: f893 c004 ldrb.w ip, [r3, #4] uint16_t v = PSU_09.moduleNVoltage / 1000; 800adec: 4a23 ldr r2, [pc, #140] @ (800ae7c ) memcpy(&PSU_09, RxData, 8); 800adee: e885 0003 stmia.w r5, {r0, r1} PSU_09.moduleNCurrent = PSU_09.moduleNCurrent_[3]; 800adf2: ba00 rev r0, r0 PSU0.temperature = PSU_04.moduleTemperature; 800adf4: f884 c006 strb.w ip, [r4, #6] uint16_t v = PSU_09.moduleNVoltage / 1000; 800adf8: fba2 c200 umull ip, r2, r2, r0 800adfc: ba09 rev r1, r1 PSU_09.moduleNVoltage |= PSU_09.moduleNVoltage_[0]<<24; 800adfe: e9c5 0102 strd r0, r1, [r5, #8] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ae02: f3c2 108f ubfx r0, r2, #6, #16 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ae06: 2813 cmp r0, #19 PSU0.online = 1; 800ae08: f04f 0e01 mov.w lr, #1 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ae0c: bf94 ite ls 800ae0e: 2500 movls r5, #0 800ae10: 2501 movhi r5, #1 int16_t i = PSU_09.moduleNCurrent / 100; 800ae12: 4b1b ldr r3, [pc, #108] @ (800ae80 ) PSU0.online = 1; 800ae14: f884 e008 strb.w lr, [r4, #8] int16_t i = PSU_09.moduleNCurrent / 100; 800ae18: fba3 c301 umull ip, r3, r3, r1 if(PSU0.state >= PSU_READY){ 800ae1c: 79e1 ldrb r1, [r4, #7] int16_t i = PSU_09.moduleNCurrent / 100; 800ae1e: 095b lsrs r3, r3, #5 if(PSU0.state >= PSU_READY){ 800ae20: 4571 cmp r1, lr PSU0.outputVoltage = v; 800ae22: 8060 strh r0, [r4, #2] int16_t i = PSU_09.moduleNCurrent / 100; 800ae24: 80a3 strh r3, [r4, #4] uint16_t v = PSU_09.moduleNVoltage / 1000; 800ae26: ea4f 1292 mov.w r2, r2, lsr #6 PSU0.PSU_enabled = (v >= PSU_VOLTAGE_THRESHOLD); 800ae2a: 72a5 strb r5, [r4, #10] if(PSU0.state >= PSU_READY){ 800ae2c: d99c bls.n 800ad68 CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ae2e: b299 uxth r1, r3 800ae30: b292 uxth r2, r2 800ae32: fb01 f202 mul.w r2, r1, r2 800ae36: 4c13 ldr r4, [pc, #76] @ (800ae84 ) CONN.MeasuredVoltage = PSU0.outputVoltage; 800ae38: 4913 ldr r1, [pc, #76] @ (800ae88 ) CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ae3a: fba4 4202 umull r4, r2, r4, r2 CONN.MeasuredCurrent = PSU0.outputCurrent; 800ae3e: f8a1 3015 strh.w r3, [r1, #21] CONN.outputEnabled = PSU0.PSU_enabled; 800ae42: 760d strb r5, [r1, #24] CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ae44: 08d3 lsrs r3, r2, #3 CONN.MeasuredVoltage = PSU0.outputVoltage; 800ae46: f8a1 0013 strh.w r0, [r1, #19] CONN.Power = CONN.MeasuredCurrent * CONN.MeasuredVoltage / 10; 800ae4a: f8c1 3003 str.w r3, [r1, #3] } 800ae4e: bd38 pop {r3, r4, r5, pc} memcpy(&PSU_08, RxData, 8); 800ae50: 4b0e ldr r3, [pc, #56] @ (800ae8c ) 800ae52: e894 0003 ldmia.w r4, {r0, r1} 800ae56: e883 0003 stmia.w r3, {r0, r1} } 800ae5a: bd38 pop {r3, r4, r5, pc} 800ae5c: 20000954 .word 0x20000954 800ae60: 20000938 .word 0x20000938 800ae64: 20000934 .word 0x20000934 800ae68: 200008d4 .word 0x200008d4 800ae6c: 2000090c .word 0x2000090c 800ae70: 200008c8 .word 0x200008c8 800ae74: 200008e0 .word 0x200008e0 800ae78: 200008fc .word 0x200008fc 800ae7c: 10624dd3 .word 0x10624dd3 800ae80: 51eb851f .word 0x51eb851f 800ae84: cccccccd .word 0xcccccccd 800ae88: 200003b0 .word 0x200003b0 800ae8c: 200008f4 .word 0x200008f4 0800ae90 : void PSU_CAN_FilterInit(){ 800ae90: b580 push {r7, lr} 800ae92: b08a sub sp, #40 @ 0x28 800ae94: af00 add r7, sp, #0 CAN_FilterTypeDef sFilterConfig; sFilterConfig.FilterBank = 14; 800ae96: 230e movs r3, #14 800ae98: 617b str r3, [r7, #20] sFilterConfig.FilterMode = CAN_FILTERMODE_IDMASK; 800ae9a: 2300 movs r3, #0 800ae9c: 61bb str r3, [r7, #24] sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT; 800ae9e: 2301 movs r3, #1 800aea0: 61fb str r3, [r7, #28] sFilterConfig.FilterIdHigh = 0x0000; 800aea2: 2300 movs r3, #0 800aea4: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = 0x0000; 800aea6: 2300 movs r3, #0 800aea8: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; 800aeaa: 2300 movs r3, #0 800aeac: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = 0x0000; 800aeae: 2300 movs r3, #0 800aeb0: 60fb str r3, [r7, #12] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0; 800aeb2: 2300 movs r3, #0 800aeb4: 613b str r3, [r7, #16] sFilterConfig.FilterActivation = ENABLE; 800aeb6: 2301 movs r3, #1 800aeb8: 623b str r3, [r7, #32] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO1; 800aeba: 2301 movs r3, #1 800aebc: 613b str r3, [r7, #16] sFilterConfig.SlaveStartFilterBank = 14; 800aebe: 230e movs r3, #14 800aec0: 627b str r3, [r7, #36] @ 0x24 if(HAL_CAN_ConfigFilter(&hcan2, &sFilterConfig) != HAL_OK) 800aec2: 463b mov r3, r7 800aec4: 4619 mov r1, r3 800aec6: 4806 ldr r0, [pc, #24] @ (800aee0 ) 800aec8: f004 f880 bl 800efcc 800aecc: 4603 mov r3, r0 800aece: 2b00 cmp r3, #0 800aed0: d001 beq.n 800aed6 { Error_Handler(); 800aed2: f7ff fead bl 800ac30 } } 800aed6: bf00 nop 800aed8: 3728 adds r7, #40 @ 0x28 800aeda: 46bd mov sp, r7 800aedc: bd80 pop {r7, pc} 800aede: bf00 nop 800aee0: 20000384 .word 0x20000384 0800aee4 : void PSU_Init(){ 800aee4: b580 push {r7, lr} 800aee6: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan2); 800aee8: 4815 ldr r0, [pc, #84] @ (800af40 ) 800aeea: f004 f993 bl 800f214 MX_CAN2_Init(); 800aeee: f7fe fe5d bl 8009bac PSU_CAN_FilterInit(); 800aef2: f7ff ffcd bl 800ae90 HAL_CAN_Start(&hcan2); 800aef6: 4812 ldr r0, [pc, #72] @ (800af40 ) 800aef8: f004 f948 bl 800f18c 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*/); 800aefc: 2110 movs r1, #16 800aefe: 4810 ldr r0, [pc, #64] @ (800af40 ) 800af00: f004 fbf5 bl 800f6ee memset(&PSU0, 0, sizeof(PSU0)); 800af04: 2228 movs r2, #40 @ 0x28 800af06: 2100 movs r1, #0 800af08: 480e ldr r0, [pc, #56] @ (800af44 ) 800af0a: f009 fec1 bl 8014c90 PSU0.state = PSU_UNREADY; 800af0e: 4b0d ldr r3, [pc, #52] @ (800af44 ) 800af10: 2200 movs r2, #0 800af12: 71da strb r2, [r3, #7] PSU0.statetick = HAL_GetTick(); 800af14: f003 f9f0 bl 800e2f8 800af18: 4603 mov r3, r0 800af1a: 4a0a ldr r2, [pc, #40] @ (800af44 ) 800af1c: 6113 str r3, [r2, #16] PSU0.power_limit = PSU_MAX_POWER; // kW 800af1e: 4b09 ldr r3, [pc, #36] @ (800af44 ) 800af20: f247 5230 movw r2, #30000 @ 0x7530 800af24: 615a str r2, [r3, #20] PSU0.hv_mode = 0; 800af26: 4b07 ldr r3, [pc, #28] @ (800af44 ) 800af28: 2200 movs r2, #0 800af2a: 761a strb r2, [r3, #24] PSU0.hv_tick = 0; 800af2c: 4b05 ldr r3, [pc, #20] @ (800af44 ) 800af2e: 2200 movs r2, #0 800af30: 61da str r2, [r3, #28] PSU_Enable(0, 0); 800af32: 2100 movs r1, #0 800af34: 2000 movs r0, #0 800af36: f000 f807 bl 800af48 } 800af3a: bf00 nop 800af3c: bd80 pop {r7, pc} 800af3e: bf00 nop 800af40: 20000384 .word 0x20000384 800af44: 2000090c .word 0x2000090c 0800af48 : void PSU_Enable(uint8_t addr, uint8_t enable){ 800af48: b580 push {r7, lr} 800af4a: b084 sub sp, #16 800af4c: af00 add r7, sp, #0 800af4e: 4603 mov r3, r0 800af50: 460a mov r2, r1 800af52: 71fb strb r3, [r7, #7] 800af54: 4613 mov r3, r2 800af56: 71bb strb r3, [r7, #6] PSU_1A_t data; memset(&data, 0, sizeof(data)); 800af58: f107 0308 add.w r3, r7, #8 800af5c: 2208 movs r2, #8 800af5e: 2100 movs r1, #0 800af60: 4618 mov r0, r3 800af62: f009 fe95 bl 8014c90 /* Для DC30 поддерживается только один модуль с адресом 0 */ if(addr != 0) return; 800af66: 79fb ldrb r3, [r7, #7] 800af68: 2b00 cmp r3, #0 800af6a: d115 bne.n 800af98 if(PSU0.online == 0) return; 800af6c: 4b0d ldr r3, [pc, #52] @ (800afa4 ) 800af6e: 7a1b ldrb r3, [r3, #8] 800af70: 2b00 cmp r3, #0 800af72: d013 beq.n 800af9c data.enable = !enable; 800af74: 79bb ldrb r3, [r7, #6] 800af76: 2b00 cmp r3, #0 800af78: bf0c ite eq 800af7a: 2301 moveq r3, #1 800af7c: 2300 movne r3, #0 800af7e: b2db uxtb r3, r3 800af80: 723b strb r3, [r7, #8] PSU_SendCmd(0xF0, addr, 0x1A, &data); 800af82: 79f9 ldrb r1, [r7, #7] 800af84: f107 0308 add.w r3, r7, #8 800af88: 221a movs r2, #26 800af8a: 20f0 movs r0, #240 @ 0xf0 800af8c: f000 f866 bl 800b05c ED_Delay(CAN_DELAY); 800af90: 2014 movs r0, #20 800af92: f7ff fcb1 bl 800a8f8 800af96: e002 b.n 800af9e if(addr != 0) return; 800af98: bf00 nop 800af9a: e000 b.n 800af9e if(PSU0.online == 0) return; 800af9c: bf00 nop } 800af9e: 3710 adds r7, #16 800afa0: 46bd mov sp, r7 800afa2: bd80 pop {r7, pc} 800afa4: 2000090c .word 0x2000090c 0800afa8 : 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){ 800afa8: b580 push {r7, lr} 800afaa: b086 sub sp, #24 800afac: af00 add r7, sp, #0 800afae: 4603 mov r3, r0 800afb0: 71fb strb r3, [r7, #7] 800afb2: 460b mov r3, r1 800afb4: 80bb strh r3, [r7, #4] 800afb6: 4613 mov r3, r2 800afb8: 807b strh r3, [r7, #2] PSU_1C_t data; memset(&data, 0, sizeof(data)); 800afba: f107 0308 add.w r3, r7, #8 800afbe: 2208 movs r2, #8 800afc0: 2100 movs r1, #0 800afc2: 4618 mov r0, r3 800afc4: f009 fe64 bl 8014c90 if(addr != 0) return; 800afc8: 79fb ldrb r3, [r7, #7] 800afca: 2b00 cmp r3, #0 800afcc: d140 bne.n 800b050 if(voltage 800afd4: 2396 movs r3, #150 @ 0x96 800afd6: 80bb strh r3, [r7, #4] if((PSU0.hv_mode==0) && voltage>499) voltage = 499; 800afd8: 4b1f ldr r3, [pc, #124] @ (800b058 ) 800afda: 7e1b ldrb r3, [r3, #24] 800afdc: 2b00 cmp r3, #0 800afde: d106 bne.n 800afee 800afe0: 88bb ldrh r3, [r7, #4] 800afe2: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800afe6: d302 bcc.n 800afee 800afe8: f240 13f3 movw r3, #499 @ 0x1f3 800afec: 80bb strh r3, [r7, #4] uint32_t current_ma = current * 100; 800afee: 887b ldrh r3, [r7, #2] 800aff0: 2264 movs r2, #100 @ 0x64 800aff2: fb02 f303 mul.w r3, r2, r3 800aff6: 617b str r3, [r7, #20] uint32_t voltage_mv = voltage * 1000; 800aff8: 88bb ldrh r3, [r7, #4] 800affa: f44f 727a mov.w r2, #1000 @ 0x3e8 800affe: fb02 f303 mul.w r3, r2, r3 800b002: 613b str r3, [r7, #16] data.moduleCurrentTotal[0] = (current_ma >> 24) & 0xFF; 800b004: 697b ldr r3, [r7, #20] 800b006: 0e1b lsrs r3, r3, #24 800b008: b2db uxtb r3, r3 800b00a: 733b strb r3, [r7, #12] data.moduleCurrentTotal[1] = (current_ma >> 16) & 0xFF; 800b00c: 697b ldr r3, [r7, #20] 800b00e: 0c1b lsrs r3, r3, #16 800b010: b2db uxtb r3, r3 800b012: 737b strb r3, [r7, #13] data.moduleCurrentTotal[2] = (current_ma >> 8) & 0xFF; 800b014: 697b ldr r3, [r7, #20] 800b016: 0a1b lsrs r3, r3, #8 800b018: b2db uxtb r3, r3 800b01a: 73bb strb r3, [r7, #14] data.moduleCurrentTotal[3] = (current_ma >> 0) & 0xFF; 800b01c: 697b ldr r3, [r7, #20] 800b01e: b2db uxtb r3, r3 800b020: 73fb strb r3, [r7, #15] data.moduleVoltage[0] = (voltage_mv >> 24) & 0xFF; 800b022: 693b ldr r3, [r7, #16] 800b024: 0e1b lsrs r3, r3, #24 800b026: b2db uxtb r3, r3 800b028: 723b strb r3, [r7, #8] data.moduleVoltage[1] = (voltage_mv >> 16) & 0xFF; 800b02a: 693b ldr r3, [r7, #16] 800b02c: 0c1b lsrs r3, r3, #16 800b02e: b2db uxtb r3, r3 800b030: 727b strb r3, [r7, #9] data.moduleVoltage[2] = (voltage_mv >> 8) & 0xFF; 800b032: 693b ldr r3, [r7, #16] 800b034: 0a1b lsrs r3, r3, #8 800b036: b2db uxtb r3, r3 800b038: 72bb strb r3, [r7, #10] data.moduleVoltage[3] = (voltage_mv >> 0) & 0xFF; 800b03a: 693b ldr r3, [r7, #16] 800b03c: b2db uxtb r3, r3 800b03e: 72fb strb r3, [r7, #11] PSU_SendCmd(0xF0, addr, 0x1C, &data); 800b040: 79f9 ldrb r1, [r7, #7] 800b042: f107 0308 add.w r3, r7, #8 800b046: 221c movs r2, #28 800b048: 20f0 movs r0, #240 @ 0xf0 800b04a: f000 f807 bl 800b05c 800b04e: e000 b.n 800b052 if(addr != 0) return; 800b050: bf00 nop } 800b052: 3718 adds r7, #24 800b054: 46bd mov sp, r7 800b056: bd80 pop {r7, pc} 800b058: 2000090c .word 0x2000090c 0800b05c : void PSU_SendCmd(uint8_t source, uint8_t destination, uint8_t cmd, void *data){ 800b05c: b580 push {r7, lr} 800b05e: b08c sub sp, #48 @ 0x30 800b060: af00 add r7, sp, #0 800b062: 603b str r3, [r7, #0] 800b064: 4603 mov r3, r0 800b066: 71fb strb r3, [r7, #7] 800b068: 460b mov r3, r1 800b06a: 71bb strb r3, [r7, #6] 800b06c: 4613 mov r3, r2 800b06e: 717b strb r3, [r7, #5] CanId_t CanId; CanId.source = source; 800b070: 79fb ldrb r3, [r7, #7] 800b072: f887 3028 strb.w r3, [r7, #40] @ 0x28 CanId.destination = destination; 800b076: 79bb ldrb r3, [r7, #6] 800b078: f887 3029 strb.w r3, [r7, #41] @ 0x29 CanId.command = cmd; 800b07c: 797b ldrb r3, [r7, #5] 800b07e: f003 033f and.w r3, r3, #63 @ 0x3f 800b082: b2da uxtb r2, r3 800b084: f897 302a ldrb.w r3, [r7, #42] @ 0x2a 800b088: f362 0305 bfi r3, r2, #0, #6 800b08c: f887 302a strb.w r3, [r7, #42] @ 0x2a CanId.device = 0x0A; 800b090: 8d7b ldrh r3, [r7, #42] @ 0x2a 800b092: 220a movs r2, #10 800b094: f362 1389 bfi r3, r2, #6, #4 800b098: 857b strh r3, [r7, #42] @ 0x2a int8_t retry_counter = 10; 800b09a: 230a movs r3, #10 800b09c: 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)); 800b0a0: 6abb ldr r3, [r7, #40] @ 0x28 800b0a2: 617b str r3, [r7, #20] tx_header.RTR = CAN_RTR_DATA; 800b0a4: 2300 movs r3, #0 800b0a6: 61fb str r3, [r7, #28] tx_header.IDE = CAN_ID_EXT; 800b0a8: 2304 movs r3, #4 800b0aa: 61bb str r3, [r7, #24] tx_header.DLC = 8; 800b0ac: 2308 movs r3, #8 800b0ae: 623b str r3, [r7, #32] while(retry_counter>0){ //если буфер полон, ждем пока он освободится 800b0b0: e01e b.n 800b0f0 if (HAL_CAN_GetTxMailboxesFreeLevel(&hcan2) > 0){ 800b0b2: 4814 ldr r0, [pc, #80] @ (800b104 ) 800b0b4: f004 f9c6 bl 800f444 800b0b8: 4603 mov r3, r0 800b0ba: 2b00 cmp r3, #0 800b0bc: d00e beq.n 800b0dc /* отправка сообщения */ CAN_result = HAL_CAN_AddTxMessage(&hcan2, &tx_header, (uint8_t*)data, &tx_mailbox); 800b0be: f107 030c add.w r3, r7, #12 800b0c2: f107 0110 add.w r1, r7, #16 800b0c6: 683a ldr r2, [r7, #0] 800b0c8: 480e ldr r0, [pc, #56] @ (800b104 ) 800b0ca: f004 f8ec bl 800f2a6 800b0ce: 4603 mov r3, r0 800b0d0: f887 302e strb.w r3, [r7, #46] @ 0x2e /* если отправка удалась, выход */ if(CAN_result == HAL_OK) { 800b0d4: f897 302e ldrb.w r3, [r7, #46] @ 0x2e 800b0d8: 2b00 cmp r3, #0 800b0da: d00e beq.n 800b0fa return; retry_counter = 0; } } ED_Delay(1); 800b0dc: 2001 movs r0, #1 800b0de: f7ff fc0b bl 800a8f8 retry_counter--; 800b0e2: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f 800b0e6: b2db uxtb r3, r3 800b0e8: 3b01 subs r3, #1 800b0ea: b2db uxtb r3, r3 800b0ec: f887 302f strb.w r3, [r7, #47] @ 0x2f while(retry_counter>0){ //если буфер полон, ждем пока он освободится 800b0f0: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f 800b0f4: 2b00 cmp r3, #0 800b0f6: dcdc bgt.n 800b0b2 800b0f8: e000 b.n 800b0fc return; 800b0fa: bf00 nop } } 800b0fc: 3730 adds r7, #48 @ 0x30 800b0fe: 46bd mov sp, r7 800b100: bd80 pop {r7, pc} 800b102: bf00 nop 800b104: 20000384 .word 0x20000384 0800b108 : uint32_t max(uint32_t a, uint32_t b){ if(a>b) return a; else return b; } void PSU_ReadWrite(){ 800b108: b580 push {r7, lr} 800b10a: b082 sub sp, #8 800b10c: af00 add r7, sp, #0 uint8_t zero_data[8] = {0,0,0,0,0,0,0,0}; 800b10e: 463b mov r3, r7 800b110: 2200 movs r2, #0 800b112: 601a str r2, [r3, #0] 800b114: 605a str r2, [r3, #4] PSU_SendCmd(0xF0, 0, 0x04, zero_data);ED_Delay(CAN_DELAY); 800b116: 463b mov r3, r7 800b118: 2204 movs r2, #4 800b11a: 2100 movs r1, #0 800b11c: 20f0 movs r0, #240 @ 0xf0 800b11e: f7ff ff9d bl 800b05c 800b122: 2014 movs r0, #20 800b124: f7ff fbe8 bl 800a8f8 PSU_SendCmd(0xF0, 0, 0x06, zero_data);ED_Delay(CAN_DELAY); 800b128: 463b mov r3, r7 800b12a: 2206 movs r2, #6 800b12c: 2100 movs r1, #0 800b12e: 20f0 movs r0, #240 @ 0xf0 800b130: f7ff ff94 bl 800b05c 800b134: 2014 movs r0, #20 800b136: f7ff fbdf bl 800a8f8 // PSU_SendCmd(0xF0, 0, 0x08, zero_data);ED_Delay(CAN_DELAY); PSU_SendCmd(0xF0, 0, 0x09, zero_data);ED_Delay(CAN_DELAY); 800b13a: 463b mov r3, r7 800b13c: 2209 movs r2, #9 800b13e: 2100 movs r1, #0 800b140: 20f0 movs r0, #240 @ 0xf0 800b142: f7ff ff8b bl 800b05c 800b146: 2014 movs r0, #20 800b148: f7ff fbd6 bl 800a8f8 // Power Limit if ((CONN.WantedCurrent/10) * CONN.MeasuredVoltage > PSU0.power_limit){ 800b14c: 4b4d ldr r3, [pc, #308] @ (800b284 ) 800b14e: f8b3 301b ldrh.w r3, [r3, #27] 800b152: b29b uxth r3, r3 800b154: 4a4c ldr r2, [pc, #304] @ (800b288 ) 800b156: fba2 2303 umull r2, r3, r2, r3 800b15a: 08db lsrs r3, r3, #3 800b15c: b29b uxth r3, r3 800b15e: 461a mov r2, r3 800b160: 4b48 ldr r3, [pc, #288] @ (800b284 ) 800b162: f8b3 3013 ldrh.w r3, [r3, #19] 800b166: b29b uxth r3, r3 800b168: fb02 f303 mul.w r3, r2, r3 800b16c: 461a mov r2, r3 800b16e: 4b47 ldr r3, [pc, #284] @ (800b28c ) 800b170: 695b ldr r3, [r3, #20] 800b172: 429a cmp r2, r3 800b174: d911 bls.n 800b19a CONN.RequestedCurrent = PSU0.power_limit * 10 / CONN.MeasuredVoltage; 800b176: 4b45 ldr r3, [pc, #276] @ (800b28c ) 800b178: 695a ldr r2, [r3, #20] 800b17a: 4613 mov r3, r2 800b17c: 009b lsls r3, r3, #2 800b17e: 4413 add r3, r2 800b180: 005b lsls r3, r3, #1 800b182: 461a mov r2, r3 800b184: 4b3f ldr r3, [pc, #252] @ (800b284 ) 800b186: f8b3 3013 ldrh.w r3, [r3, #19] 800b18a: b29b uxth r3, r3 800b18c: fbb2 f3f3 udiv r3, r2, r3 800b190: b29a uxth r2, r3 800b192: 4b3c ldr r3, [pc, #240] @ (800b284 ) 800b194: f8a3 2011 strh.w r2, [r3, #17] 800b198: e006 b.n 800b1a8 }else{ CONN.RequestedCurrent = CONN.WantedCurrent; 800b19a: 4b3a ldr r3, [pc, #232] @ (800b284 ) 800b19c: f8b3 301b ldrh.w r3, [r3, #27] 800b1a0: b29a uxth r2, r3 800b1a2: 4b38 ldr r3, [pc, #224] @ (800b284 ) 800b1a4: f8a3 2011 strh.w r2, [r3, #17] } if(CONN.RequestedCurrent > (PSU_MAX_CURRENT*10)){ 800b1a8: 4b36 ldr r3, [pc, #216] @ (800b284 ) 800b1aa: f8b3 3011 ldrh.w r3, [r3, #17] 800b1ae: b29b uxth r3, r3 800b1b0: f240 5232 movw r2, #1330 @ 0x532 800b1b4: 4293 cmp r3, r2 800b1b6: d908 bls.n 800b1ca CONN.RequestedCurrent = PSU_MAX_CURRENT*10; 800b1b8: 4b32 ldr r3, [pc, #200] @ (800b284 ) 800b1ba: 2200 movs r2, #0 800b1bc: f042 0232 orr.w r2, r2, #50 @ 0x32 800b1c0: 745a strb r2, [r3, #17] 800b1c2: 2200 movs r2, #0 800b1c4: f042 0205 orr.w r2, r2, #5 800b1c8: 749a strb r2, [r3, #18] } CONN.RequestedPower = CONN.RequestedCurrent * CONN.RequestedVoltage / 10; 800b1ca: 4b2e ldr r3, [pc, #184] @ (800b284 ) 800b1cc: f8b3 3011 ldrh.w r3, [r3, #17] 800b1d0: b29b uxth r3, r3 800b1d2: 461a mov r2, r3 800b1d4: 4b2b ldr r3, [pc, #172] @ (800b284 ) 800b1d6: f8b3 300f ldrh.w r3, [r3, #15] 800b1da: b29b uxth r3, r3 800b1dc: fb02 f303 mul.w r3, r2, r3 800b1e0: 4a2b ldr r2, [pc, #172] @ (800b290 ) 800b1e2: fb82 1203 smull r1, r2, r2, r3 800b1e6: 1092 asrs r2, r2, #2 800b1e8: 17db asrs r3, r3, #31 800b1ea: 1ad3 subs r3, r2, r3 800b1ec: 461a mov r2, r3 800b1ee: 4b25 ldr r3, [pc, #148] @ (800b284 ) 800b1f0: f8c3 200b str.w r2, [r3, #11] if(PSU0.ready){ 800b1f4: 4b25 ldr r3, [pc, #148] @ (800b28c ) 800b1f6: 7a5b ldrb r3, [r3, #9] 800b1f8: 2b00 cmp r3, #0 800b1fa: d03e beq.n 800b27a if (CONN.RequestedVoltage == 500) { // fake 800b1fc: 4b21 ldr r3, [pc, #132] @ (800b284 ) 800b1fe: f8b3 300f ldrh.w r3, [r3, #15] 800b202: b29b uxth r3, r3 800b204: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800b208: d106 bne.n 800b218 PSU_SetVoltageCurrent(0, 300, 10); // Normal mode 800b20a: 220a movs r2, #10 800b20c: f44f 7196 mov.w r1, #300 @ 0x12c 800b210: 2000 movs r0, #0 800b212: f7ff fec9 bl 800afa8 800b216: e00b b.n 800b230 }else{ PSU_SetVoltageCurrent(0, CONN.RequestedVoltage, CONN.RequestedCurrent); // Normal mode 800b218: 4b1a ldr r3, [pc, #104] @ (800b284 ) 800b21a: f8b3 300f ldrh.w r3, [r3, #15] 800b21e: b29b uxth r3, r3 800b220: 4a18 ldr r2, [pc, #96] @ (800b284 ) 800b222: f8b2 2011 ldrh.w r2, [r2, #17] 800b226: b292 uxth r2, r2 800b228: 4619 mov r1, r3 800b22a: 2000 movs r0, #0 800b22c: f7ff febc bl 800afa8 } ED_Delay(CAN_DELAY); 800b230: 2014 movs r0, #20 800b232: f7ff fb61 bl 800a8f8 if(CONN.MeasuredVoltage > 490){ 800b236: 4b13 ldr r3, [pc, #76] @ (800b284 ) 800b238: f8b3 3013 ldrh.w r3, [r3, #19] 800b23c: b29b uxth r3, r3 800b23e: f5b3 7ff5 cmp.w r3, #490 @ 0x1ea 800b242: d917 bls.n 800b274 if(PSU0.hv_tick == 0){ 800b244: 4b11 ldr r3, [pc, #68] @ (800b28c ) 800b246: 69db ldr r3, [r3, #28] 800b248: 2b00 cmp r3, #0 800b24a: d105 bne.n 800b258 PSU0.hv_tick = HAL_GetTick(); 800b24c: f003 f854 bl 800e2f8 800b250: 4603 mov r3, r0 800b252: 4a0e ldr r2, [pc, #56] @ (800b28c ) 800b254: 61d3 str r3, [r2, #28] } // PSU_SetHVMode(0, PSU0.hv_mode); // auto set, no need // ED_Delay(CAN_DELAY); } 800b256: e010 b.n 800b27a }else if((HAL_GetTick() - PSU0.hv_tick) >= 10000){ 800b258: f003 f84e bl 800e2f8 800b25c: 4602 mov r2, r0 800b25e: 4b0b ldr r3, [pc, #44] @ (800b28c ) 800b260: 69db ldr r3, [r3, #28] 800b262: 1ad3 subs r3, r2, r3 800b264: f242 720f movw r2, #9999 @ 0x270f 800b268: 4293 cmp r3, r2 800b26a: d906 bls.n 800b27a PSU0.hv_mode = 1; 800b26c: 4b07 ldr r3, [pc, #28] @ (800b28c ) 800b26e: 2201 movs r2, #1 800b270: 761a strb r2, [r3, #24] } 800b272: e002 b.n 800b27a PSU0.hv_tick = 0; 800b274: 4b05 ldr r3, [pc, #20] @ (800b28c ) 800b276: 2200 movs r2, #0 800b278: 61da str r2, [r3, #28] } 800b27a: bf00 nop 800b27c: 3708 adds r7, #8 800b27e: 46bd mov sp, r7 800b280: bd80 pop {r7, pc} 800b282: bf00 nop 800b284: 200003b0 .word 0x200003b0 800b288: cccccccd .word 0xcccccccd 800b28c: 2000090c .word 0x2000090c 800b290: 66666667 .word 0x66666667 0800b294 : void PSU_Task(void){ 800b294: b598 push {r3, r4, r7, lr} 800b296: 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){ 800b298: f003 f82e bl 800e2f8 800b29c: 4602 mov r2, r0 800b29e: 4bb5 ldr r3, [pc, #724] @ (800b574 ) 800b2a0: 681b ldr r3, [r3, #0] 800b2a2: 1ad3 subs r3, r2, r3 800b2a4: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 800b2a8: d920 bls.n 800b2ec PSU0.online = 0; 800b2aa: 4bb3 ldr r3, [pc, #716] @ (800b578 ) 800b2ac: 2200 movs r2, #0 800b2ae: 721a strb r2, [r3, #8] PSU0.PSU_enabled = 0; 800b2b0: 4bb1 ldr r3, [pc, #708] @ (800b578 ) 800b2b2: 2200 movs r2, #0 800b2b4: 729a strb r2, [r3, #10] PSU_04.moduleTemperature = 0; 800b2b6: 4bb1 ldr r3, [pc, #708] @ (800b57c ) 800b2b8: 2200 movs r2, #0 800b2ba: 711a strb r2, [r3, #4] PSU_04.modularForm0 = 0; 800b2bc: 4baf ldr r3, [pc, #700] @ (800b57c ) 800b2be: 2200 movs r2, #0 800b2c0: 721a strb r2, [r3, #8] PSU_04.modularForm1 = 0; 800b2c2: 4bae ldr r3, [pc, #696] @ (800b57c ) 800b2c4: 2200 movs r2, #0 800b2c6: 71da strb r2, [r3, #7] PSU_04.modularForm2 = 0; 800b2c8: 4bac ldr r3, [pc, #688] @ (800b57c ) 800b2ca: 2200 movs r2, #0 800b2cc: 719a strb r2, [r3, #6] PSU_06.VAB = 0; 800b2ce: 4bac ldr r3, [pc, #688] @ (800b580 ) 800b2d0: 2200 movs r2, #0 800b2d2: 609a str r2, [r3, #8] PSU_06.VBC = 0; 800b2d4: 4baa ldr r3, [pc, #680] @ (800b580 ) 800b2d6: 2200 movs r2, #0 800b2d8: 60da str r2, [r3, #12] PSU_06.VCA = 0; 800b2da: 4ba9 ldr r3, [pc, #676] @ (800b580 ) 800b2dc: 2200 movs r2, #0 800b2de: 611a str r2, [r3, #16] PSU_09.moduleNCurrent = 0; 800b2e0: 4ba8 ldr r3, [pc, #672] @ (800b584 ) 800b2e2: 2200 movs r2, #0 800b2e4: 60da str r2, [r3, #12] PSU_09.moduleNVoltage = 0; 800b2e6: 4ba7 ldr r3, [pc, #668] @ (800b584 ) 800b2e8: 2200 movs r2, #0 800b2ea: 609a str r2, [r3, #8] } if(!PSU0.online || !PSU0.enableAC){ 800b2ec: 4ba2 ldr r3, [pc, #648] @ (800b578 ) 800b2ee: 7a1b ldrb r3, [r3, #8] 800b2f0: 2b00 cmp r3, #0 800b2f2: d003 beq.n 800b2fc 800b2f4: 4ba0 ldr r3, [pc, #640] @ (800b578 ) 800b2f6: 781b ldrb r3, [r3, #0] 800b2f8: 2b00 cmp r3, #0 800b2fa: d10c bne.n 800b316 CONN.MeasuredVoltage = 0; 800b2fc: 4ba2 ldr r3, [pc, #648] @ (800b588 ) 800b2fe: 2200 movs r2, #0 800b300: 74da strb r2, [r3, #19] 800b302: 2200 movs r2, #0 800b304: 751a strb r2, [r3, #20] CONN.MeasuredCurrent = 0; 800b306: 4ba0 ldr r3, [pc, #640] @ (800b588 ) 800b308: 2200 movs r2, #0 800b30a: 755a strb r2, [r3, #21] 800b30c: 2200 movs r2, #0 800b30e: 759a strb r2, [r3, #22] CONN.outputEnabled = 0; 800b310: 4b9d ldr r3, [pc, #628] @ (800b588 ) 800b312: 2200 movs r2, #0 800b314: 761a strb r2, [r3, #24] } // Управление AC-контактором с задержкой отключения 1 минута if(CONN.EvConnected){ 800b316: 4b9c ldr r3, [pc, #624] @ (800b588 ) 800b318: 7f9b ldrb r3, [r3, #30] 800b31a: 2b00 cmp r3, #0 800b31c: d00c beq.n 800b338 RELAY_Write(RELAY_AC, 1); 800b31e: 2101 movs r1, #1 800b320: 2004 movs r0, #4 800b322: f7fe fa49 bl 80097b8 psu_on_tick = HAL_GetTick(); 800b326: f002 ffe7 bl 800e2f8 800b32a: 4603 mov r3, r0 800b32c: 4a97 ldr r2, [pc, #604] @ (800b58c ) 800b32e: 6013 str r3, [r2, #0] PSU0.enableAC = 1; 800b330: 4b91 ldr r3, [pc, #580] @ (800b578 ) 800b332: 2201 movs r2, #1 800b334: 701a strb r2, [r3, #0] 800b336: e010 b.n 800b35a }else{ if((HAL_GetTick() - psu_on_tick) > 1 * 60000){ 800b338: f002 ffde bl 800e2f8 800b33c: 4602 mov r2, r0 800b33e: 4b93 ldr r3, [pc, #588] @ (800b58c ) 800b340: 681b ldr r3, [r3, #0] 800b342: 1ad3 subs r3, r2, r3 800b344: f64e 2260 movw r2, #60000 @ 0xea60 800b348: 4293 cmp r3, r2 800b34a: d906 bls.n 800b35a RELAY_Write(RELAY_AC, 0); 800b34c: 2100 movs r1, #0 800b34e: 2004 movs r0, #4 800b350: f7fe fa32 bl 80097b8 PSU0.enableAC = 0; 800b354: 4b88 ldr r3, [pc, #544] @ (800b578 ) 800b356: 2200 movs r2, #0 800b358: 701a strb r2, [r3, #0] } } // Текущее состояние DC-контактора по обратной связи PSU0.CONT_enabled = IN_ReadInput(IN_CONT_FB_DC); 800b35a: 2005 movs r0, #5 800b35c: f7fe faac bl 80098b8 800b360: 4603 mov r3, r0 800b362: 461a mov r2, r3 800b364: 4b84 ldr r3, [pc, #528] @ (800b578 ) 800b366: 72da strb r2, [r3, #11] // Обновляем ready с учётом ошибок if(PSU0.online && !PSU0.cont_fault && PSU0.enableAC){ 800b368: 4b83 ldr r3, [pc, #524] @ (800b578 ) 800b36a: 7a1b ldrb r3, [r3, #8] 800b36c: 2b00 cmp r3, #0 800b36e: d007 beq.n 800b380 800b370: 4b81 ldr r3, [pc, #516] @ (800b578 ) 800b372: 7b1b ldrb r3, [r3, #12] 800b374: 2b00 cmp r3, #0 800b376: d103 bne.n 800b380 800b378: 4b7f ldr r3, [pc, #508] @ (800b578 ) 800b37a: 781b ldrb r3, [r3, #0] 800b37c: 2b00 cmp r3, #0 800b37e: d102 bne.n 800b386 // PSU0.ready = 1; }else{ PSU0.ready = 0; 800b380: 4b7d ldr r3, [pc, #500] @ (800b578 ) 800b382: 2200 movs r2, #0 800b384: 725a strb r2, [r3, #9] } switch(PSU0.state){ 800b386: 4b7c ldr r3, [pc, #496] @ (800b578 ) 800b388: 79db ldrb r3, [r3, #7] 800b38a: 2b09 cmp r3, #9 800b38c: f200 8157 bhi.w 800b63e 800b390: a201 add r2, pc, #4 @ (adr r2, 800b398 ) 800b392: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b396: bf00 nop 800b398: 0800b3c1 .word 0x0800b3c1 800b39c: 0800b3f5 .word 0x0800b3f5 800b3a0: 0800b411 .word 0x0800b411 800b3a4: 0800b44f .word 0x0800b44f 800b3a8: 0800b49d .word 0x0800b49d 800b3ac: 0800b4df .word 0x0800b4df 800b3b0: 0800b549 .word 0x0800b549 800b3b4: 0800b5f1 .word 0x0800b5f1 800b3b8: 0800b5a1 .word 0x0800b5a1 800b3bc: 0800b62b .word 0x0800b62b case PSU_UNREADY: PSU0.enableOutput = 0; 800b3c0: 4b6d ldr r3, [pc, #436] @ (800b578 ) 800b3c2: 2200 movs r2, #0 800b3c4: 705a strb r2, [r3, #1] RELAY_Write(RELAY_DC, 0); 800b3c6: 2100 movs r1, #0 800b3c8: 2003 movs r0, #3 800b3ca: f7fe f9f5 bl 80097b8 if(PSU0.online && PSU0.enableAC && !PSU0.cont_fault){ 800b3ce: 4b6a ldr r3, [pc, #424] @ (800b578 ) 800b3d0: 7a1b ldrb r3, [r3, #8] 800b3d2: 2b00 cmp r3, #0 800b3d4: f000 8137 beq.w 800b646 800b3d8: 4b67 ldr r3, [pc, #412] @ (800b578 ) 800b3da: 781b ldrb r3, [r3, #0] 800b3dc: 2b00 cmp r3, #0 800b3de: f000 8132 beq.w 800b646 800b3e2: 4b65 ldr r3, [pc, #404] @ (800b578 ) 800b3e4: 7b1b ldrb r3, [r3, #12] 800b3e6: 2b00 cmp r3, #0 800b3e8: f040 812d bne.w 800b646 PSU_SwitchState(PSU_INITIALIZING); 800b3ec: 2001 movs r0, #1 800b3ee: f7ff fc8f bl 800ad10 } break; 800b3f2: e128 b.n 800b646 case PSU_INITIALIZING: if(PSU_StateTime() > 4000){ // Wait 4s for PSU to initialize 800b3f4: f7ff fca0 bl 800ad38 800b3f8: 4603 mov r3, r0 800b3fa: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800b3fe: f240 8124 bls.w 800b64a PSU0.ready = 1; 800b402: 4b5d ldr r3, [pc, #372] @ (800b578 ) 800b404: 2201 movs r2, #1 800b406: 725a strb r2, [r3, #9] PSU_SwitchState(PSU_READY); 800b408: 2002 movs r0, #2 800b40a: f7ff fc81 bl 800ad10 } break; 800b40e: e11c b.n 800b64a case PSU_READY: // модуль готов, но выключен PSU0.hv_mode = 0; 800b410: 4b59 ldr r3, [pc, #356] @ (800b578 ) 800b412: 2200 movs r2, #0 800b414: 761a strb r2, [r3, #24] PSU0.hv_tick = 0; 800b416: 4b58 ldr r3, [pc, #352] @ (800b578 ) 800b418: 2200 movs r2, #0 800b41a: 61da str r2, [r3, #28] RELAY_Write(RELAY_DC, 0); 800b41c: 2100 movs r1, #0 800b41e: 2003 movs r0, #3 800b420: f7fe f9ca bl 80097b8 if(!PSU0.ready){ 800b424: 4b54 ldr r3, [pc, #336] @ (800b578 ) 800b426: 7a5b ldrb r3, [r3, #9] 800b428: 2b00 cmp r3, #0 800b42a: d103 bne.n 800b434 PSU_SwitchState(PSU_UNREADY); 800b42c: 2000 movs r0, #0 800b42e: f7ff fc6f bl 800ad10 break; 800b432: e11b b.n 800b66c } if(CONN.EnableOutput){ 800b434: 4b54 ldr r3, [pc, #336] @ (800b588 ) 800b436: 7ddb ldrb r3, [r3, #23] 800b438: 2b00 cmp r3, #0 800b43a: f000 8108 beq.w 800b64e PSU_Enable(0, 1); 800b43e: 2101 movs r1, #1 800b440: 2000 movs r0, #0 800b442: f7ff fd81 bl 800af48 PSU_SwitchState(PSU_WAIT_ACK_ON); 800b446: 2003 movs r0, #3 800b448: f7ff fc62 bl 800ad10 } break; 800b44c: e0ff b.n 800b64e case PSU_WAIT_ACK_ON: if(PSU0.PSU_enabled && PSU0.ready){ 800b44e: 4b4a ldr r3, [pc, #296] @ (800b578 ) 800b450: 7a9b ldrb r3, [r3, #10] 800b452: 2b00 cmp r3, #0 800b454: d00c beq.n 800b470 800b456: 4b48 ldr r3, [pc, #288] @ (800b578 ) 800b458: 7a5b ldrb r3, [r3, #9] 800b45a: 2b00 cmp r3, #0 800b45c: d008 beq.n 800b470 dc_on_tick = HAL_GetTick(); 800b45e: f002 ff4b bl 800e2f8 800b462: 4603 mov r3, r0 800b464: 4a4a ldr r2, [pc, #296] @ (800b590 ) 800b466: 6013 str r3, [r2, #0] PSU_SwitchState(PSU_CONT_WAIT_ACK_ON); 800b468: 2004 movs r0, #4 800b46a: f7ff fc51 bl 800ad10 PSU0.psu_fault = 1; CONN.chargingError = CONN_ERR_PSU_FAULT; PSU_SwitchState(PSU_UNREADY); log_printf(LOG_ERR, "PSU on timeout\n"); } break; 800b46e: e0f0 b.n 800b652 }else if(PSU_StateTime() > 10000){ 800b470: f7ff fc62 bl 800ad38 800b474: 4603 mov r3, r0 800b476: f242 7210 movw r2, #10000 @ 0x2710 800b47a: 4293 cmp r3, r2 800b47c: f240 80e9 bls.w 800b652 PSU0.psu_fault = 1; 800b480: 4b3d ldr r3, [pc, #244] @ (800b578 ) 800b482: 2201 movs r2, #1 800b484: 735a strb r2, [r3, #13] CONN.chargingError = CONN_ERR_PSU_FAULT; 800b486: 4b40 ldr r3, [pc, #256] @ (800b588 ) 800b488: 220a movs r2, #10 800b48a: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_UNREADY); 800b48c: 2000 movs r0, #0 800b48e: f7ff fc3f bl 800ad10 log_printf(LOG_ERR, "PSU on timeout\n"); 800b492: 4940 ldr r1, [pc, #256] @ (800b594 ) 800b494: 2004 movs r0, #4 800b496: f7ff f833 bl 800a500 break; 800b49a: e0da b.n 800b652 case PSU_CONT_WAIT_ACK_ON: // замыкаем DC-контактор и ждём подтверждение RELAY_Write(RELAY_DC, 1); 800b49c: 2101 movs r1, #1 800b49e: 2003 movs r0, #3 800b4a0: f7fe f98a bl 80097b8 if(PSU0.CONT_enabled){ 800b4a4: 4b34 ldr r3, [pc, #208] @ (800b578 ) 800b4a6: 7adb ldrb r3, [r3, #11] 800b4a8: 2b00 cmp r3, #0 800b4aa: d003 beq.n 800b4b4 PSU_SwitchState(PSU_CONNECTED); 800b4ac: 2005 movs r0, #5 800b4ae: f7ff fc2f bl 800ad10 PSU0.cont_fault = 1; CONN.chargingError = CONN_ERR_CONTACTOR; PSU_SwitchState(PSU_CURRENT_DROP); log_printf(LOG_ERR, "Contactor error, stopping...\n"); } break; 800b4b2: e0d0 b.n 800b656 }else if(PSU_StateTime() > 1000){ 800b4b4: f7ff fc40 bl 800ad38 800b4b8: 4603 mov r3, r0 800b4ba: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b4be: f240 80ca bls.w 800b656 PSU0.cont_fault = 1; 800b4c2: 4b2d ldr r3, [pc, #180] @ (800b578 ) 800b4c4: 2201 movs r2, #1 800b4c6: 731a strb r2, [r3, #12] CONN.chargingError = CONN_ERR_CONTACTOR; 800b4c8: 4b2f ldr r3, [pc, #188] @ (800b588 ) 800b4ca: 2207 movs r2, #7 800b4cc: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_CURRENT_DROP); 800b4ce: 2006 movs r0, #6 800b4d0: f7ff fc1e bl 800ad10 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b4d4: 4930 ldr r1, [pc, #192] @ (800b598 ) 800b4d6: 2004 movs r0, #4 800b4d8: f7ff f812 bl 800a500 break; 800b4dc: e0bb b.n 800b656 case PSU_CONNECTED: // Основное рабочее состояние if(!CONN.EnableOutput || !PSU0.ready){ 800b4de: 4b2a ldr r3, [pc, #168] @ (800b588 ) 800b4e0: 7ddb ldrb r3, [r3, #23] 800b4e2: 2b00 cmp r3, #0 800b4e4: d003 beq.n 800b4ee 800b4e6: 4b24 ldr r3, [pc, #144] @ (800b578 ) 800b4e8: 7a5b ldrb r3, [r3, #9] 800b4ea: 2b00 cmp r3, #0 800b4ec: d103 bne.n 800b4f6 PSU_SwitchState(PSU_CURRENT_DROP); 800b4ee: 2006 movs r0, #6 800b4f0: f7ff fc0e bl 800ad10 break; 800b4f4: e0ba b.n 800b66c } // контроль контактора: 1 c таймаут if (IN_ReadInput(IN_CONT_FB_DC) != RELAY_Read(RELAY_DC)){ 800b4f6: 2005 movs r0, #5 800b4f8: f7fe f9de bl 80098b8 800b4fc: 4603 mov r3, r0 800b4fe: 461c mov r4, r3 800b500: 2003 movs r0, #3 800b502: f7fe f9c9 bl 8009898 800b506: 4603 mov r3, r0 800b508: 429c cmp r4, r3 800b50a: d017 beq.n 800b53c if((HAL_GetTick() - cont_ok_tick) > 1000){ 800b50c: f002 fef4 bl 800e2f8 800b510: 4602 mov r2, r0 800b512: 4b22 ldr r3, [pc, #136] @ (800b59c ) 800b514: 681b ldr r3, [r3, #0] 800b516: 1ad3 subs r3, r2, r3 800b518: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b51c: f240 809d bls.w 800b65a CONN.chargingError = CONN_ERR_CONTACTOR; 800b520: 4b19 ldr r3, [pc, #100] @ (800b588 ) 800b522: 2207 movs r2, #7 800b524: 775a strb r2, [r3, #29] PSU0.cont_fault = 1; 800b526: 4b14 ldr r3, [pc, #80] @ (800b578 ) 800b528: 2201 movs r2, #1 800b52a: 731a strb r2, [r3, #12] PSU_SwitchState(PSU_CURRENT_DROP); 800b52c: 2006 movs r0, #6 800b52e: f7ff fbef bl 800ad10 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b532: 4919 ldr r1, [pc, #100] @ (800b598 ) 800b534: 2004 movs r0, #4 800b536: f7fe ffe3 bl 800a500 } }else{ cont_ok_tick = HAL_GetTick(); } break; 800b53a: e08e b.n 800b65a cont_ok_tick = HAL_GetTick(); 800b53c: f002 fedc bl 800e2f8 800b540: 4603 mov r3, r0 800b542: 4a16 ldr r2, [pc, #88] @ (800b59c ) 800b544: 6013 str r3, [r2, #0] break; 800b546: e088 b.n 800b65a case PSU_CURRENT_DROP: // снижаем ток до нуля перед отключением DC CONN.RequestedCurrent = 0; 800b548: 4b0f ldr r3, [pc, #60] @ (800b588 ) 800b54a: 2200 movs r2, #0 800b54c: 745a strb r2, [r3, #17] 800b54e: 2200 movs r2, #0 800b550: 749a strb r2, [r3, #18] // если ток действительно упал или вышло время, отключаем DC if((CONN.MeasuredCurrent < 30) || (PSU_StateTime() > 5000)){ 800b552: 4b0d ldr r3, [pc, #52] @ (800b588 ) 800b554: f8b3 3015 ldrh.w r3, [r3, #21] 800b558: b29b uxth r3, r3 800b55a: 2b1d cmp r3, #29 800b55c: d906 bls.n 800b56c 800b55e: f7ff fbeb bl 800ad38 800b562: 4603 mov r3, r0 800b564: f241 3288 movw r2, #5000 @ 0x1388 800b568: 4293 cmp r3, r2 800b56a: d978 bls.n 800b65e PSU_SwitchState(PSU_CONT_WAIT_ACK_OFF); 800b56c: 2008 movs r0, #8 800b56e: f7ff fbcf bl 800ad10 } break; 800b572: e074 b.n 800b65e 800b574: 20000934 .word 0x20000934 800b578: 2000090c .word 0x2000090c 800b57c: 200008d4 .word 0x200008d4 800b580: 200008e0 .word 0x200008e0 800b584: 200008fc .word 0x200008fc 800b588: 200003b0 .word 0x200003b0 800b58c: 2000095c .word 0x2000095c 800b590: 20000960 .word 0x20000960 800b594: 08017120 .word 0x08017120 800b598: 08017130 .word 0x08017130 800b59c: 20000964 .word 0x20000964 case PSU_CONT_WAIT_ACK_OFF: RELAY_Write(RELAY_DC, 0); 800b5a0: 2100 movs r1, #0 800b5a2: 2003 movs r0, #3 800b5a4: f7fe f908 bl 80097b8 if(!PSU0.CONT_enabled){ 800b5a8: 4b31 ldr r3, [pc, #196] @ (800b670 ) 800b5aa: 7adb ldrb r3, [r3, #11] 800b5ac: 2b00 cmp r3, #0 800b5ae: d107 bne.n 800b5c0 PSU_Enable(0, 0); 800b5b0: 2100 movs r1, #0 800b5b2: 2000 movs r0, #0 800b5b4: f7ff fcc8 bl 800af48 PSU_SwitchState(PSU_WAIT_ACK_OFF); 800b5b8: 2007 movs r0, #7 800b5ba: f7ff fba9 bl 800ad10 CONN.chargingError = CONN_ERR_CONTACTOR; PSU_Enable(0, 0); PSU_SwitchState(PSU_WAIT_ACK_OFF); log_printf(LOG_ERR, "Contactor error, stopping...\n"); } break; 800b5be: e050 b.n 800b662 }else if(PSU_StateTime() > 1000){ 800b5c0: f7ff fbba bl 800ad38 800b5c4: 4603 mov r3, r0 800b5c6: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800b5ca: d94a bls.n 800b662 PSU0.cont_fault = 1; 800b5cc: 4b28 ldr r3, [pc, #160] @ (800b670 ) 800b5ce: 2201 movs r2, #1 800b5d0: 731a strb r2, [r3, #12] CONN.chargingError = CONN_ERR_CONTACTOR; 800b5d2: 4b28 ldr r3, [pc, #160] @ (800b674 ) 800b5d4: 2207 movs r2, #7 800b5d6: 775a strb r2, [r3, #29] PSU_Enable(0, 0); 800b5d8: 2100 movs r1, #0 800b5da: 2000 movs r0, #0 800b5dc: f7ff fcb4 bl 800af48 PSU_SwitchState(PSU_WAIT_ACK_OFF); 800b5e0: 2007 movs r0, #7 800b5e2: f7ff fb95 bl 800ad10 log_printf(LOG_ERR, "Contactor error, stopping...\n"); 800b5e6: 4924 ldr r1, [pc, #144] @ (800b678 ) 800b5e8: 2004 movs r0, #4 800b5ea: f7fe ff89 bl 800a500 break; 800b5ee: e038 b.n 800b662 case PSU_WAIT_ACK_OFF: if(!PSU0.PSU_enabled){ 800b5f0: 4b1f ldr r3, [pc, #124] @ (800b670 ) 800b5f2: 7a9b ldrb r3, [r3, #10] 800b5f4: 2b00 cmp r3, #0 800b5f6: d103 bne.n 800b600 PSU_SwitchState(PSU_OFF_PAUSE); 800b5f8: 2009 movs r0, #9 800b5fa: f7ff fb89 bl 800ad10 PSU0.psu_fault = 1; CONN.chargingError = CONN_ERR_PSU_FAULT; PSU_SwitchState(PSU_UNREADY); log_printf(LOG_ERR, "PSU off timeout\n"); } break; 800b5fe: e032 b.n 800b666 }else if(PSU_StateTime() > 10000){ 800b600: f7ff fb9a bl 800ad38 800b604: 4603 mov r3, r0 800b606: f242 7210 movw r2, #10000 @ 0x2710 800b60a: 4293 cmp r3, r2 800b60c: d92b bls.n 800b666 PSU0.psu_fault = 1; 800b60e: 4b18 ldr r3, [pc, #96] @ (800b670 ) 800b610: 2201 movs r2, #1 800b612: 735a strb r2, [r3, #13] CONN.chargingError = CONN_ERR_PSU_FAULT; 800b614: 4b17 ldr r3, [pc, #92] @ (800b674 ) 800b616: 220a movs r2, #10 800b618: 775a strb r2, [r3, #29] PSU_SwitchState(PSU_UNREADY); 800b61a: 2000 movs r0, #0 800b61c: f7ff fb78 bl 800ad10 log_printf(LOG_ERR, "PSU off timeout\n"); 800b620: 4916 ldr r1, [pc, #88] @ (800b67c ) 800b622: 2004 movs r0, #4 800b624: f7fe ff6c bl 800a500 break; 800b628: e01d b.n 800b666 case PSU_OFF_PAUSE: if(PSU_StateTime() > 4000){ 800b62a: f7ff fb85 bl 800ad38 800b62e: 4603 mov r3, r0 800b630: f5b3 6f7a cmp.w r3, #4000 @ 0xfa0 800b634: d919 bls.n 800b66a PSU_SwitchState(PSU_READY); 800b636: 2002 movs r0, #2 800b638: f7ff fb6a bl 800ad10 } break; 800b63c: e015 b.n 800b66a default: PSU_SwitchState(PSU_UNREADY); 800b63e: 2000 movs r0, #0 800b640: f7ff fb66 bl 800ad10 break; 800b644: e012 b.n 800b66c break; 800b646: bf00 nop 800b648: e010 b.n 800b66c break; 800b64a: bf00 nop 800b64c: e00e b.n 800b66c break; 800b64e: bf00 nop 800b650: e00c b.n 800b66c break; 800b652: bf00 nop 800b654: e00a b.n 800b66c break; 800b656: bf00 nop 800b658: e008 b.n 800b66c break; 800b65a: bf00 nop 800b65c: e006 b.n 800b66c break; 800b65e: bf00 nop 800b660: e004 b.n 800b66c break; 800b662: bf00 nop 800b664: e002 b.n 800b66c break; 800b666: bf00 nop 800b668: e000 b.n 800b66c break; 800b66a: bf00 nop } } 800b66c: bf00 nop 800b66e: bd98 pop {r3, r4, r7, pc} 800b670: 2000090c .word 0x2000090c 800b674: 200003b0 .word 0x200003b0 800b678: 08017130 .word 0x08017130 800b67c: 08017150 .word 0x08017150 0800b680 : .Th = 10, .Tf = 50, .Tl = 0, }; void LED_Write(){ 800b680: b580 push {r7, lr} 800b682: af00 add r7, sp, #0 if(CONN.chargingError != CONN_NO_ERROR){ 800b684: 4b3c ldr r3, [pc, #240] @ (800b778 ) 800b686: 7f5b ldrb r3, [r3, #29] 800b688: 2b00 cmp r3, #0 800b68a: d003 beq.n 800b694 LED_SetColor(&color_error); 800b68c: 483b ldr r0, [pc, #236] @ (800b77c ) 800b68e: f000 f933 bl 800b8f8 return; 800b692: e06f b.n 800b774 } if(CONN.connControl == CMD_FORCE_UNLOCK){ 800b694: 4b38 ldr r3, [pc, #224] @ (800b778 ) 800b696: 781b ldrb r3, [r3, #0] 800b698: 2b03 cmp r3, #3 800b69a: d103 bne.n 800b6a4 LED_SetColor(&color_unlock); 800b69c: 4838 ldr r0, [pc, #224] @ (800b780 ) 800b69e: f000 f92b bl 800b8f8 return; 800b6a2: e067 b.n 800b774 } if(CONN.connControl == CMD_STOP){ 800b6a4: 4b34 ldr r3, [pc, #208] @ (800b778 ) 800b6a6: 781b ldrb r3, [r3, #0] 800b6a8: 2b01 cmp r3, #1 800b6aa: d103 bne.n 800b6b4 LED_SetColor(&color_estop); 800b6ac: 4835 ldr r0, [pc, #212] @ (800b784 ) 800b6ae: f000 f923 bl 800b8f8 return; 800b6b2: e05f b.n 800b774 } switch(CONN.connState){ 800b6b4: 4b30 ldr r3, [pc, #192] @ (800b778 ) 800b6b6: 785b ldrb r3, [r3, #1] 800b6b8: 2b0d cmp r3, #13 800b6ba: d857 bhi.n 800b76c 800b6bc: a201 add r2, pc, #4 @ (adr r2, 800b6c4 ) 800b6be: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b6c2: bf00 nop 800b6c4: 0800b6fd .word 0x0800b6fd 800b6c8: 0800b705 .word 0x0800b705 800b6cc: 0800b70d .word 0x0800b70d 800b6d0: 0800b715 .word 0x0800b715 800b6d4: 0800b71d .word 0x0800b71d 800b6d8: 0800b725 .word 0x0800b725 800b6dc: 0800b72d .word 0x0800b72d 800b6e0: 0800b735 .word 0x0800b735 800b6e4: 0800b73d .word 0x0800b73d 800b6e8: 0800b745 .word 0x0800b745 800b6ec: 0800b74d .word 0x0800b74d 800b6f0: 0800b755 .word 0x0800b755 800b6f4: 0800b75d .word 0x0800b75d 800b6f8: 0800b765 .word 0x0800b765 case Unknown: LED_SetColor(&color_unknown); 800b6fc: 4822 ldr r0, [pc, #136] @ (800b788 ) 800b6fe: f000 f8fb bl 800b8f8 break; 800b702: e037 b.n 800b774 case Unplugged: LED_SetColor(&color_unplugged); 800b704: 4821 ldr r0, [pc, #132] @ (800b78c ) 800b706: f000 f8f7 bl 800b8f8 break; 800b70a: e033 b.n 800b774 case Disabled: LED_SetColor(&color_error); 800b70c: 481b ldr r0, [pc, #108] @ (800b77c ) 800b70e: f000 f8f3 bl 800b8f8 break; 800b712: e02f b.n 800b774 case Preparing: LED_SetColor(&color_preparing); 800b714: 481e ldr r0, [pc, #120] @ (800b790 ) 800b716: f000 f8ef bl 800b8f8 break; 800b71a: e02b b.n 800b774 case AuthRequired: LED_SetColor(&color_preparing); 800b71c: 481c ldr r0, [pc, #112] @ (800b790 ) 800b71e: f000 f8eb bl 800b8f8 break; 800b722: e027 b.n 800b774 case WaitingForEnergy: LED_SetColor(&color_charging); 800b724: 481b ldr r0, [pc, #108] @ (800b794 ) 800b726: f000 f8e7 bl 800b8f8 break; 800b72a: e023 b.n 800b774 case ChargingPausedEV: LED_SetColor(&color_charging); 800b72c: 4819 ldr r0, [pc, #100] @ (800b794 ) 800b72e: f000 f8e3 bl 800b8f8 break; 800b732: e01f b.n 800b774 case ChargingPausedEVSE: LED_SetColor(&color_charging); 800b734: 4817 ldr r0, [pc, #92] @ (800b794 ) 800b736: f000 f8df bl 800b8f8 break; 800b73a: e01b b.n 800b774 case Charging: LED_SetColor(&color_charging); 800b73c: 4815 ldr r0, [pc, #84] @ (800b794 ) 800b73e: f000 f8db bl 800b8f8 break; 800b742: e017 b.n 800b774 case AuthTimeout: LED_SetColor(&color_finished); 800b744: 4814 ldr r0, [pc, #80] @ (800b798 ) 800b746: f000 f8d7 bl 800b8f8 break; 800b74a: e013 b.n 800b774 case Finished: LED_SetColor(&color_finished); 800b74c: 4812 ldr r0, [pc, #72] @ (800b798 ) 800b74e: f000 f8d3 bl 800b8f8 break; 800b752: e00f b.n 800b774 case FinishedEVSE: LED_SetColor(&color_finished); 800b754: 4810 ldr r0, [pc, #64] @ (800b798 ) 800b756: f000 f8cf bl 800b8f8 break; 800b75a: e00b b.n 800b774 case FinishedEV: LED_SetColor(&color_finished); 800b75c: 480e ldr r0, [pc, #56] @ (800b798 ) 800b75e: f000 f8cb bl 800b8f8 break; 800b762: e007 b.n 800b774 case Replugging: LED_SetColor(&color_preparing); 800b764: 480a ldr r0, [pc, #40] @ (800b790 ) 800b766: f000 f8c7 bl 800b8f8 break; 800b76a: e003 b.n 800b774 default: LED_SetColor(&color_unknown); 800b76c: 4806 ldr r0, [pc, #24] @ (800b788 ) 800b76e: f000 f8c3 bl 800b8f8 break; 800b772: bf00 nop } } 800b774: bd80 pop {r7, pc} 800b776: bf00 nop 800b778: 200003b0 .word 0x200003b0 800b77c: 20000060 .word 0x20000060 800b780: 20000018 .word 0x20000018 800b784: 2000000c .word 0x2000000c 800b788: 20000024 .word 0x20000024 800b78c: 20000030 .word 0x20000030 800b790: 2000003c .word 0x2000003c 800b794: 20000048 .word 0x20000048 800b798: 20000054 .word 0x20000054 0800b79c : void interpolateColors(RGB_t* color1, RGB_t* color2, uint16_t a, uint16_t b, RGB_t *result) { 800b79c: b480 push {r7} 800b79e: b087 sub sp, #28 800b7a0: af00 add r7, sp, #0 800b7a2: 60f8 str r0, [r7, #12] 800b7a4: 60b9 str r1, [r7, #8] 800b7a6: 4611 mov r1, r2 800b7a8: 461a mov r2, r3 800b7aa: 460b mov r3, r1 800b7ac: 80fb strh r3, [r7, #6] 800b7ae: 4613 mov r3, r2 800b7b0: 80bb strh r3, [r7, #4] // Проверяем, чтобы a не выходила за пределы диапазона if (a > b) a = b; 800b7b2: 88fa ldrh r2, [r7, #6] 800b7b4: 88bb ldrh r3, [r7, #4] 800b7b6: 429a cmp r2, r3 800b7b8: d901 bls.n 800b7be 800b7ba: 88bb ldrh r3, [r7, #4] 800b7bc: 80fb strh r3, [r7, #6] if(b==0) b = 1; 800b7be: 88bb ldrh r3, [r7, #4] 800b7c0: 2b00 cmp r3, #0 800b7c2: d101 bne.n 800b7c8 800b7c4: 2301 movs r3, #1 800b7c6: 80bb strh r3, [r7, #4] // Вычисляем коэффициент смешивания в виде целого числа uint16_t t = (a * 255) / b; // t будет от 0 до 255 800b7c8: 88fa ldrh r2, [r7, #6] 800b7ca: 4613 mov r3, r2 800b7cc: 021b lsls r3, r3, #8 800b7ce: 1a9a subs r2, r3, r2 800b7d0: 88bb ldrh r3, [r7, #4] 800b7d2: fb92 f3f3 sdiv r3, r2, r3 800b7d6: 82fb strh r3, [r7, #22] // Линейная интерполяция с использованием целых чисел result->R = (color1->R * (255 - t) + color2->R * t) / 255; 800b7d8: 68fb ldr r3, [r7, #12] 800b7da: 781b ldrb r3, [r3, #0] 800b7dc: 461a mov r2, r3 800b7de: 8afb ldrh r3, [r7, #22] 800b7e0: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b7e4: fb03 f202 mul.w r2, r3, r2 800b7e8: 68bb ldr r3, [r7, #8] 800b7ea: 781b ldrb r3, [r3, #0] 800b7ec: 4619 mov r1, r3 800b7ee: 8afb ldrh r3, [r7, #22] 800b7f0: fb01 f303 mul.w r3, r1, r3 800b7f4: 4413 add r3, r2 800b7f6: 4a20 ldr r2, [pc, #128] @ (800b878 ) 800b7f8: fb82 1203 smull r1, r2, r2, r3 800b7fc: 441a add r2, r3 800b7fe: 11d2 asrs r2, r2, #7 800b800: 17db asrs r3, r3, #31 800b802: 1ad3 subs r3, r2, r3 800b804: b2da uxtb r2, r3 800b806: 6a3b ldr r3, [r7, #32] 800b808: 701a strb r2, [r3, #0] result->G = (color1->G * (255 - t) + color2->G * t) / 255; 800b80a: 68fb ldr r3, [r7, #12] 800b80c: 785b ldrb r3, [r3, #1] 800b80e: 461a mov r2, r3 800b810: 8afb ldrh r3, [r7, #22] 800b812: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b816: fb03 f202 mul.w r2, r3, r2 800b81a: 68bb ldr r3, [r7, #8] 800b81c: 785b ldrb r3, [r3, #1] 800b81e: 4619 mov r1, r3 800b820: 8afb ldrh r3, [r7, #22] 800b822: fb01 f303 mul.w r3, r1, r3 800b826: 4413 add r3, r2 800b828: 4a13 ldr r2, [pc, #76] @ (800b878 ) 800b82a: fb82 1203 smull r1, r2, r2, r3 800b82e: 441a add r2, r3 800b830: 11d2 asrs r2, r2, #7 800b832: 17db asrs r3, r3, #31 800b834: 1ad3 subs r3, r2, r3 800b836: b2da uxtb r2, r3 800b838: 6a3b ldr r3, [r7, #32] 800b83a: 705a strb r2, [r3, #1] result->B = (color1->B * (255 - t) + color2->B * t) / 255; 800b83c: 68fb ldr r3, [r7, #12] 800b83e: 789b ldrb r3, [r3, #2] 800b840: 461a mov r2, r3 800b842: 8afb ldrh r3, [r7, #22] 800b844: f1c3 03ff rsb r3, r3, #255 @ 0xff 800b848: fb03 f202 mul.w r2, r3, r2 800b84c: 68bb ldr r3, [r7, #8] 800b84e: 789b ldrb r3, [r3, #2] 800b850: 4619 mov r1, r3 800b852: 8afb ldrh r3, [r7, #22] 800b854: fb01 f303 mul.w r3, r1, r3 800b858: 4413 add r3, r2 800b85a: 4a07 ldr r2, [pc, #28] @ (800b878 ) 800b85c: fb82 1203 smull r1, r2, r2, r3 800b860: 441a add r2, r3 800b862: 11d2 asrs r2, r2, #7 800b864: 17db asrs r3, r3, #31 800b866: 1ad3 subs r3, r2, r3 800b868: b2da uxtb r2, r3 800b86a: 6a3b ldr r3, [r7, #32] 800b86c: 709a strb r2, [r3, #2] } 800b86e: bf00 nop 800b870: 371c adds r7, #28 800b872: 46bd mov sp, r7 800b874: bc80 pop {r7} 800b876: 4770 bx lr 800b878: 80808081 .word 0x80808081 0800b87c : void RGB_SetColor(RGB_t *color){ 800b87c: b480 push {r7} 800b87e: b083 sub sp, #12 800b880: af00 add r7, sp, #0 800b882: 6078 str r0, [r7, #4] htim4.Instance->CCR2 = color->R * 100 / 255; 800b884: 687b ldr r3, [r7, #4] 800b886: 781b ldrb r3, [r3, #0] 800b888: 461a mov r2, r3 800b88a: 2364 movs r3, #100 @ 0x64 800b88c: fb02 f303 mul.w r3, r2, r3 800b890: 4a17 ldr r2, [pc, #92] @ (800b8f0 ) 800b892: fb82 1203 smull r1, r2, r2, r3 800b896: 441a add r2, r3 800b898: 11d2 asrs r2, r2, #7 800b89a: 17db asrs r3, r3, #31 800b89c: 1ad2 subs r2, r2, r3 800b89e: 4b15 ldr r3, [pc, #84] @ (800b8f4 ) 800b8a0: 681b ldr r3, [r3, #0] 800b8a2: 639a str r2, [r3, #56] @ 0x38 htim4.Instance->CCR3 = color->G * 100 / 255; 800b8a4: 687b ldr r3, [r7, #4] 800b8a6: 785b ldrb r3, [r3, #1] 800b8a8: 461a mov r2, r3 800b8aa: 2364 movs r3, #100 @ 0x64 800b8ac: fb02 f303 mul.w r3, r2, r3 800b8b0: 4a0f ldr r2, [pc, #60] @ (800b8f0 ) 800b8b2: fb82 1203 smull r1, r2, r2, r3 800b8b6: 441a add r2, r3 800b8b8: 11d2 asrs r2, r2, #7 800b8ba: 17db asrs r3, r3, #31 800b8bc: 1ad2 subs r2, r2, r3 800b8be: 4b0d ldr r3, [pc, #52] @ (800b8f4 ) 800b8c0: 681b ldr r3, [r3, #0] 800b8c2: 63da str r2, [r3, #60] @ 0x3c htim4.Instance->CCR4 = color->B * 100 / 255; 800b8c4: 687b ldr r3, [r7, #4] 800b8c6: 789b ldrb r3, [r3, #2] 800b8c8: 461a mov r2, r3 800b8ca: 2364 movs r3, #100 @ 0x64 800b8cc: fb02 f303 mul.w r3, r2, r3 800b8d0: 4a07 ldr r2, [pc, #28] @ (800b8f0 ) 800b8d2: fb82 1203 smull r1, r2, r2, r3 800b8d6: 441a add r2, r3 800b8d8: 11d2 asrs r2, r2, #7 800b8da: 17db asrs r3, r3, #31 800b8dc: 1ad2 subs r2, r2, r3 800b8de: 4b05 ldr r3, [pc, #20] @ (800b8f4 ) 800b8e0: 681b ldr r3, [r3, #0] 800b8e2: 641a str r2, [r3, #64] @ 0x40 } 800b8e4: bf00 nop 800b8e6: 370c adds r7, #12 800b8e8: 46bd mov sp, r7 800b8ea: bc80 pop {r7} 800b8ec: 4770 bx lr 800b8ee: bf00 nop 800b8f0: 80808081 .word 0x80808081 800b8f4: 2000121c .word 0x2000121c 0800b8f8 : void LED_SetColor(RGB_Cycle_t *color){ 800b8f8: b480 push {r7} 800b8fa: b083 sub sp, #12 800b8fc: af00 add r7, sp, #0 800b8fe: 6078 str r0, [r7, #4] memcpy(&LED_Cycle, color, sizeof(RGB_Cycle_t)); 800b900: 4b05 ldr r3, [pc, #20] @ (800b918 ) 800b902: 687a ldr r2, [r7, #4] 800b904: 6810 ldr r0, [r2, #0] 800b906: 6851 ldr r1, [r2, #4] 800b908: c303 stmia r3!, {r0, r1} 800b90a: 8912 ldrh r2, [r2, #8] 800b90c: 801a strh r2, [r3, #0] } 800b90e: bf00 nop 800b910: 370c adds r7, #12 800b912: 46bd mov sp, r7 800b914: bc80 pop {r7} 800b916: 4770 bx lr 800b918: 20000970 .word 0x20000970 0800b91c : void LED_Init(){ 800b91c: b580 push {r7, lr} 800b91e: b082 sub sp, #8 800b920: af00 add r7, sp, #0 RGB_t color = {.R=0, .G=0, .B=0}; 800b922: 2300 movs r3, #0 800b924: 713b strb r3, [r7, #4] 800b926: 2300 movs r3, #0 800b928: 717b strb r3, [r7, #5] 800b92a: 2300 movs r3, #0 800b92c: 71bb strb r3, [r7, #6] HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_2); 800b92e: 2104 movs r1, #4 800b930: 4809 ldr r0, [pc, #36] @ (800b958 ) 800b932: f006 fbaf bl 8012094 HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_3); 800b936: 2108 movs r1, #8 800b938: 4807 ldr r0, [pc, #28] @ (800b958 ) 800b93a: f006 fbab bl 8012094 HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_4); 800b93e: 210c movs r1, #12 800b940: 4805 ldr r0, [pc, #20] @ (800b958 ) 800b942: f006 fba7 bl 8012094 RGB_SetColor(&color); 800b946: 1d3b adds r3, r7, #4 800b948: 4618 mov r0, r3 800b94a: f7ff ff97 bl 800b87c } 800b94e: bf00 nop 800b950: 3708 adds r7, #8 800b952: 46bd mov sp, r7 800b954: bd80 pop {r7, pc} 800b956: bf00 nop 800b958: 2000121c .word 0x2000121c 0800b95c : // } // } // } // } void LED_Task(){ 800b95c: b580 push {r7, lr} 800b95e: b082 sub sp, #8 800b960: af02 add r7, sp, #8 static uint32_t led_tick; if((HAL_GetTick() - led_tick) > 20){ 800b962: f002 fcc9 bl 800e2f8 800b966: 4602 mov r2, r0 800b968: 4b46 ldr r3, [pc, #280] @ (800ba84 ) 800b96a: 681b ldr r3, [r3, #0] 800b96c: 1ad3 subs r3, r2, r3 800b96e: 2b14 cmp r3, #20 800b970: f240 8085 bls.w 800ba7e led_tick = HAL_GetTick(); 800b974: f002 fcc0 bl 800e2f8 800b978: 4603 mov r3, r0 800b97a: 4a42 ldr r2, [pc, #264] @ (800ba84 ) 800b97c: 6013 str r3, [r2, #0] LED_State.tick++; 800b97e: 4b42 ldr r3, [pc, #264] @ (800ba88 ) 800b980: 885b ldrh r3, [r3, #2] 800b982: 3301 adds r3, #1 800b984: b29a uxth r2, r3 800b986: 4b40 ldr r3, [pc, #256] @ (800ba88 ) 800b988: 805a strh r2, [r3, #2] // LED_PhaseSync(led_n); switch(LED_State.state){ 800b98a: 4b3f ldr r3, [pc, #252] @ (800ba88 ) 800b98c: 781b ldrb r3, [r3, #0] 800b98e: 2b03 cmp r3, #3 800b990: d867 bhi.n 800ba62 800b992: a201 add r2, pc, #4 @ (adr r2, 800b998 ) 800b994: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800b998: 0800b9a9 .word 0x0800b9a9 800b99c: 0800b9db .word 0x0800b9db 800b9a0: 0800ba07 .word 0x0800ba07 800b9a4: 0800ba39 .word 0x0800ba39 case LED_RISING: interpolateColors(&LED_Cycle.Color2, &LED_Cycle.Color1, LED_State.tick, LED_Cycle.Tr, &LED_State.color); 800b9a8: 4b37 ldr r3, [pc, #220] @ (800ba88 ) 800b9aa: 885a ldrh r2, [r3, #2] 800b9ac: 4b37 ldr r3, [pc, #220] @ (800ba8c ) 800b9ae: 78db ldrb r3, [r3, #3] 800b9b0: 4619 mov r1, r3 800b9b2: 4b37 ldr r3, [pc, #220] @ (800ba90 ) 800b9b4: 9300 str r3, [sp, #0] 800b9b6: 460b mov r3, r1 800b9b8: 4934 ldr r1, [pc, #208] @ (800ba8c ) 800b9ba: 4836 ldr r0, [pc, #216] @ (800ba94 ) 800b9bc: f7ff feee bl 800b79c if(LED_State.tick>LED_Cycle.Tr){ 800b9c0: 4b31 ldr r3, [pc, #196] @ (800ba88 ) 800b9c2: 885b ldrh r3, [r3, #2] 800b9c4: 4a31 ldr r2, [pc, #196] @ (800ba8c ) 800b9c6: 78d2 ldrb r2, [r2, #3] 800b9c8: 4293 cmp r3, r2 800b9ca: d94e bls.n 800ba6a LED_State.state = LED_HIGH; 800b9cc: 4b2e ldr r3, [pc, #184] @ (800ba88 ) 800b9ce: 2201 movs r2, #1 800b9d0: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b9d2: 4b2d ldr r3, [pc, #180] @ (800ba88 ) 800b9d4: 2200 movs r2, #0 800b9d6: 805a strh r2, [r3, #2] } break; 800b9d8: e047 b.n 800ba6a case LED_HIGH: memcpy(&LED_State.color, &LED_Cycle.Color1, sizeof(RGB_t)); 800b9da: 4b2b ldr r3, [pc, #172] @ (800ba88 ) 800b9dc: 4a2b ldr r2, [pc, #172] @ (800ba8c ) 800b9de: 3304 adds r3, #4 800b9e0: 6812 ldr r2, [r2, #0] 800b9e2: 4611 mov r1, r2 800b9e4: 8019 strh r1, [r3, #0] 800b9e6: 3302 adds r3, #2 800b9e8: 0c12 lsrs r2, r2, #16 800b9ea: 701a strb r2, [r3, #0] if(LED_State.tick>LED_Cycle.Th){ 800b9ec: 4b26 ldr r3, [pc, #152] @ (800ba88 ) 800b9ee: 885b ldrh r3, [r3, #2] 800b9f0: 4a26 ldr r2, [pc, #152] @ (800ba8c ) 800b9f2: 7912 ldrb r2, [r2, #4] 800b9f4: 4293 cmp r3, r2 800b9f6: d93a bls.n 800ba6e LED_State.state = LED_FALLING; 800b9f8: 4b23 ldr r3, [pc, #140] @ (800ba88 ) 800b9fa: 2202 movs r2, #2 800b9fc: 701a strb r2, [r3, #0] LED_State.tick = 0; 800b9fe: 4b22 ldr r3, [pc, #136] @ (800ba88 ) 800ba00: 2200 movs r2, #0 800ba02: 805a strh r2, [r3, #2] } break; 800ba04: e033 b.n 800ba6e case LED_FALLING: interpolateColors(&LED_Cycle.Color1, &LED_Cycle.Color2, LED_State.tick, LED_Cycle.Tf, &LED_State.color); 800ba06: 4b20 ldr r3, [pc, #128] @ (800ba88 ) 800ba08: 885a ldrh r2, [r3, #2] 800ba0a: 4b20 ldr r3, [pc, #128] @ (800ba8c ) 800ba0c: 795b ldrb r3, [r3, #5] 800ba0e: 4619 mov r1, r3 800ba10: 4b1f ldr r3, [pc, #124] @ (800ba90 ) 800ba12: 9300 str r3, [sp, #0] 800ba14: 460b mov r3, r1 800ba16: 491f ldr r1, [pc, #124] @ (800ba94 ) 800ba18: 481c ldr r0, [pc, #112] @ (800ba8c ) 800ba1a: f7ff febf bl 800b79c if(LED_State.tick>LED_Cycle.Tf){ 800ba1e: 4b1a ldr r3, [pc, #104] @ (800ba88 ) 800ba20: 885b ldrh r3, [r3, #2] 800ba22: 4a1a ldr r2, [pc, #104] @ (800ba8c ) 800ba24: 7952 ldrb r2, [r2, #5] 800ba26: 4293 cmp r3, r2 800ba28: d923 bls.n 800ba72 LED_State.state = LED_LOW; 800ba2a: 4b17 ldr r3, [pc, #92] @ (800ba88 ) 800ba2c: 2203 movs r2, #3 800ba2e: 701a strb r2, [r3, #0] LED_State.tick = 0; 800ba30: 4b15 ldr r3, [pc, #84] @ (800ba88 ) 800ba32: 2200 movs r2, #0 800ba34: 805a strh r2, [r3, #2] } break; 800ba36: e01c b.n 800ba72 case LED_LOW: memcpy(&LED_State.color, &LED_Cycle.Color2, sizeof(RGB_t)); 800ba38: 4b13 ldr r3, [pc, #76] @ (800ba88 ) 800ba3a: 4a14 ldr r2, [pc, #80] @ (800ba8c ) 800ba3c: 3304 adds r3, #4 800ba3e: 3207 adds r2, #7 800ba40: 8811 ldrh r1, [r2, #0] 800ba42: 7892 ldrb r2, [r2, #2] 800ba44: 8019 strh r1, [r3, #0] 800ba46: 709a strb r2, [r3, #2] if(LED_State.tick>LED_Cycle.Tl){ 800ba48: 4b0f ldr r3, [pc, #60] @ (800ba88 ) 800ba4a: 885b ldrh r3, [r3, #2] 800ba4c: 4a0f ldr r2, [pc, #60] @ (800ba8c ) 800ba4e: 7992 ldrb r2, [r2, #6] 800ba50: 4293 cmp r3, r2 800ba52: d910 bls.n 800ba76 LED_State.state = LED_RISING; 800ba54: 4b0c ldr r3, [pc, #48] @ (800ba88 ) 800ba56: 2200 movs r2, #0 800ba58: 701a strb r2, [r3, #0] LED_State.tick = 0; 800ba5a: 4b0b ldr r3, [pc, #44] @ (800ba88 ) 800ba5c: 2200 movs r2, #0 800ba5e: 805a strh r2, [r3, #2] } break; 800ba60: e009 b.n 800ba76 default: LED_State.state = LED_RISING; 800ba62: 4b09 ldr r3, [pc, #36] @ (800ba88 ) 800ba64: 2200 movs r2, #0 800ba66: 701a strb r2, [r3, #0] 800ba68: e006 b.n 800ba78 break; 800ba6a: bf00 nop 800ba6c: e004 b.n 800ba78 break; 800ba6e: bf00 nop 800ba70: e002 b.n 800ba78 break; 800ba72: bf00 nop 800ba74: e000 b.n 800ba78 break; 800ba76: bf00 nop } RGB_SetColor(&LED_State.color); 800ba78: 4805 ldr r0, [pc, #20] @ (800ba90 ) 800ba7a: f7ff feff bl 800b87c } } 800ba7e: bf00 nop 800ba80: 46bd mov sp, r7 800ba82: bd80 pop {r7, pc} 800ba84: 2000097c .word 0x2000097c 800ba88: 20000968 .word 0x20000968 800ba8c: 20000970 .word 0x20000970 800ba90: 2000096c .word 0x2000096c 800ba94: 20000977 .word 0x20000977 0800ba98 : RTC_HandleTypeDef hrtc; /* RTC init function */ void MX_RTC_Init(void) { 800ba98: b580 push {r7, lr} 800ba9a: af00 add r7, sp, #0 /* USER CODE END RTC_Init 1 */ /** Initialize RTC Only */ hrtc.Instance = RTC; 800ba9c: 4b0a ldr r3, [pc, #40] @ (800bac8 ) 800ba9e: 4a0b ldr r2, [pc, #44] @ (800bacc ) 800baa0: 601a str r2, [r3, #0] hrtc.Init.AsynchPrediv = RTC_AUTO_1_SECOND; 800baa2: 4b09 ldr r3, [pc, #36] @ (800bac8 ) 800baa4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 800baa8: 605a str r2, [r3, #4] hrtc.Init.OutPut = RTC_OUTPUTSOURCE_ALARM; 800baaa: 4b07 ldr r3, [pc, #28] @ (800bac8 ) 800baac: f44f 7280 mov.w r2, #256 @ 0x100 800bab0: 609a str r2, [r3, #8] if (HAL_RTC_Init(&hrtc) != HAL_OK) 800bab2: 4805 ldr r0, [pc, #20] @ (800bac8 ) 800bab4: f006 f83c bl 8011b30 800bab8: 4603 mov r3, r0 800baba: 2b00 cmp r3, #0 800babc: d001 beq.n 800bac2 { Error_Handler(); 800babe: f7ff f8b7 bl 800ac30 } /* USER CODE BEGIN RTC_Init 2 */ /* USER CODE END RTC_Init 2 */ } 800bac2: bf00 nop 800bac4: bd80 pop {r7, pc} 800bac6: bf00 nop 800bac8: 20000980 .word 0x20000980 800bacc: 40002800 .word 0x40002800 0800bad0 : void HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle) { 800bad0: b580 push {r7, lr} 800bad2: b084 sub sp, #16 800bad4: af00 add r7, sp, #0 800bad6: 6078 str r0, [r7, #4] if(rtcHandle->Instance==RTC) 800bad8: 687b ldr r3, [r7, #4] 800bada: 681b ldr r3, [r3, #0] 800badc: 4a0b ldr r2, [pc, #44] @ (800bb0c ) 800bade: 4293 cmp r3, r2 800bae0: d110 bne.n 800bb04 { /* USER CODE BEGIN RTC_MspInit 0 */ /* USER CODE END RTC_MspInit 0 */ HAL_PWR_EnableBkUpAccess(); 800bae2: f004 ffb9 bl 8010a58 /* Enable BKP CLK enable for backup registers */ __HAL_RCC_BKP_CLK_ENABLE(); 800bae6: 4b0a ldr r3, [pc, #40] @ (800bb10 ) 800bae8: 69db ldr r3, [r3, #28] 800baea: 4a09 ldr r2, [pc, #36] @ (800bb10 ) 800baec: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 800baf0: 61d3 str r3, [r2, #28] 800baf2: 4b07 ldr r3, [pc, #28] @ (800bb10 ) 800baf4: 69db ldr r3, [r3, #28] 800baf6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 800bafa: 60fb str r3, [r7, #12] 800bafc: 68fb ldr r3, [r7, #12] /* RTC clock enable */ __HAL_RCC_RTC_ENABLE(); 800bafe: 4b05 ldr r3, [pc, #20] @ (800bb14 ) 800bb00: 2201 movs r2, #1 800bb02: 601a str r2, [r3, #0] /* USER CODE BEGIN RTC_MspInit 1 */ /* USER CODE END RTC_MspInit 1 */ } } 800bb04: bf00 nop 800bb06: 3710 adds r7, #16 800bb08: 46bd mov sp, r7 800bb0a: bd80 pop {r7, pc} 800bb0c: 40002800 .word 0x40002800 800bb10: 40021000 .word 0x40021000 800bb14: 4242043c .word 0x4242043c 0800bb18 : ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len); static void CCS_UART3_Watchdog(void); static void CCS_LogUart3Error(const char *tag); ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800bb18: 4602 mov r2, r0 if (err == HAL_UART_ERROR_NONE) { 800bb1a: b359 cbz r1, 800bb74 ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800bb1c: b570 push {r4, r5, r6, lr} 800bb1e: 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", 800bb20: 07cb lsls r3, r1, #31 800bb22: bf58 it pl 800bb24: 4915 ldrpl r1, [pc, #84] @ (800bb7c ) 800bb26: 4d15 ldr r5, [pc, #84] @ (800bb7c ) 800bb28: bf48 it mi 800bb2a: 4914 ldrmi r1, [pc, #80] @ (800bb7c ) ISR_FAST static void uart3_log_hal_error(uint8_t uart_num, uint32_t err) { 800bb2c: b086 sub sp, #24 log_printf(LOG_ERR, "UART%u HAL error decode: %s%s%s%s%s%s raw=0x%08lx\n", 800bb2e: bf54 ite pl 800bb30: 460b movpl r3, r1 800bb32: 4b13 ldrmi r3, [pc, #76] @ (800bb80 ) 800bb34: f014 0f02 tst.w r4, #2 800bb38: 9104 str r1, [sp, #16] 800bb3a: 4912 ldr r1, [pc, #72] @ (800bb84 ) 800bb3c: bf08 it eq 800bb3e: 4629 moveq r1, r5 800bb40: f014 0f04 tst.w r4, #4 800bb44: 4810 ldr r0, [pc, #64] @ (800bb88 ) 800bb46: bf08 it eq 800bb48: 4628 moveq r0, r5 800bb4a: f014 0f08 tst.w r4, #8 800bb4e: 9001 str r0, [sp, #4] 800bb50: 480e ldr r0, [pc, #56] @ (800bb8c ) 800bb52: 4e0f ldr r6, [pc, #60] @ (800bb90 ) 800bb54: bf08 it eq 800bb56: 462e moveq r6, r5 800bb58: f014 0f10 tst.w r4, #16 800bb5c: bf18 it ne 800bb5e: 4605 movne r5, r0 800bb60: 9100 str r1, [sp, #0] 800bb62: e9cd 6502 strd r6, r5, [sp, #8] 800bb66: 490b ldr r1, [pc, #44] @ (800bb94 ) 800bb68: 9405 str r4, [sp, #20] 800bb6a: 2004 movs r0, #4 800bb6c: f7fe fcc8 bl 800a500 (err & HAL_UART_ERROR_INVALID_CALLBACK) ? "INV_CB " : "", #else "", #endif (unsigned long)err); } 800bb70: b006 add sp, #24 800bb72: bd70 pop {r4, r5, r6, pc} log_printf(LOG_ERR, "UART%u HAL error decode: NONE\n", uart_num); 800bb74: 2004 movs r0, #4 800bb76: 4908 ldr r1, [pc, #32] @ (800bb98 ) 800bb78: f7fe bcc2 b.w 800a500 800bb7c: 0801755c .word 0x0801755c 800bb80: 08017164 .word 0x08017164 800bb84: 08017168 .word 0x08017168 800bb88: 0801716c .word 0x0801716c 800bb8c: 08017178 .word 0x08017178 800bb90: 08017170 .word 0x08017170 800bb94: 080171a0 .word 0x080171a0 800bb98: 08017180 .word 0x08017180 0800bb9c : ISR_FAST static void uart3_arm_rx_or_log(const char *where) { 800bb9c: b530 push {r4, r5, lr} HAL_StatusTypeDef st = HAL_UARTEx_ReceiveToIdle_DMA(&huart3, rx_buffer, sizeof(rx_buffer)); 800bb9e: f44f 7280 mov.w r2, #256 @ 0x100 ISR_FAST static void uart3_arm_rx_or_log(const char *where) { 800bba2: 4605 mov r5, r0 800bba4: b083 sub sp, #12 HAL_StatusTypeDef st = HAL_UARTEx_ReceiveToIdle_DMA(&huart3, rx_buffer, sizeof(rx_buffer)); 800bba6: 4911 ldr r1, [pc, #68] @ (800bbec ) 800bba8: 4811 ldr r0, [pc, #68] @ (800bbf0 ) 800bbaa: f007 fa6e bl 801308a if (st == HAL_OK) { 800bbae: b908 cbnz r0, 800bbb4 uart3_log_hal_error(3u, err_after); CCS_LogUart3Error("UART3 RX arm failed details"); if (err_after != HAL_UART_ERROR_NONE) { (void)HAL_UART_AbortReceive(&huart3); } } 800bbb0: b003 add sp, #12 800bbb2: bd30 pop {r4, r5, pc} uint32_t err_after = HAL_UART_GetError(&huart3); 800bbb4: 4604 mov r4, r0 800bbb6: 480e ldr r0, [pc, #56] @ (800bbf0 ) 800bbb8: f007 fe79 bl 80138ae 800bbbc: 4602 mov r2, r0 log_printf(LOG_ERR, 800bbbe: 4623 mov r3, r4 uint32_t err_after = HAL_UART_GetError(&huart3); 800bbc0: 4614 mov r4, r2 log_printf(LOG_ERR, 800bbc2: 490c ldr r1, [pc, #48] @ (800bbf4 ) 800bbc4: 462a mov r2, r5 800bbc6: 2004 movs r0, #4 800bbc8: 9400 str r4, [sp, #0] 800bbca: f7fe fc99 bl 800a500 uart3_log_hal_error(3u, err_after); 800bbce: 2003 movs r0, #3 800bbd0: 4621 mov r1, r4 800bbd2: f7ff ffa1 bl 800bb18 CCS_LogUart3Error("UART3 RX arm failed details"); 800bbd6: 4808 ldr r0, [pc, #32] @ (800bbf8 ) 800bbd8: f000 fedc bl 800c994 if (err_after != HAL_UART_ERROR_NONE) { 800bbdc: 2c00 cmp r4, #0 800bbde: d0e7 beq.n 800bbb0 (void)HAL_UART_AbortReceive(&huart3); 800bbe0: 4803 ldr r0, [pc, #12] @ (800bbf0 ) } 800bbe2: b003 add sp, #12 800bbe4: e8bd 4030 ldmia.w sp!, {r4, r5, lr} (void)HAL_UART_AbortReceive(&huart3); 800bbe8: f007 bb10 b.w 801320c 800bbec: 200009b8 .word 0x200009b8 800bbf0: 2000133c .word 0x2000133c 800bbf4: 080171d4 .word 0x080171d4 800bbf8: 08017210 .word 0x08017210 0800bbfc : ISR_FAST void CCS_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size) { 800bbfc: b538 push {r3, r4, r5, lr} if (huart != &huart3) { 800bbfe: 4b1a ldr r3, [pc, #104] @ (800bc68 ) ISR_FAST void CCS_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size) { 800bc00: 460c mov r4, r1 if (huart != &huart3) { 800bc02: 4283 cmp r3, r0 800bc04: d113 bne.n 800bc2e log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", (unsigned)size); return; } if (size == 0u) { 800bc06: b329 cbz r1, 800bc54 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)) { 800bc08: f5b1 7f80 cmp.w r1, #256 @ 0x100 800bc0c: d816 bhi.n 800bc3c 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(); 800bc0e: f002 fb73 bl 800e2f8 800bc12: 4603 mov r3, r0 800bc14: 4d15 ldr r5, [pc, #84] @ (800bc6c ) uart3_last_reinit_tick = uart3_last_packet_tick; 800bc16: 4a16 ldr r2, [pc, #88] @ (800bc70 ) process_received_packet(rx_buffer, size); 800bc18: 4621 mov r1, r4 800bc1a: 4816 ldr r0, [pc, #88] @ (800bc74 ) uart3_last_packet_tick = HAL_GetTick(); 800bc1c: 602b str r3, [r5, #0] uart3_last_reinit_tick = uart3_last_packet_tick; 800bc1e: 6013 str r3, [r2, #0] process_received_packet(rx_buffer, size); 800bc20: f000 fe10 bl 800c844 uart3_arm_rx_or_log("RxEventCallback"); } 800bc24: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bc28: 4813 ldr r0, [pc, #76] @ (800bc78 ) 800bc2a: f7ff bfb7 b.w 800bb9c log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", 800bc2e: 460a mov r2, r1 } 800bc30: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} log_printf(LOG_WARN, "UART3 RX drop: wrong huart in RxEventCallback (size=%u)\n", 800bc34: 2005 movs r0, #5 800bc36: 4911 ldr r1, [pc, #68] @ (800bc7c ) 800bc38: f7fe bc62 b.w 800a500 log_printf(LOG_ERR, "UART3 RX drop: size=%u > rx_buffer %u (overflow, not parsed)\n", 800bc3c: f44f 7380 mov.w r3, #256 @ 0x100 800bc40: 460a mov r2, r1 800bc42: 2004 movs r0, #4 800bc44: 490e ldr r1, [pc, #56] @ (800bc80 ) 800bc46: f7fe fc5b bl 800a500 } 800bc4a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bc4e: 480a ldr r0, [pc, #40] @ (800bc78 ) 800bc50: f7ff bfa4 b.w 800bb9c log_printf(LOG_WARN, "UART3 RX drop: RxEvent size=0 (idle, no payload)\n"); 800bc54: 2005 movs r0, #5 800bc56: 490b ldr r1, [pc, #44] @ (800bc84 ) 800bc58: f7fe fc52 bl 800a500 } 800bc5c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} uart3_arm_rx_or_log("RxEventCallback"); 800bc60: 4805 ldr r0, [pc, #20] @ (800bc78 ) 800bc62: f7ff bf9b b.w 800bb9c 800bc66: bf00 nop 800bc68: 2000133c .word 0x2000133c 800bc6c: 20000cc8 .word 0x20000cc8 800bc70: 20000ccc .word 0x20000ccc 800bc74: 200009b8 .word 0x200009b8 800bc78: 0801729c .word 0x0801729c 800bc7c: 0801722c .word 0x0801722c 800bc80: 080172ac .word 0x080172ac 800bc84: 08017268 .word 0x08017268 0800bc88 : ISR_FAST void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { 800bc88: b5f8 push {r3, r4, r5, r6, r7, lr} 800bc8a: 4604 mov r4, r0 uint32_t error = HAL_UART_GetError(huart); 800bc8c: f007 fe0f bl 80138ae uint8_t uart_num = 800bc90: 4b29 ldr r3, [pc, #164] @ (800bd38 ) uint32_t error = HAL_UART_GetError(huart); 800bc92: 4605 mov r5, r0 uint8_t uart_num = 800bc94: 429c cmp r4, r3 800bc96: d032 beq.n 800bcfe 800bc98: 4e28 ldr r6, [pc, #160] @ (800bd3c ) 800bc9a: 42b4 cmp r4, r6 800bc9c: d017 beq.n 800bcce 800bc9e: 4b28 ldr r3, [pc, #160] @ (800bd40 ) 800bca0: 429c cmp r4, r3 800bca2: d045 beq.n 800bd30 (huart == &huart2) ? 2 : (huart == &huart3) ? 3 : (huart == &huart5) ? 5 : 0; log_printf(LOG_ERR, 800bca4: 4603 mov r3, r0 800bca6: 2200 movs r2, #0 800bca8: 4926 ldr r1, [pc, #152] @ (800bd44 ) 800bcaa: 2004 movs r0, #4 800bcac: f7fe fc28 bl 800a500 "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); 800bcb0: 4629 mov r1, r5 800bcb2: 2000 movs r0, #0 800bcb4: f7ff ff30 bl 800bb18 (void)HAL_UART_AbortReceive(huart); 800bcb8: 4620 mov r0, r4 800bcba: f007 faa7 bl 801320c (void)HAL_UART_AbortTransmit(huart); 800bcbe: 4620 mov r0, r4 800bcc0: f007 fa3c bl 801313c if (huart == &huart3) { uart3_tx_busy = 0; uart3_arm_rx_or_log("ErrorCallback"); } else { SC_RecoverUartDma(huart); 800bcc4: 4620 mov r0, r4 } } 800bcc6: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} SC_RecoverUartDma(huart); 800bcca: f001 b91f b.w 800cf0c log_printf(LOG_ERR, 800bcce: 4603 mov r3, r0 800bcd0: 2203 movs r2, #3 800bcd2: 491c ldr r1, [pc, #112] @ (800bd44 ) 800bcd4: 2004 movs r0, #4 800bcd6: f7fe fc13 bl 800a500 uart3_log_hal_error(uart_num, error); 800bcda: 4629 mov r1, r5 800bcdc: 2003 movs r0, #3 800bcde: f7ff ff1b bl 800bb18 (void)HAL_UART_AbortReceive(huart); 800bce2: 4620 mov r0, r4 800bce4: f007 fa92 bl 801320c (void)HAL_UART_AbortTransmit(huart); 800bce8: 4620 mov r0, r4 800bcea: f007 fa27 bl 801313c uart3_tx_busy = 0; 800bcee: 2200 movs r2, #0 800bcf0: 4b15 ldr r3, [pc, #84] @ (800bd48 ) uart3_arm_rx_or_log("ErrorCallback"); 800bcf2: 4816 ldr r0, [pc, #88] @ (800bd4c ) uart3_tx_busy = 0; 800bcf4: 701a strb r2, [r3, #0] } 800bcf6: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} uart3_arm_rx_or_log("ErrorCallback"); 800bcfa: f7ff bf4f b.w 800bb9c 800bcfe: 2202 movs r2, #2 uint8_t uart_num = 800bd00: 4617 mov r7, r2 800bd02: 4e0e ldr r6, [pc, #56] @ (800bd3c ) log_printf(LOG_ERR, 800bd04: 462b mov r3, r5 800bd06: 490f ldr r1, [pc, #60] @ (800bd44 ) 800bd08: 2004 movs r0, #4 800bd0a: f7fe fbf9 bl 800a500 uart3_log_hal_error(uart_num, error); 800bd0e: 4629 mov r1, r5 800bd10: 4638 mov r0, r7 800bd12: f7ff ff01 bl 800bb18 (void)HAL_UART_AbortReceive(huart); 800bd16: 4620 mov r0, r4 800bd18: f007 fa78 bl 801320c (void)HAL_UART_AbortTransmit(huart); 800bd1c: 4620 mov r0, r4 800bd1e: f007 fa0d bl 801313c if (huart == &huart3) { 800bd22: 42b4 cmp r4, r6 800bd24: d0e3 beq.n 800bcee SC_RecoverUartDma(huart); 800bd26: 4620 mov r0, r4 } 800bd28: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} SC_RecoverUartDma(huart); 800bd2c: f001 b8ee b.w 800cf0c 800bd30: 2205 movs r2, #5 uint8_t uart_num = 800bd32: 4617 mov r7, r2 800bd34: e7e6 b.n 800bd04 800bd36: bf00 nop 800bd38: 200012f4 .word 0x200012f4 800bd3c: 2000133c .word 0x2000133c 800bd40: 20001264 .word 0x20001264 800bd44: 080172ec .word 0x080172ec 800bd48: 20000cba .word 0x20000cba 800bd4c: 08017338 .word 0x08017338 0800bd50 : void CCS_TxCpltCallback(UART_HandleTypeDef *huart) { 800bd50: b580 push {r7, lr} 800bd52: b082 sub sp, #8 800bd54: af00 add r7, sp, #0 800bd56: 6078 str r0, [r7, #4] if (huart != &huart3) { 800bd58: 687b ldr r3, [r7, #4] 800bd5a: 4a16 ldr r2, [pc, #88] @ (800bdb4 ) 800bd5c: 4293 cmp r3, r2 800bd5e: d124 bne.n 800bdaa return; } uart3_tx_busy = 0; 800bd60: 4b15 ldr r3, [pc, #84] @ (800bdb8 ) 800bd62: 2200 movs r2, #0 800bd64: 701a strb r2, [r3, #0] if (tx_pending_len > 0) { 800bd66: 4b15 ldr r3, [pc, #84] @ (800bdbc ) 800bd68: 881b ldrh r3, [r3, #0] 800bd6a: 2b00 cmp r3, #0 800bd6c: d01e beq.n 800bdac memcpy(tx_buffer, tx_pending_buffer, tx_pending_len); 800bd6e: 4b13 ldr r3, [pc, #76] @ (800bdbc ) 800bd70: 881b ldrh r3, [r3, #0] 800bd72: 461a mov r2, r3 800bd74: 4912 ldr r1, [pc, #72] @ (800bdc0 ) 800bd76: 4813 ldr r0, [pc, #76] @ (800bdc4 ) 800bd78: f008 ffd2 bl 8014d20 uart3_tx_busy = 1; 800bd7c: 4b0e ldr r3, [pc, #56] @ (800bdb8 ) 800bd7e: 2201 movs r2, #1 800bd80: 701a strb r2, [r3, #0] if (HAL_UART_Transmit_DMA(&huart3, tx_buffer, tx_pending_len) != HAL_OK) { 800bd82: 4b0e ldr r3, [pc, #56] @ (800bdbc ) 800bd84: 881b ldrh r3, [r3, #0] 800bd86: 461a mov r2, r3 800bd88: 490e ldr r1, [pc, #56] @ (800bdc4 ) 800bd8a: 480a ldr r0, [pc, #40] @ (800bdb4 ) 800bd8c: f007 f8b0 bl 8012ef0 800bd90: 4603 mov r3, r0 800bd92: 2b00 cmp r3, #0 800bd94: d005 beq.n 800bda2 uart3_tx_busy = 0; 800bd96: 4b08 ldr r3, [pc, #32] @ (800bdb8 ) 800bd98: 2200 movs r2, #0 800bd9a: 701a strb r2, [r3, #0] CCS_LogUart3Error("UART3 TX DMA resend failed"); 800bd9c: 480a ldr r0, [pc, #40] @ (800bdc8 ) 800bd9e: f000 fdf9 bl 800c994 } tx_pending_len = 0; 800bda2: 4b06 ldr r3, [pc, #24] @ (800bdbc ) 800bda4: 2200 movs r2, #0 800bda6: 801a strh r2, [r3, #0] 800bda8: e000 b.n 800bdac return; 800bdaa: bf00 nop } } 800bdac: 3708 adds r7, #8 800bdae: 46bd mov sp, r7 800bdb0: bd80 pop {r7, pc} 800bdb2: bf00 nop 800bdb4: 2000133c .word 0x2000133c 800bdb8: 20000cba .word 0x20000cba 800bdbc: 20000cb8 .word 0x20000cb8 800bdc0: 20000bb8 .word 0x20000bb8 800bdc4: 20000ab8 .word 0x20000ab8 800bdc8: 08017348 .word 0x08017348 0800bdcc : void CCS_SerialLoop(void) { 800bdcc: b580 push {r7, lr} 800bdce: b082 sub sp, #8 800bdd0: af00 add r7, sp, #0 static uint32_t tick; if ((int32_t)(HAL_GetTick() - tick) < 1) return; 800bdd2: f002 fa91 bl 800e2f8 800bdd6: 4602 mov r2, r0 800bdd8: 4ba5 ldr r3, [pc, #660] @ (800c070 ) 800bdda: 681b ldr r3, [r3, #0] 800bddc: 1ad3 subs r3, r2, r3 800bdde: 2b00 cmp r3, #0 800bde0: f340 826b ble.w 800c2ba tick = HAL_GetTick(); 800bde4: f002 fa88 bl 800e2f8 800bde8: 4603 mov r3, r0 800bdea: 4aa1 ldr r2, [pc, #644] @ (800c070 ) 800bdec: 6013 str r3, [r2, #0] static uint32_t replug_watchdog1_tick = 0; static uint32_t last_state_sent = 0; static uint32_t force_unlock_tick = 0; static uint32_t stop_tick = 0; CCS_UART3_Watchdog(); 800bdee: f000 fd97 bl 800c920 if (CONN.connControl != CMD_NONE) { 800bdf2: 4ba0 ldr r3, [pc, #640] @ (800c074 ) 800bdf4: 781b ldrb r3, [r3, #0] 800bdf6: 2b00 cmp r3, #0 800bdf8: d003 beq.n 800be02 last_cmd = CONN.connControl; 800bdfa: 4b9e ldr r3, [pc, #632] @ (800c074 ) 800bdfc: 781a ldrb r2, [r3, #0] 800bdfe: 4b9e ldr r3, [pc, #632] @ (800c078 ) 800be00: 701a strb r2, [r3, #0] } if (CONN.connControl == CMD_FORCE_UNLOCK) { 800be02: 4b9c ldr r3, [pc, #624] @ (800c074 ) 800be04: 781b ldrb r3, [r3, #0] 800be06: 2b03 cmp r3, #3 800be08: d11b bne.n 800be42 if (force_unlock_tick == 0) { 800be0a: 4b9c ldr r3, [pc, #624] @ (800c07c ) 800be0c: 681b ldr r3, [r3, #0] 800be0e: 2b00 cmp r3, #0 800be10: d105 bne.n 800be1e force_unlock_tick = HAL_GetTick(); 800be12: f002 fa71 bl 800e2f8 800be16: 4603 mov r3, r0 800be18: 4a98 ldr r2, [pc, #608] @ (800c07c ) 800be1a: 6013 str r3, [r2, #0] 800be1c: e014 b.n 800be48 } else if ((int32_t)(HAL_GetTick() - force_unlock_tick) >= 10000) { 800be1e: f002 fa6b bl 800e2f8 800be22: 4602 mov r2, r0 800be24: 4b95 ldr r3, [pc, #596] @ (800c07c ) 800be26: 681b ldr r3, [r3, #0] 800be28: 1ad3 subs r3, r2, r3 800be2a: 461a mov r2, r3 800be2c: f242 730f movw r3, #9999 @ 0x270f 800be30: 429a cmp r2, r3 800be32: dd09 ble.n 800be48 CONN.connControl = CMD_NONE; 800be34: 4b8f ldr r3, [pc, #572] @ (800c074 ) 800be36: 2200 movs r2, #0 800be38: 701a strb r2, [r3, #0] force_unlock_tick = 0; 800be3a: 4b90 ldr r3, [pc, #576] @ (800c07c ) 800be3c: 2200 movs r2, #0 800be3e: 601a str r2, [r3, #0] 800be40: e002 b.n 800be48 } } else { force_unlock_tick = 0; 800be42: 4b8e ldr r3, [pc, #568] @ (800c07c ) 800be44: 2200 movs r2, #0 800be46: 601a str r2, [r3, #0] } if (CONN.connControl == CMD_STOP) { 800be48: 4b8a ldr r3, [pc, #552] @ (800c074 ) 800be4a: 781b ldrb r3, [r3, #0] 800be4c: 2b01 cmp r3, #1 800be4e: d119 bne.n 800be84 if (stop_tick == 0) { 800be50: 4b8b ldr r3, [pc, #556] @ (800c080 ) 800be52: 681b ldr r3, [r3, #0] 800be54: 2b00 cmp r3, #0 800be56: d105 bne.n 800be64 stop_tick = HAL_GetTick(); 800be58: f002 fa4e bl 800e2f8 800be5c: 4603 mov r3, r0 800be5e: 4a88 ldr r2, [pc, #544] @ (800c080 ) 800be60: 6013 str r3, [r2, #0] 800be62: e012 b.n 800be8a } else if ((int32_t)(HAL_GetTick() - stop_tick) >= 1000) { 800be64: f002 fa48 bl 800e2f8 800be68: 4602 mov r2, r0 800be6a: 4b85 ldr r3, [pc, #532] @ (800c080 ) 800be6c: 681b ldr r3, [r3, #0] 800be6e: 1ad3 subs r3, r2, r3 800be70: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800be74: db09 blt.n 800be8a CONN.connControl = CMD_NONE; 800be76: 4b7f ldr r3, [pc, #508] @ (800c074 ) 800be78: 2200 movs r2, #0 800be7a: 701a strb r2, [r3, #0] stop_tick = 0; 800be7c: 4b80 ldr r3, [pc, #512] @ (800c080 ) 800be7e: 2200 movs r2, #0 800be80: 601a str r2, [r3, #0] 800be82: e002 b.n 800be8a } } else { stop_tick = 0; 800be84: 4b7e ldr r3, [pc, #504] @ (800c080 ) 800be86: 2200 movs r2, #0 800be88: 601a str r2, [r3, #0] } if((int32_t)(HAL_GetTick() - last_cmd_sent) > (int32_t)CMD_INTERVAL){ 800be8a: f002 fa35 bl 800e2f8 800be8e: 4602 mov r2, r0 800be90: 4b7c ldr r3, [pc, #496] @ (800c084 ) 800be92: 681b ldr r3, [r3, #0] 800be94: 1ad3 subs r3, r2, r3 800be96: 2b0a cmp r3, #10 800be98: dd5e ble.n 800bf58 if ((int32_t)(HAL_GetTick() - last_state_sent) >= 200) { 800be9a: f002 fa2d bl 800e2f8 800be9e: 4602 mov r2, r0 800bea0: 4b79 ldr r3, [pc, #484] @ (800c088 ) 800bea2: 681b ldr r3, [r3, #0] 800bea4: 1ad3 subs r3, r2, r3 800bea6: 2bc7 cmp r3, #199 @ 0xc7 800bea8: dd06 ble.n 800beb8 send_state(); 800beaa: f000 fb9b bl 800c5e4 last_state_sent = HAL_GetTick(); 800beae: f002 fa23 bl 800e2f8 800beb2: 4603 mov r3, r0 800beb4: 4a74 ldr r2, [pc, #464] @ (800c088 ) 800beb6: 6013 str r3, [r2, #0] } if (ESTOP) { 800beb8: 4b74 ldr r3, [pc, #464] @ (800c08c ) 800beba: 781b ldrb r3, [r3, #0] 800bebc: 2b00 cmp r3, #0 800bebe: d008 beq.n 800bed2 log_printf(LOG_ERR, "ESTOP triggered\n"); 800bec0: 4973 ldr r1, [pc, #460] @ (800c090 ) 800bec2: 2004 movs r0, #4 800bec4: f7fe fb1c bl 800a500 CCS_SendEmergencyStop(); 800bec8: f000 fb2c bl 800c524 ESTOP = 0; 800becc: 4b6f ldr r3, [pc, #444] @ (800c08c ) 800bece: 2200 movs r2, #0 800bed0: 701a strb r2, [r3, #0] } if (((CONN.connControl == CMD_STOP) || 800bed2: 4b68 ldr r3, [pc, #416] @ (800c074 ) 800bed4: 781b ldrb r3, [r3, #0] 800bed6: 2b01 cmp r3, #1 800bed8: d007 beq.n 800beea (CONN.connControl == CMD_FORCE_UNLOCK) || 800beda: 4b66 ldr r3, [pc, #408] @ (800c074 ) 800bedc: 781b ldrb r3, [r3, #0] if (((CONN.connControl == CMD_STOP) || 800bede: 2b03 cmp r3, #3 800bee0: d003 beq.n 800beea (CONN.chargingError != CONN_NO_ERROR)) && 800bee2: 4b64 ldr r3, [pc, #400] @ (800c074 ) 800bee4: 7f5b ldrb r3, [r3, #29] (CONN.connControl == CMD_FORCE_UNLOCK) || 800bee6: 2b00 cmp r3, #0 800bee8: d01a beq.n 800bf20 ((int32_t)(HAL_GetTick() - last_stop_sent) > 1000)) { 800beea: f002 fa05 bl 800e2f8 800beee: 4602 mov r2, r0 800bef0: 4b68 ldr r3, [pc, #416] @ (800c094 ) 800bef2: 681b ldr r3, [r3, #0] 800bef4: 1ad3 subs r3, r2, r3 (CONN.chargingError != CONN_NO_ERROR)) && 800bef6: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800befa: dd11 ble.n 800bf20 last_stop_sent = HAL_GetTick(); 800befc: f002 f9fc bl 800e2f8 800bf00: 4603 mov r3, r0 800bf02: 4a64 ldr r2, [pc, #400] @ (800c094 ) 800bf04: 6013 str r3, [r2, #0] log_printf(LOG_WARN, "Stopping charging...\n"); 800bf06: 4964 ldr r1, [pc, #400] @ (800c098 ) 800bf08: 2005 movs r0, #5 800bf0a: f7fe faf9 bl 800a500 if (CONN.connControl == CMD_FORCE_UNLOCK) { 800bf0e: 4b59 ldr r3, [pc, #356] @ (800c074 ) 800bf10: 781b ldrb r3, [r3, #0] 800bf12: 2b03 cmp r3, #3 800bf14: d102 bne.n 800bf1c CP_SetDuty(100); 800bf16: 2064 movs r0, #100 @ 0x64 800bf18: f7fe f8b0 bl 800a07c } CCS_SendEmergencyStop(); 800bf1c: f000 fb02 bl 800c524 } if (((CCS_EvseState == FinishedEV) || (CCS_EvseState == FinishedEVSE)) && 800bf20: 4b5e ldr r3, [pc, #376] @ (800c09c ) 800bf22: 781b ldrb r3, [r3, #0] 800bf24: 2b0c cmp r3, #12 800bf26: d003 beq.n 800bf30 800bf28: 4b5c ldr r3, [pc, #368] @ (800c09c ) 800bf2a: 781b ldrb r3, [r3, #0] 800bf2c: 2b0b cmp r3, #11 800bf2e: d113 bne.n 800bf58 ((int32_t)(HAL_GetTick() - last_stop_sent) > 1000)) { 800bf30: f002 f9e2 bl 800e2f8 800bf34: 4602 mov r2, r0 800bf36: 4b57 ldr r3, [pc, #348] @ (800c094 ) 800bf38: 681b ldr r3, [r3, #0] 800bf3a: 1ad3 subs r3, r2, r3 if (((CCS_EvseState == FinishedEV) || (CCS_EvseState == FinishedEVSE)) && 800bf3c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800bf40: dd0a ble.n 800bf58 last_stop_sent = HAL_GetTick(); 800bf42: f002 f9d9 bl 800e2f8 800bf46: 4603 mov r3, r0 800bf48: 4a52 ldr r2, [pc, #328] @ (800c094 ) 800bf4a: 6013 str r3, [r2, #0] log_printf(LOG_WARN, "FinishedEV, stopping...\n"); 800bf4c: 4954 ldr r1, [pc, #336] @ (800c0a0 ) 800bf4e: 2005 movs r0, #5 800bf50: f7fe fad6 bl 800a500 CCS_SendEmergencyStop(); 800bf54: f000 fae6 bl 800c524 } (void)replug_watchdog_tick; (void)replug_watchdog1_tick; uint8_t host_timeout_warn = (last_host_seen > 0u) && ((int32_t)(HAL_GetTick() - last_host_seen) > (int32_t)EVEREST_TIMEOUT_WARN_MS); 800bf58: 4b52 ldr r3, [pc, #328] @ (800c0a4 ) 800bf5a: 681b ldr r3, [r3, #0] 800bf5c: 2b00 cmp r3, #0 800bf5e: d00c beq.n 800bf7a 800bf60: f002 f9ca bl 800e2f8 800bf64: 4602 mov r2, r0 800bf66: 4b4f ldr r3, [pc, #316] @ (800c0a4 ) 800bf68: 681b ldr r3, [r3, #0] 800bf6a: 1ad3 subs r3, r2, r3 800bf6c: 461a mov r2, r3 800bf6e: f241 3388 movw r3, #5000 @ 0x1388 800bf72: 429a cmp r2, r3 800bf74: dd01 ble.n 800bf7a 800bf76: 2301 movs r3, #1 800bf78: e000 b.n 800bf7c 800bf7a: 2300 movs r3, #0 800bf7c: 71fb strb r3, [r7, #7] uint8_t host_timeout_stop = (last_host_seen > 0u) && ((int32_t)(HAL_GetTick() - last_host_seen) > (int32_t)EVEREST_TIMEOUT_STOP_MS); 800bf7e: 4b49 ldr r3, [pc, #292] @ (800c0a4 ) 800bf80: 681b ldr r3, [r3, #0] 800bf82: 2b00 cmp r3, #0 800bf84: d00c beq.n 800bfa0 800bf86: f002 f9b7 bl 800e2f8 800bf8a: 4602 mov r2, r0 800bf8c: 4b45 ldr r3, [pc, #276] @ (800c0a4 ) 800bf8e: 681b ldr r3, [r3, #0] 800bf90: 1ad3 subs r3, r2, r3 800bf92: 461a mov r2, r3 800bf94: f242 7310 movw r3, #10000 @ 0x2710 800bf98: 429a cmp r2, r3 800bf9a: dd01 ble.n 800bfa0 800bf9c: 2301 movs r3, #1 800bf9e: e000 b.n 800bfa2 800bfa0: 2300 movs r3, #0 800bfa2: 71bb strb r3, [r7, #6] uint8_t host_timed_out = host_timeout_stop; 800bfa4: 79bb ldrb r3, [r7, #6] 800bfa6: 717b strb r3, [r7, #5] if (host_timeout_warn && !everest_timeout_warn_latched) { 800bfa8: 79fb ldrb r3, [r7, #7] 800bfaa: 2b00 cmp r3, #0 800bfac: d00a beq.n 800bfc4 800bfae: 4b3e ldr r3, [pc, #248] @ (800c0a8 ) 800bfb0: 781b ldrb r3, [r3, #0] 800bfb2: 2b00 cmp r3, #0 800bfb4: d106 bne.n 800bfc4 log_printf(LOG_ERR, "Everest timeout\n"); 800bfb6: 493d ldr r1, [pc, #244] @ (800c0ac ) 800bfb8: 2004 movs r0, #4 800bfba: f7fe faa1 bl 800a500 everest_timeout_warn_latched = 1; 800bfbe: 4b3a ldr r3, [pc, #232] @ (800c0a8 ) 800bfc0: 2201 movs r2, #1 800bfc2: 701a strb r2, [r3, #0] } if (host_timeout_stop && !everest_timeout_stop_latched) { 800bfc4: 79bb ldrb r3, [r7, #6] 800bfc6: 2b00 cmp r3, #0 800bfc8: d00a beq.n 800bfe0 800bfca: 4b39 ldr r3, [pc, #228] @ (800c0b0 ) 800bfcc: 781b ldrb r3, [r3, #0] 800bfce: 2b00 cmp r3, #0 800bfd0: d106 bne.n 800bfe0 log_printf(LOG_ERR, "Everest timeout, stopping charging...\n"); 800bfd2: 4938 ldr r1, [pc, #224] @ (800c0b4 ) 800bfd4: 2004 movs r0, #4 800bfd6: f7fe fa93 bl 800a500 everest_timeout_stop_latched = 1; 800bfda: 4b35 ldr r3, [pc, #212] @ (800c0b0 ) 800bfdc: 2201 movs r2, #1 800bfde: 701a strb r2, [r3, #0] } if (!host_timeout_warn) { 800bfe0: 79fb ldrb r3, [r7, #7] 800bfe2: 2b00 cmp r3, #0 800bfe4: d105 bne.n 800bff2 everest_timeout_warn_latched = 0; 800bfe6: 4b30 ldr r3, [pc, #192] @ (800c0a8 ) 800bfe8: 2200 movs r2, #0 800bfea: 701a strb r2, [r3, #0] everest_timeout_stop_latched = 0; 800bfec: 4b30 ldr r3, [pc, #192] @ (800c0b0 ) 800bfee: 2200 movs r2, #0 800bff0: 701a strb r2, [r3, #0] } everest_timed_out = host_timeout_stop; 800bff2: 4a31 ldr r2, [pc, #196] @ (800c0b8 ) 800bff4: 79bb ldrb r3, [r7, #6] 800bff6: 7013 strb r3, [r2, #0] switch(CCS_ConnectorState){ 800bff8: 4b30 ldr r3, [pc, #192] @ (800c0bc ) 800bffa: 781b ldrb r3, [r3, #0] 800bffc: 2b05 cmp r3, #5 800bffe: f200 8113 bhi.w 800c228 800c002: a201 add r2, pc, #4 @ (adr r2, 800c008 ) 800c004: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800c008: 0800c021 .word 0x0800c021 800c00c: 0800c049 .word 0x0800c049 800c010: 0800c0c5 .word 0x0800c0c5 800c014: 0800c109 .word 0x0800c109 800c018: 0800c145 .word 0x0800c145 800c01c: 0800c19d .word 0x0800c19d case CCS_UNKNOWN: RELAY_Write(RELAY_CP, 0); 800c020: 2100 movs r1, #0 800c022: 2005 movs r0, #5 800c024: f7fd fbc8 bl 80097b8 CONN_SetState(Unknown); 800c028: 2000 movs r0, #0 800c02a: f7fd ff2f bl 8009e8c if (config_initialized && !host_timed_out) { 800c02e: 4b24 ldr r3, [pc, #144] @ (800c0c0 ) 800c030: 781b ldrb r3, [r3, #0] 800c032: 2b00 cmp r3, #0 800c034: f000 80ed beq.w 800c212 800c038: 797b ldrb r3, [r7, #5] 800c03a: 2b00 cmp r3, #0 800c03c: f040 80e9 bne.w 800c212 CCS_ConnectorState = CCS_UNPLUGGED; 800c040: 4b1e ldr r3, [pc, #120] @ (800c0bc ) 800c042: 2202 movs r2, #2 800c044: 701a strb r2, [r3, #0] } break; 800c046: e0e4 b.n 800c212 case CCS_DISABLED: RELAY_Write(RELAY_CP, 0); 800c048: 2100 movs r1, #0 800c04a: 2005 movs r0, #5 800c04c: f7fd fbb4 bl 80097b8 CONN_SetState(Disabled); 800c050: 2002 movs r0, #2 800c052: f7fd ff1b bl 8009e8c if ((CONN.chargingError == CONN_NO_ERROR) && !host_timed_out){ 800c056: 4b07 ldr r3, [pc, #28] @ (800c074 ) 800c058: 7f5b ldrb r3, [r3, #29] 800c05a: 2b00 cmp r3, #0 800c05c: f040 80db bne.w 800c216 800c060: 797b ldrb r3, [r7, #5] 800c062: 2b00 cmp r3, #0 800c064: f040 80d7 bne.w 800c216 CCS_ConnectorState = CCS_UNPLUGGED; 800c068: 4b14 ldr r3, [pc, #80] @ (800c0bc ) 800c06a: 2202 movs r2, #2 800c06c: 701a strb r2, [r3, #0] } break; 800c06e: e0d2 b.n 800c216 800c070: 20000d20 .word 0x20000d20 800c074: 200003b0 .word 0x200003b0 800c078: 200009b4 .word 0x200009b4 800c07c: 20000d24 .word 0x20000d24 800c080: 20000d28 .word 0x20000d28 800c084: 200009ac .word 0x200009ac 800c088: 20000d2c .word 0x20000d2c 800c08c: 20000cbb .word 0x20000cbb 800c090: 08017364 .word 0x08017364 800c094: 200009b0 .word 0x200009b0 800c098: 08017378 .word 0x08017378 800c09c: 20000d1c .word 0x20000d1c 800c0a0: 08017390 .word 0x08017390 800c0a4: 20000cc0 .word 0x20000cc0 800c0a8: 20000cc6 .word 0x20000cc6 800c0ac: 080173ac .word 0x080173ac 800c0b0: 20000cc7 .word 0x20000cc7 800c0b4: 080173c0 .word 0x080173c0 800c0b8: 20000cc5 .word 0x20000cc5 800c0bc: 20000d1d .word 0x20000d1d 800c0c0: 200011cc .word 0x200011cc case CCS_UNPLUGGED: RELAY_Write(RELAY_CP, 1); 800c0c4: 2101 movs r1, #1 800c0c6: 2005 movs r0, #5 800c0c8: f7fd fb76 bl 80097b8 CONN_SetState(Unplugged); 800c0cc: 2001 movs r0, #1 800c0ce: f7fd fedd bl 8009e8c if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || (cp_state_buffer == EV_STATE_C_CONN_ACTIVE)){ 800c0d2: 4b7c ldr r3, [pc, #496] @ (800c2c4 ) 800c0d4: 781b ldrb r3, [r3, #0] 800c0d6: 2b01 cmp r3, #1 800c0d8: d003 beq.n 800c0e2 800c0da: 4b7a ldr r3, [pc, #488] @ (800c2c4 ) 800c0dc: 781b ldrb r3, [r3, #0] 800c0de: 2b02 cmp r3, #2 800c0e0: d102 bne.n 800c0e8 CCS_ConnectorState = CCS_AUTH_REQUIRED; 800c0e2: 4b79 ldr r3, [pc, #484] @ (800c2c8 ) 800c0e4: 2203 movs r2, #3 800c0e6: 701a strb r2, [r3, #0] } if (CONN.chargingError != CONN_NO_ERROR){ 800c0e8: 4b78 ldr r3, [pc, #480] @ (800c2cc ) 800c0ea: 7f5b ldrb r3, [r3, #29] 800c0ec: 2b00 cmp r3, #0 800c0ee: f000 8094 beq.w 800c21a log_printf(LOG_ERR, "Charging error %d, state -> disabled\n", CONN.chargingError); 800c0f2: 4b76 ldr r3, [pc, #472] @ (800c2cc ) 800c0f4: 7f5b ldrb r3, [r3, #29] 800c0f6: 461a mov r2, r3 800c0f8: 4975 ldr r1, [pc, #468] @ (800c2d0 ) 800c0fa: 2004 movs r0, #4 800c0fc: f7fe fa00 bl 800a500 CCS_ConnectorState = CCS_DISABLED; 800c100: 4b71 ldr r3, [pc, #452] @ (800c2c8 ) 800c102: 2201 movs r2, #1 800c104: 701a strb r2, [r3, #0] } break; 800c106: e088 b.n 800c21a case CCS_AUTH_REQUIRED: RELAY_Write(RELAY_CP, 1); 800c108: 2101 movs r1, #1 800c10a: 2005 movs r0, #5 800c10c: f7fd fb54 bl 80097b8 CONN_SetState(AuthRequired); 800c110: 2004 movs r0, #4 800c112: f7fd febb bl 8009e8c if(CONN.connControl == CMD_START){ 800c116: 4b6d ldr r3, [pc, #436] @ (800c2cc ) 800c118: 781b ldrb r3, [r3, #0] 800c11a: 2b02 cmp r3, #2 800c11c: d106 bne.n 800c12c log_printf(LOG_INFO, "Charging permitted, start charging\n"); 800c11e: 496d ldr r1, [pc, #436] @ (800c2d4 ) 800c120: 2007 movs r0, #7 800c122: f7fe f9ed bl 800a500 CCS_ConnectorState = CCS_CONNECTED; 800c126: 4b68 ldr r3, [pc, #416] @ (800c2c8 ) 800c128: 2204 movs r2, #4 800c12a: 701a strb r2, [r3, #0] } if (cp_state_buffer == EV_STATE_A_IDLE){ 800c12c: 4b65 ldr r3, [pc, #404] @ (800c2c4 ) 800c12e: 781b ldrb r3, [r3, #0] 800c130: 2b00 cmp r3, #0 800c132: d174 bne.n 800c21e log_printf(LOG_INFO, "Car unplugged\n"); 800c134: 4968 ldr r1, [pc, #416] @ (800c2d8 ) 800c136: 2007 movs r0, #7 800c138: f7fe f9e2 bl 800a500 CCS_ConnectorState = CCS_UNPLUGGED; 800c13c: 4b62 ldr r3, [pc, #392] @ (800c2c8 ) 800c13e: 2202 movs r2, #2 800c140: 701a strb r2, [r3, #0] } break; 800c142: e06c b.n 800c21e case CCS_CONNECTED: RELAY_Write(RELAY_CP, 1); 800c144: 2101 movs r1, #1 800c146: 2005 movs r0, #5 800c148: f7fd fb36 bl 80097b8 if((CCS_EvseState < Preparing) || (CCS_EvseState == AuthRequired)) { 800c14c: 4b63 ldr r3, [pc, #396] @ (800c2dc ) 800c14e: 781b ldrb r3, [r3, #0] 800c150: 2b02 cmp r3, #2 800c152: d903 bls.n 800c15c 800c154: 4b61 ldr r3, [pc, #388] @ (800c2dc ) 800c156: 781b ldrb r3, [r3, #0] 800c158: 2b04 cmp r3, #4 800c15a: d103 bne.n 800c164 CONN_SetState(Preparing); 800c15c: 2003 movs r0, #3 800c15e: f7fd fe95 bl 8009e8c 800c162: e004 b.n 800c16e } else { CONN_SetState(CCS_EvseState); 800c164: 4b5d ldr r3, [pc, #372] @ (800c2dc ) 800c166: 781b ldrb r3, [r3, #0] 800c168: 4618 mov r0, r3 800c16a: f7fd fe8f bl 8009e8c } if (cp_state_buffer == EV_STATE_A_IDLE){ 800c16e: 4b55 ldr r3, [pc, #340] @ (800c2c4 ) 800c170: 781b ldrb r3, [r3, #0] 800c172: 2b00 cmp r3, #0 800c174: d106 bne.n 800c184 log_printf(LOG_INFO, "Car unplugged\n"); 800c176: 4958 ldr r1, [pc, #352] @ (800c2d8 ) 800c178: 2007 movs r0, #7 800c17a: f7fe f9c1 bl 800a500 CCS_ConnectorState = CCS_UNPLUGGED; 800c17e: 4b52 ldr r3, [pc, #328] @ (800c2c8 ) 800c180: 2202 movs r2, #2 800c182: 701a strb r2, [r3, #0] } if(REPLUG > 0){ 800c184: 4b56 ldr r3, [pc, #344] @ (800c2e0 ) 800c186: 781b ldrb r3, [r3, #0] 800c188: 2b00 cmp r3, #0 800c18a: d04a beq.n 800c222 log_printf(LOG_INFO, "Replugging...\n"); 800c18c: 4955 ldr r1, [pc, #340] @ (800c2e4 ) 800c18e: 2007 movs r0, #7 800c190: f7fe f9b6 bl 800a500 CCS_ConnectorState = CCS_REPLUGGING; 800c194: 4b4c ldr r3, [pc, #304] @ (800c2c8 ) 800c196: 2205 movs r2, #5 800c198: 701a strb r2, [r3, #0] } break; 800c19a: e042 b.n 800c222 case CCS_REPLUGGING: RELAY_Write(RELAY_CP, 0); 800c19c: 2100 movs r1, #0 800c19e: 2005 movs r0, #5 800c1a0: f7fd fb0a bl 80097b8 CONN_SetState(Replugging); 800c1a4: 200d movs r0, #13 800c1a6: f7fd fe71 bl 8009e8c if((int32_t)(HAL_GetTick() - replug_tick) > 1000){ 800c1aa: f002 f8a5 bl 800e2f8 800c1ae: 4602 mov r2, r0 800c1b0: 4b4d ldr r3, [pc, #308] @ (800c2e8 ) 800c1b2: 681b ldr r3, [r3, #0] 800c1b4: 1ad3 subs r3, r2, r3 800c1b6: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 800c1ba: dd1a ble.n 800c1f2 replug_tick = HAL_GetTick(); 800c1bc: f002 f89c bl 800e2f8 800c1c0: 4603 mov r3, r0 800c1c2: 4a49 ldr r2, [pc, #292] @ (800c2e8 ) 800c1c4: 6013 str r3, [r2, #0] if(REPLUG > 0){ 800c1c6: 4b46 ldr r3, [pc, #280] @ (800c2e0 ) 800c1c8: 781b ldrb r3, [r3, #0] 800c1ca: 2b00 cmp r3, #0 800c1cc: d00a beq.n 800c1e4 if (REPLUG != 0xFF) REPLUG--; 800c1ce: 4b44 ldr r3, [pc, #272] @ (800c2e0 ) 800c1d0: 781b ldrb r3, [r3, #0] 800c1d2: 2bff cmp r3, #255 @ 0xff 800c1d4: d00d beq.n 800c1f2 800c1d6: 4b42 ldr r3, [pc, #264] @ (800c2e0 ) 800c1d8: 781b ldrb r3, [r3, #0] 800c1da: 3b01 subs r3, #1 800c1dc: b2da uxtb r2, r3 800c1de: 4b40 ldr r3, [pc, #256] @ (800c2e0 ) 800c1e0: 701a strb r2, [r3, #0] 800c1e2: e006 b.n 800c1f2 } else { log_printf(LOG_INFO, "Replugging finished, but car unplugged\n"); 800c1e4: 4941 ldr r1, [pc, #260] @ (800c2ec ) 800c1e6: 2007 movs r0, #7 800c1e8: f7fe f98a bl 800a500 CCS_ConnectorState = CCS_UNPLUGGED; 800c1ec: 4b36 ldr r3, [pc, #216] @ (800c2c8 ) 800c1ee: 2202 movs r2, #2 800c1f0: 701a strb r2, [r3, #0] } } if(REPLUG == 0){ 800c1f2: 4b3b ldr r3, [pc, #236] @ (800c2e0 ) 800c1f4: 781b ldrb r3, [r3, #0] 800c1f6: 2b00 cmp r3, #0 800c1f8: d115 bne.n 800c226 if(cp_state_buffer == EV_STATE_B_CONN_PREP){ 800c1fa: 4b32 ldr r3, [pc, #200] @ (800c2c4 ) 800c1fc: 781b ldrb r3, [r3, #0] 800c1fe: 2b01 cmp r3, #1 800c200: d111 bne.n 800c226 log_printf(LOG_INFO, "Replugging finished, car plugged, state -> auth required\n"); 800c202: 493b ldr r1, [pc, #236] @ (800c2f0 ) 800c204: 2007 movs r0, #7 800c206: f7fe f97b bl 800a500 CCS_ConnectorState = CCS_AUTH_REQUIRED; 800c20a: 4b2f ldr r3, [pc, #188] @ (800c2c8 ) 800c20c: 2203 movs r2, #3 800c20e: 701a strb r2, [r3, #0] } } break; 800c210: e009 b.n 800c226 break; 800c212: bf00 nop 800c214: e008 b.n 800c228 break; 800c216: bf00 nop 800c218: e006 b.n 800c228 break; 800c21a: bf00 nop 800c21c: e004 b.n 800c228 break; 800c21e: bf00 nop 800c220: e002 b.n 800c228 break; 800c222: bf00 nop 800c224: e000 b.n 800c228 break; 800c226: bf00 nop } // 10s timeout: enforce safe-state until host communication recovers. if (host_timeout_stop) { 800c228: 79bb ldrb r3, [r7, #6] 800c22a: 2b00 cmp r3, #0 800c22c: d014 beq.n 800c258 CONN.EnableOutput = 0; 800c22e: 4b27 ldr r3, [pc, #156] @ (800c2cc ) 800c230: 2200 movs r2, #0 800c232: 75da strb r2, [r3, #23] CCS_EvseState = Unknown; 800c234: 4b29 ldr r3, [pc, #164] @ (800c2dc ) 800c236: 2200 movs r2, #0 800c238: 701a strb r2, [r3, #0] CP_SetDuty(100); 800c23a: 2064 movs r0, #100 @ 0x64 800c23c: f7fd ff1e bl 800a07c if (CCS_ConnectorState != CCS_DISABLED && CCS_ConnectorState != CCS_UNKNOWN) { 800c240: 4b21 ldr r3, [pc, #132] @ (800c2c8 ) 800c242: 781b ldrb r3, [r3, #0] 800c244: 2b01 cmp r3, #1 800c246: d024 beq.n 800c292 800c248: 4b1f ldr r3, [pc, #124] @ (800c2c8 ) 800c24a: 781b ldrb r3, [r3, #0] 800c24c: 2b00 cmp r3, #0 800c24e: d020 beq.n 800c292 CCS_ConnectorState = CCS_DISABLED; 800c250: 4b1d ldr r3, [pc, #116] @ (800c2c8 ) 800c252: 2201 movs r2, #1 800c254: 701a strb r2, [r3, #0] 800c256: e01c b.n 800c292 } } else { if (last_cmd == CMD_STOP) { 800c258: 4b26 ldr r3, [pc, #152] @ (800c2f4 ) 800c25a: 781b ldrb r3, [r3, #0] 800c25c: 2b01 cmp r3, #1 800c25e: d103 bne.n 800c268 CONN.EnableOutput = 0; 800c260: 4b1a ldr r3, [pc, #104] @ (800c2cc ) 800c262: 2200 movs r2, #0 800c264: 75da strb r2, [r3, #23] 800c266: e014 b.n 800c292 } else { CONN.EnableOutput = ev_enable_output ? 1 : 0; 800c268: 4b23 ldr r3, [pc, #140] @ (800c2f8 ) 800c26a: 781b ldrb r3, [r3, #0] 800c26c: 2b00 cmp r3, #0 800c26e: bf14 ite ne 800c270: 2301 movne r3, #1 800c272: 2300 moveq r3, #0 800c274: b2db uxtb r3, r3 800c276: 461a mov r2, r3 800c278: 4b14 ldr r3, [pc, #80] @ (800c2cc ) 800c27a: 75da strb r2, [r3, #23] if((CONN.EnableOutput == 0) && (CONN.connState == Preparing)){ 800c27c: 4b13 ldr r3, [pc, #76] @ (800c2cc ) 800c27e: 7ddb ldrb r3, [r3, #23] 800c280: 2b00 cmp r3, #0 800c282: d106 bne.n 800c292 800c284: 4b11 ldr r3, [pc, #68] @ (800c2cc ) 800c286: 785b ldrb r3, [r3, #1] 800c288: 2b03 cmp r3, #3 800c28a: d102 bne.n 800c292 CONN.EnableOutput = 0; 800c28c: 4b0f ldr r3, [pc, #60] @ (800c2cc ) 800c28e: 2200 movs r2, #0 800c290: 75da strb r2, [r3, #23] } } } if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || 800c292: 4b0c ldr r3, [pc, #48] @ (800c2c4 ) 800c294: 781b ldrb r3, [r3, #0] 800c296: 2b01 cmp r3, #1 800c298: d007 beq.n 800c2aa (cp_state_buffer == EV_STATE_C_CONN_ACTIVE) || 800c29a: 4b0a ldr r3, [pc, #40] @ (800c2c4 ) 800c29c: 781b ldrb r3, [r3, #0] if ((cp_state_buffer == EV_STATE_B_CONN_PREP) || 800c29e: 2b02 cmp r3, #2 800c2a0: d003 beq.n 800c2aa (cp_state_buffer == EV_STATE_D_CONN_ACT_VENT)) { 800c2a2: 4b08 ldr r3, [pc, #32] @ (800c2c4 ) 800c2a4: 781b ldrb r3, [r3, #0] (cp_state_buffer == EV_STATE_C_CONN_ACTIVE) || 800c2a6: 2b03 cmp r3, #3 800c2a8: d103 bne.n 800c2b2 CONN.EvConnected = 1; 800c2aa: 4b08 ldr r3, [pc, #32] @ (800c2cc ) 800c2ac: 2201 movs r2, #1 800c2ae: 779a strb r2, [r3, #30] 800c2b0: e004 b.n 800c2bc } else { CONN.EvConnected = 0; 800c2b2: 4b06 ldr r3, [pc, #24] @ (800c2cc ) 800c2b4: 2200 movs r2, #0 800c2b6: 779a strb r2, [r3, #30] 800c2b8: e000 b.n 800c2bc if ((int32_t)(HAL_GetTick() - tick) < 1) return; 800c2ba: bf00 nop } } 800c2bc: 3708 adds r7, #8 800c2be: 46bd mov sp, r7 800c2c0: bd80 pop {r7, pc} 800c2c2: bf00 nop 800c2c4: 20000005 .word 0x20000005 800c2c8: 20000d1d .word 0x20000d1d 800c2cc: 200003b0 .word 0x200003b0 800c2d0: 080173e8 .word 0x080173e8 800c2d4: 08017410 .word 0x08017410 800c2d8: 08017434 .word 0x08017434 800c2dc: 20000d1c .word 0x20000d1c 800c2e0: 20000cbc .word 0x20000cbc 800c2e4: 08017444 .word 0x08017444 800c2e8: 20000d30 .word 0x20000d30 800c2ec: 08017454 .word 0x08017454 800c2f0: 0801747c .word 0x0801747c 800c2f4: 200009b4 .word 0x200009b4 800c2f8: 200009b5 .word 0x200009b5 0800c2fc : void CCS_Init(void){ 800c2fc: b580 push {r7, lr} 800c2fe: af00 add r7, sp, #0 CP_Init(); 800c300: f7fd fe9a bl 800a038 CP_SetDuty(100); 800c304: 2064 movs r0, #100 @ 0x64 800c306: f7fd feb9 bl 800a07c CCS_MaxLoad.maxVoltage = PSU_MAX_VOLTAGE; // 1000V 800c30a: 4b13 ldr r3, [pc, #76] @ (800c358 ) 800c30c: f44f 727a mov.w r2, #1000 @ 0x3e8 800c310: 801a strh r2, [r3, #0] CCS_MaxLoad.minVoltage = PSU_MIN_VOLTAGE; //150V 800c312: 4b11 ldr r3, [pc, #68] @ (800c358 ) 800c314: 2296 movs r2, #150 @ 0x96 800c316: 805a strh r2, [r3, #2] CCS_MaxLoad.maxCurrent = PSU_MAX_CURRENT*10; //100A 800c318: 4b0f ldr r3, [pc, #60] @ (800c358 ) 800c31a: f240 5232 movw r2, #1330 @ 0x532 800c31e: 809a strh r2, [r3, #4] CCS_MaxLoad.minCurrent = PSU_MIN_CURRENT*10; //1A 800c320: 4b0d ldr r3, [pc, #52] @ (800c358 ) 800c322: 220a movs r2, #10 800c324: 80da strh r2, [r3, #6] CCS_MaxLoad.maxPower = PSU_MAX_POWER; //30000W 800c326: 4b0c ldr r3, [pc, #48] @ (800c358 ) 800c328: f247 5230 movw r2, #30000 @ 0x7530 800c32c: 609a str r2, [r3, #8] uart3_last_packet_tick = HAL_GetTick(); 800c32e: f001 ffe3 bl 800e2f8 800c332: 4603 mov r3, r0 800c334: 4a09 ldr r2, [pc, #36] @ (800c35c ) 800c336: 6013 str r3, [r2, #0] uart3_last_reinit_tick = uart3_last_packet_tick; 800c338: 4b08 ldr r3, [pc, #32] @ (800c35c ) 800c33a: 681b ldr r3, [r3, #0] 800c33c: 4a08 ldr r2, [pc, #32] @ (800c360 ) 800c33e: 6013 str r3, [r2, #0] uart3_arm_rx_or_log("Init"); 800c340: 4808 ldr r0, [pc, #32] @ (800c364 ) 800c342: f7ff fc2b bl 800bb9c CCS_SendResetReason(); 800c346: f000 f8e3 bl 800c510 log_printf(LOG_INFO, "CCS init\n"); 800c34a: 4907 ldr r1, [pc, #28] @ (800c368 ) 800c34c: 2007 movs r0, #7 800c34e: f7fe f8d7 bl 800a500 } 800c352: bf00 nop 800c354: bd80 pop {r7, pc} 800c356: bf00 nop 800c358: 20000994 .word 0x20000994 800c35c: 20000cc8 .word 0x20000cc8 800c360: 20000ccc .word 0x20000ccc 800c364: 080174b8 .word 0x080174b8 800c368: 080174c0 .word 0x080174c0 0800c36c : 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++) { 800c36c: b3e9 cbz r1, 800c3ea 800c36e: 4684 mov ip, r0 ISR_FAST static uint16_t crc16_ibm(const uint8_t* data, uint16_t length) { 800c370: b500 push {lr} 800c372: 468e mov lr, r1 uint16_t crc = 0xFFFFu; 800c374: f64f 70ff movw r0, #65535 @ 0xffff crc ^= data[i]; for (uint8_t j = 0; j < 8; j++) { if (crc & 1u) { 800c378: 491d ldr r1, [pc, #116] @ (800c3f0 ) 800c37a: 44e6 add lr, ip crc ^= data[i]; 800c37c: f81c 2b01 ldrb.w r2, [ip], #1 800c380: 4042 eors r2, r0 if (crc & 1u) { 800c382: f342 0300 sbfx r3, r2, #0, #1 800c386: 400b ands r3, r1 800c388: ea83 0352 eor.w r3, r3, r2, lsr #1 800c38c: f343 0200 sbfx r2, r3, #0, #1 800c390: 400a ands r2, r1 crc = (crc >> 1) ^ 0xA001u; } else { crc >>= 1; 800c392: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c396: 405a eors r2, r3 800c398: f342 0300 sbfx r3, r2, #0, #1 800c39c: 400b ands r3, r1 crc >>= 1; 800c39e: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c3a2: 4053 eors r3, r2 800c3a4: f343 0200 sbfx r2, r3, #0, #1 800c3a8: 400a ands r2, r1 crc >>= 1; 800c3aa: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c3ae: 405a eors r2, r3 800c3b0: f342 0300 sbfx r3, r2, #0, #1 800c3b4: 400b ands r3, r1 crc >>= 1; 800c3b6: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c3ba: 4053 eors r3, r2 800c3bc: f343 0200 sbfx r2, r3, #0, #1 800c3c0: 400a ands r2, r1 crc >>= 1; 800c3c2: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c3c6: 405a eors r2, r3 800c3c8: f342 0300 sbfx r3, r2, #0, #1 800c3cc: 400b ands r3, r1 crc >>= 1; 800c3ce: f3c2 024e ubfx r2, r2, #1, #15 if (crc & 1u) { 800c3d2: 4053 eors r3, r2 800c3d4: f343 0000 sbfx r0, r3, #0, #1 800c3d8: 4008 ands r0, r1 crc >>= 1; 800c3da: f3c3 034e ubfx r3, r3, #1, #15 if (crc & 1u) { 800c3de: 4058 eors r0, r3 for (uint16_t i = 0; i < length; i++) { 800c3e0: 45e6 cmp lr, ip if (crc & 1u) { 800c3e2: b280 uxth r0, r0 for (uint16_t i = 0; i < length; i++) { 800c3e4: d1ca bne.n 800c37c } } } return crc; } 800c3e6: f85d fb04 ldr.w pc, [sp], #4 uint16_t crc = 0xFFFFu; 800c3ea: f64f 70ff movw r0, #65535 @ 0xffff } 800c3ee: 4770 bx lr 800c3f0: ffffa001 .word 0xffffa001 0800c3f4 : static uint16_t CCS_BuildPacket(uint8_t cmd, const void* payload, uint16_t payload_len, uint8_t* out, uint16_t out_max) { 800c3f4: b580 push {r7, lr} 800c3f6: b086 sub sp, #24 800c3f8: af00 add r7, sp, #0 800c3fa: 60b9 str r1, [r7, #8] 800c3fc: 607b str r3, [r7, #4] 800c3fe: 4603 mov r3, r0 800c400: 73fb strb r3, [r7, #15] 800c402: 4613 mov r3, r2 800c404: 81bb strh r3, [r7, #12] uint16_t total_len = (uint16_t)(1u + payload_len + 2u); 800c406: 89bb ldrh r3, [r7, #12] 800c408: 3303 adds r3, #3 800c40a: 82fb strh r3, [r7, #22] if (total_len > out_max) return 0; 800c40c: 8afa ldrh r2, [r7, #22] 800c40e: 8c3b ldrh r3, [r7, #32] 800c410: 429a cmp r2, r3 800c412: d901 bls.n 800c418 800c414: 2300 movs r3, #0 800c416: e029 b.n 800c46c out[0] = cmd; 800c418: 687b ldr r3, [r7, #4] 800c41a: 7bfa ldrb r2, [r7, #15] 800c41c: 701a strb r2, [r3, #0] if (payload_len && payload != NULL) { 800c41e: 89bb ldrh r3, [r7, #12] 800c420: 2b00 cmp r3, #0 800c422: d009 beq.n 800c438 800c424: 68bb ldr r3, [r7, #8] 800c426: 2b00 cmp r3, #0 800c428: d006 beq.n 800c438 memcpy(&out[1], payload, payload_len); 800c42a: 687b ldr r3, [r7, #4] 800c42c: 3301 adds r3, #1 800c42e: 89ba ldrh r2, [r7, #12] 800c430: 68b9 ldr r1, [r7, #8] 800c432: 4618 mov r0, r3 800c434: f008 fc74 bl 8014d20 } uint16_t crc = crc16_ibm(out, (uint16_t)(1u + payload_len)); 800c438: 89bb ldrh r3, [r7, #12] 800c43a: 3301 adds r3, #1 800c43c: b29b uxth r3, r3 800c43e: 4619 mov r1, r3 800c440: 6878 ldr r0, [r7, #4] 800c442: f7ff ff93 bl 800c36c 800c446: 4603 mov r3, r0 800c448: 82bb strh r3, [r7, #20] out[1u + payload_len] = (uint8_t)(crc & 0xFFu); 800c44a: 89bb ldrh r3, [r7, #12] 800c44c: 3301 adds r3, #1 800c44e: 687a ldr r2, [r7, #4] 800c450: 4413 add r3, r2 800c452: 8aba ldrh r2, [r7, #20] 800c454: b2d2 uxtb r2, r2 800c456: 701a strb r2, [r3, #0] out[1u + payload_len + 1u] = (uint8_t)((crc >> 8) & 0xFFu); 800c458: 8abb ldrh r3, [r7, #20] 800c45a: 0a1b lsrs r3, r3, #8 800c45c: b299 uxth r1, r3 800c45e: 89bb ldrh r3, [r7, #12] 800c460: 3302 adds r3, #2 800c462: 687a ldr r2, [r7, #4] 800c464: 4413 add r3, r2 800c466: b2ca uxtb r2, r1 800c468: 701a strb r2, [r3, #0] return total_len; 800c46a: 8afb ldrh r3, [r7, #22] } 800c46c: 4618 mov r0, r3 800c46e: 3718 adds r7, #24 800c470: 46bd mov sp, r7 800c472: bd80 pop {r7, pc} 0800c474 : static void CCS_SendPacket(uint8_t cmd, const void* payload, uint16_t payload_len) { 800c474: b580 push {r7, lr} 800c476: b086 sub sp, #24 800c478: af02 add r7, sp, #8 800c47a: 4603 mov r3, r0 800c47c: 6039 str r1, [r7, #0] 800c47e: 71fb strb r3, [r7, #7] 800c480: 4613 mov r3, r2 800c482: 80bb strh r3, [r7, #4] uint16_t len = CCS_BuildPacket(cmd, payload, payload_len, tx_buffer, sizeof(tx_buffer)); 800c484: 88ba ldrh r2, [r7, #4] 800c486: 79f8 ldrb r0, [r7, #7] 800c488: f44f 7380 mov.w r3, #256 @ 0x100 800c48c: 9300 str r3, [sp, #0] 800c48e: 4b19 ldr r3, [pc, #100] @ (800c4f4 ) 800c490: 6839 ldr r1, [r7, #0] 800c492: f7ff ffaf bl 800c3f4 800c496: 4603 mov r3, r0 800c498: 81fb strh r3, [r7, #14] if (len > 0) { 800c49a: 89fb ldrh r3, [r7, #14] 800c49c: 2b00 cmp r3, #0 800c49e: d01f beq.n 800c4e0 if (uart3_tx_busy) { 800c4a0: 4b15 ldr r3, [pc, #84] @ (800c4f8 ) 800c4a2: 781b ldrb r3, [r3, #0] 800c4a4: 2b00 cmp r3, #0 800c4a6: d009 beq.n 800c4bc memcpy(tx_pending_buffer, tx_buffer, len); 800c4a8: 89fb ldrh r3, [r7, #14] 800c4aa: 461a mov r2, r3 800c4ac: 4911 ldr r1, [pc, #68] @ (800c4f4 ) 800c4ae: 4813 ldr r0, [pc, #76] @ (800c4fc ) 800c4b0: f008 fc36 bl 8014d20 tx_pending_len = len; 800c4b4: 4a12 ldr r2, [pc, #72] @ (800c500 ) 800c4b6: 89fb ldrh r3, [r7, #14] 800c4b8: 8013 strh r3, [r2, #0] 800c4ba: e011 b.n 800c4e0 } else { uart3_tx_busy = 1; 800c4bc: 4b0e ldr r3, [pc, #56] @ (800c4f8 ) 800c4be: 2201 movs r2, #1 800c4c0: 701a strb r2, [r3, #0] if (HAL_UART_Transmit_DMA(&huart3, tx_buffer, len) != HAL_OK) { 800c4c2: 89fb ldrh r3, [r7, #14] 800c4c4: 461a mov r2, r3 800c4c6: 490b ldr r1, [pc, #44] @ (800c4f4 ) 800c4c8: 480e ldr r0, [pc, #56] @ (800c504 ) 800c4ca: f006 fd11 bl 8012ef0 800c4ce: 4603 mov r3, r0 800c4d0: 2b00 cmp r3, #0 800c4d2: d005 beq.n 800c4e0 uart3_tx_busy = 0; 800c4d4: 4b08 ldr r3, [pc, #32] @ (800c4f8 ) 800c4d6: 2200 movs r2, #0 800c4d8: 701a strb r2, [r3, #0] CCS_LogUart3Error("UART3 TX DMA start failed"); 800c4da: 480b ldr r0, [pc, #44] @ (800c508 ) 800c4dc: f000 fa5a bl 800c994 } } } last_cmd_sent = HAL_GetTick(); 800c4e0: f001 ff0a bl 800e2f8 800c4e4: 4603 mov r3, r0 800c4e6: 4a09 ldr r2, [pc, #36] @ (800c50c ) 800c4e8: 6013 str r3, [r2, #0] } 800c4ea: bf00 nop 800c4ec: 3710 adds r7, #16 800c4ee: 46bd mov sp, r7 800c4f0: bd80 pop {r7, pc} 800c4f2: bf00 nop 800c4f4: 20000ab8 .word 0x20000ab8 800c4f8: 20000cba .word 0x20000cba 800c4fc: 20000bb8 .word 0x20000bb8 800c500: 20000cb8 .word 0x20000cb8 800c504: 2000133c .word 0x2000133c 800c508: 080174cc .word 0x080174cc 800c50c: 200009ac .word 0x200009ac 0800c510 : static void CCS_SendResetReason(void) { 800c510: b580 push {r7, lr} 800c512: af00 add r7, sp, #0 CCS_SendPacket(CMD_M2E_RESET, NULL, 0); 800c514: 2200 movs r2, #0 800c516: 2100 movs r1, #0 800c518: 2052 movs r0, #82 @ 0x52 800c51a: f7ff ffab bl 800c474 } 800c51e: bf00 nop 800c520: bd80 pop {r7, pc} 800c522: bf00 nop 0800c524 : void CCS_SendEmergencyStop(void) { 800c524: b580 push {r7, lr} 800c526: af00 add r7, sp, #0 CCS_SendPacket(CMD_M2E_ESTOP, NULL, 0); 800c528: 2200 movs r2, #0 800c52a: 2100 movs r1, #0 800c52c: 2053 movs r0, #83 @ 0x53 800c52e: f7ff ffa1 bl 800c474 } 800c532: bf00 nop 800c534: bd80 pop {r7, pc} 800c536: bf00 nop 0800c538 : void CCS_SendStart(void) { CCS_SendPacket(CMD_M2E_START, NULL, 0); } static void CCS_CalculateEnergy(void) { 800c538: b580 push {r7, lr} 800c53a: b082 sub sp, #8 800c53c: af00 add r7, sp, #0 static uint32_t lastTick = 0; uint32_t currentTick = HAL_GetTick(); 800c53e: f001 fedb bl 800e2f8 800c542: 6078 str r0, [r7, #4] uint32_t elapsedTimeMs = currentTick - lastTick; 800c544: 4b1e ldr r3, [pc, #120] @ (800c5c0 ) 800c546: 681b ldr r3, [r3, #0] 800c548: 687a ldr r2, [r7, #4] 800c54a: 1ad3 subs r3, r2, r3 800c54c: 603b str r3, [r7, #0] lastTick = currentTick; 800c54e: 4a1c ldr r2, [pc, #112] @ (800c5c0 ) 800c550: 687b ldr r3, [r7, #4] 800c552: 6013 str r3, [r2, #0] CCS_Power = CONN.MeasuredVoltage * CONN.MeasuredCurrent / 10; 800c554: 4b1b ldr r3, [pc, #108] @ (800c5c4 ) 800c556: f8b3 3013 ldrh.w r3, [r3, #19] 800c55a: b29b uxth r3, r3 800c55c: 461a mov r2, r3 800c55e: 4b19 ldr r3, [pc, #100] @ (800c5c4 ) 800c560: f8b3 3015 ldrh.w r3, [r3, #21] 800c564: b29b uxth r3, r3 800c566: fb02 f303 mul.w r3, r2, r3 800c56a: 4a17 ldr r2, [pc, #92] @ (800c5c8 ) 800c56c: fb82 1203 smull r1, r2, r2, r3 800c570: 1092 asrs r2, r2, #2 800c572: 17db asrs r3, r3, #31 800c574: 1ad3 subs r3, r2, r3 800c576: 461a mov r2, r3 800c578: 4b14 ldr r3, [pc, #80] @ (800c5cc ) 800c57a: 601a str r2, [r3, #0] CCS_EnergyWs += (CCS_Power * elapsedTimeMs) / 1000; 800c57c: 4b13 ldr r3, [pc, #76] @ (800c5cc ) 800c57e: 681b ldr r3, [r3, #0] 800c580: 683a ldr r2, [r7, #0] 800c582: fb02 f303 mul.w r3, r2, r3 800c586: 4a12 ldr r2, [pc, #72] @ (800c5d0 ) 800c588: fba2 2303 umull r2, r3, r2, r3 800c58c: 099a lsrs r2, r3, #6 800c58e: 4b11 ldr r3, [pc, #68] @ (800c5d4 ) 800c590: 681b ldr r3, [r3, #0] 800c592: 4413 add r3, r2 800c594: 4a0f ldr r2, [pc, #60] @ (800c5d4 ) 800c596: 6013 str r3, [r2, #0] if(CCS_EvseState == Unplugged) { 800c598: 4b0f ldr r3, [pc, #60] @ (800c5d8 ) 800c59a: 781b ldrb r3, [r3, #0] 800c59c: 2b01 cmp r3, #1 800c59e: d102 bne.n 800c5a6 CCS_EnergyWs = 0; 800c5a0: 4b0c ldr r3, [pc, #48] @ (800c5d4 ) 800c5a2: 2200 movs r2, #0 800c5a4: 601a str r2, [r3, #0] } CCS_Energy = CCS_EnergyWs / 3600; 800c5a6: 4b0b ldr r3, [pc, #44] @ (800c5d4 ) 800c5a8: 681b ldr r3, [r3, #0] 800c5aa: 4a0c ldr r2, [pc, #48] @ (800c5dc ) 800c5ac: fba2 2303 umull r2, r3, r2, r3 800c5b0: 0adb lsrs r3, r3, #11 800c5b2: 4a0b ldr r2, [pc, #44] @ (800c5e0 ) 800c5b4: 6013 str r3, [r2, #0] } 800c5b6: bf00 nop 800c5b8: 3708 adds r7, #8 800c5ba: 46bd mov sp, r7 800c5bc: bd80 pop {r7, pc} 800c5be: bf00 nop 800c5c0: 20000d34 .word 0x20000d34 800c5c4: 200003b0 .word 0x200003b0 800c5c8: 66666667 .word 0x66666667 800c5cc: 200009a0 .word 0x200009a0 800c5d0: 10624dd3 .word 0x10624dd3 800c5d4: 200009a4 .word 0x200009a4 800c5d8: 20000d1c .word 0x20000d1c 800c5dc: 91a2b3c5 .word 0x91a2b3c5 800c5e0: 200009a8 .word 0x200009a8 0800c5e4 : static void send_state(void) { 800c5e4: b580 push {r7, lr} 800c5e6: af00 add r7, sp, #0 CCS_CalculateEnergy(); 800c5e8: f7ff ffa6 bl 800c538 CCS_State.DutyCycle = CP_GetDuty(); 800c5ec: f7fd fd6e bl 800a0cc 800c5f0: 4603 mov r3, r0 800c5f2: 461a mov r2, r3 800c5f4: 4b2e ldr r3, [pc, #184] @ (800c6b0 ) 800c5f6: 701a strb r2, [r3, #0] CCS_State.OutputEnabled = PSU0.CONT_enabled; 800c5f8: 4b2e ldr r3, [pc, #184] @ (800c6b4 ) 800c5fa: 7ada ldrb r2, [r3, #11] 800c5fc: 4b2c ldr r3, [pc, #176] @ (800c6b0 ) 800c5fe: 705a strb r2, [r3, #1] CCS_State.MeasuredVoltage = (uint16_t)CONN.MeasuredVoltage; 800c600: 4b2d ldr r3, [pc, #180] @ (800c6b8 ) 800c602: f8b3 3013 ldrh.w r3, [r3, #19] 800c606: b29a uxth r2, r3 800c608: 4b29 ldr r3, [pc, #164] @ (800c6b0 ) 800c60a: 805a strh r2, [r3, #2] if (fake_500_voltage_mode) { 800c60c: 4b2b ldr r3, [pc, #172] @ (800c6bc ) 800c60e: 781b ldrb r3, [r3, #0] 800c610: 2b00 cmp r3, #0 800c612: d003 beq.n 800c61c CCS_State.MeasuredVoltage = FAKE_EVREQ_VOLTAGE_V; 800c614: 4b26 ldr r3, [pc, #152] @ (800c6b0 ) 800c616: f44f 72fa mov.w r2, #500 @ 0x1f4 800c61a: 805a strh r2, [r3, #2] } CCS_State.MeasuredCurrent = (uint16_t)CONN.MeasuredCurrent; 800c61c: 4b26 ldr r3, [pc, #152] @ (800c6b8 ) 800c61e: f8b3 3015 ldrh.w r3, [r3, #21] 800c622: b29a uxth r2, r3 800c624: 4b22 ldr r3, [pc, #136] @ (800c6b0 ) 800c626: 809a strh r2, [r3, #4] CCS_State.Power = CCS_Power; 800c628: 4b25 ldr r3, [pc, #148] @ (800c6c0 ) 800c62a: 681b ldr r3, [r3, #0] 800c62c: 4a20 ldr r2, [pc, #128] @ (800c6b0 ) 800c62e: f8c2 3006 str.w r3, [r2, #6] CCS_State.Energy = CCS_Energy; 800c632: 4b24 ldr r3, [pc, #144] @ (800c6c4 ) 800c634: 681b ldr r3, [r3, #0] 800c636: 4a1e ldr r2, [pc, #120] @ (800c6b0 ) 800c638: f8c2 300a str.w r3, [r2, #10] if(CCS_ConnectorState == CCS_CONNECTED){ 800c63c: 4b22 ldr r3, [pc, #136] @ (800c6c8 ) 800c63e: 781b ldrb r3, [r3, #0] 800c640: 2b04 cmp r3, #4 800c642: d104 bne.n 800c64e CCS_State.CpState = cp_state_buffer; 800c644: 4b21 ldr r3, [pc, #132] @ (800c6cc ) 800c646: 781a ldrb r2, [r3, #0] 800c648: 4b19 ldr r3, [pc, #100] @ (800c6b0 ) 800c64a: 74da strb r2, [r3, #19] 800c64c: e002 b.n 800c654 } else { CCS_State.CpState = EV_STATE_A_IDLE; 800c64e: 4b18 ldr r3, [pc, #96] @ (800c6b0 ) 800c650: 2200 movs r2, #0 800c652: 74da strb r2, [r3, #19] } CCS_State.MaxVoltage = CCS_MaxLoad.maxVoltage; 800c654: 4b1e ldr r3, [pc, #120] @ (800c6d0 ) 800c656: 881a ldrh r2, [r3, #0] 800c658: 4b15 ldr r3, [pc, #84] @ (800c6b0 ) 800c65a: 829a strh r2, [r3, #20] CCS_State.MinVoltage = CCS_MaxLoad.minVoltage; 800c65c: 4b1c ldr r3, [pc, #112] @ (800c6d0 ) 800c65e: 885a ldrh r2, [r3, #2] 800c660: 4b13 ldr r3, [pc, #76] @ (800c6b0 ) 800c662: 82da strh r2, [r3, #22] CCS_State.MaxCurrent = CCS_MaxLoad.maxCurrent; 800c664: 4b1a ldr r3, [pc, #104] @ (800c6d0 ) 800c666: 889a ldrh r2, [r3, #4] 800c668: 4b11 ldr r3, [pc, #68] @ (800c6b0 ) 800c66a: 831a strh r2, [r3, #24] CCS_State.MinCurrent = CCS_MaxLoad.minCurrent; 800c66c: 4b18 ldr r3, [pc, #96] @ (800c6d0 ) 800c66e: 88da ldrh r2, [r3, #6] 800c670: 4b0f ldr r3, [pc, #60] @ (800c6b0 ) 800c672: 835a strh r2, [r3, #26] CCS_State.MaxPower = CCS_MaxLoad.maxPower; 800c674: 4b16 ldr r3, [pc, #88] @ (800c6d0 ) 800c676: 689b ldr r3, [r3, #8] 800c678: 4a0d ldr r2, [pc, #52] @ (800c6b0 ) 800c67a: 61d3 str r3, [r2, #28] CCS_State.IsolationValid = isolation_enable; 800c67c: 4b15 ldr r3, [pc, #84] @ (800c6d4 ) 800c67e: 781a ldrb r2, [r3, #0] 800c680: 4b0b ldr r3, [pc, #44] @ (800c6b0 ) 800c682: 749a strb r2, [r3, #18] CCS_State.IsolationResistance = 900000; 800c684: 4a0a ldr r2, [pc, #40] @ (800c6b0 ) 800c686: 2300 movs r3, #0 800c688: f043 437f orr.w r3, r3, #4278190080 @ 0xff000000 800c68c: f443 037f orr.w r3, r3, #16711680 @ 0xff0000 800c690: f443 433b orr.w r3, r3, #47872 @ 0xbb00 800c694: f043 03a0 orr.w r3, r3, #160 @ 0xa0 800c698: 81d3 strh r3, [r2, #14] 800c69a: 2300 movs r3, #0 800c69c: f043 030d orr.w r3, r3, #13 800c6a0: 8213 strh r3, [r2, #16] CCS_SendPacket(CMD_M2E_STATE, &CCS_State, sizeof(CCS_State)); 800c6a2: 2220 movs r2, #32 800c6a4: 4902 ldr r1, [pc, #8] @ (800c6b0 ) 800c6a6: 2050 movs r0, #80 @ 0x50 800c6a8: f7ff fee4 bl 800c474 } 800c6ac: bf00 nop 800c6ae: bd80 pop {r7, pc} 800c6b0: 20000cd0 .word 0x20000cd0 800c6b4: 2000090c .word 0x2000090c 800c6b8: 200003b0 .word 0x200003b0 800c6bc: 20000cc4 .word 0x20000cc4 800c6c0: 200009a0 .word 0x200009a0 800c6c4: 200009a8 .word 0x200009a8 800c6c8: 20000d1d .word 0x20000d1d 800c6cc: 20000005 .word 0x20000005 800c6d0: 20000994 .word 0x20000994 800c6d4: 20000cbe .word 0x20000cbe 0800c6d8 : ISR_FAST static uint16_t expected_payload_len(uint8_t cmd) { switch (cmd) { 800c6d8: 3840 subs r0, #64 @ 0x40 800c6da: b2c0 uxtb r0, r0 800c6dc: 2809 cmp r0, #9 800c6de: bf9a itte ls 800c6e0: 4b02 ldrls r3, [pc, #8] @ (800c6ec ) 800c6e2: f833 0010 ldrhls.w r0, [r3, r0, lsl #1] ISR_FAST static uint16_t expected_payload_len(uint8_t cmd) { 800c6e6: 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; } } 800c6ea: 4770 bx lr 800c6ec: 080178fc .word 0x080178fc 0800c6f0 : ISR_FAST static void apply_command(uint8_t cmd, const uint8_t* payload, uint16_t payload_len) { 800c6f0: b5f8 push {r3, r4, r5, r6, r7, lr} 800c6f2: 4604 mov r4, r0 800c6f4: 460d mov r5, r1 (void)payload_len; last_host_seen = HAL_GetTick(); 800c6f6: f001 fdff bl 800e2f8 everest_timed_out = 0; 800c6fa: 2300 movs r3, #0 800c6fc: 4a42 ldr r2, [pc, #264] @ (800c808 ) last_host_seen = HAL_GetTick(); 800c6fe: 4e43 ldr r6, [pc, #268] @ (800c80c ) everest_timed_out = 0; 800c700: 7013 strb r3, [r2, #0] everest_timeout_warn_latched = 0; 800c702: 4a43 ldr r2, [pc, #268] @ (800c810 ) last_host_seen = HAL_GetTick(); 800c704: 6030 str r0, [r6, #0] everest_timeout_warn_latched = 0; 800c706: 7013 strb r3, [r2, #0] everest_timeout_stop_latched = 0; 800c708: 4a42 ldr r2, [pc, #264] @ (800c814 ) 800c70a: 7013 strb r3, [r2, #0] switch (cmd) { 800c70c: f1a4 0340 sub.w r3, r4, #64 @ 0x40 800c710: 2b09 cmp r3, #9 800c712: d871 bhi.n 800c7f8 800c714: e8df f003 tbb [pc, r3] 800c718: 4e5b1409 .word 0x4e5b1409 800c71c: 2e2a1b55 .word 0x2e2a1b55 800c720: 054a .short 0x054a (void)payload; CP_SetDuty(pwm_duty_percent); break; } case CMD_E2M_KEEP_ALIVE: { last_host_seen = HAL_GetTick(); 800c722: f001 fde9 bl 800e2f8 800c726: 6030 str r0, [r6, #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; } } 800c728: bdf8 pop {r3, r4, r5, r6, r7, pc} if (duty > 100) duty = 100; 800c72a: 7828 ldrb r0, [r5, #0] if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c72c: 4b3a ldr r3, [pc, #232] @ (800c818 ) if (duty > 100) duty = 100; 800c72e: 2864 cmp r0, #100 @ 0x64 800c730: bf28 it cs 800c732: 2064 movcs r0, #100 @ 0x64 if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c734: 781b ldrb r3, [r3, #0] pwm_duty_percent = duty; 800c736: 4a39 ldr r2, [pc, #228] @ (800c81c ) if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c738: 2b03 cmp r3, #3 pwm_duty_percent = duty; 800c73a: 7010 strb r0, [r2, #0] if (CONN.connControl != CMD_FORCE_UNLOCK) { 800c73c: d143 bne.n 800c7c6 } 800c73e: bdf8 pop {r3, r4, r5, r6, r7, pc} ev_enable_output = (p->enable_output != 0); 800c740: 782b ldrb r3, [r5, #0] 800c742: 4a37 ldr r2, [pc, #220] @ (800c820 ) 800c744: 3b00 subs r3, #0 800c746: bf18 it ne 800c748: 2301 movne r3, #1 800c74a: 7013 strb r3, [r2, #0] } 800c74c: bdf8 pop {r3, r4, r5, r6, r7, pc} if (p->voltage_V == FAKE_EVREQ_VOLTAGE_V) { 800c74e: 882b ldrh r3, [r5, #0] 800c750: b29a uxth r2, r3 800c752: f5b2 7ffa cmp.w r2, #500 @ 0x1f4 800c756: d043 beq.n 800c7e0 fake_500_voltage_mode = 0u; 800c758: 2000 movs r0, #0 CONN.RequestedVoltage = p->voltage_V; 800c75a: 4a2f ldr r2, [pc, #188] @ (800c818 ) fake_500_voltage_mode = 0u; 800c75c: 4931 ldr r1, [pc, #196] @ (800c824 ) CONN.RequestedVoltage = p->voltage_V; 800c75e: f8a2 300f strh.w r3, [r2, #15] fake_500_voltage_mode = 0u; 800c762: 7008 strb r0, [r1, #0] CONN.WantedCurrent = p->current_0p1A; 800c764: 886b ldrh r3, [r5, #2] 800c766: f8a2 301b strh.w r3, [r2, #27] } 800c76a: bdf8 pop {r3, r4, r5, r6, r7, pc} isolation_enable = p->command; 800c76c: 782a ldrb r2, [r5, #0] 800c76e: 4b2e ldr r3, [pc, #184] @ (800c828 ) 800c770: 701a strb r2, [r3, #0] } 800c772: bdf8 pop {r3, r4, r5, r6, r7, pc} memcpy(&CCS_EvInfo, payload, sizeof(CCS_EvInfo_t)); 800c774: 4f2d ldr r7, [pc, #180] @ (800c82c ) 800c776: 462c mov r4, r5 800c778: 463e mov r6, r7 800c77a: f105 0c20 add.w ip, r5, #32 800c77e: 4635 mov r5, r6 800c780: 6820 ldr r0, [r4, #0] 800c782: 6861 ldr r1, [r4, #4] 800c784: 68a2 ldr r2, [r4, #8] 800c786: 68e3 ldr r3, [r4, #12] 800c788: 3410 adds r4, #16 800c78a: 4564 cmp r4, ip 800c78c: c50f stmia r5!, {r0, r1, r2, r3} 800c78e: f106 0610 add.w r6, r6, #16 800c792: d1f4 bne.n 800c77e 800c794: 6861 ldr r1, [r4, #4] 800c796: 68a2 ldr r2, [r4, #8] 800c798: 6820 ldr r0, [r4, #0] 800c79a: c607 stmia r6!, {r0, r1, r2} CONN.SOC = (uint8_t)(CCS_EvInfo.soc / 10); 800c79c: 4a24 ldr r2, [pc, #144] @ (800c830 ) 800c79e: 887b ldrh r3, [r7, #2] 800c7a0: 491d ldr r1, [pc, #116] @ (800c818 ) 800c7a2: fba2 2303 umull r2, r3, r2, r3 800c7a6: 08db lsrs r3, r3, #3 800c7a8: 708b strb r3, [r1, #2] } 800c7aa: bdf8 pop {r3, r4, r5, r6, r7, pc} CCS_EvseState = (CONN_State_t)payload[0]; 800c7ac: 782a ldrb r2, [r5, #0] 800c7ae: 4b21 ldr r3, [pc, #132] @ (800c834 ) 800c7b0: 701a strb r2, [r3, #0] } 800c7b2: bdf8 pop {r3, r4, r5, r6, r7, pc} enabled = (p->enable != 0); 800c7b4: 782b ldrb r3, [r5, #0] 800c7b6: 4a20 ldr r2, [pc, #128] @ (800c838 ) 800c7b8: 3b00 subs r3, #0 800c7ba: bf18 it ne 800c7bc: 2301 movne r3, #1 800c7be: 7013 strb r3, [r2, #0] } 800c7c0: bdf8 pop {r3, r4, r5, r6, r7, pc} CP_SetDuty(pwm_duty_percent); 800c7c2: 4b16 ldr r3, [pc, #88] @ (800c81c ) 800c7c4: 7818 ldrb r0, [r3, #0] } 800c7c6: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} CP_SetDuty(pwm_duty_percent); 800c7ca: f7fd bc57 b.w 800a07c if (p->reset) { 800c7ce: 782b ldrb r3, [r5, #0] 800c7d0: 2b00 cmp r3, #0 800c7d2: d0a9 beq.n 800c728 } 800c7d4: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} log_printf(LOG_WARN, "Everest reset command\n"); 800c7d8: 2005 movs r0, #5 800c7da: 4918 ldr r1, [pc, #96] @ (800c83c ) 800c7dc: f7fd be90 b.w 800a500 fake_500_voltage_mode = 1u; 800c7e0: 2201 movs r2, #1 CONN.RequestedVoltage = FAKE_PSU_VOLTAGE_V; 800c7e2: 2100 movs r1, #0 800c7e4: 242c movs r4, #44 @ 0x2c CONN.WantedCurrent = FAKE_PSU_CURRENT_0P1A; 800c7e6: 200a movs r0, #10 fake_500_voltage_mode = 1u; 800c7e8: 4d0e ldr r5, [pc, #56] @ (800c824 ) CONN.RequestedVoltage = FAKE_PSU_VOLTAGE_V; 800c7ea: 4b0b ldr r3, [pc, #44] @ (800c818 ) fake_500_voltage_mode = 1u; 800c7ec: 702a strb r2, [r5, #0] CONN.RequestedVoltage = FAKE_PSU_VOLTAGE_V; 800c7ee: 741a strb r2, [r3, #16] 800c7f0: 73dc strb r4, [r3, #15] CONN.WantedCurrent = FAKE_PSU_CURRENT_0P1A; 800c7f2: 76d8 strb r0, [r3, #27] 800c7f4: 7719 strb r1, [r3, #28] } 800c7f6: bdf8 pop {r3, r4, r5, r6, r7, pc} log_printf(LOG_WARN, 800c7f8: 4622 mov r2, r4 } 800c7fa: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} log_printf(LOG_WARN, 800c7fe: 2005 movs r0, #5 800c800: 490f ldr r1, [pc, #60] @ (800c840 ) 800c802: f7fd be7d b.w 800a500 800c806: bf00 nop 800c808: 20000cc5 .word 0x20000cc5 800c80c: 20000cc0 .word 0x20000cc0 800c810: 20000cc6 .word 0x20000cc6 800c814: 20000cc7 .word 0x20000cc7 800c818: 200003b0 .word 0x200003b0 800c81c: 2000006a .word 0x2000006a 800c820: 200009b5 .word 0x200009b5 800c824: 20000cc4 .word 0x20000cc4 800c828: 20000cbe .word 0x20000cbe 800c82c: 20000cf0 .word 0x20000cf0 800c830: cccccccd .word 0xcccccccd 800c834: 20000d1c .word 0x20000d1c 800c838: 20000cbd .word 0x20000cbd 800c83c: 080174e8 .word 0x080174e8 800c840: 08017500 .word 0x08017500 0800c844 : ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len) { 800c844: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} if (packet_len < 3u) { 800c848: 2902 cmp r1, #2 ISR_FAST static uint8_t process_received_packet(const uint8_t* packet, uint16_t packet_len) { 800c84a: 460c mov r4, r1 800c84c: 4605 mov r5, r0 800c84e: b084 sub sp, #16 if (packet_len < 3u) { 800c850: d930 bls.n 800c8b4 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; 800c852: 1843 adds r3, r0, r1 uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | 800c854: f813 2c01 ldrb.w r2, [r3, #-1] 800c858: f813 7c02 ldrb.w r7, [r3, #-2] uint16_t payload_len = (uint16_t)(packet_len - 3u); 800c85c: 1ece subs r6, r1, #3 uint16_t calculated_crc = crc16_ibm(packet, (uint16_t)(1u + payload_len)); 800c85e: 3902 subs r1, #2 800c860: b289 uxth r1, r1 uint16_t received_crc = (uint16_t)packet[packet_len - 2u] | 800c862: ea47 2702 orr.w r7, r7, r2, lsl #8 uint8_t cmd = packet[0]; 800c866: f890 8000 ldrb.w r8, [r0] uint16_t calculated_crc = crc16_ibm(packet, (uint16_t)(1u + payload_len)); 800c86a: f7ff fd7f bl 800c36c if (received_crc != calculated_crc) { 800c86e: 4287 cmp r7, r0 uint16_t payload_len = (uint16_t)(packet_len - 3u); 800c870: b2b6 uxth r6, r6 if (received_crc != calculated_crc) { 800c872: d112 bne.n 800c89a cmd, (unsigned)packet_len, (unsigned)payload_len, (unsigned)received_crc, (unsigned)calculated_crc); return 0; } uint16_t expected_len = expected_payload_len(cmd); 800c874: 4640 mov r0, r8 800c876: f7ff ff2f bl 800c6d8 if (expected_len == 0xFFFFu) { 800c87a: f64f 72ff movw r2, #65535 @ 0xffff 800c87e: 4290 cmp r0, r2 800c880: d03a beq.n 800c8f8 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) { 800c882: 4286 cmp r6, r0 800c884: d12a bne.n 800c8dc cmd, (unsigned)expected_len, (unsigned)payload_len, (unsigned)packet_len); return 0; } if (payload_len > 0) { apply_command(cmd, &packet[1], payload_len); 800c886: 4632 mov r2, r6 if (payload_len > 0) { 800c888: b9fe cbnz r6, 800c8ca } else { apply_command(cmd, NULL, 0); 800c88a: 4631 mov r1, r6 800c88c: 4640 mov r0, r8 800c88e: f7ff ff2f bl 800c6f0 } return 1; 800c892: 2001 movs r0, #1 } 800c894: b004 add sp, #16 800c896: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} log_printf(LOG_ERR, 800c89a: 9002 str r0, [sp, #8] 800c89c: 4623 mov r3, r4 800c89e: 4642 mov r2, r8 800c8a0: 2004 movs r0, #4 800c8a2: e9cd 6700 strd r6, r7, [sp] 800c8a6: 4918 ldr r1, [pc, #96] @ (800c908 ) 800c8a8: f7fd fe2a bl 800a500 return 0; 800c8ac: 2000 movs r0, #0 } 800c8ae: b004 add sp, #16 800c8b0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} if (packet_len == 0u) { 800c8b4: b1d9 cbz r1, 800c8ee } else if (packet_len == 1u) { 800c8b6: 2901 cmp r1, #1 log_printf(LOG_WARN, "UART3 RX drop: too_short len=1 b0=0x%02x\n", packet[0]); 800c8b8: 7802 ldrb r2, [r0, #0] 800c8ba: f04f 0005 mov.w r0, #5 } else if (packet_len == 1u) { 800c8be: d009 beq.n 800c8d4 log_printf(LOG_WARN, "UART3 RX drop: too_short len=2 b0=0x%02x b1=0x%02x\n", 800c8c0: 786b ldrb r3, [r5, #1] 800c8c2: 4912 ldr r1, [pc, #72] @ (800c90c ) 800c8c4: f7fd fe1c bl 800a500 800c8c8: e7f0 b.n 800c8ac apply_command(cmd, &packet[1], payload_len); 800c8ca: 4640 mov r0, r8 800c8cc: 1c69 adds r1, r5, #1 800c8ce: f7ff ff0f bl 800c6f0 800c8d2: e7de b.n 800c892 log_printf(LOG_WARN, "UART3 RX drop: too_short len=1 b0=0x%02x\n", packet[0]); 800c8d4: 490e ldr r1, [pc, #56] @ (800c910 ) 800c8d6: f7fd fe13 bl 800a500 800c8da: e7e7 b.n 800c8ac log_printf(LOG_ERR, 800c8dc: 4603 mov r3, r0 800c8de: 4642 mov r2, r8 800c8e0: e9cd 6400 strd r6, r4, [sp] 800c8e4: 490b ldr r1, [pc, #44] @ (800c914 ) 800c8e6: 2004 movs r0, #4 800c8e8: f7fd fe0a bl 800a500 return 0; 800c8ec: e7de b.n 800c8ac log_printf(LOG_WARN, "UART3 RX drop: too_short len=0 (empty chunk)\n"); 800c8ee: 490a ldr r1, [pc, #40] @ (800c918 ) 800c8f0: 2005 movs r0, #5 800c8f2: f7fd fe05 bl 800a500 800c8f6: e7d9 b.n 800c8ac log_printf(LOG_WARN, 800c8f8: 4623 mov r3, r4 800c8fa: 4642 mov r2, r8 800c8fc: 4907 ldr r1, [pc, #28] @ (800c91c ) 800c8fe: 9600 str r6, [sp, #0] 800c900: 2005 movs r0, #5 800c902: f7fd fdfd bl 800a500 return 0; 800c906: e7d1 b.n 800c8ac 800c908: 080175f0 .word 0x080175f0 800c90c: 080175bc .word 0x080175bc 800c910: 08017590 .word 0x08017590 800c914: 08017698 .word 0x08017698 800c918: 08017560 .word 0x08017560 800c91c: 08017654 .word 0x08017654 0800c920 : static void CCS_UART3_Watchdog(void) { 800c920: b580 push {r7, lr} 800c922: b082 sub sp, #8 800c924: af00 add r7, sp, #0 const int32_t since_last_packet = (int32_t)(HAL_GetTick() - uart3_last_packet_tick); 800c926: f001 fce7 bl 800e2f8 800c92a: 4602 mov r2, r0 800c92c: 4b14 ldr r3, [pc, #80] @ (800c980 ) 800c92e: 681b ldr r3, [r3, #0] 800c930: 1ad3 subs r3, r2, r3 800c932: 607b str r3, [r7, #4] const int32_t since_last_reinit = (int32_t)(HAL_GetTick() - uart3_last_reinit_tick); 800c934: f001 fce0 bl 800e2f8 800c938: 4602 mov r2, r0 800c93a: 4b12 ldr r3, [pc, #72] @ (800c984 ) 800c93c: 681b ldr r3, [r3, #0] 800c93e: 1ad3 subs r3, r2, r3 800c940: 603b str r3, [r7, #0] if ((since_last_packet >= (int32_t)UART3_REINIT_TIMEOUT_MS) && 800c942: 687b ldr r3, [r7, #4] 800c944: f240 52db movw r2, #1499 @ 0x5db 800c948: 4293 cmp r3, r2 800c94a: dd15 ble.n 800c978 800c94c: 683b ldr r3, [r7, #0] 800c94e: f240 52db movw r2, #1499 @ 0x5db 800c952: 4293 cmp r3, r2 800c954: dd10 ble.n 800c978 (since_last_reinit >= (int32_t)UART3_REINIT_TIMEOUT_MS) && (huart3.RxState == HAL_UART_STATE_READY)) { 800c956: 4b0c ldr r3, [pc, #48] @ (800c988 ) 800c958: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800c95c: b2db uxtb r3, r3 (since_last_reinit >= (int32_t)UART3_REINIT_TIMEOUT_MS) && 800c95e: 2b20 cmp r3, #32 800c960: d10a bne.n 800c978 uart3_arm_rx_or_log("Watchdog"); 800c962: 480a ldr r0, [pc, #40] @ (800c98c ) 800c964: f7ff f91a bl 800bb9c CCS_LogUart3Error("UART3 watchdog rearm"); 800c968: 4809 ldr r0, [pc, #36] @ (800c990 ) 800c96a: f000 f813 bl 800c994 uart3_last_reinit_tick = HAL_GetTick(); 800c96e: f001 fcc3 bl 800e2f8 800c972: 4603 mov r3, r0 800c974: 4a03 ldr r2, [pc, #12] @ (800c984 ) 800c976: 6013 str r3, [r2, #0] } } 800c978: bf00 nop 800c97a: 3708 adds r7, #8 800c97c: 46bd mov sp, r7 800c97e: bd80 pop {r7, pc} 800c980: 20000cc8 .word 0x20000cc8 800c984: 20000ccc .word 0x20000ccc 800c988: 2000133c .word 0x2000133c 800c98c: 080176f0 .word 0x080176f0 800c990: 080176fc .word 0x080176fc 0800c994 : static void CCS_LogUart3Error(const char *tag) { 800c994: b580 push {r7, lr} 800c996: b086 sub sp, #24 800c998: af04 add r7, sp, #16 800c99a: 6078 str r0, [r7, #4] log_printf(LOG_ERR, "%s: err=0x%08lx g=%lu rx=%lu tx_busy=%u\n", tag, (unsigned long)HAL_UART_GetError(&huart3), 800c99c: 480d ldr r0, [pc, #52] @ (800c9d4 ) 800c99e: f006 ff86 bl 80138ae 800c9a2: 4603 mov r3, r0 (unsigned long)huart3.gState, 800c9a4: 4a0b ldr r2, [pc, #44] @ (800c9d4 ) 800c9a6: f892 2041 ldrb.w r2, [r2, #65] @ 0x41 800c9aa: b2d2 uxtb r2, r2 log_printf(LOG_ERR, "%s: err=0x%08lx g=%lu rx=%lu tx_busy=%u\n", 800c9ac: 4611 mov r1, r2 (unsigned long)huart3.RxState, 800c9ae: 4a09 ldr r2, [pc, #36] @ (800c9d4 ) 800c9b0: f892 2042 ldrb.w r2, [r2, #66] @ 0x42 800c9b4: b2d2 uxtb r2, r2 log_printf(LOG_ERR, "%s: err=0x%08lx g=%lu rx=%lu tx_busy=%u\n", 800c9b6: 4610 mov r0, r2 800c9b8: 4a07 ldr r2, [pc, #28] @ (800c9d8 ) 800c9ba: 7812 ldrb r2, [r2, #0] 800c9bc: 9202 str r2, [sp, #8] 800c9be: 9001 str r0, [sp, #4] 800c9c0: 9100 str r1, [sp, #0] 800c9c2: 687a ldr r2, [r7, #4] 800c9c4: 4905 ldr r1, [pc, #20] @ (800c9dc ) 800c9c6: 2004 movs r0, #4 800c9c8: f7fd fd9a bl 800a500 (unsigned)uart3_tx_busy); } 800c9cc: bf00 nop 800c9ce: 3708 adds r7, #8 800c9d0: 46bd mov sp, r7 800c9d2: bd80 pop {r7, pc} 800c9d4: 2000133c .word 0x2000133c 800c9d8: 20000cba .word 0x20000cba 800c9dc: 08017714 .word 0x08017714 0800c9e0 : .fw_version_major = 0, .fw_version_minor = 0, .fw_version_patch = 0, }; void ReadVersion(){ 800c9e0: b480 push {r7} 800c9e2: af00 add r7, sp, #0 infoPacket.serialNumber = InfoBlock->serialNumber; 800c9e4: 4b0e ldr r3, [pc, #56] @ (800ca20 ) 800c9e6: 681b ldr r3, [r3, #0] 800c9e8: 681b ldr r3, [r3, #0] 800c9ea: b29a uxth r2, r3 800c9ec: 4b0d ldr r3, [pc, #52] @ (800ca24 ) 800c9ee: 801a strh r2, [r3, #0] infoPacket.boardVersion = InfoBlock->boardVersion; 800c9f0: 4b0b ldr r3, [pc, #44] @ (800ca20 ) 800c9f2: 681b ldr r3, [r3, #0] 800c9f4: 795a ldrb r2, [r3, #5] 800c9f6: 4b0b ldr r3, [pc, #44] @ (800ca24 ) 800c9f8: 709a strb r2, [r3, #2] infoPacket.stationType = InfoBlock->stationType; 800c9fa: 4b09 ldr r3, [pc, #36] @ (800ca20 ) 800c9fc: 681b ldr r3, [r3, #0] 800c9fe: 791a ldrb r2, [r3, #4] 800ca00: 4b08 ldr r3, [pc, #32] @ (800ca24 ) 800ca02: 70da strb r2, [r3, #3] infoPacket.fw_version_major = FW_VERSION_MAJOR; 800ca04: 4b07 ldr r3, [pc, #28] @ (800ca24 ) 800ca06: 2201 movs r2, #1 800ca08: 809a strh r2, [r3, #4] infoPacket.fw_version_minor = FW_VERSION_MINOR; 800ca0a: 4b06 ldr r3, [pc, #24] @ (800ca24 ) 800ca0c: 2200 movs r2, #0 800ca0e: 80da strh r2, [r3, #6] infoPacket.fw_version_patch = FW_VERSION_PATCH; 800ca10: 4b04 ldr r3, [pc, #16] @ (800ca24 ) 800ca12: 2211 movs r2, #17 800ca14: 811a strh r2, [r3, #8] } 800ca16: bf00 nop 800ca18: 46bd mov sp, r7 800ca1a: bc80 pop {r7} 800ca1c: 4770 bx lr 800ca1e: bf00 nop 800ca20: 20000000 .word 0x20000000 800ca24: 200011bc .word 0x200011bc 0800ca28 : // Внешняя функция обработки команд (определена в serial_handler.c) extern void SC_CommandHandler(ReceivedCommand_t* cmd); void SC_Init() { 800ca28: b580 push {r7, lr} 800ca2a: af00 add r7, sp, #0 // Обнуляем структуру memset(&serial_control, 0, sizeof(SerialControl_t)); 800ca2c: f44f 7204 mov.w r2, #528 @ 0x210 800ca30: 2100 movs r1, #0 800ca32: 480d ldr r0, [pc, #52] @ (800ca68 ) 800ca34: f008 f92c bl 8014c90 memset(&serial_iso, 0, sizeof(serial_iso)); 800ca38: f44f 7204 mov.w r2, #528 @ 0x210 800ca3c: 2100 movs r1, #0 800ca3e: 480b ldr r0, [pc, #44] @ (800ca6c ) 800ca40: f008 f926 bl 8014c90 sc_uart2_timed_out = 0; 800ca44: 4b0a ldr r3, [pc, #40] @ (800ca70 ) 800ca46: 2200 movs r2, #0 800ca48: 701a strb r2, [r3, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800ca4a: f001 fc55 bl 800e2f8 800ca4e: 4603 mov r3, r0 800ca50: 4a08 ldr r2, [pc, #32] @ (800ca74 ) 800ca52: 6013 str r3, [r2, #0] sc_uart2_last_recover_tick = sc_uart2_last_packet_tick; 800ca54: 4b07 ldr r3, [pc, #28] @ (800ca74 ) 800ca56: 681b ldr r3, [r3, #0] 800ca58: 4a07 ldr r2, [pc, #28] @ (800ca78 ) 800ca5a: 6013 str r3, [r2, #0] SC_ArmUart2RxDma(); 800ca5c: f000 fa14 bl 800ce88 SC_ArmUart5RxDma(); 800ca60: f000 fa36 bl 800ced0 } 800ca64: bf00 nop 800ca66: bd80 pop {r7, pc} 800ca68: 20000d38 .word 0x20000d38 800ca6c: 20000f48 .word 0x20000f48 800ca70: 20001159 .word 0x20001159 800ca74: 2000115c .word 0x2000115c 800ca78: 20001160 .word 0x20001160 0800ca7c : void SC_Task() { 800ca7c: b580 push {r7, lr} 800ca7e: af00 add r7, sp, #0 static uint32_t tick; if ((int32_t)(HAL_GetTick() - tick) < 1) return; 800ca80: f001 fc3a bl 800e2f8 800ca84: 4602 mov r2, r0 800ca86: 4b21 ldr r3, [pc, #132] @ (800cb0c ) 800ca88: 681b ldr r3, [r3, #0] 800ca8a: 1ad3 subs r3, r2, r3 800ca8c: 2b00 cmp r3, #0 800ca8e: dd3b ble.n 800cb08 tick = HAL_GetTick(); 800ca90: f001 fc32 bl 800e2f8 800ca94: 4603 mov r3, r0 800ca96: 4a1d ldr r2, [pc, #116] @ (800cb0c ) 800ca98: 6013 str r3, [r2, #0] SC_UART2_Watchdog(); 800ca9a: f000 f9ad bl 800cdf8 // Запуск приема в режиме DMA + idle SC_ArmUart2RxDma(); 800ca9e: f000 f9f3 bl 800ce88 SC_ArmUart5RxDma(); 800caa2: f000 fa15 bl 800ced0 // Проверка таймаута отправки пакета (больше 100 мс) if (huart2.gState == HAL_UART_STATE_BUSY_TX && serial_control.tx_tick != 0) { 800caa6: 4b1a ldr r3, [pc, #104] @ (800cb10 ) 800caa8: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800caac: b2db uxtb r3, r3 800caae: 2b21 cmp r3, #33 @ 0x21 800cab0: d114 bne.n 800cadc 800cab2: 4b18 ldr r3, [pc, #96] @ (800cb14 ) 800cab4: f8d3 320c ldr.w r3, [r3, #524] @ 0x20c 800cab8: 2b00 cmp r3, #0 800caba: d00f beq.n 800cadc if ((int32_t)(HAL_GetTick() - serial_control.tx_tick) > 100) { 800cabc: f001 fc1c bl 800e2f8 800cac0: 4602 mov r2, r0 800cac2: 4b14 ldr r3, [pc, #80] @ (800cb14 ) 800cac4: f8d3 320c ldr.w r3, [r3, #524] @ 0x20c 800cac8: 1ad3 subs r3, r2, r3 800caca: 2b64 cmp r3, #100 @ 0x64 800cacc: dd06 ble.n 800cadc // Таймаут: принудительно сбрасываем передачу (void)HAL_UART_AbortTransmit(&huart2); 800cace: 4810 ldr r0, [pc, #64] @ (800cb10 ) 800cad0: f006 fb34 bl 801313c serial_control.tx_tick = 0; // Сбрасываем tick 800cad4: 4b0f ldr r3, [pc, #60] @ (800cb14 ) 800cad6: 2200 movs r2, #0 800cad8: f8c3 220c str.w r2, [r3, #524] @ 0x20c } } // Проверка наличия принятой команды для обработки if (serial_control.command_ready && (huart2.gState != HAL_UART_STATE_BUSY_TX)) { 800cadc: 4b0d ldr r3, [pc, #52] @ (800cb14 ) 800cade: f893 3208 ldrb.w r3, [r3, #520] @ 0x208 800cae2: b2db uxtb r3, r3 800cae4: 2b00 cmp r3, #0 800cae6: d010 beq.n 800cb0a 800cae8: 4b09 ldr r3, [pc, #36] @ (800cb10 ) 800caea: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800caee: b2db uxtb r3, r3 800caf0: 2b21 cmp r3, #33 @ 0x21 800caf2: d00a beq.n 800cb0a // HAL_Delay(2); SC_CommandHandler((ReceivedCommand_t*)&serial_control.received_command); 800caf4: 4808 ldr r0, [pc, #32] @ (800cb18 ) 800caf6: f000 fa87 bl 800d008 serial_control.command_ready = 0; // Сбрасываем флаг 800cafa: 4b06 ldr r3, [pc, #24] @ (800cb14 ) 800cafc: 2200 movs r2, #0 800cafe: f883 2208 strb.w r2, [r3, #520] @ 0x208 SC_ArmUart2RxDma(); 800cb02: f000 f9c1 bl 800ce88 800cb06: e000 b.n 800cb0a if ((int32_t)(HAL_GetTick() - tick) < 1) return; 800cb08: bf00 nop } } 800cb0a: bd80 pop {r7, pc} 800cb0c: 200011c8 .word 0x200011c8 800cb10: 200012f4 .word 0x200012f4 800cb14: 20000d38 .word 0x20000d38 800cb18: 20000f38 .word 0x20000f38 0800cb1c : ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { if (huart->Instance == huart2.Instance) { 800cb1c: 4b2e ldr r3, [pc, #184] @ (800cbd8 ) ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { 800cb1e: b570 push {r4, r5, r6, lr} if (huart->Instance == huart2.Instance) { 800cb20: 681a ldr r2, [r3, #0] 800cb22: 6803 ldr r3, [r0, #0] ISR_FAST void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { 800cb24: 460c mov r4, r1 if (huart->Instance == huart2.Instance) { 800cb26: 4293 cmp r3, r2 800cb28: d019 beq.n 800cb5e log_printf(LOG_WARN, "UART2 RX invalid packet len=%u\n", (unsigned)Size); SC_SendPacket(NULL, 0, RESP_INVALID); } g_sc_command_source = SC_SOURCE_UART2; SC_ArmUart2RxDma(); } else if (huart->Instance == huart5.Instance) { 800cb2a: 4a2c ldr r2, [pc, #176] @ (800cbdc ) 800cb2c: 6812 ldr r2, [r2, #0] 800cb2e: 4293 cmp r3, r2 800cb30: d004 beq.n 800cb3c SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); } else { log_printf(LOG_WARN, "UART5 RX invalid packet len=%u\n", (unsigned)Size); } SC_ArmUart5RxDma(); } else if (huart->Instance == huart3.Instance) { 800cb32: 4a2b ldr r2, [pc, #172] @ (800cbe0 ) 800cb34: 6812 ldr r2, [r2, #0] 800cb36: 4293 cmp r3, r2 800cb38: d04a beq.n 800cbd0 CCS_RxEventCallback(huart, Size); } } 800cb3a: bd70 pop {r4, r5, r6, pc} if (Size == 0u) { 800cb3c: b399 cbz r1, 800cba6 if (process_received_packet(&serial_iso, serial_iso.rx_buffer, Size)) { 800cb3e: 4929 ldr r1, [pc, #164] @ (800cbe4 ) 800cb40: 4622 mov r2, r4 800cb42: f5a1 7080 sub.w r0, r1, #256 @ 0x100 800cb46: f000 f949 bl 800cddc 800cb4a: bb10 cbnz r0, 800cb92 log_printf(LOG_WARN, "UART5 RX invalid packet len=%u\n", (unsigned)Size); 800cb4c: 4622 mov r2, r4 800cb4e: 2005 movs r0, #5 800cb50: 4925 ldr r1, [pc, #148] @ (800cbe8 ) 800cb52: f7fd fcd5 bl 800a500 } 800cb56: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} SC_ArmUart5RxDma(); 800cb5a: f000 b9b9 b.w 800ced0 if (Size == 0u) { 800cb5e: b391 cbz r1, 800cbc6 sc_uart2_last_packet_tick = HAL_GetTick(); 800cb60: f001 fbca bl 800e2f8 sc_uart2_timed_out = 0; 800cb64: 2200 movs r2, #0 800cb66: 4b21 ldr r3, [pc, #132] @ (800cbec ) if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800cb68: 4921 ldr r1, [pc, #132] @ (800cbf0 ) sc_uart2_timed_out = 0; 800cb6a: 701a strb r2, [r3, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800cb6c: 4603 mov r3, r0 sc_uart2_last_recover_tick = sc_uart2_last_packet_tick; 800cb6e: 4d21 ldr r5, [pc, #132] @ (800cbf4 ) sc_uart2_last_packet_tick = HAL_GetTick(); 800cb70: 4e21 ldr r6, [pc, #132] @ (800cbf8 ) if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800cb72: 4622 mov r2, r4 800cb74: f5a1 7080 sub.w r0, r1, #256 @ 0x100 sc_uart2_last_recover_tick = sc_uart2_last_packet_tick; 800cb78: 602b str r3, [r5, #0] sc_uart2_last_packet_tick = HAL_GetTick(); 800cb7a: 6033 str r3, [r6, #0] if(!process_received_packet(&serial_control, serial_control.rx_buffer, Size)){ 800cb7c: f000 f92e bl 800cddc 800cb80: 4605 mov r5, r0 800cb82: b1a8 cbz r0, 800cbb0 g_sc_command_source = SC_SOURCE_UART2; 800cb84: 2200 movs r2, #0 800cb86: 4b1d ldr r3, [pc, #116] @ (800cbfc ) 800cb88: 701a strb r2, [r3, #0] } 800cb8a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} SC_ArmUart2RxDma(); 800cb8e: f000 b97b b.w 800ce88 g_sc_command_source = SC_SOURCE_UART5; 800cb92: 2201 movs r2, #1 800cb94: 4b19 ldr r3, [pc, #100] @ (800cbfc ) SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); 800cb96: 481a ldr r0, [pc, #104] @ (800cc00 ) g_sc_command_source = SC_SOURCE_UART5; 800cb98: 701a strb r2, [r3, #0] SC_CommandHandler((ReceivedCommand_t*)&serial_iso.received_command); 800cb9a: f000 fa35 bl 800d008 } 800cb9e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} SC_ArmUart5RxDma(); 800cba2: f000 b995 b.w 800ced0 log_printf(LOG_WARN, "UART5 RX idle event with zero size\n"); 800cba6: 4917 ldr r1, [pc, #92] @ (800cc04 ) 800cba8: 2005 movs r0, #5 800cbaa: f7fd fca9 bl 800a500 800cbae: e7c6 b.n 800cb3e log_printf(LOG_WARN, "UART2 RX invalid packet len=%u\n", (unsigned)Size); 800cbb0: 4622 mov r2, r4 800cbb2: 4915 ldr r1, [pc, #84] @ (800cc08 ) 800cbb4: 2005 movs r0, #5 800cbb6: f7fd fca3 bl 800a500 SC_SendPacket(NULL, 0, RESP_INVALID); 800cbba: 2214 movs r2, #20 800cbbc: 4629 mov r1, r5 800cbbe: 4628 mov r0, r5 800cbc0: f000 f8b6 bl 800cd30 800cbc4: e7de b.n 800cb84 log_printf(LOG_WARN, "UART2 RX idle event with zero size\n"); 800cbc6: 4911 ldr r1, [pc, #68] @ (800cc0c ) 800cbc8: 2005 movs r0, #5 800cbca: f7fd fc99 bl 800a500 800cbce: e7c7 b.n 800cb60 } 800cbd0: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} CCS_RxEventCallback(huart, Size); 800cbd4: f7ff b812 b.w 800bbfc 800cbd8: 200012f4 .word 0x200012f4 800cbdc: 20001264 .word 0x20001264 800cbe0: 2000133c .word 0x2000133c 800cbe4: 20001048 .word 0x20001048 800cbe8: 080177a8 .word 0x080177a8 800cbec: 20001159 .word 0x20001159 800cbf0: 20000e38 .word 0x20000e38 800cbf4: 20001160 .word 0x20001160 800cbf8: 2000115c .word 0x2000115c 800cbfc: 20001158 .word 0x20001158 800cc00: 20001148 .word 0x20001148 800cc04: 08017784 .word 0x08017784 800cc08: 08017764 .word 0x08017764 800cc0c: 08017740 .word 0x08017740 0800cc10 : ISR_FAST void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { if (huart->Instance == huart2.Instance) { 800cc10: 4b08 ldr r3, [pc, #32] @ (800cc34 ) 800cc12: 681a ldr r2, [r3, #0] 800cc14: 6803 ldr r3, [r0, #0] 800cc16: 4293 cmp r3, r2 800cc18: d004 beq.n 800cc24 serial_control.tx_tick = 0; } else if (huart->Instance == huart3.Instance) { 800cc1a: 4a07 ldr r2, [pc, #28] @ (800cc38 ) 800cc1c: 6812 ldr r2, [r2, #0] 800cc1e: 4293 cmp r3, r2 800cc20: d005 beq.n 800cc2e CCS_TxCpltCallback(huart); } } 800cc22: 4770 bx lr serial_control.tx_tick = 0; 800cc24: 2200 movs r2, #0 800cc26: 4b05 ldr r3, [pc, #20] @ (800cc3c ) 800cc28: f8c3 220c str.w r2, [r3, #524] @ 0x20c 800cc2c: 4770 bx lr CCS_TxCpltCallback(huart); 800cc2e: f7ff b88f b.w 800bd50 800cc32: bf00 nop 800cc34: 200012f4 .word 0x200012f4 800cc38: 2000133c .word 0x2000133c 800cc3c: 20000d38 .word 0x20000d38 0800cc40 : // Полностью программная реализация 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++) { 800cc40: b3c9 cbz r1, 800ccb6 uint32_t crc = 0xFFFFFFFFu; 800cc42: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff ISR_FAST static uint32_t calculate_crc32(const uint8_t* data, uint16_t length) { 800cc46: b500 push {lr} crc ^= data[i]; for (uint8_t bit = 0; bit < 8; bit++) { if (crc & 0x1u) { 800cc48: 4a1c ldr r2, [pc, #112] @ (800ccbc ) 800cc4a: 4401 add r1, r0 crc ^= data[i]; 800cc4c: f810 eb01 ldrb.w lr, [r0], #1 800cc50: ea8e 0e03 eor.w lr, lr, r3 if (crc & 0x1u) { 800cc54: f34e 0300 sbfx r3, lr, #0, #1 800cc58: f34e 0c40 sbfx ip, lr, #1, #1 800cc5c: 4013 ands r3, r2 800cc5e: ea83 035e eor.w r3, r3, lr, lsr #1 800cc62: ea0c 0c02 and.w ip, ip, r2 800cc66: ea8c 0c53 eor.w ip, ip, r3, lsr #1 800cc6a: f343 0340 sbfx r3, r3, #1, #1 800cc6e: f34c 0e40 sbfx lr, ip, #1, #1 800cc72: 4013 ands r3, r2 800cc74: ea83 035c eor.w r3, r3, ip, lsr #1 800cc78: ea0e 0e02 and.w lr, lr, r2 800cc7c: ea8e 0e53 eor.w lr, lr, r3, lsr #1 800cc80: f343 0340 sbfx r3, r3, #1, #1 800cc84: f34e 0c40 sbfx ip, lr, #1, #1 800cc88: 4013 ands r3, r2 800cc8a: ea83 035e eor.w r3, r3, lr, lsr #1 800cc8e: ea0c 0c02 and.w ip, ip, r2 800cc92: ea8c 0c53 eor.w ip, ip, r3, lsr #1 800cc96: f343 0340 sbfx r3, r3, #1, #1 800cc9a: 4013 ands r3, r2 800cc9c: f34c 0e40 sbfx lr, ip, #1, #1 800cca0: ea83 035c eor.w r3, r3, ip, lsr #1 for (uint16_t i = 0; i < length; i++) { 800cca4: 4281 cmp r1, r0 if (crc & 0x1u) { 800cca6: ea0e 0c02 and.w ip, lr, r2 800ccaa: ea8c 0353 eor.w r3, ip, r3, lsr #1 for (uint16_t i = 0; i < length; i++) { 800ccae: d1cd bne.n 800cc4c crc >>= 1; } } } return crc ^ 0xFFFFFFFFu; 800ccb0: 43d8 mvns r0, r3 } 800ccb2: f85d fb04 ldr.w pc, [sp], #4 for (uint16_t i = 0; i < length; i++) { 800ccb6: 4608 mov r0, r1 } 800ccb8: 4770 bx lr 800ccba: bf00 nop 800ccbc: edb88320 .word 0xedb88320 0800ccc0 : ISR_FAST static uint16_t encode_packet(const uint8_t* payload, uint16_t payload_len, uint8_t* output, uint8_t response_code) { 800ccc0: b570 push {r4, r5, r6, lr} 800ccc2: 4615 mov r5, r2 uint16_t out_index = 0; output[out_index++] = response_code; 800ccc4: 7013 strb r3, [r2, #0] if (payload != NULL) { 800ccc6: b360 cbz r0, 800cd22 // Просто копируем полезную нагрузку без какого‑либо экранирования for (uint16_t i = 0; i < payload_len; i++) { 800ccc8: b359 cbz r1, 800cd22 output[out_index++] = payload[i]; 800ccca: 4694 mov ip, r2 800cccc: 2302 movs r3, #2 800ccce: 7802 ldrb r2, [r0, #0] 800ccd0: 1e4c subs r4, r1, #1 800ccd2: b2a4 uxth r4, r4 800ccd4: 441c add r4, r3 800ccd6: f80c 2f01 strb.w r2, [ip, #1]! // Проверка переполнения if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800ccda: e005 b.n 800cce8 output[out_index++] = payload[i]; 800ccdc: f810 1f01 ldrb.w r1, [r0, #1]! if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800cce0: 2bfb cmp r3, #251 @ 0xfb output[out_index++] = payload[i]; 800cce2: f80c 1f01 strb.w r1, [ip, #1]! if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800cce6: d020 beq.n 800cd2a for (uint16_t i = 0; i < payload_len; i++) { 800cce8: 42a3 cmp r3, r4 if (out_index >= MAX_TX_BUFFER_SIZE - 5) { // 4 байта CRC + END_BYTE 800ccea: f103 0301 add.w r3, r3, #1 for (uint16_t i = 0; i < payload_len; i++) { 800ccee: d1f5 bne.n 800ccdc 800ccf0: b2a1 uxth r1, r4 output[out_index++] = payload[i]; 800ccf2: 1c4e adds r6, r1, #1 800ccf4: b2b6 uxth r6, r6 } } } // Вычисляем CRC для всего содержимого (код ответа + полезная нагрузка) uint32_t crc = calculate_crc32(output, out_index); 800ccf6: 4628 mov r0, r5 800ccf8: f7ff ffa2 bl 800cc40 800ccfc: 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]; 800ccfe: 1c71 adds r1, r6, #1 800cd00: 1cb2 adds r2, r6, #2 800cd02: 552b strb r3, [r5, r4] 800cd04: f3c3 2c07 ubfx ip, r3, #8, #8 800cd08: f3c3 4407 ubfx r4, r3, #16, #8 800cd0c: b289 uxth r1, r1 800cd0e: b292 uxth r2, r2 800cd10: f3c3 6307 ubfx r3, r3, #24, #8 800cd14: f805 c006 strb.w ip, [r5, r6] 800cd18: 1cf0 adds r0, r6, #3 800cd1a: 546c strb r4, [r5, r1] 800cd1c: 54ab strb r3, [r5, r2] 800cd1e: b280 uxth r0, r0 return 0; } } return out_index; } 800cd20: bd70 pop {r4, r5, r6, pc} for (uint16_t i = 0; i < payload_len; i++) { 800cd22: 2401 movs r4, #1 800cd24: 2602 movs r6, #2 output[out_index++] = response_code; 800cd26: 4621 mov r1, r4 800cd28: e7e5 b.n 800ccf6 return 0; 800cd2a: 2000 movs r0, #0 } 800cd2c: bd70 pop {r4, r5, r6, pc} 800cd2e: bf00 nop 0800cd30 : ISR_FAST void SC_SendPacket(const uint8_t* payload, uint16_t payload_len, uint8_t response_code) { 800cd30: b538 push {r3, r4, r5, lr} 800cd32: 4613 mov r3, r2 uint16_t packet_len = encode_packet(payload, payload_len, serial_control.tx_buffer, response_code); 800cd34: 4a11 ldr r2, [pc, #68] @ (800cd7c ) 800cd36: f7ff ffc3 bl 800ccc0 if (packet_len > 0) { 800cd3a: b180 cbz r0, 800cd5e if (huart2.gState != HAL_UART_STATE_READY) { 800cd3c: 4604 mov r4, r0 800cd3e: 4810 ldr r0, [pc, #64] @ (800cd80 ) 800cd40: f890 3041 ldrb.w r3, [r0, #65] @ 0x41 800cd44: 2b20 cmp r3, #32 800cd46: d10b bne.n 800cd60 (void)HAL_UART_AbortTransmit(&huart2); log_printf(LOG_WARN, "UART2 TX busy, abort transmit before resend\n"); } if (HAL_UART_Transmit_DMA(&huart2, serial_control.tx_buffer, packet_len) != HAL_OK) { 800cd48: 4d0c ldr r5, [pc, #48] @ (800cd7c ) 800cd4a: 4622 mov r2, r4 800cd4c: 4629 mov r1, r5 800cd4e: 480c ldr r0, [pc, #48] @ (800cd80 ) 800cd50: f006 f8ce bl 8012ef0 800cd54: b958 cbnz r0, 800cd6e SC_LogUartError("UART2 TX DMA start failed", &huart2); return; } serial_control.tx_tick = HAL_GetTick(); 800cd56: f001 facf bl 800e2f8 800cd5a: f8c5 020c str.w r0, [r5, #524] @ 0x20c } } 800cd5e: bd38 pop {r3, r4, r5, pc} (void)HAL_UART_AbortTransmit(&huart2); 800cd60: f006 f9ec bl 801313c log_printf(LOG_WARN, "UART2 TX busy, abort transmit before resend\n"); 800cd64: 4907 ldr r1, [pc, #28] @ (800cd84 ) 800cd66: 2005 movs r0, #5 800cd68: f7fd fbca bl 800a500 800cd6c: e7ec b.n 800cd48 SC_LogUartError("UART2 TX DMA start failed", &huart2); 800cd6e: 4904 ldr r1, [pc, #16] @ (800cd80 ) 800cd70: 4805 ldr r0, [pc, #20] @ (800cd88 ) } 800cd72: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} SC_LogUartError("UART2 TX DMA start failed", &huart2); 800cd76: f000 b905 b.w 800cf84 800cd7a: bf00 nop 800cd7c: 20000d38 .word 0x20000d38 800cd80: 200012f4 .word 0x200012f4 800cd84: 080177c8 .word 0x080177c8 800cd88: 080177f8 .word 0x080177f8 0800cd8c : ISR_FAST static uint8_t parse_packet(const uint8_t* packet_data, uint16_t packet_len, ReceivedCommand_t* out_cmd) { 800cd8c: e92d 4178 stmdb sp!, {r3, r4, r5, r6, r8, lr} // }else{ // test_crc_invalid = 5; // } // Минимальный размер: 1 байт команды + 4 байта CRC if (packet_len < 5) return 0; 800cd90: 1f4b subs r3, r1, #5 800cd92: 2bfb cmp r3, #251 @ 0xfb 800cd94: d813 bhi.n 800cdbe if (packet_len > MAX_RX_BUFFER_SIZE) return 0; uint16_t payload_length = packet_len - 4; 800cd96: 3904 subs r1, #4 800cd98: 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) | 800cd9a: 1903 adds r3, r0, r4 ((uint32_t)packet_data[payload_length + 2] << 16) | 800cd9c: 789d ldrb r5, [r3, #2] 800cd9e: 4690 mov r8, r2 ((uint32_t)packet_data[payload_length + 1] << 8) | 800cda0: 785a ldrb r2, [r3, #1] ((uint32_t)packet_data[payload_length + 2] << 16) | 800cda2: 042d lsls r5, r5, #16 ((uint32_t)packet_data[payload_length + 1] << 8) | 800cda4: ea45 2502 orr.w r5, r5, r2, lsl #8 ((uint32_t)packet_data[payload_length] << 0) | 800cda8: 5d02 ldrb r2, [r0, r4] ((uint32_t)packet_data[payload_length + 3] << 24); 800cdaa: 78db ldrb r3, [r3, #3] ((uint32_t)packet_data[payload_length + 1] << 8) | 800cdac: 4315 orrs r5, r2 // Вычисляем CRC для полезной нагрузки uint32_t calculated_checksum = calculate_crc32(packet_data, payload_length); 800cdae: 4621 mov r1, r4 uint32_t received_checksum = 800cdb0: ea45 6503 orr.w r5, r5, r3, lsl #24 uint32_t calculated_checksum = calculate_crc32(packet_data, payload_length); 800cdb4: 4606 mov r6, r0 800cdb6: f7ff ff43 bl 800cc40 if (received_checksum != calculated_checksum) return 0; // CRC не совпадает 800cdba: 4285 cmp r5, r0 800cdbc: d002 beq.n 800cdc4 if (packet_len < 5) return 0; 800cdbe: 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; } 800cdc0: e8bd 8178 ldmia.w sp!, {r3, r4, r5, r6, r8, pc} out_cmd->argument = (void *)&packet_data[1]; 800cdc4: 1c73 adds r3, r6, #1 800cdc6: f8c8 3004 str.w r3, [r8, #4] out_cmd->command = packet_data[0]; 800cdca: 7833 ldrb r3, [r6, #0] out_cmd->argument_length = (uint8_t)(payload_length - 1); 800cdcc: 3c01 subs r4, #1 out_cmd->command = packet_data[0]; 800cdce: f888 3000 strb.w r3, [r8] out_cmd->argument_length = (uint8_t)(payload_length - 1); 800cdd2: f888 4001 strb.w r4, [r8, #1] return 1; 800cdd6: 2001 movs r0, #1 } 800cdd8: e8bd 8178 ldmia.w sp!, {r3, r4, r5, r6, r8, pc} 0800cddc : ISR_FAST static uint8_t process_received_packet(SerialControl_t *ctx, const uint8_t* packet_data, uint16_t packet_len) { 800cddc: b510 push {r4, lr} 800cdde: 4604 mov r4, r0 if (!parse_packet(packet_data, packet_len, (ReceivedCommand_t *)&ctx->received_command)) { 800cde0: 4608 mov r0, r1 800cde2: 4611 mov r1, r2 800cde4: f504 7200 add.w r2, r4, #512 @ 0x200 800cde8: f7ff ffd0 bl 800cd8c 800cdec: b118 cbz r0, 800cdf6 return 0; } ctx->command_ready = 1; 800cdee: 2301 movs r3, #1 return 1; 800cdf0: 4618 mov r0, r3 ctx->command_ready = 1; 800cdf2: f884 3208 strb.w r3, [r4, #520] @ 0x208 } 800cdf6: bd10 pop {r4, pc} 0800cdf8 : static void SC_UART2_Watchdog(void) { 800cdf8: b580 push {r7, lr} 800cdfa: b082 sub sp, #8 800cdfc: af00 add r7, sp, #0 const uint32_t now = HAL_GetTick(); 800cdfe: f001 fa7b bl 800e2f8 800ce02: 6078 str r0, [r7, #4] const int32_t since_last_packet = (int32_t)(now - sc_uart2_last_packet_tick); 800ce04: 4b1a ldr r3, [pc, #104] @ (800ce70 ) 800ce06: 681b ldr r3, [r3, #0] 800ce08: 687a ldr r2, [r7, #4] 800ce0a: 1ad3 subs r3, r2, r3 800ce0c: 603b str r3, [r7, #0] if (since_last_packet >= (int32_t)SC_UART2_PACKET_TIMEOUT_MS) { 800ce0e: 683b ldr r3, [r7, #0] 800ce10: f241 3287 movw r2, #4999 @ 0x1387 800ce14: 4293 cmp r3, r2 800ce16: dd12 ble.n 800ce3e if (sc_uart2_timed_out == 0u) { 800ce18: 4b16 ldr r3, [pc, #88] @ (800ce74 ) 800ce1a: 781b ldrb r3, [r3, #0] 800ce1c: b2db uxtb r3, r3 800ce1e: 2b00 cmp r3, #0 800ce20: d109 bne.n 800ce36 serial_control.command_ready = 0; 800ce22: 4b15 ldr r3, [pc, #84] @ (800ce78 ) 800ce24: 2200 movs r2, #0 800ce26: f883 2208 strb.w r2, [r3, #520] @ 0x208 log_printf(LOG_WARN, "UART2 RX packet timeout (%u ms)\n", (unsigned)SC_UART2_PACKET_TIMEOUT_MS); 800ce2a: f241 3288 movw r2, #5000 @ 0x1388 800ce2e: 4913 ldr r1, [pc, #76] @ (800ce7c ) 800ce30: 2005 movs r0, #5 800ce32: f7fd fb65 bl 800a500 } sc_uart2_timed_out = 1; 800ce36: 4b0f ldr r3, [pc, #60] @ (800ce74 ) 800ce38: 2201 movs r2, #1 800ce3a: 701a strb r2, [r3, #0] 800ce3c: e002 b.n 800ce44 } else { sc_uart2_timed_out = 0; 800ce3e: 4b0d ldr r3, [pc, #52] @ (800ce74 ) 800ce40: 2200 movs r2, #0 800ce42: 701a strb r2, [r3, #0] } if ((huart2.RxState == HAL_UART_STATE_READY) && 800ce44: 4b0e ldr r3, [pc, #56] @ (800ce80 ) 800ce46: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800ce4a: b2db uxtb r3, r3 800ce4c: 2b20 cmp r3, #32 800ce4e: d10a bne.n 800ce66 ((int32_t)(now - sc_uart2_last_recover_tick) >= (int32_t)SC_UART2_RECOVER_GUARD_MS)) { 800ce50: 4b0c ldr r3, [pc, #48] @ (800ce84 ) 800ce52: 681b ldr r3, [r3, #0] 800ce54: 687a ldr r2, [r7, #4] 800ce56: 1ad3 subs r3, r2, r3 if ((huart2.RxState == HAL_UART_STATE_READY) && 800ce58: 2bc7 cmp r3, #199 @ 0xc7 800ce5a: dd04 ble.n 800ce66 SC_ArmUart2RxDma(); 800ce5c: f000 f814 bl 800ce88 sc_uart2_last_recover_tick = now; 800ce60: 4a08 ldr r2, [pc, #32] @ (800ce84 ) 800ce62: 687b ldr r3, [r7, #4] 800ce64: 6013 str r3, [r2, #0] } } 800ce66: bf00 nop 800ce68: 3708 adds r7, #8 800ce6a: 46bd mov sp, r7 800ce6c: bd80 pop {r7, pc} 800ce6e: bf00 nop 800ce70: 2000115c .word 0x2000115c 800ce74: 20001159 .word 0x20001159 800ce78: 20000d38 .word 0x20000d38 800ce7c: 08017814 .word 0x08017814 800ce80: 200012f4 .word 0x200012f4 800ce84: 20001160 .word 0x20001160 0800ce88 : static void SC_ArmUart2RxDma(void) { 800ce88: b580 push {r7, lr} 800ce8a: af00 add r7, sp, #0 if ((huart2.RxState == HAL_UART_STATE_READY) && (serial_control.command_ready == 0)) { 800ce8c: 4b0c ldr r3, [pc, #48] @ (800cec0 ) 800ce8e: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800ce92: b2db uxtb r3, r3 800ce94: 2b20 cmp r3, #32 800ce96: d111 bne.n 800cebc 800ce98: 4b0a ldr r3, [pc, #40] @ (800cec4 ) 800ce9a: f893 3208 ldrb.w r3, [r3, #520] @ 0x208 800ce9e: b2db uxtb r3, r3 800cea0: 2b00 cmp r3, #0 800cea2: d10b bne.n 800cebc if (HAL_UARTEx_ReceiveToIdle_DMA(&huart2, serial_control.rx_buffer, MAX_RX_BUFFER_SIZE - 1) != HAL_OK) { 800cea4: 22ff movs r2, #255 @ 0xff 800cea6: 4908 ldr r1, [pc, #32] @ (800cec8 ) 800cea8: 4805 ldr r0, [pc, #20] @ (800cec0 ) 800ceaa: f006 f8ee bl 801308a 800ceae: 4603 mov r3, r0 800ceb0: 2b00 cmp r3, #0 800ceb2: d003 beq.n 800cebc SC_LogUartError("UART2 RX DMA arm failed", &huart2); 800ceb4: 4902 ldr r1, [pc, #8] @ (800cec0 ) 800ceb6: 4805 ldr r0, [pc, #20] @ (800cecc ) 800ceb8: f000 f864 bl 800cf84 } } } 800cebc: bf00 nop 800cebe: bd80 pop {r7, pc} 800cec0: 200012f4 .word 0x200012f4 800cec4: 20000d38 .word 0x20000d38 800cec8: 20000e38 .word 0x20000e38 800cecc: 08017838 .word 0x08017838 0800ced0 : static void SC_ArmUart5RxDma(void) { 800ced0: b580 push {r7, lr} 800ced2: af00 add r7, sp, #0 if (huart5.RxState == HAL_UART_STATE_READY) { 800ced4: 4b0a ldr r3, [pc, #40] @ (800cf00 ) 800ced6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800ceda: b2db uxtb r3, r3 800cedc: 2b20 cmp r3, #32 800cede: d10d bne.n 800cefc if (HAL_UARTEx_ReceiveToIdle_IT(&huart5, serial_iso.rx_buffer, MAX_RX_BUFFER_SIZE - 1) == HAL_OK) { 800cee0: 22ff movs r2, #255 @ 0xff 800cee2: 4908 ldr r1, [pc, #32] @ (800cf04 ) 800cee4: 4806 ldr r0, [pc, #24] @ (800cf00 ) 800cee6: f006 f873 bl 8012fd0 800ceea: 4603 mov r3, r0 800ceec: 2b00 cmp r3, #0 800ceee: d004 beq.n 800cefa return; } SC_LogUartError("UART5 RX IT arm failed", &huart5); 800cef0: 4903 ldr r1, [pc, #12] @ (800cf00 ) 800cef2: 4805 ldr r0, [pc, #20] @ (800cf08 ) 800cef4: f000 f846 bl 800cf84 800cef8: e000 b.n 800cefc return; 800cefa: bf00 nop } } 800cefc: bd80 pop {r7, pc} 800cefe: bf00 nop 800cf00: 20001264 .word 0x20001264 800cf04: 20001048 .word 0x20001048 800cf08: 08017850 .word 0x08017850 0800cf0c : void SC_RecoverUartDma(UART_HandleTypeDef *huart) { 800cf0c: b580 push {r7, lr} 800cf0e: b082 sub sp, #8 800cf10: af00 add r7, sp, #0 800cf12: 6078 str r0, [r7, #4] if (huart == &huart2) { 800cf14: 687b ldr r3, [r7, #4] 800cf16: 4a15 ldr r2, [pc, #84] @ (800cf6c ) 800cf18: 4293 cmp r3, r2 800cf1a: d115 bne.n 800cf48 SC_LogUartError("UART2 recover start", &huart2); 800cf1c: 4913 ldr r1, [pc, #76] @ (800cf6c ) 800cf1e: 4814 ldr r0, [pc, #80] @ (800cf70 ) 800cf20: f000 f830 bl 800cf84 (void)HAL_UART_AbortReceive(&huart2); 800cf24: 4811 ldr r0, [pc, #68] @ (800cf6c ) 800cf26: f006 f971 bl 801320c (void)HAL_UART_AbortTransmit(&huart2); 800cf2a: 4810 ldr r0, [pc, #64] @ (800cf6c ) 800cf2c: f006 f906 bl 801313c serial_control.tx_tick = 0; 800cf30: 4b10 ldr r3, [pc, #64] @ (800cf74 ) 800cf32: 2200 movs r2, #0 800cf34: f8c3 220c str.w r2, [r3, #524] @ 0x20c SC_ArmUart2RxDma(); 800cf38: f7ff ffa6 bl 800ce88 sc_uart2_last_recover_tick = HAL_GetTick(); 800cf3c: f001 f9dc bl 800e2f8 800cf40: 4603 mov r3, r0 800cf42: 4a0d ldr r2, [pc, #52] @ (800cf78 ) 800cf44: 6013 str r3, [r2, #0] } else if (huart == &huart5) { SC_LogUartError("UART5 recover start", &huart5); (void)HAL_UART_AbortReceive(&huart5); SC_ArmUart5RxDma(); } } 800cf46: e00c b.n 800cf62 } else if (huart == &huart5) { 800cf48: 687b ldr r3, [r7, #4] 800cf4a: 4a0c ldr r2, [pc, #48] @ (800cf7c ) 800cf4c: 4293 cmp r3, r2 800cf4e: d108 bne.n 800cf62 SC_LogUartError("UART5 recover start", &huart5); 800cf50: 490a ldr r1, [pc, #40] @ (800cf7c ) 800cf52: 480b ldr r0, [pc, #44] @ (800cf80 ) 800cf54: f000 f816 bl 800cf84 (void)HAL_UART_AbortReceive(&huart5); 800cf58: 4808 ldr r0, [pc, #32] @ (800cf7c ) 800cf5a: f006 f957 bl 801320c SC_ArmUart5RxDma(); 800cf5e: f7ff ffb7 bl 800ced0 } 800cf62: bf00 nop 800cf64: 3708 adds r7, #8 800cf66: 46bd mov sp, r7 800cf68: bd80 pop {r7, pc} 800cf6a: bf00 nop 800cf6c: 200012f4 .word 0x200012f4 800cf70: 08017868 .word 0x08017868 800cf74: 20000d38 .word 0x20000d38 800cf78: 20001160 .word 0x20001160 800cf7c: 20001264 .word 0x20001264 800cf80: 0801787c .word 0x0801787c 0800cf84 : static void SC_LogUartError(const char *tag, UART_HandleTypeDef *huart) { 800cf84: b590 push {r4, r7, lr} 800cf86: b087 sub sp, #28 800cf88: af04 add r7, sp, #16 800cf8a: 6078 str r0, [r7, #4] 800cf8c: 6039 str r1, [r7, #0] if (tag == NULL || huart == NULL) { 800cf8e: 687b ldr r3, [r7, #4] 800cf90: 2b00 cmp r3, #0 800cf92: d01c beq.n 800cfce 800cf94: 683b ldr r3, [r7, #0] 800cf96: 2b00 cmp r3, #0 800cf98: d019 beq.n 800cfce return; } log_printf(LOG_ERR, "%s: instance=0x%08lx err=0x%08lx g=%lu rx=%lu\n", tag, (unsigned long)huart->Instance, 800cf9a: 683b ldr r3, [r7, #0] 800cf9c: 681b ldr r3, [r3, #0] log_printf(LOG_ERR, "%s: instance=0x%08lx err=0x%08lx g=%lu rx=%lu\n", 800cf9e: 461c mov r4, r3 (unsigned long)HAL_UART_GetError(huart), 800cfa0: 6838 ldr r0, [r7, #0] 800cfa2: f006 fc84 bl 80138ae 800cfa6: 4602 mov r2, r0 (unsigned long)huart->gState, 800cfa8: 683b ldr r3, [r7, #0] 800cfaa: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800cfae: b2db uxtb r3, r3 log_printf(LOG_ERR, "%s: instance=0x%08lx err=0x%08lx g=%lu rx=%lu\n", 800cfb0: 4619 mov r1, r3 (unsigned long)huart->RxState); 800cfb2: 683b ldr r3, [r7, #0] 800cfb4: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 800cfb8: b2db uxtb r3, r3 log_printf(LOG_ERR, "%s: instance=0x%08lx err=0x%08lx g=%lu rx=%lu\n", 800cfba: 9302 str r3, [sp, #8] 800cfbc: 9101 str r1, [sp, #4] 800cfbe: 9200 str r2, [sp, #0] 800cfc0: 4623 mov r3, r4 800cfc2: 687a ldr r2, [r7, #4] 800cfc4: 4904 ldr r1, [pc, #16] @ (800cfd8 ) 800cfc6: 2004 movs r0, #4 800cfc8: f7fd fa9a bl 800a500 800cfcc: e000 b.n 800cfd0 return; 800cfce: bf00 nop } 800cfd0: 370c adds r7, #12 800cfd2: 46bd mov sp, r7 800cfd4: bd90 pop {r4, r7, pc} 800cfd6: bf00 nop 800cfd8: 08017890 .word 0x08017890 0800cfdc <__NVIC_SystemReset>: { 800cfdc: b480 push {r7} 800cfde: af00 add r7, sp, #0 __ASM volatile ("dsb 0xF":::"memory"); 800cfe0: f3bf 8f4f dsb sy } 800cfe4: bf00 nop (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | 800cfe6: 4b06 ldr r3, [pc, #24] @ (800d000 <__NVIC_SystemReset+0x24>) 800cfe8: 68db ldr r3, [r3, #12] 800cfea: f403 62e0 and.w r2, r3, #1792 @ 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800cfee: 4904 ldr r1, [pc, #16] @ (800d000 <__NVIC_SystemReset+0x24>) 800cff0: 4b04 ldr r3, [pc, #16] @ (800d004 <__NVIC_SystemReset+0x28>) 800cff2: 4313 orrs r3, r2 800cff4: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); 800cff6: f3bf 8f4f dsb sy } 800cffa: bf00 nop __NOP(); 800cffc: bf00 nop 800cffe: e7fd b.n 800cffc <__NVIC_SystemReset+0x20> 800d000: e000ed00 .word 0xe000ed00 800d004: 05fa0004 .word 0x05fa0004 0800d008 : .chargerNumber = 00001, .unixTime = 1721651966, }; // Единая функция-обработчик всех команд со switch-case void SC_CommandHandler(ReceivedCommand_t* cmd) { 800d008: b580 push {r7, lr} 800d00a: b084 sub sp, #16 800d00c: af00 add r7, sp, #0 800d00e: 6078 str r0, [r7, #4] uint8_t response_code = RESP_FAILED; 800d010: 2313 movs r3, #19 800d012: 73fb strb r3, [r7, #15] switch (cmd->command) { 800d014: 687b ldr r3, [r7, #4] 800d016: 781b ldrb r3, [r3, #0] 800d018: 2bc2 cmp r3, #194 @ 0xc2 800d01a: f300 80cc bgt.w 800d1b6 800d01e: 2bb0 cmp r3, #176 @ 0xb0 800d020: da0f bge.n 800d042 800d022: 2b60 cmp r3, #96 @ 0x60 800d024: d042 beq.n 800d0ac 800d026: 2b60 cmp r3, #96 @ 0x60 800d028: f300 80c5 bgt.w 800d1b6 800d02c: 2b50 cmp r3, #80 @ 0x50 800d02e: d043 beq.n 800d0b8 800d030: 2b50 cmp r3, #80 @ 0x50 800d032: f300 80c0 bgt.w 800d1b6 800d036: 2b01 cmp r3, #1 800d038: f000 80a6 beq.w 800d188 800d03c: 2b40 cmp r3, #64 @ 0x40 800d03e: d02d beq.n 800d09c 800d040: e0b9 b.n 800d1b6 800d042: 3bb0 subs r3, #176 @ 0xb0 800d044: 2b12 cmp r3, #18 800d046: f200 80b6 bhi.w 800d1b6 800d04a: a201 add r2, pc, #4 @ (adr r2, 800d050 ) 800d04c: f852 f023 ldr.w pc, [r2, r3, lsl #2] 800d050: 0800d0bf .word 0x0800d0bf 800d054: 0800d1b7 .word 0x0800d1b7 800d058: 0800d1b7 .word 0x0800d1b7 800d05c: 0800d1b7 .word 0x0800d1b7 800d060: 0800d1b7 .word 0x0800d1b7 800d064: 0800d167 .word 0x0800d167 800d068: 0800d1b7 .word 0x0800d1b7 800d06c: 0800d1b7 .word 0x0800d1b7 800d070: 0800d1b7 .word 0x0800d1b7 800d074: 0800d1b7 .word 0x0800d1b7 800d078: 0800d1b7 .word 0x0800d1b7 800d07c: 0800d1b7 .word 0x0800d1b7 800d080: 0800d1b7 .word 0x0800d1b7 800d084: 0800d1b7 .word 0x0800d1b7 800d088: 0800d1b7 .word 0x0800d1b7 800d08c: 0800d1b7 .word 0x0800d1b7 800d090: 0800d0fd .word 0x0800d0fd 800d094: 0800d161 .word 0x0800d161 800d098: 0800d135 .word 0x0800d135 // Команды БЕЗ аргументов case CMD_GET_STATUS: // Логика получения информации monitoring_data_callback(); 800d09c: f000 f8b2 bl 800d204 // Отправляем с нормальным приоритетом SC_SendPacket((uint8_t*)&statusPacket, sizeof(statusPacket), CMD_GET_STATUS); 800d0a0: 2240 movs r2, #64 @ 0x40 800d0a2: 2158 movs r1, #88 @ 0x58 800d0a4: 484b ldr r0, [pc, #300] @ (800d1d4 ) 800d0a6: f7ff fe43 bl 800cd30 return; // Специальный ответ уже отправлен 800d0aa: e08f b.n 800d1cc case CMD_GET_INFO: SC_SendPacket((uint8_t*)&infoPacket, sizeof(infoPacket), CMD_GET_INFO); 800d0ac: 2260 movs r2, #96 @ 0x60 800d0ae: 210a movs r1, #10 800d0b0: 4849 ldr r0, [pc, #292] @ (800d1d8 ) 800d0b2: f7ff fe3d bl 800cd30 return; 800d0b6: e089 b.n 800d1cc case CMD_GET_LOG: debug_buffer_send(); 800d0b8: f7fd f9c0 bl 800a43c return; // Ответ формируется внутри debug_buffer_send 800d0bc: e086 b.n 800d1cc // Команды С аргументами case CMD_SET_CONFIG: if (cmd->argument_length == sizeof(ConfigBlock_t)) { 800d0be: 687b ldr r3, [r7, #4] 800d0c0: 785b ldrb r3, [r3, #1] 800d0c2: 2b0b cmp r3, #11 800d0c4: d117 bne.n 800d0f6 memcpy(&config, cmd->argument, sizeof(ConfigBlock_t)); 800d0c6: 687b ldr r3, [r7, #4] 800d0c8: 685a ldr r2, [r3, #4] 800d0ca: 4b44 ldr r3, [pc, #272] @ (800d1dc ) 800d0cc: 6810 ldr r0, [r2, #0] 800d0ce: 6851 ldr r1, [r2, #4] 800d0d0: c303 stmia r3!, {r0, r1} 800d0d2: 8911 ldrh r1, [r2, #8] 800d0d4: 7a92 ldrb r2, [r2, #10] 800d0d6: 8019 strh r1, [r3, #0] 800d0d8: 709a strb r2, [r3, #2] config_initialized = 1; 800d0da: 4b41 ldr r3, [pc, #260] @ (800d1e0 ) 800d0dc: 2201 movs r2, #1 800d0de: 701a strb r2, [r3, #0] log_printf(LOG_INFO, "Set Config: %s %d\n", config.location, config.chargerNumber); 800d0e0: 4b3e ldr r3, [pc, #248] @ (800d1dc ) 800d0e2: f8d3 3003 ldr.w r3, [r3, #3] 800d0e6: 4a3d ldr r2, [pc, #244] @ (800d1dc ) 800d0e8: 493e ldr r1, [pc, #248] @ (800d1e4 ) 800d0ea: 2007 movs r0, #7 800d0ec: f7fd fa08 bl 800a500 response_code = RESP_SUCCESS; 800d0f0: 2312 movs r3, #18 800d0f2: 73fb strb r3, [r7, #15] break; 800d0f4: e062 b.n 800d1bc } response_code = RESP_FAILED; 800d0f6: 2313 movs r3, #19 800d0f8: 73fb strb r3, [r7, #15] break; 800d0fa: e05f b.n 800d1bc case CMD_SET_POWER_LIMIT: if (cmd->argument_length == 1) { 800d0fc: 687b ldr r3, [r7, #4] 800d0fe: 785b ldrb r3, [r3, #1] 800d100: 2b01 cmp r3, #1 800d102: d114 bne.n 800d12e PSU0.power_limit = ((uint8_t*)cmd->argument)[0] * 1000; 800d104: 687b ldr r3, [r7, #4] 800d106: 685b ldr r3, [r3, #4] 800d108: 781b ldrb r3, [r3, #0] 800d10a: 461a mov r2, r3 800d10c: f44f 737a mov.w r3, #1000 @ 0x3e8 800d110: fb02 f303 mul.w r3, r2, r3 800d114: 461a mov r2, r3 800d116: 4b34 ldr r3, [pc, #208] @ (800d1e8 ) 800d118: 615a str r2, [r3, #20] log_printf(LOG_INFO, "Power limit: %d\n", PSU0.power_limit); 800d11a: 4b33 ldr r3, [pc, #204] @ (800d1e8 ) 800d11c: 695b ldr r3, [r3, #20] 800d11e: 461a mov r2, r3 800d120: 4932 ldr r1, [pc, #200] @ (800d1ec ) 800d122: 2007 movs r0, #7 800d124: f7fd f9ec bl 800a500 //CONN.connState = (((uint8_t*)cmd->argument)[0])/4; response_code = RESP_SUCCESS; 800d128: 2312 movs r3, #18 800d12a: 73fb strb r3, [r7, #15] break; 800d12c: e046 b.n 800d1bc } response_code = RESP_FAILED; 800d12e: 2313 movs r3, #19 800d130: 73fb strb r3, [r7, #15] break; 800d132: e043 b.n 800d1bc case CMD_CHARGE_PERMIT: if (cmd->argument_length == 1) { 800d134: 687b ldr r3, [r7, #4] 800d136: 785b ldrb r3, [r3, #1] 800d138: 2b01 cmp r3, #1 800d13a: d10e bne.n 800d15a CONN.connControl = ((uint8_t*)cmd->argument)[0]; 800d13c: 687b ldr r3, [r7, #4] 800d13e: 685b ldr r3, [r3, #4] 800d140: 781a ldrb r2, [r3, #0] 800d142: 4b2b ldr r3, [pc, #172] @ (800d1f0 ) 800d144: 701a strb r2, [r3, #0] log_printf(LOG_INFO, "Charge permit: %d\n", CONN.connControl); 800d146: 4b2a ldr r3, [pc, #168] @ (800d1f0 ) 800d148: 781b ldrb r3, [r3, #0] 800d14a: 461a mov r2, r3 800d14c: 4929 ldr r1, [pc, #164] @ (800d1f4 ) 800d14e: 2007 movs r0, #7 800d150: f7fd f9d6 bl 800a500 response_code = RESP_SUCCESS; 800d154: 2312 movs r3, #18 800d156: 73fb strb r3, [r7, #15] break; 800d158: e030 b.n 800d1bc } response_code = RESP_FAILED; 800d15a: 2313 movs r3, #19 800d15c: 73fb strb r3, [r7, #15] break; 800d15e: e02d b.n 800d1bc // 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; 800d160: 2313 movs r3, #19 800d162: 73fb strb r3, [r7, #15] break; 800d164: e02a b.n 800d1bc case CMD_DEVICE_RESET: // 2. Отправляем SUCCESS (хост может успеть получить его перед ребутом) SC_SendPacket(NULL, 0, RESP_SUCCESS); 800d166: 2212 movs r2, #18 800d168: 2100 movs r1, #0 800d16a: 2000 movs r0, #0 800d16c: f7ff fde0 bl 800cd30 while(huart2.gState == HAL_UART_STATE_BUSY_TX); // Ожидание завершения передачи 800d170: bf00 nop 800d172: 4b21 ldr r3, [pc, #132] @ (800d1f8 ) 800d174: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 800d178: b2db uxtb r3, r3 800d17a: 2b21 cmp r3, #33 @ 0x21 800d17c: d0f9 beq.n 800d172 HAL_Delay(10); 800d17e: 200a movs r0, #10 800d180: f001 f8c4 bl 800e30c // 3. Выполняем программный сброс NVIC_SystemReset(); 800d184: f7ff ff2a bl 800cfdc <__NVIC_SystemReset> return; // Сюда код уже не дойдет, но для компилятора нxужно case CMD_ISOLATION_STATUS: if (cmd->argument_length == sizeof(IsolationStatusPacket_t)) { 800d188: 687b ldr r3, [r7, #4] 800d18a: 785b ldrb r3, [r3, #1] 800d18c: 2b09 cmp r3, #9 800d18e: d10f bne.n 800d1b0 memcpy(&ISO, cmd->argument, sizeof(IsolationStatusPacket_t)); 800d190: 687b ldr r3, [r7, #4] 800d192: 685a ldr r2, [r3, #4] 800d194: 4b19 ldr r3, [pc, #100] @ (800d1fc ) 800d196: 6810 ldr r0, [r2, #0] 800d198: 6851 ldr r1, [r2, #4] 800d19a: c303 stmia r3!, {r0, r1} 800d19c: 7a12 ldrb r2, [r2, #8] 800d19e: 701a strb r2, [r3, #0] // Для однонаправленного UART5 ответ не нужен if (g_sc_command_source == SC_SOURCE_UART5) { 800d1a0: 4b17 ldr r3, [pc, #92] @ (800d200 ) 800d1a2: 781b ldrb r3, [r3, #0] 800d1a4: b2db uxtb r3, r3 800d1a6: 2b01 cmp r3, #1 800d1a8: d00f beq.n 800d1ca return; } response_code = RESP_SUCCESS; 800d1aa: 2312 movs r3, #18 800d1ac: 73fb strb r3, [r7, #15] break; 800d1ae: e005 b.n 800d1bc } response_code = RESP_FAILED; 800d1b0: 2313 movs r3, #19 800d1b2: 73fb strb r3, [r7, #15] break; 800d1b4: e002 b.n 800d1bc default: // Неизвестная команда response_code = RESP_FAILED; 800d1b6: 2313 movs r3, #19 800d1b8: 73fb strb r3, [r7, #15] break; 800d1ba: bf00 nop } // Отправляем финальный ответ (для команд без собственного ответа) SC_SendPacket(NULL, 0, response_code); 800d1bc: 7bfb ldrb r3, [r7, #15] 800d1be: 461a mov r2, r3 800d1c0: 2100 movs r1, #0 800d1c2: 2000 movs r0, #0 800d1c4: f7ff fdb4 bl 800cd30 800d1c8: e000 b.n 800d1cc return; 800d1ca: bf00 nop } 800d1cc: 3710 adds r7, #16 800d1ce: 46bd mov sp, r7 800d1d0: bd80 pop {r7, pc} 800d1d2: bf00 nop 800d1d4: 20001164 .word 0x20001164 800d1d8: 200011bc .word 0x200011bc 800d1dc: 20000078 .word 0x20000078 800d1e0: 200011cc .word 0x200011cc 800d1e4: 080178c0 .word 0x080178c0 800d1e8: 2000090c .word 0x2000090c 800d1ec: 080178d4 .word 0x080178d4 800d1f0: 200003b0 .word 0x200003b0 800d1f4: 080178e8 .word 0x080178e8 800d1f8: 200012f4 .word 0x200012f4 800d1fc: 2000006c .word 0x2000006c 800d200: 20001158 .word 0x20001158 0800d204 : // Колбэк для заполнения данных мониторинга void monitoring_data_callback() { 800d204: b580 push {r7, lr} 800d206: af00 add r7, sp, #0 // Информация о зарядной сессии statusPacket.SOC = CONN.SOC; 800d208: 4b8f ldr r3, [pc, #572] @ (800d448 ) 800d20a: 789a ldrb r2, [r3, #2] 800d20c: 4b8f ldr r3, [pc, #572] @ (800d44c ) 800d20e: 709a strb r2, [r3, #2] statusPacket.Energy = CONN.Energy; 800d210: 4b8d ldr r3, [pc, #564] @ (800d448 ) 800d212: f8d3 3007 ldr.w r3, [r3, #7] 800d216: 4a8d ldr r2, [pc, #564] @ (800d44c ) 800d218: f8c2 3003 str.w r3, [r2, #3] statusPacket.RequestedVoltage = CONN.RequestedVoltage; 800d21c: 4b8a ldr r3, [pc, #552] @ (800d448 ) 800d21e: f8b3 300f ldrh.w r3, [r3, #15] 800d222: b29a uxth r2, r3 800d224: 4b89 ldr r3, [pc, #548] @ (800d44c ) 800d226: f8a3 2007 strh.w r2, [r3, #7] statusPacket.RequestedCurrent = CONN.WantedCurrent; 800d22a: 4b87 ldr r3, [pc, #540] @ (800d448 ) 800d22c: f8b3 301b ldrh.w r3, [r3, #27] 800d230: b29a uxth r2, r3 800d232: 4b86 ldr r3, [pc, #536] @ (800d44c ) 800d234: f8a3 2009 strh.w r2, [r3, #9] statusPacket.MeasuredVoltage = CONN.MeasuredVoltage; 800d238: 4b83 ldr r3, [pc, #524] @ (800d448 ) 800d23a: f8b3 3013 ldrh.w r3, [r3, #19] 800d23e: b29a uxth r2, r3 800d240: 4b82 ldr r3, [pc, #520] @ (800d44c ) 800d242: f8a3 200b strh.w r2, [r3, #11] statusPacket.MeasuredCurrent = CONN.MeasuredCurrent; 800d246: 4b80 ldr r3, [pc, #512] @ (800d448 ) 800d248: f8b3 3015 ldrh.w r3, [r3, #21] 800d24c: b29a uxth r2, r3 800d24e: 4b7f ldr r3, [pc, #508] @ (800d44c ) 800d250: f8a3 200d strh.w r2, [r3, #13] statusPacket.outputEnabled = CONN.outputEnabled; 800d254: 4b7c ldr r3, [pc, #496] @ (800d448 ) 800d256: 7e1a ldrb r2, [r3, #24] 800d258: 4b7c ldr r3, [pc, #496] @ (800d44c ) 800d25a: 73da strb r2, [r3, #15] statusPacket.chargingError = CONN.chargingError; 800d25c: 4b7a ldr r3, [pc, #488] @ (800d448 ) 800d25e: 7f5a ldrb r2, [r3, #29] 800d260: 4b7a ldr r3, [pc, #488] @ (800d44c ) 800d262: 705a strb r2, [r3, #1] statusPacket.connState = CONN.connState; 800d264: 4b78 ldr r3, [pc, #480] @ (800d448 ) 800d266: 785a ldrb r2, [r3, #1] 800d268: 4b78 ldr r3, [pc, #480] @ (800d44c ) 800d26a: 701a strb r2, [r3, #0] statusPacket.chargingElapsedTimeMin = 0; 800d26c: 4b77 ldr r3, [pc, #476] @ (800d44c ) 800d26e: 2200 movs r2, #0 800d270: 741a strb r2, [r3, #16] 800d272: 2200 movs r2, #0 800d274: 745a strb r2, [r3, #17] statusPacket.chargingElapsedTimeSec = 0; 800d276: 4b75 ldr r3, [pc, #468] @ (800d44c ) 800d278: 2200 movs r2, #0 800d27a: 749a strb r2, [r3, #18] statusPacket.estimatedRemainingChargingTime = 0; 800d27c: 4b73 ldr r3, [pc, #460] @ (800d44c ) 800d27e: 2200 movs r2, #0 800d280: 74da strb r2, [r3, #19] 800d282: 2200 movs r2, #0 800d284: 751a strb r2, [r3, #20] // состояние зарядной станции statusPacket.relayAC = RELAY_Read(RELAY_AC); 800d286: 2004 movs r0, #4 800d288: f7fc fb06 bl 8009898 800d28c: 4603 mov r3, r0 800d28e: f003 0301 and.w r3, r3, #1 800d292: b2d9 uxtb r1, r3 800d294: 4a6d ldr r2, [pc, #436] @ (800d44c ) 800d296: 7d53 ldrb r3, [r2, #21] 800d298: f361 0300 bfi r3, r1, #0, #1 800d29c: 7553 strb r3, [r2, #21] statusPacket.relayDC = RELAY_Read(RELAY_DC); 800d29e: 2003 movs r0, #3 800d2a0: f7fc fafa bl 8009898 800d2a4: 4603 mov r3, r0 800d2a6: f003 0301 and.w r3, r3, #1 800d2aa: b2d9 uxtb r1, r3 800d2ac: 4a67 ldr r2, [pc, #412] @ (800d44c ) 800d2ae: 7d53 ldrb r3, [r2, #21] 800d2b0: f361 0341 bfi r3, r1, #1, #1 800d2b4: 7553 strb r3, [r2, #21] statusPacket.relayAUX = RELAY_Read(RELAY_AUX0); 800d2b6: 2000 movs r0, #0 800d2b8: f7fc faee bl 8009898 800d2bc: 4603 mov r3, r0 800d2be: f003 0301 and.w r3, r3, #1 800d2c2: b2d9 uxtb r1, r3 800d2c4: 4a61 ldr r2, [pc, #388] @ (800d44c ) 800d2c6: 7d53 ldrb r3, [r2, #21] 800d2c8: f361 0382 bfi r3, r1, #2, #1 800d2cc: 7553 strb r3, [r2, #21] statusPacket.lockState = 0; 800d2ce: 4a5f ldr r2, [pc, #380] @ (800d44c ) 800d2d0: 7d53 ldrb r3, [r2, #21] 800d2d2: f023 0308 bic.w r3, r3, #8 800d2d6: 7553 strb r3, [r2, #21] statusPacket.stopButton = !IN_ReadInput(IN_ESTOP); 800d2d8: 2003 movs r0, #3 800d2da: f7fc faed bl 80098b8 800d2de: 4603 mov r3, r0 800d2e0: 2b00 cmp r3, #0 800d2e2: bf0c ite eq 800d2e4: 2301 moveq r3, #1 800d2e6: 2300 movne r3, #0 800d2e8: b2d9 uxtb r1, r3 800d2ea: 4a58 ldr r2, [pc, #352] @ (800d44c ) 800d2ec: 7d53 ldrb r3, [r2, #21] 800d2ee: f361 1304 bfi r3, r1, #4, #1 800d2f2: 7553 strb r3, [r2, #21] statusPacket.logAvailable = (debug_buffer_available()>0)?1:0; 800d2f4: f7fd f88e bl 800a414 800d2f8: 4603 mov r3, r0 800d2fa: 2b00 cmp r3, #0 800d2fc: bf14 ite ne 800d2fe: 2301 movne r3, #1 800d300: 2300 moveq r3, #0 800d302: b2d9 uxtb r1, r3 800d304: 4a51 ldr r2, [pc, #324] @ (800d44c ) 800d306: 7d53 ldrb r3, [r2, #21] 800d308: f361 1345 bfi r3, r1, #5, #1 800d30c: 7553 strb r3, [r2, #21] statusPacket.evInfoAvailable = 0; 800d30e: 4a4f ldr r2, [pc, #316] @ (800d44c ) 800d310: 7d53 ldrb r3, [r2, #21] 800d312: f023 0340 bic.w r3, r3, #64 @ 0x40 800d316: 7553 strb r3, [r2, #21] statusPacket.psuOnline = PSU0.online; 800d318: 4b4d ldr r3, [pc, #308] @ (800d450 ) 800d31a: 7a1b ldrb r3, [r3, #8] 800d31c: f003 0301 and.w r3, r3, #1 800d320: b2d9 uxtb r1, r3 800d322: 4a4a ldr r2, [pc, #296] @ (800d44c ) 800d324: 7d53 ldrb r3, [r2, #21] 800d326: f361 13c7 bfi r3, r1, #7, #1 800d32a: 7553 strb r3, [r2, #21] statusPacket.tempConnector0 = CONN_ReadTemp(0); // температура коннектора 800d32c: 2000 movs r0, #0 800d32e: f7fc fbb9 bl 8009aa4 800d332: 4603 mov r3, r0 800d334: b25a sxtb r2, r3 800d336: 4b45 ldr r3, [pc, #276] @ (800d44c ) 800d338: 765a strb r2, [r3, #25] statusPacket.tempConnector1 = CONN_ReadTemp(1); 800d33a: 2001 movs r0, #1 800d33c: f7fc fbb2 bl 8009aa4 800d340: 4603 mov r3, r0 800d342: b25a sxtb r2, r3 800d344: 4b41 ldr r3, [pc, #260] @ (800d44c ) 800d346: 769a strb r2, [r3, #26] statusPacket.tempAmbient = PSU0.tempAmbient; // температура окружающего воздуха 800d348: 4b41 ldr r3, [pc, #260] @ (800d450 ) 800d34a: 6a1b ldr r3, [r3, #32] 800d34c: b25a sxtb r2, r3 800d34e: 4b3f ldr r3, [pc, #252] @ (800d44c ) 800d350: 76da strb r2, [r3, #27] statusPacket.tempBatteryMax = 0; 800d352: 4b3e ldr r3, [pc, #248] @ (800d44c ) 800d354: 2200 movs r2, #0 800d356: 771a strb r2, [r3, #28] statusPacket.tempBatteryMin = 0; 800d358: 4b3c ldr r3, [pc, #240] @ (800d44c ) 800d35a: 2200 movs r2, #0 800d35c: 775a strb r2, [r3, #29] statusPacket.highestVoltageOfBatteryCell = 0; 800d35e: 4b3b ldr r3, [pc, #236] @ (800d44c ) 800d360: 2200 movs r2, #0 800d362: 779a strb r2, [r3, #30] 800d364: 2200 movs r2, #0 800d366: 77da strb r2, [r3, #31] statusPacket.batteryStatus = 0; 800d368: 4b38 ldr r3, [pc, #224] @ (800d44c ) 800d36a: 2200 movs r2, #0 800d36c: f883 2020 strb.w r2, [r3, #32] statusPacket.phaseVoltageAB = PSU_06.VAB; 800d370: 4b38 ldr r3, [pc, #224] @ (800d454 ) 800d372: 689b ldr r3, [r3, #8] 800d374: b29a uxth r2, r3 800d376: 4b35 ldr r3, [pc, #212] @ (800d44c ) 800d378: f8a3 2021 strh.w r2, [r3, #33] @ 0x21 statusPacket.phaseVoltageBC = PSU_06.VBC; 800d37c: 4b35 ldr r3, [pc, #212] @ (800d454 ) 800d37e: 68db ldr r3, [r3, #12] 800d380: b29a uxth r2, r3 800d382: 4b32 ldr r3, [pc, #200] @ (800d44c ) 800d384: f8a3 2023 strh.w r2, [r3, #35] @ 0x23 statusPacket.phaseVoltageCA = PSU_06.VCA; 800d388: 4b32 ldr r3, [pc, #200] @ (800d454 ) 800d38a: 691b ldr r3, [r3, #16] 800d38c: b29a uxth r2, r3 800d38e: 4b2f ldr r3, [pc, #188] @ (800d44c ) 800d390: f8a3 2025 strh.w r2, [r3, #37] @ 0x25 // GBT TODO memset(statusPacket.VIN, 0, sizeof(statusPacket.VIN)); 800d394: 2211 movs r2, #17 800d396: 2100 movs r1, #0 800d398: 482f ldr r0, [pc, #188] @ (800d458 ) 800d39a: f007 fc79 bl 8014c90 // GBT TODO statusPacket.batteryType = 0; 800d39e: 4b2b ldr r3, [pc, #172] @ (800d44c ) 800d3a0: 2200 movs r2, #0 800d3a2: f883 2038 strb.w r2, [r3, #56] @ 0x38 statusPacket.batteryCapacity = 0; 800d3a6: 4b29 ldr r3, [pc, #164] @ (800d44c ) 800d3a8: 2200 movs r2, #0 800d3aa: f883 2039 strb.w r2, [r3, #57] @ 0x39 800d3ae: 2200 movs r2, #0 800d3b0: f883 203a strb.w r2, [r3, #58] @ 0x3a statusPacket.batteryVoltage = 0; 800d3b4: 4b25 ldr r3, [pc, #148] @ (800d44c ) 800d3b6: 2200 movs r2, #0 800d3b8: f883 203b strb.w r2, [r3, #59] @ 0x3b 800d3bc: 2200 movs r2, #0 800d3be: f883 203c strb.w r2, [r3, #60] @ 0x3c memset(statusPacket.batteryVendor, 0, sizeof(statusPacket.batteryVendor)); 800d3c2: 2204 movs r2, #4 800d3c4: 2100 movs r1, #0 800d3c6: 4825 ldr r0, [pc, #148] @ (800d45c ) 800d3c8: f007 fc62 bl 8014c90 statusPacket.batterySN = 0; 800d3cc: 4b1f ldr r3, [pc, #124] @ (800d44c ) 800d3ce: 2200 movs r2, #0 800d3d0: f883 2041 strb.w r2, [r3, #65] @ 0x41 800d3d4: 2200 movs r2, #0 800d3d6: f883 2042 strb.w r2, [r3, #66] @ 0x42 800d3da: 2200 movs r2, #0 800d3dc: f883 2043 strb.w r2, [r3, #67] @ 0x43 800d3e0: 2200 movs r2, #0 800d3e2: f883 2044 strb.w r2, [r3, #68] @ 0x44 statusPacket.batteryManuD = 0; 800d3e6: 4b19 ldr r3, [pc, #100] @ (800d44c ) 800d3e8: 2200 movs r2, #0 800d3ea: f883 2047 strb.w r2, [r3, #71] @ 0x47 statusPacket.batteryManuM = 0; 800d3ee: 4b17 ldr r3, [pc, #92] @ (800d44c ) 800d3f0: 2200 movs r2, #0 800d3f2: f883 2046 strb.w r2, [r3, #70] @ 0x46 statusPacket.batteryManuY = 0; 800d3f6: 4b15 ldr r3, [pc, #84] @ (800d44c ) 800d3f8: 2200 movs r2, #0 800d3fa: f883 2045 strb.w r2, [r3, #69] @ 0x45 statusPacket.batteryCycleCount = 0; 800d3fe: 4b13 ldr r3, [pc, #76] @ (800d44c ) 800d400: 2200 movs r2, #0 800d402: f883 2048 strb.w r2, [r3, #72] @ 0x48 800d406: 2200 movs r2, #0 800d408: f883 2049 strb.w r2, [r3, #73] @ 0x49 statusPacket.ownAuto = 0; 800d40c: 4b0f ldr r3, [pc, #60] @ (800d44c ) 800d40e: 2200 movs r2, #0 800d410: f883 204a strb.w r2, [r3, #74] @ 0x4a memset(statusPacket.EV_SW_VER, 0, sizeof(statusPacket.EV_SW_VER)); 800d414: 2208 movs r2, #8 800d416: 2100 movs r1, #0 800d418: 4811 ldr r0, [pc, #68] @ (800d460 ) 800d41a: f007 fc39 bl 8014c90 statusPacket.testMode = 0; 800d41e: 4b0b ldr r3, [pc, #44] @ (800d44c ) 800d420: 2200 movs r2, #0 800d422: f883 2053 strb.w r2, [r3, #83] @ 0x53 statusPacket.testVoltage = 0; 800d426: 4b09 ldr r3, [pc, #36] @ (800d44c ) 800d428: 2200 movs r2, #0 800d42a: f883 2054 strb.w r2, [r3, #84] @ 0x54 800d42e: 2200 movs r2, #0 800d430: f883 2055 strb.w r2, [r3, #85] @ 0x55 statusPacket.testCurrent = 0; 800d434: 4b05 ldr r3, [pc, #20] @ (800d44c ) 800d436: 2200 movs r2, #0 800d438: f883 2056 strb.w r2, [r3, #86] @ 0x56 800d43c: 2200 movs r2, #0 800d43e: f883 2057 strb.w r2, [r3, #87] @ 0x57 // В debug.c есть CONN_SetState, предполагаем наличие CONN_GetState() // Если такой функции нет, закомментируйте следующую строку: // statusPacket.connState = CONN_GetState(); } 800d442: bf00 nop 800d444: bd80 pop {r7, pc} 800d446: bf00 nop 800d448: 200003b0 .word 0x200003b0 800d44c: 20001164 .word 0x20001164 800d450: 2000090c .word 0x2000090c 800d454: 200008e0 .word 0x200008e0 800d458: 2000118b .word 0x2000118b 800d45c: 200011a1 .word 0x200011a1 800d460: 200011af .word 0x200011af 0800d464 : #include "sma_filter.h" void SMAFilter_Init(SMAFilter_t* f) { 800d464: b480 push {r7} 800d466: b085 sub sp, #20 800d468: af00 add r7, sp, #0 800d46a: 6078 str r0, [r7, #4] if (f == 0) return; 800d46c: 687b ldr r3, [r7, #4] 800d46e: 2b00 cmp r3, #0 800d470: d018 beq.n 800d4a4 f->sum = 0; 800d472: 687b ldr r3, [r7, #4] 800d474: 2200 movs r2, #0 800d476: 601a str r2, [r3, #0] f->idx = 0; 800d478: 687b ldr r3, [r7, #4] 800d47a: 2200 movs r2, #0 800d47c: 809a strh r2, [r3, #4] f->count = 0; 800d47e: 687b ldr r3, [r7, #4] 800d480: 2200 movs r2, #0 800d482: 80da strh r2, [r3, #6] for (uint16_t i = 0; i < SMA_FILTER_WINDOW; i++) { 800d484: 2300 movs r3, #0 800d486: 81fb strh r3, [r7, #14] 800d488: e008 b.n 800d49c f->buffer[i] = 0; 800d48a: 89fa ldrh r2, [r7, #14] 800d48c: 687b ldr r3, [r7, #4] 800d48e: 3202 adds r2, #2 800d490: 2100 movs r1, #0 800d492: f843 1022 str.w r1, [r3, r2, lsl #2] for (uint16_t i = 0; i < SMA_FILTER_WINDOW; i++) { 800d496: 89fb ldrh r3, [r7, #14] 800d498: 3301 adds r3, #1 800d49a: 81fb strh r3, [r7, #14] 800d49c: 89fb ldrh r3, [r7, #14] 800d49e: 2b07 cmp r3, #7 800d4a0: d9f3 bls.n 800d48a 800d4a2: e000 b.n 800d4a6 if (f == 0) return; 800d4a4: bf00 nop } } 800d4a6: 3714 adds r7, #20 800d4a8: 46bd mov sp, r7 800d4aa: bc80 pop {r7} 800d4ac: 4770 bx lr 0800d4ae : int32_t SMAFilter_Update(SMAFilter_t* f, int32_t x) { 800d4ae: b480 push {r7} 800d4b0: b085 sub sp, #20 800d4b2: af00 add r7, sp, #0 800d4b4: 6078 str r0, [r7, #4] 800d4b6: 6039 str r1, [r7, #0] if (f == 0) return x; 800d4b8: 687b ldr r3, [r7, #4] 800d4ba: 2b00 cmp r3, #0 800d4bc: d101 bne.n 800d4c2 800d4be: 683b ldr r3, [r7, #0] 800d4c0: e056 b.n 800d570 // Пока окно не заполнено полностью, делим по фактическому count. if (f->count < SMA_FILTER_WINDOW) { 800d4c2: 687b ldr r3, [r7, #4] 800d4c4: 88db ldrh r3, [r3, #6] 800d4c6: 2b07 cmp r3, #7 800d4c8: d827 bhi.n 800d51a f->buffer[f->idx] = x; 800d4ca: 687b ldr r3, [r7, #4] 800d4cc: 889b ldrh r3, [r3, #4] 800d4ce: 461a mov r2, r3 800d4d0: 687b ldr r3, [r7, #4] 800d4d2: 3202 adds r2, #2 800d4d4: 6839 ldr r1, [r7, #0] 800d4d6: f843 1022 str.w r1, [r3, r2, lsl #2] f->sum += x; 800d4da: 687b ldr r3, [r7, #4] 800d4dc: 681a ldr r2, [r3, #0] 800d4de: 683b ldr r3, [r7, #0] 800d4e0: 441a add r2, r3 800d4e2: 687b ldr r3, [r7, #4] 800d4e4: 601a str r2, [r3, #0] f->idx++; 800d4e6: 687b ldr r3, [r7, #4] 800d4e8: 889b ldrh r3, [r3, #4] 800d4ea: 3301 adds r3, #1 800d4ec: b29a uxth r2, r3 800d4ee: 687b ldr r3, [r7, #4] 800d4f0: 809a strh r2, [r3, #4] if (f->idx >= SMA_FILTER_WINDOW) f->idx = 0; 800d4f2: 687b ldr r3, [r7, #4] 800d4f4: 889b ldrh r3, [r3, #4] 800d4f6: 2b07 cmp r3, #7 800d4f8: d902 bls.n 800d500 800d4fa: 687b ldr r3, [r7, #4] 800d4fc: 2200 movs r2, #0 800d4fe: 809a strh r2, [r3, #4] f->count++; 800d500: 687b ldr r3, [r7, #4] 800d502: 88db ldrh r3, [r3, #6] 800d504: 3301 adds r3, #1 800d506: b29a uxth r2, r3 800d508: 687b ldr r3, [r7, #4] 800d50a: 80da strh r2, [r3, #6] return (int32_t)(f->sum / (int32_t)f->count); 800d50c: 687b ldr r3, [r7, #4] 800d50e: 681b ldr r3, [r3, #0] 800d510: 687a ldr r2, [r7, #4] 800d512: 88d2 ldrh r2, [r2, #6] 800d514: fb93 f3f2 sdiv r3, r3, r2 800d518: e02a b.n 800d570 } // Окно заполнено: "вычитаем старое + добавляем новое". int32_t old = f->buffer[f->idx]; 800d51a: 687b ldr r3, [r7, #4] 800d51c: 889b ldrh r3, [r3, #4] 800d51e: 461a mov r2, r3 800d520: 687b ldr r3, [r7, #4] 800d522: 3202 adds r2, #2 800d524: f853 3022 ldr.w r3, [r3, r2, lsl #2] 800d528: 60fb str r3, [r7, #12] f->buffer[f->idx] = x; 800d52a: 687b ldr r3, [r7, #4] 800d52c: 889b ldrh r3, [r3, #4] 800d52e: 461a mov r2, r3 800d530: 687b ldr r3, [r7, #4] 800d532: 3202 adds r2, #2 800d534: 6839 ldr r1, [r7, #0] 800d536: f843 1022 str.w r1, [r3, r2, lsl #2] f->sum += (x - old); 800d53a: 687b ldr r3, [r7, #4] 800d53c: 681a ldr r2, [r3, #0] 800d53e: 6839 ldr r1, [r7, #0] 800d540: 68fb ldr r3, [r7, #12] 800d542: 1acb subs r3, r1, r3 800d544: 441a add r2, r3 800d546: 687b ldr r3, [r7, #4] 800d548: 601a str r2, [r3, #0] f->idx++; 800d54a: 687b ldr r3, [r7, #4] 800d54c: 889b ldrh r3, [r3, #4] 800d54e: 3301 adds r3, #1 800d550: b29a uxth r2, r3 800d552: 687b ldr r3, [r7, #4] 800d554: 809a strh r2, [r3, #4] if (f->idx >= SMA_FILTER_WINDOW) f->idx = 0; 800d556: 687b ldr r3, [r7, #4] 800d558: 889b ldrh r3, [r3, #4] 800d55a: 2b07 cmp r3, #7 800d55c: d902 bls.n 800d564 800d55e: 687b ldr r3, [r7, #4] 800d560: 2200 movs r2, #0 800d562: 809a strh r2, [r3, #4] return (int32_t)(f->sum / (int32_t)SMA_FILTER_WINDOW); 800d564: 687b ldr r3, [r7, #4] 800d566: 681b ldr r3, [r3, #0] 800d568: 2b00 cmp r3, #0 800d56a: da00 bge.n 800d56e 800d56c: 3307 adds r3, #7 800d56e: 10db asrs r3, r3, #3 } 800d570: 4618 mov r0, r3 800d572: 3714 adds r7, #20 800d574: 46bd mov sp, r7 800d576: bc80 pop {r7} 800d578: 4770 bx lr ... 0800d57c : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { 800d57c: b480 push {r7} 800d57e: b085 sub sp, #20 800d580: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); 800d582: 4b15 ldr r3, [pc, #84] @ (800d5d8 ) 800d584: 699b ldr r3, [r3, #24] 800d586: 4a14 ldr r2, [pc, #80] @ (800d5d8 ) 800d588: f043 0301 orr.w r3, r3, #1 800d58c: 6193 str r3, [r2, #24] 800d58e: 4b12 ldr r3, [pc, #72] @ (800d5d8 ) 800d590: 699b ldr r3, [r3, #24] 800d592: f003 0301 and.w r3, r3, #1 800d596: 60bb str r3, [r7, #8] 800d598: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); 800d59a: 4b0f ldr r3, [pc, #60] @ (800d5d8 ) 800d59c: 69db ldr r3, [r3, #28] 800d59e: 4a0e ldr r2, [pc, #56] @ (800d5d8 ) 800d5a0: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 800d5a4: 61d3 str r3, [r2, #28] 800d5a6: 4b0c ldr r3, [pc, #48] @ (800d5d8 ) 800d5a8: 69db ldr r3, [r3, #28] 800d5aa: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 800d5ae: 607b str r3, [r7, #4] 800d5b0: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); 800d5b2: 4b0a ldr r3, [pc, #40] @ (800d5dc ) 800d5b4: 685b ldr r3, [r3, #4] 800d5b6: 60fb str r3, [r7, #12] 800d5b8: 68fb ldr r3, [r7, #12] 800d5ba: f023 63e0 bic.w r3, r3, #117440512 @ 0x7000000 800d5be: 60fb str r3, [r7, #12] 800d5c0: 68fb ldr r3, [r7, #12] 800d5c2: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 800d5c6: 60fb str r3, [r7, #12] 800d5c8: 4a04 ldr r2, [pc, #16] @ (800d5dc ) 800d5ca: 68fb ldr r3, [r7, #12] 800d5cc: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } 800d5ce: bf00 nop 800d5d0: 3714 adds r7, #20 800d5d2: 46bd mov sp, r7 800d5d4: bc80 pop {r7} 800d5d6: 4770 bx lr 800d5d8: 40021000 .word 0x40021000 800d5dc: 40010000 .word 0x40010000 0800d5e0 : { /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) 800d5e0: e7fe b.n 800d5e0 800d5e2: bf00 nop 0800d5e4 : void HardFault_Handler(void) { /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) 800d5e4: e7fe b.n 800d5e4 800d5e6: bf00 nop 0800d5e8 : void MemManage_Handler(void) { /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) 800d5e8: e7fe b.n 800d5e8 800d5ea: bf00 nop 0800d5ec : void BusFault_Handler(void) { /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) 800d5ec: e7fe b.n 800d5ec 800d5ee: bf00 nop 0800d5f0 : void UsageFault_Handler(void) { /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) 800d5f0: e7fe b.n 800d5f0 800d5f2: bf00 nop 0800d5f4 : /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } 800d5f4: 4770 bx lr 800d5f6: bf00 nop 0800d5f8 : /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } 800d5f8: 4770 bx lr 800d5fa: bf00 nop 0800d5fc : /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } 800d5fc: 4770 bx lr 800d5fe: bf00 nop 0800d600 : void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); 800d600: f000 be68 b.w 800e2d4 0800d604 : /** * @brief This function handles DMA1 channel1 global interrupt. */ void DMA1_Channel1_IRQHandler(void) { 800d604: b510 push {r4, lr} /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d606: 4c09 ldr r4, [pc, #36] @ (800d62c ) 800d608: 2201 movs r2, #1 800d60a: f44f 6100 mov.w r1, #2048 @ 0x800 800d60e: 4620 mov r0, r4 800d610: f003 fa09 bl 8010a26 /* USER CODE END DMA1_Channel1_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_adc1); 800d614: 4806 ldr r0, [pc, #24] @ (800d630 ) 800d616: f002 fdf7 bl 8010208 /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d61a: 4620 mov r0, r4 /* USER CODE END DMA1_Channel1_IRQn 1 */ } 800d61c: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d620: 2200 movs r2, #0 800d622: f44f 6100 mov.w r1, #2048 @ 0x800 800d626: f003 b9fe b.w 8010a26 800d62a: bf00 nop 800d62c: 40010c00 .word 0x40010c00 800d630: 200002c0 .word 0x200002c0 0800d634 : void DMA1_Channel2_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */ /* USER CODE END DMA1_Channel2_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart3_tx); 800d634: 4801 ldr r0, [pc, #4] @ (800d63c ) 800d636: f002 bde7 b.w 8010208 800d63a: bf00 nop 800d63c: 20001450 .word 0x20001450 0800d640 : void DMA1_Channel3_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel3_IRQn 0 */ /* USER CODE END DMA1_Channel3_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart3_rx); 800d640: 4801 ldr r0, [pc, #4] @ (800d648 ) 800d642: f002 bde1 b.w 8010208 800d646: bf00 nop 800d648: 2000140c .word 0x2000140c 0800d64c : void DMA1_Channel6_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel6_IRQn 0 */ /* USER CODE END DMA1_Channel6_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart2_rx); 800d64c: 4801 ldr r0, [pc, #4] @ (800d654 ) 800d64e: f002 bddb b.w 8010208 800d652: bf00 nop 800d654: 20001384 .word 0x20001384 0800d658 : void DMA1_Channel7_IRQHandler(void) { /* USER CODE BEGIN DMA1_Channel7_IRQn 0 */ /* USER CODE END DMA1_Channel7_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart2_tx); 800d658: 4801 ldr r0, [pc, #4] @ (800d660 ) 800d65a: f002 bdd5 b.w 8010208 800d65e: bf00 nop 800d660: 200013c8 .word 0x200013c8 0800d664 : /** * @brief This function handles ADC1 and ADC2 global interrupts. */ void ADC1_2_IRQHandler(void) { 800d664: b510 push {r4, lr} /* USER CODE BEGIN ADC1_2_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d666: 4c09 ldr r4, [pc, #36] @ (800d68c ) 800d668: 2201 movs r2, #1 800d66a: f44f 6100 mov.w r1, #2048 @ 0x800 800d66e: 4620 mov r0, r4 800d670: f003 f9d9 bl 8010a26 /* USER CODE END ADC1_2_IRQn 0 */ HAL_ADC_IRQHandler(&hadc1); 800d674: 4806 ldr r0, [pc, #24] @ (800d690 ) 800d676: f001 f823 bl 800e6c0 /* USER CODE BEGIN ADC1_2_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d67a: 4620 mov r0, r4 /* USER CODE END ADC1_2_IRQn 1 */ } 800d67c: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d680: 2200 movs r2, #0 800d682: f44f 6100 mov.w r1, #2048 @ 0x800 800d686: f003 b9ce b.w 8010a26 800d68a: bf00 nop 800d68c: 40010c00 .word 0x40010c00 800d690: 20000290 .word 0x20000290 0800d694 : /** * @brief This function handles CAN1 RX0 interrupt. */ void CAN1_RX0_IRQHandler(void) { 800d694: b510 push {r4, lr} /* USER CODE BEGIN CAN1_RX0_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d696: 4c09 ldr r4, [pc, #36] @ (800d6bc ) 800d698: 2201 movs r2, #1 800d69a: f44f 6180 mov.w r1, #1024 @ 0x400 800d69e: 4620 mov r0, r4 800d6a0: f003 f9c1 bl 8010a26 /* USER CODE END CAN1_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); 800d6a4: 4806 ldr r0, [pc, #24] @ (800d6c0 ) 800d6a6: f002 f847 bl 800f738 /* USER CODE BEGIN CAN1_RX0_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d6aa: 4620 mov r0, r4 /* USER CODE END CAN1_RX0_IRQn 1 */ } 800d6ac: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d6b0: 2200 movs r2, #0 800d6b2: f44f 6180 mov.w r1, #1024 @ 0x400 800d6b6: f003 b9b6 b.w 8010a26 800d6ba: bf00 nop 800d6bc: 40010c00 .word 0x40010c00 800d6c0: 2000035c .word 0x2000035c 0800d6c4 : /** * @brief This function handles TIM3 global interrupt. */ void TIM3_IRQHandler(void) { 800d6c4: b510 push {r4, lr} /* USER CODE BEGIN TIM3_IRQn 0 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_SET); 800d6c6: 4c09 ldr r4, [pc, #36] @ (800d6ec ) 800d6c8: 2201 movs r2, #1 800d6ca: f44f 6100 mov.w r1, #2048 @ 0x800 800d6ce: 4620 mov r0, r4 800d6d0: f003 f9a9 bl 8010a26 /* USER CODE END TIM3_IRQn 0 */ HAL_TIM_IRQHandler(&htim3); 800d6d4: 4806 ldr r0, [pc, #24] @ (800d6f0 ) 800d6d6: f004 fd87 bl 80121e8 /* USER CODE BEGIN TIM3_IRQn 1 */ HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d6da: 4620 mov r0, r4 /* USER CODE END TIM3_IRQn 1 */ } 800d6dc: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG4_GPIO_Port, DBG4_Pin, GPIO_PIN_RESET); 800d6e0: 2200 movs r2, #0 800d6e2: f44f 6100 mov.w r1, #2048 @ 0x800 800d6e6: f003 b99e b.w 8010a26 800d6ea: bf00 nop 800d6ec: 40010c00 .word 0x40010c00 800d6f0: 200011d4 .word 0x200011d4 0800d6f4 : void USART1_IRQHandler(void) { /* USER CODE BEGIN USART1_IRQn 0 */ /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); 800d6f4: 4801 ldr r0, [pc, #4] @ (800d6fc ) 800d6f6: f005 be2d b.w 8013354 800d6fa: bf00 nop 800d6fc: 200012ac .word 0x200012ac 0800d700 : /** * @brief This function handles USART2 global interrupt. */ void USART2_IRQHandler(void) { 800d700: b510 push {r4, lr} /* USER CODE BEGIN USART2_IRQn 0 */ HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_SET); 800d702: 4c08 ldr r4, [pc, #32] @ (800d724 ) 800d704: 2201 movs r2, #1 800d706: 2120 movs r1, #32 800d708: 4620 mov r0, r4 800d70a: f003 f98c bl 8010a26 /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); 800d70e: 4806 ldr r0, [pc, #24] @ (800d728 ) 800d710: f005 fe20 bl 8013354 /* USER CODE BEGIN USART2_IRQn 1 */ HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_RESET); 800d714: 4620 mov r0, r4 /* USER CODE END USART2_IRQn 1 */ } 800d716: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG2_GPIO_Port, DBG2_Pin, GPIO_PIN_RESET); 800d71a: 2200 movs r2, #0 800d71c: 2120 movs r1, #32 800d71e: f003 b982 b.w 8010a26 800d722: bf00 nop 800d724: 40010800 .word 0x40010800 800d728: 200012f4 .word 0x200012f4 0800d72c : /** * @brief This function handles USART3 global interrupt. */ void USART3_IRQHandler(void) { 800d72c: b510 push {r4, lr} /* USER CODE BEGIN USART3_IRQn 0 */ HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_SET); 800d72e: 4c08 ldr r4, [pc, #32] @ (800d750 ) 800d730: 2201 movs r2, #1 800d732: 2140 movs r1, #64 @ 0x40 800d734: 4620 mov r0, r4 800d736: f003 f976 bl 8010a26 /* USER CODE END USART3_IRQn 0 */ HAL_UART_IRQHandler(&huart3); 800d73a: 4806 ldr r0, [pc, #24] @ (800d754 ) 800d73c: f005 fe0a bl 8013354 /* USER CODE BEGIN USART3_IRQn 1 */ HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_RESET); 800d740: 4620 mov r0, r4 /* USER CODE END USART3_IRQn 1 */ } 800d742: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG3_GPIO_Port, DBG3_Pin, GPIO_PIN_RESET); 800d746: 2200 movs r2, #0 800d748: 2140 movs r1, #64 @ 0x40 800d74a: f003 b96c b.w 8010a26 800d74e: bf00 nop 800d750: 40010800 .word 0x40010800 800d754: 2000133c .word 0x2000133c 0800d758 : /** * @brief This function handles UART5 global interrupt. */ void UART5_IRQHandler(void) { 800d758: b510 push {r4, lr} /* USER CODE BEGIN UART5_IRQn 0 */ HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_SET); 800d75a: 4c08 ldr r4, [pc, #32] @ (800d77c ) 800d75c: 2201 movs r2, #1 800d75e: 2104 movs r1, #4 800d760: 4620 mov r0, r4 800d762: f003 f960 bl 8010a26 /* USER CODE END UART5_IRQn 0 */ HAL_UART_IRQHandler(&huart5); 800d766: 4806 ldr r0, [pc, #24] @ (800d780 ) 800d768: f005 fdf4 bl 8013354 /* USER CODE BEGIN UART5_IRQn 1 */ HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_RESET); 800d76c: 4620 mov r0, r4 /* USER CODE END UART5_IRQn 1 */ } 800d76e: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG1_GPIO_Port, DBG1_Pin, GPIO_PIN_RESET); 800d772: 2200 movs r2, #0 800d774: 2104 movs r1, #4 800d776: f003 b956 b.w 8010a26 800d77a: bf00 nop 800d77c: 40011000 .word 0x40011000 800d780: 20001264 .word 0x20001264 0800d784 : /** * @brief This function handles CAN2 TX interrupt. */ void CAN2_TX_IRQHandler(void) { 800d784: b510 push {r4, lr} /* USER CODE BEGIN CAN2_TX_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d786: 4c09 ldr r4, [pc, #36] @ (800d7ac ) 800d788: 2201 movs r2, #1 800d78a: f44f 6180 mov.w r1, #1024 @ 0x400 800d78e: 4620 mov r0, r4 800d790: f003 f949 bl 8010a26 /* USER CODE END CAN2_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); 800d794: 4806 ldr r0, [pc, #24] @ (800d7b0 ) 800d796: f001 ffcf bl 800f738 /* USER CODE BEGIN CAN2_TX_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d79a: 4620 mov r0, r4 /* USER CODE END CAN2_TX_IRQn 1 */ } 800d79c: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d7a0: 2200 movs r2, #0 800d7a2: f44f 6180 mov.w r1, #1024 @ 0x400 800d7a6: f003 b93e b.w 8010a26 800d7aa: bf00 nop 800d7ac: 40010c00 .word 0x40010c00 800d7b0: 20000384 .word 0x20000384 0800d7b4 : /** * @brief This function handles CAN2 RX1 interrupt. */ void CAN2_RX1_IRQHandler(void) { 800d7b4: b510 push {r4, lr} /* USER CODE BEGIN CAN2_RX1_IRQn 0 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_SET); 800d7b6: 4c09 ldr r4, [pc, #36] @ (800d7dc ) 800d7b8: 2201 movs r2, #1 800d7ba: f44f 6180 mov.w r1, #1024 @ 0x400 800d7be: 4620 mov r0, r4 800d7c0: f003 f931 bl 8010a26 /* USER CODE END CAN2_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); 800d7c4: 4806 ldr r0, [pc, #24] @ (800d7e0 ) 800d7c6: f001 ffb7 bl 800f738 /* USER CODE BEGIN CAN2_RX1_IRQn 1 */ HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d7ca: 4620 mov r0, r4 /* USER CODE END CAN2_RX1_IRQn 1 */ } 800d7cc: e8bd 4010 ldmia.w sp!, {r4, lr} HAL_GPIO_WritePin(DBG5_GPIO_Port, DBG5_Pin, GPIO_PIN_RESET); 800d7d0: 2200 movs r2, #0 800d7d2: f44f 6180 mov.w r1, #1024 @ 0x400 800d7d6: f003 b926 b.w 8010a26 800d7da: bf00 nop 800d7dc: 40010c00 .word 0x40010c00 800d7e0: 20000384 .word 0x20000384 0800d7e4 <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { 800d7e4: b480 push {r7} 800d7e6: af00 add r7, sp, #0 return 1; 800d7e8: 2301 movs r3, #1 } 800d7ea: 4618 mov r0, r3 800d7ec: 46bd mov sp, r7 800d7ee: bc80 pop {r7} 800d7f0: 4770 bx lr 0800d7f2 <_kill>: int _kill(int pid, int sig) { 800d7f2: b580 push {r7, lr} 800d7f4: b082 sub sp, #8 800d7f6: af00 add r7, sp, #0 800d7f8: 6078 str r0, [r7, #4] 800d7fa: 6039 str r1, [r7, #0] (void)pid; (void)sig; errno = EINVAL; 800d7fc: f007 fa50 bl 8014ca0 <__errno> 800d800: 4603 mov r3, r0 800d802: 2216 movs r2, #22 800d804: 601a str r2, [r3, #0] return -1; 800d806: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff } 800d80a: 4618 mov r0, r3 800d80c: 3708 adds r7, #8 800d80e: 46bd mov sp, r7 800d810: bd80 pop {r7, pc} 0800d812 <_exit>: void _exit (int status) { 800d812: b580 push {r7, lr} 800d814: b082 sub sp, #8 800d816: af00 add r7, sp, #0 800d818: 6078 str r0, [r7, #4] _kill(status, -1); 800d81a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff 800d81e: 6878 ldr r0, [r7, #4] 800d820: f7ff ffe7 bl 800d7f2 <_kill> while (1) {} /* Make sure we hang here */ 800d824: bf00 nop 800d826: e7fd b.n 800d824 <_exit+0x12> 0800d828 <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { 800d828: b580 push {r7, lr} 800d82a: b086 sub sp, #24 800d82c: af00 add r7, sp, #0 800d82e: 60f8 str r0, [r7, #12] 800d830: 60b9 str r1, [r7, #8] 800d832: 607a str r2, [r7, #4] (void)file; int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) 800d834: 2300 movs r3, #0 800d836: 617b str r3, [r7, #20] 800d838: e00a b.n 800d850 <_read+0x28> { *ptr++ = __io_getchar(); 800d83a: f3af 8000 nop.w 800d83e: 4601 mov r1, r0 800d840: 68bb ldr r3, [r7, #8] 800d842: 1c5a adds r2, r3, #1 800d844: 60ba str r2, [r7, #8] 800d846: b2ca uxtb r2, r1 800d848: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) 800d84a: 697b ldr r3, [r7, #20] 800d84c: 3301 adds r3, #1 800d84e: 617b str r3, [r7, #20] 800d850: 697a ldr r2, [r7, #20] 800d852: 687b ldr r3, [r7, #4] 800d854: 429a cmp r2, r3 800d856: dbf0 blt.n 800d83a <_read+0x12> } return len; 800d858: 687b ldr r3, [r7, #4] } 800d85a: 4618 mov r0, r3 800d85c: 3718 adds r7, #24 800d85e: 46bd mov sp, r7 800d860: bd80 pop {r7, pc} 0800d862 <_close>: } return len; } int _close(int file) { 800d862: b480 push {r7} 800d864: b083 sub sp, #12 800d866: af00 add r7, sp, #0 800d868: 6078 str r0, [r7, #4] (void)file; return -1; 800d86a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff } 800d86e: 4618 mov r0, r3 800d870: 370c adds r7, #12 800d872: 46bd mov sp, r7 800d874: bc80 pop {r7} 800d876: 4770 bx lr 0800d878 <_fstat>: int _fstat(int file, struct stat *st) { 800d878: b480 push {r7} 800d87a: b083 sub sp, #12 800d87c: af00 add r7, sp, #0 800d87e: 6078 str r0, [r7, #4] 800d880: 6039 str r1, [r7, #0] (void)file; st->st_mode = S_IFCHR; 800d882: 683b ldr r3, [r7, #0] 800d884: f44f 5200 mov.w r2, #8192 @ 0x2000 800d888: 605a str r2, [r3, #4] return 0; 800d88a: 2300 movs r3, #0 } 800d88c: 4618 mov r0, r3 800d88e: 370c adds r7, #12 800d890: 46bd mov sp, r7 800d892: bc80 pop {r7} 800d894: 4770 bx lr 0800d896 <_isatty>: int _isatty(int file) { 800d896: b480 push {r7} 800d898: b083 sub sp, #12 800d89a: af00 add r7, sp, #0 800d89c: 6078 str r0, [r7, #4] (void)file; return 1; 800d89e: 2301 movs r3, #1 } 800d8a0: 4618 mov r0, r3 800d8a2: 370c adds r7, #12 800d8a4: 46bd mov sp, r7 800d8a6: bc80 pop {r7} 800d8a8: 4770 bx lr 0800d8aa <_lseek>: int _lseek(int file, int ptr, int dir) { 800d8aa: b480 push {r7} 800d8ac: b085 sub sp, #20 800d8ae: af00 add r7, sp, #0 800d8b0: 60f8 str r0, [r7, #12] 800d8b2: 60b9 str r1, [r7, #8] 800d8b4: 607a str r2, [r7, #4] (void)file; (void)ptr; (void)dir; return 0; 800d8b6: 2300 movs r3, #0 } 800d8b8: 4618 mov r0, r3 800d8ba: 3714 adds r7, #20 800d8bc: 46bd mov sp, r7 800d8be: bc80 pop {r7} 800d8c0: 4770 bx lr ... 0800d8c4 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { 800d8c4: b580 push {r7, lr} 800d8c6: b086 sub sp, #24 800d8c8: af00 add r7, sp, #0 800d8ca: 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; 800d8cc: 4a14 ldr r2, [pc, #80] @ (800d920 <_sbrk+0x5c>) 800d8ce: 4b15 ldr r3, [pc, #84] @ (800d924 <_sbrk+0x60>) 800d8d0: 1ad3 subs r3, r2, r3 800d8d2: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; 800d8d4: 697b ldr r3, [r7, #20] 800d8d6: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) 800d8d8: 4b13 ldr r3, [pc, #76] @ (800d928 <_sbrk+0x64>) 800d8da: 681b ldr r3, [r3, #0] 800d8dc: 2b00 cmp r3, #0 800d8de: d102 bne.n 800d8e6 <_sbrk+0x22> { __sbrk_heap_end = &_end; 800d8e0: 4b11 ldr r3, [pc, #68] @ (800d928 <_sbrk+0x64>) 800d8e2: 4a12 ldr r2, [pc, #72] @ (800d92c <_sbrk+0x68>) 800d8e4: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) 800d8e6: 4b10 ldr r3, [pc, #64] @ (800d928 <_sbrk+0x64>) 800d8e8: 681a ldr r2, [r3, #0] 800d8ea: 687b ldr r3, [r7, #4] 800d8ec: 4413 add r3, r2 800d8ee: 693a ldr r2, [r7, #16] 800d8f0: 429a cmp r2, r3 800d8f2: d207 bcs.n 800d904 <_sbrk+0x40> { errno = ENOMEM; 800d8f4: f007 f9d4 bl 8014ca0 <__errno> 800d8f8: 4603 mov r3, r0 800d8fa: 220c movs r2, #12 800d8fc: 601a str r2, [r3, #0] return (void *)-1; 800d8fe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff 800d902: e009 b.n 800d918 <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; 800d904: 4b08 ldr r3, [pc, #32] @ (800d928 <_sbrk+0x64>) 800d906: 681b ldr r3, [r3, #0] 800d908: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; 800d90a: 4b07 ldr r3, [pc, #28] @ (800d928 <_sbrk+0x64>) 800d90c: 681a ldr r2, [r3, #0] 800d90e: 687b ldr r3, [r7, #4] 800d910: 4413 add r3, r2 800d912: 4a05 ldr r2, [pc, #20] @ (800d928 <_sbrk+0x64>) 800d914: 6013 str r3, [r2, #0] return (void *)prev_heap_end; 800d916: 68fb ldr r3, [r7, #12] } 800d918: 4618 mov r0, r3 800d91a: 3718 adds r7, #24 800d91c: 46bd mov sp, r7 800d91e: bd80 pop {r7, pc} 800d920: 20010000 .word 0x20010000 800d924: 00000400 .word 0x00000400 800d928: 200011d0 .word 0x200011d0 800d92c: 200015e8 .word 0x200015e8 0800d930 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { 800d930: b480 push {r7} 800d932: 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 */ } 800d934: bf00 nop 800d936: 46bd mov sp, r7 800d938: bc80 pop {r7} 800d93a: 4770 bx lr 0800d93c : TIM_HandleTypeDef htim3; TIM_HandleTypeDef htim4; /* TIM3 init function */ void MX_TIM3_Init(void) { 800d93c: b580 push {r7, lr} 800d93e: b08e sub sp, #56 @ 0x38 800d940: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 800d942: f107 0328 add.w r3, r7, #40 @ 0x28 800d946: 2200 movs r2, #0 800d948: 601a str r2, [r3, #0] 800d94a: 605a str r2, [r3, #4] 800d94c: 609a str r2, [r3, #8] 800d94e: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 800d950: f107 0320 add.w r3, r7, #32 800d954: 2200 movs r2, #0 800d956: 601a str r2, [r3, #0] 800d958: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800d95a: 1d3b adds r3, r7, #4 800d95c: 2200 movs r2, #0 800d95e: 601a str r2, [r3, #0] 800d960: 605a str r2, [r3, #4] 800d962: 609a str r2, [r3, #8] 800d964: 60da str r2, [r3, #12] 800d966: 611a str r2, [r3, #16] 800d968: 615a str r2, [r3, #20] 800d96a: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; 800d96c: 4b38 ldr r3, [pc, #224] @ (800da50 ) 800d96e: 4a39 ldr r2, [pc, #228] @ (800da54 ) 800d970: 601a str r2, [r3, #0] htim3.Init.Prescaler = 0; 800d972: 4b37 ldr r3, [pc, #220] @ (800da50 ) 800d974: 2200 movs r2, #0 800d976: 605a str r2, [r3, #4] htim3.Init.CounterMode = TIM_COUNTERMODE_UP; 800d978: 4b35 ldr r3, [pc, #212] @ (800da50 ) 800d97a: 2200 movs r2, #0 800d97c: 609a str r2, [r3, #8] htim3.Init.Period = 65535; 800d97e: 4b34 ldr r3, [pc, #208] @ (800da50 ) 800d980: f64f 72ff movw r2, #65535 @ 0xffff 800d984: 60da str r2, [r3, #12] htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 800d986: 4b32 ldr r3, [pc, #200] @ (800da50 ) 800d988: 2200 movs r2, #0 800d98a: 611a str r2, [r3, #16] htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800d98c: 4b30 ldr r3, [pc, #192] @ (800da50 ) 800d98e: 2200 movs r2, #0 800d990: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim3) != HAL_OK) 800d992: 482f ldr r0, [pc, #188] @ (800da50 ) 800d994: f004 f9d5 bl 8011d42 800d998: 4603 mov r3, r0 800d99a: 2b00 cmp r3, #0 800d99c: d001 beq.n 800d9a2 { Error_Handler(); 800d99e: f7fd f947 bl 800ac30 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800d9a2: f44f 5380 mov.w r3, #4096 @ 0x1000 800d9a6: 62bb str r3, [r7, #40] @ 0x28 if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) 800d9a8: f107 0328 add.w r3, r7, #40 @ 0x28 800d9ac: 4619 mov r1, r3 800d9ae: 4828 ldr r0, [pc, #160] @ (800da50 ) 800d9b0: f004 fe28 bl 8012604 800d9b4: 4603 mov r3, r0 800d9b6: 2b00 cmp r3, #0 800d9b8: d001 beq.n 800d9be { Error_Handler(); 800d9ba: f7fd f939 bl 800ac30 } if (HAL_TIM_OC_Init(&htim3) != HAL_OK) 800d9be: 4824 ldr r0, [pc, #144] @ (800da50 ) 800d9c0: f004 fa0e bl 8011de0 800d9c4: 4603 mov r3, r0 800d9c6: 2b00 cmp r3, #0 800d9c8: d001 beq.n 800d9ce { Error_Handler(); 800d9ca: f7fd f931 bl 800ac30 } if (HAL_TIM_PWM_Init(&htim3) != HAL_OK) 800d9ce: 4820 ldr r0, [pc, #128] @ (800da50 ) 800d9d0: f004 fb08 bl 8011fe4 800d9d4: 4603 mov r3, r0 800d9d6: 2b00 cmp r3, #0 800d9d8: d001 beq.n 800d9de { Error_Handler(); 800d9da: f7fd f929 bl 800ac30 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_OC1; 800d9de: 2330 movs r3, #48 @ 0x30 800d9e0: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800d9e2: 2300 movs r3, #0 800d9e4: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) 800d9e6: f107 0320 add.w r3, r7, #32 800d9ea: 4619 mov r1, r3 800d9ec: 4818 ldr r0, [pc, #96] @ (800da50 ) 800d9ee: f005 f9b7 bl 8012d60 800d9f2: 4603 mov r3, r0 800d9f4: 2b00 cmp r3, #0 800d9f6: d001 beq.n 800d9fc { Error_Handler(); 800d9f8: f7fd f91a bl 800ac30 } sConfigOC.OCMode = TIM_OCMODE_TIMING; 800d9fc: 2300 movs r3, #0 800d9fe: 607b str r3, [r7, #4] sConfigOC.Pulse = 1; 800da00: 2301 movs r3, #1 800da02: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 800da04: 2300 movs r3, #0 800da06: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 800da08: 2300 movs r3, #0 800da0a: 617b str r3, [r7, #20] if (HAL_TIM_OC_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) 800da0c: 1d3b adds r3, r7, #4 800da0e: 2200 movs r2, #0 800da10: 4619 mov r1, r3 800da12: 480f ldr r0, [pc, #60] @ (800da50 ) 800da14: f004 fcd8 bl 80123c8 800da18: 4603 mov r3, r0 800da1a: 2b00 cmp r3, #0 800da1c: d001 beq.n 800da22 { Error_Handler(); 800da1e: f7fd f907 bl 800ac30 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 800da22: 2360 movs r3, #96 @ 0x60 800da24: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 800da26: 2300 movs r3, #0 800da28: 60bb str r3, [r7, #8] if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) 800da2a: 1d3b adds r3, r7, #4 800da2c: 2204 movs r2, #4 800da2e: 4619 mov r1, r3 800da30: 4807 ldr r0, [pc, #28] @ (800da50 ) 800da32: f004 fd25 bl 8012480 800da36: 4603 mov r3, r0 800da38: 2b00 cmp r3, #0 800da3a: d001 beq.n 800da40 { Error_Handler(); 800da3c: f7fd f8f8 bl 800ac30 } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ HAL_TIM_MspPostInit(&htim3); 800da40: 4803 ldr r0, [pc, #12] @ (800da50 ) 800da42: f000 f8cf bl 800dbe4 } 800da46: bf00 nop 800da48: 3738 adds r7, #56 @ 0x38 800da4a: 46bd mov sp, r7 800da4c: bd80 pop {r7, pc} 800da4e: bf00 nop 800da50: 200011d4 .word 0x200011d4 800da54: 40000400 .word 0x40000400 0800da58 : /* TIM4 init function */ void MX_TIM4_Init(void) { 800da58: b580 push {r7, lr} 800da5a: b08e sub sp, #56 @ 0x38 800da5c: af00 add r7, sp, #0 /* USER CODE BEGIN TIM4_Init 0 */ /* USER CODE END TIM4_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 800da5e: f107 0328 add.w r3, r7, #40 @ 0x28 800da62: 2200 movs r2, #0 800da64: 601a str r2, [r3, #0] 800da66: 605a str r2, [r3, #4] 800da68: 609a str r2, [r3, #8] 800da6a: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 800da6c: f107 0320 add.w r3, r7, #32 800da70: 2200 movs r2, #0 800da72: 601a str r2, [r3, #0] 800da74: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800da76: 1d3b adds r3, r7, #4 800da78: 2200 movs r2, #0 800da7a: 601a str r2, [r3, #0] 800da7c: 605a str r2, [r3, #4] 800da7e: 609a str r2, [r3, #8] 800da80: 60da str r2, [r3, #12] 800da82: 611a str r2, [r3, #16] 800da84: 615a str r2, [r3, #20] 800da86: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM4_Init 1 */ /* USER CODE END TIM4_Init 1 */ htim4.Instance = TIM4; 800da88: 4b37 ldr r3, [pc, #220] @ (800db68 ) 800da8a: 4a38 ldr r2, [pc, #224] @ (800db6c ) 800da8c: 601a str r2, [r3, #0] htim4.Init.Prescaler = 720; 800da8e: 4b36 ldr r3, [pc, #216] @ (800db68 ) 800da90: f44f 7234 mov.w r2, #720 @ 0x2d0 800da94: 605a str r2, [r3, #4] htim4.Init.CounterMode = TIM_COUNTERMODE_UP; 800da96: 4b34 ldr r3, [pc, #208] @ (800db68 ) 800da98: 2200 movs r2, #0 800da9a: 609a str r2, [r3, #8] htim4.Init.Period = 100; 800da9c: 4b32 ldr r3, [pc, #200] @ (800db68 ) 800da9e: 2264 movs r2, #100 @ 0x64 800daa0: 60da str r2, [r3, #12] htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 800daa2: 4b31 ldr r3, [pc, #196] @ (800db68 ) 800daa4: 2200 movs r2, #0 800daa6: 611a str r2, [r3, #16] htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800daa8: 4b2f ldr r3, [pc, #188] @ (800db68 ) 800daaa: 2200 movs r2, #0 800daac: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim4) != HAL_OK) 800daae: 482e ldr r0, [pc, #184] @ (800db68 ) 800dab0: f004 f947 bl 8011d42 800dab4: 4603 mov r3, r0 800dab6: 2b00 cmp r3, #0 800dab8: d001 beq.n 800dabe { Error_Handler(); 800daba: f7fd f8b9 bl 800ac30 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800dabe: f44f 5380 mov.w r3, #4096 @ 0x1000 800dac2: 62bb str r3, [r7, #40] @ 0x28 if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) 800dac4: f107 0328 add.w r3, r7, #40 @ 0x28 800dac8: 4619 mov r1, r3 800daca: 4827 ldr r0, [pc, #156] @ (800db68 ) 800dacc: f004 fd9a bl 8012604 800dad0: 4603 mov r3, r0 800dad2: 2b00 cmp r3, #0 800dad4: d001 beq.n 800dada { Error_Handler(); 800dad6: f7fd f8ab bl 800ac30 } if (HAL_TIM_PWM_Init(&htim4) != HAL_OK) 800dada: 4823 ldr r0, [pc, #140] @ (800db68 ) 800dadc: f004 fa82 bl 8011fe4 800dae0: 4603 mov r3, r0 800dae2: 2b00 cmp r3, #0 800dae4: d001 beq.n 800daea { Error_Handler(); 800dae6: f7fd f8a3 bl 800ac30 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 800daea: 2300 movs r3, #0 800daec: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800daee: 2300 movs r3, #0 800daf0: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK) 800daf2: f107 0320 add.w r3, r7, #32 800daf6: 4619 mov r1, r3 800daf8: 481b ldr r0, [pc, #108] @ (800db68 ) 800dafa: f005 f931 bl 8012d60 800dafe: 4603 mov r3, r0 800db00: 2b00 cmp r3, #0 800db02: d001 beq.n 800db08 { Error_Handler(); 800db04: f7fd f894 bl 800ac30 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 800db08: 2360 movs r3, #96 @ 0x60 800db0a: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 800db0c: 2300 movs r3, #0 800db0e: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 800db10: 2300 movs r3, #0 800db12: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 800db14: 2300 movs r3, #0 800db16: 617b str r3, [r7, #20] if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) 800db18: 1d3b adds r3, r7, #4 800db1a: 2204 movs r2, #4 800db1c: 4619 mov r1, r3 800db1e: 4812 ldr r0, [pc, #72] @ (800db68 ) 800db20: f004 fcae bl 8012480 800db24: 4603 mov r3, r0 800db26: 2b00 cmp r3, #0 800db28: d001 beq.n 800db2e { Error_Handler(); 800db2a: f7fd f881 bl 800ac30 } if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) 800db2e: 1d3b adds r3, r7, #4 800db30: 2208 movs r2, #8 800db32: 4619 mov r1, r3 800db34: 480c ldr r0, [pc, #48] @ (800db68 ) 800db36: f004 fca3 bl 8012480 800db3a: 4603 mov r3, r0 800db3c: 2b00 cmp r3, #0 800db3e: d001 beq.n 800db44 { Error_Handler(); 800db40: f7fd f876 bl 800ac30 } if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_4) != HAL_OK) 800db44: 1d3b adds r3, r7, #4 800db46: 220c movs r2, #12 800db48: 4619 mov r1, r3 800db4a: 4807 ldr r0, [pc, #28] @ (800db68 ) 800db4c: f004 fc98 bl 8012480 800db50: 4603 mov r3, r0 800db52: 2b00 cmp r3, #0 800db54: d001 beq.n 800db5a { Error_Handler(); 800db56: f7fd f86b bl 800ac30 } /* USER CODE BEGIN TIM4_Init 2 */ /* USER CODE END TIM4_Init 2 */ HAL_TIM_MspPostInit(&htim4); 800db5a: 4803 ldr r0, [pc, #12] @ (800db68 ) 800db5c: f000 f842 bl 800dbe4 } 800db60: bf00 nop 800db62: 3738 adds r7, #56 @ 0x38 800db64: 46bd mov sp, r7 800db66: bd80 pop {r7, pc} 800db68: 2000121c .word 0x2000121c 800db6c: 40000800 .word 0x40000800 0800db70 : void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle) { 800db70: b580 push {r7, lr} 800db72: b084 sub sp, #16 800db74: af00 add r7, sp, #0 800db76: 6078 str r0, [r7, #4] if(tim_baseHandle->Instance==TIM3) 800db78: 687b ldr r3, [r7, #4] 800db7a: 681b ldr r3, [r3, #0] 800db7c: 4a16 ldr r2, [pc, #88] @ (800dbd8 ) 800db7e: 4293 cmp r3, r2 800db80: d114 bne.n 800dbac { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); 800db82: 4b16 ldr r3, [pc, #88] @ (800dbdc ) 800db84: 69db ldr r3, [r3, #28] 800db86: 4a15 ldr r2, [pc, #84] @ (800dbdc ) 800db88: f043 0302 orr.w r3, r3, #2 800db8c: 61d3 str r3, [r2, #28] 800db8e: 4b13 ldr r3, [pc, #76] @ (800dbdc ) 800db90: 69db ldr r3, [r3, #28] 800db92: f003 0302 and.w r3, r3, #2 800db96: 60fb str r3, [r7, #12] 800db98: 68fb ldr r3, [r7, #12] /* TIM3 interrupt Init */ HAL_NVIC_SetPriority(TIM3_IRQn, 6, 0); 800db9a: 2200 movs r2, #0 800db9c: 2106 movs r1, #6 800db9e: 201d movs r0, #29 800dba0: f002 f8c5 bl 800fd2e HAL_NVIC_EnableIRQ(TIM3_IRQn); 800dba4: 201d movs r0, #29 800dba6: f002 f8de bl 800fd66 __HAL_RCC_TIM4_CLK_ENABLE(); /* USER CODE BEGIN TIM4_MspInit 1 */ /* USER CODE END TIM4_MspInit 1 */ } } 800dbaa: e010 b.n 800dbce else if(tim_baseHandle->Instance==TIM4) 800dbac: 687b ldr r3, [r7, #4] 800dbae: 681b ldr r3, [r3, #0] 800dbb0: 4a0b ldr r2, [pc, #44] @ (800dbe0 ) 800dbb2: 4293 cmp r3, r2 800dbb4: d10b bne.n 800dbce __HAL_RCC_TIM4_CLK_ENABLE(); 800dbb6: 4b09 ldr r3, [pc, #36] @ (800dbdc ) 800dbb8: 69db ldr r3, [r3, #28] 800dbba: 4a08 ldr r2, [pc, #32] @ (800dbdc ) 800dbbc: f043 0304 orr.w r3, r3, #4 800dbc0: 61d3 str r3, [r2, #28] 800dbc2: 4b06 ldr r3, [pc, #24] @ (800dbdc ) 800dbc4: 69db ldr r3, [r3, #28] 800dbc6: f003 0304 and.w r3, r3, #4 800dbca: 60bb str r3, [r7, #8] 800dbcc: 68bb ldr r3, [r7, #8] } 800dbce: bf00 nop 800dbd0: 3710 adds r7, #16 800dbd2: 46bd mov sp, r7 800dbd4: bd80 pop {r7, pc} 800dbd6: bf00 nop 800dbd8: 40000400 .word 0x40000400 800dbdc: 40021000 .word 0x40021000 800dbe0: 40000800 .word 0x40000800 0800dbe4 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { 800dbe4: b580 push {r7, lr} 800dbe6: b08a sub sp, #40 @ 0x28 800dbe8: af00 add r7, sp, #0 800dbea: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800dbec: f107 0314 add.w r3, r7, #20 800dbf0: 2200 movs r2, #0 800dbf2: 601a str r2, [r3, #0] 800dbf4: 605a str r2, [r3, #4] 800dbf6: 609a str r2, [r3, #8] 800dbf8: 60da str r2, [r3, #12] if(timHandle->Instance==TIM3) 800dbfa: 687b ldr r3, [r7, #4] 800dbfc: 681b ldr r3, [r3, #0] 800dbfe: 4a26 ldr r2, [pc, #152] @ (800dc98 ) 800dc00: 4293 cmp r3, r2 800dc02: d118 bne.n 800dc36 { /* USER CODE BEGIN TIM3_MspPostInit 0 */ /* USER CODE END TIM3_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); 800dc04: 4b25 ldr r3, [pc, #148] @ (800dc9c ) 800dc06: 699b ldr r3, [r3, #24] 800dc08: 4a24 ldr r2, [pc, #144] @ (800dc9c ) 800dc0a: f043 0304 orr.w r3, r3, #4 800dc0e: 6193 str r3, [r2, #24] 800dc10: 4b22 ldr r3, [pc, #136] @ (800dc9c ) 800dc12: 699b ldr r3, [r3, #24] 800dc14: f003 0304 and.w r3, r3, #4 800dc18: 613b str r3, [r7, #16] 800dc1a: 693b ldr r3, [r7, #16] /**TIM3 GPIO Configuration PA7 ------> TIM3_CH2 */ GPIO_InitStruct.Pin = CP_PWM_Pin; 800dc1c: 2380 movs r3, #128 @ 0x80 800dc1e: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800dc20: 2302 movs r3, #2 800dc22: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800dc24: 2302 movs r3, #2 800dc26: 623b str r3, [r7, #32] HAL_GPIO_Init(CP_PWM_GPIO_Port, &GPIO_InitStruct); 800dc28: f107 0314 add.w r3, r7, #20 800dc2c: 4619 mov r1, r3 800dc2e: 481c ldr r0, [pc, #112] @ (800dca0 ) 800dc30: f002 fd5e bl 80106f0 /* USER CODE BEGIN TIM4_MspPostInit 1 */ /* USER CODE END TIM4_MspPostInit 1 */ } } 800dc34: e02b b.n 800dc8e else if(timHandle->Instance==TIM4) 800dc36: 687b ldr r3, [r7, #4] 800dc38: 681b ldr r3, [r3, #0] 800dc3a: 4a1a ldr r2, [pc, #104] @ (800dca4 ) 800dc3c: 4293 cmp r3, r2 800dc3e: d126 bne.n 800dc8e __HAL_RCC_GPIOD_CLK_ENABLE(); 800dc40: 4b16 ldr r3, [pc, #88] @ (800dc9c ) 800dc42: 699b ldr r3, [r3, #24] 800dc44: 4a15 ldr r2, [pc, #84] @ (800dc9c ) 800dc46: f043 0320 orr.w r3, r3, #32 800dc4a: 6193 str r3, [r2, #24] 800dc4c: 4b13 ldr r3, [pc, #76] @ (800dc9c ) 800dc4e: 699b ldr r3, [r3, #24] 800dc50: f003 0320 and.w r3, r3, #32 800dc54: 60fb str r3, [r7, #12] 800dc56: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15; 800dc58: f44f 4360 mov.w r3, #57344 @ 0xe000 800dc5c: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800dc5e: 2302 movs r3, #2 800dc60: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800dc62: 2302 movs r3, #2 800dc64: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800dc66: f107 0314 add.w r3, r7, #20 800dc6a: 4619 mov r1, r3 800dc6c: 480e ldr r0, [pc, #56] @ (800dca8 ) 800dc6e: f002 fd3f bl 80106f0 __HAL_AFIO_REMAP_TIM4_ENABLE(); 800dc72: 4b0e ldr r3, [pc, #56] @ (800dcac ) 800dc74: 685b ldr r3, [r3, #4] 800dc76: 627b str r3, [r7, #36] @ 0x24 800dc78: 6a7b ldr r3, [r7, #36] @ 0x24 800dc7a: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800dc7e: 627b str r3, [r7, #36] @ 0x24 800dc80: 6a7b ldr r3, [r7, #36] @ 0x24 800dc82: f443 5380 orr.w r3, r3, #4096 @ 0x1000 800dc86: 627b str r3, [r7, #36] @ 0x24 800dc88: 4a08 ldr r2, [pc, #32] @ (800dcac ) 800dc8a: 6a7b ldr r3, [r7, #36] @ 0x24 800dc8c: 6053 str r3, [r2, #4] } 800dc8e: bf00 nop 800dc90: 3728 adds r7, #40 @ 0x28 800dc92: 46bd mov sp, r7 800dc94: bd80 pop {r7, pc} 800dc96: bf00 nop 800dc98: 40000400 .word 0x40000400 800dc9c: 40021000 .word 0x40021000 800dca0: 40010800 .word 0x40010800 800dca4: 40000800 .word 0x40000800 800dca8: 40011400 .word 0x40011400 800dcac: 40010000 .word 0x40010000 0800dcb0 : DMA_HandleTypeDef hdma_usart3_rx; DMA_HandleTypeDef hdma_usart3_tx; /* UART5 init function */ void MX_UART5_Init(void) { 800dcb0: b580 push {r7, lr} 800dcb2: 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; 800dcb4: 4b11 ldr r3, [pc, #68] @ (800dcfc ) 800dcb6: 4a12 ldr r2, [pc, #72] @ (800dd00 ) 800dcb8: 601a str r2, [r3, #0] huart5.Init.BaudRate = 9600; 800dcba: 4b10 ldr r3, [pc, #64] @ (800dcfc ) 800dcbc: f44f 5216 mov.w r2, #9600 @ 0x2580 800dcc0: 605a str r2, [r3, #4] huart5.Init.WordLength = UART_WORDLENGTH_8B; 800dcc2: 4b0e ldr r3, [pc, #56] @ (800dcfc ) 800dcc4: 2200 movs r2, #0 800dcc6: 609a str r2, [r3, #8] huart5.Init.StopBits = UART_STOPBITS_1; 800dcc8: 4b0c ldr r3, [pc, #48] @ (800dcfc ) 800dcca: 2200 movs r2, #0 800dccc: 60da str r2, [r3, #12] huart5.Init.Parity = UART_PARITY_NONE; 800dcce: 4b0b ldr r3, [pc, #44] @ (800dcfc ) 800dcd0: 2200 movs r2, #0 800dcd2: 611a str r2, [r3, #16] huart5.Init.Mode = UART_MODE_TX_RX; 800dcd4: 4b09 ldr r3, [pc, #36] @ (800dcfc ) 800dcd6: 220c movs r2, #12 800dcd8: 615a str r2, [r3, #20] huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800dcda: 4b08 ldr r3, [pc, #32] @ (800dcfc ) 800dcdc: 2200 movs r2, #0 800dcde: 619a str r2, [r3, #24] huart5.Init.OverSampling = UART_OVERSAMPLING_16; 800dce0: 4b06 ldr r3, [pc, #24] @ (800dcfc ) 800dce2: 2200 movs r2, #0 800dce4: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart5) != HAL_OK) 800dce6: 4805 ldr r0, [pc, #20] @ (800dcfc ) 800dce8: f005 f8b2 bl 8012e50 800dcec: 4603 mov r3, r0 800dcee: 2b00 cmp r3, #0 800dcf0: d001 beq.n 800dcf6 { Error_Handler(); 800dcf2: f7fc ff9d bl 800ac30 } /* USER CODE BEGIN UART5_Init 2 */ /* USER CODE END UART5_Init 2 */ } 800dcf6: bf00 nop 800dcf8: bd80 pop {r7, pc} 800dcfa: bf00 nop 800dcfc: 20001264 .word 0x20001264 800dd00: 40005000 .word 0x40005000 0800dd04 : /* USART1 init function */ void MX_USART1_UART_Init(void) { 800dd04: b580 push {r7, lr} 800dd06: 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; 800dd08: 4b11 ldr r3, [pc, #68] @ (800dd50 ) 800dd0a: 4a12 ldr r2, [pc, #72] @ (800dd54 ) 800dd0c: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; 800dd0e: 4b10 ldr r3, [pc, #64] @ (800dd50 ) 800dd10: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800dd14: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; 800dd16: 4b0e ldr r3, [pc, #56] @ (800dd50 ) 800dd18: 2200 movs r2, #0 800dd1a: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; 800dd1c: 4b0c ldr r3, [pc, #48] @ (800dd50 ) 800dd1e: 2200 movs r2, #0 800dd20: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; 800dd22: 4b0b ldr r3, [pc, #44] @ (800dd50 ) 800dd24: 2200 movs r2, #0 800dd26: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; 800dd28: 4b09 ldr r3, [pc, #36] @ (800dd50 ) 800dd2a: 220c movs r2, #12 800dd2c: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800dd2e: 4b08 ldr r3, [pc, #32] @ (800dd50 ) 800dd30: 2200 movs r2, #0 800dd32: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; 800dd34: 4b06 ldr r3, [pc, #24] @ (800dd50 ) 800dd36: 2200 movs r2, #0 800dd38: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) 800dd3a: 4805 ldr r0, [pc, #20] @ (800dd50 ) 800dd3c: f005 f888 bl 8012e50 800dd40: 4603 mov r3, r0 800dd42: 2b00 cmp r3, #0 800dd44: d001 beq.n 800dd4a { Error_Handler(); 800dd46: f7fc ff73 bl 800ac30 } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } 800dd4a: bf00 nop 800dd4c: bd80 pop {r7, pc} 800dd4e: bf00 nop 800dd50: 200012ac .word 0x200012ac 800dd54: 40013800 .word 0x40013800 0800dd58 : /* USART2 init function */ void MX_USART2_UART_Init(void) { 800dd58: b580 push {r7, lr} 800dd5a: 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; 800dd5c: 4b11 ldr r3, [pc, #68] @ (800dda4 ) 800dd5e: 4a12 ldr r2, [pc, #72] @ (800dda8 ) 800dd60: 601a str r2, [r3, #0] huart2.Init.BaudRate = 115200; 800dd62: 4b10 ldr r3, [pc, #64] @ (800dda4 ) 800dd64: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800dd68: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; 800dd6a: 4b0e ldr r3, [pc, #56] @ (800dda4 ) 800dd6c: 2200 movs r2, #0 800dd6e: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; 800dd70: 4b0c ldr r3, [pc, #48] @ (800dda4 ) 800dd72: 2200 movs r2, #0 800dd74: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; 800dd76: 4b0b ldr r3, [pc, #44] @ (800dda4 ) 800dd78: 2200 movs r2, #0 800dd7a: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; 800dd7c: 4b09 ldr r3, [pc, #36] @ (800dda4 ) 800dd7e: 220c movs r2, #12 800dd80: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800dd82: 4b08 ldr r3, [pc, #32] @ (800dda4 ) 800dd84: 2200 movs r2, #0 800dd86: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; 800dd88: 4b06 ldr r3, [pc, #24] @ (800dda4 ) 800dd8a: 2200 movs r2, #0 800dd8c: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart2) != HAL_OK) 800dd8e: 4805 ldr r0, [pc, #20] @ (800dda4 ) 800dd90: f005 f85e bl 8012e50 800dd94: 4603 mov r3, r0 800dd96: 2b00 cmp r3, #0 800dd98: d001 beq.n 800dd9e { Error_Handler(); 800dd9a: f7fc ff49 bl 800ac30 } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } 800dd9e: bf00 nop 800dda0: bd80 pop {r7, pc} 800dda2: bf00 nop 800dda4: 200012f4 .word 0x200012f4 800dda8: 40004400 .word 0x40004400 0800ddac : /* USART3 init function */ void MX_USART3_UART_Init(void) { 800ddac: b580 push {r7, lr} 800ddae: 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; 800ddb0: 4b11 ldr r3, [pc, #68] @ (800ddf8 ) 800ddb2: 4a12 ldr r2, [pc, #72] @ (800ddfc ) 800ddb4: 601a str r2, [r3, #0] huart3.Init.BaudRate = 115200; 800ddb6: 4b10 ldr r3, [pc, #64] @ (800ddf8 ) 800ddb8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 800ddbc: 605a str r2, [r3, #4] huart3.Init.WordLength = UART_WORDLENGTH_8B; 800ddbe: 4b0e ldr r3, [pc, #56] @ (800ddf8 ) 800ddc0: 2200 movs r2, #0 800ddc2: 609a str r2, [r3, #8] huart3.Init.StopBits = UART_STOPBITS_1; 800ddc4: 4b0c ldr r3, [pc, #48] @ (800ddf8 ) 800ddc6: 2200 movs r2, #0 800ddc8: 60da str r2, [r3, #12] huart3.Init.Parity = UART_PARITY_NONE; 800ddca: 4b0b ldr r3, [pc, #44] @ (800ddf8 ) 800ddcc: 2200 movs r2, #0 800ddce: 611a str r2, [r3, #16] huart3.Init.Mode = UART_MODE_TX_RX; 800ddd0: 4b09 ldr r3, [pc, #36] @ (800ddf8 ) 800ddd2: 220c movs r2, #12 800ddd4: 615a str r2, [r3, #20] huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE; 800ddd6: 4b08 ldr r3, [pc, #32] @ (800ddf8 ) 800ddd8: 2200 movs r2, #0 800ddda: 619a str r2, [r3, #24] huart3.Init.OverSampling = UART_OVERSAMPLING_16; 800dddc: 4b06 ldr r3, [pc, #24] @ (800ddf8 ) 800ddde: 2200 movs r2, #0 800dde0: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart3) != HAL_OK) 800dde2: 4805 ldr r0, [pc, #20] @ (800ddf8 ) 800dde4: f005 f834 bl 8012e50 800dde8: 4603 mov r3, r0 800ddea: 2b00 cmp r3, #0 800ddec: d001 beq.n 800ddf2 { Error_Handler(); 800ddee: f7fc ff1f bl 800ac30 } /* USER CODE BEGIN USART3_Init 2 */ /* USER CODE END USART3_Init 2 */ } 800ddf2: bf00 nop 800ddf4: bd80 pop {r7, pc} 800ddf6: bf00 nop 800ddf8: 2000133c .word 0x2000133c 800ddfc: 40004800 .word 0x40004800 0800de00 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { 800de00: b580 push {r7, lr} 800de02: b092 sub sp, #72 @ 0x48 800de04: af00 add r7, sp, #0 800de06: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800de08: f107 0330 add.w r3, r7, #48 @ 0x30 800de0c: 2200 movs r2, #0 800de0e: 601a str r2, [r3, #0] 800de10: 605a str r2, [r3, #4] 800de12: 609a str r2, [r3, #8] 800de14: 60da str r2, [r3, #12] if(uartHandle->Instance==UART5) 800de16: 687b ldr r3, [r7, #4] 800de18: 681b ldr r3, [r3, #0] 800de1a: 4a92 ldr r2, [pc, #584] @ (800e064 ) 800de1c: 4293 cmp r3, r2 800de1e: d145 bne.n 800deac { /* USER CODE BEGIN UART5_MspInit 0 */ /* USER CODE END UART5_MspInit 0 */ /* UART5 clock enable */ __HAL_RCC_UART5_CLK_ENABLE(); 800de20: 4b91 ldr r3, [pc, #580] @ (800e068 ) 800de22: 69db ldr r3, [r3, #28] 800de24: 4a90 ldr r2, [pc, #576] @ (800e068 ) 800de26: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 800de2a: 61d3 str r3, [r2, #28] 800de2c: 4b8e ldr r3, [pc, #568] @ (800e068 ) 800de2e: 69db ldr r3, [r3, #28] 800de30: f403 1380 and.w r3, r3, #1048576 @ 0x100000 800de34: 62fb str r3, [r7, #44] @ 0x2c 800de36: 6afb ldr r3, [r7, #44] @ 0x2c __HAL_RCC_GPIOC_CLK_ENABLE(); 800de38: 4b8b ldr r3, [pc, #556] @ (800e068 ) 800de3a: 699b ldr r3, [r3, #24] 800de3c: 4a8a ldr r2, [pc, #552] @ (800e068 ) 800de3e: f043 0310 orr.w r3, r3, #16 800de42: 6193 str r3, [r2, #24] 800de44: 4b88 ldr r3, [pc, #544] @ (800e068 ) 800de46: 699b ldr r3, [r3, #24] 800de48: f003 0310 and.w r3, r3, #16 800de4c: 62bb str r3, [r7, #40] @ 0x28 800de4e: 6abb ldr r3, [r7, #40] @ 0x28 __HAL_RCC_GPIOD_CLK_ENABLE(); 800de50: 4b85 ldr r3, [pc, #532] @ (800e068 ) 800de52: 699b ldr r3, [r3, #24] 800de54: 4a84 ldr r2, [pc, #528] @ (800e068 ) 800de56: f043 0320 orr.w r3, r3, #32 800de5a: 6193 str r3, [r2, #24] 800de5c: 4b82 ldr r3, [pc, #520] @ (800e068 ) 800de5e: 699b ldr r3, [r3, #24] 800de60: f003 0320 and.w r3, r3, #32 800de64: 627b str r3, [r7, #36] @ 0x24 800de66: 6a7b ldr r3, [r7, #36] @ 0x24 /**UART5 GPIO Configuration PC12 ------> UART5_TX PD2 ------> UART5_RX */ GPIO_InitStruct.Pin = GPIO_PIN_12; 800de68: f44f 5380 mov.w r3, #4096 @ 0x1000 800de6c: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800de6e: 2302 movs r3, #2 800de70: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800de72: 2303 movs r3, #3 800de74: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800de76: f107 0330 add.w r3, r7, #48 @ 0x30 800de7a: 4619 mov r1, r3 800de7c: 487b ldr r0, [pc, #492] @ (800e06c ) 800de7e: f002 fc37 bl 80106f0 GPIO_InitStruct.Pin = GPIO_PIN_2; 800de82: 2304 movs r3, #4 800de84: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800de86: 2300 movs r3, #0 800de88: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800de8a: 2300 movs r3, #0 800de8c: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800de8e: f107 0330 add.w r3, r7, #48 @ 0x30 800de92: 4619 mov r1, r3 800de94: 4876 ldr r0, [pc, #472] @ (800e070 ) 800de96: f002 fc2b bl 80106f0 /* UART5 interrupt Init */ HAL_NVIC_SetPriority(UART5_IRQn, 5, 0); 800de9a: 2200 movs r2, #0 800de9c: 2105 movs r1, #5 800de9e: 2035 movs r0, #53 @ 0x35 800dea0: f001 ff45 bl 800fd2e HAL_NVIC_EnableIRQ(UART5_IRQn); 800dea4: 2035 movs r0, #53 @ 0x35 800dea6: f001 ff5e bl 800fd66 HAL_NVIC_EnableIRQ(USART3_IRQn); /* USER CODE BEGIN USART3_MspInit 1 */ /* USER CODE END USART3_MspInit 1 */ } } 800deaa: e193 b.n 800e1d4 else if(uartHandle->Instance==USART1) 800deac: 687b ldr r3, [r7, #4] 800deae: 681b ldr r3, [r3, #0] 800deb0: 4a70 ldr r2, [pc, #448] @ (800e074 ) 800deb2: 4293 cmp r3, r2 800deb4: d13a bne.n 800df2c __HAL_RCC_USART1_CLK_ENABLE(); 800deb6: 4b6c ldr r3, [pc, #432] @ (800e068 ) 800deb8: 699b ldr r3, [r3, #24] 800deba: 4a6b ldr r2, [pc, #428] @ (800e068 ) 800debc: f443 4380 orr.w r3, r3, #16384 @ 0x4000 800dec0: 6193 str r3, [r2, #24] 800dec2: 4b69 ldr r3, [pc, #420] @ (800e068 ) 800dec4: 699b ldr r3, [r3, #24] 800dec6: f403 4380 and.w r3, r3, #16384 @ 0x4000 800deca: 623b str r3, [r7, #32] 800decc: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOA_CLK_ENABLE(); 800dece: 4b66 ldr r3, [pc, #408] @ (800e068 ) 800ded0: 699b ldr r3, [r3, #24] 800ded2: 4a65 ldr r2, [pc, #404] @ (800e068 ) 800ded4: f043 0304 orr.w r3, r3, #4 800ded8: 6193 str r3, [r2, #24] 800deda: 4b63 ldr r3, [pc, #396] @ (800e068 ) 800dedc: 699b ldr r3, [r3, #24] 800dede: f003 0304 and.w r3, r3, #4 800dee2: 61fb str r3, [r7, #28] 800dee4: 69fb ldr r3, [r7, #28] GPIO_InitStruct.Pin = GPIO_PIN_9; 800dee6: f44f 7300 mov.w r3, #512 @ 0x200 800deea: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800deec: 2302 movs r3, #2 800deee: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800def0: 2303 movs r3, #3 800def2: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800def4: f107 0330 add.w r3, r7, #48 @ 0x30 800def8: 4619 mov r1, r3 800defa: 485f ldr r0, [pc, #380] @ (800e078 ) 800defc: f002 fbf8 bl 80106f0 GPIO_InitStruct.Pin = GPIO_PIN_10; 800df00: f44f 6380 mov.w r3, #1024 @ 0x400 800df04: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800df06: 2300 movs r3, #0 800df08: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800df0a: 2300 movs r3, #0 800df0c: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 800df0e: f107 0330 add.w r3, r7, #48 @ 0x30 800df12: 4619 mov r1, r3 800df14: 4858 ldr r0, [pc, #352] @ (800e078 ) 800df16: f002 fbeb bl 80106f0 HAL_NVIC_SetPriority(USART1_IRQn, 5, 0); 800df1a: 2200 movs r2, #0 800df1c: 2105 movs r1, #5 800df1e: 2025 movs r0, #37 @ 0x25 800df20: f001 ff05 bl 800fd2e HAL_NVIC_EnableIRQ(USART1_IRQn); 800df24: 2025 movs r0, #37 @ 0x25 800df26: f001 ff1e bl 800fd66 } 800df2a: e153 b.n 800e1d4 else if(uartHandle->Instance==USART2) 800df2c: 687b ldr r3, [r7, #4] 800df2e: 681b ldr r3, [r3, #0] 800df30: 4a52 ldr r2, [pc, #328] @ (800e07c ) 800df32: 4293 cmp r3, r2 800df34: f040 80ae bne.w 800e094 __HAL_RCC_USART2_CLK_ENABLE(); 800df38: 4b4b ldr r3, [pc, #300] @ (800e068 ) 800df3a: 69db ldr r3, [r3, #28] 800df3c: 4a4a ldr r2, [pc, #296] @ (800e068 ) 800df3e: f443 3300 orr.w r3, r3, #131072 @ 0x20000 800df42: 61d3 str r3, [r2, #28] 800df44: 4b48 ldr r3, [pc, #288] @ (800e068 ) 800df46: 69db ldr r3, [r3, #28] 800df48: f403 3300 and.w r3, r3, #131072 @ 0x20000 800df4c: 61bb str r3, [r7, #24] 800df4e: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOD_CLK_ENABLE(); 800df50: 4b45 ldr r3, [pc, #276] @ (800e068 ) 800df52: 699b ldr r3, [r3, #24] 800df54: 4a44 ldr r2, [pc, #272] @ (800e068 ) 800df56: f043 0320 orr.w r3, r3, #32 800df5a: 6193 str r3, [r2, #24] 800df5c: 4b42 ldr r3, [pc, #264] @ (800e068 ) 800df5e: 699b ldr r3, [r3, #24] 800df60: f003 0320 and.w r3, r3, #32 800df64: 617b str r3, [r7, #20] 800df66: 697b ldr r3, [r7, #20] GPIO_InitStruct.Pin = GPIO_PIN_5; 800df68: 2320 movs r3, #32 800df6a: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800df6c: 2302 movs r3, #2 800df6e: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800df70: 2303 movs r3, #3 800df72: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800df74: f107 0330 add.w r3, r7, #48 @ 0x30 800df78: 4619 mov r1, r3 800df7a: 483d ldr r0, [pc, #244] @ (800e070 ) 800df7c: f002 fbb8 bl 80106f0 GPIO_InitStruct.Pin = GPIO_PIN_6; 800df80: 2340 movs r3, #64 @ 0x40 800df82: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800df84: 2300 movs r3, #0 800df86: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800df88: 2300 movs r3, #0 800df8a: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 800df8c: f107 0330 add.w r3, r7, #48 @ 0x30 800df90: 4619 mov r1, r3 800df92: 4837 ldr r0, [pc, #220] @ (800e070 ) 800df94: f002 fbac bl 80106f0 __HAL_AFIO_REMAP_USART2_ENABLE(); 800df98: 4b39 ldr r3, [pc, #228] @ (800e080 ) 800df9a: 685b ldr r3, [r3, #4] 800df9c: 643b str r3, [r7, #64] @ 0x40 800df9e: 6c3b ldr r3, [r7, #64] @ 0x40 800dfa0: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800dfa4: 643b str r3, [r7, #64] @ 0x40 800dfa6: 6c3b ldr r3, [r7, #64] @ 0x40 800dfa8: f043 0308 orr.w r3, r3, #8 800dfac: 643b str r3, [r7, #64] @ 0x40 800dfae: 4a34 ldr r2, [pc, #208] @ (800e080 ) 800dfb0: 6c3b ldr r3, [r7, #64] @ 0x40 800dfb2: 6053 str r3, [r2, #4] hdma_usart2_rx.Instance = DMA1_Channel6; 800dfb4: 4b33 ldr r3, [pc, #204] @ (800e084 ) 800dfb6: 4a34 ldr r2, [pc, #208] @ (800e088 ) 800dfb8: 601a str r2, [r3, #0] hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; 800dfba: 4b32 ldr r3, [pc, #200] @ (800e084 ) 800dfbc: 2200 movs r2, #0 800dfbe: 605a str r2, [r3, #4] hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; 800dfc0: 4b30 ldr r3, [pc, #192] @ (800e084 ) 800dfc2: 2200 movs r2, #0 800dfc4: 609a str r2, [r3, #8] hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; 800dfc6: 4b2f ldr r3, [pc, #188] @ (800e084 ) 800dfc8: 2280 movs r2, #128 @ 0x80 800dfca: 60da str r2, [r3, #12] hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; 800dfcc: 4b2d ldr r3, [pc, #180] @ (800e084 ) 800dfce: 2200 movs r2, #0 800dfd0: 611a str r2, [r3, #16] hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; 800dfd2: 4b2c ldr r3, [pc, #176] @ (800e084 ) 800dfd4: 2200 movs r2, #0 800dfd6: 615a str r2, [r3, #20] hdma_usart2_rx.Init.Mode = DMA_NORMAL; 800dfd8: 4b2a ldr r3, [pc, #168] @ (800e084 ) 800dfda: 2200 movs r2, #0 800dfdc: 619a str r2, [r3, #24] hdma_usart2_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH; 800dfde: 4b29 ldr r3, [pc, #164] @ (800e084 ) 800dfe0: f44f 5240 mov.w r2, #12288 @ 0x3000 800dfe4: 61da str r2, [r3, #28] if (HAL_DMA_Init(&hdma_usart2_rx) != HAL_OK) 800dfe6: 4827 ldr r0, [pc, #156] @ (800e084 ) 800dfe8: f001 fef4 bl 800fdd4 800dfec: 4603 mov r3, r0 800dfee: 2b00 cmp r3, #0 800dff0: d001 beq.n 800dff6 Error_Handler(); 800dff2: f7fc fe1d bl 800ac30 __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart2_rx); 800dff6: 687b ldr r3, [r7, #4] 800dff8: 4a22 ldr r2, [pc, #136] @ (800e084 ) 800dffa: 63da str r2, [r3, #60] @ 0x3c 800dffc: 4a21 ldr r2, [pc, #132] @ (800e084 ) 800dffe: 687b ldr r3, [r7, #4] 800e000: 6253 str r3, [r2, #36] @ 0x24 hdma_usart2_tx.Instance = DMA1_Channel7; 800e002: 4b22 ldr r3, [pc, #136] @ (800e08c ) 800e004: 4a22 ldr r2, [pc, #136] @ (800e090 ) 800e006: 601a str r2, [r3, #0] hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; 800e008: 4b20 ldr r3, [pc, #128] @ (800e08c ) 800e00a: 2210 movs r2, #16 800e00c: 605a str r2, [r3, #4] hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; 800e00e: 4b1f ldr r3, [pc, #124] @ (800e08c ) 800e010: 2200 movs r2, #0 800e012: 609a str r2, [r3, #8] hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; 800e014: 4b1d ldr r3, [pc, #116] @ (800e08c ) 800e016: 2280 movs r2, #128 @ 0x80 800e018: 60da str r2, [r3, #12] hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; 800e01a: 4b1c ldr r3, [pc, #112] @ (800e08c ) 800e01c: 2200 movs r2, #0 800e01e: 611a str r2, [r3, #16] hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; 800e020: 4b1a ldr r3, [pc, #104] @ (800e08c ) 800e022: 2200 movs r2, #0 800e024: 615a str r2, [r3, #20] hdma_usart2_tx.Init.Mode = DMA_NORMAL; 800e026: 4b19 ldr r3, [pc, #100] @ (800e08c ) 800e028: 2200 movs r2, #0 800e02a: 619a str r2, [r3, #24] hdma_usart2_tx.Init.Priority = DMA_PRIORITY_HIGH; 800e02c: 4b17 ldr r3, [pc, #92] @ (800e08c ) 800e02e: f44f 5200 mov.w r2, #8192 @ 0x2000 800e032: 61da str r2, [r3, #28] if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK) 800e034: 4815 ldr r0, [pc, #84] @ (800e08c ) 800e036: f001 fecd bl 800fdd4 800e03a: 4603 mov r3, r0 800e03c: 2b00 cmp r3, #0 800e03e: d001 beq.n 800e044 Error_Handler(); 800e040: f7fc fdf6 bl 800ac30 __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx); 800e044: 687b ldr r3, [r7, #4] 800e046: 4a11 ldr r2, [pc, #68] @ (800e08c ) 800e048: 639a str r2, [r3, #56] @ 0x38 800e04a: 4a10 ldr r2, [pc, #64] @ (800e08c ) 800e04c: 687b ldr r3, [r7, #4] 800e04e: 6253 str r3, [r2, #36] @ 0x24 HAL_NVIC_SetPriority(USART2_IRQn, 2, 0); 800e050: 2200 movs r2, #0 800e052: 2102 movs r1, #2 800e054: 2026 movs r0, #38 @ 0x26 800e056: f001 fe6a bl 800fd2e HAL_NVIC_EnableIRQ(USART2_IRQn); 800e05a: 2026 movs r0, #38 @ 0x26 800e05c: f001 fe83 bl 800fd66 } 800e060: e0b8 b.n 800e1d4 800e062: bf00 nop 800e064: 40005000 .word 0x40005000 800e068: 40021000 .word 0x40021000 800e06c: 40011000 .word 0x40011000 800e070: 40011400 .word 0x40011400 800e074: 40013800 .word 0x40013800 800e078: 40010800 .word 0x40010800 800e07c: 40004400 .word 0x40004400 800e080: 40010000 .word 0x40010000 800e084: 20001384 .word 0x20001384 800e088: 4002006c .word 0x4002006c 800e08c: 200013c8 .word 0x200013c8 800e090: 40020080 .word 0x40020080 else if(uartHandle->Instance==USART3) 800e094: 687b ldr r3, [r7, #4] 800e096: 681b ldr r3, [r3, #0] 800e098: 4a50 ldr r2, [pc, #320] @ (800e1dc ) 800e09a: 4293 cmp r3, r2 800e09c: f040 809a bne.w 800e1d4 __HAL_RCC_USART3_CLK_ENABLE(); 800e0a0: 4b4f ldr r3, [pc, #316] @ (800e1e0 ) 800e0a2: 69db ldr r3, [r3, #28] 800e0a4: 4a4e ldr r2, [pc, #312] @ (800e1e0 ) 800e0a6: f443 2380 orr.w r3, r3, #262144 @ 0x40000 800e0aa: 61d3 str r3, [r2, #28] 800e0ac: 4b4c ldr r3, [pc, #304] @ (800e1e0 ) 800e0ae: 69db ldr r3, [r3, #28] 800e0b0: f403 2380 and.w r3, r3, #262144 @ 0x40000 800e0b4: 613b str r3, [r7, #16] 800e0b6: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOC_CLK_ENABLE(); 800e0b8: 4b49 ldr r3, [pc, #292] @ (800e1e0 ) 800e0ba: 699b ldr r3, [r3, #24] 800e0bc: 4a48 ldr r2, [pc, #288] @ (800e1e0 ) 800e0be: f043 0310 orr.w r3, r3, #16 800e0c2: 6193 str r3, [r2, #24] 800e0c4: 4b46 ldr r3, [pc, #280] @ (800e1e0 ) 800e0c6: 699b ldr r3, [r3, #24] 800e0c8: f003 0310 and.w r3, r3, #16 800e0cc: 60fb str r3, [r7, #12] 800e0ce: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_10; 800e0d0: f44f 6380 mov.w r3, #1024 @ 0x400 800e0d4: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800e0d6: 2302 movs r3, #2 800e0d8: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800e0da: 2303 movs r3, #3 800e0dc: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800e0de: f107 0330 add.w r3, r7, #48 @ 0x30 800e0e2: 4619 mov r1, r3 800e0e4: 483f ldr r0, [pc, #252] @ (800e1e4 ) 800e0e6: f002 fb03 bl 80106f0 GPIO_InitStruct.Pin = GPIO_PIN_11; 800e0ea: f44f 6300 mov.w r3, #2048 @ 0x800 800e0ee: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800e0f0: 2300 movs r3, #0 800e0f2: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Pull = GPIO_NOPULL; 800e0f4: 2300 movs r3, #0 800e0f6: 63bb str r3, [r7, #56] @ 0x38 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); 800e0f8: f107 0330 add.w r3, r7, #48 @ 0x30 800e0fc: 4619 mov r1, r3 800e0fe: 4839 ldr r0, [pc, #228] @ (800e1e4 ) 800e100: f002 faf6 bl 80106f0 __HAL_AFIO_REMAP_USART3_PARTIAL(); 800e104: 4b38 ldr r3, [pc, #224] @ (800e1e8 ) 800e106: 685b ldr r3, [r3, #4] 800e108: 647b str r3, [r7, #68] @ 0x44 800e10a: 6c7b ldr r3, [r7, #68] @ 0x44 800e10c: f023 0330 bic.w r3, r3, #48 @ 0x30 800e110: 647b str r3, [r7, #68] @ 0x44 800e112: 6c7b ldr r3, [r7, #68] @ 0x44 800e114: f043 63e0 orr.w r3, r3, #117440512 @ 0x7000000 800e118: 647b str r3, [r7, #68] @ 0x44 800e11a: 6c7b ldr r3, [r7, #68] @ 0x44 800e11c: f043 0310 orr.w r3, r3, #16 800e120: 647b str r3, [r7, #68] @ 0x44 800e122: 4a31 ldr r2, [pc, #196] @ (800e1e8 ) 800e124: 6c7b ldr r3, [r7, #68] @ 0x44 800e126: 6053 str r3, [r2, #4] hdma_usart3_rx.Instance = DMA1_Channel3; 800e128: 4b30 ldr r3, [pc, #192] @ (800e1ec ) 800e12a: 4a31 ldr r2, [pc, #196] @ (800e1f0 ) 800e12c: 601a str r2, [r3, #0] hdma_usart3_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; 800e12e: 4b2f ldr r3, [pc, #188] @ (800e1ec ) 800e130: 2200 movs r2, #0 800e132: 605a str r2, [r3, #4] hdma_usart3_rx.Init.PeriphInc = DMA_PINC_DISABLE; 800e134: 4b2d ldr r3, [pc, #180] @ (800e1ec ) 800e136: 2200 movs r2, #0 800e138: 609a str r2, [r3, #8] hdma_usart3_rx.Init.MemInc = DMA_MINC_ENABLE; 800e13a: 4b2c ldr r3, [pc, #176] @ (800e1ec ) 800e13c: 2280 movs r2, #128 @ 0x80 800e13e: 60da str r2, [r3, #12] hdma_usart3_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; 800e140: 4b2a ldr r3, [pc, #168] @ (800e1ec ) 800e142: 2200 movs r2, #0 800e144: 611a str r2, [r3, #16] hdma_usart3_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; 800e146: 4b29 ldr r3, [pc, #164] @ (800e1ec ) 800e148: 2200 movs r2, #0 800e14a: 615a str r2, [r3, #20] hdma_usart3_rx.Init.Mode = DMA_NORMAL; 800e14c: 4b27 ldr r3, [pc, #156] @ (800e1ec ) 800e14e: 2200 movs r2, #0 800e150: 619a str r2, [r3, #24] hdma_usart3_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH; 800e152: 4b26 ldr r3, [pc, #152] @ (800e1ec ) 800e154: f44f 5240 mov.w r2, #12288 @ 0x3000 800e158: 61da str r2, [r3, #28] if (HAL_DMA_Init(&hdma_usart3_rx) != HAL_OK) 800e15a: 4824 ldr r0, [pc, #144] @ (800e1ec ) 800e15c: f001 fe3a bl 800fdd4 800e160: 4603 mov r3, r0 800e162: 2b00 cmp r3, #0 800e164: d001 beq.n 800e16a Error_Handler(); 800e166: f7fc fd63 bl 800ac30 __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart3_rx); 800e16a: 687b ldr r3, [r7, #4] 800e16c: 4a1f ldr r2, [pc, #124] @ (800e1ec ) 800e16e: 63da str r2, [r3, #60] @ 0x3c 800e170: 4a1e ldr r2, [pc, #120] @ (800e1ec ) 800e172: 687b ldr r3, [r7, #4] 800e174: 6253 str r3, [r2, #36] @ 0x24 hdma_usart3_tx.Instance = DMA1_Channel2; 800e176: 4b1f ldr r3, [pc, #124] @ (800e1f4 ) 800e178: 4a1f ldr r2, [pc, #124] @ (800e1f8 ) 800e17a: 601a str r2, [r3, #0] hdma_usart3_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; 800e17c: 4b1d ldr r3, [pc, #116] @ (800e1f4 ) 800e17e: 2210 movs r2, #16 800e180: 605a str r2, [r3, #4] hdma_usart3_tx.Init.PeriphInc = DMA_PINC_DISABLE; 800e182: 4b1c ldr r3, [pc, #112] @ (800e1f4 ) 800e184: 2200 movs r2, #0 800e186: 609a str r2, [r3, #8] hdma_usart3_tx.Init.MemInc = DMA_MINC_ENABLE; 800e188: 4b1a ldr r3, [pc, #104] @ (800e1f4 ) 800e18a: 2280 movs r2, #128 @ 0x80 800e18c: 60da str r2, [r3, #12] hdma_usart3_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; 800e18e: 4b19 ldr r3, [pc, #100] @ (800e1f4 ) 800e190: 2200 movs r2, #0 800e192: 611a str r2, [r3, #16] hdma_usart3_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; 800e194: 4b17 ldr r3, [pc, #92] @ (800e1f4 ) 800e196: 2200 movs r2, #0 800e198: 615a str r2, [r3, #20] hdma_usart3_tx.Init.Mode = DMA_NORMAL; 800e19a: 4b16 ldr r3, [pc, #88] @ (800e1f4 ) 800e19c: 2200 movs r2, #0 800e19e: 619a str r2, [r3, #24] hdma_usart3_tx.Init.Priority = DMA_PRIORITY_HIGH; 800e1a0: 4b14 ldr r3, [pc, #80] @ (800e1f4 ) 800e1a2: f44f 5200 mov.w r2, #8192 @ 0x2000 800e1a6: 61da str r2, [r3, #28] if (HAL_DMA_Init(&hdma_usart3_tx) != HAL_OK) 800e1a8: 4812 ldr r0, [pc, #72] @ (800e1f4 ) 800e1aa: f001 fe13 bl 800fdd4 800e1ae: 4603 mov r3, r0 800e1b0: 2b00 cmp r3, #0 800e1b2: d001 beq.n 800e1b8 Error_Handler(); 800e1b4: f7fc fd3c bl 800ac30 __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart3_tx); 800e1b8: 687b ldr r3, [r7, #4] 800e1ba: 4a0e ldr r2, [pc, #56] @ (800e1f4 ) 800e1bc: 639a str r2, [r3, #56] @ 0x38 800e1be: 4a0d ldr r2, [pc, #52] @ (800e1f4 ) 800e1c0: 687b ldr r3, [r7, #4] 800e1c2: 6253 str r3, [r2, #36] @ 0x24 HAL_NVIC_SetPriority(USART3_IRQn, 2, 0); 800e1c4: 2200 movs r2, #0 800e1c6: 2102 movs r1, #2 800e1c8: 2027 movs r0, #39 @ 0x27 800e1ca: f001 fdb0 bl 800fd2e HAL_NVIC_EnableIRQ(USART3_IRQn); 800e1ce: 2027 movs r0, #39 @ 0x27 800e1d0: f001 fdc9 bl 800fd66 } 800e1d4: bf00 nop 800e1d6: 3748 adds r7, #72 @ 0x48 800e1d8: 46bd mov sp, r7 800e1da: bd80 pop {r7, pc} 800e1dc: 40004800 .word 0x40004800 800e1e0: 40021000 .word 0x40021000 800e1e4: 40011000 .word 0x40011000 800e1e8: 40010000 .word 0x40010000 800e1ec: 2000140c .word 0x2000140c 800e1f0: 40020030 .word 0x40020030 800e1f4: 20001450 .word 0x20001450 800e1f8: 4002001c .word 0x4002001c 0800e1fc : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Call the clock system initialization function.*/ bl SystemInit 800e1fc: f7ff fb98 bl 800d930 /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata 800e200: 480b ldr r0, [pc, #44] @ (800e230 ) ldr r1, =_edata 800e202: 490c ldr r1, [pc, #48] @ (800e234 ) ldr r2, =_sidata 800e204: 4a0c ldr r2, [pc, #48] @ (800e238 ) movs r3, #0 800e206: 2300 movs r3, #0 b LoopCopyDataInit 800e208: e002 b.n 800e210 0800e20a : CopyDataInit: ldr r4, [r2, r3] 800e20a: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] 800e20c: 50c4 str r4, [r0, r3] adds r3, r3, #4 800e20e: 3304 adds r3, #4 0800e210 : LoopCopyDataInit: adds r4, r0, r3 800e210: 18c4 adds r4, r0, r3 cmp r4, r1 800e212: 428c cmp r4, r1 bcc CopyDataInit 800e214: d3f9 bcc.n 800e20a /* Zero fill the bss segment. */ ldr r2, =_sbss 800e216: 4a09 ldr r2, [pc, #36] @ (800e23c ) ldr r4, =_ebss 800e218: 4c09 ldr r4, [pc, #36] @ (800e240 ) movs r3, #0 800e21a: 2300 movs r3, #0 b LoopFillZerobss 800e21c: e001 b.n 800e222 0800e21e : FillZerobss: str r3, [r2] 800e21e: 6013 str r3, [r2, #0] adds r2, r2, #4 800e220: 3204 adds r2, #4 0800e222 : LoopFillZerobss: cmp r2, r4 800e222: 42a2 cmp r2, r4 bcc FillZerobss 800e224: d3fb bcc.n 800e21e /* Call static constructors */ bl __libc_init_array 800e226: f006 fd41 bl 8014cac <__libc_init_array> /* Call the application's entry point.*/ bl main 800e22a: f7fc fc17 bl 800aa5c
bx lr 800e22e: 4770 bx lr ldr r0, =_sdata 800e230: 20000000 .word 0x20000000 ldr r1, =_edata 800e234: 20000258 .word 0x20000258 ldr r2, =_sidata 800e238: 08017cec .word 0x08017cec ldr r2, =_sbss 800e23c: 20000258 .word 0x20000258 ldr r4, =_ebss 800e240: 200015e4 .word 0x200015e4 0800e244 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop 800e244: e7fe b.n 800e244 ... 0800e248 : * 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) { 800e248: b580 push {r7, lr} 800e24a: 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(); 800e24c: 4b08 ldr r3, [pc, #32] @ (800e270 ) 800e24e: 681b ldr r3, [r3, #0] 800e250: 4a07 ldr r2, [pc, #28] @ (800e270 ) 800e252: f043 0310 orr.w r3, r3, #16 800e256: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); 800e258: 2003 movs r0, #3 800e25a: f001 fd5d bl 800fd18 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); 800e25e: 200f movs r0, #15 800e260: f000 f808 bl 800e274 /* Init the low level hardware */ HAL_MspInit(); 800e264: f7ff f98a bl 800d57c /* Return function status */ return HAL_OK; 800e268: 2300 movs r3, #0 } 800e26a: 4618 mov r0, r3 800e26c: bd80 pop {r7, pc} 800e26e: bf00 nop 800e270: 40022000 .word 0x40022000 0800e274 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { 800e274: b580 push {r7, lr} 800e276: b082 sub sp, #8 800e278: af00 add r7, sp, #0 800e27a: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) 800e27c: 4b12 ldr r3, [pc, #72] @ (800e2c8 ) 800e27e: 681a ldr r2, [r3, #0] 800e280: 4b12 ldr r3, [pc, #72] @ (800e2cc ) 800e282: 781b ldrb r3, [r3, #0] 800e284: 4619 mov r1, r3 800e286: f44f 737a mov.w r3, #1000 @ 0x3e8 800e28a: fbb3 f3f1 udiv r3, r3, r1 800e28e: fbb2 f3f3 udiv r3, r2, r3 800e292: 4618 mov r0, r3 800e294: f001 fd75 bl 800fd82 800e298: 4603 mov r3, r0 800e29a: 2b00 cmp r3, #0 800e29c: d001 beq.n 800e2a2 { return HAL_ERROR; 800e29e: 2301 movs r3, #1 800e2a0: e00e b.n 800e2c0 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) 800e2a2: 687b ldr r3, [r7, #4] 800e2a4: 2b0f cmp r3, #15 800e2a6: d80a bhi.n 800e2be { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); 800e2a8: 2200 movs r2, #0 800e2aa: 6879 ldr r1, [r7, #4] 800e2ac: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 800e2b0: f001 fd3d bl 800fd2e uwTickPrio = TickPriority; 800e2b4: 4a06 ldr r2, [pc, #24] @ (800e2d0 ) 800e2b6: 687b ldr r3, [r7, #4] 800e2b8: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; 800e2ba: 2300 movs r3, #0 800e2bc: e000 b.n 800e2c0 return HAL_ERROR; 800e2be: 2301 movs r3, #1 } 800e2c0: 4618 mov r0, r3 800e2c2: 3708 adds r7, #8 800e2c4: 46bd mov sp, r7 800e2c6: bd80 pop {r7, pc} 800e2c8: 20000084 .word 0x20000084 800e2cc: 2000008c .word 0x2000008c 800e2d0: 20000088 .word 0x20000088 0800e2d4 : * @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) { 800e2d4: b480 push {r7} 800e2d6: af00 add r7, sp, #0 uwTick += uwTickFreq; 800e2d8: 4b05 ldr r3, [pc, #20] @ (800e2f0 ) 800e2da: 781b ldrb r3, [r3, #0] 800e2dc: 461a mov r2, r3 800e2de: 4b05 ldr r3, [pc, #20] @ (800e2f4 ) 800e2e0: 681b ldr r3, [r3, #0] 800e2e2: 4413 add r3, r2 800e2e4: 4a03 ldr r2, [pc, #12] @ (800e2f4 ) 800e2e6: 6013 str r3, [r2, #0] } 800e2e8: bf00 nop 800e2ea: 46bd mov sp, r7 800e2ec: bc80 pop {r7} 800e2ee: 4770 bx lr 800e2f0: 2000008c .word 0x2000008c 800e2f4: 20001494 .word 0x20001494 0800e2f8 : * @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) { 800e2f8: b480 push {r7} 800e2fa: af00 add r7, sp, #0 return uwTick; 800e2fc: 4b02 ldr r3, [pc, #8] @ (800e308 ) 800e2fe: 681b ldr r3, [r3, #0] } 800e300: 4618 mov r0, r3 800e302: 46bd mov sp, r7 800e304: bc80 pop {r7} 800e306: 4770 bx lr 800e308: 20001494 .word 0x20001494 0800e30c : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { 800e30c: b580 push {r7, lr} 800e30e: b084 sub sp, #16 800e310: af00 add r7, sp, #0 800e312: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 800e314: f7ff fff0 bl 800e2f8 800e318: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 800e31a: 687b ldr r3, [r7, #4] 800e31c: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) 800e31e: 68fb ldr r3, [r7, #12] 800e320: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 800e324: d005 beq.n 800e332 { wait += (uint32_t)(uwTickFreq); 800e326: 4b0a ldr r3, [pc, #40] @ (800e350 ) 800e328: 781b ldrb r3, [r3, #0] 800e32a: 461a mov r2, r3 800e32c: 68fb ldr r3, [r7, #12] 800e32e: 4413 add r3, r2 800e330: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) 800e332: bf00 nop 800e334: f7ff ffe0 bl 800e2f8 800e338: 4602 mov r2, r0 800e33a: 68bb ldr r3, [r7, #8] 800e33c: 1ad3 subs r3, r2, r3 800e33e: 68fa ldr r2, [r7, #12] 800e340: 429a cmp r2, r3 800e342: d8f7 bhi.n 800e334 { } } 800e344: bf00 nop 800e346: bf00 nop 800e348: 3710 adds r7, #16 800e34a: 46bd mov sp, r7 800e34c: bd80 pop {r7, pc} 800e34e: bf00 nop 800e350: 2000008c .word 0x2000008c 0800e354 : * of structure "ADC_InitTypeDef". * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { 800e354: b580 push {r7, lr} 800e356: b086 sub sp, #24 800e358: af00 add r7, sp, #0 800e35a: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e35c: 2300 movs r3, #0 800e35e: 75fb strb r3, [r7, #23] uint32_t tmp_cr1 = 0U; 800e360: 2300 movs r3, #0 800e362: 613b str r3, [r7, #16] uint32_t tmp_cr2 = 0U; 800e364: 2300 movs r3, #0 800e366: 60bb str r3, [r7, #8] uint32_t tmp_sqr1 = 0U; 800e368: 2300 movs r3, #0 800e36a: 60fb str r3, [r7, #12] /* Check ADC handle */ if(hadc == NULL) 800e36c: 687b ldr r3, [r7, #4] 800e36e: 2b00 cmp r3, #0 800e370: d101 bne.n 800e376 { return HAL_ERROR; 800e372: 2301 movs r3, #1 800e374: e0be b.n 800e4f4 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) 800e376: 687b ldr r3, [r7, #4] 800e378: 689b ldr r3, [r3, #8] 800e37a: 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) 800e37c: 687b ldr r3, [r7, #4] 800e37e: 6a9b ldr r3, [r3, #40] @ 0x28 800e380: 2b00 cmp r3, #0 800e382: d109 bne.n 800e398 { /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); 800e384: 687b ldr r3, [r7, #4] 800e386: 2200 movs r2, #0 800e388: 62da str r2, [r3, #44] @ 0x2c /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; 800e38a: 687b ldr r3, [r7, #4] 800e38c: 2200 movs r2, #0 800e38e: 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); 800e392: 6878 ldr r0, [r7, #4] 800e394: f7fb f986 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); 800e398: 6878 ldr r0, [r7, #4] 800e39a: f000 fbbd bl 800eb18 800e39e: 4603 mov r3, r0 800e3a0: 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) && 800e3a2: 687b ldr r3, [r7, #4] 800e3a4: 6a9b ldr r3, [r3, #40] @ 0x28 800e3a6: f003 0310 and.w r3, r3, #16 800e3aa: 2b00 cmp r3, #0 800e3ac: f040 8099 bne.w 800e4e2 800e3b0: 7dfb ldrb r3, [r7, #23] 800e3b2: 2b00 cmp r3, #0 800e3b4: f040 8095 bne.w 800e4e2 (tmp_hal_status == HAL_OK) ) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e3b8: 687b ldr r3, [r7, #4] 800e3ba: 6a9b ldr r3, [r3, #40] @ 0x28 800e3bc: f423 5388 bic.w r3, r3, #4352 @ 0x1100 800e3c0: f023 0302 bic.w r3, r3, #2 800e3c4: f043 0202 orr.w r2, r3, #2 800e3c8: 687b ldr r3, [r7, #4] 800e3ca: 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 | 800e3cc: 687b ldr r3, [r7, #4] 800e3ce: 685a ldr r2, [r3, #4] ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | 800e3d0: 687b ldr r3, [r7, #4] 800e3d2: 69db ldr r3, [r3, #28] tmp_cr2 |= (hadc->Init.DataAlign | 800e3d4: 431a orrs r2, r3 ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) ); 800e3d6: 687b ldr r3, [r7, #4] 800e3d8: 7b1b ldrb r3, [r3, #12] 800e3da: 005b lsls r3, r3, #1 ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | 800e3dc: 4313 orrs r3, r2 tmp_cr2 |= (hadc->Init.DataAlign | 800e3de: 68ba ldr r2, [r7, #8] 800e3e0: 4313 orrs r3, r2 800e3e2: 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)); 800e3e4: 687b ldr r3, [r7, #4] 800e3e6: 689b ldr r3, [r3, #8] 800e3e8: f5b3 7f80 cmp.w r3, #256 @ 0x100 800e3ec: d003 beq.n 800e3f6 800e3ee: 687b ldr r3, [r7, #4] 800e3f0: 689b ldr r3, [r3, #8] 800e3f2: 2b01 cmp r3, #1 800e3f4: d102 bne.n 800e3fc 800e3f6: f44f 7380 mov.w r3, #256 @ 0x100 800e3fa: e000 b.n 800e3fe 800e3fc: 2300 movs r3, #0 800e3fe: 693a ldr r2, [r7, #16] 800e400: 4313 orrs r3, r2 800e402: 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) 800e404: 687b ldr r3, [r7, #4] 800e406: 7d1b ldrb r3, [r3, #20] 800e408: 2b01 cmp r3, #1 800e40a: d119 bne.n 800e440 { if (hadc->Init.ContinuousConvMode == DISABLE) 800e40c: 687b ldr r3, [r7, #4] 800e40e: 7b1b ldrb r3, [r3, #12] 800e410: 2b00 cmp r3, #0 800e412: d109 bne.n 800e428 { /* 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 | 800e414: 687b ldr r3, [r7, #4] 800e416: 699b ldr r3, [r3, #24] 800e418: 3b01 subs r3, #1 800e41a: 035a lsls r2, r3, #13 800e41c: 693b ldr r3, [r7, #16] 800e41e: 4313 orrs r3, r2 800e420: f443 6300 orr.w r3, r3, #2048 @ 0x800 800e424: 613b str r3, [r7, #16] 800e426: e00b b.n 800e440 { /* 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); 800e428: 687b ldr r3, [r7, #4] 800e42a: 6a9b ldr r3, [r3, #40] @ 0x28 800e42c: f043 0220 orr.w r2, r3, #32 800e430: 687b ldr r3, [r7, #4] 800e432: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800e434: 687b ldr r3, [r7, #4] 800e436: 6adb ldr r3, [r3, #44] @ 0x2c 800e438: f043 0201 orr.w r2, r3, #1 800e43c: 687b ldr r3, [r7, #4] 800e43e: 62da str r2, [r3, #44] @ 0x2c } } /* Update ADC configuration register CR1 with previous settings */ MODIFY_REG(hadc->Instance->CR1, 800e440: 687b ldr r3, [r7, #4] 800e442: 681b ldr r3, [r3, #0] 800e444: 685b ldr r3, [r3, #4] 800e446: f423 4169 bic.w r1, r3, #59648 @ 0xe900 800e44a: 687b ldr r3, [r7, #4] 800e44c: 681b ldr r3, [r3, #0] 800e44e: 693a ldr r2, [r7, #16] 800e450: 430a orrs r2, r1 800e452: 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, 800e454: 687b ldr r3, [r7, #4] 800e456: 681b ldr r3, [r3, #0] 800e458: 689a ldr r2, [r3, #8] 800e45a: 4b28 ldr r3, [pc, #160] @ (800e4fc ) 800e45c: 4013 ands r3, r2 800e45e: 687a ldr r2, [r7, #4] 800e460: 6812 ldr r2, [r2, #0] 800e462: 68b9 ldr r1, [r7, #8] 800e464: 430b orrs r3, r1 800e466: 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) 800e468: 687b ldr r3, [r7, #4] 800e46a: 689b ldr r3, [r3, #8] 800e46c: f5b3 7f80 cmp.w r3, #256 @ 0x100 800e470: d003 beq.n 800e47a 800e472: 687b ldr r3, [r7, #4] 800e474: 689b ldr r3, [r3, #8] 800e476: 2b01 cmp r3, #1 800e478: d104 bne.n 800e484 { tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion); 800e47a: 687b ldr r3, [r7, #4] 800e47c: 691b ldr r3, [r3, #16] 800e47e: 3b01 subs r3, #1 800e480: 051b lsls r3, r3, #20 800e482: 60fb str r3, [r7, #12] } MODIFY_REG(hadc->Instance->SQR1, 800e484: 687b ldr r3, [r7, #4] 800e486: 681b ldr r3, [r3, #0] 800e488: 6adb ldr r3, [r3, #44] @ 0x2c 800e48a: f423 0170 bic.w r1, r3, #15728640 @ 0xf00000 800e48e: 687b ldr r3, [r7, #4] 800e490: 681b ldr r3, [r3, #0] 800e492: 68fa ldr r2, [r7, #12] 800e494: 430a orrs r2, r1 800e496: 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 | 800e498: 687b ldr r3, [r7, #4] 800e49a: 681b ldr r3, [r3, #0] 800e49c: 689a ldr r2, [r3, #8] 800e49e: 4b18 ldr r3, [pc, #96] @ (800e500 ) 800e4a0: 4013 ands r3, r2 800e4a2: 68ba ldr r2, [r7, #8] 800e4a4: 429a cmp r2, r3 800e4a6: d10b bne.n 800e4c0 ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL | ADC_CR2_TSVREFE )) == tmp_cr2) { /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); 800e4a8: 687b ldr r3, [r7, #4] 800e4aa: 2200 movs r2, #0 800e4ac: 62da str r2, [r3, #44] @ 0x2c /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, 800e4ae: 687b ldr r3, [r7, #4] 800e4b0: 6a9b ldr r3, [r3, #40] @ 0x28 800e4b2: f023 0303 bic.w r3, r3, #3 800e4b6: f043 0201 orr.w r2, r3, #1 800e4ba: 687b ldr r3, [r7, #4] 800e4bc: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800e4be: e018 b.n 800e4f2 HAL_ADC_STATE_READY); } else { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800e4c0: 687b ldr r3, [r7, #4] 800e4c2: 6a9b ldr r3, [r3, #40] @ 0x28 800e4c4: f023 0312 bic.w r3, r3, #18 800e4c8: f043 0210 orr.w r2, r3, #16 800e4cc: 687b ldr r3, [r7, #4] 800e4ce: 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); 800e4d0: 687b ldr r3, [r7, #4] 800e4d2: 6adb ldr r3, [r3, #44] @ 0x2c 800e4d4: f043 0201 orr.w r2, r3, #1 800e4d8: 687b ldr r3, [r7, #4] 800e4da: 62da str r2, [r3, #44] @ 0x2c tmp_hal_status = HAL_ERROR; 800e4dc: 2301 movs r3, #1 800e4de: 75fb strb r3, [r7, #23] if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | 800e4e0: e007 b.n 800e4f2 } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800e4e2: 687b ldr r3, [r7, #4] 800e4e4: 6a9b ldr r3, [r3, #40] @ 0x28 800e4e6: f043 0210 orr.w r2, r3, #16 800e4ea: 687b ldr r3, [r7, #4] 800e4ec: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; 800e4ee: 2301 movs r3, #1 800e4f0: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; 800e4f2: 7dfb ldrb r3, [r7, #23] } 800e4f4: 4618 mov r0, r3 800e4f6: 3718 adds r7, #24 800e4f8: 46bd mov sp, r7 800e4fa: bd80 pop {r7, pc} 800e4fc: ffe1f7fd .word 0xffe1f7fd 800e500: ff1f0efe .word 0xff1f0efe 0800e504 : * @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) { 800e504: b580 push {r7, lr} 800e506: b086 sub sp, #24 800e508: af00 add r7, sp, #0 800e50a: 60f8 str r0, [r7, #12] 800e50c: 60b9 str r1, [r7, #8] 800e50e: 607a str r2, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e510: 2300 movs r3, #0 800e512: 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) 800e514: 68fb ldr r3, [r7, #12] 800e516: 681b ldr r3, [r3, #0] 800e518: 4a64 ldr r2, [pc, #400] @ (800e6ac ) 800e51a: 4293 cmp r3, r2 800e51c: d004 beq.n 800e528 800e51e: 68fb ldr r3, [r7, #12] 800e520: 681b ldr r3, [r3, #0] 800e522: 4a63 ldr r2, [pc, #396] @ (800e6b0 ) 800e524: 4293 cmp r3, r2 800e526: d106 bne.n 800e536 800e528: 4b60 ldr r3, [pc, #384] @ (800e6ac ) 800e52a: 685b ldr r3, [r3, #4] 800e52c: f403 2370 and.w r3, r3, #983040 @ 0xf0000 800e530: 2b00 cmp r3, #0 800e532: f040 80b3 bne.w 800e69c { /* Process locked */ __HAL_LOCK(hadc); 800e536: 68fb ldr r3, [r7, #12] 800e538: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e53c: 2b01 cmp r3, #1 800e53e: d101 bne.n 800e544 800e540: 2302 movs r3, #2 800e542: e0ae b.n 800e6a2 800e544: 68fb ldr r3, [r7, #12] 800e546: 2201 movs r2, #1 800e548: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Enable the ADC peripheral */ tmp_hal_status = ADC_Enable(hadc); 800e54c: 68f8 ldr r0, [r7, #12] 800e54e: f000 fa89 bl 800ea64 800e552: 4603 mov r3, r0 800e554: 75fb strb r3, [r7, #23] /* Start conversion if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) 800e556: 7dfb ldrb r3, [r7, #23] 800e558: 2b00 cmp r3, #0 800e55a: f040 809a bne.w 800e692 { /* 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, 800e55e: 68fb ldr r3, [r7, #12] 800e560: 6a9b ldr r3, [r3, #40] @ 0x28 800e562: f423 6370 bic.w r3, r3, #3840 @ 0xf00 800e566: f023 0301 bic.w r3, r3, #1 800e56a: f443 7280 orr.w r2, r3, #256 @ 0x100 800e56e: 68fb ldr r3, [r7, #12] 800e570: 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)) 800e572: 68fb ldr r3, [r7, #12] 800e574: 681b ldr r3, [r3, #0] 800e576: 4a4e ldr r2, [pc, #312] @ (800e6b0 ) 800e578: 4293 cmp r3, r2 800e57a: d105 bne.n 800e588 800e57c: 4b4b ldr r3, [pc, #300] @ (800e6ac ) 800e57e: 685b ldr r3, [r3, #4] 800e580: f403 2370 and.w r3, r3, #983040 @ 0xf0000 800e584: 2b00 cmp r3, #0 800e586: d115 bne.n 800e5b4 { /* Set ADC state (ADC independent or master) */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 800e588: 68fb ldr r3, [r7, #12] 800e58a: 6a9b ldr r3, [r3, #40] @ 0x28 800e58c: f423 1280 bic.w r2, r3, #1048576 @ 0x100000 800e590: 68fb ldr r3, [r7, #12] 800e592: 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) 800e594: 68fb ldr r3, [r7, #12] 800e596: 681b ldr r3, [r3, #0] 800e598: 685b ldr r3, [r3, #4] 800e59a: f403 6380 and.w r3, r3, #1024 @ 0x400 800e59e: 2b00 cmp r3, #0 800e5a0: d026 beq.n 800e5f0 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 800e5a2: 68fb ldr r3, [r7, #12] 800e5a4: 6a9b ldr r3, [r3, #40] @ 0x28 800e5a6: f423 5340 bic.w r3, r3, #12288 @ 0x3000 800e5aa: f443 5280 orr.w r2, r3, #4096 @ 0x1000 800e5ae: 68fb ldr r3, [r7, #12] 800e5b0: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) 800e5b2: e01d b.n 800e5f0 } } else { /* Set ADC state (ADC slave) */ SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 800e5b4: 68fb ldr r3, [r7, #12] 800e5b6: 6a9b ldr r3, [r3, #40] @ 0x28 800e5b8: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 800e5bc: 68fb ldr r3, [r7, #12] 800e5be: 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)) 800e5c0: 68fb ldr r3, [r7, #12] 800e5c2: 681b ldr r3, [r3, #0] 800e5c4: 4a39 ldr r2, [pc, #228] @ (800e6ac ) 800e5c6: 4293 cmp r3, r2 800e5c8: d004 beq.n 800e5d4 800e5ca: 68fb ldr r3, [r7, #12] 800e5cc: 681b ldr r3, [r3, #0] 800e5ce: 4a38 ldr r2, [pc, #224] @ (800e6b0 ) 800e5d0: 4293 cmp r3, r2 800e5d2: d10d bne.n 800e5f0 800e5d4: 4b35 ldr r3, [pc, #212] @ (800e6ac ) 800e5d6: 685b ldr r3, [r3, #4] 800e5d8: f403 6380 and.w r3, r3, #1024 @ 0x400 800e5dc: 2b00 cmp r3, #0 800e5de: d007 beq.n 800e5f0 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 800e5e0: 68fb ldr r3, [r7, #12] 800e5e2: 6a9b ldr r3, [r3, #40] @ 0x28 800e5e4: f423 5340 bic.w r3, r3, #12288 @ 0x3000 800e5e8: f443 5280 orr.w r2, r3, #4096 @ 0x1000 800e5ec: 68fb ldr r3, [r7, #12] 800e5ee: 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)) 800e5f0: 68fb ldr r3, [r7, #12] 800e5f2: 6a9b ldr r3, [r3, #40] @ 0x28 800e5f4: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e5f8: 2b00 cmp r3, #0 800e5fa: d006 beq.n 800e60a { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 800e5fc: 68fb ldr r3, [r7, #12] 800e5fe: 6adb ldr r3, [r3, #44] @ 0x2c 800e600: f023 0206 bic.w r2, r3, #6 800e604: 68fb ldr r3, [r7, #12] 800e606: 62da str r2, [r3, #44] @ 0x2c 800e608: e002 b.n 800e610 } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); 800e60a: 68fb ldr r3, [r7, #12] 800e60c: 2200 movs r2, #0 800e60e: 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); 800e610: 68fb ldr r3, [r7, #12] 800e612: 2200 movs r2, #0 800e614: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Set the DMA transfer complete callback */ hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; 800e618: 68fb ldr r3, [r7, #12] 800e61a: 6a1b ldr r3, [r3, #32] 800e61c: 4a25 ldr r2, [pc, #148] @ (800e6b4 ) 800e61e: 629a str r2, [r3, #40] @ 0x28 /* Set the DMA half transfer complete callback */ hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; 800e620: 68fb ldr r3, [r7, #12] 800e622: 6a1b ldr r3, [r3, #32] 800e624: 4a24 ldr r2, [pc, #144] @ (800e6b8 ) 800e626: 62da str r2, [r3, #44] @ 0x2c /* Set the DMA error callback */ hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; 800e628: 68fb ldr r3, [r7, #12] 800e62a: 6a1b ldr r3, [r3, #32] 800e62c: 4a23 ldr r2, [pc, #140] @ (800e6bc ) 800e62e: 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); 800e630: 68fb ldr r3, [r7, #12] 800e632: 681b ldr r3, [r3, #0] 800e634: f06f 0202 mvn.w r2, #2 800e638: 601a str r2, [r3, #0] /* Enable ADC DMA mode */ SET_BIT(hadc->Instance->CR2, ADC_CR2_DMA); 800e63a: 68fb ldr r3, [r7, #12] 800e63c: 681b ldr r3, [r3, #0] 800e63e: 689a ldr r2, [r3, #8] 800e640: 68fb ldr r3, [r7, #12] 800e642: 681b ldr r3, [r3, #0] 800e644: f442 7280 orr.w r2, r2, #256 @ 0x100 800e648: 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); 800e64a: 68fb ldr r3, [r7, #12] 800e64c: 6a18 ldr r0, [r3, #32] 800e64e: 68fb ldr r3, [r7, #12] 800e650: 681b ldr r3, [r3, #0] 800e652: 334c adds r3, #76 @ 0x4c 800e654: 4619 mov r1, r3 800e656: 68ba ldr r2, [r7, #8] 800e658: 687b ldr r3, [r7, #4] 800e65a: f001 fc31 bl 800fec0 /* 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)) 800e65e: 68fb ldr r3, [r7, #12] 800e660: 681b ldr r3, [r3, #0] 800e662: 689b ldr r3, [r3, #8] 800e664: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e668: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e66c: d108 bne.n 800e680 { /* Start ADC conversion on regular group with SW start */ SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG)); 800e66e: 68fb ldr r3, [r7, #12] 800e670: 681b ldr r3, [r3, #0] 800e672: 689a ldr r2, [r3, #8] 800e674: 68fb ldr r3, [r7, #12] 800e676: 681b ldr r3, [r3, #0] 800e678: f442 02a0 orr.w r2, r2, #5242880 @ 0x500000 800e67c: 609a str r2, [r3, #8] if (tmp_hal_status == HAL_OK) 800e67e: e00f b.n 800e6a0 } else { /* Start ADC conversion on regular group with external trigger */ SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG); 800e680: 68fb ldr r3, [r7, #12] 800e682: 681b ldr r3, [r3, #0] 800e684: 689a ldr r2, [r3, #8] 800e686: 68fb ldr r3, [r7, #12] 800e688: 681b ldr r3, [r3, #0] 800e68a: f442 1280 orr.w r2, r2, #1048576 @ 0x100000 800e68e: 609a str r2, [r3, #8] if (tmp_hal_status == HAL_OK) 800e690: e006 b.n 800e6a0 } } else { /* Process unlocked */ __HAL_UNLOCK(hadc); 800e692: 68fb ldr r3, [r7, #12] 800e694: 2200 movs r2, #0 800e696: f883 2024 strb.w r2, [r3, #36] @ 0x24 if (tmp_hal_status == HAL_OK) 800e69a: e001 b.n 800e6a0 } } else { tmp_hal_status = HAL_ERROR; 800e69c: 2301 movs r3, #1 800e69e: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; 800e6a0: 7dfb ldrb r3, [r7, #23] } 800e6a2: 4618 mov r0, r3 800e6a4: 3718 adds r7, #24 800e6a6: 46bd mov sp, r7 800e6a8: bd80 pop {r7, pc} 800e6aa: bf00 nop 800e6ac: 40012400 .word 0x40012400 800e6b0: 40012800 .word 0x40012800 800e6b4: 0800eb9b .word 0x0800eb9b 800e6b8: 0800ec17 .word 0x0800ec17 800e6bc: 0800ec33 .word 0x0800ec33 0800e6c0 : * @brief Handles ADC interrupt request * @param hadc: ADC handle * @retval None */ void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc) { 800e6c0: b580 push {r7, lr} 800e6c2: b084 sub sp, #16 800e6c4: af00 add r7, sp, #0 800e6c6: 6078 str r0, [r7, #4] uint32_t tmp_sr = hadc->Instance->SR; 800e6c8: 687b ldr r3, [r7, #4] 800e6ca: 681b ldr r3, [r3, #0] 800e6cc: 681b ldr r3, [r3, #0] 800e6ce: 60fb str r3, [r7, #12] uint32_t tmp_cr1 = hadc->Instance->CR1; 800e6d0: 687b ldr r3, [r7, #4] 800e6d2: 681b ldr r3, [r3, #0] 800e6d4: 685b ldr r3, [r3, #4] 800e6d6: 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) 800e6d8: 68bb ldr r3, [r7, #8] 800e6da: f003 0320 and.w r3, r3, #32 800e6de: 2b00 cmp r3, #0 800e6e0: d03e beq.n 800e760 { if((tmp_sr & ADC_FLAG_EOC) == ADC_FLAG_EOC) 800e6e2: 68fb ldr r3, [r7, #12] 800e6e4: f003 0302 and.w r3, r3, #2 800e6e8: 2b00 cmp r3, #0 800e6ea: d039 beq.n 800e760 { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) 800e6ec: 687b ldr r3, [r7, #4] 800e6ee: 6a9b ldr r3, [r3, #40] @ 0x28 800e6f0: f003 0310 and.w r3, r3, #16 800e6f4: 2b00 cmp r3, #0 800e6f6: d105 bne.n 800e704 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 800e6f8: 687b ldr r3, [r7, #4] 800e6fa: 6a9b ldr r3, [r3, #40] @ 0x28 800e6fc: f443 7200 orr.w r2, r3, #512 @ 0x200 800e700: 687b ldr r3, [r7, #4] 800e702: 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) && 800e704: 687b ldr r3, [r7, #4] 800e706: 681b ldr r3, [r3, #0] 800e708: 689b ldr r3, [r3, #8] 800e70a: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800e70e: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e712: d11d bne.n 800e750 (hadc->Init.ContinuousConvMode == DISABLE) ) 800e714: 687b ldr r3, [r7, #4] 800e716: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e718: 2b00 cmp r3, #0 800e71a: d119 bne.n 800e750 { /* Disable ADC end of conversion interrupt on group regular */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); 800e71c: 687b ldr r3, [r7, #4] 800e71e: 681b ldr r3, [r3, #0] 800e720: 685a ldr r2, [r3, #4] 800e722: 687b ldr r3, [r7, #4] 800e724: 681b ldr r3, [r3, #0] 800e726: f022 0220 bic.w r2, r2, #32 800e72a: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 800e72c: 687b ldr r3, [r7, #4] 800e72e: 6a9b ldr r3, [r3, #40] @ 0x28 800e730: f423 7280 bic.w r2, r3, #256 @ 0x100 800e734: 687b ldr r3, [r7, #4] 800e736: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800e738: 687b ldr r3, [r7, #4] 800e73a: 6a9b ldr r3, [r3, #40] @ 0x28 800e73c: f403 5380 and.w r3, r3, #4096 @ 0x1000 800e740: 2b00 cmp r3, #0 800e742: d105 bne.n 800e750 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e744: 687b ldr r3, [r7, #4] 800e746: 6a9b ldr r3, [r3, #40] @ 0x28 800e748: f043 0201 orr.w r2, r3, #1 800e74c: 687b ldr r3, [r7, #4] 800e74e: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); 800e750: 6878 ldr r0, [r7, #4] 800e752: f7fa fefb bl 800954c #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); 800e756: 687b ldr r3, [r7, #4] 800e758: 681b ldr r3, [r3, #0] 800e75a: f06f 0212 mvn.w r2, #18 800e75e: 601a str r2, [r3, #0] } } /* ========== Check End of Conversion flag for injected group ========== */ if((tmp_cr1 & ADC_IT_JEOC) == ADC_IT_JEOC) 800e760: 68bb ldr r3, [r7, #8] 800e762: f003 0380 and.w r3, r3, #128 @ 0x80 800e766: 2b00 cmp r3, #0 800e768: d04d beq.n 800e806 { if((tmp_sr & ADC_FLAG_JEOC) == ADC_FLAG_JEOC) 800e76a: 68fb ldr r3, [r7, #12] 800e76c: f003 0304 and.w r3, r3, #4 800e770: 2b00 cmp r3, #0 800e772: d048 beq.n 800e806 { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) 800e774: 687b ldr r3, [r7, #4] 800e776: 6a9b ldr r3, [r3, #40] @ 0x28 800e778: f003 0310 and.w r3, r3, #16 800e77c: 2b00 cmp r3, #0 800e77e: d105 bne.n 800e78c { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); 800e780: 687b ldr r3, [r7, #4] 800e782: 6a9b ldr r3, [r3, #40] @ 0x28 800e784: f443 5200 orr.w r2, r3, #8192 @ 0x2000 800e788: 687b ldr r3, [r7, #4] 800e78a: 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) || 800e78c: 687b ldr r3, [r7, #4] 800e78e: 681b ldr r3, [r3, #0] 800e790: 689b ldr r3, [r3, #8] 800e792: f403 43e0 and.w r3, r3, #28672 @ 0x7000 800e796: f5b3 4fe0 cmp.w r3, #28672 @ 0x7000 800e79a: d012 beq.n 800e7c2 (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && 800e79c: 687b ldr r3, [r7, #4] 800e79e: 681b ldr r3, [r3, #0] 800e7a0: 685b ldr r3, [r3, #4] 800e7a2: f403 6380 and.w r3, r3, #1024 @ 0x400 if(ADC_IS_SOFTWARE_START_INJECTED(hadc) || 800e7a6: 2b00 cmp r3, #0 800e7a8: d125 bne.n 800e7f6 (ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e7aa: 687b ldr r3, [r7, #4] 800e7ac: 681b ldr r3, [r3, #0] 800e7ae: 689b ldr r3, [r3, #8] 800e7b0: f403 2360 and.w r3, r3, #917504 @ 0xe0000 (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && 800e7b4: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800e7b8: d11d bne.n 800e7f6 (hadc->Init.ContinuousConvMode == DISABLE) ) ) ) 800e7ba: 687b ldr r3, [r7, #4] 800e7bc: 7b1b ldrb r3, [r3, #12] (ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800e7be: 2b00 cmp r3, #0 800e7c0: d119 bne.n 800e7f6 { /* Disable ADC end of conversion interrupt on group injected */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 800e7c2: 687b ldr r3, [r7, #4] 800e7c4: 681b ldr r3, [r3, #0] 800e7c6: 685a ldr r2, [r3, #4] 800e7c8: 687b ldr r3, [r7, #4] 800e7ca: 681b ldr r3, [r3, #0] 800e7cc: f022 0280 bic.w r2, r2, #128 @ 0x80 800e7d0: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); 800e7d2: 687b ldr r3, [r7, #4] 800e7d4: 6a9b ldr r3, [r3, #40] @ 0x28 800e7d6: f423 5280 bic.w r2, r3, #4096 @ 0x1000 800e7da: 687b ldr r3, [r7, #4] 800e7dc: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) 800e7de: 687b ldr r3, [r7, #4] 800e7e0: 6a9b ldr r3, [r3, #40] @ 0x28 800e7e2: f403 7380 and.w r3, r3, #256 @ 0x100 800e7e6: 2b00 cmp r3, #0 800e7e8: d105 bne.n 800e7f6 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800e7ea: 687b ldr r3, [r7, #4] 800e7ec: 6a9b ldr r3, [r3, #40] @ 0x28 800e7ee: f043 0201 orr.w r2, r3, #1 800e7f2: 687b ldr r3, [r7, #4] 800e7f4: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->InjectedConvCpltCallback(hadc); #else HAL_ADCEx_InjectedConvCpltCallback(hadc); 800e7f6: 6878 ldr r0, [r7, #4] 800e7f8: f000 fae4 bl 800edc4 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear injected group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC)); 800e7fc: 687b ldr r3, [r7, #4] 800e7fe: 681b ldr r3, [r3, #0] 800e800: f06f 020c mvn.w r2, #12 800e804: 601a str r2, [r3, #0] } } /* ========== Check Analog watchdog flags ========== */ if((tmp_cr1 & ADC_IT_AWD) == ADC_IT_AWD) 800e806: 68bb ldr r3, [r7, #8] 800e808: f003 0340 and.w r3, r3, #64 @ 0x40 800e80c: 2b00 cmp r3, #0 800e80e: d012 beq.n 800e836 { if((tmp_sr & ADC_FLAG_AWD) == ADC_FLAG_AWD) 800e810: 68fb ldr r3, [r7, #12] 800e812: f003 0301 and.w r3, r3, #1 800e816: 2b00 cmp r3, #0 800e818: d00d beq.n 800e836 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 800e81a: 687b ldr r3, [r7, #4] 800e81c: 6a9b ldr r3, [r3, #40] @ 0x28 800e81e: f443 3280 orr.w r2, r3, #65536 @ 0x10000 800e822: 687b ldr r3, [r7, #4] 800e824: 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); 800e826: 6878 ldr r0, [r7, #4] 800e828: f000 f812 bl 800e850 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the ADC analog watchdog flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); 800e82c: 687b ldr r3, [r7, #4] 800e82e: 681b ldr r3, [r3, #0] 800e830: f06f 0201 mvn.w r2, #1 800e834: 601a str r2, [r3, #0] } } } 800e836: bf00 nop 800e838: 3710 adds r7, #16 800e83a: 46bd mov sp, r7 800e83c: bd80 pop {r7, pc} 0800e83e : * @brief Conversion DMA half-transfer callback in non blocking mode * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc) { 800e83e: b480 push {r7} 800e840: b083 sub sp, #12 800e842: af00 add r7, sp, #0 800e844: 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. */ } 800e846: bf00 nop 800e848: 370c adds r7, #12 800e84a: 46bd mov sp, r7 800e84c: bc80 pop {r7} 800e84e: 4770 bx lr 0800e850 : * @brief Analog watchdog callback in non blocking mode. * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc) { 800e850: b480 push {r7} 800e852: b083 sub sp, #12 800e854: af00 add r7, sp, #0 800e856: 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. */ } 800e858: bf00 nop 800e85a: 370c adds r7, #12 800e85c: 46bd mov sp, r7 800e85e: bc80 pop {r7} 800e860: 4770 bx lr 0800e862 : * (ADC conversion with interruption or transfer by DMA) * @param hadc: ADC handle * @retval None */ __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) { 800e862: b480 push {r7} 800e864: b083 sub sp, #12 800e866: af00 add r7, sp, #0 800e868: 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. */ } 800e86a: bf00 nop 800e86c: 370c adds r7, #12 800e86e: 46bd mov sp, r7 800e870: bc80 pop {r7} 800e872: 4770 bx lr 0800e874 : * @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) { 800e874: b480 push {r7} 800e876: b085 sub sp, #20 800e878: af00 add r7, sp, #0 800e87a: 6078 str r0, [r7, #4] 800e87c: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800e87e: 2300 movs r3, #0 800e880: 73fb strb r3, [r7, #15] __IO uint32_t wait_loop_index = 0U; 800e882: 2300 movs r3, #0 800e884: 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); 800e886: 687b ldr r3, [r7, #4] 800e888: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800e88c: 2b01 cmp r3, #1 800e88e: d101 bne.n 800e894 800e890: 2302 movs r3, #2 800e892: e0dc b.n 800ea4e 800e894: 687b ldr r3, [r7, #4] 800e896: 2201 movs r2, #1 800e898: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Regular sequence configuration */ /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) 800e89c: 683b ldr r3, [r7, #0] 800e89e: 685b ldr r3, [r3, #4] 800e8a0: 2b06 cmp r3, #6 800e8a2: d81c bhi.n 800e8de { MODIFY_REG(hadc->Instance->SQR3 , 800e8a4: 687b ldr r3, [r7, #4] 800e8a6: 681b ldr r3, [r3, #0] 800e8a8: 6b59 ldr r1, [r3, #52] @ 0x34 800e8aa: 683b ldr r3, [r7, #0] 800e8ac: 685a ldr r2, [r3, #4] 800e8ae: 4613 mov r3, r2 800e8b0: 009b lsls r3, r3, #2 800e8b2: 4413 add r3, r2 800e8b4: 3b05 subs r3, #5 800e8b6: 221f movs r2, #31 800e8b8: fa02 f303 lsl.w r3, r2, r3 800e8bc: 43db mvns r3, r3 800e8be: 4019 ands r1, r3 800e8c0: 683b ldr r3, [r7, #0] 800e8c2: 6818 ldr r0, [r3, #0] 800e8c4: 683b ldr r3, [r7, #0] 800e8c6: 685a ldr r2, [r3, #4] 800e8c8: 4613 mov r3, r2 800e8ca: 009b lsls r3, r3, #2 800e8cc: 4413 add r3, r2 800e8ce: 3b05 subs r3, #5 800e8d0: fa00 f203 lsl.w r2, r0, r3 800e8d4: 687b ldr r3, [r7, #4] 800e8d6: 681b ldr r3, [r3, #0] 800e8d8: 430a orrs r2, r1 800e8da: 635a str r2, [r3, #52] @ 0x34 800e8dc: e03c b.n 800e958 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) 800e8de: 683b ldr r3, [r7, #0] 800e8e0: 685b ldr r3, [r3, #4] 800e8e2: 2b0c cmp r3, #12 800e8e4: d81c bhi.n 800e920 { MODIFY_REG(hadc->Instance->SQR2 , 800e8e6: 687b ldr r3, [r7, #4] 800e8e8: 681b ldr r3, [r3, #0] 800e8ea: 6b19 ldr r1, [r3, #48] @ 0x30 800e8ec: 683b ldr r3, [r7, #0] 800e8ee: 685a ldr r2, [r3, #4] 800e8f0: 4613 mov r3, r2 800e8f2: 009b lsls r3, r3, #2 800e8f4: 4413 add r3, r2 800e8f6: 3b23 subs r3, #35 @ 0x23 800e8f8: 221f movs r2, #31 800e8fa: fa02 f303 lsl.w r3, r2, r3 800e8fe: 43db mvns r3, r3 800e900: 4019 ands r1, r3 800e902: 683b ldr r3, [r7, #0] 800e904: 6818 ldr r0, [r3, #0] 800e906: 683b ldr r3, [r7, #0] 800e908: 685a ldr r2, [r3, #4] 800e90a: 4613 mov r3, r2 800e90c: 009b lsls r3, r3, #2 800e90e: 4413 add r3, r2 800e910: 3b23 subs r3, #35 @ 0x23 800e912: fa00 f203 lsl.w r2, r0, r3 800e916: 687b ldr r3, [r7, #4] 800e918: 681b ldr r3, [r3, #0] 800e91a: 430a orrs r2, r1 800e91c: 631a str r2, [r3, #48] @ 0x30 800e91e: e01b b.n 800e958 ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 13 to 16 */ else { MODIFY_REG(hadc->Instance->SQR1 , 800e920: 687b ldr r3, [r7, #4] 800e922: 681b ldr r3, [r3, #0] 800e924: 6ad9 ldr r1, [r3, #44] @ 0x2c 800e926: 683b ldr r3, [r7, #0] 800e928: 685a ldr r2, [r3, #4] 800e92a: 4613 mov r3, r2 800e92c: 009b lsls r3, r3, #2 800e92e: 4413 add r3, r2 800e930: 3b41 subs r3, #65 @ 0x41 800e932: 221f movs r2, #31 800e934: fa02 f303 lsl.w r3, r2, r3 800e938: 43db mvns r3, r3 800e93a: 4019 ands r1, r3 800e93c: 683b ldr r3, [r7, #0] 800e93e: 6818 ldr r0, [r3, #0] 800e940: 683b ldr r3, [r7, #0] 800e942: 685a ldr r2, [r3, #4] 800e944: 4613 mov r3, r2 800e946: 009b lsls r3, r3, #2 800e948: 4413 add r3, r2 800e94a: 3b41 subs r3, #65 @ 0x41 800e94c: fa00 f203 lsl.w r2, r0, r3 800e950: 687b ldr r3, [r7, #4] 800e952: 681b ldr r3, [r3, #0] 800e954: 430a orrs r2, r1 800e956: 62da str r2, [r3, #44] @ 0x2c } /* Channel sampling time configuration */ /* For channels 10 to 17 */ if (sConfig->Channel >= ADC_CHANNEL_10) 800e958: 683b ldr r3, [r7, #0] 800e95a: 681b ldr r3, [r3, #0] 800e95c: 2b09 cmp r3, #9 800e95e: d91c bls.n 800e99a { MODIFY_REG(hadc->Instance->SMPR1 , 800e960: 687b ldr r3, [r7, #4] 800e962: 681b ldr r3, [r3, #0] 800e964: 68d9 ldr r1, [r3, #12] 800e966: 683b ldr r3, [r7, #0] 800e968: 681a ldr r2, [r3, #0] 800e96a: 4613 mov r3, r2 800e96c: 005b lsls r3, r3, #1 800e96e: 4413 add r3, r2 800e970: 3b1e subs r3, #30 800e972: 2207 movs r2, #7 800e974: fa02 f303 lsl.w r3, r2, r3 800e978: 43db mvns r3, r3 800e97a: 4019 ands r1, r3 800e97c: 683b ldr r3, [r7, #0] 800e97e: 6898 ldr r0, [r3, #8] 800e980: 683b ldr r3, [r7, #0] 800e982: 681a ldr r2, [r3, #0] 800e984: 4613 mov r3, r2 800e986: 005b lsls r3, r3, #1 800e988: 4413 add r3, r2 800e98a: 3b1e subs r3, #30 800e98c: fa00 f203 lsl.w r2, r0, r3 800e990: 687b ldr r3, [r7, #4] 800e992: 681b ldr r3, [r3, #0] 800e994: 430a orrs r2, r1 800e996: 60da str r2, [r3, #12] 800e998: e019 b.n 800e9ce ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) , ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) ); } else /* For channels 0 to 9 */ { MODIFY_REG(hadc->Instance->SMPR2 , 800e99a: 687b ldr r3, [r7, #4] 800e99c: 681b ldr r3, [r3, #0] 800e99e: 6919 ldr r1, [r3, #16] 800e9a0: 683b ldr r3, [r7, #0] 800e9a2: 681a ldr r2, [r3, #0] 800e9a4: 4613 mov r3, r2 800e9a6: 005b lsls r3, r3, #1 800e9a8: 4413 add r3, r2 800e9aa: 2207 movs r2, #7 800e9ac: fa02 f303 lsl.w r3, r2, r3 800e9b0: 43db mvns r3, r3 800e9b2: 4019 ands r1, r3 800e9b4: 683b ldr r3, [r7, #0] 800e9b6: 6898 ldr r0, [r3, #8] 800e9b8: 683b ldr r3, [r7, #0] 800e9ba: 681a ldr r2, [r3, #0] 800e9bc: 4613 mov r3, r2 800e9be: 005b lsls r3, r3, #1 800e9c0: 4413 add r3, r2 800e9c2: fa00 f203 lsl.w r2, r0, r3 800e9c6: 687b ldr r3, [r7, #4] 800e9c8: 681b ldr r3, [r3, #0] 800e9ca: 430a orrs r2, r1 800e9cc: 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) || 800e9ce: 683b ldr r3, [r7, #0] 800e9d0: 681b ldr r3, [r3, #0] 800e9d2: 2b10 cmp r3, #16 800e9d4: d003 beq.n 800e9de (sConfig->Channel == ADC_CHANNEL_VREFINT) ) 800e9d6: 683b ldr r3, [r7, #0] 800e9d8: 681b ldr r3, [r3, #0] if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || 800e9da: 2b11 cmp r3, #17 800e9dc: d132 bne.n 800ea44 { /* 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) 800e9de: 687b ldr r3, [r7, #4] 800e9e0: 681b ldr r3, [r3, #0] 800e9e2: 4a1d ldr r2, [pc, #116] @ (800ea58 ) 800e9e4: 4293 cmp r3, r2 800e9e6: d125 bne.n 800ea34 { if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET) 800e9e8: 687b ldr r3, [r7, #4] 800e9ea: 681b ldr r3, [r3, #0] 800e9ec: 689b ldr r3, [r3, #8] 800e9ee: f403 0300 and.w r3, r3, #8388608 @ 0x800000 800e9f2: 2b00 cmp r3, #0 800e9f4: d126 bne.n 800ea44 { SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE); 800e9f6: 687b ldr r3, [r7, #4] 800e9f8: 681b ldr r3, [r3, #0] 800e9fa: 689a ldr r2, [r3, #8] 800e9fc: 687b ldr r3, [r7, #4] 800e9fe: 681b ldr r3, [r3, #0] 800ea00: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 800ea04: 609a str r2, [r3, #8] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) 800ea06: 683b ldr r3, [r7, #0] 800ea08: 681b ldr r3, [r3, #0] 800ea0a: 2b10 cmp r3, #16 800ea0c: d11a bne.n 800ea44 { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); 800ea0e: 4b13 ldr r3, [pc, #76] @ (800ea5c ) 800ea10: 681b ldr r3, [r3, #0] 800ea12: 4a13 ldr r2, [pc, #76] @ (800ea60 ) 800ea14: fba2 2303 umull r2, r3, r2, r3 800ea18: 0c9a lsrs r2, r3, #18 800ea1a: 4613 mov r3, r2 800ea1c: 009b lsls r3, r3, #2 800ea1e: 4413 add r3, r2 800ea20: 005b lsls r3, r3, #1 800ea22: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800ea24: e002 b.n 800ea2c { wait_loop_index--; 800ea26: 68bb ldr r3, [r7, #8] 800ea28: 3b01 subs r3, #1 800ea2a: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800ea2c: 68bb ldr r3, [r7, #8] 800ea2e: 2b00 cmp r3, #0 800ea30: d1f9 bne.n 800ea26 800ea32: e007 b.n 800ea44 } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 800ea34: 687b ldr r3, [r7, #4] 800ea36: 6a9b ldr r3, [r3, #40] @ 0x28 800ea38: f043 0220 orr.w r2, r3, #32 800ea3c: 687b ldr r3, [r7, #4] 800ea3e: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; 800ea40: 2301 movs r3, #1 800ea42: 73fb strb r3, [r7, #15] } } /* Process unlocked */ __HAL_UNLOCK(hadc); 800ea44: 687b ldr r3, [r7, #4] 800ea46: 2200 movs r2, #0 800ea48: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; 800ea4c: 7bfb ldrb r3, [r7, #15] } 800ea4e: 4618 mov r0, r3 800ea50: 3714 adds r7, #20 800ea52: 46bd mov sp, r7 800ea54: bc80 pop {r7} 800ea56: 4770 bx lr 800ea58: 40012400 .word 0x40012400 800ea5c: 20000084 .word 0x20000084 800ea60: 431bde83 .word 0x431bde83 0800ea64 : * 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) { 800ea64: b580 push {r7, lr} 800ea66: b084 sub sp, #16 800ea68: af00 add r7, sp, #0 800ea6a: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800ea6c: 2300 movs r3, #0 800ea6e: 60fb str r3, [r7, #12] __IO uint32_t wait_loop_index = 0U; 800ea70: 2300 movs r3, #0 800ea72: 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) 800ea74: 687b ldr r3, [r7, #4] 800ea76: 681b ldr r3, [r3, #0] 800ea78: 689b ldr r3, [r3, #8] 800ea7a: f003 0301 and.w r3, r3, #1 800ea7e: 2b01 cmp r3, #1 800ea80: d040 beq.n 800eb04 { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); 800ea82: 687b ldr r3, [r7, #4] 800ea84: 681b ldr r3, [r3, #0] 800ea86: 689a ldr r2, [r3, #8] 800ea88: 687b ldr r3, [r7, #4] 800ea8a: 681b ldr r3, [r3, #0] 800ea8c: f042 0201 orr.w r2, r2, #1 800ea90: 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)); 800ea92: 4b1f ldr r3, [pc, #124] @ (800eb10 ) 800ea94: 681b ldr r3, [r3, #0] 800ea96: 4a1f ldr r2, [pc, #124] @ (800eb14 ) 800ea98: fba2 2303 umull r2, r3, r2, r3 800ea9c: 0c9b lsrs r3, r3, #18 800ea9e: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800eaa0: e002 b.n 800eaa8 { wait_loop_index--; 800eaa2: 68bb ldr r3, [r7, #8] 800eaa4: 3b01 subs r3, #1 800eaa6: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) 800eaa8: 68bb ldr r3, [r7, #8] 800eaaa: 2b00 cmp r3, #0 800eaac: d1f9 bne.n 800eaa2 } /* Get tick count */ tickstart = HAL_GetTick(); 800eaae: f7ff fc23 bl 800e2f8 800eab2: 60f8 str r0, [r7, #12] /* Wait for ADC effectively enabled */ while(ADC_IS_ENABLE(hadc) == RESET) 800eab4: e01f b.n 800eaf6 { if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) 800eab6: f7ff fc1f bl 800e2f8 800eaba: 4602 mov r2, r0 800eabc: 68fb ldr r3, [r7, #12] 800eabe: 1ad3 subs r3, r2, r3 800eac0: 2b02 cmp r3, #2 800eac2: d918 bls.n 800eaf6 { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) == RESET) 800eac4: 687b ldr r3, [r7, #4] 800eac6: 681b ldr r3, [r3, #0] 800eac8: 689b ldr r3, [r3, #8] 800eaca: f003 0301 and.w r3, r3, #1 800eace: 2b01 cmp r3, #1 800ead0: d011 beq.n 800eaf6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800ead2: 687b ldr r3, [r7, #4] 800ead4: 6a9b ldr r3, [r3, #40] @ 0x28 800ead6: f043 0210 orr.w r2, r3, #16 800eada: 687b ldr r3, [r7, #4] 800eadc: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800eade: 687b ldr r3, [r7, #4] 800eae0: 6adb ldr r3, [r3, #44] @ 0x2c 800eae2: f043 0201 orr.w r2, r3, #1 800eae6: 687b ldr r3, [r7, #4] 800eae8: 62da str r2, [r3, #44] @ 0x2c /* Process unlocked */ __HAL_UNLOCK(hadc); 800eaea: 687b ldr r3, [r7, #4] 800eaec: 2200 movs r2, #0 800eaee: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800eaf2: 2301 movs r3, #1 800eaf4: e007 b.n 800eb06 while(ADC_IS_ENABLE(hadc) == RESET) 800eaf6: 687b ldr r3, [r7, #4] 800eaf8: 681b ldr r3, [r3, #0] 800eafa: 689b ldr r3, [r3, #8] 800eafc: f003 0301 and.w r3, r3, #1 800eb00: 2b01 cmp r3, #1 800eb02: d1d8 bne.n 800eab6 } } } /* Return HAL status */ return HAL_OK; 800eb04: 2300 movs r3, #0 } 800eb06: 4618 mov r0, r3 800eb08: 3710 adds r7, #16 800eb0a: 46bd mov sp, r7 800eb0c: bd80 pop {r7, pc} 800eb0e: bf00 nop 800eb10: 20000084 .word 0x20000084 800eb14: 431bde83 .word 0x431bde83 0800eb18 : * stopped to disable the ADC. * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc) { 800eb18: b580 push {r7, lr} 800eb1a: b084 sub sp, #16 800eb1c: af00 add r7, sp, #0 800eb1e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800eb20: 2300 movs r3, #0 800eb22: 60fb str r3, [r7, #12] /* Verification if ADC is not already disabled */ if (ADC_IS_ENABLE(hadc) != RESET) 800eb24: 687b ldr r3, [r7, #4] 800eb26: 681b ldr r3, [r3, #0] 800eb28: 689b ldr r3, [r3, #8] 800eb2a: f003 0301 and.w r3, r3, #1 800eb2e: 2b01 cmp r3, #1 800eb30: d12e bne.n 800eb90 { /* Disable the ADC peripheral */ __HAL_ADC_DISABLE(hadc); 800eb32: 687b ldr r3, [r7, #4] 800eb34: 681b ldr r3, [r3, #0] 800eb36: 689a ldr r2, [r3, #8] 800eb38: 687b ldr r3, [r7, #4] 800eb3a: 681b ldr r3, [r3, #0] 800eb3c: f022 0201 bic.w r2, r2, #1 800eb40: 609a str r2, [r3, #8] /* Get tick count */ tickstart = HAL_GetTick(); 800eb42: f7ff fbd9 bl 800e2f8 800eb46: 60f8 str r0, [r7, #12] /* Wait for ADC effectively disabled */ while(ADC_IS_ENABLE(hadc) != RESET) 800eb48: e01b b.n 800eb82 { if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) 800eb4a: f7ff fbd5 bl 800e2f8 800eb4e: 4602 mov r2, r0 800eb50: 68fb ldr r3, [r7, #12] 800eb52: 1ad3 subs r3, r2, r3 800eb54: 2b02 cmp r3, #2 800eb56: d914 bls.n 800eb82 { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) != RESET) 800eb58: 687b ldr r3, [r7, #4] 800eb5a: 681b ldr r3, [r3, #0] 800eb5c: 689b ldr r3, [r3, #8] 800eb5e: f003 0301 and.w r3, r3, #1 800eb62: 2b01 cmp r3, #1 800eb64: d10d bne.n 800eb82 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 800eb66: 687b ldr r3, [r7, #4] 800eb68: 6a9b ldr r3, [r3, #40] @ 0x28 800eb6a: f043 0210 orr.w r2, r3, #16 800eb6e: 687b ldr r3, [r7, #4] 800eb70: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 800eb72: 687b ldr r3, [r7, #4] 800eb74: 6adb ldr r3, [r3, #44] @ 0x2c 800eb76: f043 0201 orr.w r2, r3, #1 800eb7a: 687b ldr r3, [r7, #4] 800eb7c: 62da str r2, [r3, #44] @ 0x2c return HAL_ERROR; 800eb7e: 2301 movs r3, #1 800eb80: e007 b.n 800eb92 while(ADC_IS_ENABLE(hadc) != RESET) 800eb82: 687b ldr r3, [r7, #4] 800eb84: 681b ldr r3, [r3, #0] 800eb86: 689b ldr r3, [r3, #8] 800eb88: f003 0301 and.w r3, r3, #1 800eb8c: 2b01 cmp r3, #1 800eb8e: d0dc beq.n 800eb4a } } } /* Return HAL status */ return HAL_OK; 800eb90: 2300 movs r3, #0 } 800eb92: 4618 mov r0, r3 800eb94: 3710 adds r7, #16 800eb96: 46bd mov sp, r7 800eb98: bd80 pop {r7, pc} 0800eb9a : * @brief DMA transfer complete callback. * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) { 800eb9a: b580 push {r7, lr} 800eb9c: b084 sub sp, #16 800eb9e: af00 add r7, sp, #0 800eba0: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800eba2: 687b ldr r3, [r7, #4] 800eba4: 6a5b ldr r3, [r3, #36] @ 0x24 800eba6: 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)) 800eba8: 68fb ldr r3, [r7, #12] 800ebaa: 6a9b ldr r3, [r3, #40] @ 0x28 800ebac: f003 0350 and.w r3, r3, #80 @ 0x50 800ebb0: 2b00 cmp r3, #0 800ebb2: d127 bne.n 800ec04 { /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 800ebb4: 68fb ldr r3, [r7, #12] 800ebb6: 6a9b ldr r3, [r3, #40] @ 0x28 800ebb8: f443 7200 orr.w r2, r3, #512 @ 0x200 800ebbc: 68fb ldr r3, [r7, #12] 800ebbe: 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) && 800ebc0: 68fb ldr r3, [r7, #12] 800ebc2: 681b ldr r3, [r3, #0] 800ebc4: 689b ldr r3, [r3, #8] 800ebc6: f403 2360 and.w r3, r3, #917504 @ 0xe0000 800ebca: f5b3 2f60 cmp.w r3, #917504 @ 0xe0000 800ebce: d115 bne.n 800ebfc (hadc->Init.ContinuousConvMode == DISABLE) ) 800ebd0: 68fb ldr r3, [r7, #12] 800ebd2: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && 800ebd4: 2b00 cmp r3, #0 800ebd6: d111 bne.n 800ebfc { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 800ebd8: 68fb ldr r3, [r7, #12] 800ebda: 6a9b ldr r3, [r3, #40] @ 0x28 800ebdc: f423 7280 bic.w r2, r3, #256 @ 0x100 800ebe0: 68fb ldr r3, [r7, #12] 800ebe2: 629a str r2, [r3, #40] @ 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 800ebe4: 68fb ldr r3, [r7, #12] 800ebe6: 6a9b ldr r3, [r3, #40] @ 0x28 800ebe8: f403 5380 and.w r3, r3, #4096 @ 0x1000 800ebec: 2b00 cmp r3, #0 800ebee: d105 bne.n 800ebfc { SET_BIT(hadc->State, HAL_ADC_STATE_READY); 800ebf0: 68fb ldr r3, [r7, #12] 800ebf2: 6a9b ldr r3, [r3, #40] @ 0x28 800ebf4: f043 0201 orr.w r2, r3, #1 800ebf8: 68fb ldr r3, [r7, #12] 800ebfa: 629a str r2, [r3, #40] @ 0x28 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); 800ebfc: 68f8 ldr r0, [r7, #12] 800ebfe: f7fa fca5 bl 800954c else { /* Call DMA error callback */ hadc->DMA_Handle->XferErrorCallback(hdma); } } 800ec02: e004 b.n 800ec0e hadc->DMA_Handle->XferErrorCallback(hdma); 800ec04: 68fb ldr r3, [r7, #12] 800ec06: 6a1b ldr r3, [r3, #32] 800ec08: 6b1b ldr r3, [r3, #48] @ 0x30 800ec0a: 6878 ldr r0, [r7, #4] 800ec0c: 4798 blx r3 } 800ec0e: bf00 nop 800ec10: 3710 adds r7, #16 800ec12: 46bd mov sp, r7 800ec14: bd80 pop {r7, pc} 0800ec16 : * @brief DMA half transfer complete callback. * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) { 800ec16: b580 push {r7, lr} 800ec18: b084 sub sp, #16 800ec1a: af00 add r7, sp, #0 800ec1c: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800ec1e: 687b ldr r3, [r7, #4] 800ec20: 6a5b ldr r3, [r3, #36] @ 0x24 800ec22: 60fb str r3, [r7, #12] /* Half conversion callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvHalfCpltCallback(hadc); #else HAL_ADC_ConvHalfCpltCallback(hadc); 800ec24: 68f8 ldr r0, [r7, #12] 800ec26: f7ff fe0a bl 800e83e #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } 800ec2a: bf00 nop 800ec2c: 3710 adds r7, #16 800ec2e: 46bd mov sp, r7 800ec30: bd80 pop {r7, pc} 0800ec32 : * @brief DMA error callback * @param hdma: pointer to DMA handle. * @retval None */ void ADC_DMAError(DMA_HandleTypeDef *hdma) { 800ec32: b580 push {r7, lr} 800ec34: b084 sub sp, #16 800ec36: af00 add r7, sp, #0 800ec38: 6078 str r0, [r7, #4] /* Retrieve ADC handle corresponding to current DMA handle */ ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; 800ec3a: 687b ldr r3, [r7, #4] 800ec3c: 6a5b ldr r3, [r3, #36] @ 0x24 800ec3e: 60fb str r3, [r7, #12] /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 800ec40: 68fb ldr r3, [r7, #12] 800ec42: 6a9b ldr r3, [r3, #40] @ 0x28 800ec44: f043 0240 orr.w r2, r3, #64 @ 0x40 800ec48: 68fb ldr r3, [r7, #12] 800ec4a: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to DMA error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); 800ec4c: 68fb ldr r3, [r7, #12] 800ec4e: 6adb ldr r3, [r3, #44] @ 0x2c 800ec50: f043 0204 orr.w r2, r3, #4 800ec54: 68fb ldr r3, [r7, #12] 800ec56: 62da str r2, [r3, #44] @ 0x2c /* Error callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); 800ec58: 68f8 ldr r0, [r7, #12] 800ec5a: f7ff fe02 bl 800e862 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ } 800ec5e: bf00 nop 800ec60: 3710 adds r7, #16 800ec62: 46bd mov sp, r7 800ec64: bd80 pop {r7, pc} ... 0800ec68 : * the completion of this function. * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc) { 800ec68: b590 push {r4, r7, lr} 800ec6a: b087 sub sp, #28 800ec6c: af00 add r7, sp, #0 800ec6e: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; 800ec70: 2300 movs r3, #0 800ec72: 75fb strb r3, [r7, #23] uint32_t tickstart; __IO uint32_t wait_loop_index = 0U; 800ec74: 2300 movs r3, #0 800ec76: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); 800ec78: 687b ldr r3, [r7, #4] 800ec7a: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 800ec7e: 2b01 cmp r3, #1 800ec80: d101 bne.n 800ec86 800ec82: 2302 movs r3, #2 800ec84: e097 b.n 800edb6 800ec86: 687b ldr r3, [r7, #4] 800ec88: 2201 movs r2, #1 800ec8a: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* 1. Disable ADC peripheral */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); 800ec8e: 6878 ldr r0, [r7, #4] 800ec90: f7ff ff42 bl 800eb18 800ec94: 4603 mov r3, r0 800ec96: 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); 800ec98: 6878 ldr r0, [r7, #4] 800ec9a: f7ff fee3 bl 800ea64 800ec9e: 4603 mov r3, r0 800eca0: 75fb strb r3, [r7, #23] /* Check if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) 800eca2: 7dfb ldrb r3, [r7, #23] 800eca4: 2b00 cmp r3, #0 800eca6: f040 8081 bne.w 800edac { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800ecaa: 687b ldr r3, [r7, #4] 800ecac: 6a9b ldr r3, [r3, #40] @ 0x28 800ecae: f423 5388 bic.w r3, r3, #4352 @ 0x1100 800ecb2: f023 0302 bic.w r3, r3, #2 800ecb6: f043 0202 orr.w r2, r3, #2 800ecba: 687b ldr r3, [r7, #4] 800ecbc: 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)) 800ecbe: 4b40 ldr r3, [pc, #256] @ (800edc0 ) 800ecc0: 681c ldr r4, [r3, #0] 800ecc2: 2002 movs r0, #2 800ecc4: f002 fde2 bl 801188c 800ecc8: 4603 mov r3, r0 800ecca: fbb4 f3f3 udiv r3, r4, r3 * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES ); 800ecce: 005b lsls r3, r3, #1 wait_loop_index = ((SystemCoreClock 800ecd0: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) 800ecd2: e002 b.n 800ecda { wait_loop_index--; 800ecd4: 68fb ldr r3, [r7, #12] 800ecd6: 3b01 subs r3, #1 800ecd8: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) 800ecda: 68fb ldr r3, [r7, #12] 800ecdc: 2b00 cmp r3, #0 800ecde: d1f9 bne.n 800ecd4 } /* 3. Resets ADC calibration registers */ SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL); 800ece0: 687b ldr r3, [r7, #4] 800ece2: 681b ldr r3, [r3, #0] 800ece4: 689a ldr r2, [r3, #8] 800ece6: 687b ldr r3, [r7, #4] 800ece8: 681b ldr r3, [r3, #0] 800ecea: f042 0208 orr.w r2, r2, #8 800ecee: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); 800ecf0: f7ff fb02 bl 800e2f8 800ecf4: 6138 str r0, [r7, #16] /* Wait for calibration reset completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800ecf6: e01b b.n 800ed30 { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) 800ecf8: f7ff fafe bl 800e2f8 800ecfc: 4602 mov r2, r0 800ecfe: 693b ldr r3, [r7, #16] 800ed00: 1ad3 subs r3, r2, r3 800ed02: 2b0a cmp r3, #10 800ed04: d914 bls.n 800ed30 { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800ed06: 687b ldr r3, [r7, #4] 800ed08: 681b ldr r3, [r3, #0] 800ed0a: 689b ldr r3, [r3, #8] 800ed0c: f003 0308 and.w r3, r3, #8 800ed10: 2b00 cmp r3, #0 800ed12: d00d beq.n 800ed30 { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800ed14: 687b ldr r3, [r7, #4] 800ed16: 6a9b ldr r3, [r3, #40] @ 0x28 800ed18: f023 0312 bic.w r3, r3, #18 800ed1c: f043 0210 orr.w r2, r3, #16 800ed20: 687b ldr r3, [r7, #4] 800ed22: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); 800ed24: 687b ldr r3, [r7, #4] 800ed26: 2200 movs r2, #0 800ed28: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ed2c: 2301 movs r3, #1 800ed2e: e042 b.n 800edb6 while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) 800ed30: 687b ldr r3, [r7, #4] 800ed32: 681b ldr r3, [r3, #0] 800ed34: 689b ldr r3, [r3, #8] 800ed36: f003 0308 and.w r3, r3, #8 800ed3a: 2b00 cmp r3, #0 800ed3c: d1dc bne.n 800ecf8 } } } /* 4. Start ADC calibration */ SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL); 800ed3e: 687b ldr r3, [r7, #4] 800ed40: 681b ldr r3, [r3, #0] 800ed42: 689a ldr r2, [r3, #8] 800ed44: 687b ldr r3, [r7, #4] 800ed46: 681b ldr r3, [r3, #0] 800ed48: f042 0204 orr.w r2, r2, #4 800ed4c: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); 800ed4e: f7ff fad3 bl 800e2f8 800ed52: 6138 str r0, [r7, #16] /* Wait for calibration completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800ed54: e01b b.n 800ed8e { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) 800ed56: f7ff facf bl 800e2f8 800ed5a: 4602 mov r2, r0 800ed5c: 693b ldr r3, [r7, #16] 800ed5e: 1ad3 subs r3, r2, r3 800ed60: 2b0a cmp r3, #10 800ed62: d914 bls.n 800ed8e { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800ed64: 687b ldr r3, [r7, #4] 800ed66: 681b ldr r3, [r3, #0] 800ed68: 689b ldr r3, [r3, #8] 800ed6a: f003 0304 and.w r3, r3, #4 800ed6e: 2b00 cmp r3, #0 800ed70: d00d beq.n 800ed8e { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, 800ed72: 687b ldr r3, [r7, #4] 800ed74: 6a9b ldr r3, [r3, #40] @ 0x28 800ed76: f023 0312 bic.w r3, r3, #18 800ed7a: f043 0210 orr.w r2, r3, #16 800ed7e: 687b ldr r3, [r7, #4] 800ed80: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); 800ed82: 687b ldr r3, [r7, #4] 800ed84: 2200 movs r2, #0 800ed86: f883 2024 strb.w r2, [r3, #36] @ 0x24 return HAL_ERROR; 800ed8a: 2301 movs r3, #1 800ed8c: e013 b.n 800edb6 while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) 800ed8e: 687b ldr r3, [r7, #4] 800ed90: 681b ldr r3, [r3, #0] 800ed92: 689b ldr r3, [r3, #8] 800ed94: f003 0304 and.w r3, r3, #4 800ed98: 2b00 cmp r3, #0 800ed9a: d1dc bne.n 800ed56 } } } /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, 800ed9c: 687b ldr r3, [r7, #4] 800ed9e: 6a9b ldr r3, [r3, #40] @ 0x28 800eda0: f023 0303 bic.w r3, r3, #3 800eda4: f043 0201 orr.w r2, r3, #1 800eda8: 687b ldr r3, [r7, #4] 800edaa: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); 800edac: 687b ldr r3, [r7, #4] 800edae: 2200 movs r2, #0 800edb0: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; 800edb4: 7dfb ldrb r3, [r7, #23] } 800edb6: 4618 mov r0, r3 800edb8: 371c adds r7, #28 800edba: 46bd mov sp, r7 800edbc: bd90 pop {r4, r7, pc} 800edbe: bf00 nop 800edc0: 20000084 .word 0x20000084 0800edc4 : * @brief Injected conversion complete callback in non blocking mode * @param hadc: ADC handle * @retval None */ __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc) { 800edc4: b480 push {r7} 800edc6: b083 sub sp, #12 800edc8: af00 add r7, sp, #0 800edca: 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 */ } 800edcc: bf00 nop 800edce: 370c adds r7, #12 800edd0: 46bd mov sp, r7 800edd2: bc80 pop {r7} 800edd4: 4770 bx lr 0800edd6 : * @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) { 800edd6: b580 push {r7, lr} 800edd8: b084 sub sp, #16 800edda: af00 add r7, sp, #0 800eddc: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) 800edde: 687b ldr r3, [r7, #4] 800ede0: 2b00 cmp r3, #0 800ede2: d101 bne.n 800ede8 { return HAL_ERROR; 800ede4: 2301 movs r3, #1 800ede6: e0ed b.n 800efc4 /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) 800ede8: 687b ldr r3, [r7, #4] 800edea: f893 3020 ldrb.w r3, [r3, #32] 800edee: b2db uxtb r3, r3 800edf0: 2b00 cmp r3, #0 800edf2: d102 bne.n 800edfa { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); 800edf4: 6878 ldr r0, [r7, #4] 800edf6: f7fa ff0f bl 8009c18 } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800edfa: 687b ldr r3, [r7, #4] 800edfc: 681b ldr r3, [r3, #0] 800edfe: 681a ldr r2, [r3, #0] 800ee00: 687b ldr r3, [r7, #4] 800ee02: 681b ldr r3, [r3, #0] 800ee04: f042 0201 orr.w r2, r2, #1 800ee08: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800ee0a: f7ff fa75 bl 800e2f8 800ee0e: 60f8 str r0, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800ee10: e012 b.n 800ee38 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800ee12: f7ff fa71 bl 800e2f8 800ee16: 4602 mov r2, r0 800ee18: 68fb ldr r3, [r7, #12] 800ee1a: 1ad3 subs r3, r2, r3 800ee1c: 2b0a cmp r3, #10 800ee1e: d90b bls.n 800ee38 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800ee20: 687b ldr r3, [r7, #4] 800ee22: 6a5b ldr r3, [r3, #36] @ 0x24 800ee24: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ee28: 687b ldr r3, [r7, #4] 800ee2a: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ee2c: 687b ldr r3, [r7, #4] 800ee2e: 2205 movs r2, #5 800ee30: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ee34: 2301 movs r3, #1 800ee36: e0c5 b.n 800efc4 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800ee38: 687b ldr r3, [r7, #4] 800ee3a: 681b ldr r3, [r3, #0] 800ee3c: 685b ldr r3, [r3, #4] 800ee3e: f003 0301 and.w r3, r3, #1 800ee42: 2b00 cmp r3, #0 800ee44: d0e5 beq.n 800ee12 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 800ee46: 687b ldr r3, [r7, #4] 800ee48: 681b ldr r3, [r3, #0] 800ee4a: 681a ldr r2, [r3, #0] 800ee4c: 687b ldr r3, [r7, #4] 800ee4e: 681b ldr r3, [r3, #0] 800ee50: f022 0202 bic.w r2, r2, #2 800ee54: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800ee56: f7ff fa4f bl 800e2f8 800ee5a: 60f8 str r0, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 800ee5c: e012 b.n 800ee84 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800ee5e: f7ff fa4b bl 800e2f8 800ee62: 4602 mov r2, r0 800ee64: 68fb ldr r3, [r7, #12] 800ee66: 1ad3 subs r3, r2, r3 800ee68: 2b0a cmp r3, #10 800ee6a: d90b bls.n 800ee84 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800ee6c: 687b ldr r3, [r7, #4] 800ee6e: 6a5b ldr r3, [r3, #36] @ 0x24 800ee70: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800ee74: 687b ldr r3, [r7, #4] 800ee76: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800ee78: 687b ldr r3, [r7, #4] 800ee7a: 2205 movs r2, #5 800ee7c: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ee80: 2301 movs r3, #1 800ee82: e09f b.n 800efc4 while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 800ee84: 687b ldr r3, [r7, #4] 800ee86: 681b ldr r3, [r3, #0] 800ee88: 685b ldr r3, [r3, #4] 800ee8a: f003 0302 and.w r3, r3, #2 800ee8e: 2b00 cmp r3, #0 800ee90: d1e5 bne.n 800ee5e } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) 800ee92: 687b ldr r3, [r7, #4] 800ee94: 7e1b ldrb r3, [r3, #24] 800ee96: 2b01 cmp r3, #1 800ee98: d108 bne.n 800eeac { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 800ee9a: 687b ldr r3, [r7, #4] 800ee9c: 681b ldr r3, [r3, #0] 800ee9e: 681a ldr r2, [r3, #0] 800eea0: 687b ldr r3, [r7, #4] 800eea2: 681b ldr r3, [r3, #0] 800eea4: f042 0280 orr.w r2, r2, #128 @ 0x80 800eea8: 601a str r2, [r3, #0] 800eeaa: e007 b.n 800eebc } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 800eeac: 687b ldr r3, [r7, #4] 800eeae: 681b ldr r3, [r3, #0] 800eeb0: 681a ldr r2, [r3, #0] 800eeb2: 687b ldr r3, [r7, #4] 800eeb4: 681b ldr r3, [r3, #0] 800eeb6: f022 0280 bic.w r2, r2, #128 @ 0x80 800eeba: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) 800eebc: 687b ldr r3, [r7, #4] 800eebe: 7e5b ldrb r3, [r3, #25] 800eec0: 2b01 cmp r3, #1 800eec2: d108 bne.n 800eed6 { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 800eec4: 687b ldr r3, [r7, #4] 800eec6: 681b ldr r3, [r3, #0] 800eec8: 681a ldr r2, [r3, #0] 800eeca: 687b ldr r3, [r7, #4] 800eecc: 681b ldr r3, [r3, #0] 800eece: f042 0240 orr.w r2, r2, #64 @ 0x40 800eed2: 601a str r2, [r3, #0] 800eed4: e007 b.n 800eee6 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 800eed6: 687b ldr r3, [r7, #4] 800eed8: 681b ldr r3, [r3, #0] 800eeda: 681a ldr r2, [r3, #0] 800eedc: 687b ldr r3, [r7, #4] 800eede: 681b ldr r3, [r3, #0] 800eee0: f022 0240 bic.w r2, r2, #64 @ 0x40 800eee4: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) 800eee6: 687b ldr r3, [r7, #4] 800eee8: 7e9b ldrb r3, [r3, #26] 800eeea: 2b01 cmp r3, #1 800eeec: d108 bne.n 800ef00 { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 800eeee: 687b ldr r3, [r7, #4] 800eef0: 681b ldr r3, [r3, #0] 800eef2: 681a ldr r2, [r3, #0] 800eef4: 687b ldr r3, [r7, #4] 800eef6: 681b ldr r3, [r3, #0] 800eef8: f042 0220 orr.w r2, r2, #32 800eefc: 601a str r2, [r3, #0] 800eefe: e007 b.n 800ef10 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 800ef00: 687b ldr r3, [r7, #4] 800ef02: 681b ldr r3, [r3, #0] 800ef04: 681a ldr r2, [r3, #0] 800ef06: 687b ldr r3, [r7, #4] 800ef08: 681b ldr r3, [r3, #0] 800ef0a: f022 0220 bic.w r2, r2, #32 800ef0e: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) 800ef10: 687b ldr r3, [r7, #4] 800ef12: 7edb ldrb r3, [r3, #27] 800ef14: 2b01 cmp r3, #1 800ef16: d108 bne.n 800ef2a { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800ef18: 687b ldr r3, [r7, #4] 800ef1a: 681b ldr r3, [r3, #0] 800ef1c: 681a ldr r2, [r3, #0] 800ef1e: 687b ldr r3, [r7, #4] 800ef20: 681b ldr r3, [r3, #0] 800ef22: f022 0210 bic.w r2, r2, #16 800ef26: 601a str r2, [r3, #0] 800ef28: e007 b.n 800ef3a } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800ef2a: 687b ldr r3, [r7, #4] 800ef2c: 681b ldr r3, [r3, #0] 800ef2e: 681a ldr r2, [r3, #0] 800ef30: 687b ldr r3, [r7, #4] 800ef32: 681b ldr r3, [r3, #0] 800ef34: f042 0210 orr.w r2, r2, #16 800ef38: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) 800ef3a: 687b ldr r3, [r7, #4] 800ef3c: 7f1b ldrb r3, [r3, #28] 800ef3e: 2b01 cmp r3, #1 800ef40: d108 bne.n 800ef54 { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 800ef42: 687b ldr r3, [r7, #4] 800ef44: 681b ldr r3, [r3, #0] 800ef46: 681a ldr r2, [r3, #0] 800ef48: 687b ldr r3, [r7, #4] 800ef4a: 681b ldr r3, [r3, #0] 800ef4c: f042 0208 orr.w r2, r2, #8 800ef50: 601a str r2, [r3, #0] 800ef52: e007 b.n 800ef64 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 800ef54: 687b ldr r3, [r7, #4] 800ef56: 681b ldr r3, [r3, #0] 800ef58: 681a ldr r2, [r3, #0] 800ef5a: 687b ldr r3, [r7, #4] 800ef5c: 681b ldr r3, [r3, #0] 800ef5e: f022 0208 bic.w r2, r2, #8 800ef62: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) 800ef64: 687b ldr r3, [r7, #4] 800ef66: 7f5b ldrb r3, [r3, #29] 800ef68: 2b01 cmp r3, #1 800ef6a: d108 bne.n 800ef7e { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800ef6c: 687b ldr r3, [r7, #4] 800ef6e: 681b ldr r3, [r3, #0] 800ef70: 681a ldr r2, [r3, #0] 800ef72: 687b ldr r3, [r7, #4] 800ef74: 681b ldr r3, [r3, #0] 800ef76: f042 0204 orr.w r2, r2, #4 800ef7a: 601a str r2, [r3, #0] 800ef7c: e007 b.n 800ef8e } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800ef7e: 687b ldr r3, [r7, #4] 800ef80: 681b ldr r3, [r3, #0] 800ef82: 681a ldr r2, [r3, #0] 800ef84: 687b ldr r3, [r7, #4] 800ef86: 681b ldr r3, [r3, #0] 800ef88: f022 0204 bic.w r2, r2, #4 800ef8c: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | 800ef8e: 687b ldr r3, [r7, #4] 800ef90: 689a ldr r2, [r3, #8] 800ef92: 687b ldr r3, [r7, #4] 800ef94: 68db ldr r3, [r3, #12] 800ef96: 431a orrs r2, r3 800ef98: 687b ldr r3, [r7, #4] 800ef9a: 691b ldr r3, [r3, #16] 800ef9c: 431a orrs r2, r3 800ef9e: 687b ldr r3, [r7, #4] 800efa0: 695b ldr r3, [r3, #20] 800efa2: ea42 0103 orr.w r1, r2, r3 800efa6: 687b ldr r3, [r7, #4] 800efa8: 685b ldr r3, [r3, #4] 800efaa: 1e5a subs r2, r3, #1 800efac: 687b ldr r3, [r7, #4] 800efae: 681b ldr r3, [r3, #0] 800efb0: 430a orrs r2, r1 800efb2: 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; 800efb4: 687b ldr r3, [r7, #4] 800efb6: 2200 movs r2, #0 800efb8: 625a str r2, [r3, #36] @ 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; 800efba: 687b ldr r3, [r7, #4] 800efbc: 2201 movs r2, #1 800efbe: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; 800efc2: 2300 movs r3, #0 } 800efc4: 4618 mov r0, r3 800efc6: 3710 adds r7, #16 800efc8: 46bd mov sp, r7 800efca: bd80 pop {r7, pc} 0800efcc : * @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) { 800efcc: b480 push {r7} 800efce: b087 sub sp, #28 800efd0: af00 add r7, sp, #0 800efd2: 6078 str r0, [r7, #4] 800efd4: 6039 str r1, [r7, #0] uint32_t filternbrbitpos; CAN_TypeDef *can_ip = hcan->Instance; 800efd6: 687b ldr r3, [r7, #4] 800efd8: 681b ldr r3, [r3, #0] 800efda: 617b str r3, [r7, #20] HAL_CAN_StateTypeDef state = hcan->State; 800efdc: 687b ldr r3, [r7, #4] 800efde: f893 3020 ldrb.w r3, [r3, #32] 800efe2: 74fb strb r3, [r7, #19] if ((state == HAL_CAN_STATE_READY) || 800efe4: 7cfb ldrb r3, [r7, #19] 800efe6: 2b01 cmp r3, #1 800efe8: d003 beq.n 800eff2 800efea: 7cfb ldrb r3, [r7, #19] 800efec: 2b02 cmp r3, #2 800efee: f040 80be bne.w 800f16e 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; 800eff2: 4b65 ldr r3, [pc, #404] @ (800f188 ) 800eff4: 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); 800eff6: 697b ldr r3, [r7, #20] 800eff8: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800effc: f043 0201 orr.w r2, r3, #1 800f000: 697b ldr r3, [r7, #20] 800f002: 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); 800f006: 697b ldr r3, [r7, #20] 800f008: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800f00c: f423 527c bic.w r2, r3, #16128 @ 0x3f00 800f010: 697b ldr r3, [r7, #20] 800f012: f8c3 2200 str.w r2, [r3, #512] @ 0x200 SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); 800f016: 697b ldr r3, [r7, #20] 800f018: f8d3 2200 ldr.w r2, [r3, #512] @ 0x200 800f01c: 683b ldr r3, [r7, #0] 800f01e: 6a5b ldr r3, [r3, #36] @ 0x24 800f020: 021b lsls r3, r3, #8 800f022: 431a orrs r2, r3 800f024: 697b ldr r3, [r7, #20] 800f026: f8c3 2200 str.w r2, [r3, #512] @ 0x200 #endif /* CAN3 */ /* Convert filter number into bit position */ filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU); 800f02a: 683b ldr r3, [r7, #0] 800f02c: 695b ldr r3, [r3, #20] 800f02e: f003 031f and.w r3, r3, #31 800f032: 2201 movs r2, #1 800f034: fa02 f303 lsl.w r3, r2, r3 800f038: 60fb str r3, [r7, #12] /* Filter Deactivation */ CLEAR_BIT(can_ip->FA1R, filternbrbitpos); 800f03a: 697b ldr r3, [r7, #20] 800f03c: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c 800f040: 68fb ldr r3, [r7, #12] 800f042: 43db mvns r3, r3 800f044: 401a ands r2, r3 800f046: 697b ldr r3, [r7, #20] 800f048: f8c3 221c str.w r2, [r3, #540] @ 0x21c /* Filter Scale */ if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT) 800f04c: 683b ldr r3, [r7, #0] 800f04e: 69db ldr r3, [r3, #28] 800f050: 2b00 cmp r3, #0 800f052: d123 bne.n 800f09c { /* 16-bit scale for the filter */ CLEAR_BIT(can_ip->FS1R, filternbrbitpos); 800f054: 697b ldr r3, [r7, #20] 800f056: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c 800f05a: 68fb ldr r3, [r7, #12] 800f05c: 43db mvns r3, r3 800f05e: 401a ands r2, r3 800f060: 697b ldr r3, [r7, #20] 800f062: 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) | 800f066: 683b ldr r3, [r7, #0] 800f068: 68db ldr r3, [r3, #12] 800f06a: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); 800f06c: 683b ldr r3, [r7, #0] 800f06e: 685b ldr r3, [r3, #4] 800f070: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800f072: 683a ldr r2, [r7, #0] 800f074: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | 800f076: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800f078: 697b ldr r3, [r7, #20] 800f07a: 3248 adds r2, #72 @ 0x48 800f07c: 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) | 800f080: 683b ldr r3, [r7, #0] 800f082: 689b ldr r3, [r3, #8] 800f084: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh); 800f086: 683b ldr r3, [r7, #0] 800f088: 681b ldr r3, [r3, #0] 800f08a: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800f08c: 683b ldr r3, [r7, #0] 800f08e: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800f090: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800f092: 6979 ldr r1, [r7, #20] 800f094: 3348 adds r3, #72 @ 0x48 800f096: 00db lsls r3, r3, #3 800f098: 440b add r3, r1 800f09a: 605a str r2, [r3, #4] } if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT) 800f09c: 683b ldr r3, [r7, #0] 800f09e: 69db ldr r3, [r3, #28] 800f0a0: 2b01 cmp r3, #1 800f0a2: d122 bne.n 800f0ea { /* 32-bit scale for the filter */ SET_BIT(can_ip->FS1R, filternbrbitpos); 800f0a4: 697b ldr r3, [r7, #20] 800f0a6: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c 800f0aa: 68fb ldr r3, [r7, #12] 800f0ac: 431a orrs r2, r3 800f0ae: 697b ldr r3, [r7, #20] 800f0b0: 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) | 800f0b4: 683b ldr r3, [r7, #0] 800f0b6: 681b ldr r3, [r3, #0] 800f0b8: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); 800f0ba: 683b ldr r3, [r7, #0] 800f0bc: 685b ldr r3, [r3, #4] 800f0be: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800f0c0: 683a ldr r2, [r7, #0] 800f0c2: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | 800f0c4: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = 800f0c6: 697b ldr r3, [r7, #20] 800f0c8: 3248 adds r2, #72 @ 0x48 800f0ca: 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) | 800f0ce: 683b ldr r3, [r7, #0] 800f0d0: 689b ldr r3, [r3, #8] 800f0d2: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow); 800f0d4: 683b ldr r3, [r7, #0] 800f0d6: 68db ldr r3, [r3, #12] 800f0d8: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800f0da: 683b ldr r3, [r7, #0] 800f0dc: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | 800f0de: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = 800f0e0: 6979 ldr r1, [r7, #20] 800f0e2: 3348 adds r3, #72 @ 0x48 800f0e4: 00db lsls r3, r3, #3 800f0e6: 440b add r3, r1 800f0e8: 605a str r2, [r3, #4] } /* Filter Mode */ if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK) 800f0ea: 683b ldr r3, [r7, #0] 800f0ec: 699b ldr r3, [r3, #24] 800f0ee: 2b00 cmp r3, #0 800f0f0: d109 bne.n 800f106 { /* Id/Mask mode for the filter*/ CLEAR_BIT(can_ip->FM1R, filternbrbitpos); 800f0f2: 697b ldr r3, [r7, #20] 800f0f4: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 800f0f8: 68fb ldr r3, [r7, #12] 800f0fa: 43db mvns r3, r3 800f0fc: 401a ands r2, r3 800f0fe: 697b ldr r3, [r7, #20] 800f100: f8c3 2204 str.w r2, [r3, #516] @ 0x204 800f104: e007 b.n 800f116 } else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ { /* Identifier list mode for the filter*/ SET_BIT(can_ip->FM1R, filternbrbitpos); 800f106: 697b ldr r3, [r7, #20] 800f108: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 800f10c: 68fb ldr r3, [r7, #12] 800f10e: 431a orrs r2, r3 800f110: 697b ldr r3, [r7, #20] 800f112: f8c3 2204 str.w r2, [r3, #516] @ 0x204 } /* Filter FIFO assignment */ if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0) 800f116: 683b ldr r3, [r7, #0] 800f118: 691b ldr r3, [r3, #16] 800f11a: 2b00 cmp r3, #0 800f11c: d109 bne.n 800f132 { /* FIFO 0 assignation for the filter */ CLEAR_BIT(can_ip->FFA1R, filternbrbitpos); 800f11e: 697b ldr r3, [r7, #20] 800f120: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 800f124: 68fb ldr r3, [r7, #12] 800f126: 43db mvns r3, r3 800f128: 401a ands r2, r3 800f12a: 697b ldr r3, [r7, #20] 800f12c: f8c3 2214 str.w r2, [r3, #532] @ 0x214 800f130: e007 b.n 800f142 } else { /* FIFO 1 assignation for the filter */ SET_BIT(can_ip->FFA1R, filternbrbitpos); 800f132: 697b ldr r3, [r7, #20] 800f134: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 800f138: 68fb ldr r3, [r7, #12] 800f13a: 431a orrs r2, r3 800f13c: 697b ldr r3, [r7, #20] 800f13e: f8c3 2214 str.w r2, [r3, #532] @ 0x214 } /* Filter activation */ if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE) 800f142: 683b ldr r3, [r7, #0] 800f144: 6a1b ldr r3, [r3, #32] 800f146: 2b01 cmp r3, #1 800f148: d107 bne.n 800f15a { SET_BIT(can_ip->FA1R, filternbrbitpos); 800f14a: 697b ldr r3, [r7, #20] 800f14c: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c 800f150: 68fb ldr r3, [r7, #12] 800f152: 431a orrs r2, r3 800f154: 697b ldr r3, [r7, #20] 800f156: f8c3 221c str.w r2, [r3, #540] @ 0x21c } /* Leave the initialisation mode for the filter */ CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT); 800f15a: 697b ldr r3, [r7, #20] 800f15c: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 800f160: f023 0201 bic.w r2, r3, #1 800f164: 697b ldr r3, [r7, #20] 800f166: f8c3 2200 str.w r2, [r3, #512] @ 0x200 /* Return function status */ return HAL_OK; 800f16a: 2300 movs r3, #0 800f16c: e006 b.n 800f17c } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f16e: 687b ldr r3, [r7, #4] 800f170: 6a5b ldr r3, [r3, #36] @ 0x24 800f172: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f176: 687b ldr r3, [r7, #4] 800f178: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f17a: 2301 movs r3, #1 } } 800f17c: 4618 mov r0, r3 800f17e: 371c adds r7, #28 800f180: 46bd mov sp, r7 800f182: bc80 pop {r7} 800f184: 4770 bx lr 800f186: bf00 nop 800f188: 40006400 .word 0x40006400 0800f18c : * @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) { 800f18c: b580 push {r7, lr} 800f18e: b084 sub sp, #16 800f190: af00 add r7, sp, #0 800f192: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) 800f194: 687b ldr r3, [r7, #4] 800f196: f893 3020 ldrb.w r3, [r3, #32] 800f19a: b2db uxtb r3, r3 800f19c: 2b01 cmp r3, #1 800f19e: d12e bne.n 800f1fe { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; 800f1a0: 687b ldr r3, [r7, #4] 800f1a2: 2202 movs r2, #2 800f1a4: f883 2020 strb.w r2, [r3, #32] /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800f1a8: 687b ldr r3, [r7, #4] 800f1aa: 681b ldr r3, [r3, #0] 800f1ac: 681a ldr r2, [r3, #0] 800f1ae: 687b ldr r3, [r7, #4] 800f1b0: 681b ldr r3, [r3, #0] 800f1b2: f022 0201 bic.w r2, r2, #1 800f1b6: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800f1b8: f7ff f89e bl 800e2f8 800f1bc: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800f1be: e012 b.n 800f1e6 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800f1c0: f7ff f89a bl 800e2f8 800f1c4: 4602 mov r2, r0 800f1c6: 68fb ldr r3, [r7, #12] 800f1c8: 1ad3 subs r3, r2, r3 800f1ca: 2b0a cmp r3, #10 800f1cc: d90b bls.n 800f1e6 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800f1ce: 687b ldr r3, [r7, #4] 800f1d0: 6a5b ldr r3, [r3, #36] @ 0x24 800f1d2: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800f1d6: 687b ldr r3, [r7, #4] 800f1d8: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800f1da: 687b ldr r3, [r7, #4] 800f1dc: 2205 movs r2, #5 800f1de: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800f1e2: 2301 movs r3, #1 800f1e4: e012 b.n 800f20c while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800f1e6: 687b ldr r3, [r7, #4] 800f1e8: 681b ldr r3, [r3, #0] 800f1ea: 685b ldr r3, [r3, #4] 800f1ec: f003 0301 and.w r3, r3, #1 800f1f0: 2b00 cmp r3, #0 800f1f2: d1e5 bne.n 800f1c0 } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; 800f1f4: 687b ldr r3, [r7, #4] 800f1f6: 2200 movs r2, #0 800f1f8: 625a str r2, [r3, #36] @ 0x24 /* Return function status */ return HAL_OK; 800f1fa: 2300 movs r3, #0 800f1fc: e006 b.n 800f20c } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; 800f1fe: 687b ldr r3, [r7, #4] 800f200: 6a5b ldr r3, [r3, #36] @ 0x24 800f202: f443 2200 orr.w r2, r3, #524288 @ 0x80000 800f206: 687b ldr r3, [r7, #4] 800f208: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f20a: 2301 movs r3, #1 } } 800f20c: 4618 mov r0, r3 800f20e: 3710 adds r7, #16 800f210: 46bd mov sp, r7 800f212: bd80 pop {r7, pc} 0800f214 : * @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) { 800f214: b580 push {r7, lr} 800f216: b084 sub sp, #16 800f218: af00 add r7, sp, #0 800f21a: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_LISTENING) 800f21c: 687b ldr r3, [r7, #4] 800f21e: f893 3020 ldrb.w r3, [r3, #32] 800f222: b2db uxtb r3, r3 800f224: 2b02 cmp r3, #2 800f226: d133 bne.n 800f290 { /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 800f228: 687b ldr r3, [r7, #4] 800f22a: 681b ldr r3, [r3, #0] 800f22c: 681a ldr r2, [r3, #0] 800f22e: 687b ldr r3, [r7, #4] 800f230: 681b ldr r3, [r3, #0] 800f232: f042 0201 orr.w r2, r2, #1 800f236: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 800f238: f7ff f85e bl 800e2f8 800f23c: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800f23e: e012 b.n 800f266 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 800f240: f7ff f85a bl 800e2f8 800f244: 4602 mov r2, r0 800f246: 68fb ldr r3, [r7, #12] 800f248: 1ad3 subs r3, r2, r3 800f24a: 2b0a cmp r3, #10 800f24c: d90b bls.n 800f266 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 800f24e: 687b ldr r3, [r7, #4] 800f250: 6a5b ldr r3, [r3, #36] @ 0x24 800f252: f443 3200 orr.w r2, r3, #131072 @ 0x20000 800f256: 687b ldr r3, [r7, #4] 800f258: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800f25a: 687b ldr r3, [r7, #4] 800f25c: 2205 movs r2, #5 800f25e: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800f262: 2301 movs r3, #1 800f264: e01b b.n 800f29e while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 800f266: 687b ldr r3, [r7, #4] 800f268: 681b ldr r3, [r3, #0] 800f26a: 685b ldr r3, [r3, #4] 800f26c: f003 0301 and.w r3, r3, #1 800f270: 2b00 cmp r3, #0 800f272: d0e5 beq.n 800f240 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 800f274: 687b ldr r3, [r7, #4] 800f276: 681b ldr r3, [r3, #0] 800f278: 681a ldr r2, [r3, #0] 800f27a: 687b ldr r3, [r7, #4] 800f27c: 681b ldr r3, [r3, #0] 800f27e: f022 0202 bic.w r2, r2, #2 800f282: 601a str r2, [r3, #0] /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_READY; 800f284: 687b ldr r3, [r7, #4] 800f286: 2201 movs r2, #1 800f288: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; 800f28c: 2300 movs r3, #0 800f28e: e006 b.n 800f29e } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_STARTED; 800f290: 687b ldr r3, [r7, #4] 800f292: 6a5b ldr r3, [r3, #36] @ 0x24 800f294: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 800f298: 687b ldr r3, [r7, #4] 800f29a: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f29c: 2301 movs r3, #1 } } 800f29e: 4618 mov r0, r3 800f2a0: 3710 adds r7, #16 800f2a2: 46bd mov sp, r7 800f2a4: bd80 pop {r7, pc} 0800f2a6 : * 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) { 800f2a6: b480 push {r7} 800f2a8: b089 sub sp, #36 @ 0x24 800f2aa: af00 add r7, sp, #0 800f2ac: 60f8 str r0, [r7, #12] 800f2ae: 60b9 str r1, [r7, #8] 800f2b0: 607a str r2, [r7, #4] 800f2b2: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; 800f2b4: 68fb ldr r3, [r7, #12] 800f2b6: f893 3020 ldrb.w r3, [r3, #32] 800f2ba: 77fb strb r3, [r7, #31] uint32_t tsr = READ_REG(hcan->Instance->TSR); 800f2bc: 68fb ldr r3, [r7, #12] 800f2be: 681b ldr r3, [r3, #0] 800f2c0: 689b ldr r3, [r3, #8] 800f2c2: 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) || 800f2c4: 7ffb ldrb r3, [r7, #31] 800f2c6: 2b01 cmp r3, #1 800f2c8: d003 beq.n 800f2d2 800f2ca: 7ffb ldrb r3, [r7, #31] 800f2cc: 2b02 cmp r3, #2 800f2ce: f040 80ad bne.w 800f42c (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || 800f2d2: 69bb ldr r3, [r7, #24] 800f2d4: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 800f2d8: 2b00 cmp r3, #0 800f2da: d10a bne.n 800f2f2 ((tsr & CAN_TSR_TME1) != 0U) || 800f2dc: 69bb ldr r3, [r7, #24] 800f2de: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 if (((tsr & CAN_TSR_TME0) != 0U) || 800f2e2: 2b00 cmp r3, #0 800f2e4: d105 bne.n 800f2f2 ((tsr & CAN_TSR_TME2) != 0U)) 800f2e6: 69bb ldr r3, [r7, #24] 800f2e8: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 ((tsr & CAN_TSR_TME1) != 0U) || 800f2ec: 2b00 cmp r3, #0 800f2ee: f000 8095 beq.w 800f41c { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; 800f2f2: 69bb ldr r3, [r7, #24] 800f2f4: 0e1b lsrs r3, r3, #24 800f2f6: f003 0303 and.w r3, r3, #3 800f2fa: 617b str r3, [r7, #20] /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; 800f2fc: 2201 movs r2, #1 800f2fe: 697b ldr r3, [r7, #20] 800f300: 409a lsls r2, r3 800f302: 683b ldr r3, [r7, #0] 800f304: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) 800f306: 68bb ldr r3, [r7, #8] 800f308: 689b ldr r3, [r3, #8] 800f30a: 2b00 cmp r3, #0 800f30c: d10d bne.n 800f32a { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 800f30e: 68bb ldr r3, [r7, #8] 800f310: 681b ldr r3, [r3, #0] 800f312: 055a lsls r2, r3, #21 pHeader->RTR); 800f314: 68bb ldr r3, [r7, #8] 800f316: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 800f318: 68f9 ldr r1, [r7, #12] 800f31a: 6809 ldr r1, [r1, #0] 800f31c: 431a orrs r2, r3 800f31e: 697b ldr r3, [r7, #20] 800f320: 3318 adds r3, #24 800f322: 011b lsls r3, r3, #4 800f324: 440b add r3, r1 800f326: 601a str r2, [r3, #0] 800f328: e00f b.n 800f34a } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f32a: 68bb ldr r3, [r7, #8] 800f32c: 685b ldr r3, [r3, #4] 800f32e: 00da lsls r2, r3, #3 pHeader->IDE | 800f330: 68bb ldr r3, [r7, #8] 800f332: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f334: 431a orrs r2, r3 pHeader->RTR); 800f336: 68bb ldr r3, [r7, #8] 800f338: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f33a: 68f9 ldr r1, [r7, #12] 800f33c: 6809 ldr r1, [r1, #0] pHeader->IDE | 800f33e: 431a orrs r2, r3 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800f340: 697b ldr r3, [r7, #20] 800f342: 3318 adds r3, #24 800f344: 011b lsls r3, r3, #4 800f346: 440b add r3, r1 800f348: 601a str r2, [r3, #0] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); 800f34a: 68fb ldr r3, [r7, #12] 800f34c: 6819 ldr r1, [r3, #0] 800f34e: 68bb ldr r3, [r7, #8] 800f350: 691a ldr r2, [r3, #16] 800f352: 697b ldr r3, [r7, #20] 800f354: 3318 adds r3, #24 800f356: 011b lsls r3, r3, #4 800f358: 440b add r3, r1 800f35a: 3304 adds r3, #4 800f35c: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) 800f35e: 68bb ldr r3, [r7, #8] 800f360: 7d1b ldrb r3, [r3, #20] 800f362: 2b01 cmp r3, #1 800f364: d111 bne.n 800f38a { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); 800f366: 68fb ldr r3, [r7, #12] 800f368: 681a ldr r2, [r3, #0] 800f36a: 697b ldr r3, [r7, #20] 800f36c: 3318 adds r3, #24 800f36e: 011b lsls r3, r3, #4 800f370: 4413 add r3, r2 800f372: 3304 adds r3, #4 800f374: 681b ldr r3, [r3, #0] 800f376: 68fa ldr r2, [r7, #12] 800f378: 6811 ldr r1, [r2, #0] 800f37a: f443 7280 orr.w r2, r3, #256 @ 0x100 800f37e: 697b ldr r3, [r7, #20] 800f380: 3318 adds r3, #24 800f382: 011b lsls r3, r3, #4 800f384: 440b add r3, r1 800f386: 3304 adds r3, #4 800f388: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, 800f38a: 687b ldr r3, [r7, #4] 800f38c: 3307 adds r3, #7 800f38e: 781b ldrb r3, [r3, #0] 800f390: 061a lsls r2, r3, #24 800f392: 687b ldr r3, [r7, #4] 800f394: 3306 adds r3, #6 800f396: 781b ldrb r3, [r3, #0] 800f398: 041b lsls r3, r3, #16 800f39a: 431a orrs r2, r3 800f39c: 687b ldr r3, [r7, #4] 800f39e: 3305 adds r3, #5 800f3a0: 781b ldrb r3, [r3, #0] 800f3a2: 021b lsls r3, r3, #8 800f3a4: 4313 orrs r3, r2 800f3a6: 687a ldr r2, [r7, #4] 800f3a8: 3204 adds r2, #4 800f3aa: 7812 ldrb r2, [r2, #0] 800f3ac: 4610 mov r0, r2 800f3ae: 68fa ldr r2, [r7, #12] 800f3b0: 6811 ldr r1, [r2, #0] 800f3b2: ea43 0200 orr.w r2, r3, r0 800f3b6: 697b ldr r3, [r7, #20] 800f3b8: 011b lsls r3, r3, #4 800f3ba: 440b add r3, r1 800f3bc: f503 73c6 add.w r3, r3, #396 @ 0x18c 800f3c0: 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, 800f3c2: 687b ldr r3, [r7, #4] 800f3c4: 3303 adds r3, #3 800f3c6: 781b ldrb r3, [r3, #0] 800f3c8: 061a lsls r2, r3, #24 800f3ca: 687b ldr r3, [r7, #4] 800f3cc: 3302 adds r3, #2 800f3ce: 781b ldrb r3, [r3, #0] 800f3d0: 041b lsls r3, r3, #16 800f3d2: 431a orrs r2, r3 800f3d4: 687b ldr r3, [r7, #4] 800f3d6: 3301 adds r3, #1 800f3d8: 781b ldrb r3, [r3, #0] 800f3da: 021b lsls r3, r3, #8 800f3dc: 4313 orrs r3, r2 800f3de: 687a ldr r2, [r7, #4] 800f3e0: 7812 ldrb r2, [r2, #0] 800f3e2: 4610 mov r0, r2 800f3e4: 68fa ldr r2, [r7, #12] 800f3e6: 6811 ldr r1, [r2, #0] 800f3e8: ea43 0200 orr.w r2, r3, r0 800f3ec: 697b ldr r3, [r7, #20] 800f3ee: 011b lsls r3, r3, #4 800f3f0: 440b add r3, r1 800f3f2: f503 73c4 add.w r3, r3, #392 @ 0x188 800f3f6: 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); 800f3f8: 68fb ldr r3, [r7, #12] 800f3fa: 681a ldr r2, [r3, #0] 800f3fc: 697b ldr r3, [r7, #20] 800f3fe: 3318 adds r3, #24 800f400: 011b lsls r3, r3, #4 800f402: 4413 add r3, r2 800f404: 681b ldr r3, [r3, #0] 800f406: 68fa ldr r2, [r7, #12] 800f408: 6811 ldr r1, [r2, #0] 800f40a: f043 0201 orr.w r2, r3, #1 800f40e: 697b ldr r3, [r7, #20] 800f410: 3318 adds r3, #24 800f412: 011b lsls r3, r3, #4 800f414: 440b add r3, r1 800f416: 601a str r2, [r3, #0] /* Return function status */ return HAL_OK; 800f418: 2300 movs r3, #0 800f41a: e00e b.n 800f43a } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800f41c: 68fb ldr r3, [r7, #12] 800f41e: 6a5b ldr r3, [r3, #36] @ 0x24 800f420: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800f424: 68fb ldr r3, [r7, #12] 800f426: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f428: 2301 movs r3, #1 800f42a: e006 b.n 800f43a } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f42c: 68fb ldr r3, [r7, #12] 800f42e: 6a5b ldr r3, [r3, #36] @ 0x24 800f430: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f434: 68fb ldr r3, [r7, #12] 800f436: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f438: 2301 movs r3, #1 } } 800f43a: 4618 mov r0, r3 800f43c: 3724 adds r7, #36 @ 0x24 800f43e: 46bd mov sp, r7 800f440: bc80 pop {r7} 800f442: 4770 bx lr 0800f444 : * @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) { 800f444: b480 push {r7} 800f446: b085 sub sp, #20 800f448: af00 add r7, sp, #0 800f44a: 6078 str r0, [r7, #4] uint32_t freelevel = 0U; 800f44c: 2300 movs r3, #0 800f44e: 60fb str r3, [r7, #12] HAL_CAN_StateTypeDef state = hcan->State; 800f450: 687b ldr r3, [r7, #4] 800f452: f893 3020 ldrb.w r3, [r3, #32] 800f456: 72fb strb r3, [r7, #11] if ((state == HAL_CAN_STATE_READY) || 800f458: 7afb ldrb r3, [r7, #11] 800f45a: 2b01 cmp r3, #1 800f45c: d002 beq.n 800f464 800f45e: 7afb ldrb r3, [r7, #11] 800f460: 2b02 cmp r3, #2 800f462: d11d bne.n 800f4a0 (state == HAL_CAN_STATE_LISTENING)) { /* Check Tx Mailbox 0 status */ if ((hcan->Instance->TSR & CAN_TSR_TME0) != 0U) 800f464: 687b ldr r3, [r7, #4] 800f466: 681b ldr r3, [r3, #0] 800f468: 689b ldr r3, [r3, #8] 800f46a: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 800f46e: 2b00 cmp r3, #0 800f470: d002 beq.n 800f478 { freelevel++; 800f472: 68fb ldr r3, [r7, #12] 800f474: 3301 adds r3, #1 800f476: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 1 status */ if ((hcan->Instance->TSR & CAN_TSR_TME1) != 0U) 800f478: 687b ldr r3, [r7, #4] 800f47a: 681b ldr r3, [r3, #0] 800f47c: 689b ldr r3, [r3, #8] 800f47e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 800f482: 2b00 cmp r3, #0 800f484: d002 beq.n 800f48c { freelevel++; 800f486: 68fb ldr r3, [r7, #12] 800f488: 3301 adds r3, #1 800f48a: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 2 status */ if ((hcan->Instance->TSR & CAN_TSR_TME2) != 0U) 800f48c: 687b ldr r3, [r7, #4] 800f48e: 681b ldr r3, [r3, #0] 800f490: 689b ldr r3, [r3, #8] 800f492: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 800f496: 2b00 cmp r3, #0 800f498: d002 beq.n 800f4a0 { freelevel++; 800f49a: 68fb ldr r3, [r7, #12] 800f49c: 3301 adds r3, #1 800f49e: 60fb str r3, [r7, #12] } } /* Return Tx Mailboxes free level */ return freelevel; 800f4a0: 68fb ldr r3, [r7, #12] } 800f4a2: 4618 mov r0, r3 800f4a4: 3714 adds r7, #20 800f4a6: 46bd mov sp, r7 800f4a8: bc80 pop {r7} 800f4aa: 4770 bx lr 0800f4ac : * @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[]) { 800f4ac: b480 push {r7} 800f4ae: b087 sub sp, #28 800f4b0: af00 add r7, sp, #0 800f4b2: 60f8 str r0, [r7, #12] 800f4b4: 60b9 str r1, [r7, #8] 800f4b6: 607a str r2, [r7, #4] 800f4b8: 603b str r3, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; 800f4ba: 68fb ldr r3, [r7, #12] 800f4bc: f893 3020 ldrb.w r3, [r3, #32] 800f4c0: 75fb strb r3, [r7, #23] assert_param(IS_CAN_RX_FIFO(RxFifo)); if ((state == HAL_CAN_STATE_READY) || 800f4c2: 7dfb ldrb r3, [r7, #23] 800f4c4: 2b01 cmp r3, #1 800f4c6: d003 beq.n 800f4d0 800f4c8: 7dfb ldrb r3, [r7, #23] 800f4ca: 2b02 cmp r3, #2 800f4cc: f040 8103 bne.w 800f6d6 (state == HAL_CAN_STATE_LISTENING)) { /* Check the Rx FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ 800f4d0: 68bb ldr r3, [r7, #8] 800f4d2: 2b00 cmp r3, #0 800f4d4: d10e bne.n 800f4f4 { /* Check that the Rx FIFO 0 is not empty */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) 800f4d6: 68fb ldr r3, [r7, #12] 800f4d8: 681b ldr r3, [r3, #0] 800f4da: 68db ldr r3, [r3, #12] 800f4dc: f003 0303 and.w r3, r3, #3 800f4e0: 2b00 cmp r3, #0 800f4e2: d116 bne.n 800f512 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800f4e4: 68fb ldr r3, [r7, #12] 800f4e6: 6a5b ldr r3, [r3, #36] @ 0x24 800f4e8: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800f4ec: 68fb ldr r3, [r7, #12] 800f4ee: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f4f0: 2301 movs r3, #1 800f4f2: e0f7 b.n 800f6e4 } } 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) 800f4f4: 68fb ldr r3, [r7, #12] 800f4f6: 681b ldr r3, [r3, #0] 800f4f8: 691b ldr r3, [r3, #16] 800f4fa: f003 0303 and.w r3, r3, #3 800f4fe: 2b00 cmp r3, #0 800f500: d107 bne.n 800f512 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 800f502: 68fb ldr r3, [r7, #12] 800f504: 6a5b ldr r3, [r3, #36] @ 0x24 800f506: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 800f50a: 68fb ldr r3, [r7, #12] 800f50c: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f50e: 2301 movs r3, #1 800f510: e0e8 b.n 800f6e4 } } /* Get the header */ pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; 800f512: 68fb ldr r3, [r7, #12] 800f514: 681a ldr r2, [r3, #0] 800f516: 68bb ldr r3, [r7, #8] 800f518: 331b adds r3, #27 800f51a: 011b lsls r3, r3, #4 800f51c: 4413 add r3, r2 800f51e: 681b ldr r3, [r3, #0] 800f520: f003 0204 and.w r2, r3, #4 800f524: 687b ldr r3, [r7, #4] 800f526: 609a str r2, [r3, #8] if (pHeader->IDE == CAN_ID_STD) 800f528: 687b ldr r3, [r7, #4] 800f52a: 689b ldr r3, [r3, #8] 800f52c: 2b00 cmp r3, #0 800f52e: d10c bne.n 800f54a { pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; 800f530: 68fb ldr r3, [r7, #12] 800f532: 681a ldr r2, [r3, #0] 800f534: 68bb ldr r3, [r7, #8] 800f536: 331b adds r3, #27 800f538: 011b lsls r3, r3, #4 800f53a: 4413 add r3, r2 800f53c: 681b ldr r3, [r3, #0] 800f53e: 0d5b lsrs r3, r3, #21 800f540: f3c3 020a ubfx r2, r3, #0, #11 800f544: 687b ldr r3, [r7, #4] 800f546: 601a str r2, [r3, #0] 800f548: e00b b.n 800f562 } else { pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; 800f54a: 68fb ldr r3, [r7, #12] 800f54c: 681a ldr r2, [r3, #0] 800f54e: 68bb ldr r3, [r7, #8] 800f550: 331b adds r3, #27 800f552: 011b lsls r3, r3, #4 800f554: 4413 add r3, r2 800f556: 681b ldr r3, [r3, #0] 800f558: 08db lsrs r3, r3, #3 800f55a: f023 4260 bic.w r2, r3, #3758096384 @ 0xe0000000 pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & 800f55e: 687b ldr r3, [r7, #4] 800f560: 605a str r2, [r3, #4] } pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); 800f562: 68fb ldr r3, [r7, #12] 800f564: 681a ldr r2, [r3, #0] 800f566: 68bb ldr r3, [r7, #8] 800f568: 331b adds r3, #27 800f56a: 011b lsls r3, r3, #4 800f56c: 4413 add r3, r2 800f56e: 681b ldr r3, [r3, #0] 800f570: f003 0202 and.w r2, r3, #2 800f574: 687b ldr r3, [r7, #4] 800f576: 60da str r2, [r3, #12] if (((CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos) >= 8U) 800f578: 68fb ldr r3, [r7, #12] 800f57a: 681a ldr r2, [r3, #0] 800f57c: 68bb ldr r3, [r7, #8] 800f57e: 331b adds r3, #27 800f580: 011b lsls r3, r3, #4 800f582: 4413 add r3, r2 800f584: 3304 adds r3, #4 800f586: 681b ldr r3, [r3, #0] 800f588: f003 0308 and.w r3, r3, #8 800f58c: 2b00 cmp r3, #0 800f58e: d003 beq.n 800f598 { /* Truncate DLC to 8 if received field is over range */ pHeader->DLC = 8U; 800f590: 687b ldr r3, [r7, #4] 800f592: 2208 movs r2, #8 800f594: 611a str r2, [r3, #16] 800f596: e00b b.n 800f5b0 } else { pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; 800f598: 68fb ldr r3, [r7, #12] 800f59a: 681a ldr r2, [r3, #0] 800f59c: 68bb ldr r3, [r7, #8] 800f59e: 331b adds r3, #27 800f5a0: 011b lsls r3, r3, #4 800f5a2: 4413 add r3, r2 800f5a4: 3304 adds r3, #4 800f5a6: 681b ldr r3, [r3, #0] 800f5a8: f003 020f and.w r2, r3, #15 800f5ac: 687b ldr r3, [r7, #4] 800f5ae: 611a str r2, [r3, #16] } pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; 800f5b0: 68fb ldr r3, [r7, #12] 800f5b2: 681a ldr r2, [r3, #0] 800f5b4: 68bb ldr r3, [r7, #8] 800f5b6: 331b adds r3, #27 800f5b8: 011b lsls r3, r3, #4 800f5ba: 4413 add r3, r2 800f5bc: 3304 adds r3, #4 800f5be: 681b ldr r3, [r3, #0] 800f5c0: 0a1b lsrs r3, r3, #8 800f5c2: b2da uxtb r2, r3 800f5c4: 687b ldr r3, [r7, #4] 800f5c6: 619a str r2, [r3, #24] pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; 800f5c8: 68fb ldr r3, [r7, #12] 800f5ca: 681a ldr r2, [r3, #0] 800f5cc: 68bb ldr r3, [r7, #8] 800f5ce: 331b adds r3, #27 800f5d0: 011b lsls r3, r3, #4 800f5d2: 4413 add r3, r2 800f5d4: 3304 adds r3, #4 800f5d6: 681b ldr r3, [r3, #0] 800f5d8: 0c1b lsrs r3, r3, #16 800f5da: b29a uxth r2, r3 800f5dc: 687b ldr r3, [r7, #4] 800f5de: 615a str r2, [r3, #20] /* Get the data */ aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); 800f5e0: 68fb ldr r3, [r7, #12] 800f5e2: 681a ldr r2, [r3, #0] 800f5e4: 68bb ldr r3, [r7, #8] 800f5e6: 011b lsls r3, r3, #4 800f5e8: 4413 add r3, r2 800f5ea: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f5ee: 681b ldr r3, [r3, #0] 800f5f0: b2da uxtb r2, r3 800f5f2: 683b ldr r3, [r7, #0] 800f5f4: 701a strb r2, [r3, #0] aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); 800f5f6: 68fb ldr r3, [r7, #12] 800f5f8: 681a ldr r2, [r3, #0] 800f5fa: 68bb ldr r3, [r7, #8] 800f5fc: 011b lsls r3, r3, #4 800f5fe: 4413 add r3, r2 800f600: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f604: 681b ldr r3, [r3, #0] 800f606: 0a1a lsrs r2, r3, #8 800f608: 683b ldr r3, [r7, #0] 800f60a: 3301 adds r3, #1 800f60c: b2d2 uxtb r2, r2 800f60e: 701a strb r2, [r3, #0] aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); 800f610: 68fb ldr r3, [r7, #12] 800f612: 681a ldr r2, [r3, #0] 800f614: 68bb ldr r3, [r7, #8] 800f616: 011b lsls r3, r3, #4 800f618: 4413 add r3, r2 800f61a: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f61e: 681b ldr r3, [r3, #0] 800f620: 0c1a lsrs r2, r3, #16 800f622: 683b ldr r3, [r7, #0] 800f624: 3302 adds r3, #2 800f626: b2d2 uxtb r2, r2 800f628: 701a strb r2, [r3, #0] aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); 800f62a: 68fb ldr r3, [r7, #12] 800f62c: 681a ldr r2, [r3, #0] 800f62e: 68bb ldr r3, [r7, #8] 800f630: 011b lsls r3, r3, #4 800f632: 4413 add r3, r2 800f634: f503 73dc add.w r3, r3, #440 @ 0x1b8 800f638: 681b ldr r3, [r3, #0] 800f63a: 0e1a lsrs r2, r3, #24 800f63c: 683b ldr r3, [r7, #0] 800f63e: 3303 adds r3, #3 800f640: b2d2 uxtb r2, r2 800f642: 701a strb r2, [r3, #0] aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); 800f644: 68fb ldr r3, [r7, #12] 800f646: 681a ldr r2, [r3, #0] 800f648: 68bb ldr r3, [r7, #8] 800f64a: 011b lsls r3, r3, #4 800f64c: 4413 add r3, r2 800f64e: f503 73de add.w r3, r3, #444 @ 0x1bc 800f652: 681a ldr r2, [r3, #0] 800f654: 683b ldr r3, [r7, #0] 800f656: 3304 adds r3, #4 800f658: b2d2 uxtb r2, r2 800f65a: 701a strb r2, [r3, #0] aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); 800f65c: 68fb ldr r3, [r7, #12] 800f65e: 681a ldr r2, [r3, #0] 800f660: 68bb ldr r3, [r7, #8] 800f662: 011b lsls r3, r3, #4 800f664: 4413 add r3, r2 800f666: f503 73de add.w r3, r3, #444 @ 0x1bc 800f66a: 681b ldr r3, [r3, #0] 800f66c: 0a1a lsrs r2, r3, #8 800f66e: 683b ldr r3, [r7, #0] 800f670: 3305 adds r3, #5 800f672: b2d2 uxtb r2, r2 800f674: 701a strb r2, [r3, #0] aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); 800f676: 68fb ldr r3, [r7, #12] 800f678: 681a ldr r2, [r3, #0] 800f67a: 68bb ldr r3, [r7, #8] 800f67c: 011b lsls r3, r3, #4 800f67e: 4413 add r3, r2 800f680: f503 73de add.w r3, r3, #444 @ 0x1bc 800f684: 681b ldr r3, [r3, #0] 800f686: 0c1a lsrs r2, r3, #16 800f688: 683b ldr r3, [r7, #0] 800f68a: 3306 adds r3, #6 800f68c: b2d2 uxtb r2, r2 800f68e: 701a strb r2, [r3, #0] aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); 800f690: 68fb ldr r3, [r7, #12] 800f692: 681a ldr r2, [r3, #0] 800f694: 68bb ldr r3, [r7, #8] 800f696: 011b lsls r3, r3, #4 800f698: 4413 add r3, r2 800f69a: f503 73de add.w r3, r3, #444 @ 0x1bc 800f69e: 681b ldr r3, [r3, #0] 800f6a0: 0e1a lsrs r2, r3, #24 800f6a2: 683b ldr r3, [r7, #0] 800f6a4: 3307 adds r3, #7 800f6a6: b2d2 uxtb r2, r2 800f6a8: 701a strb r2, [r3, #0] /* Release the FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ 800f6aa: 68bb ldr r3, [r7, #8] 800f6ac: 2b00 cmp r3, #0 800f6ae: d108 bne.n 800f6c2 { /* Release RX FIFO 0 */ SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); 800f6b0: 68fb ldr r3, [r7, #12] 800f6b2: 681b ldr r3, [r3, #0] 800f6b4: 68da ldr r2, [r3, #12] 800f6b6: 68fb ldr r3, [r7, #12] 800f6b8: 681b ldr r3, [r3, #0] 800f6ba: f042 0220 orr.w r2, r2, #32 800f6be: 60da str r2, [r3, #12] 800f6c0: e007 b.n 800f6d2 } else /* Rx element is assigned to Rx FIFO 1 */ { /* Release RX FIFO 1 */ SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); 800f6c2: 68fb ldr r3, [r7, #12] 800f6c4: 681b ldr r3, [r3, #0] 800f6c6: 691a ldr r2, [r3, #16] 800f6c8: 68fb ldr r3, [r7, #12] 800f6ca: 681b ldr r3, [r3, #0] 800f6cc: f042 0220 orr.w r2, r2, #32 800f6d0: 611a str r2, [r3, #16] } /* Return function status */ return HAL_OK; 800f6d2: 2300 movs r3, #0 800f6d4: e006 b.n 800f6e4 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f6d6: 68fb ldr r3, [r7, #12] 800f6d8: 6a5b ldr r3, [r3, #36] @ 0x24 800f6da: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f6de: 68fb ldr r3, [r7, #12] 800f6e0: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f6e2: 2301 movs r3, #1 } } 800f6e4: 4618 mov r0, r3 800f6e6: 371c adds r7, #28 800f6e8: 46bd mov sp, r7 800f6ea: bc80 pop {r7} 800f6ec: 4770 bx lr 0800f6ee : * @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) { 800f6ee: b480 push {r7} 800f6f0: b085 sub sp, #20 800f6f2: af00 add r7, sp, #0 800f6f4: 6078 str r0, [r7, #4] 800f6f6: 6039 str r1, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; 800f6f8: 687b ldr r3, [r7, #4] 800f6fa: f893 3020 ldrb.w r3, [r3, #32] 800f6fe: 73fb strb r3, [r7, #15] /* Check function parameters */ assert_param(IS_CAN_IT(ActiveITs)); if ((state == HAL_CAN_STATE_READY) || 800f700: 7bfb ldrb r3, [r7, #15] 800f702: 2b01 cmp r3, #1 800f704: d002 beq.n 800f70c 800f706: 7bfb ldrb r3, [r7, #15] 800f708: 2b02 cmp r3, #2 800f70a: d109 bne.n 800f720 (state == HAL_CAN_STATE_LISTENING)) { /* Enable the selected interrupts */ __HAL_CAN_ENABLE_IT(hcan, ActiveITs); 800f70c: 687b ldr r3, [r7, #4] 800f70e: 681b ldr r3, [r3, #0] 800f710: 6959 ldr r1, [r3, #20] 800f712: 687b ldr r3, [r7, #4] 800f714: 681b ldr r3, [r3, #0] 800f716: 683a ldr r2, [r7, #0] 800f718: 430a orrs r2, r1 800f71a: 615a str r2, [r3, #20] /* Return function status */ return HAL_OK; 800f71c: 2300 movs r3, #0 800f71e: e006 b.n 800f72e } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 800f720: 687b ldr r3, [r7, #4] 800f722: 6a5b ldr r3, [r3, #36] @ 0x24 800f724: f443 2280 orr.w r2, r3, #262144 @ 0x40000 800f728: 687b ldr r3, [r7, #4] 800f72a: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800f72c: 2301 movs r3, #1 } } 800f72e: 4618 mov r0, r3 800f730: 3714 adds r7, #20 800f732: 46bd mov sp, r7 800f734: bc80 pop {r7} 800f736: 4770 bx lr 0800f738 : * @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) { 800f738: b580 push {r7, lr} 800f73a: b08a sub sp, #40 @ 0x28 800f73c: af00 add r7, sp, #0 800f73e: 6078 str r0, [r7, #4] uint32_t errorcode = HAL_CAN_ERROR_NONE; 800f740: 2300 movs r3, #0 800f742: 627b str r3, [r7, #36] @ 0x24 uint32_t interrupts = READ_REG(hcan->Instance->IER); 800f744: 687b ldr r3, [r7, #4] 800f746: 681b ldr r3, [r3, #0] 800f748: 695b ldr r3, [r3, #20] 800f74a: 623b str r3, [r7, #32] uint32_t msrflags = READ_REG(hcan->Instance->MSR); 800f74c: 687b ldr r3, [r7, #4] 800f74e: 681b ldr r3, [r3, #0] 800f750: 685b ldr r3, [r3, #4] 800f752: 61fb str r3, [r7, #28] uint32_t tsrflags = READ_REG(hcan->Instance->TSR); 800f754: 687b ldr r3, [r7, #4] 800f756: 681b ldr r3, [r3, #0] 800f758: 689b ldr r3, [r3, #8] 800f75a: 61bb str r3, [r7, #24] uint32_t rf0rflags = READ_REG(hcan->Instance->RF0R); 800f75c: 687b ldr r3, [r7, #4] 800f75e: 681b ldr r3, [r3, #0] 800f760: 68db ldr r3, [r3, #12] 800f762: 617b str r3, [r7, #20] uint32_t rf1rflags = READ_REG(hcan->Instance->RF1R); 800f764: 687b ldr r3, [r7, #4] 800f766: 681b ldr r3, [r3, #0] 800f768: 691b ldr r3, [r3, #16] 800f76a: 613b str r3, [r7, #16] uint32_t esrflags = READ_REG(hcan->Instance->ESR); 800f76c: 687b ldr r3, [r7, #4] 800f76e: 681b ldr r3, [r3, #0] 800f770: 699b ldr r3, [r3, #24] 800f772: 60fb str r3, [r7, #12] /* Transmit Mailbox empty interrupt management *****************************/ if ((interrupts & CAN_IT_TX_MAILBOX_EMPTY) != 0U) 800f774: 6a3b ldr r3, [r7, #32] 800f776: f003 0301 and.w r3, r3, #1 800f77a: 2b00 cmp r3, #0 800f77c: d07c beq.n 800f878 { /* Transmit Mailbox 0 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP0) != 0U) 800f77e: 69bb ldr r3, [r7, #24] 800f780: f003 0301 and.w r3, r3, #1 800f784: 2b00 cmp r3, #0 800f786: d023 beq.n 800f7d0 { /* Clear the Transmission Complete flag (and TXOK0,ALST0,TERR0 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP0); 800f788: 687b ldr r3, [r7, #4] 800f78a: 681b ldr r3, [r3, #0] 800f78c: 2201 movs r2, #1 800f78e: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK0) != 0U) 800f790: 69bb ldr r3, [r7, #24] 800f792: f003 0302 and.w r3, r3, #2 800f796: 2b00 cmp r3, #0 800f798: d003 beq.n 800f7a2 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0CompleteCallback(hcan); 800f79a: 6878 ldr r0, [r7, #4] 800f79c: f000 f983 bl 800faa6 800f7a0: e016 b.n 800f7d0 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST0) != 0U) 800f7a2: 69bb ldr r3, [r7, #24] 800f7a4: f003 0304 and.w r3, r3, #4 800f7a8: 2b00 cmp r3, #0 800f7aa: d004 beq.n 800f7b6 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST0; 800f7ac: 6a7b ldr r3, [r7, #36] @ 0x24 800f7ae: f443 6300 orr.w r3, r3, #2048 @ 0x800 800f7b2: 627b str r3, [r7, #36] @ 0x24 800f7b4: e00c b.n 800f7d0 } else if ((tsrflags & CAN_TSR_TERR0) != 0U) 800f7b6: 69bb ldr r3, [r7, #24] 800f7b8: f003 0308 and.w r3, r3, #8 800f7bc: 2b00 cmp r3, #0 800f7be: d004 beq.n 800f7ca { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR0; 800f7c0: 6a7b ldr r3, [r7, #36] @ 0x24 800f7c2: f443 5380 orr.w r3, r3, #4096 @ 0x1000 800f7c6: 627b str r3, [r7, #36] @ 0x24 800f7c8: e002 b.n 800f7d0 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0AbortCallback(hcan); 800f7ca: 6878 ldr r0, [r7, #4] 800f7cc: f000 f986 bl 800fadc } } } /* Transmit Mailbox 1 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP1) != 0U) 800f7d0: 69bb ldr r3, [r7, #24] 800f7d2: f403 7380 and.w r3, r3, #256 @ 0x100 800f7d6: 2b00 cmp r3, #0 800f7d8: d024 beq.n 800f824 { /* Clear the Transmission Complete flag (and TXOK1,ALST1,TERR1 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP1); 800f7da: 687b ldr r3, [r7, #4] 800f7dc: 681b ldr r3, [r3, #0] 800f7de: f44f 7280 mov.w r2, #256 @ 0x100 800f7e2: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK1) != 0U) 800f7e4: 69bb ldr r3, [r7, #24] 800f7e6: f403 7300 and.w r3, r3, #512 @ 0x200 800f7ea: 2b00 cmp r3, #0 800f7ec: d003 beq.n 800f7f6 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1CompleteCallback(hcan); 800f7ee: 6878 ldr r0, [r7, #4] 800f7f0: f000 f962 bl 800fab8 800f7f4: e016 b.n 800f824 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST1) != 0U) 800f7f6: 69bb ldr r3, [r7, #24] 800f7f8: f403 6380 and.w r3, r3, #1024 @ 0x400 800f7fc: 2b00 cmp r3, #0 800f7fe: d004 beq.n 800f80a { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST1; 800f800: 6a7b ldr r3, [r7, #36] @ 0x24 800f802: f443 5300 orr.w r3, r3, #8192 @ 0x2000 800f806: 627b str r3, [r7, #36] @ 0x24 800f808: e00c b.n 800f824 } else if ((tsrflags & CAN_TSR_TERR1) != 0U) 800f80a: 69bb ldr r3, [r7, #24] 800f80c: f403 6300 and.w r3, r3, #2048 @ 0x800 800f810: 2b00 cmp r3, #0 800f812: d004 beq.n 800f81e { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR1; 800f814: 6a7b ldr r3, [r7, #36] @ 0x24 800f816: f443 4380 orr.w r3, r3, #16384 @ 0x4000 800f81a: 627b str r3, [r7, #36] @ 0x24 800f81c: e002 b.n 800f824 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1AbortCallback(hcan); 800f81e: 6878 ldr r0, [r7, #4] 800f820: f000 f965 bl 800faee } } } /* Transmit Mailbox 2 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP2) != 0U) 800f824: 69bb ldr r3, [r7, #24] 800f826: f403 3380 and.w r3, r3, #65536 @ 0x10000 800f82a: 2b00 cmp r3, #0 800f82c: d024 beq.n 800f878 { /* Clear the Transmission Complete flag (and TXOK2,ALST2,TERR2 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP2); 800f82e: 687b ldr r3, [r7, #4] 800f830: 681b ldr r3, [r3, #0] 800f832: f44f 3280 mov.w r2, #65536 @ 0x10000 800f836: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK2) != 0U) 800f838: 69bb ldr r3, [r7, #24] 800f83a: f403 3300 and.w r3, r3, #131072 @ 0x20000 800f83e: 2b00 cmp r3, #0 800f840: d003 beq.n 800f84a #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2CompleteCallback(hcan); 800f842: 6878 ldr r0, [r7, #4] 800f844: f000 f941 bl 800faca 800f848: e016 b.n 800f878 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST2) != 0U) 800f84a: 69bb ldr r3, [r7, #24] 800f84c: f403 2380 and.w r3, r3, #262144 @ 0x40000 800f850: 2b00 cmp r3, #0 800f852: d004 beq.n 800f85e { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST2; 800f854: 6a7b ldr r3, [r7, #36] @ 0x24 800f856: f443 4300 orr.w r3, r3, #32768 @ 0x8000 800f85a: 627b str r3, [r7, #36] @ 0x24 800f85c: e00c b.n 800f878 } else if ((tsrflags & CAN_TSR_TERR2) != 0U) 800f85e: 69bb ldr r3, [r7, #24] 800f860: f403 2300 and.w r3, r3, #524288 @ 0x80000 800f864: 2b00 cmp r3, #0 800f866: d004 beq.n 800f872 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR2; 800f868: 6a7b ldr r3, [r7, #36] @ 0x24 800f86a: f443 3380 orr.w r3, r3, #65536 @ 0x10000 800f86e: 627b str r3, [r7, #36] @ 0x24 800f870: e002 b.n 800f878 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2AbortCallback(hcan); 800f872: 6878 ldr r0, [r7, #4] 800f874: f000 f944 bl 800fb00 } } } /* Receive FIFO 0 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO0_OVERRUN) != 0U) 800f878: 6a3b ldr r3, [r7, #32] 800f87a: f003 0308 and.w r3, r3, #8 800f87e: 2b00 cmp r3, #0 800f880: d00c beq.n 800f89c { if ((rf0rflags & CAN_RF0R_FOVR0) != 0U) 800f882: 697b ldr r3, [r7, #20] 800f884: f003 0310 and.w r3, r3, #16 800f888: 2b00 cmp r3, #0 800f88a: d007 beq.n 800f89c { /* Set CAN error code to Rx Fifo 0 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV0; 800f88c: 6a7b ldr r3, [r7, #36] @ 0x24 800f88e: f443 7300 orr.w r3, r3, #512 @ 0x200 800f892: 627b str r3, [r7, #36] @ 0x24 /* Clear FIFO0 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV0); 800f894: 687b ldr r3, [r7, #4] 800f896: 681b ldr r3, [r3, #0] 800f898: 2210 movs r2, #16 800f89a: 60da str r2, [r3, #12] } } /* Receive FIFO 0 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U) 800f89c: 6a3b ldr r3, [r7, #32] 800f89e: f003 0304 and.w r3, r3, #4 800f8a2: 2b00 cmp r3, #0 800f8a4: d00b beq.n 800f8be { if ((rf0rflags & CAN_RF0R_FULL0) != 0U) 800f8a6: 697b ldr r3, [r7, #20] 800f8a8: f003 0308 and.w r3, r3, #8 800f8ac: 2b00 cmp r3, #0 800f8ae: d006 beq.n 800f8be { /* Clear FIFO 0 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF0); 800f8b0: 687b ldr r3, [r7, #4] 800f8b2: 681b ldr r3, [r3, #0] 800f8b4: 2208 movs r2, #8 800f8b6: 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); 800f8b8: 6878 ldr r0, [r7, #4] 800f8ba: f000 f933 bl 800fb24 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 0 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U) 800f8be: 6a3b ldr r3, [r7, #32] 800f8c0: f003 0302 and.w r3, r3, #2 800f8c4: 2b00 cmp r3, #0 800f8c6: d009 beq.n 800f8dc { /* Check if message is still pending */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U) 800f8c8: 687b ldr r3, [r7, #4] 800f8ca: 681b ldr r3, [r3, #0] 800f8cc: 68db ldr r3, [r3, #12] 800f8ce: f003 0303 and.w r3, r3, #3 800f8d2: 2b00 cmp r3, #0 800f8d4: d002 beq.n 800f8dc #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0MsgPendingCallback(hcan); 800f8d6: 6878 ldr r0, [r7, #4] 800f8d8: f000 f91b bl 800fb12 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO1_OVERRUN) != 0U) 800f8dc: 6a3b ldr r3, [r7, #32] 800f8de: f003 0340 and.w r3, r3, #64 @ 0x40 800f8e2: 2b00 cmp r3, #0 800f8e4: d00c beq.n 800f900 { if ((rf1rflags & CAN_RF1R_FOVR1) != 0U) 800f8e6: 693b ldr r3, [r7, #16] 800f8e8: f003 0310 and.w r3, r3, #16 800f8ec: 2b00 cmp r3, #0 800f8ee: d007 beq.n 800f900 { /* Set CAN error code to Rx Fifo 1 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV1; 800f8f0: 6a7b ldr r3, [r7, #36] @ 0x24 800f8f2: f443 6380 orr.w r3, r3, #1024 @ 0x400 800f8f6: 627b str r3, [r7, #36] @ 0x24 /* Clear FIFO1 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV1); 800f8f8: 687b ldr r3, [r7, #4] 800f8fa: 681b ldr r3, [r3, #0] 800f8fc: 2210 movs r2, #16 800f8fe: 611a str r2, [r3, #16] } } /* Receive FIFO 1 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO1_FULL) != 0U) 800f900: 6a3b ldr r3, [r7, #32] 800f902: f003 0320 and.w r3, r3, #32 800f906: 2b00 cmp r3, #0 800f908: d00b beq.n 800f922 { if ((rf1rflags & CAN_RF1R_FULL1) != 0U) 800f90a: 693b ldr r3, [r7, #16] 800f90c: f003 0308 and.w r3, r3, #8 800f910: 2b00 cmp r3, #0 800f912: d006 beq.n 800f922 { /* Clear FIFO 1 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF1); 800f914: 687b ldr r3, [r7, #4] 800f916: 681b ldr r3, [r3, #0] 800f918: 2208 movs r2, #8 800f91a: 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); 800f91c: 6878 ldr r0, [r7, #4] 800f91e: f000 f90a bl 800fb36 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO1_MSG_PENDING) != 0U) 800f922: 6a3b ldr r3, [r7, #32] 800f924: f003 0310 and.w r3, r3, #16 800f928: 2b00 cmp r3, #0 800f92a: d009 beq.n 800f940 { /* Check if message is still pending */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) != 0U) 800f92c: 687b ldr r3, [r7, #4] 800f92e: 681b ldr r3, [r3, #0] 800f930: 691b ldr r3, [r3, #16] 800f932: f003 0303 and.w r3, r3, #3 800f936: 2b00 cmp r3, #0 800f938: d002 beq.n 800f940 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1MsgPendingCallback(hcan); 800f93a: 6878 ldr r0, [r7, #4] 800f93c: f7fb fa08 bl 800ad50 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Sleep interrupt management *********************************************/ if ((interrupts & CAN_IT_SLEEP_ACK) != 0U) 800f940: 6a3b ldr r3, [r7, #32] 800f942: f403 3300 and.w r3, r3, #131072 @ 0x20000 800f946: 2b00 cmp r3, #0 800f948: d00b beq.n 800f962 { if ((msrflags & CAN_MSR_SLAKI) != 0U) 800f94a: 69fb ldr r3, [r7, #28] 800f94c: f003 0310 and.w r3, r3, #16 800f950: 2b00 cmp r3, #0 800f952: d006 beq.n 800f962 { /* Clear Sleep interrupt Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_SLAKI); 800f954: 687b ldr r3, [r7, #4] 800f956: 681b ldr r3, [r3, #0] 800f958: 2210 movs r2, #16 800f95a: 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); 800f95c: 6878 ldr r0, [r7, #4] 800f95e: f000 f8f3 bl 800fb48 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* WakeUp interrupt management *********************************************/ if ((interrupts & CAN_IT_WAKEUP) != 0U) 800f962: 6a3b ldr r3, [r7, #32] 800f964: f403 3380 and.w r3, r3, #65536 @ 0x10000 800f968: 2b00 cmp r3, #0 800f96a: d00b beq.n 800f984 { if ((msrflags & CAN_MSR_WKUI) != 0U) 800f96c: 69fb ldr r3, [r7, #28] 800f96e: f003 0308 and.w r3, r3, #8 800f972: 2b00 cmp r3, #0 800f974: d006 beq.n 800f984 { /* Clear WakeUp Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_WKU); 800f976: 687b ldr r3, [r7, #4] 800f978: 681b ldr r3, [r3, #0] 800f97a: 2208 movs r2, #8 800f97c: 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); 800f97e: 6878 ldr r0, [r7, #4] 800f980: f000 f8eb bl 800fb5a #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Error interrupts management *********************************************/ if ((interrupts & CAN_IT_ERROR) != 0U) 800f984: 6a3b ldr r3, [r7, #32] 800f986: f403 4300 and.w r3, r3, #32768 @ 0x8000 800f98a: 2b00 cmp r3, #0 800f98c: d07b beq.n 800fa86 { if ((msrflags & CAN_MSR_ERRI) != 0U) 800f98e: 69fb ldr r3, [r7, #28] 800f990: f003 0304 and.w r3, r3, #4 800f994: 2b00 cmp r3, #0 800f996: d072 beq.n 800fa7e { /* Check Error Warning Flag */ if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && 800f998: 6a3b ldr r3, [r7, #32] 800f99a: f403 7380 and.w r3, r3, #256 @ 0x100 800f99e: 2b00 cmp r3, #0 800f9a0: d008 beq.n 800f9b4 ((esrflags & CAN_ESR_EWGF) != 0U)) 800f9a2: 68fb ldr r3, [r7, #12] 800f9a4: f003 0301 and.w r3, r3, #1 if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && 800f9a8: 2b00 cmp r3, #0 800f9aa: d003 beq.n 800f9b4 { /* Set CAN error code to Error Warning */ errorcode |= HAL_CAN_ERROR_EWG; 800f9ac: 6a7b ldr r3, [r7, #36] @ 0x24 800f9ae: f043 0301 orr.w r3, r3, #1 800f9b2: 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) && 800f9b4: 6a3b ldr r3, [r7, #32] 800f9b6: f403 7300 and.w r3, r3, #512 @ 0x200 800f9ba: 2b00 cmp r3, #0 800f9bc: d008 beq.n 800f9d0 ((esrflags & CAN_ESR_EPVF) != 0U)) 800f9be: 68fb ldr r3, [r7, #12] 800f9c0: f003 0302 and.w r3, r3, #2 if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && 800f9c4: 2b00 cmp r3, #0 800f9c6: d003 beq.n 800f9d0 { /* Set CAN error code to Error Passive */ errorcode |= HAL_CAN_ERROR_EPV; 800f9c8: 6a7b ldr r3, [r7, #36] @ 0x24 800f9ca: f043 0302 orr.w r3, r3, #2 800f9ce: 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) && 800f9d0: 6a3b ldr r3, [r7, #32] 800f9d2: f403 6380 and.w r3, r3, #1024 @ 0x400 800f9d6: 2b00 cmp r3, #0 800f9d8: d008 beq.n 800f9ec ((esrflags & CAN_ESR_BOFF) != 0U)) 800f9da: 68fb ldr r3, [r7, #12] 800f9dc: f003 0304 and.w r3, r3, #4 if (((interrupts & CAN_IT_BUSOFF) != 0U) && 800f9e0: 2b00 cmp r3, #0 800f9e2: d003 beq.n 800f9ec { /* Set CAN error code to Bus-Off */ errorcode |= HAL_CAN_ERROR_BOF; 800f9e4: 6a7b ldr r3, [r7, #36] @ 0x24 800f9e6: f043 0304 orr.w r3, r3, #4 800f9ea: 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) && 800f9ec: 6a3b ldr r3, [r7, #32] 800f9ee: f403 6300 and.w r3, r3, #2048 @ 0x800 800f9f2: 2b00 cmp r3, #0 800f9f4: d043 beq.n 800fa7e ((esrflags & CAN_ESR_LEC) != 0U)) 800f9f6: 68fb ldr r3, [r7, #12] 800f9f8: f003 0370 and.w r3, r3, #112 @ 0x70 if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && 800f9fc: 2b00 cmp r3, #0 800f9fe: d03e beq.n 800fa7e { switch (esrflags & CAN_ESR_LEC) 800fa00: 68fb ldr r3, [r7, #12] 800fa02: f003 0370 and.w r3, r3, #112 @ 0x70 800fa06: 2b60 cmp r3, #96 @ 0x60 800fa08: d02b beq.n 800fa62 800fa0a: 2b60 cmp r3, #96 @ 0x60 800fa0c: d82e bhi.n 800fa6c 800fa0e: 2b50 cmp r3, #80 @ 0x50 800fa10: d022 beq.n 800fa58 800fa12: 2b50 cmp r3, #80 @ 0x50 800fa14: d82a bhi.n 800fa6c 800fa16: 2b40 cmp r3, #64 @ 0x40 800fa18: d019 beq.n 800fa4e 800fa1a: 2b40 cmp r3, #64 @ 0x40 800fa1c: d826 bhi.n 800fa6c 800fa1e: 2b30 cmp r3, #48 @ 0x30 800fa20: d010 beq.n 800fa44 800fa22: 2b30 cmp r3, #48 @ 0x30 800fa24: d822 bhi.n 800fa6c 800fa26: 2b10 cmp r3, #16 800fa28: d002 beq.n 800fa30 800fa2a: 2b20 cmp r3, #32 800fa2c: d005 beq.n 800fa3a case (CAN_ESR_LEC_2 | CAN_ESR_LEC_1): /* Set CAN error code to CRC error */ errorcode |= HAL_CAN_ERROR_CRC; break; default: break; 800fa2e: e01d b.n 800fa6c errorcode |= HAL_CAN_ERROR_STF; 800fa30: 6a7b ldr r3, [r7, #36] @ 0x24 800fa32: f043 0308 orr.w r3, r3, #8 800fa36: 627b str r3, [r7, #36] @ 0x24 break; 800fa38: e019 b.n 800fa6e errorcode |= HAL_CAN_ERROR_FOR; 800fa3a: 6a7b ldr r3, [r7, #36] @ 0x24 800fa3c: f043 0310 orr.w r3, r3, #16 800fa40: 627b str r3, [r7, #36] @ 0x24 break; 800fa42: e014 b.n 800fa6e errorcode |= HAL_CAN_ERROR_ACK; 800fa44: 6a7b ldr r3, [r7, #36] @ 0x24 800fa46: f043 0320 orr.w r3, r3, #32 800fa4a: 627b str r3, [r7, #36] @ 0x24 break; 800fa4c: e00f b.n 800fa6e errorcode |= HAL_CAN_ERROR_BR; 800fa4e: 6a7b ldr r3, [r7, #36] @ 0x24 800fa50: f043 0340 orr.w r3, r3, #64 @ 0x40 800fa54: 627b str r3, [r7, #36] @ 0x24 break; 800fa56: e00a b.n 800fa6e errorcode |= HAL_CAN_ERROR_BD; 800fa58: 6a7b ldr r3, [r7, #36] @ 0x24 800fa5a: f043 0380 orr.w r3, r3, #128 @ 0x80 800fa5e: 627b str r3, [r7, #36] @ 0x24 break; 800fa60: e005 b.n 800fa6e errorcode |= HAL_CAN_ERROR_CRC; 800fa62: 6a7b ldr r3, [r7, #36] @ 0x24 800fa64: f443 7380 orr.w r3, r3, #256 @ 0x100 800fa68: 627b str r3, [r7, #36] @ 0x24 break; 800fa6a: e000 b.n 800fa6e break; 800fa6c: bf00 nop } /* Clear Last error code Flag */ CLEAR_BIT(hcan->Instance->ESR, CAN_ESR_LEC); 800fa6e: 687b ldr r3, [r7, #4] 800fa70: 681b ldr r3, [r3, #0] 800fa72: 699a ldr r2, [r3, #24] 800fa74: 687b ldr r3, [r7, #4] 800fa76: 681b ldr r3, [r3, #0] 800fa78: f022 0270 bic.w r2, r2, #112 @ 0x70 800fa7c: 619a str r2, [r3, #24] } } /* Clear ERRI Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_ERRI); 800fa7e: 687b ldr r3, [r7, #4] 800fa80: 681b ldr r3, [r3, #0] 800fa82: 2204 movs r2, #4 800fa84: 605a str r2, [r3, #4] } /* Call the Error call Back in case of Errors */ if (errorcode != HAL_CAN_ERROR_NONE) 800fa86: 6a7b ldr r3, [r7, #36] @ 0x24 800fa88: 2b00 cmp r3, #0 800fa8a: d008 beq.n 800fa9e { /* Update error code in handle */ hcan->ErrorCode |= errorcode; 800fa8c: 687b ldr r3, [r7, #4] 800fa8e: 6a5a ldr r2, [r3, #36] @ 0x24 800fa90: 6a7b ldr r3, [r7, #36] @ 0x24 800fa92: 431a orrs r2, r3 800fa94: 687b ldr r3, [r7, #4] 800fa96: 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); 800fa98: 6878 ldr r0, [r7, #4] 800fa9a: f000 f867 bl 800fb6c #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } 800fa9e: bf00 nop 800faa0: 3728 adds r7, #40 @ 0x28 800faa2: 46bd mov sp, r7 800faa4: bd80 pop {r7, pc} 0800faa6 : * @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) { 800faa6: b480 push {r7} 800faa8: b083 sub sp, #12 800faaa: af00 add r7, sp, #0 800faac: 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 */ } 800faae: bf00 nop 800fab0: 370c adds r7, #12 800fab2: 46bd mov sp, r7 800fab4: bc80 pop {r7} 800fab6: 4770 bx lr 0800fab8 : * @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) { 800fab8: b480 push {r7} 800faba: b083 sub sp, #12 800fabc: af00 add r7, sp, #0 800fabe: 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 */ } 800fac0: bf00 nop 800fac2: 370c adds r7, #12 800fac4: 46bd mov sp, r7 800fac6: bc80 pop {r7} 800fac8: 4770 bx lr 0800faca : * @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) { 800faca: b480 push {r7} 800facc: b083 sub sp, #12 800face: af00 add r7, sp, #0 800fad0: 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 */ } 800fad2: bf00 nop 800fad4: 370c adds r7, #12 800fad6: 46bd mov sp, r7 800fad8: bc80 pop {r7} 800fada: 4770 bx lr 0800fadc : * @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) { 800fadc: b480 push {r7} 800fade: b083 sub sp, #12 800fae0: af00 add r7, sp, #0 800fae2: 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 */ } 800fae4: bf00 nop 800fae6: 370c adds r7, #12 800fae8: 46bd mov sp, r7 800faea: bc80 pop {r7} 800faec: 4770 bx lr 0800faee : * @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) { 800faee: b480 push {r7} 800faf0: b083 sub sp, #12 800faf2: af00 add r7, sp, #0 800faf4: 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 */ } 800faf6: bf00 nop 800faf8: 370c adds r7, #12 800fafa: 46bd mov sp, r7 800fafc: bc80 pop {r7} 800fafe: 4770 bx lr 0800fb00 : * @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) { 800fb00: b480 push {r7} 800fb02: b083 sub sp, #12 800fb04: af00 add r7, sp, #0 800fb06: 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 */ } 800fb08: bf00 nop 800fb0a: 370c adds r7, #12 800fb0c: 46bd mov sp, r7 800fb0e: bc80 pop {r7} 800fb10: 4770 bx lr 0800fb12 : * @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) { 800fb12: b480 push {r7} 800fb14: b083 sub sp, #12 800fb16: af00 add r7, sp, #0 800fb18: 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 */ } 800fb1a: bf00 nop 800fb1c: 370c adds r7, #12 800fb1e: 46bd mov sp, r7 800fb20: bc80 pop {r7} 800fb22: 4770 bx lr 0800fb24 : * @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) { 800fb24: b480 push {r7} 800fb26: b083 sub sp, #12 800fb28: af00 add r7, sp, #0 800fb2a: 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 */ } 800fb2c: bf00 nop 800fb2e: 370c adds r7, #12 800fb30: 46bd mov sp, r7 800fb32: bc80 pop {r7} 800fb34: 4770 bx lr 0800fb36 : * @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) { 800fb36: b480 push {r7} 800fb38: b083 sub sp, #12 800fb3a: af00 add r7, sp, #0 800fb3c: 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 */ } 800fb3e: bf00 nop 800fb40: 370c adds r7, #12 800fb42: 46bd mov sp, r7 800fb44: bc80 pop {r7} 800fb46: 4770 bx lr 0800fb48 : * @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) { 800fb48: b480 push {r7} 800fb4a: b083 sub sp, #12 800fb4c: af00 add r7, sp, #0 800fb4e: 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 */ } 800fb50: bf00 nop 800fb52: 370c adds r7, #12 800fb54: 46bd mov sp, r7 800fb56: bc80 pop {r7} 800fb58: 4770 bx lr 0800fb5a : * @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) { 800fb5a: b480 push {r7} 800fb5c: b083 sub sp, #12 800fb5e: af00 add r7, sp, #0 800fb60: 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 */ } 800fb62: bf00 nop 800fb64: 370c adds r7, #12 800fb66: 46bd mov sp, r7 800fb68: bc80 pop {r7} 800fb6a: 4770 bx lr 0800fb6c : * @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) { 800fb6c: b480 push {r7} 800fb6e: b083 sub sp, #12 800fb70: af00 add r7, sp, #0 800fb72: 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 */ } 800fb74: bf00 nop 800fb76: 370c adds r7, #12 800fb78: 46bd mov sp, r7 800fb7a: bc80 pop {r7} 800fb7c: 4770 bx lr ... 0800fb80 <__NVIC_SetPriorityGrouping>: { 800fb80: b480 push {r7} 800fb82: b085 sub sp, #20 800fb84: af00 add r7, sp, #0 800fb86: 6078 str r0, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 800fb88: 687b ldr r3, [r7, #4] 800fb8a: f003 0307 and.w r3, r3, #7 800fb8e: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ 800fb90: 4b0c ldr r3, [pc, #48] @ (800fbc4 <__NVIC_SetPriorityGrouping+0x44>) 800fb92: 68db ldr r3, [r3, #12] 800fb94: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ 800fb96: 68ba ldr r2, [r7, #8] 800fb98: f64f 03ff movw r3, #63743 @ 0xf8ff 800fb9c: 4013 ands r3, r2 800fb9e: 60bb str r3, [r7, #8] (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ 800fba0: 68fb ldr r3, [r7, #12] 800fba2: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 800fba4: 68bb ldr r3, [r7, #8] 800fba6: 4313 orrs r3, r2 reg_value = (reg_value | 800fba8: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 800fbac: f443 3300 orr.w r3, r3, #131072 @ 0x20000 800fbb0: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; 800fbb2: 4a04 ldr r2, [pc, #16] @ (800fbc4 <__NVIC_SetPriorityGrouping+0x44>) 800fbb4: 68bb ldr r3, [r7, #8] 800fbb6: 60d3 str r3, [r2, #12] } 800fbb8: bf00 nop 800fbba: 3714 adds r7, #20 800fbbc: 46bd mov sp, r7 800fbbe: bc80 pop {r7} 800fbc0: 4770 bx lr 800fbc2: bf00 nop 800fbc4: e000ed00 .word 0xe000ed00 0800fbc8 <__NVIC_GetPriorityGrouping>: { 800fbc8: b480 push {r7} 800fbca: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); 800fbcc: 4b04 ldr r3, [pc, #16] @ (800fbe0 <__NVIC_GetPriorityGrouping+0x18>) 800fbce: 68db ldr r3, [r3, #12] 800fbd0: 0a1b lsrs r3, r3, #8 800fbd2: f003 0307 and.w r3, r3, #7 } 800fbd6: 4618 mov r0, r3 800fbd8: 46bd mov sp, r7 800fbda: bc80 pop {r7} 800fbdc: 4770 bx lr 800fbde: bf00 nop 800fbe0: e000ed00 .word 0xe000ed00 0800fbe4 <__NVIC_EnableIRQ>: { 800fbe4: b480 push {r7} 800fbe6: b083 sub sp, #12 800fbe8: af00 add r7, sp, #0 800fbea: 4603 mov r3, r0 800fbec: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800fbee: f997 3007 ldrsb.w r3, [r7, #7] 800fbf2: 2b00 cmp r3, #0 800fbf4: db0b blt.n 800fc0e <__NVIC_EnableIRQ+0x2a> NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); 800fbf6: 79fb ldrb r3, [r7, #7] 800fbf8: f003 021f and.w r2, r3, #31 800fbfc: 4906 ldr r1, [pc, #24] @ (800fc18 <__NVIC_EnableIRQ+0x34>) 800fbfe: f997 3007 ldrsb.w r3, [r7, #7] 800fc02: 095b lsrs r3, r3, #5 800fc04: 2001 movs r0, #1 800fc06: fa00 f202 lsl.w r2, r0, r2 800fc0a: f841 2023 str.w r2, [r1, r3, lsl #2] } 800fc0e: bf00 nop 800fc10: 370c adds r7, #12 800fc12: 46bd mov sp, r7 800fc14: bc80 pop {r7} 800fc16: 4770 bx lr 800fc18: e000e100 .word 0xe000e100 0800fc1c <__NVIC_SetPriority>: { 800fc1c: b480 push {r7} 800fc1e: b083 sub sp, #12 800fc20: af00 add r7, sp, #0 800fc22: 4603 mov r3, r0 800fc24: 6039 str r1, [r7, #0] 800fc26: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 800fc28: f997 3007 ldrsb.w r3, [r7, #7] 800fc2c: 2b00 cmp r3, #0 800fc2e: db0a blt.n 800fc46 <__NVIC_SetPriority+0x2a> NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 800fc30: 683b ldr r3, [r7, #0] 800fc32: b2da uxtb r2, r3 800fc34: 490c ldr r1, [pc, #48] @ (800fc68 <__NVIC_SetPriority+0x4c>) 800fc36: f997 3007 ldrsb.w r3, [r7, #7] 800fc3a: 0112 lsls r2, r2, #4 800fc3c: b2d2 uxtb r2, r2 800fc3e: 440b add r3, r1 800fc40: f883 2300 strb.w r2, [r3, #768] @ 0x300 } 800fc44: e00a b.n 800fc5c <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 800fc46: 683b ldr r3, [r7, #0] 800fc48: b2da uxtb r2, r3 800fc4a: 4908 ldr r1, [pc, #32] @ (800fc6c <__NVIC_SetPriority+0x50>) 800fc4c: 79fb ldrb r3, [r7, #7] 800fc4e: f003 030f and.w r3, r3, #15 800fc52: 3b04 subs r3, #4 800fc54: 0112 lsls r2, r2, #4 800fc56: b2d2 uxtb r2, r2 800fc58: 440b add r3, r1 800fc5a: 761a strb r2, [r3, #24] } 800fc5c: bf00 nop 800fc5e: 370c adds r7, #12 800fc60: 46bd mov sp, r7 800fc62: bc80 pop {r7} 800fc64: 4770 bx lr 800fc66: bf00 nop 800fc68: e000e100 .word 0xe000e100 800fc6c: e000ed00 .word 0xe000ed00 0800fc70 : { 800fc70: b480 push {r7} 800fc72: b089 sub sp, #36 @ 0x24 800fc74: af00 add r7, sp, #0 800fc76: 60f8 str r0, [r7, #12] 800fc78: 60b9 str r1, [r7, #8] 800fc7a: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 800fc7c: 68fb ldr r3, [r7, #12] 800fc7e: f003 0307 and.w r3, r3, #7 800fc82: 61fb str r3, [r7, #28] PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); 800fc84: 69fb ldr r3, [r7, #28] 800fc86: f1c3 0307 rsb r3, r3, #7 800fc8a: 2b04 cmp r3, #4 800fc8c: bf28 it cs 800fc8e: 2304 movcs r3, #4 800fc90: 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)); 800fc92: 69fb ldr r3, [r7, #28] 800fc94: 3304 adds r3, #4 800fc96: 2b06 cmp r3, #6 800fc98: d902 bls.n 800fca0 800fc9a: 69fb ldr r3, [r7, #28] 800fc9c: 3b03 subs r3, #3 800fc9e: e000 b.n 800fca2 800fca0: 2300 movs r3, #0 800fca2: 617b str r3, [r7, #20] ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 800fca4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 800fca8: 69bb ldr r3, [r7, #24] 800fcaa: fa02 f303 lsl.w r3, r2, r3 800fcae: 43da mvns r2, r3 800fcb0: 68bb ldr r3, [r7, #8] 800fcb2: 401a ands r2, r3 800fcb4: 697b ldr r3, [r7, #20] 800fcb6: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) 800fcb8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff 800fcbc: 697b ldr r3, [r7, #20] 800fcbe: fa01 f303 lsl.w r3, r1, r3 800fcc2: 43d9 mvns r1, r3 800fcc4: 687b ldr r3, [r7, #4] 800fcc6: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 800fcc8: 4313 orrs r3, r2 } 800fcca: 4618 mov r0, r3 800fccc: 3724 adds r7, #36 @ 0x24 800fcce: 46bd mov sp, r7 800fcd0: bc80 pop {r7} 800fcd2: 4770 bx lr 0800fcd4 : \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) { 800fcd4: b580 push {r7, lr} 800fcd6: b082 sub sp, #8 800fcd8: af00 add r7, sp, #0 800fcda: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) 800fcdc: 687b ldr r3, [r7, #4] 800fcde: 3b01 subs r3, #1 800fce0: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 800fce4: d301 bcc.n 800fcea { return (1UL); /* Reload value impossible */ 800fce6: 2301 movs r3, #1 800fce8: e00f b.n 800fd0a } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ 800fcea: 4a0a ldr r2, [pc, #40] @ (800fd14 ) 800fcec: 687b ldr r3, [r7, #4] 800fcee: 3b01 subs r3, #1 800fcf0: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ 800fcf2: 210f movs r1, #15 800fcf4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 800fcf8: f7ff ff90 bl 800fc1c <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ 800fcfc: 4b05 ldr r3, [pc, #20] @ (800fd14 ) 800fcfe: 2200 movs r2, #0 800fd00: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | 800fd02: 4b04 ldr r3, [pc, #16] @ (800fd14 ) 800fd04: 2207 movs r2, #7 800fd06: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ 800fd08: 2300 movs r3, #0 } 800fd0a: 4618 mov r0, r3 800fd0c: 3708 adds r7, #8 800fd0e: 46bd mov sp, r7 800fd10: bd80 pop {r7, pc} 800fd12: bf00 nop 800fd14: e000e010 .word 0xe000e010 0800fd18 : * @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) { 800fd18: b580 push {r7, lr} 800fd1a: b082 sub sp, #8 800fd1c: af00 add r7, sp, #0 800fd1e: 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); 800fd20: 6878 ldr r0, [r7, #4] 800fd22: f7ff ff2d bl 800fb80 <__NVIC_SetPriorityGrouping> } 800fd26: bf00 nop 800fd28: 3708 adds r7, #8 800fd2a: 46bd mov sp, r7 800fd2c: bd80 pop {r7, pc} 0800fd2e : * 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) { 800fd2e: b580 push {r7, lr} 800fd30: b086 sub sp, #24 800fd32: af00 add r7, sp, #0 800fd34: 4603 mov r3, r0 800fd36: 60b9 str r1, [r7, #8] 800fd38: 607a str r2, [r7, #4] 800fd3a: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; 800fd3c: 2300 movs r3, #0 800fd3e: 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(); 800fd40: f7ff ff42 bl 800fbc8 <__NVIC_GetPriorityGrouping> 800fd44: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); 800fd46: 687a ldr r2, [r7, #4] 800fd48: 68b9 ldr r1, [r7, #8] 800fd4a: 6978 ldr r0, [r7, #20] 800fd4c: f7ff ff90 bl 800fc70 800fd50: 4602 mov r2, r0 800fd52: f997 300f ldrsb.w r3, [r7, #15] 800fd56: 4611 mov r1, r2 800fd58: 4618 mov r0, r3 800fd5a: f7ff ff5f bl 800fc1c <__NVIC_SetPriority> } 800fd5e: bf00 nop 800fd60: 3718 adds r7, #24 800fd62: 46bd mov sp, r7 800fd64: bd80 pop {r7, pc} 0800fd66 : * 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) { 800fd66: b580 push {r7, lr} 800fd68: b082 sub sp, #8 800fd6a: af00 add r7, sp, #0 800fd6c: 4603 mov r3, r0 800fd6e: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); 800fd70: f997 3007 ldrsb.w r3, [r7, #7] 800fd74: 4618 mov r0, r3 800fd76: f7ff ff35 bl 800fbe4 <__NVIC_EnableIRQ> } 800fd7a: bf00 nop 800fd7c: 3708 adds r7, #8 800fd7e: 46bd mov sp, r7 800fd80: bd80 pop {r7, pc} 0800fd82 : * @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) { 800fd82: b580 push {r7, lr} 800fd84: b082 sub sp, #8 800fd86: af00 add r7, sp, #0 800fd88: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); 800fd8a: 6878 ldr r0, [r7, #4] 800fd8c: f7ff ffa2 bl 800fcd4 800fd90: 4603 mov r3, r0 } 800fd92: 4618 mov r0, r3 800fd94: 3708 adds r7, #8 800fd96: 46bd mov sp, r7 800fd98: bd80 pop {r7, pc} 0800fd9a : * 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) { 800fd9a: b580 push {r7, lr} 800fd9c: b082 sub sp, #8 800fd9e: af00 add r7, sp, #0 800fda0: 6078 str r0, [r7, #4] /* Check the CRC handle allocation */ if (hcrc == NULL) 800fda2: 687b ldr r3, [r7, #4] 800fda4: 2b00 cmp r3, #0 800fda6: d101 bne.n 800fdac { return HAL_ERROR; 800fda8: 2301 movs r3, #1 800fdaa: e00e b.n 800fdca } /* Check the parameters */ assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance)); if (hcrc->State == HAL_CRC_STATE_RESET) 800fdac: 687b ldr r3, [r7, #4] 800fdae: 795b ldrb r3, [r3, #5] 800fdb0: b2db uxtb r3, r3 800fdb2: 2b00 cmp r3, #0 800fdb4: d105 bne.n 800fdc2 { /* Allocate lock resource and initialize it */ hcrc->Lock = HAL_UNLOCKED; 800fdb6: 687b ldr r3, [r7, #4] 800fdb8: 2200 movs r2, #0 800fdba: 711a strb r2, [r3, #4] /* Init the low level hardware */ HAL_CRC_MspInit(hcrc); 800fdbc: 6878 ldr r0, [r7, #4] 800fdbe: f7fa fa9b bl 800a2f8 } /* Change CRC peripheral state */ hcrc->State = HAL_CRC_STATE_READY; 800fdc2: 687b ldr r3, [r7, #4] 800fdc4: 2201 movs r2, #1 800fdc6: 715a strb r2, [r3, #5] /* Return function status */ return HAL_OK; 800fdc8: 2300 movs r3, #0 } 800fdca: 4618 mov r0, r3 800fdcc: 3708 adds r7, #8 800fdce: 46bd mov sp, r7 800fdd0: bd80 pop {r7, pc} ... 0800fdd4 : * @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) { 800fdd4: b480 push {r7} 800fdd6: b085 sub sp, #20 800fdd8: af00 add r7, sp, #0 800fdda: 6078 str r0, [r7, #4] uint32_t tmp = 0U; 800fddc: 2300 movs r3, #0 800fdde: 60fb str r3, [r7, #12] /* Check the DMA handle allocation */ if(hdma == NULL) 800fde0: 687b ldr r3, [r7, #4] 800fde2: 2b00 cmp r3, #0 800fde4: d101 bne.n 800fdea { return HAL_ERROR; 800fde6: 2301 movs r3, #1 800fde8: e059 b.n 800fe9e 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)) 800fdea: 687b ldr r3, [r7, #4] 800fdec: 681b ldr r3, [r3, #0] 800fdee: 461a mov r2, r3 800fdf0: 4b2d ldr r3, [pc, #180] @ (800fea8 ) 800fdf2: 429a cmp r2, r3 800fdf4: d80f bhi.n 800fe16 { /* DMA1 */ hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2; 800fdf6: 687b ldr r3, [r7, #4] 800fdf8: 681b ldr r3, [r3, #0] 800fdfa: 461a mov r2, r3 800fdfc: 4b2b ldr r3, [pc, #172] @ (800feac ) 800fdfe: 4413 add r3, r2 800fe00: 4a2b ldr r2, [pc, #172] @ (800feb0 ) 800fe02: fba2 2303 umull r2, r3, r2, r3 800fe06: 091b lsrs r3, r3, #4 800fe08: 009a lsls r2, r3, #2 800fe0a: 687b ldr r3, [r7, #4] 800fe0c: 641a str r2, [r3, #64] @ 0x40 hdma->DmaBaseAddress = DMA1; 800fe0e: 687b ldr r3, [r7, #4] 800fe10: 4a28 ldr r2, [pc, #160] @ (800feb4 ) 800fe12: 63da str r2, [r3, #60] @ 0x3c 800fe14: e00e b.n 800fe34 } else { /* DMA2 */ hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2; 800fe16: 687b ldr r3, [r7, #4] 800fe18: 681b ldr r3, [r3, #0] 800fe1a: 461a mov r2, r3 800fe1c: 4b26 ldr r3, [pc, #152] @ (800feb8 ) 800fe1e: 4413 add r3, r2 800fe20: 4a23 ldr r2, [pc, #140] @ (800feb0 ) 800fe22: fba2 2303 umull r2, r3, r2, r3 800fe26: 091b lsrs r3, r3, #4 800fe28: 009a lsls r2, r3, #2 800fe2a: 687b ldr r3, [r7, #4] 800fe2c: 641a str r2, [r3, #64] @ 0x40 hdma->DmaBaseAddress = DMA2; 800fe2e: 687b ldr r3, [r7, #4] 800fe30: 4a22 ldr r2, [pc, #136] @ (800febc ) 800fe32: 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; 800fe34: 687b ldr r3, [r7, #4] 800fe36: 2202 movs r2, #2 800fe38: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Get the CR register value */ tmp = hdma->Instance->CCR; 800fe3c: 687b ldr r3, [r7, #4] 800fe3e: 681b ldr r3, [r3, #0] 800fe40: 681b ldr r3, [r3, #0] 800fe42: 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 | \ 800fe44: 68fb ldr r3, [r7, #12] 800fe46: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 800fe4a: f023 0330 bic.w r3, r3, #48 @ 0x30 800fe4e: 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 | 800fe50: 687b ldr r3, [r7, #4] 800fe52: 685a ldr r2, [r3, #4] hdma->Init.PeriphInc | hdma->Init.MemInc | 800fe54: 687b ldr r3, [r7, #4] 800fe56: 689b ldr r3, [r3, #8] tmp |= hdma->Init.Direction | 800fe58: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | 800fe5a: 687b ldr r3, [r7, #4] 800fe5c: 68db ldr r3, [r3, #12] 800fe5e: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800fe60: 687b ldr r3, [r7, #4] 800fe62: 691b ldr r3, [r3, #16] hdma->Init.PeriphInc | hdma->Init.MemInc | 800fe64: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800fe66: 687b ldr r3, [r7, #4] 800fe68: 695b ldr r3, [r3, #20] 800fe6a: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; 800fe6c: 687b ldr r3, [r7, #4] 800fe6e: 699b ldr r3, [r3, #24] hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | 800fe70: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; 800fe72: 687b ldr r3, [r7, #4] 800fe74: 69db ldr r3, [r3, #28] 800fe76: 4313 orrs r3, r2 tmp |= hdma->Init.Direction | 800fe78: 68fa ldr r2, [r7, #12] 800fe7a: 4313 orrs r3, r2 800fe7c: 60fb str r3, [r7, #12] /* Write to DMA Channel CR register */ hdma->Instance->CCR = tmp; 800fe7e: 687b ldr r3, [r7, #4] 800fe80: 681b ldr r3, [r3, #0] 800fe82: 68fa ldr r2, [r7, #12] 800fe84: 601a str r2, [r3, #0] /* Initialise the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; 800fe86: 687b ldr r3, [r7, #4] 800fe88: 2200 movs r2, #0 800fe8a: 639a str r2, [r3, #56] @ 0x38 /* Initialize the DMA state*/ hdma->State = HAL_DMA_STATE_READY; 800fe8c: 687b ldr r3, [r7, #4] 800fe8e: 2201 movs r2, #1 800fe90: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Allocate lock resource and initialize it */ hdma->Lock = HAL_UNLOCKED; 800fe94: 687b ldr r3, [r7, #4] 800fe96: 2200 movs r2, #0 800fe98: f883 2020 strb.w r2, [r3, #32] return HAL_OK; 800fe9c: 2300 movs r3, #0 } 800fe9e: 4618 mov r0, r3 800fea0: 3714 adds r7, #20 800fea2: 46bd mov sp, r7 800fea4: bc80 pop {r7} 800fea6: 4770 bx lr 800fea8: 40020407 .word 0x40020407 800feac: bffdfff8 .word 0xbffdfff8 800feb0: cccccccd .word 0xcccccccd 800feb4: 40020000 .word 0x40020000 800feb8: bffdfbf8 .word 0xbffdfbf8 800febc: 40020400 .word 0x40020400 0800fec0 : * @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) { 800fec0: b580 push {r7, lr} 800fec2: b086 sub sp, #24 800fec4: af00 add r7, sp, #0 800fec6: 60f8 str r0, [r7, #12] 800fec8: 60b9 str r1, [r7, #8] 800feca: 607a str r2, [r7, #4] 800fecc: 603b str r3, [r7, #0] HAL_StatusTypeDef status = HAL_OK; 800fece: 2300 movs r3, #0 800fed0: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); 800fed2: 68fb ldr r3, [r7, #12] 800fed4: f893 3020 ldrb.w r3, [r3, #32] 800fed8: 2b01 cmp r3, #1 800feda: d101 bne.n 800fee0 800fedc: 2302 movs r3, #2 800fede: e04b b.n 800ff78 800fee0: 68fb ldr r3, [r7, #12] 800fee2: 2201 movs r2, #1 800fee4: f883 2020 strb.w r2, [r3, #32] if(HAL_DMA_STATE_READY == hdma->State) 800fee8: 68fb ldr r3, [r7, #12] 800feea: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800feee: b2db uxtb r3, r3 800fef0: 2b01 cmp r3, #1 800fef2: d13a bne.n 800ff6a { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; 800fef4: 68fb ldr r3, [r7, #12] 800fef6: 2202 movs r2, #2 800fef8: f883 2021 strb.w r2, [r3, #33] @ 0x21 hdma->ErrorCode = HAL_DMA_ERROR_NONE; 800fefc: 68fb ldr r3, [r7, #12] 800fefe: 2200 movs r2, #0 800ff00: 639a str r2, [r3, #56] @ 0x38 /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); 800ff02: 68fb ldr r3, [r7, #12] 800ff04: 681b ldr r3, [r3, #0] 800ff06: 681a ldr r2, [r3, #0] 800ff08: 68fb ldr r3, [r7, #12] 800ff0a: 681b ldr r3, [r3, #0] 800ff0c: f022 0201 bic.w r2, r2, #1 800ff10: 601a str r2, [r3, #0] /* Configure the source, destination address and the data length & clear flags*/ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); 800ff12: 683b ldr r3, [r7, #0] 800ff14: 687a ldr r2, [r7, #4] 800ff16: 68b9 ldr r1, [r7, #8] 800ff18: 68f8 ldr r0, [r7, #12] 800ff1a: f000 fbbc bl 8010696 /* Enable the transfer complete interrupt */ /* Enable the transfer Error interrupt */ if(NULL != hdma->XferHalfCpltCallback) 800ff1e: 68fb ldr r3, [r7, #12] 800ff20: 6adb ldr r3, [r3, #44] @ 0x2c 800ff22: 2b00 cmp r3, #0 800ff24: d008 beq.n 800ff38 { /* Enable the Half transfer complete interrupt as well */ __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800ff26: 68fb ldr r3, [r7, #12] 800ff28: 681b ldr r3, [r3, #0] 800ff2a: 681a ldr r2, [r3, #0] 800ff2c: 68fb ldr r3, [r7, #12] 800ff2e: 681b ldr r3, [r3, #0] 800ff30: f042 020e orr.w r2, r2, #14 800ff34: 601a str r2, [r3, #0] 800ff36: e00f b.n 800ff58 } else { __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); 800ff38: 68fb ldr r3, [r7, #12] 800ff3a: 681b ldr r3, [r3, #0] 800ff3c: 681a ldr r2, [r3, #0] 800ff3e: 68fb ldr r3, [r7, #12] 800ff40: 681b ldr r3, [r3, #0] 800ff42: f022 0204 bic.w r2, r2, #4 800ff46: 601a str r2, [r3, #0] __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE)); 800ff48: 68fb ldr r3, [r7, #12] 800ff4a: 681b ldr r3, [r3, #0] 800ff4c: 681a ldr r2, [r3, #0] 800ff4e: 68fb ldr r3, [r7, #12] 800ff50: 681b ldr r3, [r3, #0] 800ff52: f042 020a orr.w r2, r2, #10 800ff56: 601a str r2, [r3, #0] } /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); 800ff58: 68fb ldr r3, [r7, #12] 800ff5a: 681b ldr r3, [r3, #0] 800ff5c: 681a ldr r2, [r3, #0] 800ff5e: 68fb ldr r3, [r7, #12] 800ff60: 681b ldr r3, [r3, #0] 800ff62: f042 0201 orr.w r2, r2, #1 800ff66: 601a str r2, [r3, #0] 800ff68: e005 b.n 800ff76 } else { /* Process Unlocked */ __HAL_UNLOCK(hdma); 800ff6a: 68fb ldr r3, [r7, #12] 800ff6c: 2200 movs r2, #0 800ff6e: f883 2020 strb.w r2, [r3, #32] /* Remain BUSY */ status = HAL_BUSY; 800ff72: 2302 movs r3, #2 800ff74: 75fb strb r3, [r7, #23] } return status; 800ff76: 7dfb ldrb r3, [r7, #23] } 800ff78: 4618 mov r0, r3 800ff7a: 3718 adds r7, #24 800ff7c: 46bd mov sp, r7 800ff7e: bd80 pop {r7, pc} 0800ff80 : * @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) { 800ff80: b480 push {r7} 800ff82: b085 sub sp, #20 800ff84: af00 add r7, sp, #0 800ff86: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 800ff88: 2300 movs r3, #0 800ff8a: 73fb strb r3, [r7, #15] if(hdma->State != HAL_DMA_STATE_BUSY) 800ff8c: 687b ldr r3, [r7, #4] 800ff8e: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 800ff92: b2db uxtb r3, r3 800ff94: 2b02 cmp r3, #2 800ff96: d008 beq.n 800ffaa { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; 800ff98: 687b ldr r3, [r7, #4] 800ff9a: 2204 movs r2, #4 800ff9c: 639a str r2, [r3, #56] @ 0x38 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800ff9e: 687b ldr r3, [r7, #4] 800ffa0: 2200 movs r2, #0 800ffa2: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; 800ffa6: 2301 movs r3, #1 800ffa8: e020 b.n 800ffec } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 800ffaa: 687b ldr r3, [r7, #4] 800ffac: 681b ldr r3, [r3, #0] 800ffae: 681a ldr r2, [r3, #0] 800ffb0: 687b ldr r3, [r7, #4] 800ffb2: 681b ldr r3, [r3, #0] 800ffb4: f022 020e bic.w r2, r2, #14 800ffb8: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); 800ffba: 687b ldr r3, [r7, #4] 800ffbc: 681b ldr r3, [r3, #0] 800ffbe: 681a ldr r2, [r3, #0] 800ffc0: 687b ldr r3, [r7, #4] 800ffc2: 681b ldr r3, [r3, #0] 800ffc4: f022 0201 bic.w r2, r2, #1 800ffc8: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 800ffca: 687b ldr r3, [r7, #4] 800ffcc: 6c1a ldr r2, [r3, #64] @ 0x40 800ffce: 687b ldr r3, [r7, #4] 800ffd0: 6bdb ldr r3, [r3, #60] @ 0x3c 800ffd2: 2101 movs r1, #1 800ffd4: fa01 f202 lsl.w r2, r1, r2 800ffd8: 605a str r2, [r3, #4] } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 800ffda: 687b ldr r3, [r7, #4] 800ffdc: 2201 movs r2, #1 800ffde: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 800ffe2: 687b ldr r3, [r7, #4] 800ffe4: 2200 movs r2, #0 800ffe6: f883 2020 strb.w r2, [r3, #32] return status; 800ffea: 7bfb ldrb r3, [r7, #15] } 800ffec: 4618 mov r0, r3 800ffee: 3714 adds r7, #20 800fff0: 46bd mov sp, r7 800fff2: bc80 pop {r7} 800fff4: 4770 bx lr ... 0800fff8 : * @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) { 800fff8: b580 push {r7, lr} 800fffa: b084 sub sp, #16 800fffc: af00 add r7, sp, #0 800fffe: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 8010000: 2300 movs r3, #0 8010002: 73fb strb r3, [r7, #15] if(HAL_DMA_STATE_BUSY != hdma->State) 8010004: 687b ldr r3, [r7, #4] 8010006: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 801000a: b2db uxtb r3, r3 801000c: 2b02 cmp r3, #2 801000e: d005 beq.n 801001c { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; 8010010: 687b ldr r3, [r7, #4] 8010012: 2204 movs r2, #4 8010014: 639a str r2, [r3, #56] @ 0x38 status = HAL_ERROR; 8010016: 2301 movs r3, #1 8010018: 73fb strb r3, [r7, #15] 801001a: e0d6 b.n 80101ca } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); 801001c: 687b ldr r3, [r7, #4] 801001e: 681b ldr r3, [r3, #0] 8010020: 681a ldr r2, [r3, #0] 8010022: 687b ldr r3, [r7, #4] 8010024: 681b ldr r3, [r3, #0] 8010026: f022 020e bic.w r2, r2, #14 801002a: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); 801002c: 687b ldr r3, [r7, #4] 801002e: 681b ldr r3, [r3, #0] 8010030: 681a ldr r2, [r3, #0] 8010032: 687b ldr r3, [r7, #4] 8010034: 681b ldr r3, [r3, #0] 8010036: f022 0201 bic.w r2, r2, #1 801003a: 601a str r2, [r3, #0] /* Clear all flags */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma)); 801003c: 687b ldr r3, [r7, #4] 801003e: 681b ldr r3, [r3, #0] 8010040: 461a mov r2, r3 8010042: 4b64 ldr r3, [pc, #400] @ (80101d4 ) 8010044: 429a cmp r2, r3 8010046: d958 bls.n 80100fa 8010048: 687b ldr r3, [r7, #4] 801004a: 681b ldr r3, [r3, #0] 801004c: 4a62 ldr r2, [pc, #392] @ (80101d8 ) 801004e: 4293 cmp r3, r2 8010050: d04f beq.n 80100f2 8010052: 687b ldr r3, [r7, #4] 8010054: 681b ldr r3, [r3, #0] 8010056: 4a61 ldr r2, [pc, #388] @ (80101dc ) 8010058: 4293 cmp r3, r2 801005a: d048 beq.n 80100ee 801005c: 687b ldr r3, [r7, #4] 801005e: 681b ldr r3, [r3, #0] 8010060: 4a5f ldr r2, [pc, #380] @ (80101e0 ) 8010062: 4293 cmp r3, r2 8010064: d040 beq.n 80100e8 8010066: 687b ldr r3, [r7, #4] 8010068: 681b ldr r3, [r3, #0] 801006a: 4a5e ldr r2, [pc, #376] @ (80101e4 ) 801006c: 4293 cmp r3, r2 801006e: d038 beq.n 80100e2 8010070: 687b ldr r3, [r7, #4] 8010072: 681b ldr r3, [r3, #0] 8010074: 4a5c ldr r2, [pc, #368] @ (80101e8 ) 8010076: 4293 cmp r3, r2 8010078: d030 beq.n 80100dc 801007a: 687b ldr r3, [r7, #4] 801007c: 681b ldr r3, [r3, #0] 801007e: 4a5b ldr r2, [pc, #364] @ (80101ec ) 8010080: 4293 cmp r3, r2 8010082: d028 beq.n 80100d6 8010084: 687b ldr r3, [r7, #4] 8010086: 681b ldr r3, [r3, #0] 8010088: 4a52 ldr r2, [pc, #328] @ (80101d4 ) 801008a: 4293 cmp r3, r2 801008c: d020 beq.n 80100d0 801008e: 687b ldr r3, [r7, #4] 8010090: 681b ldr r3, [r3, #0] 8010092: 4a57 ldr r2, [pc, #348] @ (80101f0 ) 8010094: 4293 cmp r3, r2 8010096: d019 beq.n 80100cc 8010098: 687b ldr r3, [r7, #4] 801009a: 681b ldr r3, [r3, #0] 801009c: 4a55 ldr r2, [pc, #340] @ (80101f4 ) 801009e: 4293 cmp r3, r2 80100a0: d012 beq.n 80100c8 80100a2: 687b ldr r3, [r7, #4] 80100a4: 681b ldr r3, [r3, #0] 80100a6: 4a54 ldr r2, [pc, #336] @ (80101f8 ) 80100a8: 4293 cmp r3, r2 80100aa: d00a beq.n 80100c2 80100ac: 687b ldr r3, [r7, #4] 80100ae: 681b ldr r3, [r3, #0] 80100b0: 4a52 ldr r2, [pc, #328] @ (80101fc ) 80100b2: 4293 cmp r3, r2 80100b4: d102 bne.n 80100bc 80100b6: f44f 5380 mov.w r3, #4096 @ 0x1000 80100ba: e01b b.n 80100f4 80100bc: f44f 3380 mov.w r3, #65536 @ 0x10000 80100c0: e018 b.n 80100f4 80100c2: f44f 7380 mov.w r3, #256 @ 0x100 80100c6: e015 b.n 80100f4 80100c8: 2310 movs r3, #16 80100ca: e013 b.n 80100f4 80100cc: 2301 movs r3, #1 80100ce: e011 b.n 80100f4 80100d0: f04f 7380 mov.w r3, #16777216 @ 0x1000000 80100d4: e00e b.n 80100f4 80100d6: f44f 1380 mov.w r3, #1048576 @ 0x100000 80100da: e00b b.n 80100f4 80100dc: f44f 3380 mov.w r3, #65536 @ 0x10000 80100e0: e008 b.n 80100f4 80100e2: f44f 5380 mov.w r3, #4096 @ 0x1000 80100e6: e005 b.n 80100f4 80100e8: f44f 7380 mov.w r3, #256 @ 0x100 80100ec: e002 b.n 80100f4 80100ee: 2310 movs r3, #16 80100f0: e000 b.n 80100f4 80100f2: 2301 movs r3, #1 80100f4: 4a42 ldr r2, [pc, #264] @ (8010200 ) 80100f6: 6053 str r3, [r2, #4] 80100f8: e057 b.n 80101aa 80100fa: 687b ldr r3, [r7, #4] 80100fc: 681b ldr r3, [r3, #0] 80100fe: 4a36 ldr r2, [pc, #216] @ (80101d8 ) 8010100: 4293 cmp r3, r2 8010102: d04f beq.n 80101a4 8010104: 687b ldr r3, [r7, #4] 8010106: 681b ldr r3, [r3, #0] 8010108: 4a34 ldr r2, [pc, #208] @ (80101dc ) 801010a: 4293 cmp r3, r2 801010c: d048 beq.n 80101a0 801010e: 687b ldr r3, [r7, #4] 8010110: 681b ldr r3, [r3, #0] 8010112: 4a33 ldr r2, [pc, #204] @ (80101e0 ) 8010114: 4293 cmp r3, r2 8010116: d040 beq.n 801019a 8010118: 687b ldr r3, [r7, #4] 801011a: 681b ldr r3, [r3, #0] 801011c: 4a31 ldr r2, [pc, #196] @ (80101e4 ) 801011e: 4293 cmp r3, r2 8010120: d038 beq.n 8010194 8010122: 687b ldr r3, [r7, #4] 8010124: 681b ldr r3, [r3, #0] 8010126: 4a30 ldr r2, [pc, #192] @ (80101e8 ) 8010128: 4293 cmp r3, r2 801012a: d030 beq.n 801018e 801012c: 687b ldr r3, [r7, #4] 801012e: 681b ldr r3, [r3, #0] 8010130: 4a2e ldr r2, [pc, #184] @ (80101ec ) 8010132: 4293 cmp r3, r2 8010134: d028 beq.n 8010188 8010136: 687b ldr r3, [r7, #4] 8010138: 681b ldr r3, [r3, #0] 801013a: 4a26 ldr r2, [pc, #152] @ (80101d4 ) 801013c: 4293 cmp r3, r2 801013e: d020 beq.n 8010182 8010140: 687b ldr r3, [r7, #4] 8010142: 681b ldr r3, [r3, #0] 8010144: 4a2a ldr r2, [pc, #168] @ (80101f0 ) 8010146: 4293 cmp r3, r2 8010148: d019 beq.n 801017e 801014a: 687b ldr r3, [r7, #4] 801014c: 681b ldr r3, [r3, #0] 801014e: 4a29 ldr r2, [pc, #164] @ (80101f4 ) 8010150: 4293 cmp r3, r2 8010152: d012 beq.n 801017a 8010154: 687b ldr r3, [r7, #4] 8010156: 681b ldr r3, [r3, #0] 8010158: 4a27 ldr r2, [pc, #156] @ (80101f8 ) 801015a: 4293 cmp r3, r2 801015c: d00a beq.n 8010174 801015e: 687b ldr r3, [r7, #4] 8010160: 681b ldr r3, [r3, #0] 8010162: 4a26 ldr r2, [pc, #152] @ (80101fc ) 8010164: 4293 cmp r3, r2 8010166: d102 bne.n 801016e 8010168: f44f 5380 mov.w r3, #4096 @ 0x1000 801016c: e01b b.n 80101a6 801016e: f44f 3380 mov.w r3, #65536 @ 0x10000 8010172: e018 b.n 80101a6 8010174: f44f 7380 mov.w r3, #256 @ 0x100 8010178: e015 b.n 80101a6 801017a: 2310 movs r3, #16 801017c: e013 b.n 80101a6 801017e: 2301 movs r3, #1 8010180: e011 b.n 80101a6 8010182: f04f 7380 mov.w r3, #16777216 @ 0x1000000 8010186: e00e b.n 80101a6 8010188: f44f 1380 mov.w r3, #1048576 @ 0x100000 801018c: e00b b.n 80101a6 801018e: f44f 3380 mov.w r3, #65536 @ 0x10000 8010192: e008 b.n 80101a6 8010194: f44f 5380 mov.w r3, #4096 @ 0x1000 8010198: e005 b.n 80101a6 801019a: f44f 7380 mov.w r3, #256 @ 0x100 801019e: e002 b.n 80101a6 80101a0: 2310 movs r3, #16 80101a2: e000 b.n 80101a6 80101a4: 2301 movs r3, #1 80101a6: 4a17 ldr r2, [pc, #92] @ (8010204 ) 80101a8: 6053 str r3, [r2, #4] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 80101aa: 687b ldr r3, [r7, #4] 80101ac: 2201 movs r2, #1 80101ae: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 80101b2: 687b ldr r3, [r7, #4] 80101b4: 2200 movs r2, #0 80101b6: f883 2020 strb.w r2, [r3, #32] /* Call User Abort callback */ if(hdma->XferAbortCallback != NULL) 80101ba: 687b ldr r3, [r7, #4] 80101bc: 6b5b ldr r3, [r3, #52] @ 0x34 80101be: 2b00 cmp r3, #0 80101c0: d003 beq.n 80101ca { hdma->XferAbortCallback(hdma); 80101c2: 687b ldr r3, [r7, #4] 80101c4: 6b5b ldr r3, [r3, #52] @ 0x34 80101c6: 6878 ldr r0, [r7, #4] 80101c8: 4798 blx r3 } } return status; 80101ca: 7bfb ldrb r3, [r7, #15] } 80101cc: 4618 mov r0, r3 80101ce: 3710 adds r7, #16 80101d0: 46bd mov sp, r7 80101d2: bd80 pop {r7, pc} 80101d4: 40020080 .word 0x40020080 80101d8: 40020008 .word 0x40020008 80101dc: 4002001c .word 0x4002001c 80101e0: 40020030 .word 0x40020030 80101e4: 40020044 .word 0x40020044 80101e8: 40020058 .word 0x40020058 80101ec: 4002006c .word 0x4002006c 80101f0: 40020408 .word 0x40020408 80101f4: 4002041c .word 0x4002041c 80101f8: 40020430 .word 0x40020430 80101fc: 40020444 .word 0x40020444 8010200: 40020400 .word 0x40020400 8010204: 40020000 .word 0x40020000 08010208 : * @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) { 8010208: b580 push {r7, lr} 801020a: b084 sub sp, #16 801020c: af00 add r7, sp, #0 801020e: 6078 str r0, [r7, #4] uint32_t flag_it = hdma->DmaBaseAddress->ISR; 8010210: 687b ldr r3, [r7, #4] 8010212: 6bdb ldr r3, [r3, #60] @ 0x3c 8010214: 681b ldr r3, [r3, #0] 8010216: 60fb str r3, [r7, #12] uint32_t source_it = hdma->Instance->CCR; 8010218: 687b ldr r3, [r7, #4] 801021a: 681b ldr r3, [r3, #0] 801021c: 681b ldr r3, [r3, #0] 801021e: 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)) 8010220: 687b ldr r3, [r7, #4] 8010222: 6c1b ldr r3, [r3, #64] @ 0x40 8010224: 2204 movs r2, #4 8010226: 409a lsls r2, r3 8010228: 68fb ldr r3, [r7, #12] 801022a: 4013 ands r3, r2 801022c: 2b00 cmp r3, #0 801022e: f000 80f1 beq.w 8010414 8010232: 68bb ldr r3, [r7, #8] 8010234: f003 0304 and.w r3, r3, #4 8010238: 2b00 cmp r3, #0 801023a: f000 80eb beq.w 8010414 { /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 801023e: 687b ldr r3, [r7, #4] 8010240: 681b ldr r3, [r3, #0] 8010242: 681b ldr r3, [r3, #0] 8010244: f003 0320 and.w r3, r3, #32 8010248: 2b00 cmp r3, #0 801024a: d107 bne.n 801025c { /* Disable the half transfer interrupt */ __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); 801024c: 687b ldr r3, [r7, #4] 801024e: 681b ldr r3, [r3, #0] 8010250: 681a ldr r2, [r3, #0] 8010252: 687b ldr r3, [r7, #4] 8010254: 681b ldr r3, [r3, #0] 8010256: f022 0204 bic.w r2, r2, #4 801025a: 601a str r2, [r3, #0] } /* Clear the half transfer complete flag */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_HT_FLAG_INDEX(hdma)); 801025c: 687b ldr r3, [r7, #4] 801025e: 681b ldr r3, [r3, #0] 8010260: 461a mov r2, r3 8010262: 4b5f ldr r3, [pc, #380] @ (80103e0 ) 8010264: 429a cmp r2, r3 8010266: d958 bls.n 801031a 8010268: 687b ldr r3, [r7, #4] 801026a: 681b ldr r3, [r3, #0] 801026c: 4a5d ldr r2, [pc, #372] @ (80103e4 ) 801026e: 4293 cmp r3, r2 8010270: d04f beq.n 8010312 8010272: 687b ldr r3, [r7, #4] 8010274: 681b ldr r3, [r3, #0] 8010276: 4a5c ldr r2, [pc, #368] @ (80103e8 ) 8010278: 4293 cmp r3, r2 801027a: d048 beq.n 801030e 801027c: 687b ldr r3, [r7, #4] 801027e: 681b ldr r3, [r3, #0] 8010280: 4a5a ldr r2, [pc, #360] @ (80103ec ) 8010282: 4293 cmp r3, r2 8010284: d040 beq.n 8010308 8010286: 687b ldr r3, [r7, #4] 8010288: 681b ldr r3, [r3, #0] 801028a: 4a59 ldr r2, [pc, #356] @ (80103f0 ) 801028c: 4293 cmp r3, r2 801028e: d038 beq.n 8010302 8010290: 687b ldr r3, [r7, #4] 8010292: 681b ldr r3, [r3, #0] 8010294: 4a57 ldr r2, [pc, #348] @ (80103f4 ) 8010296: 4293 cmp r3, r2 8010298: d030 beq.n 80102fc 801029a: 687b ldr r3, [r7, #4] 801029c: 681b ldr r3, [r3, #0] 801029e: 4a56 ldr r2, [pc, #344] @ (80103f8 ) 80102a0: 4293 cmp r3, r2 80102a2: d028 beq.n 80102f6 80102a4: 687b ldr r3, [r7, #4] 80102a6: 681b ldr r3, [r3, #0] 80102a8: 4a4d ldr r2, [pc, #308] @ (80103e0 ) 80102aa: 4293 cmp r3, r2 80102ac: d020 beq.n 80102f0 80102ae: 687b ldr r3, [r7, #4] 80102b0: 681b ldr r3, [r3, #0] 80102b2: 4a52 ldr r2, [pc, #328] @ (80103fc ) 80102b4: 4293 cmp r3, r2 80102b6: d019 beq.n 80102ec 80102b8: 687b ldr r3, [r7, #4] 80102ba: 681b ldr r3, [r3, #0] 80102bc: 4a50 ldr r2, [pc, #320] @ (8010400 ) 80102be: 4293 cmp r3, r2 80102c0: d012 beq.n 80102e8 80102c2: 687b ldr r3, [r7, #4] 80102c4: 681b ldr r3, [r3, #0] 80102c6: 4a4f ldr r2, [pc, #316] @ (8010404 ) 80102c8: 4293 cmp r3, r2 80102ca: d00a beq.n 80102e2 80102cc: 687b ldr r3, [r7, #4] 80102ce: 681b ldr r3, [r3, #0] 80102d0: 4a4d ldr r2, [pc, #308] @ (8010408 ) 80102d2: 4293 cmp r3, r2 80102d4: d102 bne.n 80102dc 80102d6: f44f 4380 mov.w r3, #16384 @ 0x4000 80102da: e01b b.n 8010314 80102dc: f44f 2380 mov.w r3, #262144 @ 0x40000 80102e0: e018 b.n 8010314 80102e2: f44f 6380 mov.w r3, #1024 @ 0x400 80102e6: e015 b.n 8010314 80102e8: 2340 movs r3, #64 @ 0x40 80102ea: e013 b.n 8010314 80102ec: 2304 movs r3, #4 80102ee: e011 b.n 8010314 80102f0: f04f 6380 mov.w r3, #67108864 @ 0x4000000 80102f4: e00e b.n 8010314 80102f6: f44f 0380 mov.w r3, #4194304 @ 0x400000 80102fa: e00b b.n 8010314 80102fc: f44f 2380 mov.w r3, #262144 @ 0x40000 8010300: e008 b.n 8010314 8010302: f44f 4380 mov.w r3, #16384 @ 0x4000 8010306: e005 b.n 8010314 8010308: f44f 6380 mov.w r3, #1024 @ 0x400 801030c: e002 b.n 8010314 801030e: 2340 movs r3, #64 @ 0x40 8010310: e000 b.n 8010314 8010312: 2304 movs r3, #4 8010314: 4a3d ldr r2, [pc, #244] @ (801040c ) 8010316: 6053 str r3, [r2, #4] 8010318: e057 b.n 80103ca 801031a: 687b ldr r3, [r7, #4] 801031c: 681b ldr r3, [r3, #0] 801031e: 4a31 ldr r2, [pc, #196] @ (80103e4 ) 8010320: 4293 cmp r3, r2 8010322: d04f beq.n 80103c4 8010324: 687b ldr r3, [r7, #4] 8010326: 681b ldr r3, [r3, #0] 8010328: 4a2f ldr r2, [pc, #188] @ (80103e8 ) 801032a: 4293 cmp r3, r2 801032c: d048 beq.n 80103c0 801032e: 687b ldr r3, [r7, #4] 8010330: 681b ldr r3, [r3, #0] 8010332: 4a2e ldr r2, [pc, #184] @ (80103ec ) 8010334: 4293 cmp r3, r2 8010336: d040 beq.n 80103ba 8010338: 687b ldr r3, [r7, #4] 801033a: 681b ldr r3, [r3, #0] 801033c: 4a2c ldr r2, [pc, #176] @ (80103f0 ) 801033e: 4293 cmp r3, r2 8010340: d038 beq.n 80103b4 8010342: 687b ldr r3, [r7, #4] 8010344: 681b ldr r3, [r3, #0] 8010346: 4a2b ldr r2, [pc, #172] @ (80103f4 ) 8010348: 4293 cmp r3, r2 801034a: d030 beq.n 80103ae 801034c: 687b ldr r3, [r7, #4] 801034e: 681b ldr r3, [r3, #0] 8010350: 4a29 ldr r2, [pc, #164] @ (80103f8 ) 8010352: 4293 cmp r3, r2 8010354: d028 beq.n 80103a8 8010356: 687b ldr r3, [r7, #4] 8010358: 681b ldr r3, [r3, #0] 801035a: 4a21 ldr r2, [pc, #132] @ (80103e0 ) 801035c: 4293 cmp r3, r2 801035e: d020 beq.n 80103a2 8010360: 687b ldr r3, [r7, #4] 8010362: 681b ldr r3, [r3, #0] 8010364: 4a25 ldr r2, [pc, #148] @ (80103fc ) 8010366: 4293 cmp r3, r2 8010368: d019 beq.n 801039e 801036a: 687b ldr r3, [r7, #4] 801036c: 681b ldr r3, [r3, #0] 801036e: 4a24 ldr r2, [pc, #144] @ (8010400 ) 8010370: 4293 cmp r3, r2 8010372: d012 beq.n 801039a 8010374: 687b ldr r3, [r7, #4] 8010376: 681b ldr r3, [r3, #0] 8010378: 4a22 ldr r2, [pc, #136] @ (8010404 ) 801037a: 4293 cmp r3, r2 801037c: d00a beq.n 8010394 801037e: 687b ldr r3, [r7, #4] 8010380: 681b ldr r3, [r3, #0] 8010382: 4a21 ldr r2, [pc, #132] @ (8010408 ) 8010384: 4293 cmp r3, r2 8010386: d102 bne.n 801038e 8010388: f44f 4380 mov.w r3, #16384 @ 0x4000 801038c: e01b b.n 80103c6 801038e: f44f 2380 mov.w r3, #262144 @ 0x40000 8010392: e018 b.n 80103c6 8010394: f44f 6380 mov.w r3, #1024 @ 0x400 8010398: e015 b.n 80103c6 801039a: 2340 movs r3, #64 @ 0x40 801039c: e013 b.n 80103c6 801039e: 2304 movs r3, #4 80103a0: e011 b.n 80103c6 80103a2: f04f 6380 mov.w r3, #67108864 @ 0x4000000 80103a6: e00e b.n 80103c6 80103a8: f44f 0380 mov.w r3, #4194304 @ 0x400000 80103ac: e00b b.n 80103c6 80103ae: f44f 2380 mov.w r3, #262144 @ 0x40000 80103b2: e008 b.n 80103c6 80103b4: f44f 4380 mov.w r3, #16384 @ 0x4000 80103b8: e005 b.n 80103c6 80103ba: f44f 6380 mov.w r3, #1024 @ 0x400 80103be: e002 b.n 80103c6 80103c0: 2340 movs r3, #64 @ 0x40 80103c2: e000 b.n 80103c6 80103c4: 2304 movs r3, #4 80103c6: 4a12 ldr r2, [pc, #72] @ (8010410 ) 80103c8: 6053 str r3, [r2, #4] /* DMA peripheral state is not updated in Half Transfer */ /* but in Transfer Complete case */ if(hdma->XferHalfCpltCallback != NULL) 80103ca: 687b ldr r3, [r7, #4] 80103cc: 6adb ldr r3, [r3, #44] @ 0x2c 80103ce: 2b00 cmp r3, #0 80103d0: f000 8136 beq.w 8010640 { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); 80103d4: 687b ldr r3, [r7, #4] 80103d6: 6adb ldr r3, [r3, #44] @ 0x2c 80103d8: 6878 ldr r0, [r7, #4] 80103da: 4798 blx r3 if(hdma->XferHalfCpltCallback != NULL) 80103dc: e130 b.n 8010640 80103de: bf00 nop 80103e0: 40020080 .word 0x40020080 80103e4: 40020008 .word 0x40020008 80103e8: 4002001c .word 0x4002001c 80103ec: 40020030 .word 0x40020030 80103f0: 40020044 .word 0x40020044 80103f4: 40020058 .word 0x40020058 80103f8: 4002006c .word 0x4002006c 80103fc: 40020408 .word 0x40020408 8010400: 4002041c .word 0x4002041c 8010404: 40020430 .word 0x40020430 8010408: 40020444 .word 0x40020444 801040c: 40020400 .word 0x40020400 8010410: 40020000 .word 0x40020000 } } /* Transfer Complete Interrupt management ***********************************/ else if (((flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex)) != RESET) && ((source_it & DMA_IT_TC) != RESET)) 8010414: 687b ldr r3, [r7, #4] 8010416: 6c1b ldr r3, [r3, #64] @ 0x40 8010418: 2202 movs r2, #2 801041a: 409a lsls r2, r3 801041c: 68fb ldr r3, [r7, #12] 801041e: 4013 ands r3, r2 8010420: 2b00 cmp r3, #0 8010422: f000 80dd beq.w 80105e0 8010426: 68bb ldr r3, [r7, #8] 8010428: f003 0302 and.w r3, r3, #2 801042c: 2b00 cmp r3, #0 801042e: f000 80d7 beq.w 80105e0 { if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 8010432: 687b ldr r3, [r7, #4] 8010434: 681b ldr r3, [r3, #0] 8010436: 681b ldr r3, [r3, #0] 8010438: f003 0320 and.w r3, r3, #32 801043c: 2b00 cmp r3, #0 801043e: d10b bne.n 8010458 { /* Disable the transfer complete and error interrupt */ __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC); 8010440: 687b ldr r3, [r7, #4] 8010442: 681b ldr r3, [r3, #0] 8010444: 681a ldr r2, [r3, #0] 8010446: 687b ldr r3, [r7, #4] 8010448: 681b ldr r3, [r3, #0] 801044a: f022 020a bic.w r2, r2, #10 801044e: 601a str r2, [r3, #0] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 8010450: 687b ldr r3, [r7, #4] 8010452: 2201 movs r2, #1 8010454: 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)); 8010458: 687b ldr r3, [r7, #4] 801045a: 681b ldr r3, [r3, #0] 801045c: 461a mov r2, r3 801045e: 4b7b ldr r3, [pc, #492] @ (801064c ) 8010460: 429a cmp r2, r3 8010462: d958 bls.n 8010516 8010464: 687b ldr r3, [r7, #4] 8010466: 681b ldr r3, [r3, #0] 8010468: 4a79 ldr r2, [pc, #484] @ (8010650 ) 801046a: 4293 cmp r3, r2 801046c: d04f beq.n 801050e 801046e: 687b ldr r3, [r7, #4] 8010470: 681b ldr r3, [r3, #0] 8010472: 4a78 ldr r2, [pc, #480] @ (8010654 ) 8010474: 4293 cmp r3, r2 8010476: d048 beq.n 801050a 8010478: 687b ldr r3, [r7, #4] 801047a: 681b ldr r3, [r3, #0] 801047c: 4a76 ldr r2, [pc, #472] @ (8010658 ) 801047e: 4293 cmp r3, r2 8010480: d040 beq.n 8010504 8010482: 687b ldr r3, [r7, #4] 8010484: 681b ldr r3, [r3, #0] 8010486: 4a75 ldr r2, [pc, #468] @ (801065c ) 8010488: 4293 cmp r3, r2 801048a: d038 beq.n 80104fe 801048c: 687b ldr r3, [r7, #4] 801048e: 681b ldr r3, [r3, #0] 8010490: 4a73 ldr r2, [pc, #460] @ (8010660 ) 8010492: 4293 cmp r3, r2 8010494: d030 beq.n 80104f8 8010496: 687b ldr r3, [r7, #4] 8010498: 681b ldr r3, [r3, #0] 801049a: 4a72 ldr r2, [pc, #456] @ (8010664 ) 801049c: 4293 cmp r3, r2 801049e: d028 beq.n 80104f2 80104a0: 687b ldr r3, [r7, #4] 80104a2: 681b ldr r3, [r3, #0] 80104a4: 4a69 ldr r2, [pc, #420] @ (801064c ) 80104a6: 4293 cmp r3, r2 80104a8: d020 beq.n 80104ec 80104aa: 687b ldr r3, [r7, #4] 80104ac: 681b ldr r3, [r3, #0] 80104ae: 4a6e ldr r2, [pc, #440] @ (8010668 ) 80104b0: 4293 cmp r3, r2 80104b2: d019 beq.n 80104e8 80104b4: 687b ldr r3, [r7, #4] 80104b6: 681b ldr r3, [r3, #0] 80104b8: 4a6c ldr r2, [pc, #432] @ (801066c ) 80104ba: 4293 cmp r3, r2 80104bc: d012 beq.n 80104e4 80104be: 687b ldr r3, [r7, #4] 80104c0: 681b ldr r3, [r3, #0] 80104c2: 4a6b ldr r2, [pc, #428] @ (8010670 ) 80104c4: 4293 cmp r3, r2 80104c6: d00a beq.n 80104de 80104c8: 687b ldr r3, [r7, #4] 80104ca: 681b ldr r3, [r3, #0] 80104cc: 4a69 ldr r2, [pc, #420] @ (8010674 ) 80104ce: 4293 cmp r3, r2 80104d0: d102 bne.n 80104d8 80104d2: f44f 5300 mov.w r3, #8192 @ 0x2000 80104d6: e01b b.n 8010510 80104d8: f44f 3300 mov.w r3, #131072 @ 0x20000 80104dc: e018 b.n 8010510 80104de: f44f 7300 mov.w r3, #512 @ 0x200 80104e2: e015 b.n 8010510 80104e4: 2320 movs r3, #32 80104e6: e013 b.n 8010510 80104e8: 2302 movs r3, #2 80104ea: e011 b.n 8010510 80104ec: f04f 7300 mov.w r3, #33554432 @ 0x2000000 80104f0: e00e b.n 8010510 80104f2: f44f 1300 mov.w r3, #2097152 @ 0x200000 80104f6: e00b b.n 8010510 80104f8: f44f 3300 mov.w r3, #131072 @ 0x20000 80104fc: e008 b.n 8010510 80104fe: f44f 5300 mov.w r3, #8192 @ 0x2000 8010502: e005 b.n 8010510 8010504: f44f 7300 mov.w r3, #512 @ 0x200 8010508: e002 b.n 8010510 801050a: 2320 movs r3, #32 801050c: e000 b.n 8010510 801050e: 2302 movs r3, #2 8010510: 4a59 ldr r2, [pc, #356] @ (8010678 ) 8010512: 6053 str r3, [r2, #4] 8010514: e057 b.n 80105c6 8010516: 687b ldr r3, [r7, #4] 8010518: 681b ldr r3, [r3, #0] 801051a: 4a4d ldr r2, [pc, #308] @ (8010650 ) 801051c: 4293 cmp r3, r2 801051e: d04f beq.n 80105c0 8010520: 687b ldr r3, [r7, #4] 8010522: 681b ldr r3, [r3, #0] 8010524: 4a4b ldr r2, [pc, #300] @ (8010654 ) 8010526: 4293 cmp r3, r2 8010528: d048 beq.n 80105bc 801052a: 687b ldr r3, [r7, #4] 801052c: 681b ldr r3, [r3, #0] 801052e: 4a4a ldr r2, [pc, #296] @ (8010658 ) 8010530: 4293 cmp r3, r2 8010532: d040 beq.n 80105b6 8010534: 687b ldr r3, [r7, #4] 8010536: 681b ldr r3, [r3, #0] 8010538: 4a48 ldr r2, [pc, #288] @ (801065c ) 801053a: 4293 cmp r3, r2 801053c: d038 beq.n 80105b0 801053e: 687b ldr r3, [r7, #4] 8010540: 681b ldr r3, [r3, #0] 8010542: 4a47 ldr r2, [pc, #284] @ (8010660 ) 8010544: 4293 cmp r3, r2 8010546: d030 beq.n 80105aa 8010548: 687b ldr r3, [r7, #4] 801054a: 681b ldr r3, [r3, #0] 801054c: 4a45 ldr r2, [pc, #276] @ (8010664 ) 801054e: 4293 cmp r3, r2 8010550: d028 beq.n 80105a4 8010552: 687b ldr r3, [r7, #4] 8010554: 681b ldr r3, [r3, #0] 8010556: 4a3d ldr r2, [pc, #244] @ (801064c ) 8010558: 4293 cmp r3, r2 801055a: d020 beq.n 801059e 801055c: 687b ldr r3, [r7, #4] 801055e: 681b ldr r3, [r3, #0] 8010560: 4a41 ldr r2, [pc, #260] @ (8010668 ) 8010562: 4293 cmp r3, r2 8010564: d019 beq.n 801059a 8010566: 687b ldr r3, [r7, #4] 8010568: 681b ldr r3, [r3, #0] 801056a: 4a40 ldr r2, [pc, #256] @ (801066c ) 801056c: 4293 cmp r3, r2 801056e: d012 beq.n 8010596 8010570: 687b ldr r3, [r7, #4] 8010572: 681b ldr r3, [r3, #0] 8010574: 4a3e ldr r2, [pc, #248] @ (8010670 ) 8010576: 4293 cmp r3, r2 8010578: d00a beq.n 8010590 801057a: 687b ldr r3, [r7, #4] 801057c: 681b ldr r3, [r3, #0] 801057e: 4a3d ldr r2, [pc, #244] @ (8010674 ) 8010580: 4293 cmp r3, r2 8010582: d102 bne.n 801058a 8010584: f44f 5300 mov.w r3, #8192 @ 0x2000 8010588: e01b b.n 80105c2 801058a: f44f 3300 mov.w r3, #131072 @ 0x20000 801058e: e018 b.n 80105c2 8010590: f44f 7300 mov.w r3, #512 @ 0x200 8010594: e015 b.n 80105c2 8010596: 2320 movs r3, #32 8010598: e013 b.n 80105c2 801059a: 2302 movs r3, #2 801059c: e011 b.n 80105c2 801059e: f04f 7300 mov.w r3, #33554432 @ 0x2000000 80105a2: e00e b.n 80105c2 80105a4: f44f 1300 mov.w r3, #2097152 @ 0x200000 80105a8: e00b b.n 80105c2 80105aa: f44f 3300 mov.w r3, #131072 @ 0x20000 80105ae: e008 b.n 80105c2 80105b0: f44f 5300 mov.w r3, #8192 @ 0x2000 80105b4: e005 b.n 80105c2 80105b6: f44f 7300 mov.w r3, #512 @ 0x200 80105ba: e002 b.n 80105c2 80105bc: 2320 movs r3, #32 80105be: e000 b.n 80105c2 80105c0: 2302 movs r3, #2 80105c2: 4a2e ldr r2, [pc, #184] @ (801067c ) 80105c4: 6053 str r3, [r2, #4] /* Process Unlocked */ __HAL_UNLOCK(hdma); 80105c6: 687b ldr r3, [r7, #4] 80105c8: 2200 movs r2, #0 80105ca: f883 2020 strb.w r2, [r3, #32] if(hdma->XferCpltCallback != NULL) 80105ce: 687b ldr r3, [r7, #4] 80105d0: 6a9b ldr r3, [r3, #40] @ 0x28 80105d2: 2b00 cmp r3, #0 80105d4: d034 beq.n 8010640 { /* Transfer complete callback */ hdma->XferCpltCallback(hdma); 80105d6: 687b ldr r3, [r7, #4] 80105d8: 6a9b ldr r3, [r3, #40] @ 0x28 80105da: 6878 ldr r0, [r7, #4] 80105dc: 4798 blx r3 if(hdma->XferCpltCallback != NULL) 80105de: e02f b.n 8010640 } } /* Transfer Error Interrupt management **************************************/ else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_TE))) 80105e0: 687b ldr r3, [r7, #4] 80105e2: 6c1b ldr r3, [r3, #64] @ 0x40 80105e4: 2208 movs r2, #8 80105e6: 409a lsls r2, r3 80105e8: 68fb ldr r3, [r7, #12] 80105ea: 4013 ands r3, r2 80105ec: 2b00 cmp r3, #0 80105ee: d028 beq.n 8010642 80105f0: 68bb ldr r3, [r7, #8] 80105f2: f003 0308 and.w r3, r3, #8 80105f6: 2b00 cmp r3, #0 80105f8: d023 beq.n 8010642 { /* 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)); 80105fa: 687b ldr r3, [r7, #4] 80105fc: 681b ldr r3, [r3, #0] 80105fe: 681a ldr r2, [r3, #0] 8010600: 687b ldr r3, [r7, #4] 8010602: 681b ldr r3, [r3, #0] 8010604: f022 020e bic.w r2, r2, #14 8010608: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 801060a: 687b ldr r3, [r7, #4] 801060c: 6c1a ldr r2, [r3, #64] @ 0x40 801060e: 687b ldr r3, [r7, #4] 8010610: 6bdb ldr r3, [r3, #60] @ 0x3c 8010612: 2101 movs r1, #1 8010614: fa01 f202 lsl.w r2, r1, r2 8010618: 605a str r2, [r3, #4] /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TE; 801061a: 687b ldr r3, [r7, #4] 801061c: 2201 movs r2, #1 801061e: 639a str r2, [r3, #56] @ 0x38 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; 8010620: 687b ldr r3, [r7, #4] 8010622: 2201 movs r2, #1 8010624: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); 8010628: 687b ldr r3, [r7, #4] 801062a: 2200 movs r2, #0 801062c: f883 2020 strb.w r2, [r3, #32] if (hdma->XferErrorCallback != NULL) 8010630: 687b ldr r3, [r7, #4] 8010632: 6b1b ldr r3, [r3, #48] @ 0x30 8010634: 2b00 cmp r3, #0 8010636: d004 beq.n 8010642 { /* Transfer error callback */ hdma->XferErrorCallback(hdma); 8010638: 687b ldr r3, [r7, #4] 801063a: 6b1b ldr r3, [r3, #48] @ 0x30 801063c: 6878 ldr r0, [r7, #4] 801063e: 4798 blx r3 } } return; 8010640: bf00 nop 8010642: bf00 nop } 8010644: 3710 adds r7, #16 8010646: 46bd mov sp, r7 8010648: bd80 pop {r7, pc} 801064a: bf00 nop 801064c: 40020080 .word 0x40020080 8010650: 40020008 .word 0x40020008 8010654: 4002001c .word 0x4002001c 8010658: 40020030 .word 0x40020030 801065c: 40020044 .word 0x40020044 8010660: 40020058 .word 0x40020058 8010664: 4002006c .word 0x4002006c 8010668: 40020408 .word 0x40020408 801066c: 4002041c .word 0x4002041c 8010670: 40020430 .word 0x40020430 8010674: 40020444 .word 0x40020444 8010678: 40020400 .word 0x40020400 801067c: 40020000 .word 0x40020000 08010680 : * @param hdma : pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval DMA Error Code */ uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma) { 8010680: b480 push {r7} 8010682: b083 sub sp, #12 8010684: af00 add r7, sp, #0 8010686: 6078 str r0, [r7, #4] return hdma->ErrorCode; 8010688: 687b ldr r3, [r7, #4] 801068a: 6b9b ldr r3, [r3, #56] @ 0x38 } 801068c: 4618 mov r0, r3 801068e: 370c adds r7, #12 8010690: 46bd mov sp, r7 8010692: bc80 pop {r7} 8010694: 4770 bx lr 08010696 : * @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) { 8010696: b480 push {r7} 8010698: b085 sub sp, #20 801069a: af00 add r7, sp, #0 801069c: 60f8 str r0, [r7, #12] 801069e: 60b9 str r1, [r7, #8] 80106a0: 607a str r2, [r7, #4] 80106a2: 603b str r3, [r7, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); 80106a4: 68fb ldr r3, [r7, #12] 80106a6: 6c1a ldr r2, [r3, #64] @ 0x40 80106a8: 68fb ldr r3, [r7, #12] 80106aa: 6bdb ldr r3, [r3, #60] @ 0x3c 80106ac: 2101 movs r1, #1 80106ae: fa01 f202 lsl.w r2, r1, r2 80106b2: 605a str r2, [r3, #4] /* Configure DMA Channel data length */ hdma->Instance->CNDTR = DataLength; 80106b4: 68fb ldr r3, [r7, #12] 80106b6: 681b ldr r3, [r3, #0] 80106b8: 683a ldr r2, [r7, #0] 80106ba: 605a str r2, [r3, #4] /* Memory to Peripheral */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) 80106bc: 68fb ldr r3, [r7, #12] 80106be: 685b ldr r3, [r3, #4] 80106c0: 2b10 cmp r3, #16 80106c2: d108 bne.n 80106d6 { /* Configure DMA Channel destination address */ hdma->Instance->CPAR = DstAddress; 80106c4: 68fb ldr r3, [r7, #12] 80106c6: 681b ldr r3, [r3, #0] 80106c8: 687a ldr r2, [r7, #4] 80106ca: 609a str r2, [r3, #8] /* Configure DMA Channel source address */ hdma->Instance->CMAR = SrcAddress; 80106cc: 68fb ldr r3, [r7, #12] 80106ce: 681b ldr r3, [r3, #0] 80106d0: 68ba ldr r2, [r7, #8] 80106d2: 60da str r2, [r3, #12] hdma->Instance->CPAR = SrcAddress; /* Configure DMA Channel destination address */ hdma->Instance->CMAR = DstAddress; } } 80106d4: e007 b.n 80106e6 hdma->Instance->CPAR = SrcAddress; 80106d6: 68fb ldr r3, [r7, #12] 80106d8: 681b ldr r3, [r3, #0] 80106da: 68ba ldr r2, [r7, #8] 80106dc: 609a str r2, [r3, #8] hdma->Instance->CMAR = DstAddress; 80106de: 68fb ldr r3, [r7, #12] 80106e0: 681b ldr r3, [r3, #0] 80106e2: 687a ldr r2, [r7, #4] 80106e4: 60da str r2, [r3, #12] } 80106e6: bf00 nop 80106e8: 3714 adds r7, #20 80106ea: 46bd mov sp, r7 80106ec: bc80 pop {r7} 80106ee: 4770 bx lr 080106f0 : * @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) { 80106f0: b480 push {r7} 80106f2: b08b sub sp, #44 @ 0x2c 80106f4: af00 add r7, sp, #0 80106f6: 6078 str r0, [r7, #4] 80106f8: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 80106fa: 2300 movs r3, #0 80106fc: 627b str r3, [r7, #36] @ 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; 80106fe: 2300 movs r3, #0 8010700: 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) 8010702: e169 b.n 80109d8 { /* Get the IO position */ ioposition = (0x01uL << position); 8010704: 2201 movs r2, #1 8010706: 6a7b ldr r3, [r7, #36] @ 0x24 8010708: fa02 f303 lsl.w r3, r2, r3 801070c: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; 801070e: 683b ldr r3, [r7, #0] 8010710: 681b ldr r3, [r3, #0] 8010712: 69fa ldr r2, [r7, #28] 8010714: 4013 ands r3, r2 8010716: 61bb str r3, [r7, #24] if (iocurrent == ioposition) 8010718: 69ba ldr r2, [r7, #24] 801071a: 69fb ldr r3, [r7, #28] 801071c: 429a cmp r2, r3 801071e: f040 8158 bne.w 80109d2 { /* 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) 8010722: 683b ldr r3, [r7, #0] 8010724: 685b ldr r3, [r3, #4] 8010726: 4a9a ldr r2, [pc, #616] @ (8010990 ) 8010728: 4293 cmp r3, r2 801072a: d05e beq.n 80107ea 801072c: 4a98 ldr r2, [pc, #608] @ (8010990 ) 801072e: 4293 cmp r3, r2 8010730: d875 bhi.n 801081e 8010732: 4a98 ldr r2, [pc, #608] @ (8010994 ) 8010734: 4293 cmp r3, r2 8010736: d058 beq.n 80107ea 8010738: 4a96 ldr r2, [pc, #600] @ (8010994 ) 801073a: 4293 cmp r3, r2 801073c: d86f bhi.n 801081e 801073e: 4a96 ldr r2, [pc, #600] @ (8010998 ) 8010740: 4293 cmp r3, r2 8010742: d052 beq.n 80107ea 8010744: 4a94 ldr r2, [pc, #592] @ (8010998 ) 8010746: 4293 cmp r3, r2 8010748: d869 bhi.n 801081e 801074a: 4a94 ldr r2, [pc, #592] @ (801099c ) 801074c: 4293 cmp r3, r2 801074e: d04c beq.n 80107ea 8010750: 4a92 ldr r2, [pc, #584] @ (801099c ) 8010752: 4293 cmp r3, r2 8010754: d863 bhi.n 801081e 8010756: 4a92 ldr r2, [pc, #584] @ (80109a0 ) 8010758: 4293 cmp r3, r2 801075a: d046 beq.n 80107ea 801075c: 4a90 ldr r2, [pc, #576] @ (80109a0 ) 801075e: 4293 cmp r3, r2 8010760: d85d bhi.n 801081e 8010762: 2b12 cmp r3, #18 8010764: d82a bhi.n 80107bc 8010766: 2b12 cmp r3, #18 8010768: d859 bhi.n 801081e 801076a: a201 add r2, pc, #4 @ (adr r2, 8010770 ) 801076c: f852 f023 ldr.w pc, [r2, r3, lsl #2] 8010770: 080107eb .word 0x080107eb 8010774: 080107c5 .word 0x080107c5 8010778: 080107d7 .word 0x080107d7 801077c: 08010819 .word 0x08010819 8010780: 0801081f .word 0x0801081f 8010784: 0801081f .word 0x0801081f 8010788: 0801081f .word 0x0801081f 801078c: 0801081f .word 0x0801081f 8010790: 0801081f .word 0x0801081f 8010794: 0801081f .word 0x0801081f 8010798: 0801081f .word 0x0801081f 801079c: 0801081f .word 0x0801081f 80107a0: 0801081f .word 0x0801081f 80107a4: 0801081f .word 0x0801081f 80107a8: 0801081f .word 0x0801081f 80107ac: 0801081f .word 0x0801081f 80107b0: 0801081f .word 0x0801081f 80107b4: 080107cd .word 0x080107cd 80107b8: 080107e1 .word 0x080107e1 80107bc: 4a79 ldr r2, [pc, #484] @ (80109a4 ) 80107be: 4293 cmp r3, r2 80107c0: d013 beq.n 80107ea config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; 80107c2: e02c b.n 801081e config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; 80107c4: 683b ldr r3, [r7, #0] 80107c6: 68db ldr r3, [r3, #12] 80107c8: 623b str r3, [r7, #32] break; 80107ca: e029 b.n 8010820 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; 80107cc: 683b ldr r3, [r7, #0] 80107ce: 68db ldr r3, [r3, #12] 80107d0: 3304 adds r3, #4 80107d2: 623b str r3, [r7, #32] break; 80107d4: e024 b.n 8010820 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; 80107d6: 683b ldr r3, [r7, #0] 80107d8: 68db ldr r3, [r3, #12] 80107da: 3308 adds r3, #8 80107dc: 623b str r3, [r7, #32] break; 80107de: e01f b.n 8010820 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; 80107e0: 683b ldr r3, [r7, #0] 80107e2: 68db ldr r3, [r3, #12] 80107e4: 330c adds r3, #12 80107e6: 623b str r3, [r7, #32] break; 80107e8: e01a b.n 8010820 if (GPIO_Init->Pull == GPIO_NOPULL) 80107ea: 683b ldr r3, [r7, #0] 80107ec: 689b ldr r3, [r3, #8] 80107ee: 2b00 cmp r3, #0 80107f0: d102 bne.n 80107f8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; 80107f2: 2304 movs r3, #4 80107f4: 623b str r3, [r7, #32] break; 80107f6: e013 b.n 8010820 else if (GPIO_Init->Pull == GPIO_PULLUP) 80107f8: 683b ldr r3, [r7, #0] 80107fa: 689b ldr r3, [r3, #8] 80107fc: 2b01 cmp r3, #1 80107fe: d105 bne.n 801080c config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 8010800: 2308 movs r3, #8 8010802: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; 8010804: 687b ldr r3, [r7, #4] 8010806: 69fa ldr r2, [r7, #28] 8010808: 611a str r2, [r3, #16] break; 801080a: e009 b.n 8010820 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 801080c: 2308 movs r3, #8 801080e: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; 8010810: 687b ldr r3, [r7, #4] 8010812: 69fa ldr r2, [r7, #28] 8010814: 615a str r2, [r3, #20] break; 8010816: e003 b.n 8010820 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; 8010818: 2300 movs r3, #0 801081a: 623b str r3, [r7, #32] break; 801081c: e000 b.n 8010820 break; 801081e: 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; 8010820: 69bb ldr r3, [r7, #24] 8010822: 2bff cmp r3, #255 @ 0xff 8010824: d801 bhi.n 801082a 8010826: 687b ldr r3, [r7, #4] 8010828: e001 b.n 801082e 801082a: 687b ldr r3, [r7, #4] 801082c: 3304 adds r3, #4 801082e: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); 8010830: 69bb ldr r3, [r7, #24] 8010832: 2bff cmp r3, #255 @ 0xff 8010834: d802 bhi.n 801083c 8010836: 6a7b ldr r3, [r7, #36] @ 0x24 8010838: 009b lsls r3, r3, #2 801083a: e002 b.n 8010842 801083c: 6a7b ldr r3, [r7, #36] @ 0x24 801083e: 3b08 subs r3, #8 8010840: 009b lsls r3, r3, #2 8010842: 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)); 8010844: 697b ldr r3, [r7, #20] 8010846: 681a ldr r2, [r3, #0] 8010848: 210f movs r1, #15 801084a: 693b ldr r3, [r7, #16] 801084c: fa01 f303 lsl.w r3, r1, r3 8010850: 43db mvns r3, r3 8010852: 401a ands r2, r3 8010854: 6a39 ldr r1, [r7, #32] 8010856: 693b ldr r3, [r7, #16] 8010858: fa01 f303 lsl.w r3, r1, r3 801085c: 431a orrs r2, r3 801085e: 697b ldr r3, [r7, #20] 8010860: 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) 8010862: 683b ldr r3, [r7, #0] 8010864: 685b ldr r3, [r3, #4] 8010866: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 801086a: 2b00 cmp r3, #0 801086c: f000 80b1 beq.w 80109d2 { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); 8010870: 4b4d ldr r3, [pc, #308] @ (80109a8 ) 8010872: 699b ldr r3, [r3, #24] 8010874: 4a4c ldr r2, [pc, #304] @ (80109a8 ) 8010876: f043 0301 orr.w r3, r3, #1 801087a: 6193 str r3, [r2, #24] 801087c: 4b4a ldr r3, [pc, #296] @ (80109a8 ) 801087e: 699b ldr r3, [r3, #24] 8010880: f003 0301 and.w r3, r3, #1 8010884: 60bb str r3, [r7, #8] 8010886: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; 8010888: 4a48 ldr r2, [pc, #288] @ (80109ac ) 801088a: 6a7b ldr r3, [r7, #36] @ 0x24 801088c: 089b lsrs r3, r3, #2 801088e: 3302 adds r3, #2 8010890: f852 3023 ldr.w r3, [r2, r3, lsl #2] 8010894: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); 8010896: 6a7b ldr r3, [r7, #36] @ 0x24 8010898: f003 0303 and.w r3, r3, #3 801089c: 009b lsls r3, r3, #2 801089e: 220f movs r2, #15 80108a0: fa02 f303 lsl.w r3, r2, r3 80108a4: 43db mvns r3, r3 80108a6: 68fa ldr r2, [r7, #12] 80108a8: 4013 ands r3, r2 80108aa: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); 80108ac: 687b ldr r3, [r7, #4] 80108ae: 4a40 ldr r2, [pc, #256] @ (80109b0 ) 80108b0: 4293 cmp r3, r2 80108b2: d013 beq.n 80108dc 80108b4: 687b ldr r3, [r7, #4] 80108b6: 4a3f ldr r2, [pc, #252] @ (80109b4 ) 80108b8: 4293 cmp r3, r2 80108ba: d00d beq.n 80108d8 80108bc: 687b ldr r3, [r7, #4] 80108be: 4a3e ldr r2, [pc, #248] @ (80109b8 ) 80108c0: 4293 cmp r3, r2 80108c2: d007 beq.n 80108d4 80108c4: 687b ldr r3, [r7, #4] 80108c6: 4a3d ldr r2, [pc, #244] @ (80109bc ) 80108c8: 4293 cmp r3, r2 80108ca: d101 bne.n 80108d0 80108cc: 2303 movs r3, #3 80108ce: e006 b.n 80108de 80108d0: 2304 movs r3, #4 80108d2: e004 b.n 80108de 80108d4: 2302 movs r3, #2 80108d6: e002 b.n 80108de 80108d8: 2301 movs r3, #1 80108da: e000 b.n 80108de 80108dc: 2300 movs r3, #0 80108de: 6a7a ldr r2, [r7, #36] @ 0x24 80108e0: f002 0203 and.w r2, r2, #3 80108e4: 0092 lsls r2, r2, #2 80108e6: 4093 lsls r3, r2 80108e8: 68fa ldr r2, [r7, #12] 80108ea: 4313 orrs r3, r2 80108ec: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; 80108ee: 492f ldr r1, [pc, #188] @ (80109ac ) 80108f0: 6a7b ldr r3, [r7, #36] @ 0x24 80108f2: 089b lsrs r3, r3, #2 80108f4: 3302 adds r3, #2 80108f6: 68fa ldr r2, [r7, #12] 80108f8: f841 2023 str.w r2, [r1, r3, lsl #2] /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) 80108fc: 683b ldr r3, [r7, #0] 80108fe: 685b ldr r3, [r3, #4] 8010900: f403 1380 and.w r3, r3, #1048576 @ 0x100000 8010904: 2b00 cmp r3, #0 8010906: d006 beq.n 8010916 { SET_BIT(EXTI->RTSR, iocurrent); 8010908: 4b2d ldr r3, [pc, #180] @ (80109c0 ) 801090a: 689a ldr r2, [r3, #8] 801090c: 492c ldr r1, [pc, #176] @ (80109c0 ) 801090e: 69bb ldr r3, [r7, #24] 8010910: 4313 orrs r3, r2 8010912: 608b str r3, [r1, #8] 8010914: e006 b.n 8010924 } else { CLEAR_BIT(EXTI->RTSR, iocurrent); 8010916: 4b2a ldr r3, [pc, #168] @ (80109c0 ) 8010918: 689a ldr r2, [r3, #8] 801091a: 69bb ldr r3, [r7, #24] 801091c: 43db mvns r3, r3 801091e: 4928 ldr r1, [pc, #160] @ (80109c0 ) 8010920: 4013 ands r3, r2 8010922: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) 8010924: 683b ldr r3, [r7, #0] 8010926: 685b ldr r3, [r3, #4] 8010928: f403 1300 and.w r3, r3, #2097152 @ 0x200000 801092c: 2b00 cmp r3, #0 801092e: d006 beq.n 801093e { SET_BIT(EXTI->FTSR, iocurrent); 8010930: 4b23 ldr r3, [pc, #140] @ (80109c0 ) 8010932: 68da ldr r2, [r3, #12] 8010934: 4922 ldr r1, [pc, #136] @ (80109c0 ) 8010936: 69bb ldr r3, [r7, #24] 8010938: 4313 orrs r3, r2 801093a: 60cb str r3, [r1, #12] 801093c: e006 b.n 801094c } else { CLEAR_BIT(EXTI->FTSR, iocurrent); 801093e: 4b20 ldr r3, [pc, #128] @ (80109c0 ) 8010940: 68da ldr r2, [r3, #12] 8010942: 69bb ldr r3, [r7, #24] 8010944: 43db mvns r3, r3 8010946: 491e ldr r1, [pc, #120] @ (80109c0 ) 8010948: 4013 ands r3, r2 801094a: 60cb str r3, [r1, #12] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) 801094c: 683b ldr r3, [r7, #0] 801094e: 685b ldr r3, [r3, #4] 8010950: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010954: 2b00 cmp r3, #0 8010956: d006 beq.n 8010966 { SET_BIT(EXTI->EMR, iocurrent); 8010958: 4b19 ldr r3, [pc, #100] @ (80109c0 ) 801095a: 685a ldr r2, [r3, #4] 801095c: 4918 ldr r1, [pc, #96] @ (80109c0 ) 801095e: 69bb ldr r3, [r7, #24] 8010960: 4313 orrs r3, r2 8010962: 604b str r3, [r1, #4] 8010964: e006 b.n 8010974 } else { CLEAR_BIT(EXTI->EMR, iocurrent); 8010966: 4b16 ldr r3, [pc, #88] @ (80109c0 ) 8010968: 685a ldr r2, [r3, #4] 801096a: 69bb ldr r3, [r7, #24] 801096c: 43db mvns r3, r3 801096e: 4914 ldr r1, [pc, #80] @ (80109c0 ) 8010970: 4013 ands r3, r2 8010972: 604b str r3, [r1, #4] } /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) 8010974: 683b ldr r3, [r7, #0] 8010976: 685b ldr r3, [r3, #4] 8010978: f403 3380 and.w r3, r3, #65536 @ 0x10000 801097c: 2b00 cmp r3, #0 801097e: d021 beq.n 80109c4 { SET_BIT(EXTI->IMR, iocurrent); 8010980: 4b0f ldr r3, [pc, #60] @ (80109c0 ) 8010982: 681a ldr r2, [r3, #0] 8010984: 490e ldr r1, [pc, #56] @ (80109c0 ) 8010986: 69bb ldr r3, [r7, #24] 8010988: 4313 orrs r3, r2 801098a: 600b str r3, [r1, #0] 801098c: e021 b.n 80109d2 801098e: bf00 nop 8010990: 10320000 .word 0x10320000 8010994: 10310000 .word 0x10310000 8010998: 10220000 .word 0x10220000 801099c: 10210000 .word 0x10210000 80109a0: 10120000 .word 0x10120000 80109a4: 10110000 .word 0x10110000 80109a8: 40021000 .word 0x40021000 80109ac: 40010000 .word 0x40010000 80109b0: 40010800 .word 0x40010800 80109b4: 40010c00 .word 0x40010c00 80109b8: 40011000 .word 0x40011000 80109bc: 40011400 .word 0x40011400 80109c0: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->IMR, iocurrent); 80109c4: 4b0b ldr r3, [pc, #44] @ (80109f4 ) 80109c6: 681a ldr r2, [r3, #0] 80109c8: 69bb ldr r3, [r7, #24] 80109ca: 43db mvns r3, r3 80109cc: 4909 ldr r1, [pc, #36] @ (80109f4 ) 80109ce: 4013 ands r3, r2 80109d0: 600b str r3, [r1, #0] } } } position++; 80109d2: 6a7b ldr r3, [r7, #36] @ 0x24 80109d4: 3301 adds r3, #1 80109d6: 627b str r3, [r7, #36] @ 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) 80109d8: 683b ldr r3, [r7, #0] 80109da: 681a ldr r2, [r3, #0] 80109dc: 6a7b ldr r3, [r7, #36] @ 0x24 80109de: fa22 f303 lsr.w r3, r2, r3 80109e2: 2b00 cmp r3, #0 80109e4: f47f ae8e bne.w 8010704 } } 80109e8: bf00 nop 80109ea: bf00 nop 80109ec: 372c adds r7, #44 @ 0x2c 80109ee: 46bd mov sp, r7 80109f0: bc80 pop {r7} 80109f2: 4770 bx lr 80109f4: 40010400 .word 0x40010400 080109f8 : * @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) { 80109f8: b480 push {r7} 80109fa: b085 sub sp, #20 80109fc: af00 add r7, sp, #0 80109fe: 6078 str r0, [r7, #4] 8010a00: 460b mov r3, r1 8010a02: 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) 8010a04: 687b ldr r3, [r7, #4] 8010a06: 689a ldr r2, [r3, #8] 8010a08: 887b ldrh r3, [r7, #2] 8010a0a: 4013 ands r3, r2 8010a0c: 2b00 cmp r3, #0 8010a0e: d002 beq.n 8010a16 { bitstatus = GPIO_PIN_SET; 8010a10: 2301 movs r3, #1 8010a12: 73fb strb r3, [r7, #15] 8010a14: e001 b.n 8010a1a } else { bitstatus = GPIO_PIN_RESET; 8010a16: 2300 movs r3, #0 8010a18: 73fb strb r3, [r7, #15] } return bitstatus; 8010a1a: 7bfb ldrb r3, [r7, #15] } 8010a1c: 4618 mov r0, r3 8010a1e: 3714 adds r7, #20 8010a20: 46bd mov sp, r7 8010a22: bc80 pop {r7} 8010a24: 4770 bx lr 08010a26 : * @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) { 8010a26: b480 push {r7} 8010a28: b083 sub sp, #12 8010a2a: af00 add r7, sp, #0 8010a2c: 6078 str r0, [r7, #4] 8010a2e: 460b mov r3, r1 8010a30: 807b strh r3, [r7, #2] 8010a32: 4613 mov r3, r2 8010a34: 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) 8010a36: 787b ldrb r3, [r7, #1] 8010a38: 2b00 cmp r3, #0 8010a3a: d003 beq.n 8010a44 { GPIOx->BSRR = GPIO_Pin; 8010a3c: 887a ldrh r2, [r7, #2] 8010a3e: 687b ldr r3, [r7, #4] 8010a40: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } 8010a42: e003 b.n 8010a4c GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; 8010a44: 887b ldrh r3, [r7, #2] 8010a46: 041a lsls r2, r3, #16 8010a48: 687b ldr r3, [r7, #4] 8010a4a: 611a str r2, [r3, #16] } 8010a4c: bf00 nop 8010a4e: 370c adds r7, #12 8010a50: 46bd mov sp, r7 8010a52: bc80 pop {r7} 8010a54: 4770 bx lr ... 08010a58 : * @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) { 8010a58: b480 push {r7} 8010a5a: af00 add r7, sp, #0 /* Enable access to RTC and backup registers */ *(__IO uint32_t *) CR_DBP_BB = (uint32_t)ENABLE; 8010a5c: 4b03 ldr r3, [pc, #12] @ (8010a6c ) 8010a5e: 2201 movs r2, #1 8010a60: 601a str r2, [r3, #0] } 8010a62: bf00 nop 8010a64: 46bd mov sp, r7 8010a66: bc80 pop {r7} 8010a68: 4770 bx lr 8010a6a: bf00 nop 8010a6c: 420e0020 .word 0x420e0020 08010a70 : * - Peripheral clocks * - LSI, LSE and RTC clocks * @retval HAL_StatusTypeDef */ HAL_StatusTypeDef HAL_RCC_DeInit(void) { 8010a70: b580 push {r7, lr} 8010a72: b082 sub sp, #8 8010a74: af00 add r7, sp, #0 uint32_t tickstart; /* Get Start Tick */ tickstart = HAL_GetTick(); 8010a76: f7fd fc3f bl 800e2f8 8010a7a: 6078 str r0, [r7, #4] /* Set HSION bit */ SET_BIT(RCC->CR, RCC_CR_HSION); 8010a7c: 4b60 ldr r3, [pc, #384] @ (8010c00 ) 8010a7e: 681b ldr r3, [r3, #0] 8010a80: 4a5f ldr r2, [pc, #380] @ (8010c00 ) 8010a82: f043 0301 orr.w r3, r3, #1 8010a86: 6013 str r3, [r2, #0] /* Wait till HSI is ready */ while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) 8010a88: e008 b.n 8010a9c { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010a8a: f7fd fc35 bl 800e2f8 8010a8e: 4602 mov r2, r0 8010a90: 687b ldr r3, [r7, #4] 8010a92: 1ad3 subs r3, r2, r3 8010a94: 2b02 cmp r3, #2 8010a96: d901 bls.n 8010a9c { return HAL_TIMEOUT; 8010a98: 2303 movs r3, #3 8010a9a: e0ac b.n 8010bf6 while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) 8010a9c: 4b58 ldr r3, [pc, #352] @ (8010c00 ) 8010a9e: 681b ldr r3, [r3, #0] 8010aa0: f003 0302 and.w r3, r3, #2 8010aa4: 2b00 cmp r3, #0 8010aa6: d0f0 beq.n 8010a8a } } /* Set HSITRIM bits to the reset value */ MODIFY_REG(RCC->CR, RCC_CR_HSITRIM, (0x10U << RCC_CR_HSITRIM_Pos)); 8010aa8: 4b55 ldr r3, [pc, #340] @ (8010c00 ) 8010aaa: 681b ldr r3, [r3, #0] 8010aac: f023 03f8 bic.w r3, r3, #248 @ 0xf8 8010ab0: 4a53 ldr r2, [pc, #332] @ (8010c00 ) 8010ab2: f043 0380 orr.w r3, r3, #128 @ 0x80 8010ab6: 6013 str r3, [r2, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010ab8: f7fd fc1e bl 800e2f8 8010abc: 6078 str r0, [r7, #4] /* Reset CFGR register */ CLEAR_REG(RCC->CFGR); 8010abe: 4b50 ldr r3, [pc, #320] @ (8010c00 ) 8010ac0: 2200 movs r2, #0 8010ac2: 605a str r2, [r3, #4] /* Wait till clock switch is ready */ while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) 8010ac4: e00a b.n 8010adc { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 8010ac6: f7fd fc17 bl 800e2f8 8010aca: 4602 mov r2, r0 8010acc: 687b ldr r3, [r7, #4] 8010ace: 1ad3 subs r3, r2, r3 8010ad0: f241 3288 movw r2, #5000 @ 0x1388 8010ad4: 4293 cmp r3, r2 8010ad6: d901 bls.n 8010adc { return HAL_TIMEOUT; 8010ad8: 2303 movs r3, #3 8010ada: e08c b.n 8010bf6 while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) 8010adc: 4b48 ldr r3, [pc, #288] @ (8010c00 ) 8010ade: 685b ldr r3, [r3, #4] 8010ae0: f003 030c and.w r3, r3, #12 8010ae4: 2b00 cmp r3, #0 8010ae6: d1ee bne.n 8010ac6 } } /* Update the SystemCoreClock global variable */ SystemCoreClock = HSI_VALUE; 8010ae8: 4b46 ldr r3, [pc, #280] @ (8010c04 ) 8010aea: 4a47 ldr r2, [pc, #284] @ (8010c08 ) 8010aec: 601a str r2, [r3, #0] /* Adapt Systick interrupt period */ if (HAL_InitTick(uwTickPrio) != HAL_OK) 8010aee: 4b47 ldr r3, [pc, #284] @ (8010c0c ) 8010af0: 681b ldr r3, [r3, #0] 8010af2: 4618 mov r0, r3 8010af4: f7fd fbbe bl 800e274 8010af8: 4603 mov r3, r0 8010afa: 2b00 cmp r3, #0 8010afc: d001 beq.n 8010b02 { return HAL_ERROR; 8010afe: 2301 movs r3, #1 8010b00: e079 b.n 8010bf6 } /* Get Start Tick */ tickstart = HAL_GetTick(); 8010b02: f7fd fbf9 bl 800e2f8 8010b06: 6078 str r0, [r7, #4] /* Second step is to clear PLLON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLLON); 8010b08: 4b3d ldr r3, [pc, #244] @ (8010c00 ) 8010b0a: 681b ldr r3, [r3, #0] 8010b0c: 4a3c ldr r2, [pc, #240] @ (8010c00 ) 8010b0e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 8010b12: 6013 str r3, [r2, #0] /* Wait till PLL is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) 8010b14: e008 b.n 8010b28 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 8010b16: f7fd fbef bl 800e2f8 8010b1a: 4602 mov r2, r0 8010b1c: 687b ldr r3, [r7, #4] 8010b1e: 1ad3 subs r3, r2, r3 8010b20: 2b02 cmp r3, #2 8010b22: d901 bls.n 8010b28 { return HAL_TIMEOUT; 8010b24: 2303 movs r3, #3 8010b26: e066 b.n 8010bf6 while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) 8010b28: 4b35 ldr r3, [pc, #212] @ (8010c00 ) 8010b2a: 681b ldr r3, [r3, #0] 8010b2c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8010b30: 2b00 cmp r3, #0 8010b32: d1f0 bne.n 8010b16 } } /* Ensure to reset PLLSRC and PLLMUL bits */ CLEAR_REG(RCC->CFGR); 8010b34: 4b32 ldr r3, [pc, #200] @ (8010c00 ) 8010b36: 2200 movs r2, #0 8010b38: 605a str r2, [r3, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010b3a: f7fd fbdd bl 800e2f8 8010b3e: 6078 str r0, [r7, #4] /* Reset HSEON & CSSON bits */ CLEAR_BIT(RCC->CR, RCC_CR_HSEON | RCC_CR_CSSON); 8010b40: 4b2f ldr r3, [pc, #188] @ (8010c00 ) 8010b42: 681b ldr r3, [r3, #0] 8010b44: 4a2e ldr r2, [pc, #184] @ (8010c00 ) 8010b46: f423 2310 bic.w r3, r3, #589824 @ 0x90000 8010b4a: 6013 str r3, [r2, #0] /* Wait till HSE is disabled */ while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) 8010b4c: e008 b.n 8010b60 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010b4e: f7fd fbd3 bl 800e2f8 8010b52: 4602 mov r2, r0 8010b54: 687b ldr r3, [r7, #4] 8010b56: 1ad3 subs r3, r2, r3 8010b58: 2b64 cmp r3, #100 @ 0x64 8010b5a: d901 bls.n 8010b60 { return HAL_TIMEOUT; 8010b5c: 2303 movs r3, #3 8010b5e: e04a b.n 8010bf6 while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) 8010b60: 4b27 ldr r3, [pc, #156] @ (8010c00 ) 8010b62: 681b ldr r3, [r3, #0] 8010b64: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010b68: 2b00 cmp r3, #0 8010b6a: d1f0 bne.n 8010b4e } } /* Reset HSEBYP bit */ CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); 8010b6c: 4b24 ldr r3, [pc, #144] @ (8010c00 ) 8010b6e: 681b ldr r3, [r3, #0] 8010b70: 4a23 ldr r2, [pc, #140] @ (8010c00 ) 8010b72: f423 2380 bic.w r3, r3, #262144 @ 0x40000 8010b76: 6013 str r3, [r2, #0] #if defined(RCC_PLL2_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); 8010b78: f7fd fbbe bl 800e2f8 8010b7c: 6078 str r0, [r7, #4] /* Clear PLL2ON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLL2ON); 8010b7e: 4b20 ldr r3, [pc, #128] @ (8010c00 ) 8010b80: 681b ldr r3, [r3, #0] 8010b82: 4a1f ldr r2, [pc, #124] @ (8010c00 ) 8010b84: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 8010b88: 6013 str r3, [r2, #0] /* Wait till PLL2 is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != RESET) 8010b8a: e008 b.n 8010b9e { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 8010b8c: f7fd fbb4 bl 800e2f8 8010b90: 4602 mov r2, r0 8010b92: 687b ldr r3, [r7, #4] 8010b94: 1ad3 subs r3, r2, r3 8010b96: 2b64 cmp r3, #100 @ 0x64 8010b98: d901 bls.n 8010b9e { return HAL_TIMEOUT; 8010b9a: 2303 movs r3, #3 8010b9c: e02b b.n 8010bf6 while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != RESET) 8010b9e: 4b18 ldr r3, [pc, #96] @ (8010c00 ) 8010ba0: 681b ldr r3, [r3, #0] 8010ba2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8010ba6: 2b00 cmp r3, #0 8010ba8: d1f0 bne.n 8010b8c } #endif /* RCC_PLL2_SUPPORT */ #if defined(RCC_PLLI2S_SUPPORT) /* Get Start Tick */ tickstart = HAL_GetTick(); 8010baa: f7fd fba5 bl 800e2f8 8010bae: 6078 str r0, [r7, #4] /* Clear PLL3ON bit */ CLEAR_BIT(RCC->CR, RCC_CR_PLL3ON); 8010bb0: 4b13 ldr r3, [pc, #76] @ (8010c00 ) 8010bb2: 681b ldr r3, [r3, #0] 8010bb4: 4a12 ldr r2, [pc, #72] @ (8010c00 ) 8010bb6: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8010bba: 6013 str r3, [r2, #0] /* Wait till PLL3 is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != RESET) 8010bbc: e008 b.n 8010bd0 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) 8010bbe: f7fd fb9b bl 800e2f8 8010bc2: 4602 mov r2, r0 8010bc4: 687b ldr r3, [r7, #4] 8010bc6: 1ad3 subs r3, r2, r3 8010bc8: 2b64 cmp r3, #100 @ 0x64 8010bca: d901 bls.n 8010bd0 { return HAL_TIMEOUT; 8010bcc: 2303 movs r3, #3 8010bce: e012 b.n 8010bf6 while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != RESET) 8010bd0: 4b0b ldr r3, [pc, #44] @ (8010c00 ) 8010bd2: 681b ldr r3, [r3, #0] 8010bd4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 8010bd8: 2b00 cmp r3, #0 8010bda: d1f0 bne.n 8010bbe } #endif /* RCC_PLLI2S_SUPPORT */ #if defined(RCC_CFGR2_PREDIV1) /* Reset CFGR2 register */ CLEAR_REG(RCC->CFGR2); 8010bdc: 4b08 ldr r3, [pc, #32] @ (8010c00 ) 8010bde: 2200 movs r2, #0 8010be0: 62da str r2, [r3, #44] @ 0x2c #endif /* RCC_CFGR2_PREDIV1 */ /* Reset all CSR flags */ SET_BIT(RCC->CSR, RCC_CSR_RMVF); 8010be2: 4b07 ldr r3, [pc, #28] @ (8010c00 ) 8010be4: 6a5b ldr r3, [r3, #36] @ 0x24 8010be6: 4a06 ldr r2, [pc, #24] @ (8010c00 ) 8010be8: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 8010bec: 6253 str r3, [r2, #36] @ 0x24 /* Disable all interrupts */ CLEAR_REG(RCC->CIR); 8010bee: 4b04 ldr r3, [pc, #16] @ (8010c00 ) 8010bf0: 2200 movs r2, #0 8010bf2: 609a str r2, [r3, #8] return HAL_OK; 8010bf4: 2300 movs r3, #0 } 8010bf6: 4618 mov r0, r3 8010bf8: 3708 adds r7, #8 8010bfa: 46bd mov sp, r7 8010bfc: bd80 pop {r7, pc} 8010bfe: bf00 nop 8010c00: 40021000 .word 0x40021000 8010c04: 20000084 .word 0x20000084 8010c08: 007a1200 .word 0x007a1200 8010c0c: 20000088 .word 0x20000088 08010c10 : * 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) { 8010c10: b580 push {r7, lr} 8010c12: b086 sub sp, #24 8010c14: af00 add r7, sp, #0 8010c16: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) 8010c18: 687b ldr r3, [r7, #4] 8010c1a: 2b00 cmp r3, #0 8010c1c: d101 bne.n 8010c22 { return HAL_ERROR; 8010c1e: 2301 movs r3, #1 8010c20: e304 b.n 801122c /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) 8010c22: 687b ldr r3, [r7, #4] 8010c24: 681b ldr r3, [r3, #0] 8010c26: f003 0301 and.w r3, r3, #1 8010c2a: 2b00 cmp r3, #0 8010c2c: f000 8087 beq.w 8010d3e { /* 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) 8010c30: 4b92 ldr r3, [pc, #584] @ (8010e7c ) 8010c32: 685b ldr r3, [r3, #4] 8010c34: f003 030c and.w r3, r3, #12 8010c38: 2b04 cmp r3, #4 8010c3a: d00c beq.n 8010c56 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) 8010c3c: 4b8f ldr r3, [pc, #572] @ (8010e7c ) 8010c3e: 685b ldr r3, [r3, #4] 8010c40: f003 030c and.w r3, r3, #12 8010c44: 2b08 cmp r3, #8 8010c46: d112 bne.n 8010c6e 8010c48: 4b8c ldr r3, [pc, #560] @ (8010e7c ) 8010c4a: 685b ldr r3, [r3, #4] 8010c4c: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010c50: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010c54: d10b bne.n 8010c6e { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8010c56: 4b89 ldr r3, [pc, #548] @ (8010e7c ) 8010c58: 681b ldr r3, [r3, #0] 8010c5a: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010c5e: 2b00 cmp r3, #0 8010c60: d06c beq.n 8010d3c 8010c62: 687b ldr r3, [r7, #4] 8010c64: 689b ldr r3, [r3, #8] 8010c66: 2b00 cmp r3, #0 8010c68: d168 bne.n 8010d3c { return HAL_ERROR; 8010c6a: 2301 movs r3, #1 8010c6c: e2de b.n 801122c } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); 8010c6e: 687b ldr r3, [r7, #4] 8010c70: 689b ldr r3, [r3, #8] 8010c72: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8010c76: d106 bne.n 8010c86 8010c78: 4b80 ldr r3, [pc, #512] @ (8010e7c ) 8010c7a: 681b ldr r3, [r3, #0] 8010c7c: 4a7f ldr r2, [pc, #508] @ (8010e7c ) 8010c7e: f443 3380 orr.w r3, r3, #65536 @ 0x10000 8010c82: 6013 str r3, [r2, #0] 8010c84: e02e b.n 8010ce4 8010c86: 687b ldr r3, [r7, #4] 8010c88: 689b ldr r3, [r3, #8] 8010c8a: 2b00 cmp r3, #0 8010c8c: d10c bne.n 8010ca8 8010c8e: 4b7b ldr r3, [pc, #492] @ (8010e7c ) 8010c90: 681b ldr r3, [r3, #0] 8010c92: 4a7a ldr r2, [pc, #488] @ (8010e7c ) 8010c94: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010c98: 6013 str r3, [r2, #0] 8010c9a: 4b78 ldr r3, [pc, #480] @ (8010e7c ) 8010c9c: 681b ldr r3, [r3, #0] 8010c9e: 4a77 ldr r2, [pc, #476] @ (8010e7c ) 8010ca0: f423 2380 bic.w r3, r3, #262144 @ 0x40000 8010ca4: 6013 str r3, [r2, #0] 8010ca6: e01d b.n 8010ce4 8010ca8: 687b ldr r3, [r7, #4] 8010caa: 689b ldr r3, [r3, #8] 8010cac: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 8010cb0: d10c bne.n 8010ccc 8010cb2: 4b72 ldr r3, [pc, #456] @ (8010e7c ) 8010cb4: 681b ldr r3, [r3, #0] 8010cb6: 4a71 ldr r2, [pc, #452] @ (8010e7c ) 8010cb8: f443 2380 orr.w r3, r3, #262144 @ 0x40000 8010cbc: 6013 str r3, [r2, #0] 8010cbe: 4b6f ldr r3, [pc, #444] @ (8010e7c ) 8010cc0: 681b ldr r3, [r3, #0] 8010cc2: 4a6e ldr r2, [pc, #440] @ (8010e7c ) 8010cc4: f443 3380 orr.w r3, r3, #65536 @ 0x10000 8010cc8: 6013 str r3, [r2, #0] 8010cca: e00b b.n 8010ce4 8010ccc: 4b6b ldr r3, [pc, #428] @ (8010e7c ) 8010cce: 681b ldr r3, [r3, #0] 8010cd0: 4a6a ldr r2, [pc, #424] @ (8010e7c ) 8010cd2: f423 3380 bic.w r3, r3, #65536 @ 0x10000 8010cd6: 6013 str r3, [r2, #0] 8010cd8: 4b68 ldr r3, [pc, #416] @ (8010e7c ) 8010cda: 681b ldr r3, [r3, #0] 8010cdc: 4a67 ldr r2, [pc, #412] @ (8010e7c ) 8010cde: f423 2380 bic.w r3, r3, #262144 @ 0x40000 8010ce2: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) 8010ce4: 687b ldr r3, [r7, #4] 8010ce6: 689b ldr r3, [r3, #8] 8010ce8: 2b00 cmp r3, #0 8010cea: d013 beq.n 8010d14 { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010cec: f7fd fb04 bl 800e2f8 8010cf0: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8010cf2: e008 b.n 8010d06 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010cf4: f7fd fb00 bl 800e2f8 8010cf8: 4602 mov r2, r0 8010cfa: 693b ldr r3, [r7, #16] 8010cfc: 1ad3 subs r3, r2, r3 8010cfe: 2b64 cmp r3, #100 @ 0x64 8010d00: d901 bls.n 8010d06 { return HAL_TIMEOUT; 8010d02: 2303 movs r3, #3 8010d04: e292 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8010d06: 4b5d ldr r3, [pc, #372] @ (8010e7c ) 8010d08: 681b ldr r3, [r3, #0] 8010d0a: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010d0e: 2b00 cmp r3, #0 8010d10: d0f0 beq.n 8010cf4 8010d12: e014 b.n 8010d3e } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010d14: f7fd faf0 bl 800e2f8 8010d18: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 8010d1a: e008 b.n 8010d2e { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8010d1c: f7fd faec bl 800e2f8 8010d20: 4602 mov r2, r0 8010d22: 693b ldr r3, [r7, #16] 8010d24: 1ad3 subs r3, r2, r3 8010d26: 2b64 cmp r3, #100 @ 0x64 8010d28: d901 bls.n 8010d2e { return HAL_TIMEOUT; 8010d2a: 2303 movs r3, #3 8010d2c: e27e b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 8010d2e: 4b53 ldr r3, [pc, #332] @ (8010e7c ) 8010d30: 681b ldr r3, [r3, #0] 8010d32: f403 3300 and.w r3, r3, #131072 @ 0x20000 8010d36: 2b00 cmp r3, #0 8010d38: d1f0 bne.n 8010d1c 8010d3a: e000 b.n 8010d3e if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8010d3c: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) 8010d3e: 687b ldr r3, [r7, #4] 8010d40: 681b ldr r3, [r3, #0] 8010d42: f003 0302 and.w r3, r3, #2 8010d46: 2b00 cmp r3, #0 8010d48: d063 beq.n 8010e12 /* 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) 8010d4a: 4b4c ldr r3, [pc, #304] @ (8010e7c ) 8010d4c: 685b ldr r3, [r3, #4] 8010d4e: f003 030c and.w r3, r3, #12 8010d52: 2b00 cmp r3, #0 8010d54: d00b beq.n 8010d6e || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) 8010d56: 4b49 ldr r3, [pc, #292] @ (8010e7c ) 8010d58: 685b ldr r3, [r3, #4] 8010d5a: f003 030c and.w r3, r3, #12 8010d5e: 2b08 cmp r3, #8 8010d60: d11c bne.n 8010d9c 8010d62: 4b46 ldr r3, [pc, #280] @ (8010e7c ) 8010d64: 685b ldr r3, [r3, #4] 8010d66: f403 3380 and.w r3, r3, #65536 @ 0x10000 8010d6a: 2b00 cmp r3, #0 8010d6c: d116 bne.n 8010d9c { /* 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)) 8010d6e: 4b43 ldr r3, [pc, #268] @ (8010e7c ) 8010d70: 681b ldr r3, [r3, #0] 8010d72: f003 0302 and.w r3, r3, #2 8010d76: 2b00 cmp r3, #0 8010d78: d005 beq.n 8010d86 8010d7a: 687b ldr r3, [r7, #4] 8010d7c: 695b ldr r3, [r3, #20] 8010d7e: 2b01 cmp r3, #1 8010d80: d001 beq.n 8010d86 { return HAL_ERROR; 8010d82: 2301 movs r3, #1 8010d84: e252 b.n 801122c } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8010d86: 4b3d ldr r3, [pc, #244] @ (8010e7c ) 8010d88: 681b ldr r3, [r3, #0] 8010d8a: f023 02f8 bic.w r2, r3, #248 @ 0xf8 8010d8e: 687b ldr r3, [r7, #4] 8010d90: 699b ldr r3, [r3, #24] 8010d92: 00db lsls r3, r3, #3 8010d94: 4939 ldr r1, [pc, #228] @ (8010e7c ) 8010d96: 4313 orrs r3, r2 8010d98: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) 8010d9a: e03a b.n 8010e12 } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) 8010d9c: 687b ldr r3, [r7, #4] 8010d9e: 695b ldr r3, [r3, #20] 8010da0: 2b00 cmp r3, #0 8010da2: d020 beq.n 8010de6 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); 8010da4: 4b36 ldr r3, [pc, #216] @ (8010e80 ) 8010da6: 2201 movs r2, #1 8010da8: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010daa: f7fd faa5 bl 800e2f8 8010dae: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010db0: e008 b.n 8010dc4 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010db2: f7fd faa1 bl 800e2f8 8010db6: 4602 mov r2, r0 8010db8: 693b ldr r3, [r7, #16] 8010dba: 1ad3 subs r3, r2, r3 8010dbc: 2b02 cmp r3, #2 8010dbe: d901 bls.n 8010dc4 { return HAL_TIMEOUT; 8010dc0: 2303 movs r3, #3 8010dc2: e233 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8010dc4: 4b2d ldr r3, [pc, #180] @ (8010e7c ) 8010dc6: 681b ldr r3, [r3, #0] 8010dc8: f003 0302 and.w r3, r3, #2 8010dcc: 2b00 cmp r3, #0 8010dce: d0f0 beq.n 8010db2 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8010dd0: 4b2a ldr r3, [pc, #168] @ (8010e7c ) 8010dd2: 681b ldr r3, [r3, #0] 8010dd4: f023 02f8 bic.w r2, r3, #248 @ 0xf8 8010dd8: 687b ldr r3, [r7, #4] 8010dda: 699b ldr r3, [r3, #24] 8010ddc: 00db lsls r3, r3, #3 8010dde: 4927 ldr r1, [pc, #156] @ (8010e7c ) 8010de0: 4313 orrs r3, r2 8010de2: 600b str r3, [r1, #0] 8010de4: e015 b.n 8010e12 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); 8010de6: 4b26 ldr r3, [pc, #152] @ (8010e80 ) 8010de8: 2200 movs r2, #0 8010dea: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010dec: f7fd fa84 bl 800e2f8 8010df0: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8010df2: e008 b.n 8010e06 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8010df4: f7fd fa80 bl 800e2f8 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: e212 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8010e06: 4b1d ldr r3, [pc, #116] @ (8010e7c ) 8010e08: 681b ldr r3, [r3, #0] 8010e0a: f003 0302 and.w r3, r3, #2 8010e0e: 2b00 cmp r3, #0 8010e10: d1f0 bne.n 8010df4 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) 8010e12: 687b ldr r3, [r7, #4] 8010e14: 681b ldr r3, [r3, #0] 8010e16: f003 0308 and.w r3, r3, #8 8010e1a: 2b00 cmp r3, #0 8010e1c: d03a beq.n 8010e94 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) 8010e1e: 687b ldr r3, [r7, #4] 8010e20: 69db ldr r3, [r3, #28] 8010e22: 2b00 cmp r3, #0 8010e24: d019 beq.n 8010e5a { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); 8010e26: 4b17 ldr r3, [pc, #92] @ (8010e84 ) 8010e28: 2201 movs r2, #1 8010e2a: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010e2c: f7fd fa64 bl 800e2f8 8010e30: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8010e32: e008 b.n 8010e46 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8010e34: f7fd fa60 bl 800e2f8 8010e38: 4602 mov r2, r0 8010e3a: 693b ldr r3, [r7, #16] 8010e3c: 1ad3 subs r3, r2, r3 8010e3e: 2b02 cmp r3, #2 8010e40: d901 bls.n 8010e46 { return HAL_TIMEOUT; 8010e42: 2303 movs r3, #3 8010e44: e1f2 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8010e46: 4b0d ldr r3, [pc, #52] @ (8010e7c ) 8010e48: 6a5b ldr r3, [r3, #36] @ 0x24 8010e4a: f003 0302 and.w r3, r3, #2 8010e4e: 2b00 cmp r3, #0 8010e50: d0f0 beq.n 8010e34 } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); 8010e52: 2001 movs r0, #1 8010e54: f000 fbca bl 80115ec 8010e58: e01c b.n 8010e94 } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); 8010e5a: 4b0a ldr r3, [pc, #40] @ (8010e84 ) 8010e5c: 2200 movs r2, #0 8010e5e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8010e60: f7fd fa4a bl 800e2f8 8010e64: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 8010e66: e00f b.n 8010e88 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8010e68: f7fd fa46 bl 800e2f8 8010e6c: 4602 mov r2, r0 8010e6e: 693b ldr r3, [r7, #16] 8010e70: 1ad3 subs r3, r2, r3 8010e72: 2b02 cmp r3, #2 8010e74: d908 bls.n 8010e88 { return HAL_TIMEOUT; 8010e76: 2303 movs r3, #3 8010e78: e1d8 b.n 801122c 8010e7a: bf00 nop 8010e7c: 40021000 .word 0x40021000 8010e80: 42420000 .word 0x42420000 8010e84: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 8010e88: 4b9b ldr r3, [pc, #620] @ (80110f8 ) 8010e8a: 6a5b ldr r3, [r3, #36] @ 0x24 8010e8c: f003 0302 and.w r3, r3, #2 8010e90: 2b00 cmp r3, #0 8010e92: d1e9 bne.n 8010e68 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) 8010e94: 687b ldr r3, [r7, #4] 8010e96: 681b ldr r3, [r3, #0] 8010e98: f003 0304 and.w r3, r3, #4 8010e9c: 2b00 cmp r3, #0 8010e9e: f000 80a6 beq.w 8010fee { FlagStatus pwrclkchanged = RESET; 8010ea2: 2300 movs r3, #0 8010ea4: 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()) 8010ea6: 4b94 ldr r3, [pc, #592] @ (80110f8 ) 8010ea8: 69db ldr r3, [r3, #28] 8010eaa: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010eae: 2b00 cmp r3, #0 8010eb0: d10d bne.n 8010ece { __HAL_RCC_PWR_CLK_ENABLE(); 8010eb2: 4b91 ldr r3, [pc, #580] @ (80110f8 ) 8010eb4: 69db ldr r3, [r3, #28] 8010eb6: 4a90 ldr r2, [pc, #576] @ (80110f8 ) 8010eb8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 8010ebc: 61d3 str r3, [r2, #28] 8010ebe: 4b8e ldr r3, [pc, #568] @ (80110f8 ) 8010ec0: 69db ldr r3, [r3, #28] 8010ec2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8010ec6: 60bb str r3, [r7, #8] 8010ec8: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; 8010eca: 2301 movs r3, #1 8010ecc: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010ece: 4b8b ldr r3, [pc, #556] @ (80110fc ) 8010ed0: 681b ldr r3, [r3, #0] 8010ed2: f403 7380 and.w r3, r3, #256 @ 0x100 8010ed6: 2b00 cmp r3, #0 8010ed8: d118 bne.n 8010f0c { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8010eda: 4b88 ldr r3, [pc, #544] @ (80110fc ) 8010edc: 681b ldr r3, [r3, #0] 8010ede: 4a87 ldr r2, [pc, #540] @ (80110fc ) 8010ee0: f443 7380 orr.w r3, r3, #256 @ 0x100 8010ee4: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 8010ee6: f7fd fa07 bl 800e2f8 8010eea: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010eec: e008 b.n 8010f00 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 8010eee: f7fd fa03 bl 800e2f8 8010ef2: 4602 mov r2, r0 8010ef4: 693b ldr r3, [r7, #16] 8010ef6: 1ad3 subs r3, r2, r3 8010ef8: 2b64 cmp r3, #100 @ 0x64 8010efa: d901 bls.n 8010f00 { return HAL_TIMEOUT; 8010efc: 2303 movs r3, #3 8010efe: e195 b.n 801122c while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8010f00: 4b7e ldr r3, [pc, #504] @ (80110fc ) 8010f02: 681b ldr r3, [r3, #0] 8010f04: f403 7380 and.w r3, r3, #256 @ 0x100 8010f08: 2b00 cmp r3, #0 8010f0a: d0f0 beq.n 8010eee } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); 8010f0c: 687b ldr r3, [r7, #4] 8010f0e: 691b ldr r3, [r3, #16] 8010f10: 2b01 cmp r3, #1 8010f12: d106 bne.n 8010f22 8010f14: 4b78 ldr r3, [pc, #480] @ (80110f8 ) 8010f16: 6a1b ldr r3, [r3, #32] 8010f18: 4a77 ldr r2, [pc, #476] @ (80110f8 ) 8010f1a: f043 0301 orr.w r3, r3, #1 8010f1e: 6213 str r3, [r2, #32] 8010f20: e02d b.n 8010f7e 8010f22: 687b ldr r3, [r7, #4] 8010f24: 691b ldr r3, [r3, #16] 8010f26: 2b00 cmp r3, #0 8010f28: d10c bne.n 8010f44 8010f2a: 4b73 ldr r3, [pc, #460] @ (80110f8 ) 8010f2c: 6a1b ldr r3, [r3, #32] 8010f2e: 4a72 ldr r2, [pc, #456] @ (80110f8 ) 8010f30: f023 0301 bic.w r3, r3, #1 8010f34: 6213 str r3, [r2, #32] 8010f36: 4b70 ldr r3, [pc, #448] @ (80110f8 ) 8010f38: 6a1b ldr r3, [r3, #32] 8010f3a: 4a6f ldr r2, [pc, #444] @ (80110f8 ) 8010f3c: f023 0304 bic.w r3, r3, #4 8010f40: 6213 str r3, [r2, #32] 8010f42: e01c b.n 8010f7e 8010f44: 687b ldr r3, [r7, #4] 8010f46: 691b ldr r3, [r3, #16] 8010f48: 2b05 cmp r3, #5 8010f4a: d10c bne.n 8010f66 8010f4c: 4b6a ldr r3, [pc, #424] @ (80110f8 ) 8010f4e: 6a1b ldr r3, [r3, #32] 8010f50: 4a69 ldr r2, [pc, #420] @ (80110f8 ) 8010f52: f043 0304 orr.w r3, r3, #4 8010f56: 6213 str r3, [r2, #32] 8010f58: 4b67 ldr r3, [pc, #412] @ (80110f8 ) 8010f5a: 6a1b ldr r3, [r3, #32] 8010f5c: 4a66 ldr r2, [pc, #408] @ (80110f8 ) 8010f5e: f043 0301 orr.w r3, r3, #1 8010f62: 6213 str r3, [r2, #32] 8010f64: e00b b.n 8010f7e 8010f66: 4b64 ldr r3, [pc, #400] @ (80110f8 ) 8010f68: 6a1b ldr r3, [r3, #32] 8010f6a: 4a63 ldr r2, [pc, #396] @ (80110f8 ) 8010f6c: f023 0301 bic.w r3, r3, #1 8010f70: 6213 str r3, [r2, #32] 8010f72: 4b61 ldr r3, [pc, #388] @ (80110f8 ) 8010f74: 6a1b ldr r3, [r3, #32] 8010f76: 4a60 ldr r2, [pc, #384] @ (80110f8 ) 8010f78: f023 0304 bic.w r3, r3, #4 8010f7c: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) 8010f7e: 687b ldr r3, [r7, #4] 8010f80: 691b ldr r3, [r3, #16] 8010f82: 2b00 cmp r3, #0 8010f84: d015 beq.n 8010fb2 { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010f86: f7fd f9b7 bl 800e2f8 8010f8a: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8010f8c: e00a b.n 8010fa4 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8010f8e: f7fd f9b3 bl 800e2f8 8010f92: 4602 mov r2, r0 8010f94: 693b ldr r3, [r7, #16] 8010f96: 1ad3 subs r3, r2, r3 8010f98: f241 3288 movw r2, #5000 @ 0x1388 8010f9c: 4293 cmp r3, r2 8010f9e: d901 bls.n 8010fa4 { return HAL_TIMEOUT; 8010fa0: 2303 movs r3, #3 8010fa2: e143 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8010fa4: 4b54 ldr r3, [pc, #336] @ (80110f8 ) 8010fa6: 6a1b ldr r3, [r3, #32] 8010fa8: f003 0302 and.w r3, r3, #2 8010fac: 2b00 cmp r3, #0 8010fae: d0ee beq.n 8010f8e 8010fb0: e014 b.n 8010fdc } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8010fb2: f7fd f9a1 bl 800e2f8 8010fb6: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8010fb8: e00a b.n 8010fd0 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8010fba: f7fd f99d bl 800e2f8 8010fbe: 4602 mov r2, r0 8010fc0: 693b ldr r3, [r7, #16] 8010fc2: 1ad3 subs r3, r2, r3 8010fc4: f241 3288 movw r2, #5000 @ 0x1388 8010fc8: 4293 cmp r3, r2 8010fca: d901 bls.n 8010fd0 { return HAL_TIMEOUT; 8010fcc: 2303 movs r3, #3 8010fce: e12d b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8010fd0: 4b49 ldr r3, [pc, #292] @ (80110f8 ) 8010fd2: 6a1b ldr r3, [r3, #32] 8010fd4: f003 0302 and.w r3, r3, #2 8010fd8: 2b00 cmp r3, #0 8010fda: d1ee bne.n 8010fba } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 8010fdc: 7dfb ldrb r3, [r7, #23] 8010fde: 2b01 cmp r3, #1 8010fe0: d105 bne.n 8010fee { __HAL_RCC_PWR_CLK_DISABLE(); 8010fe2: 4b45 ldr r3, [pc, #276] @ (80110f8 ) 8010fe4: 69db ldr r3, [r3, #28] 8010fe6: 4a44 ldr r2, [pc, #272] @ (80110f8 ) 8010fe8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8010fec: 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) 8010fee: 687b ldr r3, [r7, #4] 8010ff0: 6adb ldr r3, [r3, #44] @ 0x2c 8010ff2: 2b00 cmp r3, #0 8010ff4: f000 808c beq.w 8011110 { /* 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) && \ 8010ff8: 4b3f ldr r3, [pc, #252] @ (80110f8 ) 8010ffa: 685b ldr r3, [r3, #4] 8010ffc: f403 3380 and.w r3, r3, #65536 @ 0x10000 8011000: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8011004: d10e bne.n 8011024 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ 8011006: 4b3c ldr r3, [pc, #240] @ (80110f8 ) 8011008: 685b ldr r3, [r3, #4] 801100a: f003 030c and.w r3, r3, #12 if ((__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE) && \ 801100e: 2b08 cmp r3, #8 8011010: d108 bne.n 8011024 ((READ_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) == RCC_CFGR2_PREDIV1SRC_PLL2)) 8011012: 4b39 ldr r3, [pc, #228] @ (80110f8 ) 8011014: 6adb ldr r3, [r3, #44] @ 0x2c 8011016: f403 3380 and.w r3, r3, #65536 @ 0x10000 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ 801101a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 801101e: d101 bne.n 8011024 { return HAL_ERROR; 8011020: 2301 movs r3, #1 8011022: e103 b.n 801122c } else { if ((RCC_OscInitStruct->PLL2.PLL2State) == RCC_PLL2_ON) 8011024: 687b ldr r3, [r7, #4] 8011026: 6adb ldr r3, [r3, #44] @ 0x2c 8011028: 2b02 cmp r3, #2 801102a: d14e bne.n 80110ca 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) && \ 801102c: 4b32 ldr r3, [pc, #200] @ (80110f8 ) 801102e: 681b ldr r3, [r3, #0] 8011030: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011034: 2b00 cmp r3, #0 8011036: d009 beq.n 801104c (__HAL_RCC_HSE_GET_PREDIV2() != RCC_OscInitStruct->PLL2.HSEPrediv2Value)) 8011038: 4b2f ldr r3, [pc, #188] @ (80110f8 ) 801103a: 6adb ldr r3, [r3, #44] @ 0x2c 801103c: f003 02f0 and.w r2, r3, #240 @ 0xf0 8011040: 687b ldr r3, [r7, #4] 8011042: 6b5b ldr r3, [r3, #52] @ 0x34 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON) && \ 8011044: 429a cmp r2, r3 8011046: d001 beq.n 801104c { return HAL_ERROR; 8011048: 2301 movs r3, #1 801104a: e0ef b.n 801122c } /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); 801104c: 4b2c ldr r3, [pc, #176] @ (8011100 ) 801104e: 2200 movs r2, #0 8011050: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8011052: f7fd f951 bl 800e2f8 8011056: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8011058: e008 b.n 801106c { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 801105a: f7fd f94d bl 800e2f8 801105e: 4602 mov r2, r0 8011060: 693b ldr r3, [r7, #16] 8011062: 1ad3 subs r3, r2, r3 8011064: 2b64 cmp r3, #100 @ 0x64 8011066: d901 bls.n 801106c { return HAL_TIMEOUT; 8011068: 2303 movs r3, #3 801106a: e0df b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 801106c: 4b22 ldr r3, [pc, #136] @ (80110f8 ) 801106e: 681b ldr r3, [r3, #0] 8011070: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 8011074: 2b00 cmp r3, #0 8011076: d1f0 bne.n 801105a } } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(RCC_OscInitStruct->PLL2.HSEPrediv2Value); 8011078: 4b1f ldr r3, [pc, #124] @ (80110f8 ) 801107a: 6adb ldr r3, [r3, #44] @ 0x2c 801107c: f023 02f0 bic.w r2, r3, #240 @ 0xf0 8011080: 687b ldr r3, [r7, #4] 8011082: 6b5b ldr r3, [r3, #52] @ 0x34 8011084: 491c ldr r1, [pc, #112] @ (80110f8 ) 8011086: 4313 orrs r3, r2 8011088: 62cb str r3, [r1, #44] @ 0x2c /* Configure the main PLL2 multiplication factors. */ __HAL_RCC_PLL2_CONFIG(RCC_OscInitStruct->PLL2.PLL2MUL); 801108a: 4b1b ldr r3, [pc, #108] @ (80110f8 ) 801108c: 6adb ldr r3, [r3, #44] @ 0x2c 801108e: f423 6270 bic.w r2, r3, #3840 @ 0xf00 8011092: 687b ldr r3, [r7, #4] 8011094: 6b1b ldr r3, [r3, #48] @ 0x30 8011096: 4918 ldr r1, [pc, #96] @ (80110f8 ) 8011098: 4313 orrs r3, r2 801109a: 62cb str r3, [r1, #44] @ 0x2c /* Enable the main PLL2. */ __HAL_RCC_PLL2_ENABLE(); 801109c: 4b18 ldr r3, [pc, #96] @ (8011100 ) 801109e: 2201 movs r2, #1 80110a0: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80110a2: f7fd f929 bl 800e2f8 80110a6: 6138 str r0, [r7, #16] /* Wait till PLL2 is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) 80110a8: e008 b.n 80110bc { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 80110aa: f7fd f925 bl 800e2f8 80110ae: 4602 mov r2, r0 80110b0: 693b ldr r3, [r7, #16] 80110b2: 1ad3 subs r3, r2, r3 80110b4: 2b64 cmp r3, #100 @ 0x64 80110b6: d901 bls.n 80110bc { return HAL_TIMEOUT; 80110b8: 2303 movs r3, #3 80110ba: e0b7 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) 80110bc: 4b0e ldr r3, [pc, #56] @ (80110f8 ) 80110be: 681b ldr r3, [r3, #0] 80110c0: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 80110c4: 2b00 cmp r3, #0 80110c6: d0f0 beq.n 80110aa 80110c8: e022 b.n 8011110 } } else { /* Set PREDIV1 source to HSE */ CLEAR_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC); 80110ca: 4b0b ldr r3, [pc, #44] @ (80110f8 ) 80110cc: 6adb ldr r3, [r3, #44] @ 0x2c 80110ce: 4a0a ldr r2, [pc, #40] @ (80110f8 ) 80110d0: f423 3380 bic.w r3, r3, #65536 @ 0x10000 80110d4: 62d3 str r3, [r2, #44] @ 0x2c /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); 80110d6: 4b0a ldr r3, [pc, #40] @ (8011100 ) 80110d8: 2200 movs r2, #0 80110da: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80110dc: f7fd f90c bl 800e2f8 80110e0: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 80110e2: e00f b.n 8011104 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) 80110e4: f7fd f908 bl 800e2f8 80110e8: 4602 mov r2, r0 80110ea: 693b ldr r3, [r7, #16] 80110ec: 1ad3 subs r3, r2, r3 80110ee: 2b64 cmp r3, #100 @ 0x64 80110f0: d908 bls.n 8011104 { return HAL_TIMEOUT; 80110f2: 2303 movs r3, #3 80110f4: e09a b.n 801122c 80110f6: bf00 nop 80110f8: 40021000 .word 0x40021000 80110fc: 40007000 .word 0x40007000 8011100: 42420068 .word 0x42420068 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) 8011104: 4b4b ldr r3, [pc, #300] @ (8011234 ) 8011106: 681b ldr r3, [r3, #0] 8011108: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 801110c: 2b00 cmp r3, #0 801110e: d1e9 bne.n 80110e4 #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) 8011110: 687b ldr r3, [r7, #4] 8011112: 6a1b ldr r3, [r3, #32] 8011114: 2b00 cmp r3, #0 8011116: f000 8088 beq.w 801122a { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) 801111a: 4b46 ldr r3, [pc, #280] @ (8011234 ) 801111c: 685b ldr r3, [r3, #4] 801111e: f003 030c and.w r3, r3, #12 8011122: 2b08 cmp r3, #8 8011124: d068 beq.n 80111f8 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) 8011126: 687b ldr r3, [r7, #4] 8011128: 6a1b ldr r3, [r3, #32] 801112a: 2b02 cmp r3, #2 801112c: d14d bne.n 80111ca /* 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(); 801112e: 4b42 ldr r3, [pc, #264] @ (8011238 ) 8011130: 2200 movs r2, #0 8011132: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8011134: f7fd f8e0 bl 800e2f8 8011138: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 801113a: e008 b.n 801114e { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 801113c: f7fd f8dc bl 800e2f8 8011140: 4602 mov r2, r0 8011142: 693b ldr r3, [r7, #16] 8011144: 1ad3 subs r3, r2, r3 8011146: 2b02 cmp r3, #2 8011148: d901 bls.n 801114e { return HAL_TIMEOUT; 801114a: 2303 movs r3, #3 801114c: e06e b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 801114e: 4b39 ldr r3, [pc, #228] @ (8011234 ) 8011150: 681b ldr r3, [r3, #0] 8011152: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8011156: 2b00 cmp r3, #0 8011158: d1f0 bne.n 801113c } } /* 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) 801115a: 687b ldr r3, [r7, #4] 801115c: 6a5b ldr r3, [r3, #36] @ 0x24 801115e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 8011162: d10f bne.n 8011184 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); 8011164: 4b33 ldr r3, [pc, #204] @ (8011234 ) 8011166: 6ada ldr r2, [r3, #44] @ 0x2c 8011168: 687b ldr r3, [r7, #4] 801116a: 685b ldr r3, [r3, #4] 801116c: 4931 ldr r1, [pc, #196] @ (8011234 ) 801116e: 4313 orrs r3, r2 8011170: 62cb str r3, [r1, #44] @ 0x2c #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); 8011172: 4b30 ldr r3, [pc, #192] @ (8011234 ) 8011174: 6adb ldr r3, [r3, #44] @ 0x2c 8011176: f023 020f bic.w r2, r3, #15 801117a: 687b ldr r3, [r7, #4] 801117c: 68db ldr r3, [r3, #12] 801117e: 492d ldr r1, [pc, #180] @ (8011234 ) 8011180: 4313 orrs r3, r2 8011182: 62cb str r3, [r1, #44] @ 0x2c } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, 8011184: 4b2b ldr r3, [pc, #172] @ (8011234 ) 8011186: 685b ldr r3, [r3, #4] 8011188: f423 1274 bic.w r2, r3, #3997696 @ 0x3d0000 801118c: 687b ldr r3, [r7, #4] 801118e: 6a59 ldr r1, [r3, #36] @ 0x24 8011190: 687b ldr r3, [r7, #4] 8011192: 6a9b ldr r3, [r3, #40] @ 0x28 8011194: 430b orrs r3, r1 8011196: 4927 ldr r1, [pc, #156] @ (8011234 ) 8011198: 4313 orrs r3, r2 801119a: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); 801119c: 4b26 ldr r3, [pc, #152] @ (8011238 ) 801119e: 2201 movs r2, #1 80111a0: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80111a2: f7fd f8a9 bl 800e2f8 80111a6: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80111a8: e008 b.n 80111bc { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80111aa: f7fd f8a5 bl 800e2f8 80111ae: 4602 mov r2, r0 80111b0: 693b ldr r3, [r7, #16] 80111b2: 1ad3 subs r3, r2, r3 80111b4: 2b02 cmp r3, #2 80111b6: d901 bls.n 80111bc { return HAL_TIMEOUT; 80111b8: 2303 movs r3, #3 80111ba: e037 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80111bc: 4b1d ldr r3, [pc, #116] @ (8011234 ) 80111be: 681b ldr r3, [r3, #0] 80111c0: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 80111c4: 2b00 cmp r3, #0 80111c6: d0f0 beq.n 80111aa 80111c8: e02f b.n 801122a } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 80111ca: 4b1b ldr r3, [pc, #108] @ (8011238 ) 80111cc: 2200 movs r2, #0 80111ce: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80111d0: f7fd f892 bl 800e2f8 80111d4: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 80111d6: e008 b.n 80111ea { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80111d8: f7fd f88e bl 800e2f8 80111dc: 4602 mov r2, r0 80111de: 693b ldr r3, [r7, #16] 80111e0: 1ad3 subs r3, r2, r3 80111e2: 2b02 cmp r3, #2 80111e4: d901 bls.n 80111ea { return HAL_TIMEOUT; 80111e6: 2303 movs r3, #3 80111e8: e020 b.n 801122c while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 80111ea: 4b12 ldr r3, [pc, #72] @ (8011234 ) 80111ec: 681b ldr r3, [r3, #0] 80111ee: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 80111f2: 2b00 cmp r3, #0 80111f4: d1f0 bne.n 80111d8 80111f6: e018 b.n 801122a } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) 80111f8: 687b ldr r3, [r7, #4] 80111fa: 6a1b ldr r3, [r3, #32] 80111fc: 2b01 cmp r3, #1 80111fe: d101 bne.n 8011204 { return HAL_ERROR; 8011200: 2301 movs r3, #1 8011202: e013 b.n 801122c } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; 8011204: 4b0b ldr r3, [pc, #44] @ (8011234 ) 8011206: 685b ldr r3, [r3, #4] 8011208: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 801120a: 68fb ldr r3, [r7, #12] 801120c: f403 3280 and.w r2, r3, #65536 @ 0x10000 8011210: 687b ldr r3, [r7, #4] 8011212: 6a5b ldr r3, [r3, #36] @ 0x24 8011214: 429a cmp r2, r3 8011216: d106 bne.n 8011226 (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) 8011218: 68fb ldr r3, [r7, #12] 801121a: f403 1270 and.w r2, r3, #3932160 @ 0x3c0000 801121e: 687b ldr r3, [r7, #4] 8011220: 6a9b ldr r3, [r3, #40] @ 0x28 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8011222: 429a cmp r2, r3 8011224: d001 beq.n 801122a { return HAL_ERROR; 8011226: 2301 movs r3, #1 8011228: e000 b.n 801122c } } } } return HAL_OK; 801122a: 2300 movs r3, #0 } 801122c: 4618 mov r0, r3 801122e: 3718 adds r7, #24 8011230: 46bd mov sp, r7 8011232: bd80 pop {r7, pc} 8011234: 40021000 .word 0x40021000 8011238: 42420060 .word 0x42420060 0801123c : * 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) { 801123c: b580 push {r7, lr} 801123e: b084 sub sp, #16 8011240: af00 add r7, sp, #0 8011242: 6078 str r0, [r7, #4] 8011244: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) 8011246: 687b ldr r3, [r7, #4] 8011248: 2b00 cmp r3, #0 801124a: d101 bne.n 8011250 { return HAL_ERROR; 801124c: 2301 movs r3, #1 801124e: e0d0 b.n 80113f2 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()) 8011250: 4b6a ldr r3, [pc, #424] @ (80113fc ) 8011252: 681b ldr r3, [r3, #0] 8011254: f003 0307 and.w r3, r3, #7 8011258: 683a ldr r2, [r7, #0] 801125a: 429a cmp r2, r3 801125c: d910 bls.n 8011280 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 801125e: 4b67 ldr r3, [pc, #412] @ (80113fc ) 8011260: 681b ldr r3, [r3, #0] 8011262: f023 0207 bic.w r2, r3, #7 8011266: 4965 ldr r1, [pc, #404] @ (80113fc ) 8011268: 683b ldr r3, [r7, #0] 801126a: 4313 orrs r3, r2 801126c: 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) 801126e: 4b63 ldr r3, [pc, #396] @ (80113fc ) 8011270: 681b ldr r3, [r3, #0] 8011272: f003 0307 and.w r3, r3, #7 8011276: 683a ldr r2, [r7, #0] 8011278: 429a cmp r2, r3 801127a: d001 beq.n 8011280 { return HAL_ERROR; 801127c: 2301 movs r3, #1 801127e: e0b8 b.n 80113f2 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) 8011280: 687b ldr r3, [r7, #4] 8011282: 681b ldr r3, [r3, #0] 8011284: f003 0302 and.w r3, r3, #2 8011288: 2b00 cmp r3, #0 801128a: d020 beq.n 80112ce { /* 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) 801128c: 687b ldr r3, [r7, #4] 801128e: 681b ldr r3, [r3, #0] 8011290: f003 0304 and.w r3, r3, #4 8011294: 2b00 cmp r3, #0 8011296: d005 beq.n 80112a4 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); 8011298: 4b59 ldr r3, [pc, #356] @ (8011400 ) 801129a: 685b ldr r3, [r3, #4] 801129c: 4a58 ldr r2, [pc, #352] @ (8011400 ) 801129e: f443 63e0 orr.w r3, r3, #1792 @ 0x700 80112a2: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 80112a4: 687b ldr r3, [r7, #4] 80112a6: 681b ldr r3, [r3, #0] 80112a8: f003 0308 and.w r3, r3, #8 80112ac: 2b00 cmp r3, #0 80112ae: d005 beq.n 80112bc { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); 80112b0: 4b53 ldr r3, [pc, #332] @ (8011400 ) 80112b2: 685b ldr r3, [r3, #4] 80112b4: 4a52 ldr r2, [pc, #328] @ (8011400 ) 80112b6: f443 5360 orr.w r3, r3, #14336 @ 0x3800 80112ba: 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); 80112bc: 4b50 ldr r3, [pc, #320] @ (8011400 ) 80112be: 685b ldr r3, [r3, #4] 80112c0: f023 02f0 bic.w r2, r3, #240 @ 0xf0 80112c4: 687b ldr r3, [r7, #4] 80112c6: 689b ldr r3, [r3, #8] 80112c8: 494d ldr r1, [pc, #308] @ (8011400 ) 80112ca: 4313 orrs r3, r2 80112cc: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) 80112ce: 687b ldr r3, [r7, #4] 80112d0: 681b ldr r3, [r3, #0] 80112d2: f003 0301 and.w r3, r3, #1 80112d6: 2b00 cmp r3, #0 80112d8: d040 beq.n 801135c { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) 80112da: 687b ldr r3, [r7, #4] 80112dc: 685b ldr r3, [r3, #4] 80112de: 2b01 cmp r3, #1 80112e0: d107 bne.n 80112f2 { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 80112e2: 4b47 ldr r3, [pc, #284] @ (8011400 ) 80112e4: 681b ldr r3, [r3, #0] 80112e6: f403 3300 and.w r3, r3, #131072 @ 0x20000 80112ea: 2b00 cmp r3, #0 80112ec: d115 bne.n 801131a { return HAL_ERROR; 80112ee: 2301 movs r3, #1 80112f0: e07f b.n 80113f2 } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) 80112f2: 687b ldr r3, [r7, #4] 80112f4: 685b ldr r3, [r3, #4] 80112f6: 2b02 cmp r3, #2 80112f8: d107 bne.n 801130a { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80112fa: 4b41 ldr r3, [pc, #260] @ (8011400 ) 80112fc: 681b ldr r3, [r3, #0] 80112fe: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 8011302: 2b00 cmp r3, #0 8011304: d109 bne.n 801131a { return HAL_ERROR; 8011306: 2301 movs r3, #1 8011308: e073 b.n 80113f2 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 801130a: 4b3d ldr r3, [pc, #244] @ (8011400 ) 801130c: 681b ldr r3, [r3, #0] 801130e: f003 0302 and.w r3, r3, #2 8011312: 2b00 cmp r3, #0 8011314: d101 bne.n 801131a { return HAL_ERROR; 8011316: 2301 movs r3, #1 8011318: e06b b.n 80113f2 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); 801131a: 4b39 ldr r3, [pc, #228] @ (8011400 ) 801131c: 685b ldr r3, [r3, #4] 801131e: f023 0203 bic.w r2, r3, #3 8011322: 687b ldr r3, [r7, #4] 8011324: 685b ldr r3, [r3, #4] 8011326: 4936 ldr r1, [pc, #216] @ (8011400 ) 8011328: 4313 orrs r3, r2 801132a: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 801132c: f7fc ffe4 bl 800e2f8 8011330: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8011332: e00a b.n 801134a { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 8011334: f7fc ffe0 bl 800e2f8 8011338: 4602 mov r2, r0 801133a: 68fb ldr r3, [r7, #12] 801133c: 1ad3 subs r3, r2, r3 801133e: f241 3288 movw r2, #5000 @ 0x1388 8011342: 4293 cmp r3, r2 8011344: d901 bls.n 801134a { return HAL_TIMEOUT; 8011346: 2303 movs r3, #3 8011348: e053 b.n 80113f2 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 801134a: 4b2d ldr r3, [pc, #180] @ (8011400 ) 801134c: 685b ldr r3, [r3, #4] 801134e: f003 020c and.w r2, r3, #12 8011352: 687b ldr r3, [r7, #4] 8011354: 685b ldr r3, [r3, #4] 8011356: 009b lsls r3, r3, #2 8011358: 429a cmp r2, r3 801135a: d1eb bne.n 8011334 } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) 801135c: 4b27 ldr r3, [pc, #156] @ (80113fc ) 801135e: 681b ldr r3, [r3, #0] 8011360: f003 0307 and.w r3, r3, #7 8011364: 683a ldr r2, [r7, #0] 8011366: 429a cmp r2, r3 8011368: d210 bcs.n 801138c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 801136a: 4b24 ldr r3, [pc, #144] @ (80113fc ) 801136c: 681b ldr r3, [r3, #0] 801136e: f023 0207 bic.w r2, r3, #7 8011372: 4922 ldr r1, [pc, #136] @ (80113fc ) 8011374: 683b ldr r3, [r7, #0] 8011376: 4313 orrs r3, r2 8011378: 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) 801137a: 4b20 ldr r3, [pc, #128] @ (80113fc ) 801137c: 681b ldr r3, [r3, #0] 801137e: f003 0307 and.w r3, r3, #7 8011382: 683a ldr r2, [r7, #0] 8011384: 429a cmp r2, r3 8011386: d001 beq.n 801138c { return HAL_ERROR; 8011388: 2301 movs r3, #1 801138a: e032 b.n 80113f2 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) 801138c: 687b ldr r3, [r7, #4] 801138e: 681b ldr r3, [r3, #0] 8011390: f003 0304 and.w r3, r3, #4 8011394: 2b00 cmp r3, #0 8011396: d008 beq.n 80113aa { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); 8011398: 4b19 ldr r3, [pc, #100] @ (8011400 ) 801139a: 685b ldr r3, [r3, #4] 801139c: f423 62e0 bic.w r2, r3, #1792 @ 0x700 80113a0: 687b ldr r3, [r7, #4] 80113a2: 68db ldr r3, [r3, #12] 80113a4: 4916 ldr r1, [pc, #88] @ (8011400 ) 80113a6: 4313 orrs r3, r2 80113a8: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 80113aa: 687b ldr r3, [r7, #4] 80113ac: 681b ldr r3, [r3, #0] 80113ae: f003 0308 and.w r3, r3, #8 80113b2: 2b00 cmp r3, #0 80113b4: d009 beq.n 80113ca { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); 80113b6: 4b12 ldr r3, [pc, #72] @ (8011400 ) 80113b8: 685b ldr r3, [r3, #4] 80113ba: f423 5260 bic.w r2, r3, #14336 @ 0x3800 80113be: 687b ldr r3, [r7, #4] 80113c0: 691b ldr r3, [r3, #16] 80113c2: 00db lsls r3, r3, #3 80113c4: 490e ldr r1, [pc, #56] @ (8011400 ) 80113c6: 4313 orrs r3, r2 80113c8: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; 80113ca: f000 f821 bl 8011410 80113ce: 4602 mov r2, r0 80113d0: 4b0b ldr r3, [pc, #44] @ (8011400 ) 80113d2: 685b ldr r3, [r3, #4] 80113d4: 091b lsrs r3, r3, #4 80113d6: f003 030f and.w r3, r3, #15 80113da: 490a ldr r1, [pc, #40] @ (8011404 ) 80113dc: 5ccb ldrb r3, [r1, r3] 80113de: fa22 f303 lsr.w r3, r2, r3 80113e2: 4a09 ldr r2, [pc, #36] @ (8011408 ) 80113e4: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); 80113e6: 4b09 ldr r3, [pc, #36] @ (801140c ) 80113e8: 681b ldr r3, [r3, #0] 80113ea: 4618 mov r0, r3 80113ec: f7fc ff42 bl 800e274 return HAL_OK; 80113f0: 2300 movs r3, #0 } 80113f2: 4618 mov r0, r3 80113f4: 3710 adds r7, #16 80113f6: 46bd mov sp, r7 80113f8: bd80 pop {r7, pc} 80113fa: bf00 nop 80113fc: 40022000 .word 0x40022000 8011400: 40021000 .word 0x40021000 8011404: 08017910 .word 0x08017910 8011408: 20000084 .word 0x20000084 801140c: 20000088 .word 0x20000088 08011410 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { 8011410: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} 8011414: b08e sub sp, #56 @ 0x38 8011416: 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; 8011418: 2300 movs r3, #0 801141a: 62fb str r3, [r7, #44] @ 0x2c 801141c: 2300 movs r3, #0 801141e: 62bb str r3, [r7, #40] @ 0x28 8011420: 2300 movs r3, #0 8011422: 637b str r3, [r7, #52] @ 0x34 8011424: 2300 movs r3, #0 8011426: 627b str r3, [r7, #36] @ 0x24 uint32_t sysclockfreq = 0U; 8011428: 2300 movs r3, #0 801142a: 633b str r3, [r7, #48] @ 0x30 #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; 801142c: 2300 movs r3, #0 801142e: 623b str r3, [r7, #32] 8011430: 2300 movs r3, #0 8011432: 61fb str r3, [r7, #28] #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; 8011434: 4b4e ldr r3, [pc, #312] @ (8011570 ) 8011436: 685b ldr r3, [r3, #4] 8011438: 62fb str r3, [r7, #44] @ 0x2c /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) 801143a: 6afb ldr r3, [r7, #44] @ 0x2c 801143c: f003 030c and.w r3, r3, #12 8011440: 2b04 cmp r3, #4 8011442: d002 beq.n 801144a 8011444: 2b08 cmp r3, #8 8011446: d003 beq.n 8011450 8011448: e089 b.n 801155e { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; 801144a: 4b4a ldr r3, [pc, #296] @ (8011574 ) 801144c: 633b str r3, [r7, #48] @ 0x30 break; 801144e: e089 b.n 8011564 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 8011450: 6afb ldr r3, [r7, #44] @ 0x2c 8011452: 0c9b lsrs r3, r3, #18 8011454: f003 020f and.w r2, r3, #15 8011458: 4b47 ldr r3, [pc, #284] @ (8011578 ) 801145a: 5c9b ldrb r3, [r3, r2] 801145c: 627b str r3, [r7, #36] @ 0x24 if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 801145e: 6afb ldr r3, [r7, #44] @ 0x2c 8011460: f403 3380 and.w r3, r3, #65536 @ 0x10000 8011464: 2b00 cmp r3, #0 8011466: d072 beq.n 801154e { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; 8011468: 4b41 ldr r3, [pc, #260] @ (8011570 ) 801146a: 6adb ldr r3, [r3, #44] @ 0x2c 801146c: f003 020f and.w r2, r3, #15 8011470: 4b42 ldr r3, [pc, #264] @ (801157c ) 8011472: 5c9b ldrb r3, [r3, r2] 8011474: 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)) 8011476: 4b3e ldr r3, [pc, #248] @ (8011570 ) 8011478: 6adb ldr r3, [r3, #44] @ 0x2c 801147a: f403 3380 and.w r3, r3, #65536 @ 0x10000 801147e: 2b00 cmp r3, #0 8011480: d053 beq.n 801152a { /* 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; 8011482: 4b3b ldr r3, [pc, #236] @ (8011570 ) 8011484: 6adb ldr r3, [r3, #44] @ 0x2c 8011486: 091b lsrs r3, r3, #4 8011488: f003 030f and.w r3, r3, #15 801148c: 3301 adds r3, #1 801148e: 623b str r3, [r7, #32] pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; 8011490: 4b37 ldr r3, [pc, #220] @ (8011570 ) 8011492: 6adb ldr r3, [r3, #44] @ 0x2c 8011494: 0a1b lsrs r3, r3, #8 8011496: f003 030f and.w r3, r3, #15 801149a: 3302 adds r3, #2 801149c: 61fb str r3, [r7, #28] pllclk = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pll2mul * (uint64_t)pllmul) / ((uint64_t)prediv2 * (uint64_t)prediv)); 801149e: 69fb ldr r3, [r7, #28] 80114a0: 2200 movs r2, #0 80114a2: 469a mov sl, r3 80114a4: 4693 mov fp, r2 80114a6: 6a7b ldr r3, [r7, #36] @ 0x24 80114a8: 2200 movs r2, #0 80114aa: 613b str r3, [r7, #16] 80114ac: 617a str r2, [r7, #20] 80114ae: 693b ldr r3, [r7, #16] 80114b0: fb03 f20b mul.w r2, r3, fp 80114b4: 697b ldr r3, [r7, #20] 80114b6: fb0a f303 mul.w r3, sl, r3 80114ba: 4413 add r3, r2 80114bc: 693a ldr r2, [r7, #16] 80114be: fbaa 0102 umull r0, r1, sl, r2 80114c2: 440b add r3, r1 80114c4: 4619 mov r1, r3 80114c6: 4b2b ldr r3, [pc, #172] @ (8011574 ) 80114c8: fb03 f201 mul.w r2, r3, r1 80114cc: 2300 movs r3, #0 80114ce: fb00 f303 mul.w r3, r0, r3 80114d2: 4413 add r3, r2 80114d4: 4a27 ldr r2, [pc, #156] @ (8011574 ) 80114d6: fba0 4502 umull r4, r5, r0, r2 80114da: 442b add r3, r5 80114dc: 461d mov r5, r3 80114de: 6a3b ldr r3, [r7, #32] 80114e0: 2200 movs r2, #0 80114e2: 60bb str r3, [r7, #8] 80114e4: 60fa str r2, [r7, #12] 80114e6: 6abb ldr r3, [r7, #40] @ 0x28 80114e8: 2200 movs r2, #0 80114ea: 603b str r3, [r7, #0] 80114ec: 607a str r2, [r7, #4] 80114ee: e9d7 0102 ldrd r0, r1, [r7, #8] 80114f2: 460b mov r3, r1 80114f4: e9d7 ab00 ldrd sl, fp, [r7] 80114f8: 4652 mov r2, sl 80114fa: fb02 f203 mul.w r2, r2, r3 80114fe: 465b mov r3, fp 8011500: 4684 mov ip, r0 8011502: fb0c f303 mul.w r3, ip, r3 8011506: 4413 add r3, r2 8011508: 4602 mov r2, r0 801150a: 4651 mov r1, sl 801150c: fba2 8901 umull r8, r9, r2, r1 8011510: 444b add r3, r9 8011512: 4699 mov r9, r3 8011514: 4642 mov r2, r8 8011516: 464b mov r3, r9 8011518: 4620 mov r0, r4 801151a: 4629 mov r1, r5 801151c: f7f7 fe6a bl 80091f4 <__aeabi_uldivmod> 8011520: 4602 mov r2, r0 8011522: 460b mov r3, r1 8011524: 4613 mov r3, r2 8011526: 637b str r3, [r7, #52] @ 0x34 8011528: e007 b.n 801153a } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); 801152a: 6a7b ldr r3, [r7, #36] @ 0x24 801152c: 4a11 ldr r2, [pc, #68] @ (8011574 ) 801152e: fb03 f202 mul.w r2, r3, r2 8011532: 6abb ldr r3, [r7, #40] @ 0x28 8011534: fbb2 f3f3 udiv r3, r2, r3 8011538: 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]) 801153a: 4b0f ldr r3, [pc, #60] @ (8011578 ) 801153c: 7b5b ldrb r3, [r3, #13] 801153e: 461a mov r2, r3 8011540: 6a7b ldr r3, [r7, #36] @ 0x24 8011542: 4293 cmp r3, r2 8011544: d108 bne.n 8011558 { pllclk = pllclk / 2; 8011546: 6b7b ldr r3, [r7, #52] @ 0x34 8011548: 085b lsrs r3, r3, #1 801154a: 637b str r3, [r7, #52] @ 0x34 801154c: e004 b.n 8011558 #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 801154e: 6a7b ldr r3, [r7, #36] @ 0x24 8011550: 4a0b ldr r2, [pc, #44] @ (8011580 ) 8011552: fb02 f303 mul.w r3, r2, r3 8011556: 637b str r3, [r7, #52] @ 0x34 } sysclockfreq = pllclk; 8011558: 6b7b ldr r3, [r7, #52] @ 0x34 801155a: 633b str r3, [r7, #48] @ 0x30 break; 801155c: e002 b.n 8011564 } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; 801155e: 4b09 ldr r3, [pc, #36] @ (8011584 ) 8011560: 633b str r3, [r7, #48] @ 0x30 break; 8011562: bf00 nop } } return sysclockfreq; 8011564: 6b3b ldr r3, [r7, #48] @ 0x30 } 8011566: 4618 mov r0, r3 8011568: 3738 adds r7, #56 @ 0x38 801156a: 46bd mov sp, r7 801156c: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} 8011570: 40021000 .word 0x40021000 8011574: 017d7840 .word 0x017d7840 8011578: 08017928 .word 0x08017928 801157c: 08017938 .word 0x08017938 8011580: 003d0900 .word 0x003d0900 8011584: 007a1200 .word 0x007a1200 08011588 : * @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) { 8011588: b480 push {r7} 801158a: af00 add r7, sp, #0 return SystemCoreClock; 801158c: 4b02 ldr r3, [pc, #8] @ (8011598 ) 801158e: 681b ldr r3, [r3, #0] } 8011590: 4618 mov r0, r3 8011592: 46bd mov sp, r7 8011594: bc80 pop {r7} 8011596: 4770 bx lr 8011598: 20000084 .word 0x20000084 0801159c : * @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) { 801159c: b580 push {r7, lr} 801159e: 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]); 80115a0: f7ff fff2 bl 8011588 80115a4: 4602 mov r2, r0 80115a6: 4b05 ldr r3, [pc, #20] @ (80115bc ) 80115a8: 685b ldr r3, [r3, #4] 80115aa: 0a1b lsrs r3, r3, #8 80115ac: f003 0307 and.w r3, r3, #7 80115b0: 4903 ldr r1, [pc, #12] @ (80115c0 ) 80115b2: 5ccb ldrb r3, [r1, r3] 80115b4: fa22 f303 lsr.w r3, r2, r3 } 80115b8: 4618 mov r0, r3 80115ba: bd80 pop {r7, pc} 80115bc: 40021000 .word 0x40021000 80115c0: 08017920 .word 0x08017920 080115c4 : * @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) { 80115c4: b580 push {r7, lr} 80115c6: 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]); 80115c8: f7ff ffde bl 8011588 80115cc: 4602 mov r2, r0 80115ce: 4b05 ldr r3, [pc, #20] @ (80115e4 ) 80115d0: 685b ldr r3, [r3, #4] 80115d2: 0adb lsrs r3, r3, #11 80115d4: f003 0307 and.w r3, r3, #7 80115d8: 4903 ldr r1, [pc, #12] @ (80115e8 ) 80115da: 5ccb ldrb r3, [r1, r3] 80115dc: fa22 f303 lsr.w r3, r2, r3 } 80115e0: 4618 mov r0, r3 80115e2: bd80 pop {r7, pc} 80115e4: 40021000 .word 0x40021000 80115e8: 08017920 .word 0x08017920 080115ec : * @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) { 80115ec: b480 push {r7} 80115ee: b085 sub sp, #20 80115f0: af00 add r7, sp, #0 80115f2: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); 80115f4: 4b0a ldr r3, [pc, #40] @ (8011620 ) 80115f6: 681b ldr r3, [r3, #0] 80115f8: 4a0a ldr r2, [pc, #40] @ (8011624 ) 80115fa: fba2 2303 umull r2, r3, r2, r3 80115fe: 0a5b lsrs r3, r3, #9 8011600: 687a ldr r2, [r7, #4] 8011602: fb02 f303 mul.w r3, r2, r3 8011606: 60fb str r3, [r7, #12] do { __NOP(); 8011608: bf00 nop } while (Delay --); 801160a: 68fb ldr r3, [r7, #12] 801160c: 1e5a subs r2, r3, #1 801160e: 60fa str r2, [r7, #12] 8011610: 2b00 cmp r3, #0 8011612: d1f9 bne.n 8011608 } 8011614: bf00 nop 8011616: bf00 nop 8011618: 3714 adds r7, #20 801161a: 46bd mov sp, r7 801161c: bc80 pop {r7} 801161e: 4770 bx lr 8011620: 20000084 .word 0x20000084 8011624: 10624dd3 .word 0x10624dd3 08011628 : * manually disable it. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { 8011628: b580 push {r7, lr} 801162a: b088 sub sp, #32 801162c: af00 add r7, sp, #0 801162e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U, temp_reg = 0U; 8011630: 2300 movs r3, #0 8011632: 617b str r3, [r7, #20] 8011634: 2300 movs r3, #0 8011636: 613b str r3, [r7, #16] #if defined(STM32F105xC) || defined(STM32F107xC) uint32_t pllactive = 0U; 8011638: 2300 movs r3, #0 801163a: 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)) 801163c: 687b ldr r3, [r7, #4] 801163e: 681b ldr r3, [r3, #0] 8011640: f003 0301 and.w r3, r3, #1 8011644: 2b00 cmp r3, #0 8011646: d07d beq.n 8011744 { FlagStatus pwrclkchanged = RESET; 8011648: 2300 movs r3, #0 801164a: 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()) 801164c: 4b8b ldr r3, [pc, #556] @ (801187c ) 801164e: 69db ldr r3, [r3, #28] 8011650: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011654: 2b00 cmp r3, #0 8011656: d10d bne.n 8011674 { __HAL_RCC_PWR_CLK_ENABLE(); 8011658: 4b88 ldr r3, [pc, #544] @ (801187c ) 801165a: 69db ldr r3, [r3, #28] 801165c: 4a87 ldr r2, [pc, #540] @ (801187c ) 801165e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 8011662: 61d3 str r3, [r2, #28] 8011664: 4b85 ldr r3, [pc, #532] @ (801187c ) 8011666: 69db ldr r3, [r3, #28] 8011668: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 801166c: 60fb str r3, [r7, #12] 801166e: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; 8011670: 2301 movs r3, #1 8011672: 76fb strb r3, [r7, #27] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8011674: 4b82 ldr r3, [pc, #520] @ (8011880 ) 8011676: 681b ldr r3, [r3, #0] 8011678: f403 7380 and.w r3, r3, #256 @ 0x100 801167c: 2b00 cmp r3, #0 801167e: d118 bne.n 80116b2 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8011680: 4b7f ldr r3, [pc, #508] @ (8011880 ) 8011682: 681b ldr r3, [r3, #0] 8011684: 4a7e ldr r2, [pc, #504] @ (8011880 ) 8011686: f443 7380 orr.w r3, r3, #256 @ 0x100 801168a: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 801168c: f7fc fe34 bl 800e2f8 8011690: 6178 str r0, [r7, #20] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8011692: e008 b.n 80116a6 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 8011694: f7fc fe30 bl 800e2f8 8011698: 4602 mov r2, r0 801169a: 697b ldr r3, [r7, #20] 801169c: 1ad3 subs r3, r2, r3 801169e: 2b64 cmp r3, #100 @ 0x64 80116a0: d901 bls.n 80116a6 { return HAL_TIMEOUT; 80116a2: 2303 movs r3, #3 80116a4: e0e5 b.n 8011872 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80116a6: 4b76 ldr r3, [pc, #472] @ (8011880 ) 80116a8: 681b ldr r3, [r3, #0] 80116aa: f403 7380 and.w r3, r3, #256 @ 0x100 80116ae: 2b00 cmp r3, #0 80116b0: d0f0 beq.n 8011694 } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); 80116b2: 4b72 ldr r3, [pc, #456] @ (801187c ) 80116b4: 6a1b ldr r3, [r3, #32] 80116b6: f403 7340 and.w r3, r3, #768 @ 0x300 80116ba: 613b str r3, [r7, #16] if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) 80116bc: 693b ldr r3, [r7, #16] 80116be: 2b00 cmp r3, #0 80116c0: d02e beq.n 8011720 80116c2: 687b ldr r3, [r7, #4] 80116c4: 685b ldr r3, [r3, #4] 80116c6: f403 7340 and.w r3, r3, #768 @ 0x300 80116ca: 693a ldr r2, [r7, #16] 80116cc: 429a cmp r2, r3 80116ce: d027 beq.n 8011720 { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); 80116d0: 4b6a ldr r3, [pc, #424] @ (801187c ) 80116d2: 6a1b ldr r3, [r3, #32] 80116d4: f423 7340 bic.w r3, r3, #768 @ 0x300 80116d8: 613b str r3, [r7, #16] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); 80116da: 4b6a ldr r3, [pc, #424] @ (8011884 ) 80116dc: 2201 movs r2, #1 80116de: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); 80116e0: 4b68 ldr r3, [pc, #416] @ (8011884 ) 80116e2: 2200 movs r2, #0 80116e4: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; 80116e6: 4a65 ldr r2, [pc, #404] @ (801187c ) 80116e8: 693b ldr r3, [r7, #16] 80116ea: 6213 str r3, [r2, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) 80116ec: 693b ldr r3, [r7, #16] 80116ee: f003 0301 and.w r3, r3, #1 80116f2: 2b00 cmp r3, #0 80116f4: d014 beq.n 8011720 { /* Get Start Tick */ tickstart = HAL_GetTick(); 80116f6: f7fc fdff bl 800e2f8 80116fa: 6178 str r0, [r7, #20] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 80116fc: e00a b.n 8011714 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 80116fe: f7fc fdfb bl 800e2f8 8011702: 4602 mov r2, r0 8011704: 697b ldr r3, [r7, #20] 8011706: 1ad3 subs r3, r2, r3 8011708: f241 3288 movw r2, #5000 @ 0x1388 801170c: 4293 cmp r3, r2 801170e: d901 bls.n 8011714 { return HAL_TIMEOUT; 8011710: 2303 movs r3, #3 8011712: e0ae b.n 8011872 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8011714: 4b59 ldr r3, [pc, #356] @ (801187c ) 8011716: 6a1b ldr r3, [r3, #32] 8011718: f003 0302 and.w r3, r3, #2 801171c: 2b00 cmp r3, #0 801171e: d0ee beq.n 80116fe } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); 8011720: 4b56 ldr r3, [pc, #344] @ (801187c ) 8011722: 6a1b ldr r3, [r3, #32] 8011724: f423 7240 bic.w r2, r3, #768 @ 0x300 8011728: 687b ldr r3, [r7, #4] 801172a: 685b ldr r3, [r3, #4] 801172c: 4953 ldr r1, [pc, #332] @ (801187c ) 801172e: 4313 orrs r3, r2 8011730: 620b str r3, [r1, #32] /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 8011732: 7efb ldrb r3, [r7, #27] 8011734: 2b01 cmp r3, #1 8011736: d105 bne.n 8011744 { __HAL_RCC_PWR_CLK_DISABLE(); 8011738: 4b50 ldr r3, [pc, #320] @ (801187c ) 801173a: 69db ldr r3, [r3, #28] 801173c: 4a4f ldr r2, [pc, #316] @ (801187c ) 801173e: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 8011742: 61d3 str r3, [r2, #28] } } /*------------------------------ ADC clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) 8011744: 687b ldr r3, [r7, #4] 8011746: 681b ldr r3, [r3, #0] 8011748: f003 0302 and.w r3, r3, #2 801174c: 2b00 cmp r3, #0 801174e: d008 beq.n 8011762 { /* Check the parameters */ assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection)); /* Configure the ADC clock source */ __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); 8011750: 4b4a ldr r3, [pc, #296] @ (801187c ) 8011752: 685b ldr r3, [r3, #4] 8011754: f423 4240 bic.w r2, r3, #49152 @ 0xc000 8011758: 687b ldr r3, [r7, #4] 801175a: 689b ldr r3, [r3, #8] 801175c: 4947 ldr r1, [pc, #284] @ (801187c ) 801175e: 4313 orrs r3, r2 8011760: 604b str r3, [r1, #4] } #if defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ I2S2 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S2) == RCC_PERIPHCLK_I2S2) 8011762: 687b ldr r3, [r7, #4] 8011764: 681b ldr r3, [r3, #0] 8011766: f003 0304 and.w r3, r3, #4 801176a: 2b00 cmp r3, #0 801176c: d008 beq.n 8011780 { /* Check the parameters */ assert_param(IS_RCC_I2S2CLKSOURCE(PeriphClkInit->I2s2ClockSelection)); /* Configure the I2S2 clock source */ __HAL_RCC_I2S2_CONFIG(PeriphClkInit->I2s2ClockSelection); 801176e: 4b43 ldr r3, [pc, #268] @ (801187c ) 8011770: 6adb ldr r3, [r3, #44] @ 0x2c 8011772: f423 3200 bic.w r2, r3, #131072 @ 0x20000 8011776: 687b ldr r3, [r7, #4] 8011778: 68db ldr r3, [r3, #12] 801177a: 4940 ldr r1, [pc, #256] @ (801187c ) 801177c: 4313 orrs r3, r2 801177e: 62cb str r3, [r1, #44] @ 0x2c } /*------------------------------ I2S3 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S3) == RCC_PERIPHCLK_I2S3) 8011780: 687b ldr r3, [r7, #4] 8011782: 681b ldr r3, [r3, #0] 8011784: f003 0308 and.w r3, r3, #8 8011788: 2b00 cmp r3, #0 801178a: d008 beq.n 801179e { /* Check the parameters */ assert_param(IS_RCC_I2S3CLKSOURCE(PeriphClkInit->I2s3ClockSelection)); /* Configure the I2S3 clock source */ __HAL_RCC_I2S3_CONFIG(PeriphClkInit->I2s3ClockSelection); 801178c: 4b3b ldr r3, [pc, #236] @ (801187c ) 801178e: 6adb ldr r3, [r3, #44] @ 0x2c 8011790: f423 2280 bic.w r2, r3, #262144 @ 0x40000 8011794: 687b ldr r3, [r7, #4] 8011796: 691b ldr r3, [r3, #16] 8011798: 4938 ldr r1, [pc, #224] @ (801187c ) 801179a: 4313 orrs r3, r2 801179c: 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)) 801179e: 4b37 ldr r3, [pc, #220] @ (801187c ) 80117a0: 6adb ldr r3, [r3, #44] @ 0x2c 80117a2: f403 3300 and.w r3, r3, #131072 @ 0x20000 80117a6: 2b00 cmp r3, #0 80117a8: d105 bne.n 80117b6 80117aa: 4b34 ldr r3, [pc, #208] @ (801187c ) 80117ac: 6adb ldr r3, [r3, #44] @ 0x2c 80117ae: f403 2380 and.w r3, r3, #262144 @ 0x40000 80117b2: 2b00 cmp r3, #0 80117b4: d001 beq.n 80117ba { /* Update flag to indicate that PLL I2S should be active */ pllactive = 1; 80117b6: 2301 movs r3, #1 80117b8: 61fb str r3, [r7, #28] } /* Check if PLL I2S need to be enabled */ if (pllactive == 1) 80117ba: 69fb ldr r3, [r7, #28] 80117bc: 2b01 cmp r3, #1 80117be: d148 bne.n 8011852 { /* Enable PLL I2S only if not active */ if (HAL_IS_BIT_CLR(RCC->CR, RCC_CR_PLL3ON)) 80117c0: 4b2e ldr r3, [pc, #184] @ (801187c ) 80117c2: 681b ldr r3, [r3, #0] 80117c4: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80117c8: 2b00 cmp r3, #0 80117ca: d138 bne.n 801183e 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) && \ 80117cc: 4b2b ldr r3, [pc, #172] @ (801187c ) 80117ce: 681b ldr r3, [r3, #0] 80117d0: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 80117d4: 2b00 cmp r3, #0 80117d6: d009 beq.n 80117ec (__HAL_RCC_HSE_GET_PREDIV2() != PeriphClkInit->PLLI2S.HSEPrediv2Value)) 80117d8: 4b28 ldr r3, [pc, #160] @ (801187c ) 80117da: 6adb ldr r3, [r3, #44] @ 0x2c 80117dc: f003 02f0 and.w r2, r3, #240 @ 0xf0 80117e0: 687b ldr r3, [r7, #4] 80117e2: 699b ldr r3, [r3, #24] if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2ON) && \ 80117e4: 429a cmp r2, r3 80117e6: d001 beq.n 80117ec { return HAL_ERROR; 80117e8: 2301 movs r3, #1 80117ea: e042 b.n 8011872 } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(PeriphClkInit->PLLI2S.HSEPrediv2Value); 80117ec: 4b23 ldr r3, [pc, #140] @ (801187c ) 80117ee: 6adb ldr r3, [r3, #44] @ 0x2c 80117f0: f023 02f0 bic.w r2, r3, #240 @ 0xf0 80117f4: 687b ldr r3, [r7, #4] 80117f6: 699b ldr r3, [r3, #24] 80117f8: 4920 ldr r1, [pc, #128] @ (801187c ) 80117fa: 4313 orrs r3, r2 80117fc: 62cb str r3, [r1, #44] @ 0x2c /* Configure the main PLLI2S multiplication factors. */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SMUL); 80117fe: 4b1f ldr r3, [pc, #124] @ (801187c ) 8011800: 6adb ldr r3, [r3, #44] @ 0x2c 8011802: f423 4270 bic.w r2, r3, #61440 @ 0xf000 8011806: 687b ldr r3, [r7, #4] 8011808: 695b ldr r3, [r3, #20] 801180a: 491c ldr r1, [pc, #112] @ (801187c ) 801180c: 4313 orrs r3, r2 801180e: 62cb str r3, [r1, #44] @ 0x2c /* Enable the main PLLI2S. */ __HAL_RCC_PLLI2S_ENABLE(); 8011810: 4b1d ldr r3, [pc, #116] @ (8011888 ) 8011812: 2201 movs r2, #1 8011814: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); 8011816: f7fc fd6f bl 800e2f8 801181a: 6178 str r0, [r7, #20] /* Wait till PLLI2S is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) 801181c: e008 b.n 8011830 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) 801181e: f7fc fd6b bl 800e2f8 8011822: 4602 mov r2, r0 8011824: 697b ldr r3, [r7, #20] 8011826: 1ad3 subs r3, r2, r3 8011828: 2b64 cmp r3, #100 @ 0x64 801182a: d901 bls.n 8011830 { return HAL_TIMEOUT; 801182c: 2303 movs r3, #3 801182e: e020 b.n 8011872 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) 8011830: 4b12 ldr r3, [pc, #72] @ (801187c ) 8011832: 681b ldr r3, [r3, #0] 8011834: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 8011838: 2b00 cmp r3, #0 801183a: d0f0 beq.n 801181e 801183c: e009 b.n 8011852 } } 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) 801183e: 4b0f ldr r3, [pc, #60] @ (801187c ) 8011840: 6adb ldr r3, [r3, #44] @ 0x2c 8011842: f403 4270 and.w r2, r3, #61440 @ 0xf000 8011846: 687b ldr r3, [r7, #4] 8011848: 695b ldr r3, [r3, #20] 801184a: 429a cmp r2, r3 801184c: d001 beq.n 8011852 { return HAL_ERROR; 801184e: 2301 movs r3, #1 8011850: e00f b.n 8011872 #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) 8011852: 687b ldr r3, [r7, #4] 8011854: 681b ldr r3, [r3, #0] 8011856: f003 0310 and.w r3, r3, #16 801185a: 2b00 cmp r3, #0 801185c: d008 beq.n 8011870 { /* Check the parameters */ assert_param(IS_RCC_USBPLLCLK_DIV(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); 801185e: 4b07 ldr r3, [pc, #28] @ (801187c ) 8011860: 685b ldr r3, [r3, #4] 8011862: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 8011866: 687b ldr r3, [r7, #4] 8011868: 69db ldr r3, [r3, #28] 801186a: 4904 ldr r1, [pc, #16] @ (801187c ) 801186c: 4313 orrs r3, r2 801186e: 604b str r3, [r1, #4] } #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ return HAL_OK; 8011870: 2300 movs r3, #0 } 8011872: 4618 mov r0, r3 8011874: 3720 adds r7, #32 8011876: 46bd mov sp, r7 8011878: bd80 pop {r7, pc} 801187a: bf00 nop 801187c: 40021000 .word 0x40021000 8011880: 40007000 .word 0x40007000 8011884: 42420440 .word 0x42420440 8011888: 42420070 .word 0x42420070 0801188c : * @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) { 801188c: b580 push {r7, lr} 801188e: b08a sub sp, #40 @ 0x28 8011890: af00 add r7, sp, #0 8011892: 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; 8011894: 2300 movs r3, #0 8011896: 61fb str r3, [r7, #28] 8011898: 2300 movs r3, #0 801189a: 627b str r3, [r7, #36] @ 0x24 801189c: 2300 movs r3, #0 801189e: 61bb str r3, [r7, #24] uint32_t pll2mul = 0U, pll3mul = 0U, prediv2 = 0U; 80118a0: 2300 movs r3, #0 80118a2: 617b str r3, [r7, #20] 80118a4: 2300 movs r3, #0 80118a6: 613b str r3, [r7, #16] 80118a8: 2300 movs r3, #0 80118aa: 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; 80118ac: 2300 movs r3, #0 80118ae: 60bb str r3, [r7, #8] 80118b0: 2300 movs r3, #0 80118b2: 623b str r3, [r7, #32] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClk)); switch (PeriphClk) 80118b4: 687b ldr r3, [r7, #4] 80118b6: 3b01 subs r3, #1 80118b8: 2b0f cmp r3, #15 80118ba: f200 811d bhi.w 8011af8 80118be: a201 add r2, pc, #4 @ (adr r2, 80118c4 ) 80118c0: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80118c4: 08011a79 .word 0x08011a79 80118c8: 08011add .word 0x08011add 80118cc: 08011af9 .word 0x08011af9 80118d0: 080119d7 .word 0x080119d7 80118d4: 08011af9 .word 0x08011af9 80118d8: 08011af9 .word 0x08011af9 80118dc: 08011af9 .word 0x08011af9 80118e0: 08011a29 .word 0x08011a29 80118e4: 08011af9 .word 0x08011af9 80118e8: 08011af9 .word 0x08011af9 80118ec: 08011af9 .word 0x08011af9 80118f0: 08011af9 .word 0x08011af9 80118f4: 08011af9 .word 0x08011af9 80118f8: 08011af9 .word 0x08011af9 80118fc: 08011af9 .word 0x08011af9 8011900: 08011905 .word 0x08011905 || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) case RCC_PERIPHCLK_USB: { /* Get RCC configuration ------------------------------------------------------*/ temp_reg = RCC->CFGR; 8011904: 4b83 ldr r3, [pc, #524] @ (8011b14 ) 8011906: 685b ldr r3, [r3, #4] 8011908: 60bb str r3, [r7, #8] /* Check if PLL is enabled */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLLON)) 801190a: 4b82 ldr r3, [pc, #520] @ (8011b14 ) 801190c: 681b ldr r3, [r3, #0] 801190e: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 8011912: 2b00 cmp r3, #0 8011914: f000 80f2 beq.w 8011afc { pllmul = aPLLMULFactorTable[(uint32_t)(temp_reg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 8011918: 68bb ldr r3, [r7, #8] 801191a: 0c9b lsrs r3, r3, #18 801191c: f003 030f and.w r3, r3, #15 8011920: 4a7d ldr r2, [pc, #500] @ (8011b18 ) 8011922: 5cd3 ldrb r3, [r2, r3] 8011924: 61bb str r3, [r7, #24] if ((temp_reg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 8011926: 68bb ldr r3, [r7, #8] 8011928: f403 3380 and.w r3, r3, #65536 @ 0x10000 801192c: 2b00 cmp r3, #0 801192e: d03b beq.n 80119a8 { #if defined(STM32F105xC) || defined(STM32F107xC) || defined(STM32F100xB)\ || defined(STM32F100xE) prediv1 = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; 8011930: 4b78 ldr r3, [pc, #480] @ (8011b14 ) 8011932: 6adb ldr r3, [r3, #44] @ 0x2c 8011934: f003 030f and.w r3, r3, #15 8011938: 4a78 ldr r2, [pc, #480] @ (8011b1c ) 801193a: 5cd3 ldrb r3, [r2, r3] 801193c: 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)) 801193e: 4b75 ldr r3, [pc, #468] @ (8011b14 ) 8011940: 6adb ldr r3, [r3, #44] @ 0x2c 8011942: f403 3380 and.w r3, r3, #65536 @ 0x10000 8011946: 2b00 cmp r3, #0 8011948: d01c beq.n 8011984 { /* 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; 801194a: 4b72 ldr r3, [pc, #456] @ (8011b14 ) 801194c: 6adb ldr r3, [r3, #44] @ 0x2c 801194e: 091b lsrs r3, r3, #4 8011950: f003 030f and.w r3, r3, #15 8011954: 3301 adds r3, #1 8011956: 60fb str r3, [r7, #12] pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; 8011958: 4b6e ldr r3, [pc, #440] @ (8011b14 ) 801195a: 6adb ldr r3, [r3, #44] @ 0x2c 801195c: 0a1b lsrs r3, r3, #8 801195e: f003 030f and.w r3, r3, #15 8011962: 3302 adds r3, #2 8011964: 617b str r3, [r7, #20] pllclk = (uint32_t)((((HSE_VALUE / prediv2) * pll2mul) / prediv1) * pllmul); 8011966: 4a6e ldr r2, [pc, #440] @ (8011b20 ) 8011968: 68fb ldr r3, [r7, #12] 801196a: fbb2 f3f3 udiv r3, r2, r3 801196e: 697a ldr r2, [r7, #20] 8011970: fb03 f202 mul.w r2, r3, r2 8011974: 69fb ldr r3, [r7, #28] 8011976: fbb2 f2f3 udiv r2, r2, r3 801197a: 69bb ldr r3, [r7, #24] 801197c: fb02 f303 mul.w r3, r2, r3 8011980: 627b str r3, [r7, #36] @ 0x24 8011982: e007 b.n 8011994 } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE / prediv1) * pllmul); 8011984: 4a66 ldr r2, [pc, #408] @ (8011b20 ) 8011986: 69fb ldr r3, [r7, #28] 8011988: fbb2 f2f3 udiv r2, r2, r3 801198c: 69bb ldr r3, [r7, #24] 801198e: fb02 f303 mul.w r3, r2, r3 8011992: 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]) 8011994: 4b60 ldr r3, [pc, #384] @ (8011b18 ) 8011996: 7b5b ldrb r3, [r3, #13] 8011998: 461a mov r2, r3 801199a: 69bb ldr r3, [r7, #24] 801199c: 4293 cmp r3, r2 801199e: d108 bne.n 80119b2 { pllclk = pllclk / 2; 80119a0: 6a7b ldr r3, [r7, #36] @ 0x24 80119a2: 085b lsrs r3, r3, #1 80119a4: 627b str r3, [r7, #36] @ 0x24 80119a6: e004 b.n 80119b2 #endif /* STM32F105xC || STM32F107xC */ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 80119a8: 69bb ldr r3, [r7, #24] 80119aa: 4a5e ldr r2, [pc, #376] @ (8011b24 ) 80119ac: fb02 f303 mul.w r3, r2, r3 80119b0: 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) 80119b2: 4b58 ldr r3, [pc, #352] @ (8011b14 ) 80119b4: 685b ldr r3, [r3, #4] 80119b6: f403 0380 and.w r3, r3, #4194304 @ 0x400000 80119ba: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 80119be: d102 bne.n 80119c6 { /* Prescaler of 2 selected for USB */ frequency = pllclk; 80119c0: 6a7b ldr r3, [r7, #36] @ 0x24 80119c2: 623b str r3, [r7, #32] /* Prescaler of 1.5 selected for USB */ frequency = (pllclk * 2) / 3; } #endif } break; 80119c4: e09a b.n 8011afc frequency = (2 * pllclk) / 3; 80119c6: 6a7b ldr r3, [r7, #36] @ 0x24 80119c8: 005b lsls r3, r3, #1 80119ca: 4a57 ldr r2, [pc, #348] @ (8011b28 ) 80119cc: fba2 2303 umull r2, r3, r2, r3 80119d0: 085b lsrs r3, r3, #1 80119d2: 623b str r3, [r7, #32] break; 80119d4: e092 b.n 8011afc { #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) 80119d6: 4b4f ldr r3, [pc, #316] @ (8011b14 ) 80119d8: 6adb ldr r3, [r3, #44] @ 0x2c 80119da: f403 3300 and.w r3, r3, #131072 @ 0x20000 80119de: 2b00 cmp r3, #0 80119e0: d103 bne.n 80119ea { /* SYSCLK used as source clock for I2S2 */ frequency = HAL_RCC_GetSysClockFreq(); 80119e2: f7ff fd15 bl 8011410 80119e6: 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; 80119e8: e08a b.n 8011b00 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) 80119ea: 4b4a ldr r3, [pc, #296] @ (8011b14 ) 80119ec: 681b ldr r3, [r3, #0] 80119ee: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 80119f2: 2b00 cmp r3, #0 80119f4: f000 8084 beq.w 8011b00 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 80119f8: 4b46 ldr r3, [pc, #280] @ (8011b14 ) 80119fa: 6adb ldr r3, [r3, #44] @ 0x2c 80119fc: 091b lsrs r3, r3, #4 80119fe: f003 030f and.w r3, r3, #15 8011a02: 3301 adds r3, #1 8011a04: 60fb str r3, [r7, #12] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; 8011a06: 4b43 ldr r3, [pc, #268] @ (8011b14 ) 8011a08: 6adb ldr r3, [r3, #44] @ 0x2c 8011a0a: 0b1b lsrs r3, r3, #12 8011a0c: f003 030f and.w r3, r3, #15 8011a10: 3302 adds r3, #2 8011a12: 613b str r3, [r7, #16] frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); 8011a14: 4a42 ldr r2, [pc, #264] @ (8011b20 ) 8011a16: 68fb ldr r3, [r7, #12] 8011a18: fbb2 f3f3 udiv r3, r2, r3 8011a1c: 693a ldr r2, [r7, #16] 8011a1e: fb02 f303 mul.w r3, r2, r3 8011a22: 005b lsls r3, r3, #1 8011a24: 623b str r3, [r7, #32] break; 8011a26: e06b b.n 8011b00 { #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) 8011a28: 4b3a ldr r3, [pc, #232] @ (8011b14 ) 8011a2a: 6adb ldr r3, [r3, #44] @ 0x2c 8011a2c: f403 2380 and.w r3, r3, #262144 @ 0x40000 8011a30: 2b00 cmp r3, #0 8011a32: d103 bne.n 8011a3c { /* SYSCLK used as source clock for I2S3 */ frequency = HAL_RCC_GetSysClockFreq(); 8011a34: f7ff fcec bl 8011410 8011a38: 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; 8011a3a: e063 b.n 8011b04 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) 8011a3c: 4b35 ldr r3, [pc, #212] @ (8011b14 ) 8011a3e: 681b ldr r3, [r3, #0] 8011a40: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 8011a44: 2b00 cmp r3, #0 8011a46: d05d beq.n 8011b04 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; 8011a48: 4b32 ldr r3, [pc, #200] @ (8011b14 ) 8011a4a: 6adb ldr r3, [r3, #44] @ 0x2c 8011a4c: 091b lsrs r3, r3, #4 8011a4e: f003 030f and.w r3, r3, #15 8011a52: 3301 adds r3, #1 8011a54: 60fb str r3, [r7, #12] pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; 8011a56: 4b2f ldr r3, [pc, #188] @ (8011b14 ) 8011a58: 6adb ldr r3, [r3, #44] @ 0x2c 8011a5a: 0b1b lsrs r3, r3, #12 8011a5c: f003 030f and.w r3, r3, #15 8011a60: 3302 adds r3, #2 8011a62: 613b str r3, [r7, #16] frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); 8011a64: 4a2e ldr r2, [pc, #184] @ (8011b20 ) 8011a66: 68fb ldr r3, [r7, #12] 8011a68: fbb2 f3f3 udiv r3, r2, r3 8011a6c: 693a ldr r2, [r7, #16] 8011a6e: fb02 f303 mul.w r3, r2, r3 8011a72: 005b lsls r3, r3, #1 8011a74: 623b str r3, [r7, #32] break; 8011a76: e045 b.n 8011b04 } #endif /* STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ case RCC_PERIPHCLK_RTC: { /* Get RCC BDCR configuration ------------------------------------------------------*/ temp_reg = RCC->BDCR; 8011a78: 4b26 ldr r3, [pc, #152] @ (8011b14 ) 8011a7a: 6a1b ldr r3, [r3, #32] 8011a7c: 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))) 8011a7e: 68bb ldr r3, [r7, #8] 8011a80: f403 7340 and.w r3, r3, #768 @ 0x300 8011a84: f5b3 7f80 cmp.w r3, #256 @ 0x100 8011a88: d108 bne.n 8011a9c 8011a8a: 68bb ldr r3, [r7, #8] 8011a8c: f003 0302 and.w r3, r3, #2 8011a90: 2b00 cmp r3, #0 8011a92: d003 beq.n 8011a9c { frequency = LSE_VALUE; 8011a94: f44f 4300 mov.w r3, #32768 @ 0x8000 8011a98: 623b str r3, [r7, #32] 8011a9a: e01e b.n 8011ada } /* 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))) 8011a9c: 68bb ldr r3, [r7, #8] 8011a9e: f403 7340 and.w r3, r3, #768 @ 0x300 8011aa2: f5b3 7f00 cmp.w r3, #512 @ 0x200 8011aa6: d109 bne.n 8011abc 8011aa8: 4b1a ldr r3, [pc, #104] @ (8011b14 ) 8011aaa: 6a5b ldr r3, [r3, #36] @ 0x24 8011aac: f003 0302 and.w r3, r3, #2 8011ab0: 2b00 cmp r3, #0 8011ab2: d003 beq.n 8011abc { frequency = LSI_VALUE; 8011ab4: f649 4340 movw r3, #40000 @ 0x9c40 8011ab8: 623b str r3, [r7, #32] 8011aba: e00e b.n 8011ada } else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))) 8011abc: 68bb ldr r3, [r7, #8] 8011abe: f403 7340 and.w r3, r3, #768 @ 0x300 8011ac2: f5b3 7f40 cmp.w r3, #768 @ 0x300 8011ac6: d11f bne.n 8011b08 8011ac8: 4b12 ldr r3, [pc, #72] @ (8011b14 ) 8011aca: 681b ldr r3, [r3, #0] 8011acc: f403 3300 and.w r3, r3, #131072 @ 0x20000 8011ad0: 2b00 cmp r3, #0 8011ad2: d019 beq.n 8011b08 { frequency = HSE_VALUE / 128U; 8011ad4: 4b15 ldr r3, [pc, #84] @ (8011b2c ) 8011ad6: 623b str r3, [r7, #32] /* Clock not enabled for RTC*/ else { /* nothing to do: frequency already initialized to 0U */ } break; 8011ad8: e016 b.n 8011b08 8011ada: e015 b.n 8011b08 } case RCC_PERIPHCLK_ADC: { frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2); 8011adc: f7ff fd72 bl 80115c4 8011ae0: 4602 mov r2, r0 8011ae2: 4b0c ldr r3, [pc, #48] @ (8011b14 ) 8011ae4: 685b ldr r3, [r3, #4] 8011ae6: 0b9b lsrs r3, r3, #14 8011ae8: f003 0303 and.w r3, r3, #3 8011aec: 3301 adds r3, #1 8011aee: 005b lsls r3, r3, #1 8011af0: fbb2 f3f3 udiv r3, r2, r3 8011af4: 623b str r3, [r7, #32] break; 8011af6: e008 b.n 8011b0a } default: { break; 8011af8: bf00 nop 8011afa: e006 b.n 8011b0a break; 8011afc: bf00 nop 8011afe: e004 b.n 8011b0a break; 8011b00: bf00 nop 8011b02: e002 b.n 8011b0a break; 8011b04: bf00 nop 8011b06: e000 b.n 8011b0a break; 8011b08: bf00 nop } } return (frequency); 8011b0a: 6a3b ldr r3, [r7, #32] } 8011b0c: 4618 mov r0, r3 8011b0e: 3728 adds r7, #40 @ 0x28 8011b10: 46bd mov sp, r7 8011b12: bd80 pop {r7, pc} 8011b14: 40021000 .word 0x40021000 8011b18: 08017948 .word 0x08017948 8011b1c: 08017958 .word 0x08017958 8011b20: 017d7840 .word 0x017d7840 8011b24: 003d0900 .word 0x003d0900 8011b28: aaaaaaab .word 0xaaaaaaab 8011b2c: 0002faf0 .word 0x0002faf0 08011b30 : * @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) { 8011b30: b580 push {r7, lr} 8011b32: b084 sub sp, #16 8011b34: af00 add r7, sp, #0 8011b36: 6078 str r0, [r7, #4] uint32_t prescaler = 0U; 8011b38: 2300 movs r3, #0 8011b3a: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) 8011b3c: 687b ldr r3, [r7, #4] 8011b3e: 2b00 cmp r3, #0 8011b40: d101 bne.n 8011b46 { return HAL_ERROR; 8011b42: 2301 movs r3, #1 8011b44: e07a b.n 8011c3c { hrtc->MspDeInitCallback = HAL_RTC_MspDeInit; } } #else if (hrtc->State == HAL_RTC_STATE_RESET) 8011b46: 687b ldr r3, [r7, #4] 8011b48: 7c5b ldrb r3, [r3, #17] 8011b4a: b2db uxtb r3, r3 8011b4c: 2b00 cmp r3, #0 8011b4e: d105 bne.n 8011b5c { /* Allocate lock resource and initialize it */ hrtc->Lock = HAL_UNLOCKED; 8011b50: 687b ldr r3, [r7, #4] 8011b52: 2200 movs r2, #0 8011b54: 741a strb r2, [r3, #16] /* Initialize RTC MSP */ HAL_RTC_MspInit(hrtc); 8011b56: 6878 ldr r0, [r7, #4] 8011b58: f7f9 ffba bl 800bad0 } #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */ /* Set RTC state */ hrtc->State = HAL_RTC_STATE_BUSY; 8011b5c: 687b ldr r3, [r7, #4] 8011b5e: 2202 movs r2, #2 8011b60: 745a strb r2, [r3, #17] /* Waiting for synchro */ if (HAL_RTC_WaitForSynchro(hrtc) != HAL_OK) 8011b62: 6878 ldr r0, [r7, #4] 8011b64: f000 f870 bl 8011c48 8011b68: 4603 mov r3, r0 8011b6a: 2b00 cmp r3, #0 8011b6c: d004 beq.n 8011b78 { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; 8011b6e: 687b ldr r3, [r7, #4] 8011b70: 2204 movs r2, #4 8011b72: 745a strb r2, [r3, #17] return HAL_ERROR; 8011b74: 2301 movs r3, #1 8011b76: e061 b.n 8011c3c } /* Set Initialization mode */ if (RTC_EnterInitMode(hrtc) != HAL_OK) 8011b78: 6878 ldr r0, [r7, #4] 8011b7a: f000 f892 bl 8011ca2 8011b7e: 4603 mov r3, r0 8011b80: 2b00 cmp r3, #0 8011b82: d004 beq.n 8011b8e { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; 8011b84: 687b ldr r3, [r7, #4] 8011b86: 2204 movs r2, #4 8011b88: 745a strb r2, [r3, #17] return HAL_ERROR; 8011b8a: 2301 movs r3, #1 8011b8c: e056 b.n 8011c3c } else { /* Clear Flags Bits */ CLEAR_BIT(hrtc->Instance->CRL, (RTC_FLAG_OW | RTC_FLAG_ALRAF | RTC_FLAG_SEC)); 8011b8e: 687b ldr r3, [r7, #4] 8011b90: 681b ldr r3, [r3, #0] 8011b92: 685a ldr r2, [r3, #4] 8011b94: 687b ldr r3, [r7, #4] 8011b96: 681b ldr r3, [r3, #0] 8011b98: f022 0207 bic.w r2, r2, #7 8011b9c: 605a str r2, [r3, #4] if (hrtc->Init.OutPut != RTC_OUTPUTSOURCE_NONE) 8011b9e: 687b ldr r3, [r7, #4] 8011ba0: 689b ldr r3, [r3, #8] 8011ba2: 2b00 cmp r3, #0 8011ba4: d005 beq.n 8011bb2 { /* Disable the selected Tamper pin */ CLEAR_BIT(BKP->CR, BKP_CR_TPE); 8011ba6: 4b27 ldr r3, [pc, #156] @ (8011c44 ) 8011ba8: 6b1b ldr r3, [r3, #48] @ 0x30 8011baa: 4a26 ldr r2, [pc, #152] @ (8011c44 ) 8011bac: f023 0301 bic.w r3, r3, #1 8011bb0: 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); 8011bb2: 4b24 ldr r3, [pc, #144] @ (8011c44 ) 8011bb4: 6adb ldr r3, [r3, #44] @ 0x2c 8011bb6: f423 7260 bic.w r2, r3, #896 @ 0x380 8011bba: 687b ldr r3, [r7, #4] 8011bbc: 689b ldr r3, [r3, #8] 8011bbe: 4921 ldr r1, [pc, #132] @ (8011c44 ) 8011bc0: 4313 orrs r3, r2 8011bc2: 62cb str r3, [r1, #44] @ 0x2c if (hrtc->Init.AsynchPrediv != RTC_AUTO_1_SECOND) 8011bc4: 687b ldr r3, [r7, #4] 8011bc6: 685b ldr r3, [r3, #4] 8011bc8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff 8011bcc: d003 beq.n 8011bd6 { /* RTC Prescaler provided directly by end-user*/ prescaler = hrtc->Init.AsynchPrediv; 8011bce: 687b ldr r3, [r7, #4] 8011bd0: 685b ldr r3, [r3, #4] 8011bd2: 60fb str r3, [r7, #12] 8011bd4: e00e b.n 8011bf4 } else { /* RTC Prescaler will be automatically calculated to get 1 second timebase */ /* Get the RTCCLK frequency */ prescaler = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_RTC); 8011bd6: 2001 movs r0, #1 8011bd8: f7ff fe58 bl 801188c 8011bdc: 60f8 str r0, [r7, #12] /* Check that RTC clock is enabled*/ if (prescaler == 0U) 8011bde: 68fb ldr r3, [r7, #12] 8011be0: 2b00 cmp r3, #0 8011be2: d104 bne.n 8011bee { /* Should not happen. Frequency is not available*/ hrtc->State = HAL_RTC_STATE_ERROR; 8011be4: 687b ldr r3, [r7, #4] 8011be6: 2204 movs r2, #4 8011be8: 745a strb r2, [r3, #17] return HAL_ERROR; 8011bea: 2301 movs r3, #1 8011bec: e026 b.n 8011c3c } else { /* RTC period = RTCCLK/(RTC_PR + 1) */ prescaler = prescaler - 1U; 8011bee: 68fb ldr r3, [r7, #12] 8011bf0: 3b01 subs r3, #1 8011bf2: 60fb str r3, [r7, #12] } } /* Configure the RTC_PRLH / RTC_PRLL */ WRITE_REG(hrtc->Instance->PRLH, ((prescaler >> 16U) & RTC_PRLH_PRL)); 8011bf4: 68fb ldr r3, [r7, #12] 8011bf6: 0c1a lsrs r2, r3, #16 8011bf8: 687b ldr r3, [r7, #4] 8011bfa: 681b ldr r3, [r3, #0] 8011bfc: f002 020f and.w r2, r2, #15 8011c00: 609a str r2, [r3, #8] WRITE_REG(hrtc->Instance->PRLL, (prescaler & RTC_PRLL_PRL)); 8011c02: 687b ldr r3, [r7, #4] 8011c04: 681b ldr r3, [r3, #0] 8011c06: 68fa ldr r2, [r7, #12] 8011c08: b292 uxth r2, r2 8011c0a: 60da str r2, [r3, #12] /* Wait for synchro */ if (RTC_ExitInitMode(hrtc) != HAL_OK) 8011c0c: 6878 ldr r0, [r7, #4] 8011c0e: f000 f870 bl 8011cf2 8011c12: 4603 mov r3, r0 8011c14: 2b00 cmp r3, #0 8011c16: d004 beq.n 8011c22 { hrtc->State = HAL_RTC_STATE_ERROR; 8011c18: 687b ldr r3, [r7, #4] 8011c1a: 2204 movs r2, #4 8011c1c: 745a strb r2, [r3, #17] return HAL_ERROR; 8011c1e: 2301 movs r3, #1 8011c20: e00c b.n 8011c3c } /* Initialize date to 1st of January 2000 */ hrtc->DateToUpdate.Year = 0x00U; 8011c22: 687b ldr r3, [r7, #4] 8011c24: 2200 movs r2, #0 8011c26: 73da strb r2, [r3, #15] hrtc->DateToUpdate.Month = RTC_MONTH_JANUARY; 8011c28: 687b ldr r3, [r7, #4] 8011c2a: 2201 movs r2, #1 8011c2c: 735a strb r2, [r3, #13] hrtc->DateToUpdate.Date = 0x01U; 8011c2e: 687b ldr r3, [r7, #4] 8011c30: 2201 movs r2, #1 8011c32: 739a strb r2, [r3, #14] /* Set RTC state */ hrtc->State = HAL_RTC_STATE_READY; 8011c34: 687b ldr r3, [r7, #4] 8011c36: 2201 movs r2, #1 8011c38: 745a strb r2, [r3, #17] return HAL_OK; 8011c3a: 2300 movs r3, #0 } } 8011c3c: 4618 mov r0, r3 8011c3e: 3710 adds r7, #16 8011c40: 46bd mov sp, r7 8011c42: bd80 pop {r7, pc} 8011c44: 40006c00 .word 0x40006c00 08011c48 : * @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) { 8011c48: b580 push {r7, lr} 8011c4a: b084 sub sp, #16 8011c4c: af00 add r7, sp, #0 8011c4e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011c50: 2300 movs r3, #0 8011c52: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) 8011c54: 687b ldr r3, [r7, #4] 8011c56: 2b00 cmp r3, #0 8011c58: d101 bne.n 8011c5e { return HAL_ERROR; 8011c5a: 2301 movs r3, #1 8011c5c: e01d b.n 8011c9a } /* Clear RSF flag */ CLEAR_BIT(hrtc->Instance->CRL, RTC_FLAG_RSF); 8011c5e: 687b ldr r3, [r7, #4] 8011c60: 681b ldr r3, [r3, #0] 8011c62: 685a ldr r2, [r3, #4] 8011c64: 687b ldr r3, [r7, #4] 8011c66: 681b ldr r3, [r3, #0] 8011c68: f022 0208 bic.w r2, r2, #8 8011c6c: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); 8011c6e: f7fc fb43 bl 800e2f8 8011c72: 60f8 str r0, [r7, #12] /* Wait the registers to be synchronised */ while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) 8011c74: e009 b.n 8011c8a { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 8011c76: f7fc fb3f bl 800e2f8 8011c7a: 4602 mov r2, r0 8011c7c: 68fb ldr r3, [r7, #12] 8011c7e: 1ad3 subs r3, r2, r3 8011c80: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 8011c84: d901 bls.n 8011c8a { return HAL_TIMEOUT; 8011c86: 2303 movs r3, #3 8011c88: e007 b.n 8011c9a while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) 8011c8a: 687b ldr r3, [r7, #4] 8011c8c: 681b ldr r3, [r3, #0] 8011c8e: 685b ldr r3, [r3, #4] 8011c90: f003 0308 and.w r3, r3, #8 8011c94: 2b00 cmp r3, #0 8011c96: d0ee beq.n 8011c76 } } return HAL_OK; 8011c98: 2300 movs r3, #0 } 8011c9a: 4618 mov r0, r3 8011c9c: 3710 adds r7, #16 8011c9e: 46bd mov sp, r7 8011ca0: bd80 pop {r7, pc} 08011ca2 : * @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) { 8011ca2: b580 push {r7, lr} 8011ca4: b084 sub sp, #16 8011ca6: af00 add r7, sp, #0 8011ca8: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011caa: 2300 movs r3, #0 8011cac: 60fb str r3, [r7, #12] tickstart = HAL_GetTick(); 8011cae: f7fc fb23 bl 800e2f8 8011cb2: 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) 8011cb4: e009 b.n 8011cca { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 8011cb6: f7fc fb1f bl 800e2f8 8011cba: 4602 mov r2, r0 8011cbc: 68fb ldr r3, [r7, #12] 8011cbe: 1ad3 subs r3, r2, r3 8011cc0: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 8011cc4: d901 bls.n 8011cca { return HAL_TIMEOUT; 8011cc6: 2303 movs r3, #3 8011cc8: e00f b.n 8011cea while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011cca: 687b ldr r3, [r7, #4] 8011ccc: 681b ldr r3, [r3, #0] 8011cce: 685b ldr r3, [r3, #4] 8011cd0: f003 0320 and.w r3, r3, #32 8011cd4: 2b00 cmp r3, #0 8011cd6: d0ee beq.n 8011cb6 } } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); 8011cd8: 687b ldr r3, [r7, #4] 8011cda: 681b ldr r3, [r3, #0] 8011cdc: 685a ldr r2, [r3, #4] 8011cde: 687b ldr r3, [r7, #4] 8011ce0: 681b ldr r3, [r3, #0] 8011ce2: f042 0210 orr.w r2, r2, #16 8011ce6: 605a str r2, [r3, #4] return HAL_OK; 8011ce8: 2300 movs r3, #0 } 8011cea: 4618 mov r0, r3 8011cec: 3710 adds r7, #16 8011cee: 46bd mov sp, r7 8011cf0: bd80 pop {r7, pc} 08011cf2 : * @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) { 8011cf2: b580 push {r7, lr} 8011cf4: b084 sub sp, #16 8011cf6: af00 add r7, sp, #0 8011cf8: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 8011cfa: 2300 movs r3, #0 8011cfc: 60fb str r3, [r7, #12] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); 8011cfe: 687b ldr r3, [r7, #4] 8011d00: 681b ldr r3, [r3, #0] 8011d02: 685a ldr r2, [r3, #4] 8011d04: 687b ldr r3, [r7, #4] 8011d06: 681b ldr r3, [r3, #0] 8011d08: f022 0210 bic.w r2, r2, #16 8011d0c: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); 8011d0e: f7fc faf3 bl 800e2f8 8011d12: 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) 8011d14: e009 b.n 8011d2a { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) 8011d16: f7fc faef bl 800e2f8 8011d1a: 4602 mov r2, r0 8011d1c: 68fb ldr r3, [r7, #12] 8011d1e: 1ad3 subs r3, r2, r3 8011d20: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 8011d24: d901 bls.n 8011d2a { return HAL_TIMEOUT; 8011d26: 2303 movs r3, #3 8011d28: e007 b.n 8011d3a while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) 8011d2a: 687b ldr r3, [r7, #4] 8011d2c: 681b ldr r3, [r3, #0] 8011d2e: 685b ldr r3, [r3, #4] 8011d30: f003 0320 and.w r3, r3, #32 8011d34: 2b00 cmp r3, #0 8011d36: d0ee beq.n 8011d16 } } return HAL_OK; 8011d38: 2300 movs r3, #0 } 8011d3a: 4618 mov r0, r3 8011d3c: 3710 adds r7, #16 8011d3e: 46bd mov sp, r7 8011d40: bd80 pop {r7, pc} 08011d42 : * 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) { 8011d42: b580 push {r7, lr} 8011d44: b082 sub sp, #8 8011d46: af00 add r7, sp, #0 8011d48: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011d4a: 687b ldr r3, [r7, #4] 8011d4c: 2b00 cmp r3, #0 8011d4e: d101 bne.n 8011d54 { return HAL_ERROR; 8011d50: 2301 movs r3, #1 8011d52: e041 b.n 8011dd8 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) 8011d54: 687b ldr r3, [r7, #4] 8011d56: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011d5a: b2db uxtb r3, r3 8011d5c: 2b00 cmp r3, #0 8011d5e: d106 bne.n 8011d6e { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011d60: 687b ldr r3, [r7, #4] 8011d62: 2200 movs r2, #0 8011d64: 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); 8011d68: 6878 ldr r0, [r7, #4] 8011d6a: f7fb ff01 bl 800db70 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011d6e: 687b ldr r3, [r7, #4] 8011d70: 2202 movs r2, #2 8011d72: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011d76: 687b ldr r3, [r7, #4] 8011d78: 681a ldr r2, [r3, #0] 8011d7a: 687b ldr r3, [r7, #4] 8011d7c: 3304 adds r3, #4 8011d7e: 4619 mov r1, r3 8011d80: 4610 mov r0, r2 8011d82: f000 fd33 bl 80127ec /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011d86: 687b ldr r3, [r7, #4] 8011d88: 2201 movs r2, #1 8011d8a: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011d8e: 687b ldr r3, [r7, #4] 8011d90: 2201 movs r2, #1 8011d92: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011d96: 687b ldr r3, [r7, #4] 8011d98: 2201 movs r2, #1 8011d9a: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011d9e: 687b ldr r3, [r7, #4] 8011da0: 2201 movs r2, #1 8011da2: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011da6: 687b ldr r3, [r7, #4] 8011da8: 2201 movs r2, #1 8011daa: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011dae: 687b ldr r3, [r7, #4] 8011db0: 2201 movs r2, #1 8011db2: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011db6: 687b ldr r3, [r7, #4] 8011db8: 2201 movs r2, #1 8011dba: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011dbe: 687b ldr r3, [r7, #4] 8011dc0: 2201 movs r2, #1 8011dc2: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011dc6: 687b ldr r3, [r7, #4] 8011dc8: 2201 movs r2, #1 8011dca: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011dce: 687b ldr r3, [r7, #4] 8011dd0: 2201 movs r2, #1 8011dd2: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011dd6: 2300 movs r3, #0 } 8011dd8: 4618 mov r0, r3 8011dda: 3708 adds r7, #8 8011ddc: 46bd mov sp, r7 8011dde: bd80 pop {r7, pc} 08011de0 : * 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) { 8011de0: b580 push {r7, lr} 8011de2: b082 sub sp, #8 8011de4: af00 add r7, sp, #0 8011de6: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011de8: 687b ldr r3, [r7, #4] 8011dea: 2b00 cmp r3, #0 8011dec: d101 bne.n 8011df2 { return HAL_ERROR; 8011dee: 2301 movs r3, #1 8011df0: e041 b.n 8011e76 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) 8011df2: 687b ldr r3, [r7, #4] 8011df4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011df8: b2db uxtb r3, r3 8011dfa: 2b00 cmp r3, #0 8011dfc: d106 bne.n 8011e0c { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8011dfe: 687b ldr r3, [r7, #4] 8011e00: 2200 movs r2, #0 8011e02: 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); 8011e06: 6878 ldr r0, [r7, #4] 8011e08: f000 f839 bl 8011e7e #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8011e0c: 687b ldr r3, [r7, #4] 8011e0e: 2202 movs r2, #2 8011e10: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the Output Compare */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8011e14: 687b ldr r3, [r7, #4] 8011e16: 681a ldr r2, [r3, #0] 8011e18: 687b ldr r3, [r7, #4] 8011e1a: 3304 adds r3, #4 8011e1c: 4619 mov r1, r3 8011e1e: 4610 mov r0, r2 8011e20: f000 fce4 bl 80127ec /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8011e24: 687b ldr r3, [r7, #4] 8011e26: 2201 movs r2, #1 8011e28: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011e2c: 687b ldr r3, [r7, #4] 8011e2e: 2201 movs r2, #1 8011e30: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011e34: 687b ldr r3, [r7, #4] 8011e36: 2201 movs r2, #1 8011e38: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011e3c: 687b ldr r3, [r7, #4] 8011e3e: 2201 movs r2, #1 8011e40: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011e44: 687b ldr r3, [r7, #4] 8011e46: 2201 movs r2, #1 8011e48: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8011e4c: 687b ldr r3, [r7, #4] 8011e4e: 2201 movs r2, #1 8011e50: f883 2042 strb.w r2, [r3, #66] @ 0x42 8011e54: 687b ldr r3, [r7, #4] 8011e56: 2201 movs r2, #1 8011e58: f883 2043 strb.w r2, [r3, #67] @ 0x43 8011e5c: 687b ldr r3, [r7, #4] 8011e5e: 2201 movs r2, #1 8011e60: f883 2044 strb.w r2, [r3, #68] @ 0x44 8011e64: 687b ldr r3, [r7, #4] 8011e66: 2201 movs r2, #1 8011e68: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8011e6c: 687b ldr r3, [r7, #4] 8011e6e: 2201 movs r2, #1 8011e70: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8011e74: 2300 movs r3, #0 } 8011e76: 4618 mov r0, r3 8011e78: 3708 adds r7, #8 8011e7a: 46bd mov sp, r7 8011e7c: bd80 pop {r7, pc} 08011e7e : * @brief Initializes the TIM Output Compare MSP. * @param htim TIM Output Compare handle * @retval None */ __weak void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim) { 8011e7e: b480 push {r7} 8011e80: b083 sub sp, #12 8011e82: af00 add r7, sp, #0 8011e84: 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 */ } 8011e86: bf00 nop 8011e88: 370c adds r7, #12 8011e8a: 46bd mov sp, r7 8011e8c: bc80 pop {r7} 8011e8e: 4770 bx lr 08011e90 : * @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) { 8011e90: b580 push {r7, lr} 8011e92: b084 sub sp, #16 8011e94: af00 add r7, sp, #0 8011e96: 6078 str r0, [r7, #4] 8011e98: 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) 8011e9a: 683b ldr r3, [r7, #0] 8011e9c: 2b00 cmp r3, #0 8011e9e: d109 bne.n 8011eb4 8011ea0: 687b ldr r3, [r7, #4] 8011ea2: f893 303e ldrb.w r3, [r3, #62] @ 0x3e 8011ea6: b2db uxtb r3, r3 8011ea8: 2b01 cmp r3, #1 8011eaa: bf14 ite ne 8011eac: 2301 movne r3, #1 8011eae: 2300 moveq r3, #0 8011eb0: b2db uxtb r3, r3 8011eb2: e022 b.n 8011efa 8011eb4: 683b ldr r3, [r7, #0] 8011eb6: 2b04 cmp r3, #4 8011eb8: d109 bne.n 8011ece 8011eba: 687b ldr r3, [r7, #4] 8011ebc: f893 303f ldrb.w r3, [r3, #63] @ 0x3f 8011ec0: b2db uxtb r3, r3 8011ec2: 2b01 cmp r3, #1 8011ec4: bf14 ite ne 8011ec6: 2301 movne r3, #1 8011ec8: 2300 moveq r3, #0 8011eca: b2db uxtb r3, r3 8011ecc: e015 b.n 8011efa 8011ece: 683b ldr r3, [r7, #0] 8011ed0: 2b08 cmp r3, #8 8011ed2: d109 bne.n 8011ee8 8011ed4: 687b ldr r3, [r7, #4] 8011ed6: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 8011eda: b2db uxtb r3, r3 8011edc: 2b01 cmp r3, #1 8011ede: bf14 ite ne 8011ee0: 2301 movne r3, #1 8011ee2: 2300 moveq r3, #0 8011ee4: b2db uxtb r3, r3 8011ee6: e008 b.n 8011efa 8011ee8: 687b ldr r3, [r7, #4] 8011eea: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8011eee: b2db uxtb r3, r3 8011ef0: 2b01 cmp r3, #1 8011ef2: bf14 ite ne 8011ef4: 2301 movne r3, #1 8011ef6: 2300 moveq r3, #0 8011ef8: b2db uxtb r3, r3 8011efa: 2b00 cmp r3, #0 8011efc: d001 beq.n 8011f02 { return HAL_ERROR; 8011efe: 2301 movs r3, #1 8011f00: e063 b.n 8011fca } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8011f02: 683b ldr r3, [r7, #0] 8011f04: 2b00 cmp r3, #0 8011f06: d104 bne.n 8011f12 8011f08: 687b ldr r3, [r7, #4] 8011f0a: 2202 movs r2, #2 8011f0c: f883 203e strb.w r2, [r3, #62] @ 0x3e 8011f10: e013 b.n 8011f3a 8011f12: 683b ldr r3, [r7, #0] 8011f14: 2b04 cmp r3, #4 8011f16: d104 bne.n 8011f22 8011f18: 687b ldr r3, [r7, #4] 8011f1a: 2202 movs r2, #2 8011f1c: f883 203f strb.w r2, [r3, #63] @ 0x3f 8011f20: e00b b.n 8011f3a 8011f22: 683b ldr r3, [r7, #0] 8011f24: 2b08 cmp r3, #8 8011f26: d104 bne.n 8011f32 8011f28: 687b ldr r3, [r7, #4] 8011f2a: 2202 movs r2, #2 8011f2c: f883 2040 strb.w r2, [r3, #64] @ 0x40 8011f30: e003 b.n 8011f3a 8011f32: 687b ldr r3, [r7, #4] 8011f34: 2202 movs r2, #2 8011f36: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the Output compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 8011f3a: 687b ldr r3, [r7, #4] 8011f3c: 681b ldr r3, [r3, #0] 8011f3e: 2201 movs r2, #1 8011f40: 6839 ldr r1, [r7, #0] 8011f42: 4618 mov r0, r3 8011f44: f000 fee8 bl 8012d18 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 8011f48: 687b ldr r3, [r7, #4] 8011f4a: 681b ldr r3, [r3, #0] 8011f4c: 4a21 ldr r2, [pc, #132] @ (8011fd4 ) 8011f4e: 4293 cmp r3, r2 8011f50: d107 bne.n 8011f62 { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8011f52: 687b ldr r3, [r7, #4] 8011f54: 681b ldr r3, [r3, #0] 8011f56: 6c5a ldr r2, [r3, #68] @ 0x44 8011f58: 687b ldr r3, [r7, #4] 8011f5a: 681b ldr r3, [r3, #0] 8011f5c: f442 4200 orr.w r2, r2, #32768 @ 0x8000 8011f60: 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)) 8011f62: 687b ldr r3, [r7, #4] 8011f64: 681b ldr r3, [r3, #0] 8011f66: 4a1b ldr r2, [pc, #108] @ (8011fd4 ) 8011f68: 4293 cmp r3, r2 8011f6a: d013 beq.n 8011f94 8011f6c: 687b ldr r3, [r7, #4] 8011f6e: 681b ldr r3, [r3, #0] 8011f70: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8011f74: d00e beq.n 8011f94 8011f76: 687b ldr r3, [r7, #4] 8011f78: 681b ldr r3, [r3, #0] 8011f7a: 4a17 ldr r2, [pc, #92] @ (8011fd8 ) 8011f7c: 4293 cmp r3, r2 8011f7e: d009 beq.n 8011f94 8011f80: 687b ldr r3, [r7, #4] 8011f82: 681b ldr r3, [r3, #0] 8011f84: 4a15 ldr r2, [pc, #84] @ (8011fdc ) 8011f86: 4293 cmp r3, r2 8011f88: d004 beq.n 8011f94 8011f8a: 687b ldr r3, [r7, #4] 8011f8c: 681b ldr r3, [r3, #0] 8011f8e: 4a14 ldr r2, [pc, #80] @ (8011fe0 ) 8011f90: 4293 cmp r3, r2 8011f92: d111 bne.n 8011fb8 { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8011f94: 687b ldr r3, [r7, #4] 8011f96: 681b ldr r3, [r3, #0] 8011f98: 689b ldr r3, [r3, #8] 8011f9a: f003 0307 and.w r3, r3, #7 8011f9e: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011fa0: 68fb ldr r3, [r7, #12] 8011fa2: 2b06 cmp r3, #6 8011fa4: d010 beq.n 8011fc8 { __HAL_TIM_ENABLE(htim); 8011fa6: 687b ldr r3, [r7, #4] 8011fa8: 681b ldr r3, [r3, #0] 8011faa: 681a ldr r2, [r3, #0] 8011fac: 687b ldr r3, [r7, #4] 8011fae: 681b ldr r3, [r3, #0] 8011fb0: f042 0201 orr.w r2, r2, #1 8011fb4: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8011fb6: e007 b.n 8011fc8 } } else { __HAL_TIM_ENABLE(htim); 8011fb8: 687b ldr r3, [r7, #4] 8011fba: 681b ldr r3, [r3, #0] 8011fbc: 681a ldr r2, [r3, #0] 8011fbe: 687b ldr r3, [r7, #4] 8011fc0: 681b ldr r3, [r3, #0] 8011fc2: f042 0201 orr.w r2, r2, #1 8011fc6: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 8011fc8: 2300 movs r3, #0 } 8011fca: 4618 mov r0, r3 8011fcc: 3710 adds r7, #16 8011fce: 46bd mov sp, r7 8011fd0: bd80 pop {r7, pc} 8011fd2: bf00 nop 8011fd4: 40012c00 .word 0x40012c00 8011fd8: 40000400 .word 0x40000400 8011fdc: 40000800 .word 0x40000800 8011fe0: 40000c00 .word 0x40000c00 08011fe4 : * 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) { 8011fe4: b580 push {r7, lr} 8011fe6: b082 sub sp, #8 8011fe8: af00 add r7, sp, #0 8011fea: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8011fec: 687b ldr r3, [r7, #4] 8011fee: 2b00 cmp r3, #0 8011ff0: d101 bne.n 8011ff6 { return HAL_ERROR; 8011ff2: 2301 movs r3, #1 8011ff4: e041 b.n 801207a 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) 8011ff6: 687b ldr r3, [r7, #4] 8011ff8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d 8011ffc: b2db uxtb r3, r3 8011ffe: 2b00 cmp r3, #0 8012000: d106 bne.n 8012010 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8012002: 687b ldr r3, [r7, #4] 8012004: 2200 movs r2, #0 8012006: 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); 801200a: 6878 ldr r0, [r7, #4] 801200c: f000 f839 bl 8012082 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8012010: 687b ldr r3, [r7, #4] 8012012: 2202 movs r2, #2 8012014: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8012018: 687b ldr r3, [r7, #4] 801201a: 681a ldr r2, [r3, #0] 801201c: 687b ldr r3, [r7, #4] 801201e: 3304 adds r3, #4 8012020: 4619 mov r1, r3 8012022: 4610 mov r0, r2 8012024: f000 fbe2 bl 80127ec /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8012028: 687b ldr r3, [r7, #4] 801202a: 2201 movs r2, #1 801202c: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8012030: 687b ldr r3, [r7, #4] 8012032: 2201 movs r2, #1 8012034: f883 203e strb.w r2, [r3, #62] @ 0x3e 8012038: 687b ldr r3, [r7, #4] 801203a: 2201 movs r2, #1 801203c: f883 203f strb.w r2, [r3, #63] @ 0x3f 8012040: 687b ldr r3, [r7, #4] 8012042: 2201 movs r2, #1 8012044: f883 2040 strb.w r2, [r3, #64] @ 0x40 8012048: 687b ldr r3, [r7, #4] 801204a: 2201 movs r2, #1 801204c: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8012050: 687b ldr r3, [r7, #4] 8012052: 2201 movs r2, #1 8012054: f883 2042 strb.w r2, [r3, #66] @ 0x42 8012058: 687b ldr r3, [r7, #4] 801205a: 2201 movs r2, #1 801205c: f883 2043 strb.w r2, [r3, #67] @ 0x43 8012060: 687b ldr r3, [r7, #4] 8012062: 2201 movs r2, #1 8012064: f883 2044 strb.w r2, [r3, #68] @ 0x44 8012068: 687b ldr r3, [r7, #4] 801206a: 2201 movs r2, #1 801206c: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8012070: 687b ldr r3, [r7, #4] 8012072: 2201 movs r2, #1 8012074: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; 8012078: 2300 movs r3, #0 } 801207a: 4618 mov r0, r3 801207c: 3708 adds r7, #8 801207e: 46bd mov sp, r7 8012080: bd80 pop {r7, pc} 08012082 : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { 8012082: b480 push {r7} 8012084: b083 sub sp, #12 8012086: af00 add r7, sp, #0 8012088: 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 */ } 801208a: bf00 nop 801208c: 370c adds r7, #12 801208e: 46bd mov sp, r7 8012090: bc80 pop {r7} 8012092: 4770 bx lr 08012094 : * @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) { 8012094: b580 push {r7, lr} 8012096: b084 sub sp, #16 8012098: af00 add r7, sp, #0 801209a: 6078 str r0, [r7, #4] 801209c: 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) 801209e: 683b ldr r3, [r7, #0] 80120a0: 2b00 cmp r3, #0 80120a2: d109 bne.n 80120b8 80120a4: 687b ldr r3, [r7, #4] 80120a6: f893 303e ldrb.w r3, [r3, #62] @ 0x3e 80120aa: b2db uxtb r3, r3 80120ac: 2b01 cmp r3, #1 80120ae: bf14 ite ne 80120b0: 2301 movne r3, #1 80120b2: 2300 moveq r3, #0 80120b4: b2db uxtb r3, r3 80120b6: e022 b.n 80120fe 80120b8: 683b ldr r3, [r7, #0] 80120ba: 2b04 cmp r3, #4 80120bc: d109 bne.n 80120d2 80120be: 687b ldr r3, [r7, #4] 80120c0: f893 303f ldrb.w r3, [r3, #63] @ 0x3f 80120c4: b2db uxtb r3, r3 80120c6: 2b01 cmp r3, #1 80120c8: bf14 ite ne 80120ca: 2301 movne r3, #1 80120cc: 2300 moveq r3, #0 80120ce: b2db uxtb r3, r3 80120d0: e015 b.n 80120fe 80120d2: 683b ldr r3, [r7, #0] 80120d4: 2b08 cmp r3, #8 80120d6: d109 bne.n 80120ec 80120d8: 687b ldr r3, [r7, #4] 80120da: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 80120de: b2db uxtb r3, r3 80120e0: 2b01 cmp r3, #1 80120e2: bf14 ite ne 80120e4: 2301 movne r3, #1 80120e6: 2300 moveq r3, #0 80120e8: b2db uxtb r3, r3 80120ea: e008 b.n 80120fe 80120ec: 687b ldr r3, [r7, #4] 80120ee: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 80120f2: b2db uxtb r3, r3 80120f4: 2b01 cmp r3, #1 80120f6: bf14 ite ne 80120f8: 2301 movne r3, #1 80120fa: 2300 moveq r3, #0 80120fc: b2db uxtb r3, r3 80120fe: 2b00 cmp r3, #0 8012100: d001 beq.n 8012106 { return HAL_ERROR; 8012102: 2301 movs r3, #1 8012104: e063 b.n 80121ce } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8012106: 683b ldr r3, [r7, #0] 8012108: 2b00 cmp r3, #0 801210a: d104 bne.n 8012116 801210c: 687b ldr r3, [r7, #4] 801210e: 2202 movs r2, #2 8012110: f883 203e strb.w r2, [r3, #62] @ 0x3e 8012114: e013 b.n 801213e 8012116: 683b ldr r3, [r7, #0] 8012118: 2b04 cmp r3, #4 801211a: d104 bne.n 8012126 801211c: 687b ldr r3, [r7, #4] 801211e: 2202 movs r2, #2 8012120: f883 203f strb.w r2, [r3, #63] @ 0x3f 8012124: e00b b.n 801213e 8012126: 683b ldr r3, [r7, #0] 8012128: 2b08 cmp r3, #8 801212a: d104 bne.n 8012136 801212c: 687b ldr r3, [r7, #4] 801212e: 2202 movs r2, #2 8012130: f883 2040 strb.w r2, [r3, #64] @ 0x40 8012134: e003 b.n 801213e 8012136: 687b ldr r3, [r7, #4] 8012138: 2202 movs r2, #2 801213a: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 801213e: 687b ldr r3, [r7, #4] 8012140: 681b ldr r3, [r3, #0] 8012142: 2201 movs r2, #1 8012144: 6839 ldr r1, [r7, #0] 8012146: 4618 mov r0, r3 8012148: f000 fde6 bl 8012d18 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 801214c: 687b ldr r3, [r7, #4] 801214e: 681b ldr r3, [r3, #0] 8012150: 4a21 ldr r2, [pc, #132] @ (80121d8 ) 8012152: 4293 cmp r3, r2 8012154: d107 bne.n 8012166 { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8012156: 687b ldr r3, [r7, #4] 8012158: 681b ldr r3, [r3, #0] 801215a: 6c5a ldr r2, [r3, #68] @ 0x44 801215c: 687b ldr r3, [r7, #4] 801215e: 681b ldr r3, [r3, #0] 8012160: f442 4200 orr.w r2, r2, #32768 @ 0x8000 8012164: 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)) 8012166: 687b ldr r3, [r7, #4] 8012168: 681b ldr r3, [r3, #0] 801216a: 4a1b ldr r2, [pc, #108] @ (80121d8 ) 801216c: 4293 cmp r3, r2 801216e: d013 beq.n 8012198 8012170: 687b ldr r3, [r7, #4] 8012172: 681b ldr r3, [r3, #0] 8012174: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012178: d00e beq.n 8012198 801217a: 687b ldr r3, [r7, #4] 801217c: 681b ldr r3, [r3, #0] 801217e: 4a17 ldr r2, [pc, #92] @ (80121dc ) 8012180: 4293 cmp r3, r2 8012182: d009 beq.n 8012198 8012184: 687b ldr r3, [r7, #4] 8012186: 681b ldr r3, [r3, #0] 8012188: 4a15 ldr r2, [pc, #84] @ (80121e0 ) 801218a: 4293 cmp r3, r2 801218c: d004 beq.n 8012198 801218e: 687b ldr r3, [r7, #4] 8012190: 681b ldr r3, [r3, #0] 8012192: 4a14 ldr r2, [pc, #80] @ (80121e4 ) 8012194: 4293 cmp r3, r2 8012196: d111 bne.n 80121bc { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8012198: 687b ldr r3, [r7, #4] 801219a: 681b ldr r3, [r3, #0] 801219c: 689b ldr r3, [r3, #8] 801219e: f003 0307 and.w r3, r3, #7 80121a2: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 80121a4: 68fb ldr r3, [r7, #12] 80121a6: 2b06 cmp r3, #6 80121a8: d010 beq.n 80121cc { __HAL_TIM_ENABLE(htim); 80121aa: 687b ldr r3, [r7, #4] 80121ac: 681b ldr r3, [r3, #0] 80121ae: 681a ldr r2, [r3, #0] 80121b0: 687b ldr r3, [r7, #4] 80121b2: 681b ldr r3, [r3, #0] 80121b4: f042 0201 orr.w r2, r2, #1 80121b8: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 80121ba: e007 b.n 80121cc } } else { __HAL_TIM_ENABLE(htim); 80121bc: 687b ldr r3, [r7, #4] 80121be: 681b ldr r3, [r3, #0] 80121c0: 681a ldr r2, [r3, #0] 80121c2: 687b ldr r3, [r7, #4] 80121c4: 681b ldr r3, [r3, #0] 80121c6: f042 0201 orr.w r2, r2, #1 80121ca: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 80121cc: 2300 movs r3, #0 } 80121ce: 4618 mov r0, r3 80121d0: 3710 adds r7, #16 80121d2: 46bd mov sp, r7 80121d4: bd80 pop {r7, pc} 80121d6: bf00 nop 80121d8: 40012c00 .word 0x40012c00 80121dc: 40000400 .word 0x40000400 80121e0: 40000800 .word 0x40000800 80121e4: 40000c00 .word 0x40000c00 080121e8 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { 80121e8: b580 push {r7, lr} 80121ea: b084 sub sp, #16 80121ec: af00 add r7, sp, #0 80121ee: 6078 str r0, [r7, #4] uint32_t itsource = htim->Instance->DIER; 80121f0: 687b ldr r3, [r7, #4] 80121f2: 681b ldr r3, [r3, #0] 80121f4: 68db ldr r3, [r3, #12] 80121f6: 60fb str r3, [r7, #12] uint32_t itflag = htim->Instance->SR; 80121f8: 687b ldr r3, [r7, #4] 80121fa: 681b ldr r3, [r3, #0] 80121fc: 691b ldr r3, [r3, #16] 80121fe: 60bb str r3, [r7, #8] /* Capture compare 1 event */ if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1)) 8012200: 68bb ldr r3, [r7, #8] 8012202: f003 0302 and.w r3, r3, #2 8012206: 2b00 cmp r3, #0 8012208: d020 beq.n 801224c { if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1)) 801220a: 68fb ldr r3, [r7, #12] 801220c: f003 0302 and.w r3, r3, #2 8012210: 2b00 cmp r3, #0 8012212: d01b beq.n 801224c { { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1); 8012214: 687b ldr r3, [r7, #4] 8012216: 681b ldr r3, [r3, #0] 8012218: f06f 0202 mvn.w r2, #2 801221c: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; 801221e: 687b ldr r3, [r7, #4] 8012220: 2201 movs r2, #1 8012222: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) 8012224: 687b ldr r3, [r7, #4] 8012226: 681b ldr r3, [r3, #0] 8012228: 699b ldr r3, [r3, #24] 801222a: f003 0303 and.w r3, r3, #3 801222e: 2b00 cmp r3, #0 8012230: d003 beq.n 801223a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8012232: 6878 ldr r0, [r7, #4] 8012234: f000 fabf bl 80127b6 8012238: e005 b.n 8012246 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 801223a: 6878 ldr r0, [r7, #4] 801223c: f000 fab2 bl 80127a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 8012240: 6878 ldr r0, [r7, #4] 8012242: f000 fac1 bl 80127c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8012246: 687b ldr r3, [r7, #4] 8012248: 2200 movs r2, #0 801224a: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2)) 801224c: 68bb ldr r3, [r7, #8] 801224e: f003 0304 and.w r3, r3, #4 8012252: 2b00 cmp r3, #0 8012254: d020 beq.n 8012298 { if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2)) 8012256: 68fb ldr r3, [r7, #12] 8012258: f003 0304 and.w r3, r3, #4 801225c: 2b00 cmp r3, #0 801225e: d01b beq.n 8012298 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2); 8012260: 687b ldr r3, [r7, #4] 8012262: 681b ldr r3, [r3, #0] 8012264: f06f 0204 mvn.w r2, #4 8012268: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; 801226a: 687b ldr r3, [r7, #4] 801226c: 2202 movs r2, #2 801226e: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) 8012270: 687b ldr r3, [r7, #4] 8012272: 681b ldr r3, [r3, #0] 8012274: 699b ldr r3, [r3, #24] 8012276: f403 7340 and.w r3, r3, #768 @ 0x300 801227a: 2b00 cmp r3, #0 801227c: d003 beq.n 8012286 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 801227e: 6878 ldr r0, [r7, #4] 8012280: f000 fa99 bl 80127b6 8012284: e005 b.n 8012292 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8012286: 6878 ldr r0, [r7, #4] 8012288: f000 fa8c bl 80127a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 801228c: 6878 ldr r0, [r7, #4] 801228e: f000 fa9b bl 80127c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8012292: 687b ldr r3, [r7, #4] 8012294: 2200 movs r2, #0 8012296: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3)) 8012298: 68bb ldr r3, [r7, #8] 801229a: f003 0308 and.w r3, r3, #8 801229e: 2b00 cmp r3, #0 80122a0: d020 beq.n 80122e4 { if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3)) 80122a2: 68fb ldr r3, [r7, #12] 80122a4: f003 0308 and.w r3, r3, #8 80122a8: 2b00 cmp r3, #0 80122aa: d01b beq.n 80122e4 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3); 80122ac: 687b ldr r3, [r7, #4] 80122ae: 681b ldr r3, [r3, #0] 80122b0: f06f 0208 mvn.w r2, #8 80122b4: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; 80122b6: 687b ldr r3, [r7, #4] 80122b8: 2204 movs r2, #4 80122ba: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) 80122bc: 687b ldr r3, [r7, #4] 80122be: 681b ldr r3, [r3, #0] 80122c0: 69db ldr r3, [r3, #28] 80122c2: f003 0303 and.w r3, r3, #3 80122c6: 2b00 cmp r3, #0 80122c8: d003 beq.n 80122d2 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 80122ca: 6878 ldr r0, [r7, #4] 80122cc: f000 fa73 bl 80127b6 80122d0: e005 b.n 80122de { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 80122d2: 6878 ldr r0, [r7, #4] 80122d4: f000 fa66 bl 80127a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 80122d8: 6878 ldr r0, [r7, #4] 80122da: f000 fa75 bl 80127c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 80122de: 687b ldr r3, [r7, #4] 80122e0: 2200 movs r2, #0 80122e2: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4)) 80122e4: 68bb ldr r3, [r7, #8] 80122e6: f003 0310 and.w r3, r3, #16 80122ea: 2b00 cmp r3, #0 80122ec: d020 beq.n 8012330 { if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4)) 80122ee: 68fb ldr r3, [r7, #12] 80122f0: f003 0310 and.w r3, r3, #16 80122f4: 2b00 cmp r3, #0 80122f6: d01b beq.n 8012330 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4); 80122f8: 687b ldr r3, [r7, #4] 80122fa: 681b ldr r3, [r3, #0] 80122fc: f06f 0210 mvn.w r2, #16 8012300: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; 8012302: 687b ldr r3, [r7, #4] 8012304: 2208 movs r2, #8 8012306: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) 8012308: 687b ldr r3, [r7, #4] 801230a: 681b ldr r3, [r3, #0] 801230c: 69db ldr r3, [r3, #28] 801230e: f403 7340 and.w r3, r3, #768 @ 0x300 8012312: 2b00 cmp r3, #0 8012314: d003 beq.n 801231e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8012316: 6878 ldr r0, [r7, #4] 8012318: f000 fa4d bl 80127b6 801231c: e005 b.n 801232a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 801231e: 6878 ldr r0, [r7, #4] 8012320: f000 fa40 bl 80127a4 HAL_TIM_PWM_PulseFinishedCallback(htim); 8012324: 6878 ldr r0, [r7, #4] 8012326: f000 fa4f bl 80127c8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 801232a: 687b ldr r3, [r7, #4] 801232c: 2200 movs r2, #0 801232e: 771a strb r2, [r3, #28] } } /* TIM Update event */ if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE)) 8012330: 68bb ldr r3, [r7, #8] 8012332: f003 0301 and.w r3, r3, #1 8012336: 2b00 cmp r3, #0 8012338: d00c beq.n 8012354 { if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE)) 801233a: 68fb ldr r3, [r7, #12] 801233c: f003 0301 and.w r3, r3, #1 8012340: 2b00 cmp r3, #0 8012342: d007 beq.n 8012354 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE); 8012344: 687b ldr r3, [r7, #4] 8012346: 681b ldr r3, [r3, #0] 8012348: f06f 0201 mvn.w r2, #1 801234c: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); 801234e: 6878 ldr r0, [r7, #4] 8012350: f000 fa1f bl 8012792 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if ((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) 8012354: 68bb ldr r3, [r7, #8] 8012356: f003 0380 and.w r3, r3, #128 @ 0x80 801235a: 2b00 cmp r3, #0 801235c: d00c beq.n 8012378 { if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK)) 801235e: 68fb ldr r3, [r7, #12] 8012360: f003 0380 and.w r3, r3, #128 @ 0x80 8012364: 2b00 cmp r3, #0 8012366: d007 beq.n 8012378 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK); 8012368: 687b ldr r3, [r7, #4] 801236a: 681b ldr r3, [r3, #0] 801236c: f06f 0280 mvn.w r2, #128 @ 0x80 8012370: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); 8012372: 6878 ldr r0, [r7, #4] 8012374: f000 fd63 bl 8012e3e #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER)) 8012378: 68bb ldr r3, [r7, #8] 801237a: f003 0340 and.w r3, r3, #64 @ 0x40 801237e: 2b00 cmp r3, #0 8012380: d00c beq.n 801239c { if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER)) 8012382: 68fb ldr r3, [r7, #12] 8012384: f003 0340 and.w r3, r3, #64 @ 0x40 8012388: 2b00 cmp r3, #0 801238a: d007 beq.n 801239c { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER); 801238c: 687b ldr r3, [r7, #4] 801238e: 681b ldr r3, [r3, #0] 8012390: f06f 0240 mvn.w r2, #64 @ 0x40 8012394: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); 8012396: 6878 ldr r0, [r7, #4] 8012398: f000 fa1f bl 80127da #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM)) 801239c: 68bb ldr r3, [r7, #8] 801239e: f003 0320 and.w r3, r3, #32 80123a2: 2b00 cmp r3, #0 80123a4: d00c beq.n 80123c0 { if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM)) 80123a6: 68fb ldr r3, [r7, #12] 80123a8: f003 0320 and.w r3, r3, #32 80123ac: 2b00 cmp r3, #0 80123ae: d007 beq.n 80123c0 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM); 80123b0: 687b ldr r3, [r7, #4] 80123b2: 681b ldr r3, [r3, #0] 80123b4: f06f 0220 mvn.w r2, #32 80123b8: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); 80123ba: 6878 ldr r0, [r7, #4] 80123bc: f000 fd36 bl 8012e2c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } 80123c0: bf00 nop 80123c2: 3710 adds r7, #16 80123c4: 46bd mov sp, r7 80123c6: bd80 pop {r7, pc} 080123c8 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 80123c8: b580 push {r7, lr} 80123ca: b086 sub sp, #24 80123cc: af00 add r7, sp, #0 80123ce: 60f8 str r0, [r7, #12] 80123d0: 60b9 str r1, [r7, #8] 80123d2: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 80123d4: 2300 movs r3, #0 80123d6: 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); 80123d8: 68fb ldr r3, [r7, #12] 80123da: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 80123de: 2b01 cmp r3, #1 80123e0: d101 bne.n 80123e6 80123e2: 2302 movs r3, #2 80123e4: e048 b.n 8012478 80123e6: 68fb ldr r3, [r7, #12] 80123e8: 2201 movs r2, #1 80123ea: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) 80123ee: 687b ldr r3, [r7, #4] 80123f0: 2b0c cmp r3, #12 80123f2: d839 bhi.n 8012468 80123f4: a201 add r2, pc, #4 @ (adr r2, 80123fc ) 80123f6: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80123fa: bf00 nop 80123fc: 08012431 .word 0x08012431 8012400: 08012469 .word 0x08012469 8012404: 08012469 .word 0x08012469 8012408: 08012469 .word 0x08012469 801240c: 0801243f .word 0x0801243f 8012410: 08012469 .word 0x08012469 8012414: 08012469 .word 0x08012469 8012418: 08012469 .word 0x08012469 801241c: 0801244d .word 0x0801244d 8012420: 08012469 .word 0x08012469 8012424: 08012469 .word 0x08012469 8012428: 08012469 .word 0x08012469 801242c: 0801245b .word 0x0801245b { /* 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); 8012430: 68fb ldr r3, [r7, #12] 8012432: 681b ldr r3, [r3, #0] 8012434: 68b9 ldr r1, [r7, #8] 8012436: 4618 mov r0, r3 8012438: f000 fa50 bl 80128dc break; 801243c: e017 b.n 801246e { /* 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); 801243e: 68fb ldr r3, [r7, #12] 8012440: 681b ldr r3, [r3, #0] 8012442: 68b9 ldr r1, [r7, #8] 8012444: 4618 mov r0, r3 8012446: f000 faaf bl 80129a8 break; 801244a: e010 b.n 801246e { /* 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); 801244c: 68fb ldr r3, [r7, #12] 801244e: 681b ldr r3, [r3, #0] 8012450: 68b9 ldr r1, [r7, #8] 8012452: 4618 mov r0, r3 8012454: f000 fb12 bl 8012a7c break; 8012458: e009 b.n 801246e { /* 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); 801245a: 68fb ldr r3, [r7, #12] 801245c: 681b ldr r3, [r3, #0] 801245e: 68b9 ldr r1, [r7, #8] 8012460: 4618 mov r0, r3 8012462: f000 fb75 bl 8012b50 break; 8012466: e002 b.n 801246e } default: status = HAL_ERROR; 8012468: 2301 movs r3, #1 801246a: 75fb strb r3, [r7, #23] break; 801246c: bf00 nop } __HAL_UNLOCK(htim); 801246e: 68fb ldr r3, [r7, #12] 8012470: 2200 movs r2, #0 8012472: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 8012476: 7dfb ldrb r3, [r7, #23] } 8012478: 4618 mov r0, r3 801247a: 3718 adds r7, #24 801247c: 46bd mov sp, r7 801247e: bd80 pop {r7, pc} 08012480 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 8012480: b580 push {r7, lr} 8012482: b086 sub sp, #24 8012484: af00 add r7, sp, #0 8012486: 60f8 str r0, [r7, #12] 8012488: 60b9 str r1, [r7, #8] 801248a: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 801248c: 2300 movs r3, #0 801248e: 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); 8012490: 68fb ldr r3, [r7, #12] 8012492: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012496: 2b01 cmp r3, #1 8012498: d101 bne.n 801249e 801249a: 2302 movs r3, #2 801249c: e0ae b.n 80125fc 801249e: 68fb ldr r3, [r7, #12] 80124a0: 2201 movs r2, #1 80124a2: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) 80124a6: 687b ldr r3, [r7, #4] 80124a8: 2b0c cmp r3, #12 80124aa: f200 809f bhi.w 80125ec 80124ae: a201 add r2, pc, #4 @ (adr r2, 80124b4 ) 80124b0: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80124b4: 080124e9 .word 0x080124e9 80124b8: 080125ed .word 0x080125ed 80124bc: 080125ed .word 0x080125ed 80124c0: 080125ed .word 0x080125ed 80124c4: 08012529 .word 0x08012529 80124c8: 080125ed .word 0x080125ed 80124cc: 080125ed .word 0x080125ed 80124d0: 080125ed .word 0x080125ed 80124d4: 0801256b .word 0x0801256b 80124d8: 080125ed .word 0x080125ed 80124dc: 080125ed .word 0x080125ed 80124e0: 080125ed .word 0x080125ed 80124e4: 080125ab .word 0x080125ab { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); 80124e8: 68fb ldr r3, [r7, #12] 80124ea: 681b ldr r3, [r3, #0] 80124ec: 68b9 ldr r1, [r7, #8] 80124ee: 4618 mov r0, r3 80124f0: f000 f9f4 bl 80128dc /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; 80124f4: 68fb ldr r3, [r7, #12] 80124f6: 681b ldr r3, [r3, #0] 80124f8: 699a ldr r2, [r3, #24] 80124fa: 68fb ldr r3, [r7, #12] 80124fc: 681b ldr r3, [r3, #0] 80124fe: f042 0208 orr.w r2, r2, #8 8012502: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; 8012504: 68fb ldr r3, [r7, #12] 8012506: 681b ldr r3, [r3, #0] 8012508: 699a ldr r2, [r3, #24] 801250a: 68fb ldr r3, [r7, #12] 801250c: 681b ldr r3, [r3, #0] 801250e: f022 0204 bic.w r2, r2, #4 8012512: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; 8012514: 68fb ldr r3, [r7, #12] 8012516: 681b ldr r3, [r3, #0] 8012518: 6999 ldr r1, [r3, #24] 801251a: 68bb ldr r3, [r7, #8] 801251c: 691a ldr r2, [r3, #16] 801251e: 68fb ldr r3, [r7, #12] 8012520: 681b ldr r3, [r3, #0] 8012522: 430a orrs r2, r1 8012524: 619a str r2, [r3, #24] break; 8012526: e064 b.n 80125f2 { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); 8012528: 68fb ldr r3, [r7, #12] 801252a: 681b ldr r3, [r3, #0] 801252c: 68b9 ldr r1, [r7, #8] 801252e: 4618 mov r0, r3 8012530: f000 fa3a bl 80129a8 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; 8012534: 68fb ldr r3, [r7, #12] 8012536: 681b ldr r3, [r3, #0] 8012538: 699a ldr r2, [r3, #24] 801253a: 68fb ldr r3, [r7, #12] 801253c: 681b ldr r3, [r3, #0] 801253e: f442 6200 orr.w r2, r2, #2048 @ 0x800 8012542: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; 8012544: 68fb ldr r3, [r7, #12] 8012546: 681b ldr r3, [r3, #0] 8012548: 699a ldr r2, [r3, #24] 801254a: 68fb ldr r3, [r7, #12] 801254c: 681b ldr r3, [r3, #0] 801254e: f422 6280 bic.w r2, r2, #1024 @ 0x400 8012552: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; 8012554: 68fb ldr r3, [r7, #12] 8012556: 681b ldr r3, [r3, #0] 8012558: 6999 ldr r1, [r3, #24] 801255a: 68bb ldr r3, [r7, #8] 801255c: 691b ldr r3, [r3, #16] 801255e: 021a lsls r2, r3, #8 8012560: 68fb ldr r3, [r7, #12] 8012562: 681b ldr r3, [r3, #0] 8012564: 430a orrs r2, r1 8012566: 619a str r2, [r3, #24] break; 8012568: e043 b.n 80125f2 { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); 801256a: 68fb ldr r3, [r7, #12] 801256c: 681b ldr r3, [r3, #0] 801256e: 68b9 ldr r1, [r7, #8] 8012570: 4618 mov r0, r3 8012572: f000 fa83 bl 8012a7c /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; 8012576: 68fb ldr r3, [r7, #12] 8012578: 681b ldr r3, [r3, #0] 801257a: 69da ldr r2, [r3, #28] 801257c: 68fb ldr r3, [r7, #12] 801257e: 681b ldr r3, [r3, #0] 8012580: f042 0208 orr.w r2, r2, #8 8012584: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; 8012586: 68fb ldr r3, [r7, #12] 8012588: 681b ldr r3, [r3, #0] 801258a: 69da ldr r2, [r3, #28] 801258c: 68fb ldr r3, [r7, #12] 801258e: 681b ldr r3, [r3, #0] 8012590: f022 0204 bic.w r2, r2, #4 8012594: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; 8012596: 68fb ldr r3, [r7, #12] 8012598: 681b ldr r3, [r3, #0] 801259a: 69d9 ldr r1, [r3, #28] 801259c: 68bb ldr r3, [r7, #8] 801259e: 691a ldr r2, [r3, #16] 80125a0: 68fb ldr r3, [r7, #12] 80125a2: 681b ldr r3, [r3, #0] 80125a4: 430a orrs r2, r1 80125a6: 61da str r2, [r3, #28] break; 80125a8: e023 b.n 80125f2 { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); 80125aa: 68fb ldr r3, [r7, #12] 80125ac: 681b ldr r3, [r3, #0] 80125ae: 68b9 ldr r1, [r7, #8] 80125b0: 4618 mov r0, r3 80125b2: f000 facd bl 8012b50 /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; 80125b6: 68fb ldr r3, [r7, #12] 80125b8: 681b ldr r3, [r3, #0] 80125ba: 69da ldr r2, [r3, #28] 80125bc: 68fb ldr r3, [r7, #12] 80125be: 681b ldr r3, [r3, #0] 80125c0: f442 6200 orr.w r2, r2, #2048 @ 0x800 80125c4: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; 80125c6: 68fb ldr r3, [r7, #12] 80125c8: 681b ldr r3, [r3, #0] 80125ca: 69da ldr r2, [r3, #28] 80125cc: 68fb ldr r3, [r7, #12] 80125ce: 681b ldr r3, [r3, #0] 80125d0: f422 6280 bic.w r2, r2, #1024 @ 0x400 80125d4: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; 80125d6: 68fb ldr r3, [r7, #12] 80125d8: 681b ldr r3, [r3, #0] 80125da: 69d9 ldr r1, [r3, #28] 80125dc: 68bb ldr r3, [r7, #8] 80125de: 691b ldr r3, [r3, #16] 80125e0: 021a lsls r2, r3, #8 80125e2: 68fb ldr r3, [r7, #12] 80125e4: 681b ldr r3, [r3, #0] 80125e6: 430a orrs r2, r1 80125e8: 61da str r2, [r3, #28] break; 80125ea: e002 b.n 80125f2 } default: status = HAL_ERROR; 80125ec: 2301 movs r3, #1 80125ee: 75fb strb r3, [r7, #23] break; 80125f0: bf00 nop } __HAL_UNLOCK(htim); 80125f2: 68fb ldr r3, [r7, #12] 80125f4: 2200 movs r2, #0 80125f6: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 80125fa: 7dfb ldrb r3, [r7, #23] } 80125fc: 4618 mov r0, r3 80125fe: 3718 adds r7, #24 8012600: 46bd mov sp, r7 8012602: bd80 pop {r7, pc} 08012604 : * @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) { 8012604: b580 push {r7, lr} 8012606: b084 sub sp, #16 8012608: af00 add r7, sp, #0 801260a: 6078 str r0, [r7, #4] 801260c: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; 801260e: 2300 movs r3, #0 8012610: 73fb strb r3, [r7, #15] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); 8012612: 687b ldr r3, [r7, #4] 8012614: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012618: 2b01 cmp r3, #1 801261a: d101 bne.n 8012620 801261c: 2302 movs r3, #2 801261e: e0b4 b.n 801278a 8012620: 687b ldr r3, [r7, #4] 8012622: 2201 movs r2, #1 8012624: f883 203c strb.w r2, [r3, #60] @ 0x3c htim->State = HAL_TIM_STATE_BUSY; 8012628: 687b ldr r3, [r7, #4] 801262a: 2202 movs r2, #2 801262c: 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; 8012630: 687b ldr r3, [r7, #4] 8012632: 681b ldr r3, [r3, #0] 8012634: 689b ldr r3, [r3, #8] 8012636: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); 8012638: 68bb ldr r3, [r7, #8] 801263a: f023 0377 bic.w r3, r3, #119 @ 0x77 801263e: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 8012640: 68bb ldr r3, [r7, #8] 8012642: f423 437f bic.w r3, r3, #65280 @ 0xff00 8012646: 60bb str r3, [r7, #8] htim->Instance->SMCR = tmpsmcr; 8012648: 687b ldr r3, [r7, #4] 801264a: 681b ldr r3, [r3, #0] 801264c: 68ba ldr r2, [r7, #8] 801264e: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) 8012650: 683b ldr r3, [r7, #0] 8012652: 681b ldr r3, [r3, #0] 8012654: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 8012658: d03e beq.n 80126d8 801265a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 801265e: f200 8087 bhi.w 8012770 8012662: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8012666: f000 8086 beq.w 8012776 801266a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 801266e: d87f bhi.n 8012770 8012670: 2b70 cmp r3, #112 @ 0x70 8012672: d01a beq.n 80126aa 8012674: 2b70 cmp r3, #112 @ 0x70 8012676: d87b bhi.n 8012770 8012678: 2b60 cmp r3, #96 @ 0x60 801267a: d050 beq.n 801271e 801267c: 2b60 cmp r3, #96 @ 0x60 801267e: d877 bhi.n 8012770 8012680: 2b50 cmp r3, #80 @ 0x50 8012682: d03c beq.n 80126fe 8012684: 2b50 cmp r3, #80 @ 0x50 8012686: d873 bhi.n 8012770 8012688: 2b40 cmp r3, #64 @ 0x40 801268a: d058 beq.n 801273e 801268c: 2b40 cmp r3, #64 @ 0x40 801268e: d86f bhi.n 8012770 8012690: 2b30 cmp r3, #48 @ 0x30 8012692: d064 beq.n 801275e 8012694: 2b30 cmp r3, #48 @ 0x30 8012696: d86b bhi.n 8012770 8012698: 2b20 cmp r3, #32 801269a: d060 beq.n 801275e 801269c: 2b20 cmp r3, #32 801269e: d867 bhi.n 8012770 80126a0: 2b00 cmp r3, #0 80126a2: d05c beq.n 801275e 80126a4: 2b10 cmp r3, #16 80126a6: d05a beq.n 801275e 80126a8: e062 b.n 8012770 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, 80126aa: 687b ldr r3, [r7, #4] 80126ac: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, 80126ae: 683b ldr r3, [r7, #0] 80126b0: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, 80126b2: 683b ldr r3, [r7, #0] 80126b4: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); 80126b6: 683b ldr r3, [r7, #0] 80126b8: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, 80126ba: f000 fb0e bl 8012cda /* Select the External clock mode1 and the ETRF trigger */ tmpsmcr = htim->Instance->SMCR; 80126be: 687b ldr r3, [r7, #4] 80126c0: 681b ldr r3, [r3, #0] 80126c2: 689b ldr r3, [r3, #8] 80126c4: 60bb str r3, [r7, #8] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); 80126c6: 68bb ldr r3, [r7, #8] 80126c8: f043 0377 orr.w r3, r3, #119 @ 0x77 80126cc: 60bb str r3, [r7, #8] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 80126ce: 687b ldr r3, [r7, #4] 80126d0: 681b ldr r3, [r3, #0] 80126d2: 68ba ldr r2, [r7, #8] 80126d4: 609a str r2, [r3, #8] break; 80126d6: e04f b.n 8012778 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, 80126d8: 687b ldr r3, [r7, #4] 80126da: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, 80126dc: 683b ldr r3, [r7, #0] 80126de: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, 80126e0: 683b ldr r3, [r7, #0] 80126e2: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); 80126e4: 683b ldr r3, [r7, #0] 80126e6: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, 80126e8: f000 faf7 bl 8012cda /* Enable the External clock mode2 */ htim->Instance->SMCR |= TIM_SMCR_ECE; 80126ec: 687b ldr r3, [r7, #4] 80126ee: 681b ldr r3, [r3, #0] 80126f0: 689a ldr r2, [r3, #8] 80126f2: 687b ldr r3, [r7, #4] 80126f4: 681b ldr r3, [r3, #0] 80126f6: f442 4280 orr.w r2, r2, #16384 @ 0x4000 80126fa: 609a str r2, [r3, #8] break; 80126fc: e03c b.n 8012778 /* 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, 80126fe: 687b ldr r3, [r7, #4] 8012700: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 8012702: 683b ldr r3, [r7, #0] 8012704: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 8012706: 683b ldr r3, [r7, #0] 8012708: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, 801270a: 461a mov r2, r3 801270c: f000 fa6e bl 8012bec TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); 8012710: 687b ldr r3, [r7, #4] 8012712: 681b ldr r3, [r3, #0] 8012714: 2150 movs r1, #80 @ 0x50 8012716: 4618 mov r0, r3 8012718: f000 fac5 bl 8012ca6 break; 801271c: e02c b.n 8012778 /* 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, 801271e: 687b ldr r3, [r7, #4] 8012720: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 8012722: 683b ldr r3, [r7, #0] 8012724: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 8012726: 683b ldr r3, [r7, #0] 8012728: 68db ldr r3, [r3, #12] TIM_TI2_ConfigInputStage(htim->Instance, 801272a: 461a mov r2, r3 801272c: f000 fa8c bl 8012c48 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); 8012730: 687b ldr r3, [r7, #4] 8012732: 681b ldr r3, [r3, #0] 8012734: 2160 movs r1, #96 @ 0x60 8012736: 4618 mov r0, r3 8012738: f000 fab5 bl 8012ca6 break; 801273c: e01c b.n 8012778 /* 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, 801273e: 687b ldr r3, [r7, #4] 8012740: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, 8012742: 683b ldr r3, [r7, #0] 8012744: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); 8012746: 683b ldr r3, [r7, #0] 8012748: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, 801274a: 461a mov r2, r3 801274c: f000 fa4e bl 8012bec TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); 8012750: 687b ldr r3, [r7, #4] 8012752: 681b ldr r3, [r3, #0] 8012754: 2140 movs r1, #64 @ 0x40 8012756: 4618 mov r0, r3 8012758: f000 faa5 bl 8012ca6 break; 801275c: e00c b.n 8012778 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); 801275e: 687b ldr r3, [r7, #4] 8012760: 681a ldr r2, [r3, #0] 8012762: 683b ldr r3, [r7, #0] 8012764: 681b ldr r3, [r3, #0] 8012766: 4619 mov r1, r3 8012768: 4610 mov r0, r2 801276a: f000 fa9c bl 8012ca6 break; 801276e: e003 b.n 8012778 } default: status = HAL_ERROR; 8012770: 2301 movs r3, #1 8012772: 73fb strb r3, [r7, #15] break; 8012774: e000 b.n 8012778 break; 8012776: bf00 nop } htim->State = HAL_TIM_STATE_READY; 8012778: 687b ldr r3, [r7, #4] 801277a: 2201 movs r2, #1 801277c: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); 8012780: 687b ldr r3, [r7, #4] 8012782: 2200 movs r2, #0 8012784: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; 8012788: 7bfb ldrb r3, [r7, #15] } 801278a: 4618 mov r0, r3 801278c: 3710 adds r7, #16 801278e: 46bd mov sp, r7 8012790: bd80 pop {r7, pc} 08012792 : * @brief Period elapsed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { 8012792: b480 push {r7} 8012794: b083 sub sp, #12 8012796: af00 add r7, sp, #0 8012798: 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 */ } 801279a: bf00 nop 801279c: 370c adds r7, #12 801279e: 46bd mov sp, r7 80127a0: bc80 pop {r7} 80127a2: 4770 bx lr 080127a4 : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { 80127a4: b480 push {r7} 80127a6: b083 sub sp, #12 80127a8: af00 add r7, sp, #0 80127aa: 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 */ } 80127ac: bf00 nop 80127ae: 370c adds r7, #12 80127b0: 46bd mov sp, r7 80127b2: bc80 pop {r7} 80127b4: 4770 bx lr 080127b6 : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { 80127b6: b480 push {r7} 80127b8: b083 sub sp, #12 80127ba: af00 add r7, sp, #0 80127bc: 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 */ } 80127be: bf00 nop 80127c0: 370c adds r7, #12 80127c2: 46bd mov sp, r7 80127c4: bc80 pop {r7} 80127c6: 4770 bx lr 080127c8 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { 80127c8: b480 push {r7} 80127ca: b083 sub sp, #12 80127cc: af00 add r7, sp, #0 80127ce: 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 */ } 80127d0: bf00 nop 80127d2: 370c adds r7, #12 80127d4: 46bd mov sp, r7 80127d6: bc80 pop {r7} 80127d8: 4770 bx lr 080127da : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { 80127da: b480 push {r7} 80127dc: b083 sub sp, #12 80127de: af00 add r7, sp, #0 80127e0: 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 */ } 80127e2: bf00 nop 80127e4: 370c adds r7, #12 80127e6: 46bd mov sp, r7 80127e8: bc80 pop {r7} 80127ea: 4770 bx lr 080127ec : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { 80127ec: b480 push {r7} 80127ee: b085 sub sp, #20 80127f0: af00 add r7, sp, #0 80127f2: 6078 str r0, [r7, #4] 80127f4: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; 80127f6: 687b ldr r3, [r7, #4] 80127f8: 681b ldr r3, [r3, #0] 80127fa: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) 80127fc: 687b ldr r3, [r7, #4] 80127fe: 4a33 ldr r2, [pc, #204] @ (80128cc ) 8012800: 4293 cmp r3, r2 8012802: d00f beq.n 8012824 8012804: 687b ldr r3, [r7, #4] 8012806: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 801280a: d00b beq.n 8012824 801280c: 687b ldr r3, [r7, #4] 801280e: 4a30 ldr r2, [pc, #192] @ (80128d0 ) 8012810: 4293 cmp r3, r2 8012812: d007 beq.n 8012824 8012814: 687b ldr r3, [r7, #4] 8012816: 4a2f ldr r2, [pc, #188] @ (80128d4 ) 8012818: 4293 cmp r3, r2 801281a: d003 beq.n 8012824 801281c: 687b ldr r3, [r7, #4] 801281e: 4a2e ldr r2, [pc, #184] @ (80128d8 ) 8012820: 4293 cmp r3, r2 8012822: d108 bne.n 8012836 { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); 8012824: 68fb ldr r3, [r7, #12] 8012826: f023 0370 bic.w r3, r3, #112 @ 0x70 801282a: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; 801282c: 683b ldr r3, [r7, #0] 801282e: 685b ldr r3, [r3, #4] 8012830: 68fa ldr r2, [r7, #12] 8012832: 4313 orrs r3, r2 8012834: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) 8012836: 687b ldr r3, [r7, #4] 8012838: 4a24 ldr r2, [pc, #144] @ (80128cc ) 801283a: 4293 cmp r3, r2 801283c: d00f beq.n 801285e 801283e: 687b ldr r3, [r7, #4] 8012840: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012844: d00b beq.n 801285e 8012846: 687b ldr r3, [r7, #4] 8012848: 4a21 ldr r2, [pc, #132] @ (80128d0 ) 801284a: 4293 cmp r3, r2 801284c: d007 beq.n 801285e 801284e: 687b ldr r3, [r7, #4] 8012850: 4a20 ldr r2, [pc, #128] @ (80128d4 ) 8012852: 4293 cmp r3, r2 8012854: d003 beq.n 801285e 8012856: 687b ldr r3, [r7, #4] 8012858: 4a1f ldr r2, [pc, #124] @ (80128d8 ) 801285a: 4293 cmp r3, r2 801285c: d108 bne.n 8012870 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; 801285e: 68fb ldr r3, [r7, #12] 8012860: f423 7340 bic.w r3, r3, #768 @ 0x300 8012864: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; 8012866: 683b ldr r3, [r7, #0] 8012868: 68db ldr r3, [r3, #12] 801286a: 68fa ldr r2, [r7, #12] 801286c: 4313 orrs r3, r2 801286e: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); 8012870: 68fb ldr r3, [r7, #12] 8012872: f023 0280 bic.w r2, r3, #128 @ 0x80 8012876: 683b ldr r3, [r7, #0] 8012878: 695b ldr r3, [r3, #20] 801287a: 4313 orrs r3, r2 801287c: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; 801287e: 687b ldr r3, [r7, #4] 8012880: 68fa ldr r2, [r7, #12] 8012882: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; 8012884: 683b ldr r3, [r7, #0] 8012886: 689a ldr r2, [r3, #8] 8012888: 687b ldr r3, [r7, #4] 801288a: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; 801288c: 683b ldr r3, [r7, #0] 801288e: 681a ldr r2, [r3, #0] 8012890: 687b ldr r3, [r7, #4] 8012892: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) 8012894: 687b ldr r3, [r7, #4] 8012896: 4a0d ldr r2, [pc, #52] @ (80128cc ) 8012898: 4293 cmp r3, r2 801289a: d103 bne.n 80128a4 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; 801289c: 683b ldr r3, [r7, #0] 801289e: 691a ldr r2, [r3, #16] 80128a0: 687b ldr r3, [r7, #4] 80128a2: 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; 80128a4: 687b ldr r3, [r7, #4] 80128a6: 2201 movs r2, #1 80128a8: 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)) 80128aa: 687b ldr r3, [r7, #4] 80128ac: 691b ldr r3, [r3, #16] 80128ae: f003 0301 and.w r3, r3, #1 80128b2: 2b00 cmp r3, #0 80128b4: d005 beq.n 80128c2 { /* Clear the update flag */ CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE); 80128b6: 687b ldr r3, [r7, #4] 80128b8: 691b ldr r3, [r3, #16] 80128ba: f023 0201 bic.w r2, r3, #1 80128be: 687b ldr r3, [r7, #4] 80128c0: 611a str r2, [r3, #16] } } 80128c2: bf00 nop 80128c4: 3714 adds r7, #20 80128c6: 46bd mov sp, r7 80128c8: bc80 pop {r7} 80128ca: 4770 bx lr 80128cc: 40012c00 .word 0x40012c00 80128d0: 40000400 .word 0x40000400 80128d4: 40000800 .word 0x40000800 80128d8: 40000c00 .word 0x40000c00 080128dc : * @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) { 80128dc: b480 push {r7} 80128de: b087 sub sp, #28 80128e0: af00 add r7, sp, #0 80128e2: 6078 str r0, [r7, #4] 80128e4: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 80128e6: 687b ldr r3, [r7, #4] 80128e8: 6a1b ldr r3, [r3, #32] 80128ea: 617b str r3, [r7, #20] /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; 80128ec: 687b ldr r3, [r7, #4] 80128ee: 6a1b ldr r3, [r3, #32] 80128f0: f023 0201 bic.w r2, r3, #1 80128f4: 687b ldr r3, [r7, #4] 80128f6: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 80128f8: 687b ldr r3, [r7, #4] 80128fa: 685b ldr r3, [r3, #4] 80128fc: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 80128fe: 687b ldr r3, [r7, #4] 8012900: 699b ldr r3, [r3, #24] 8012902: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; 8012904: 68fb ldr r3, [r7, #12] 8012906: f023 0370 bic.w r3, r3, #112 @ 0x70 801290a: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; 801290c: 68fb ldr r3, [r7, #12] 801290e: f023 0303 bic.w r3, r3, #3 8012912: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 8012914: 683b ldr r3, [r7, #0] 8012916: 681b ldr r3, [r3, #0] 8012918: 68fa ldr r2, [r7, #12] 801291a: 4313 orrs r3, r2 801291c: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; 801291e: 697b ldr r3, [r7, #20] 8012920: f023 0302 bic.w r3, r3, #2 8012924: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; 8012926: 683b ldr r3, [r7, #0] 8012928: 689b ldr r3, [r3, #8] 801292a: 697a ldr r2, [r7, #20] 801292c: 4313 orrs r3, r2 801292e: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) 8012930: 687b ldr r3, [r7, #4] 8012932: 4a1c ldr r2, [pc, #112] @ (80129a4 ) 8012934: 4293 cmp r3, r2 8012936: d10c bne.n 8012952 { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; 8012938: 697b ldr r3, [r7, #20] 801293a: f023 0308 bic.w r3, r3, #8 801293e: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; 8012940: 683b ldr r3, [r7, #0] 8012942: 68db ldr r3, [r3, #12] 8012944: 697a ldr r2, [r7, #20] 8012946: 4313 orrs r3, r2 8012948: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; 801294a: 697b ldr r3, [r7, #20] 801294c: f023 0304 bic.w r3, r3, #4 8012950: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012952: 687b ldr r3, [r7, #4] 8012954: 4a13 ldr r2, [pc, #76] @ (80129a4 ) 8012956: 4293 cmp r3, r2 8012958: d111 bne.n 801297e /* 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; 801295a: 693b ldr r3, [r7, #16] 801295c: f423 7380 bic.w r3, r3, #256 @ 0x100 8012960: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; 8012962: 693b ldr r3, [r7, #16] 8012964: f423 7300 bic.w r3, r3, #512 @ 0x200 8012968: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; 801296a: 683b ldr r3, [r7, #0] 801296c: 695b ldr r3, [r3, #20] 801296e: 693a ldr r2, [r7, #16] 8012970: 4313 orrs r3, r2 8012972: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; 8012974: 683b ldr r3, [r7, #0] 8012976: 699b ldr r3, [r3, #24] 8012978: 693a ldr r2, [r7, #16] 801297a: 4313 orrs r3, r2 801297c: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 801297e: 687b ldr r3, [r7, #4] 8012980: 693a ldr r2, [r7, #16] 8012982: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 8012984: 687b ldr r3, [r7, #4] 8012986: 68fa ldr r2, [r7, #12] 8012988: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; 801298a: 683b ldr r3, [r7, #0] 801298c: 685a ldr r2, [r3, #4] 801298e: 687b ldr r3, [r7, #4] 8012990: 635a str r2, [r3, #52] @ 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012992: 687b ldr r3, [r7, #4] 8012994: 697a ldr r2, [r7, #20] 8012996: 621a str r2, [r3, #32] } 8012998: bf00 nop 801299a: 371c adds r7, #28 801299c: 46bd mov sp, r7 801299e: bc80 pop {r7} 80129a0: 4770 bx lr 80129a2: bf00 nop 80129a4: 40012c00 .word 0x40012c00 080129a8 : * @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) { 80129a8: b480 push {r7} 80129aa: b087 sub sp, #28 80129ac: af00 add r7, sp, #0 80129ae: 6078 str r0, [r7, #4] 80129b0: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 80129b2: 687b ldr r3, [r7, #4] 80129b4: 6a1b ldr r3, [r3, #32] 80129b6: 617b str r3, [r7, #20] /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; 80129b8: 687b ldr r3, [r7, #4] 80129ba: 6a1b ldr r3, [r3, #32] 80129bc: f023 0210 bic.w r2, r3, #16 80129c0: 687b ldr r3, [r7, #4] 80129c2: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 80129c4: 687b ldr r3, [r7, #4] 80129c6: 685b ldr r3, [r3, #4] 80129c8: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 80129ca: 687b ldr r3, [r7, #4] 80129cc: 699b ldr r3, [r3, #24] 80129ce: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; 80129d0: 68fb ldr r3, [r7, #12] 80129d2: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 80129d6: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; 80129d8: 68fb ldr r3, [r7, #12] 80129da: f423 7340 bic.w r3, r3, #768 @ 0x300 80129de: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 80129e0: 683b ldr r3, [r7, #0] 80129e2: 681b ldr r3, [r3, #0] 80129e4: 021b lsls r3, r3, #8 80129e6: 68fa ldr r2, [r7, #12] 80129e8: 4313 orrs r3, r2 80129ea: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; 80129ec: 697b ldr r3, [r7, #20] 80129ee: f023 0320 bic.w r3, r3, #32 80129f2: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); 80129f4: 683b ldr r3, [r7, #0] 80129f6: 689b ldr r3, [r3, #8] 80129f8: 011b lsls r3, r3, #4 80129fa: 697a ldr r2, [r7, #20] 80129fc: 4313 orrs r3, r2 80129fe: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) 8012a00: 687b ldr r3, [r7, #4] 8012a02: 4a1d ldr r2, [pc, #116] @ (8012a78 ) 8012a04: 4293 cmp r3, r2 8012a06: d10d bne.n 8012a24 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; 8012a08: 697b ldr r3, [r7, #20] 8012a0a: f023 0380 bic.w r3, r3, #128 @ 0x80 8012a0e: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); 8012a10: 683b ldr r3, [r7, #0] 8012a12: 68db ldr r3, [r3, #12] 8012a14: 011b lsls r3, r3, #4 8012a16: 697a ldr r2, [r7, #20] 8012a18: 4313 orrs r3, r2 8012a1a: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; 8012a1c: 697b ldr r3, [r7, #20] 8012a1e: f023 0340 bic.w r3, r3, #64 @ 0x40 8012a22: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012a24: 687b ldr r3, [r7, #4] 8012a26: 4a14 ldr r2, [pc, #80] @ (8012a78 ) 8012a28: 4293 cmp r3, r2 8012a2a: d113 bne.n 8012a54 /* 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; 8012a2c: 693b ldr r3, [r7, #16] 8012a2e: f423 6380 bic.w r3, r3, #1024 @ 0x400 8012a32: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; 8012a34: 693b ldr r3, [r7, #16] 8012a36: f423 6300 bic.w r3, r3, #2048 @ 0x800 8012a3a: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); 8012a3c: 683b ldr r3, [r7, #0] 8012a3e: 695b ldr r3, [r3, #20] 8012a40: 009b lsls r3, r3, #2 8012a42: 693a ldr r2, [r7, #16] 8012a44: 4313 orrs r3, r2 8012a46: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); 8012a48: 683b ldr r3, [r7, #0] 8012a4a: 699b ldr r3, [r3, #24] 8012a4c: 009b lsls r3, r3, #2 8012a4e: 693a ldr r2, [r7, #16] 8012a50: 4313 orrs r3, r2 8012a52: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012a54: 687b ldr r3, [r7, #4] 8012a56: 693a ldr r2, [r7, #16] 8012a58: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 8012a5a: 687b ldr r3, [r7, #4] 8012a5c: 68fa ldr r2, [r7, #12] 8012a5e: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; 8012a60: 683b ldr r3, [r7, #0] 8012a62: 685a ldr r2, [r3, #4] 8012a64: 687b ldr r3, [r7, #4] 8012a66: 639a str r2, [r3, #56] @ 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012a68: 687b ldr r3, [r7, #4] 8012a6a: 697a ldr r2, [r7, #20] 8012a6c: 621a str r2, [r3, #32] } 8012a6e: bf00 nop 8012a70: 371c adds r7, #28 8012a72: 46bd mov sp, r7 8012a74: bc80 pop {r7} 8012a76: 4770 bx lr 8012a78: 40012c00 .word 0x40012c00 08012a7c : * @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) { 8012a7c: b480 push {r7} 8012a7e: b087 sub sp, #28 8012a80: af00 add r7, sp, #0 8012a82: 6078 str r0, [r7, #4] 8012a84: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 8012a86: 687b ldr r3, [r7, #4] 8012a88: 6a1b ldr r3, [r3, #32] 8012a8a: 617b str r3, [r7, #20] /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; 8012a8c: 687b ldr r3, [r7, #4] 8012a8e: 6a1b ldr r3, [r3, #32] 8012a90: f423 7280 bic.w r2, r3, #256 @ 0x100 8012a94: 687b ldr r3, [r7, #4] 8012a96: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8012a98: 687b ldr r3, [r7, #4] 8012a9a: 685b ldr r3, [r3, #4] 8012a9c: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 8012a9e: 687b ldr r3, [r7, #4] 8012aa0: 69db ldr r3, [r3, #28] 8012aa2: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; 8012aa4: 68fb ldr r3, [r7, #12] 8012aa6: f023 0370 bic.w r3, r3, #112 @ 0x70 8012aaa: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; 8012aac: 68fb ldr r3, [r7, #12] 8012aae: f023 0303 bic.w r3, r3, #3 8012ab2: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 8012ab4: 683b ldr r3, [r7, #0] 8012ab6: 681b ldr r3, [r3, #0] 8012ab8: 68fa ldr r2, [r7, #12] 8012aba: 4313 orrs r3, r2 8012abc: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; 8012abe: 697b ldr r3, [r7, #20] 8012ac0: f423 7300 bic.w r3, r3, #512 @ 0x200 8012ac4: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); 8012ac6: 683b ldr r3, [r7, #0] 8012ac8: 689b ldr r3, [r3, #8] 8012aca: 021b lsls r3, r3, #8 8012acc: 697a ldr r2, [r7, #20] 8012ace: 4313 orrs r3, r2 8012ad0: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) 8012ad2: 687b ldr r3, [r7, #4] 8012ad4: 4a1d ldr r2, [pc, #116] @ (8012b4c ) 8012ad6: 4293 cmp r3, r2 8012ad8: d10d bne.n 8012af6 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; 8012ada: 697b ldr r3, [r7, #20] 8012adc: f423 6300 bic.w r3, r3, #2048 @ 0x800 8012ae0: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); 8012ae2: 683b ldr r3, [r7, #0] 8012ae4: 68db ldr r3, [r3, #12] 8012ae6: 021b lsls r3, r3, #8 8012ae8: 697a ldr r2, [r7, #20] 8012aea: 4313 orrs r3, r2 8012aec: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; 8012aee: 697b ldr r3, [r7, #20] 8012af0: f423 6380 bic.w r3, r3, #1024 @ 0x400 8012af4: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012af6: 687b ldr r3, [r7, #4] 8012af8: 4a14 ldr r2, [pc, #80] @ (8012b4c ) 8012afa: 4293 cmp r3, r2 8012afc: d113 bne.n 8012b26 /* 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; 8012afe: 693b ldr r3, [r7, #16] 8012b00: f423 5380 bic.w r3, r3, #4096 @ 0x1000 8012b04: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; 8012b06: 693b ldr r3, [r7, #16] 8012b08: f423 5300 bic.w r3, r3, #8192 @ 0x2000 8012b0c: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); 8012b0e: 683b ldr r3, [r7, #0] 8012b10: 695b ldr r3, [r3, #20] 8012b12: 011b lsls r3, r3, #4 8012b14: 693a ldr r2, [r7, #16] 8012b16: 4313 orrs r3, r2 8012b18: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); 8012b1a: 683b ldr r3, [r7, #0] 8012b1c: 699b ldr r3, [r3, #24] 8012b1e: 011b lsls r3, r3, #4 8012b20: 693a ldr r2, [r7, #16] 8012b22: 4313 orrs r3, r2 8012b24: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012b26: 687b ldr r3, [r7, #4] 8012b28: 693a ldr r2, [r7, #16] 8012b2a: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 8012b2c: 687b ldr r3, [r7, #4] 8012b2e: 68fa ldr r2, [r7, #12] 8012b30: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; 8012b32: 683b ldr r3, [r7, #0] 8012b34: 685a ldr r2, [r3, #4] 8012b36: 687b ldr r3, [r7, #4] 8012b38: 63da str r2, [r3, #60] @ 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012b3a: 687b ldr r3, [r7, #4] 8012b3c: 697a ldr r2, [r7, #20] 8012b3e: 621a str r2, [r3, #32] } 8012b40: bf00 nop 8012b42: 371c adds r7, #28 8012b44: 46bd mov sp, r7 8012b46: bc80 pop {r7} 8012b48: 4770 bx lr 8012b4a: bf00 nop 8012b4c: 40012c00 .word 0x40012c00 08012b50 : * @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) { 8012b50: b480 push {r7} 8012b52: b087 sub sp, #28 8012b54: af00 add r7, sp, #0 8012b56: 6078 str r0, [r7, #4] 8012b58: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 8012b5a: 687b ldr r3, [r7, #4] 8012b5c: 6a1b ldr r3, [r3, #32] 8012b5e: 613b str r3, [r7, #16] /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; 8012b60: 687b ldr r3, [r7, #4] 8012b62: 6a1b ldr r3, [r3, #32] 8012b64: f423 5280 bic.w r2, r3, #4096 @ 0x1000 8012b68: 687b ldr r3, [r7, #4] 8012b6a: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8012b6c: 687b ldr r3, [r7, #4] 8012b6e: 685b ldr r3, [r3, #4] 8012b70: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 8012b72: 687b ldr r3, [r7, #4] 8012b74: 69db ldr r3, [r3, #28] 8012b76: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; 8012b78: 68fb ldr r3, [r7, #12] 8012b7a: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 8012b7e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; 8012b80: 68fb ldr r3, [r7, #12] 8012b82: f423 7340 bic.w r3, r3, #768 @ 0x300 8012b86: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 8012b88: 683b ldr r3, [r7, #0] 8012b8a: 681b ldr r3, [r3, #0] 8012b8c: 021b lsls r3, r3, #8 8012b8e: 68fa ldr r2, [r7, #12] 8012b90: 4313 orrs r3, r2 8012b92: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; 8012b94: 693b ldr r3, [r7, #16] 8012b96: f423 5300 bic.w r3, r3, #8192 @ 0x2000 8012b9a: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); 8012b9c: 683b ldr r3, [r7, #0] 8012b9e: 689b ldr r3, [r3, #8] 8012ba0: 031b lsls r3, r3, #12 8012ba2: 693a ldr r2, [r7, #16] 8012ba4: 4313 orrs r3, r2 8012ba6: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) 8012ba8: 687b ldr r3, [r7, #4] 8012baa: 4a0f ldr r2, [pc, #60] @ (8012be8 ) 8012bac: 4293 cmp r3, r2 8012bae: d109 bne.n 8012bc4 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; 8012bb0: 697b ldr r3, [r7, #20] 8012bb2: f423 4380 bic.w r3, r3, #16384 @ 0x4000 8012bb6: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); 8012bb8: 683b ldr r3, [r7, #0] 8012bba: 695b ldr r3, [r3, #20] 8012bbc: 019b lsls r3, r3, #6 8012bbe: 697a ldr r2, [r7, #20] 8012bc0: 4313 orrs r3, r2 8012bc2: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8012bc4: 687b ldr r3, [r7, #4] 8012bc6: 697a ldr r2, [r7, #20] 8012bc8: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 8012bca: 687b ldr r3, [r7, #4] 8012bcc: 68fa ldr r2, [r7, #12] 8012bce: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; 8012bd0: 683b ldr r3, [r7, #0] 8012bd2: 685a ldr r2, [r3, #4] 8012bd4: 687b ldr r3, [r7, #4] 8012bd6: 641a str r2, [r3, #64] @ 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8012bd8: 687b ldr r3, [r7, #4] 8012bda: 693a ldr r2, [r7, #16] 8012bdc: 621a str r2, [r3, #32] } 8012bde: bf00 nop 8012be0: 371c adds r7, #28 8012be2: 46bd mov sp, r7 8012be4: bc80 pop {r7} 8012be6: 4770 bx lr 8012be8: 40012c00 .word 0x40012c00 08012bec : * @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) { 8012bec: b480 push {r7} 8012bee: b087 sub sp, #28 8012bf0: af00 add r7, sp, #0 8012bf2: 60f8 str r0, [r7, #12] 8012bf4: 60b9 str r1, [r7, #8] 8012bf6: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; 8012bf8: 68fb ldr r3, [r7, #12] 8012bfa: 6a1b ldr r3, [r3, #32] 8012bfc: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; 8012bfe: 68fb ldr r3, [r7, #12] 8012c00: 6a1b ldr r3, [r3, #32] 8012c02: f023 0201 bic.w r2, r3, #1 8012c06: 68fb ldr r3, [r7, #12] 8012c08: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 8012c0a: 68fb ldr r3, [r7, #12] 8012c0c: 699b ldr r3, [r3, #24] 8012c0e: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; 8012c10: 693b ldr r3, [r7, #16] 8012c12: f023 03f0 bic.w r3, r3, #240 @ 0xf0 8012c16: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); 8012c18: 687b ldr r3, [r7, #4] 8012c1a: 011b lsls r3, r3, #4 8012c1c: 693a ldr r2, [r7, #16] 8012c1e: 4313 orrs r3, r2 8012c20: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); 8012c22: 697b ldr r3, [r7, #20] 8012c24: f023 030a bic.w r3, r3, #10 8012c28: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; 8012c2a: 697a ldr r2, [r7, #20] 8012c2c: 68bb ldr r3, [r7, #8] 8012c2e: 4313 orrs r3, r2 8012c30: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; 8012c32: 68fb ldr r3, [r7, #12] 8012c34: 693a ldr r2, [r7, #16] 8012c36: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 8012c38: 68fb ldr r3, [r7, #12] 8012c3a: 697a ldr r2, [r7, #20] 8012c3c: 621a str r2, [r3, #32] } 8012c3e: bf00 nop 8012c40: 371c adds r7, #28 8012c42: 46bd mov sp, r7 8012c44: bc80 pop {r7} 8012c46: 4770 bx lr 08012c48 : * @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) { 8012c48: b480 push {r7} 8012c4a: b087 sub sp, #28 8012c4c: af00 add r7, sp, #0 8012c4e: 60f8 str r0, [r7, #12] 8012c50: 60b9 str r1, [r7, #8] 8012c52: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ tmpccer = TIMx->CCER; 8012c54: 68fb ldr r3, [r7, #12] 8012c56: 6a1b ldr r3, [r3, #32] 8012c58: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC2E; 8012c5a: 68fb ldr r3, [r7, #12] 8012c5c: 6a1b ldr r3, [r3, #32] 8012c5e: f023 0210 bic.w r2, r3, #16 8012c62: 68fb ldr r3, [r7, #12] 8012c64: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 8012c66: 68fb ldr r3, [r7, #12] 8012c68: 699b ldr r3, [r3, #24] 8012c6a: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; 8012c6c: 693b ldr r3, [r7, #16] 8012c6e: f423 4370 bic.w r3, r3, #61440 @ 0xf000 8012c72: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 12U); 8012c74: 687b ldr r3, [r7, #4] 8012c76: 031b lsls r3, r3, #12 8012c78: 693a ldr r2, [r7, #16] 8012c7a: 4313 orrs r3, r2 8012c7c: 613b str r3, [r7, #16] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); 8012c7e: 697b ldr r3, [r7, #20] 8012c80: f023 03a0 bic.w r3, r3, #160 @ 0xa0 8012c84: 617b str r3, [r7, #20] tmpccer |= (TIM_ICPolarity << 4U); 8012c86: 68bb ldr r3, [r7, #8] 8012c88: 011b lsls r3, r3, #4 8012c8a: 697a ldr r2, [r7, #20] 8012c8c: 4313 orrs r3, r2 8012c8e: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; 8012c90: 68fb ldr r3, [r7, #12] 8012c92: 693a ldr r2, [r7, #16] 8012c94: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 8012c96: 68fb ldr r3, [r7, #12] 8012c98: 697a ldr r2, [r7, #20] 8012c9a: 621a str r2, [r3, #32] } 8012c9c: bf00 nop 8012c9e: 371c adds r7, #28 8012ca0: 46bd mov sp, r7 8012ca2: bc80 pop {r7} 8012ca4: 4770 bx lr 08012ca6 : * @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) { 8012ca6: b480 push {r7} 8012ca8: b085 sub sp, #20 8012caa: af00 add r7, sp, #0 8012cac: 6078 str r0, [r7, #4] 8012cae: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; 8012cb0: 687b ldr r3, [r7, #4] 8012cb2: 689b ldr r3, [r3, #8] 8012cb4: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; 8012cb6: 68fb ldr r3, [r7, #12] 8012cb8: f023 0370 bic.w r3, r3, #112 @ 0x70 8012cbc: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); 8012cbe: 683a ldr r2, [r7, #0] 8012cc0: 68fb ldr r3, [r7, #12] 8012cc2: 4313 orrs r3, r2 8012cc4: f043 0307 orr.w r3, r3, #7 8012cc8: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8012cca: 687b ldr r3, [r7, #4] 8012ccc: 68fa ldr r2, [r7, #12] 8012cce: 609a str r2, [r3, #8] } 8012cd0: bf00 nop 8012cd2: 3714 adds r7, #20 8012cd4: 46bd mov sp, r7 8012cd6: bc80 pop {r7} 8012cd8: 4770 bx lr 08012cda : * 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) { 8012cda: b480 push {r7} 8012cdc: b087 sub sp, #28 8012cde: af00 add r7, sp, #0 8012ce0: 60f8 str r0, [r7, #12] 8012ce2: 60b9 str r1, [r7, #8] 8012ce4: 607a str r2, [r7, #4] 8012ce6: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; 8012ce8: 68fb ldr r3, [r7, #12] 8012cea: 689b ldr r3, [r3, #8] 8012cec: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 8012cee: 697b ldr r3, [r7, #20] 8012cf0: f423 437f bic.w r3, r3, #65280 @ 0xff00 8012cf4: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); 8012cf6: 683b ldr r3, [r7, #0] 8012cf8: 021a lsls r2, r3, #8 8012cfa: 687b ldr r3, [r7, #4] 8012cfc: 431a orrs r2, r3 8012cfe: 68bb ldr r3, [r7, #8] 8012d00: 4313 orrs r3, r2 8012d02: 697a ldr r2, [r7, #20] 8012d04: 4313 orrs r3, r2 8012d06: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8012d08: 68fb ldr r3, [r7, #12] 8012d0a: 697a ldr r2, [r7, #20] 8012d0c: 609a str r2, [r3, #8] } 8012d0e: bf00 nop 8012d10: 371c adds r7, #28 8012d12: 46bd mov sp, r7 8012d14: bc80 pop {r7} 8012d16: 4770 bx lr 08012d18 : * @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) { 8012d18: b480 push {r7} 8012d1a: b087 sub sp, #28 8012d1c: af00 add r7, sp, #0 8012d1e: 60f8 str r0, [r7, #12] 8012d20: 60b9 str r1, [r7, #8] 8012d22: 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 */ 8012d24: 68bb ldr r3, [r7, #8] 8012d26: f003 031f and.w r3, r3, #31 8012d2a: 2201 movs r2, #1 8012d2c: fa02 f303 lsl.w r3, r2, r3 8012d30: 617b str r3, [r7, #20] /* Reset the CCxE Bit */ TIMx->CCER &= ~tmp; 8012d32: 68fb ldr r3, [r7, #12] 8012d34: 6a1a ldr r2, [r3, #32] 8012d36: 697b ldr r3, [r7, #20] 8012d38: 43db mvns r3, r3 8012d3a: 401a ands r2, r3 8012d3c: 68fb ldr r3, [r7, #12] 8012d3e: 621a str r2, [r3, #32] /* Set or reset the CCxE Bit */ TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ 8012d40: 68fb ldr r3, [r7, #12] 8012d42: 6a1a ldr r2, [r3, #32] 8012d44: 68bb ldr r3, [r7, #8] 8012d46: f003 031f and.w r3, r3, #31 8012d4a: 6879 ldr r1, [r7, #4] 8012d4c: fa01 f303 lsl.w r3, r1, r3 8012d50: 431a orrs r2, r3 8012d52: 68fb ldr r3, [r7, #12] 8012d54: 621a str r2, [r3, #32] } 8012d56: bf00 nop 8012d58: 371c adds r7, #28 8012d5a: 46bd mov sp, r7 8012d5c: bc80 pop {r7} 8012d5e: 4770 bx lr 08012d60 : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { 8012d60: b480 push {r7} 8012d62: b085 sub sp, #20 8012d64: af00 add r7, sp, #0 8012d66: 6078 str r0, [r7, #4] 8012d68: 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); 8012d6a: 687b ldr r3, [r7, #4] 8012d6c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c 8012d70: 2b01 cmp r3, #1 8012d72: d101 bne.n 8012d78 8012d74: 2302 movs r3, #2 8012d76: e04b b.n 8012e10 8012d78: 687b ldr r3, [r7, #4] 8012d7a: 2201 movs r2, #1 8012d7c: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; 8012d80: 687b ldr r3, [r7, #4] 8012d82: 2202 movs r2, #2 8012d84: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; 8012d88: 687b ldr r3, [r7, #4] 8012d8a: 681b ldr r3, [r3, #0] 8012d8c: 685b ldr r3, [r3, #4] 8012d8e: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; 8012d90: 687b ldr r3, [r7, #4] 8012d92: 681b ldr r3, [r3, #0] 8012d94: 689b ldr r3, [r3, #8] 8012d96: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; 8012d98: 68fb ldr r3, [r7, #12] 8012d9a: f023 0370 bic.w r3, r3, #112 @ 0x70 8012d9e: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; 8012da0: 683b ldr r3, [r7, #0] 8012da2: 681b ldr r3, [r3, #0] 8012da4: 68fa ldr r2, [r7, #12] 8012da6: 4313 orrs r3, r2 8012da8: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; 8012daa: 687b ldr r3, [r7, #4] 8012dac: 681b ldr r3, [r3, #0] 8012dae: 68fa ldr r2, [r7, #12] 8012db0: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) 8012db2: 687b ldr r3, [r7, #4] 8012db4: 681b ldr r3, [r3, #0] 8012db6: 4a19 ldr r2, [pc, #100] @ (8012e1c ) 8012db8: 4293 cmp r3, r2 8012dba: d013 beq.n 8012de4 8012dbc: 687b ldr r3, [r7, #4] 8012dbe: 681b ldr r3, [r3, #0] 8012dc0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8012dc4: d00e beq.n 8012de4 8012dc6: 687b ldr r3, [r7, #4] 8012dc8: 681b ldr r3, [r3, #0] 8012dca: 4a15 ldr r2, [pc, #84] @ (8012e20 ) 8012dcc: 4293 cmp r3, r2 8012dce: d009 beq.n 8012de4 8012dd0: 687b ldr r3, [r7, #4] 8012dd2: 681b ldr r3, [r3, #0] 8012dd4: 4a13 ldr r2, [pc, #76] @ (8012e24 ) 8012dd6: 4293 cmp r3, r2 8012dd8: d004 beq.n 8012de4 8012dda: 687b ldr r3, [r7, #4] 8012ddc: 681b ldr r3, [r3, #0] 8012dde: 4a12 ldr r2, [pc, #72] @ (8012e28 ) 8012de0: 4293 cmp r3, r2 8012de2: d10c bne.n 8012dfe { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; 8012de4: 68bb ldr r3, [r7, #8] 8012de6: f023 0380 bic.w r3, r3, #128 @ 0x80 8012dea: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; 8012dec: 683b ldr r3, [r7, #0] 8012dee: 685b ldr r3, [r3, #4] 8012df0: 68ba ldr r2, [r7, #8] 8012df2: 4313 orrs r3, r2 8012df4: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 8012df6: 687b ldr r3, [r7, #4] 8012df8: 681b ldr r3, [r3, #0] 8012dfa: 68ba ldr r2, [r7, #8] 8012dfc: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; 8012dfe: 687b ldr r3, [r7, #4] 8012e00: 2201 movs r2, #1 8012e02: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); 8012e06: 687b ldr r3, [r7, #4] 8012e08: 2200 movs r2, #0 8012e0a: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; 8012e0e: 2300 movs r3, #0 } 8012e10: 4618 mov r0, r3 8012e12: 3714 adds r7, #20 8012e14: 46bd mov sp, r7 8012e16: bc80 pop {r7} 8012e18: 4770 bx lr 8012e1a: bf00 nop 8012e1c: 40012c00 .word 0x40012c00 8012e20: 40000400 .word 0x40000400 8012e24: 40000800 .word 0x40000800 8012e28: 40000c00 .word 0x40000c00 08012e2c : * @brief Commutation callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { 8012e2c: b480 push {r7} 8012e2e: b083 sub sp, #12 8012e30: af00 add r7, sp, #0 8012e32: 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 */ } 8012e34: bf00 nop 8012e36: 370c adds r7, #12 8012e38: 46bd mov sp, r7 8012e3a: bc80 pop {r7} 8012e3c: 4770 bx lr 08012e3e : * @brief Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { 8012e3e: b480 push {r7} 8012e40: b083 sub sp, #12 8012e42: af00 add r7, sp, #0 8012e44: 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 */ } 8012e46: bf00 nop 8012e48: 370c adds r7, #12 8012e4a: 46bd mov sp, r7 8012e4c: bc80 pop {r7} 8012e4e: 4770 bx lr 08012e50 : * @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) { 8012e50: b580 push {r7, lr} 8012e52: b082 sub sp, #8 8012e54: af00 add r7, sp, #0 8012e56: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) 8012e58: 687b ldr r3, [r7, #4] 8012e5a: 2b00 cmp r3, #0 8012e5c: d101 bne.n 8012e62 { return HAL_ERROR; 8012e5e: 2301 movs r3, #1 8012e60: e042 b.n 8012ee8 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) 8012e62: 687b ldr r3, [r7, #4] 8012e64: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8012e68: b2db uxtb r3, r3 8012e6a: 2b00 cmp r3, #0 8012e6c: d106 bne.n 8012e7c { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; 8012e6e: 687b ldr r3, [r7, #4] 8012e70: 2200 movs r2, #0 8012e72: 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); 8012e76: 6878 ldr r0, [r7, #4] 8012e78: f7fa ffc2 bl 800de00 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; 8012e7c: 687b ldr r3, [r7, #4] 8012e7e: 2224 movs r2, #36 @ 0x24 8012e80: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); 8012e84: 687b ldr r3, [r7, #4] 8012e86: 681b ldr r3, [r3, #0] 8012e88: 68da ldr r2, [r3, #12] 8012e8a: 687b ldr r3, [r7, #4] 8012e8c: 681b ldr r3, [r3, #0] 8012e8e: f422 5200 bic.w r2, r2, #8192 @ 0x2000 8012e92: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); 8012e94: 6878 ldr r0, [r7, #4] 8012e96: f001 f903 bl 80140a0 /* 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)); 8012e9a: 687b ldr r3, [r7, #4] 8012e9c: 681b ldr r3, [r3, #0] 8012e9e: 691a ldr r2, [r3, #16] 8012ea0: 687b ldr r3, [r7, #4] 8012ea2: 681b ldr r3, [r3, #0] 8012ea4: f422 4290 bic.w r2, r2, #18432 @ 0x4800 8012ea8: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); 8012eaa: 687b ldr r3, [r7, #4] 8012eac: 681b ldr r3, [r3, #0] 8012eae: 695a ldr r2, [r3, #20] 8012eb0: 687b ldr r3, [r7, #4] 8012eb2: 681b ldr r3, [r3, #0] 8012eb4: f022 022a bic.w r2, r2, #42 @ 0x2a 8012eb8: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); 8012eba: 687b ldr r3, [r7, #4] 8012ebc: 681b ldr r3, [r3, #0] 8012ebe: 68da ldr r2, [r3, #12] 8012ec0: 687b ldr r3, [r7, #4] 8012ec2: 681b ldr r3, [r3, #0] 8012ec4: f442 5200 orr.w r2, r2, #8192 @ 0x2000 8012ec8: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8012eca: 687b ldr r3, [r7, #4] 8012ecc: 2200 movs r2, #0 8012ece: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; 8012ed0: 687b ldr r3, [r7, #4] 8012ed2: 2220 movs r2, #32 8012ed4: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; 8012ed8: 687b ldr r3, [r7, #4] 8012eda: 2220 movs r2, #32 8012edc: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; 8012ee0: 687b ldr r3, [r7, #4] 8012ee2: 2200 movs r2, #0 8012ee4: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; 8012ee6: 2300 movs r3, #0 } 8012ee8: 4618 mov r0, r3 8012eea: 3708 adds r7, #8 8012eec: 46bd mov sp, r7 8012eee: bd80 pop {r7, pc} 08012ef0 : * @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_DMA(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size) { 8012ef0: b580 push {r7, lr} 8012ef2: b08c sub sp, #48 @ 0x30 8012ef4: af00 add r7, sp, #0 8012ef6: 60f8 str r0, [r7, #12] 8012ef8: 60b9 str r1, [r7, #8] 8012efa: 4613 mov r3, r2 8012efc: 80fb strh r3, [r7, #6] const uint32_t *tmp; /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) 8012efe: 68fb ldr r3, [r7, #12] 8012f00: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8012f04: b2db uxtb r3, r3 8012f06: 2b20 cmp r3, #32 8012f08: d156 bne.n 8012fb8 { if ((pData == NULL) || (Size == 0U)) 8012f0a: 68bb ldr r3, [r7, #8] 8012f0c: 2b00 cmp r3, #0 8012f0e: d002 beq.n 8012f16 8012f10: 88fb ldrh r3, [r7, #6] 8012f12: 2b00 cmp r3, #0 8012f14: d101 bne.n 8012f1a { return HAL_ERROR; 8012f16: 2301 movs r3, #1 8012f18: e04f b.n 8012fba } huart->pTxBuffPtr = pData; 8012f1a: 68ba ldr r2, [r7, #8] 8012f1c: 68fb ldr r3, [r7, #12] 8012f1e: 621a str r2, [r3, #32] huart->TxXferSize = Size; 8012f20: 68fb ldr r3, [r7, #12] 8012f22: 88fa ldrh r2, [r7, #6] 8012f24: 849a strh r2, [r3, #36] @ 0x24 huart->TxXferCount = Size; 8012f26: 68fb ldr r3, [r7, #12] 8012f28: 88fa ldrh r2, [r7, #6] 8012f2a: 84da strh r2, [r3, #38] @ 0x26 huart->ErrorCode = HAL_UART_ERROR_NONE; 8012f2c: 68fb ldr r3, [r7, #12] 8012f2e: 2200 movs r2, #0 8012f30: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_BUSY_TX; 8012f32: 68fb ldr r3, [r7, #12] 8012f34: 2221 movs r2, #33 @ 0x21 8012f36: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Set the UART DMA transfer complete callback */ huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt; 8012f3a: 68fb ldr r3, [r7, #12] 8012f3c: 6b9b ldr r3, [r3, #56] @ 0x38 8012f3e: 4a21 ldr r2, [pc, #132] @ (8012fc4 ) 8012f40: 629a str r2, [r3, #40] @ 0x28 /* Set the UART DMA Half transfer complete callback */ huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt; 8012f42: 68fb ldr r3, [r7, #12] 8012f44: 6b9b ldr r3, [r3, #56] @ 0x38 8012f46: 4a20 ldr r2, [pc, #128] @ (8012fc8 ) 8012f48: 62da str r2, [r3, #44] @ 0x2c /* Set the DMA error callback */ huart->hdmatx->XferErrorCallback = UART_DMAError; 8012f4a: 68fb ldr r3, [r7, #12] 8012f4c: 6b9b ldr r3, [r3, #56] @ 0x38 8012f4e: 4a1f ldr r2, [pc, #124] @ (8012fcc ) 8012f50: 631a str r2, [r3, #48] @ 0x30 /* Set the DMA abort callback */ huart->hdmatx->XferAbortCallback = NULL; 8012f52: 68fb ldr r3, [r7, #12] 8012f54: 6b9b ldr r3, [r3, #56] @ 0x38 8012f56: 2200 movs r2, #0 8012f58: 635a str r2, [r3, #52] @ 0x34 /* Enable the UART transmit DMA channel */ tmp = (const uint32_t *)&pData; 8012f5a: f107 0308 add.w r3, r7, #8 8012f5e: 62fb str r3, [r7, #44] @ 0x2c HAL_DMA_Start_IT(huart->hdmatx, *(const uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size); 8012f60: 68fb ldr r3, [r7, #12] 8012f62: 6b98 ldr r0, [r3, #56] @ 0x38 8012f64: 6afb ldr r3, [r7, #44] @ 0x2c 8012f66: 6819 ldr r1, [r3, #0] 8012f68: 68fb ldr r3, [r7, #12] 8012f6a: 681b ldr r3, [r3, #0] 8012f6c: 3304 adds r3, #4 8012f6e: 461a mov r2, r3 8012f70: 88fb ldrh r3, [r7, #6] 8012f72: f7fc ffa5 bl 800fec0 /* Clear the TC flag in the SR register by writing 0 to it */ __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC); 8012f76: 68fb ldr r3, [r7, #12] 8012f78: 681b ldr r3, [r3, #0] 8012f7a: f06f 0240 mvn.w r2, #64 @ 0x40 8012f7e: 601a str r2, [r3, #0] /* Enable the DMA transfer for transmit request by setting the DMAT bit in the UART CR3 register */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAT); 8012f80: 68fb ldr r3, [r7, #12] 8012f82: 681b ldr r3, [r3, #0] 8012f84: 3314 adds r3, #20 8012f86: 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) ); 8012f88: 69bb ldr r3, [r7, #24] 8012f8a: e853 3f00 ldrex r3, [r3] 8012f8e: 617b str r3, [r7, #20] return(result); 8012f90: 697b ldr r3, [r7, #20] 8012f92: f043 0380 orr.w r3, r3, #128 @ 0x80 8012f96: 62bb str r3, [r7, #40] @ 0x28 8012f98: 68fb ldr r3, [r7, #12] 8012f9a: 681b ldr r3, [r3, #0] 8012f9c: 3314 adds r3, #20 8012f9e: 6aba ldr r2, [r7, #40] @ 0x28 8012fa0: 627a str r2, [r7, #36] @ 0x24 8012fa2: 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) ); 8012fa4: 6a39 ldr r1, [r7, #32] 8012fa6: 6a7a ldr r2, [r7, #36] @ 0x24 8012fa8: e841 2300 strex r3, r2, [r1] 8012fac: 61fb str r3, [r7, #28] return(result); 8012fae: 69fb ldr r3, [r7, #28] 8012fb0: 2b00 cmp r3, #0 8012fb2: d1e5 bne.n 8012f80 return HAL_OK; 8012fb4: 2300 movs r3, #0 8012fb6: e000 b.n 8012fba } else { return HAL_BUSY; 8012fb8: 2302 movs r3, #2 } } 8012fba: 4618 mov r0, r3 8012fbc: 3730 adds r7, #48 @ 0x30 8012fbe: 46bd mov sp, r7 8012fc0: bd80 pop {r7, pc} 8012fc2: bf00 nop 8012fc4: 080138c5 .word 0x080138c5 8012fc8: 0801395f .word 0x0801395f 8012fcc: 08013ae3 .word 0x08013ae3 08012fd0 : * @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) { 8012fd0: b580 push {r7, lr} 8012fd2: b08c sub sp, #48 @ 0x30 8012fd4: af00 add r7, sp, #0 8012fd6: 60f8 str r0, [r7, #12] 8012fd8: 60b9 str r1, [r7, #8] 8012fda: 4613 mov r3, r2 8012fdc: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) 8012fde: 68fb ldr r3, [r7, #12] 8012fe0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 8012fe4: b2db uxtb r3, r3 8012fe6: 2b20 cmp r3, #32 8012fe8: d14a bne.n 8013080 { if ((pData == NULL) || (Size == 0U)) 8012fea: 68bb ldr r3, [r7, #8] 8012fec: 2b00 cmp r3, #0 8012fee: d002 beq.n 8012ff6 8012ff0: 88fb ldrh r3, [r7, #6] 8012ff2: 2b00 cmp r3, #0 8012ff4: d101 bne.n 8012ffa { return HAL_ERROR; 8012ff6: 2301 movs r3, #1 8012ff8: e043 b.n 8013082 } /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; 8012ffa: 68fb ldr r3, [r7, #12] 8012ffc: 2201 movs r2, #1 8012ffe: 631a str r2, [r3, #48] @ 0x30 huart->RxEventType = HAL_UART_RXEVENT_TC; 8013000: 68fb ldr r3, [r7, #12] 8013002: 2200 movs r2, #0 8013004: 635a str r2, [r3, #52] @ 0x34 status = UART_Start_Receive_IT(huart, pData, Size); 8013006: 88fb ldrh r3, [r7, #6] 8013008: 461a mov r2, r3 801300a: 68b9 ldr r1, [r7, #8] 801300c: 68f8 ldr r0, [r7, #12] 801300e: f000 fdb2 bl 8013b76 8013012: 4603 mov r3, r0 8013014: f887 302f strb.w r3, [r7, #47] @ 0x2f /* Check Rx process has been successfully started */ if (status == HAL_OK) 8013018: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 801301c: 2b00 cmp r3, #0 801301e: d12c bne.n 801307a { if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013020: 68fb ldr r3, [r7, #12] 8013022: 6b1b ldr r3, [r3, #48] @ 0x30 8013024: 2b01 cmp r3, #1 8013026: d125 bne.n 8013074 { __HAL_UART_CLEAR_IDLEFLAG(huart); 8013028: 2300 movs r3, #0 801302a: 613b str r3, [r7, #16] 801302c: 68fb ldr r3, [r7, #12] 801302e: 681b ldr r3, [r3, #0] 8013030: 681b ldr r3, [r3, #0] 8013032: 613b str r3, [r7, #16] 8013034: 68fb ldr r3, [r7, #12] 8013036: 681b ldr r3, [r3, #0] 8013038: 685b ldr r3, [r3, #4] 801303a: 613b str r3, [r7, #16] 801303c: 693b ldr r3, [r7, #16] ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 801303e: 68fb ldr r3, [r7, #12] 8013040: 681b ldr r3, [r3, #0] 8013042: 330c adds r3, #12 8013044: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013046: 69bb ldr r3, [r7, #24] 8013048: e853 3f00 ldrex r3, [r3] 801304c: 617b str r3, [r7, #20] return(result); 801304e: 697b ldr r3, [r7, #20] 8013050: f043 0310 orr.w r3, r3, #16 8013054: 62bb str r3, [r7, #40] @ 0x28 8013056: 68fb ldr r3, [r7, #12] 8013058: 681b ldr r3, [r3, #0] 801305a: 330c adds r3, #12 801305c: 6aba ldr r2, [r7, #40] @ 0x28 801305e: 627a str r2, [r7, #36] @ 0x24 8013060: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013062: 6a39 ldr r1, [r7, #32] 8013064: 6a7a ldr r2, [r7, #36] @ 0x24 8013066: e841 2300 strex r3, r2, [r1] 801306a: 61fb str r3, [r7, #28] return(result); 801306c: 69fb ldr r3, [r7, #28] 801306e: 2b00 cmp r3, #0 8013070: d1e5 bne.n 801303e 8013072: e002 b.n 801307a { /* 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; 8013074: 2301 movs r3, #1 8013076: f887 302f strb.w r3, [r7, #47] @ 0x2f } } return status; 801307a: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 801307e: e000 b.n 8013082 } else { return HAL_BUSY; 8013080: 2302 movs r3, #2 } } 8013082: 4618 mov r0, r3 8013084: 3730 adds r7, #48 @ 0x30 8013086: 46bd mov sp, r7 8013088: bd80 pop {r7, pc} 0801308a : * @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_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { 801308a: b580 push {r7, lr} 801308c: b08c sub sp, #48 @ 0x30 801308e: af00 add r7, sp, #0 8013090: 60f8 str r0, [r7, #12] 8013092: 60b9 str r1, [r7, #8] 8013094: 4613 mov r3, r2 8013096: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) 8013098: 68fb ldr r3, [r7, #12] 801309a: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 801309e: b2db uxtb r3, r3 80130a0: 2b20 cmp r3, #32 80130a2: d146 bne.n 8013132 { if ((pData == NULL) || (Size == 0U)) 80130a4: 68bb ldr r3, [r7, #8] 80130a6: 2b00 cmp r3, #0 80130a8: d002 beq.n 80130b0 80130aa: 88fb ldrh r3, [r7, #6] 80130ac: 2b00 cmp r3, #0 80130ae: d101 bne.n 80130b4 { return HAL_ERROR; 80130b0: 2301 movs r3, #1 80130b2: e03f b.n 8013134 } /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; 80130b4: 68fb ldr r3, [r7, #12] 80130b6: 2201 movs r2, #1 80130b8: 631a str r2, [r3, #48] @ 0x30 huart->RxEventType = HAL_UART_RXEVENT_TC; 80130ba: 68fb ldr r3, [r7, #12] 80130bc: 2200 movs r2, #0 80130be: 635a str r2, [r3, #52] @ 0x34 status = UART_Start_Receive_DMA(huart, pData, Size); 80130c0: 88fb ldrh r3, [r7, #6] 80130c2: 461a mov r2, r3 80130c4: 68b9 ldr r1, [r7, #8] 80130c6: 68f8 ldr r0, [r7, #12] 80130c8: f000 fd8e bl 8013be8 80130cc: 4603 mov r3, r0 80130ce: f887 302f strb.w r3, [r7, #47] @ 0x2f /* Check Rx process has been successfully started */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 80130d2: 68fb ldr r3, [r7, #12] 80130d4: 6b1b ldr r3, [r3, #48] @ 0x30 80130d6: 2b01 cmp r3, #1 80130d8: d125 bne.n 8013126 { __HAL_UART_CLEAR_IDLEFLAG(huart); 80130da: 2300 movs r3, #0 80130dc: 613b str r3, [r7, #16] 80130de: 68fb ldr r3, [r7, #12] 80130e0: 681b ldr r3, [r3, #0] 80130e2: 681b ldr r3, [r3, #0] 80130e4: 613b str r3, [r7, #16] 80130e6: 68fb ldr r3, [r7, #12] 80130e8: 681b ldr r3, [r3, #0] 80130ea: 685b ldr r3, [r3, #4] 80130ec: 613b str r3, [r7, #16] 80130ee: 693b ldr r3, [r7, #16] ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80130f0: 68fb ldr r3, [r7, #12] 80130f2: 681b ldr r3, [r3, #0] 80130f4: 330c adds r3, #12 80130f6: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80130f8: 69bb ldr r3, [r7, #24] 80130fa: e853 3f00 ldrex r3, [r3] 80130fe: 617b str r3, [r7, #20] return(result); 8013100: 697b ldr r3, [r7, #20] 8013102: f043 0310 orr.w r3, r3, #16 8013106: 62bb str r3, [r7, #40] @ 0x28 8013108: 68fb ldr r3, [r7, #12] 801310a: 681b ldr r3, [r3, #0] 801310c: 330c adds r3, #12 801310e: 6aba ldr r2, [r7, #40] @ 0x28 8013110: 627a str r2, [r7, #36] @ 0x24 8013112: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013114: 6a39 ldr r1, [r7, #32] 8013116: 6a7a ldr r2, [r7, #36] @ 0x24 8013118: e841 2300 strex r3, r2, [r1] 801311c: 61fb str r3, [r7, #28] return(result); 801311e: 69fb ldr r3, [r7, #28] 8013120: 2b00 cmp r3, #0 8013122: d1e5 bne.n 80130f0 8013124: e002 b.n 801312c { /* 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; 8013126: 2301 movs r3, #1 8013128: f887 302f strb.w r3, [r7, #47] @ 0x2f } return status; 801312c: f897 302f ldrb.w r3, [r7, #47] @ 0x2f 8013130: e000 b.n 8013134 } else { return HAL_BUSY; 8013132: 2302 movs r3, #2 } } 8013134: 4618 mov r0, r3 8013136: 3730 adds r7, #48 @ 0x30 8013138: 46bd mov sp, r7 801313a: bd80 pop {r7, pc} 0801313c : * - Set handle State to READY * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_AbortTransmit(UART_HandleTypeDef *huart) { 801313c: b580 push {r7, lr} 801313e: b08e sub sp, #56 @ 0x38 8013140: af00 add r7, sp, #0 8013142: 6078 str r0, [r7, #4] /* Disable TXEIE and TCIE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); 8013144: 687b ldr r3, [r7, #4] 8013146: 681b ldr r3, [r3, #0] 8013148: 330c adds r3, #12 801314a: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801314c: 6a3b ldr r3, [r7, #32] 801314e: e853 3f00 ldrex r3, [r3] 8013152: 61fb str r3, [r7, #28] return(result); 8013154: 69fb ldr r3, [r7, #28] 8013156: f023 03c0 bic.w r3, r3, #192 @ 0xc0 801315a: 637b str r3, [r7, #52] @ 0x34 801315c: 687b ldr r3, [r7, #4] 801315e: 681b ldr r3, [r3, #0] 8013160: 330c adds r3, #12 8013162: 6b7a ldr r2, [r7, #52] @ 0x34 8013164: 62fa str r2, [r7, #44] @ 0x2c 8013166: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013168: 6ab9 ldr r1, [r7, #40] @ 0x28 801316a: 6afa ldr r2, [r7, #44] @ 0x2c 801316c: e841 2300 strex r3, r2, [r1] 8013170: 627b str r3, [r7, #36] @ 0x24 return(result); 8013172: 6a7b ldr r3, [r7, #36] @ 0x24 8013174: 2b00 cmp r3, #0 8013176: d1e5 bne.n 8013144 /* Disable the UART DMA Tx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) 8013178: 687b ldr r3, [r7, #4] 801317a: 681b ldr r3, [r3, #0] 801317c: 695b ldr r3, [r3, #20] 801317e: f003 0380 and.w r3, r3, #128 @ 0x80 8013182: 2b00 cmp r3, #0 8013184: d036 beq.n 80131f4 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); 8013186: 687b ldr r3, [r7, #4] 8013188: 681b ldr r3, [r3, #0] 801318a: 3314 adds r3, #20 801318c: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801318e: 68fb ldr r3, [r7, #12] 8013190: e853 3f00 ldrex r3, [r3] 8013194: 60bb str r3, [r7, #8] return(result); 8013196: 68bb ldr r3, [r7, #8] 8013198: f023 0380 bic.w r3, r3, #128 @ 0x80 801319c: 633b str r3, [r7, #48] @ 0x30 801319e: 687b ldr r3, [r7, #4] 80131a0: 681b ldr r3, [r3, #0] 80131a2: 3314 adds r3, #20 80131a4: 6b3a ldr r2, [r7, #48] @ 0x30 80131a6: 61ba str r2, [r7, #24] 80131a8: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80131aa: 6979 ldr r1, [r7, #20] 80131ac: 69ba ldr r2, [r7, #24] 80131ae: e841 2300 strex r3, r2, [r1] 80131b2: 613b str r3, [r7, #16] return(result); 80131b4: 693b ldr r3, [r7, #16] 80131b6: 2b00 cmp r3, #0 80131b8: d1e5 bne.n 8013186 /* Abort the UART DMA Tx channel : use blocking DMA Abort API (no callback) */ if (huart->hdmatx != NULL) 80131ba: 687b ldr r3, [r7, #4] 80131bc: 6b9b ldr r3, [r3, #56] @ 0x38 80131be: 2b00 cmp r3, #0 80131c0: d018 beq.n 80131f4 { /* Set the UART DMA Abort callback to Null. No call back execution at end of DMA abort procedure */ huart->hdmatx->XferAbortCallback = NULL; 80131c2: 687b ldr r3, [r7, #4] 80131c4: 6b9b ldr r3, [r3, #56] @ 0x38 80131c6: 2200 movs r2, #0 80131c8: 635a str r2, [r3, #52] @ 0x34 if (HAL_DMA_Abort(huart->hdmatx) != HAL_OK) 80131ca: 687b ldr r3, [r7, #4] 80131cc: 6b9b ldr r3, [r3, #56] @ 0x38 80131ce: 4618 mov r0, r3 80131d0: f7fc fed6 bl 800ff80 80131d4: 4603 mov r3, r0 80131d6: 2b00 cmp r3, #0 80131d8: d00c beq.n 80131f4 { if (HAL_DMA_GetError(huart->hdmatx) == HAL_DMA_ERROR_TIMEOUT) 80131da: 687b ldr r3, [r7, #4] 80131dc: 6b9b ldr r3, [r3, #56] @ 0x38 80131de: 4618 mov r0, r3 80131e0: f7fd fa4e bl 8010680 80131e4: 4603 mov r3, r0 80131e6: 2b20 cmp r3, #32 80131e8: d104 bne.n 80131f4 { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; 80131ea: 687b ldr r3, [r7, #4] 80131ec: 2210 movs r2, #16 80131ee: 645a str r2, [r3, #68] @ 0x44 return HAL_TIMEOUT; 80131f0: 2303 movs r3, #3 80131f2: e007 b.n 8013204 } } } /* Reset Tx transfer counter */ huart->TxXferCount = 0x00U; 80131f4: 687b ldr r3, [r7, #4] 80131f6: 2200 movs r2, #0 80131f8: 84da strh r2, [r3, #38] @ 0x26 /* Restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; 80131fa: 687b ldr r3, [r7, #4] 80131fc: 2220 movs r2, #32 80131fe: f883 2041 strb.w r2, [r3, #65] @ 0x41 return HAL_OK; 8013202: 2300 movs r3, #0 } 8013204: 4618 mov r0, r3 8013206: 3738 adds r7, #56 @ 0x38 8013208: 46bd mov sp, r7 801320a: bd80 pop {r7, pc} 0801320c : * - Set handle State to READY * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart) { 801320c: b580 push {r7, lr} 801320e: b09a sub sp, #104 @ 0x68 8013210: af00 add r7, sp, #0 8013212: 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)); 8013214: 687b ldr r3, [r7, #4] 8013216: 681b ldr r3, [r3, #0] 8013218: 330c adds r3, #12 801321a: 64bb str r3, [r7, #72] @ 0x48 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801321c: 6cbb ldr r3, [r7, #72] @ 0x48 801321e: e853 3f00 ldrex r3, [r3] 8013222: 647b str r3, [r7, #68] @ 0x44 return(result); 8013224: 6c7b ldr r3, [r7, #68] @ 0x44 8013226: f423 7390 bic.w r3, r3, #288 @ 0x120 801322a: 667b str r3, [r7, #100] @ 0x64 801322c: 687b ldr r3, [r7, #4] 801322e: 681b ldr r3, [r3, #0] 8013230: 330c adds r3, #12 8013232: 6e7a ldr r2, [r7, #100] @ 0x64 8013234: 657a str r2, [r7, #84] @ 0x54 8013236: 653b str r3, [r7, #80] @ 0x50 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013238: 6d39 ldr r1, [r7, #80] @ 0x50 801323a: 6d7a ldr r2, [r7, #84] @ 0x54 801323c: e841 2300 strex r3, r2, [r1] 8013240: 64fb str r3, [r7, #76] @ 0x4c return(result); 8013242: 6cfb ldr r3, [r7, #76] @ 0x4c 8013244: 2b00 cmp r3, #0 8013246: d1e5 bne.n 8013214 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013248: 687b ldr r3, [r7, #4] 801324a: 681b ldr r3, [r3, #0] 801324c: 3314 adds r3, #20 801324e: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013250: 6b7b ldr r3, [r7, #52] @ 0x34 8013252: e853 3f00 ldrex r3, [r3] 8013256: 633b str r3, [r7, #48] @ 0x30 return(result); 8013258: 6b3b ldr r3, [r7, #48] @ 0x30 801325a: f023 0301 bic.w r3, r3, #1 801325e: 663b str r3, [r7, #96] @ 0x60 8013260: 687b ldr r3, [r7, #4] 8013262: 681b ldr r3, [r3, #0] 8013264: 3314 adds r3, #20 8013266: 6e3a ldr r2, [r7, #96] @ 0x60 8013268: 643a str r2, [r7, #64] @ 0x40 801326a: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801326c: 6bf9 ldr r1, [r7, #60] @ 0x3c 801326e: 6c3a ldr r2, [r7, #64] @ 0x40 8013270: e841 2300 strex r3, r2, [r1] 8013274: 63bb str r3, [r7, #56] @ 0x38 return(result); 8013276: 6bbb ldr r3, [r7, #56] @ 0x38 8013278: 2b00 cmp r3, #0 801327a: d1e5 bne.n 8013248 /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 801327c: 687b ldr r3, [r7, #4] 801327e: 6b1b ldr r3, [r3, #48] @ 0x30 8013280: 2b01 cmp r3, #1 8013282: d119 bne.n 80132b8 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); 8013284: 687b ldr r3, [r7, #4] 8013286: 681b ldr r3, [r3, #0] 8013288: 330c adds r3, #12 801328a: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801328c: 6a3b ldr r3, [r7, #32] 801328e: e853 3f00 ldrex r3, [r3] 8013292: 61fb str r3, [r7, #28] return(result); 8013294: 69fb ldr r3, [r7, #28] 8013296: f023 0310 bic.w r3, r3, #16 801329a: 65fb str r3, [r7, #92] @ 0x5c 801329c: 687b ldr r3, [r7, #4] 801329e: 681b ldr r3, [r3, #0] 80132a0: 330c adds r3, #12 80132a2: 6dfa ldr r2, [r7, #92] @ 0x5c 80132a4: 62fa str r2, [r7, #44] @ 0x2c 80132a6: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80132a8: 6ab9 ldr r1, [r7, #40] @ 0x28 80132aa: 6afa ldr r2, [r7, #44] @ 0x2c 80132ac: e841 2300 strex r3, r2, [r1] 80132b0: 627b str r3, [r7, #36] @ 0x24 return(result); 80132b2: 6a7b ldr r3, [r7, #36] @ 0x24 80132b4: 2b00 cmp r3, #0 80132b6: d1e5 bne.n 8013284 } /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80132b8: 687b ldr r3, [r7, #4] 80132ba: 681b ldr r3, [r3, #0] 80132bc: 695b ldr r3, [r3, #20] 80132be: f003 0340 and.w r3, r3, #64 @ 0x40 80132c2: 2b00 cmp r3, #0 80132c4: d036 beq.n 8013334 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 80132c6: 687b ldr r3, [r7, #4] 80132c8: 681b ldr r3, [r3, #0] 80132ca: 3314 adds r3, #20 80132cc: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80132ce: 68fb ldr r3, [r7, #12] 80132d0: e853 3f00 ldrex r3, [r3] 80132d4: 60bb str r3, [r7, #8] return(result); 80132d6: 68bb ldr r3, [r7, #8] 80132d8: f023 0340 bic.w r3, r3, #64 @ 0x40 80132dc: 65bb str r3, [r7, #88] @ 0x58 80132de: 687b ldr r3, [r7, #4] 80132e0: 681b ldr r3, [r3, #0] 80132e2: 3314 adds r3, #20 80132e4: 6dba ldr r2, [r7, #88] @ 0x58 80132e6: 61ba str r2, [r7, #24] 80132e8: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80132ea: 6979 ldr r1, [r7, #20] 80132ec: 69ba ldr r2, [r7, #24] 80132ee: e841 2300 strex r3, r2, [r1] 80132f2: 613b str r3, [r7, #16] return(result); 80132f4: 693b ldr r3, [r7, #16] 80132f6: 2b00 cmp r3, #0 80132f8: d1e5 bne.n 80132c6 /* Abort the UART DMA Rx channel : use blocking DMA Abort API (no callback) */ if (huart->hdmarx != NULL) 80132fa: 687b ldr r3, [r7, #4] 80132fc: 6bdb ldr r3, [r3, #60] @ 0x3c 80132fe: 2b00 cmp r3, #0 8013300: d018 beq.n 8013334 { /* Set the UART DMA Abort callback to Null. No call back execution at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = NULL; 8013302: 687b ldr r3, [r7, #4] 8013304: 6bdb ldr r3, [r3, #60] @ 0x3c 8013306: 2200 movs r2, #0 8013308: 635a str r2, [r3, #52] @ 0x34 if (HAL_DMA_Abort(huart->hdmarx) != HAL_OK) 801330a: 687b ldr r3, [r7, #4] 801330c: 6bdb ldr r3, [r3, #60] @ 0x3c 801330e: 4618 mov r0, r3 8013310: f7fc fe36 bl 800ff80 8013314: 4603 mov r3, r0 8013316: 2b00 cmp r3, #0 8013318: d00c beq.n 8013334 { if (HAL_DMA_GetError(huart->hdmarx) == HAL_DMA_ERROR_TIMEOUT) 801331a: 687b ldr r3, [r7, #4] 801331c: 6bdb ldr r3, [r3, #60] @ 0x3c 801331e: 4618 mov r0, r3 8013320: f7fd f9ae bl 8010680 8013324: 4603 mov r3, r0 8013326: 2b20 cmp r3, #32 8013328: d104 bne.n 8013334 { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; 801332a: 687b ldr r3, [r7, #4] 801332c: 2210 movs r2, #16 801332e: 645a str r2, [r3, #68] @ 0x44 return HAL_TIMEOUT; 8013330: 2303 movs r3, #3 8013332: e00a b.n 801334a } } } /* Reset Rx transfer counter */ huart->RxXferCount = 0x00U; 8013334: 687b ldr r3, [r7, #4] 8013336: 2200 movs r2, #0 8013338: 85da strh r2, [r3, #46] @ 0x2e /* Restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 801333a: 687b ldr r3, [r7, #4] 801333c: 2220 movs r2, #32 801333e: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013342: 687b ldr r3, [r7, #4] 8013344: 2200 movs r2, #0 8013346: 631a str r2, [r3, #48] @ 0x30 return HAL_OK; 8013348: 2300 movs r3, #0 } 801334a: 4618 mov r0, r3 801334c: 3768 adds r7, #104 @ 0x68 801334e: 46bd mov sp, r7 8013350: bd80 pop {r7, pc} ... 08013354 : * @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) { 8013354: b580 push {r7, lr} 8013356: b0ba sub sp, #232 @ 0xe8 8013358: af00 add r7, sp, #0 801335a: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); 801335c: 687b ldr r3, [r7, #4] 801335e: 681b ldr r3, [r3, #0] 8013360: 681b ldr r3, [r3, #0] 8013362: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); 8013366: 687b ldr r3, [r7, #4] 8013368: 681b ldr r3, [r3, #0] 801336a: 68db ldr r3, [r3, #12] 801336c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); 8013370: 687b ldr r3, [r7, #4] 8013372: 681b ldr r3, [r3, #0] 8013374: 695b ldr r3, [r3, #20] 8013376: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags = 0x00U; 801337a: 2300 movs r3, #0 801337c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 uint32_t dmarequest = 0x00U; 8013380: 2300 movs r3, #0 8013382: 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)); 8013386: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801338a: f003 030f and.w r3, r3, #15 801338e: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == RESET) 8013392: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 8013396: 2b00 cmp r3, #0 8013398: d10f bne.n 80133ba { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) 801339a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801339e: f003 0320 and.w r3, r3, #32 80133a2: 2b00 cmp r3, #0 80133a4: d009 beq.n 80133ba 80133a6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80133aa: f003 0320 and.w r3, r3, #32 80133ae: 2b00 cmp r3, #0 80133b0: d003 beq.n 80133ba { UART_Receive_IT(huart); 80133b2: 6878 ldr r0, [r7, #4] 80133b4: f000 fdb6 bl 8013f24 return; 80133b8: e25b b.n 8013872 } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) 80133ba: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 80133be: 2b00 cmp r3, #0 80133c0: f000 80de beq.w 8013580 80133c4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 80133c8: f003 0301 and.w r3, r3, #1 80133cc: 2b00 cmp r3, #0 80133ce: d106 bne.n 80133de || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) 80133d0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80133d4: f403 7390 and.w r3, r3, #288 @ 0x120 80133d8: 2b00 cmp r3, #0 80133da: f000 80d1 beq.w 8013580 { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) 80133de: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 80133e2: f003 0301 and.w r3, r3, #1 80133e6: 2b00 cmp r3, #0 80133e8: d00b beq.n 8013402 80133ea: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 80133ee: f403 7380 and.w r3, r3, #256 @ 0x100 80133f2: 2b00 cmp r3, #0 80133f4: d005 beq.n 8013402 { huart->ErrorCode |= HAL_UART_ERROR_PE; 80133f6: 687b ldr r3, [r7, #4] 80133f8: 6c5b ldr r3, [r3, #68] @ 0x44 80133fa: f043 0201 orr.w r2, r3, #1 80133fe: 687b ldr r3, [r7, #4] 8013400: 645a str r2, [r3, #68] @ 0x44 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) 8013402: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013406: f003 0304 and.w r3, r3, #4 801340a: 2b00 cmp r3, #0 801340c: d00b beq.n 8013426 801340e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8013412: f003 0301 and.w r3, r3, #1 8013416: 2b00 cmp r3, #0 8013418: d005 beq.n 8013426 { huart->ErrorCode |= HAL_UART_ERROR_NE; 801341a: 687b ldr r3, [r7, #4] 801341c: 6c5b ldr r3, [r3, #68] @ 0x44 801341e: f043 0202 orr.w r2, r3, #2 8013422: 687b ldr r3, [r7, #4] 8013424: 645a str r2, [r3, #68] @ 0x44 } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) 8013426: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801342a: f003 0302 and.w r3, r3, #2 801342e: 2b00 cmp r3, #0 8013430: d00b beq.n 801344a 8013432: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8013436: f003 0301 and.w r3, r3, #1 801343a: 2b00 cmp r3, #0 801343c: d005 beq.n 801344a { huart->ErrorCode |= HAL_UART_ERROR_FE; 801343e: 687b ldr r3, [r7, #4] 8013440: 6c5b ldr r3, [r3, #68] @ 0x44 8013442: f043 0204 orr.w r2, r3, #4 8013446: 687b ldr r3, [r7, #4] 8013448: 645a str r2, [r3, #68] @ 0x44 } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) 801344a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801344e: f003 0308 and.w r3, r3, #8 8013452: 2b00 cmp r3, #0 8013454: d011 beq.n 801347a 8013456: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 801345a: f003 0320 and.w r3, r3, #32 801345e: 2b00 cmp r3, #0 8013460: d105 bne.n 801346e || ((cr3its & USART_CR3_EIE) != RESET))) 8013462: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8013466: f003 0301 and.w r3, r3, #1 801346a: 2b00 cmp r3, #0 801346c: d005 beq.n 801347a { huart->ErrorCode |= HAL_UART_ERROR_ORE; 801346e: 687b ldr r3, [r7, #4] 8013470: 6c5b ldr r3, [r3, #68] @ 0x44 8013472: f043 0208 orr.w r2, r3, #8 8013476: 687b ldr r3, [r7, #4] 8013478: 645a str r2, [r3, #68] @ 0x44 } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) 801347a: 687b ldr r3, [r7, #4] 801347c: 6c5b ldr r3, [r3, #68] @ 0x44 801347e: 2b00 cmp r3, #0 8013480: f000 81f2 beq.w 8013868 { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) 8013484: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 8013488: f003 0320 and.w r3, r3, #32 801348c: 2b00 cmp r3, #0 801348e: d008 beq.n 80134a2 8013490: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8013494: f003 0320 and.w r3, r3, #32 8013498: 2b00 cmp r3, #0 801349a: d002 beq.n 80134a2 { UART_Receive_IT(huart); 801349c: 6878 ldr r0, [r7, #4] 801349e: f000 fd41 bl 8013f24 } /* 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); 80134a2: 687b ldr r3, [r7, #4] 80134a4: 681b ldr r3, [r3, #0] 80134a6: 695b ldr r3, [r3, #20] 80134a8: f003 0340 and.w r3, r3, #64 @ 0x40 80134ac: 2b00 cmp r3, #0 80134ae: bf14 ite ne 80134b0: 2301 movne r3, #1 80134b2: 2300 moveq r3, #0 80134b4: b2db uxtb r3, r3 80134b6: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) 80134ba: 687b ldr r3, [r7, #4] 80134bc: 6c5b ldr r3, [r3, #68] @ 0x44 80134be: f003 0308 and.w r3, r3, #8 80134c2: 2b00 cmp r3, #0 80134c4: d103 bne.n 80134ce 80134c6: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 80134ca: 2b00 cmp r3, #0 80134cc: d04f beq.n 801356e { /* 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); 80134ce: 6878 ldr r0, [r7, #4] 80134d0: f000 fc4b bl 8013d6a /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80134d4: 687b ldr r3, [r7, #4] 80134d6: 681b ldr r3, [r3, #0] 80134d8: 695b ldr r3, [r3, #20] 80134da: f003 0340 and.w r3, r3, #64 @ 0x40 80134de: 2b00 cmp r3, #0 80134e0: d041 beq.n 8013566 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 80134e2: 687b ldr r3, [r7, #4] 80134e4: 681b ldr r3, [r3, #0] 80134e6: 3314 adds r3, #20 80134e8: f8c7 309c str.w r3, [r7, #156] @ 0x9c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80134ec: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c 80134f0: e853 3f00 ldrex r3, [r3] 80134f4: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); 80134f8: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 80134fc: f023 0340 bic.w r3, r3, #64 @ 0x40 8013500: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 8013504: 687b ldr r3, [r7, #4] 8013506: 681b ldr r3, [r3, #0] 8013508: 3314 adds r3, #20 801350a: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 801350e: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 8013512: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013516: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 801351a: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 801351e: e841 2300 strex r3, r2, [r1] 8013522: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); 8013526: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 801352a: 2b00 cmp r3, #0 801352c: d1d9 bne.n 80134e2 /* Abort the UART DMA Rx channel */ if (huart->hdmarx != NULL) 801352e: 687b ldr r3, [r7, #4] 8013530: 6bdb ldr r3, [r3, #60] @ 0x3c 8013532: 2b00 cmp r3, #0 8013534: d013 beq.n 801355e { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; 8013536: 687b ldr r3, [r7, #4] 8013538: 6bdb ldr r3, [r3, #60] @ 0x3c 801353a: 4a7e ldr r2, [pc, #504] @ (8013734 ) 801353c: 635a str r2, [r3, #52] @ 0x34 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) 801353e: 687b ldr r3, [r7, #4] 8013540: 6bdb ldr r3, [r3, #60] @ 0x3c 8013542: 4618 mov r0, r3 8013544: f7fc fd58 bl 800fff8 8013548: 4603 mov r3, r0 801354a: 2b00 cmp r3, #0 801354c: d016 beq.n 801357c { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); 801354e: 687b ldr r3, [r7, #4] 8013550: 6bdb ldr r3, [r3, #60] @ 0x3c 8013552: 6b5b ldr r3, [r3, #52] @ 0x34 8013554: 687a ldr r2, [r7, #4] 8013556: 6bd2 ldr r2, [r2, #60] @ 0x3c 8013558: 4610 mov r0, r2 801355a: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 801355c: e00e b.n 801357c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 801355e: 6878 ldr r0, [r7, #4] 8013560: f7f8 fb92 bl 800bc88 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 8013564: e00a b.n 801357c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 8013566: 6878 ldr r0, [r7, #4] 8013568: f7f8 fb8e bl 800bc88 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 801356c: e006 b.n 801357c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 801356e: 6878 ldr r0, [r7, #4] 8013570: f7f8 fb8a bl 800bc88 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; 8013574: 687b ldr r3, [r7, #4] 8013576: 2200 movs r2, #0 8013578: 645a str r2, [r3, #68] @ 0x44 } } return; 801357a: e175 b.n 8013868 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 801357c: bf00 nop return; 801357e: e173 b.n 8013868 } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013580: 687b ldr r3, [r7, #4] 8013582: 6b1b ldr r3, [r3, #48] @ 0x30 8013584: 2b01 cmp r3, #1 8013586: f040 814f bne.w 8013828 && ((isrflags & USART_SR_IDLE) != 0U) 801358a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801358e: f003 0310 and.w r3, r3, #16 8013592: 2b00 cmp r3, #0 8013594: f000 8148 beq.w 8013828 && ((cr1its & USART_SR_IDLE) != 0U)) 8013598: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 801359c: f003 0310 and.w r3, r3, #16 80135a0: 2b00 cmp r3, #0 80135a2: f000 8141 beq.w 8013828 { __HAL_UART_CLEAR_IDLEFLAG(huart); 80135a6: 2300 movs r3, #0 80135a8: 60bb str r3, [r7, #8] 80135aa: 687b ldr r3, [r7, #4] 80135ac: 681b ldr r3, [r3, #0] 80135ae: 681b ldr r3, [r3, #0] 80135b0: 60bb str r3, [r7, #8] 80135b2: 687b ldr r3, [r7, #4] 80135b4: 681b ldr r3, [r3, #0] 80135b6: 685b ldr r3, [r3, #4] 80135b8: 60bb str r3, [r7, #8] 80135ba: 68bb ldr r3, [r7, #8] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) 80135bc: 687b ldr r3, [r7, #4] 80135be: 681b ldr r3, [r3, #0] 80135c0: 695b ldr r3, [r3, #20] 80135c2: f003 0340 and.w r3, r3, #64 @ 0x40 80135c6: 2b00 cmp r3, #0 80135c8: f000 80b6 beq.w 8013738 { /* 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); 80135cc: 687b ldr r3, [r7, #4] 80135ce: 6bdb ldr r3, [r3, #60] @ 0x3c 80135d0: 681b ldr r3, [r3, #0] 80135d2: 685b ldr r3, [r3, #4] 80135d4: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) 80135d8: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe 80135dc: 2b00 cmp r3, #0 80135de: f000 8145 beq.w 801386c && (nb_remaining_rx_data < huart->RxXferSize)) 80135e2: 687b ldr r3, [r7, #4] 80135e4: 8d9b ldrh r3, [r3, #44] @ 0x2c 80135e6: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe 80135ea: 429a cmp r2, r3 80135ec: f080 813e bcs.w 801386c { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; 80135f0: 687b ldr r3, [r7, #4] 80135f2: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe 80135f6: 85da strh r2, [r3, #46] @ 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) 80135f8: 687b ldr r3, [r7, #4] 80135fa: 6bdb ldr r3, [r3, #60] @ 0x3c 80135fc: 699b ldr r3, [r3, #24] 80135fe: 2b20 cmp r3, #32 8013600: f000 8088 beq.w 8013714 { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); 8013604: 687b ldr r3, [r7, #4] 8013606: 681b ldr r3, [r3, #0] 8013608: 330c adds r3, #12 801360a: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801360e: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 8013612: e853 3f00 ldrex r3, [r3] 8013616: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); 801361a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 801361e: f423 7380 bic.w r3, r3, #256 @ 0x100 8013622: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 8013626: 687b ldr r3, [r7, #4] 8013628: 681b ldr r3, [r3, #0] 801362a: 330c adds r3, #12 801362c: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 8013630: f8c7 2094 str.w r2, [r7, #148] @ 0x94 8013634: f8c7 3090 str.w r3, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013638: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 801363c: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 8013640: e841 2300 strex r3, r2, [r1] 8013644: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); 8013648: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c 801364c: 2b00 cmp r3, #0 801364e: d1d9 bne.n 8013604 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013650: 687b ldr r3, [r7, #4] 8013652: 681b ldr r3, [r3, #0] 8013654: 3314 adds r3, #20 8013656: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013658: 6f7b ldr r3, [r7, #116] @ 0x74 801365a: e853 3f00 ldrex r3, [r3] 801365e: 673b str r3, [r7, #112] @ 0x70 return(result); 8013660: 6f3b ldr r3, [r7, #112] @ 0x70 8013662: f023 0301 bic.w r3, r3, #1 8013666: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 801366a: 687b ldr r3, [r7, #4] 801366c: 681b ldr r3, [r3, #0] 801366e: 3314 adds r3, #20 8013670: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 8013674: f8c7 2080 str.w r2, [r7, #128] @ 0x80 8013678: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801367a: 6ff9 ldr r1, [r7, #124] @ 0x7c 801367c: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 8013680: e841 2300 strex r3, r2, [r1] 8013684: 67bb str r3, [r7, #120] @ 0x78 return(result); 8013686: 6fbb ldr r3, [r7, #120] @ 0x78 8013688: 2b00 cmp r3, #0 801368a: d1e1 bne.n 8013650 /* 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); 801368c: 687b ldr r3, [r7, #4] 801368e: 681b ldr r3, [r3, #0] 8013690: 3314 adds r3, #20 8013692: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013694: 6e3b ldr r3, [r7, #96] @ 0x60 8013696: e853 3f00 ldrex r3, [r3] 801369a: 65fb str r3, [r7, #92] @ 0x5c return(result); 801369c: 6dfb ldr r3, [r7, #92] @ 0x5c 801369e: f023 0340 bic.w r3, r3, #64 @ 0x40 80136a2: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 80136a6: 687b ldr r3, [r7, #4] 80136a8: 681b ldr r3, [r3, #0] 80136aa: 3314 adds r3, #20 80136ac: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 80136b0: 66fa str r2, [r7, #108] @ 0x6c 80136b2: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80136b4: 6eb9 ldr r1, [r7, #104] @ 0x68 80136b6: 6efa ldr r2, [r7, #108] @ 0x6c 80136b8: e841 2300 strex r3, r2, [r1] 80136bc: 667b str r3, [r7, #100] @ 0x64 return(result); 80136be: 6e7b ldr r3, [r7, #100] @ 0x64 80136c0: 2b00 cmp r3, #0 80136c2: d1e3 bne.n 801368c /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 80136c4: 687b ldr r3, [r7, #4] 80136c6: 2220 movs r2, #32 80136c8: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80136cc: 687b ldr r3, [r7, #4] 80136ce: 2200 movs r2, #0 80136d0: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80136d2: 687b ldr r3, [r7, #4] 80136d4: 681b ldr r3, [r3, #0] 80136d6: 330c adds r3, #12 80136d8: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80136da: 6cfb ldr r3, [r7, #76] @ 0x4c 80136dc: e853 3f00 ldrex r3, [r3] 80136e0: 64bb str r3, [r7, #72] @ 0x48 return(result); 80136e2: 6cbb ldr r3, [r7, #72] @ 0x48 80136e4: f023 0310 bic.w r3, r3, #16 80136e8: f8c7 30ac str.w r3, [r7, #172] @ 0xac 80136ec: 687b ldr r3, [r7, #4] 80136ee: 681b ldr r3, [r3, #0] 80136f0: 330c adds r3, #12 80136f2: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac 80136f6: 65ba str r2, [r7, #88] @ 0x58 80136f8: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80136fa: 6d79 ldr r1, [r7, #84] @ 0x54 80136fc: 6dba ldr r2, [r7, #88] @ 0x58 80136fe: e841 2300 strex r3, r2, [r1] 8013702: 653b str r3, [r7, #80] @ 0x50 return(result); 8013704: 6d3b ldr r3, [r7, #80] @ 0x50 8013706: 2b00 cmp r3, #0 8013708: d1e3 bne.n 80136d2 /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); 801370a: 687b ldr r3, [r7, #4] 801370c: 6bdb ldr r3, [r3, #60] @ 0x3c 801370e: 4618 mov r0, r3 8013710: f7fc fc36 bl 800ff80 } /* 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; 8013714: 687b ldr r3, [r7, #4] 8013716: 2202 movs r2, #2 8013718: 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)); 801371a: 687b ldr r3, [r7, #4] 801371c: 8d9a ldrh r2, [r3, #44] @ 0x2c 801371e: 687b ldr r3, [r7, #4] 8013720: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013722: b29b uxth r3, r3 8013724: 1ad3 subs r3, r2, r3 8013726: b29b uxth r3, r3 8013728: 4619 mov r1, r3 801372a: 6878 ldr r0, [r7, #4] 801372c: f7f9 f9f6 bl 800cb1c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; 8013730: e09c b.n 801386c 8013732: bf00 nop 8013734: 08013e2f .word 0x08013e2f 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; 8013738: 687b ldr r3, [r7, #4] 801373a: 8d9a ldrh r2, [r3, #44] @ 0x2c 801373c: 687b ldr r3, [r7, #4] 801373e: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013740: b29b uxth r3, r3 8013742: 1ad3 subs r3, r2, r3 8013744: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) 8013748: 687b ldr r3, [r7, #4] 801374a: 8ddb ldrh r3, [r3, #46] @ 0x2e 801374c: b29b uxth r3, r3 801374e: 2b00 cmp r3, #0 8013750: f000 808e beq.w 8013870 && (nb_rx_data > 0U)) 8013754: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce 8013758: 2b00 cmp r3, #0 801375a: f000 8089 beq.w 8013870 { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); 801375e: 687b ldr r3, [r7, #4] 8013760: 681b ldr r3, [r3, #0] 8013762: 330c adds r3, #12 8013764: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013766: 6bbb ldr r3, [r7, #56] @ 0x38 8013768: e853 3f00 ldrex r3, [r3] 801376c: 637b str r3, [r7, #52] @ 0x34 return(result); 801376e: 6b7b ldr r3, [r7, #52] @ 0x34 8013770: f423 7390 bic.w r3, r3, #288 @ 0x120 8013774: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 8013778: 687b ldr r3, [r7, #4] 801377a: 681b ldr r3, [r3, #0] 801377c: 330c adds r3, #12 801377e: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 8013782: 647a str r2, [r7, #68] @ 0x44 8013784: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013786: 6c39 ldr r1, [r7, #64] @ 0x40 8013788: 6c7a ldr r2, [r7, #68] @ 0x44 801378a: e841 2300 strex r3, r2, [r1] 801378e: 63fb str r3, [r7, #60] @ 0x3c return(result); 8013790: 6bfb ldr r3, [r7, #60] @ 0x3c 8013792: 2b00 cmp r3, #0 8013794: d1e3 bne.n 801375e /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013796: 687b ldr r3, [r7, #4] 8013798: 681b ldr r3, [r3, #0] 801379a: 3314 adds r3, #20 801379c: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801379e: 6a7b ldr r3, [r7, #36] @ 0x24 80137a0: e853 3f00 ldrex r3, [r3] 80137a4: 623b str r3, [r7, #32] return(result); 80137a6: 6a3b ldr r3, [r7, #32] 80137a8: f023 0301 bic.w r3, r3, #1 80137ac: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 80137b0: 687b ldr r3, [r7, #4] 80137b2: 681b ldr r3, [r3, #0] 80137b4: 3314 adds r3, #20 80137b6: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 80137ba: 633a str r2, [r7, #48] @ 0x30 80137bc: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80137be: 6af9 ldr r1, [r7, #44] @ 0x2c 80137c0: 6b3a ldr r2, [r7, #48] @ 0x30 80137c2: e841 2300 strex r3, r2, [r1] 80137c6: 62bb str r3, [r7, #40] @ 0x28 return(result); 80137c8: 6abb ldr r3, [r7, #40] @ 0x28 80137ca: 2b00 cmp r3, #0 80137cc: d1e3 bne.n 8013796 /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 80137ce: 687b ldr r3, [r7, #4] 80137d0: 2220 movs r2, #32 80137d2: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 80137d6: 687b ldr r3, [r7, #4] 80137d8: 2200 movs r2, #0 80137da: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 80137dc: 687b ldr r3, [r7, #4] 80137de: 681b ldr r3, [r3, #0] 80137e0: 330c adds r3, #12 80137e2: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80137e4: 693b ldr r3, [r7, #16] 80137e6: e853 3f00 ldrex r3, [r3] 80137ea: 60fb str r3, [r7, #12] return(result); 80137ec: 68fb ldr r3, [r7, #12] 80137ee: f023 0310 bic.w r3, r3, #16 80137f2: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 80137f6: 687b ldr r3, [r7, #4] 80137f8: 681b ldr r3, [r3, #0] 80137fa: 330c adds r3, #12 80137fc: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 8013800: 61fa str r2, [r7, #28] 8013802: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013804: 69b9 ldr r1, [r7, #24] 8013806: 69fa ldr r2, [r7, #28] 8013808: e841 2300 strex r3, r2, [r1] 801380c: 617b str r3, [r7, #20] return(result); 801380e: 697b ldr r3, [r7, #20] 8013810: 2b00 cmp r3, #0 8013812: d1e3 bne.n 80137dc /* 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; 8013814: 687b ldr r3, [r7, #4] 8013816: 2202 movs r2, #2 8013818: 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); 801381a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce 801381e: 4619 mov r1, r3 8013820: 6878 ldr r0, [r7, #4] 8013822: f7f9 f97b bl 800cb1c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; 8013826: e023 b.n 8013870 } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) 8013828: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801382c: f003 0380 and.w r3, r3, #128 @ 0x80 8013830: 2b00 cmp r3, #0 8013832: d009 beq.n 8013848 8013834: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8013838: f003 0380 and.w r3, r3, #128 @ 0x80 801383c: 2b00 cmp r3, #0 801383e: d003 beq.n 8013848 { UART_Transmit_IT(huart); 8013840: 6878 ldr r0, [r7, #4] 8013842: f000 fb08 bl 8013e56 return; 8013846: e014 b.n 8013872 } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) 8013848: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 801384c: f003 0340 and.w r3, r3, #64 @ 0x40 8013850: 2b00 cmp r3, #0 8013852: d00e beq.n 8013872 8013854: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 8013858: f003 0340 and.w r3, r3, #64 @ 0x40 801385c: 2b00 cmp r3, #0 801385e: d008 beq.n 8013872 { UART_EndTransmit_IT(huart); 8013860: 6878 ldr r0, [r7, #4] 8013862: f000 fb47 bl 8013ef4 return; 8013866: e004 b.n 8013872 return; 8013868: bf00 nop 801386a: e002 b.n 8013872 return; 801386c: bf00 nop 801386e: e000 b.n 8013872 return; 8013870: bf00 nop } } 8013872: 37e8 adds r7, #232 @ 0xe8 8013874: 46bd mov sp, r7 8013876: bd80 pop {r7, pc} 08013878 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart) { 8013878: b480 push {r7} 801387a: b083 sub sp, #12 801387c: af00 add r7, sp, #0 801387e: 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_TxHalfCpltCallback could be implemented in the user file */ } 8013880: bf00 nop 8013882: 370c adds r7, #12 8013884: 46bd mov sp, r7 8013886: bc80 pop {r7} 8013888: 4770 bx lr 0801388a : * @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) { 801388a: b480 push {r7} 801388c: b083 sub sp, #12 801388e: af00 add r7, sp, #0 8013890: 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 */ } 8013892: bf00 nop 8013894: 370c adds r7, #12 8013896: 46bd mov sp, r7 8013898: bc80 pop {r7} 801389a: 4770 bx lr 0801389c : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart) { 801389c: b480 push {r7} 801389e: b083 sub sp, #12 80138a0: af00 add r7, sp, #0 80138a2: 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_RxHalfCpltCallback could be implemented in the user file */ } 80138a4: bf00 nop 80138a6: 370c adds r7, #12 80138a8: 46bd mov sp, r7 80138aa: bc80 pop {r7} 80138ac: 4770 bx lr 080138ae : * @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) { 80138ae: b480 push {r7} 80138b0: b083 sub sp, #12 80138b2: af00 add r7, sp, #0 80138b4: 6078 str r0, [r7, #4] return huart->ErrorCode; 80138b6: 687b ldr r3, [r7, #4] 80138b8: 6c5b ldr r3, [r3, #68] @ 0x44 } 80138ba: 4618 mov r0, r3 80138bc: 370c adds r7, #12 80138be: 46bd mov sp, r7 80138c0: bc80 pop {r7} 80138c2: 4770 bx lr 080138c4 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma) { 80138c4: b580 push {r7, lr} 80138c6: b090 sub sp, #64 @ 0x40 80138c8: af00 add r7, sp, #0 80138ca: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 80138cc: 687b ldr r3, [r7, #4] 80138ce: 6a5b ldr r3, [r3, #36] @ 0x24 80138d0: 63fb str r3, [r7, #60] @ 0x3c /* DMA Normal mode*/ if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 80138d2: 687b ldr r3, [r7, #4] 80138d4: 681b ldr r3, [r3, #0] 80138d6: 681b ldr r3, [r3, #0] 80138d8: f003 0320 and.w r3, r3, #32 80138dc: 2b00 cmp r3, #0 80138de: d137 bne.n 8013950 { huart->TxXferCount = 0x00U; 80138e0: 6bfb ldr r3, [r7, #60] @ 0x3c 80138e2: 2200 movs r2, #0 80138e4: 84da strh r2, [r3, #38] @ 0x26 /* Disable the DMA transfer for transmit request by setting the DMAT bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); 80138e6: 6bfb ldr r3, [r7, #60] @ 0x3c 80138e8: 681b ldr r3, [r3, #0] 80138ea: 3314 adds r3, #20 80138ec: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80138ee: 6a7b ldr r3, [r7, #36] @ 0x24 80138f0: e853 3f00 ldrex r3, [r3] 80138f4: 623b str r3, [r7, #32] return(result); 80138f6: 6a3b ldr r3, [r7, #32] 80138f8: f023 0380 bic.w r3, r3, #128 @ 0x80 80138fc: 63bb str r3, [r7, #56] @ 0x38 80138fe: 6bfb ldr r3, [r7, #60] @ 0x3c 8013900: 681b ldr r3, [r3, #0] 8013902: 3314 adds r3, #20 8013904: 6bba ldr r2, [r7, #56] @ 0x38 8013906: 633a str r2, [r7, #48] @ 0x30 8013908: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801390a: 6af9 ldr r1, [r7, #44] @ 0x2c 801390c: 6b3a ldr r2, [r7, #48] @ 0x30 801390e: e841 2300 strex r3, r2, [r1] 8013912: 62bb str r3, [r7, #40] @ 0x28 return(result); 8013914: 6abb ldr r3, [r7, #40] @ 0x28 8013916: 2b00 cmp r3, #0 8013918: d1e5 bne.n 80138e6 /* Enable the UART Transmit Complete Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); 801391a: 6bfb ldr r3, [r7, #60] @ 0x3c 801391c: 681b ldr r3, [r3, #0] 801391e: 330c adds r3, #12 8013920: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013922: 693b ldr r3, [r7, #16] 8013924: e853 3f00 ldrex r3, [r3] 8013928: 60fb str r3, [r7, #12] return(result); 801392a: 68fb ldr r3, [r7, #12] 801392c: f043 0340 orr.w r3, r3, #64 @ 0x40 8013930: 637b str r3, [r7, #52] @ 0x34 8013932: 6bfb ldr r3, [r7, #60] @ 0x3c 8013934: 681b ldr r3, [r3, #0] 8013936: 330c adds r3, #12 8013938: 6b7a ldr r2, [r7, #52] @ 0x34 801393a: 61fa str r2, [r7, #28] 801393c: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 801393e: 69b9 ldr r1, [r7, #24] 8013940: 69fa ldr r2, [r7, #28] 8013942: e841 2300 strex r3, r2, [r1] 8013946: 617b str r3, [r7, #20] return(result); 8013948: 697b ldr r3, [r7, #20] 801394a: 2b00 cmp r3, #0 801394c: d1e5 bne.n 801391a #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } 801394e: e002 b.n 8013956 HAL_UART_TxCpltCallback(huart); 8013950: 6bf8 ldr r0, [r7, #60] @ 0x3c 8013952: f7f9 f95d bl 800cc10 } 8013956: bf00 nop 8013958: 3740 adds r7, #64 @ 0x40 801395a: 46bd mov sp, r7 801395c: bd80 pop {r7, pc} 0801395e : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma) { 801395e: b580 push {r7, lr} 8013960: b084 sub sp, #16 8013962: af00 add r7, sp, #0 8013964: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 8013966: 687b ldr r3, [r7, #4] 8013968: 6a5b ldr r3, [r3, #36] @ 0x24 801396a: 60fb str r3, [r7, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxHalfCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxHalfCpltCallback(huart); 801396c: 68f8 ldr r0, [r7, #12] 801396e: f7ff ff83 bl 8013878 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 8013972: bf00 nop 8013974: 3710 adds r7, #16 8013976: 46bd mov sp, r7 8013978: bd80 pop {r7, pc} 0801397a : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma) { 801397a: b580 push {r7, lr} 801397c: b09c sub sp, #112 @ 0x70 801397e: af00 add r7, sp, #0 8013980: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 8013982: 687b ldr r3, [r7, #4] 8013984: 6a5b ldr r3, [r3, #36] @ 0x24 8013986: 66fb str r3, [r7, #108] @ 0x6c /* DMA Normal mode*/ if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) 8013988: 687b ldr r3, [r7, #4] 801398a: 681b ldr r3, [r3, #0] 801398c: 681b ldr r3, [r3, #0] 801398e: f003 0320 and.w r3, r3, #32 8013992: 2b00 cmp r3, #0 8013994: d172 bne.n 8013a7c { huart->RxXferCount = 0U; 8013996: 6efb ldr r3, [r7, #108] @ 0x6c 8013998: 2200 movs r2, #0 801399a: 85da strh r2, [r3, #46] @ 0x2e /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); 801399c: 6efb ldr r3, [r7, #108] @ 0x6c 801399e: 681b ldr r3, [r3, #0] 80139a0: 330c adds r3, #12 80139a2: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80139a4: 6cfb ldr r3, [r7, #76] @ 0x4c 80139a6: e853 3f00 ldrex r3, [r3] 80139aa: 64bb str r3, [r7, #72] @ 0x48 return(result); 80139ac: 6cbb ldr r3, [r7, #72] @ 0x48 80139ae: f423 7380 bic.w r3, r3, #256 @ 0x100 80139b2: 66bb str r3, [r7, #104] @ 0x68 80139b4: 6efb ldr r3, [r7, #108] @ 0x6c 80139b6: 681b ldr r3, [r3, #0] 80139b8: 330c adds r3, #12 80139ba: 6eba ldr r2, [r7, #104] @ 0x68 80139bc: 65ba str r2, [r7, #88] @ 0x58 80139be: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80139c0: 6d79 ldr r1, [r7, #84] @ 0x54 80139c2: 6dba ldr r2, [r7, #88] @ 0x58 80139c4: e841 2300 strex r3, r2, [r1] 80139c8: 653b str r3, [r7, #80] @ 0x50 return(result); 80139ca: 6d3b ldr r3, [r7, #80] @ 0x50 80139cc: 2b00 cmp r3, #0 80139ce: d1e5 bne.n 801399c ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 80139d0: 6efb ldr r3, [r7, #108] @ 0x6c 80139d2: 681b ldr r3, [r3, #0] 80139d4: 3314 adds r3, #20 80139d6: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 80139d8: 6bbb ldr r3, [r7, #56] @ 0x38 80139da: e853 3f00 ldrex r3, [r3] 80139de: 637b str r3, [r7, #52] @ 0x34 return(result); 80139e0: 6b7b ldr r3, [r7, #52] @ 0x34 80139e2: f023 0301 bic.w r3, r3, #1 80139e6: 667b str r3, [r7, #100] @ 0x64 80139e8: 6efb ldr r3, [r7, #108] @ 0x6c 80139ea: 681b ldr r3, [r3, #0] 80139ec: 3314 adds r3, #20 80139ee: 6e7a ldr r2, [r7, #100] @ 0x64 80139f0: 647a str r2, [r7, #68] @ 0x44 80139f2: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 80139f4: 6c39 ldr r1, [r7, #64] @ 0x40 80139f6: 6c7a ldr r2, [r7, #68] @ 0x44 80139f8: e841 2300 strex r3, r2, [r1] 80139fc: 63fb str r3, [r7, #60] @ 0x3c return(result); 80139fe: 6bfb ldr r3, [r7, #60] @ 0x3c 8013a00: 2b00 cmp r3, #0 8013a02: d1e5 bne.n 80139d0 /* Disable the DMA transfer for the receiver request by setting the DMAR bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); 8013a04: 6efb ldr r3, [r7, #108] @ 0x6c 8013a06: 681b ldr r3, [r3, #0] 8013a08: 3314 adds r3, #20 8013a0a: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013a0c: 6a7b ldr r3, [r7, #36] @ 0x24 8013a0e: e853 3f00 ldrex r3, [r3] 8013a12: 623b str r3, [r7, #32] return(result); 8013a14: 6a3b ldr r3, [r7, #32] 8013a16: f023 0340 bic.w r3, r3, #64 @ 0x40 8013a1a: 663b str r3, [r7, #96] @ 0x60 8013a1c: 6efb ldr r3, [r7, #108] @ 0x6c 8013a1e: 681b ldr r3, [r3, #0] 8013a20: 3314 adds r3, #20 8013a22: 6e3a ldr r2, [r7, #96] @ 0x60 8013a24: 633a str r2, [r7, #48] @ 0x30 8013a26: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013a28: 6af9 ldr r1, [r7, #44] @ 0x2c 8013a2a: 6b3a ldr r2, [r7, #48] @ 0x30 8013a2c: e841 2300 strex r3, r2, [r1] 8013a30: 62bb str r3, [r7, #40] @ 0x28 return(result); 8013a32: 6abb ldr r3, [r7, #40] @ 0x28 8013a34: 2b00 cmp r3, #0 8013a36: d1e5 bne.n 8013a04 /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 8013a38: 6efb ldr r3, [r7, #108] @ 0x6c 8013a3a: 2220 movs r2, #32 8013a3c: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* If Reception till IDLE event has been selected, Disable IDLE Interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013a40: 6efb ldr r3, [r7, #108] @ 0x6c 8013a42: 6b1b ldr r3, [r3, #48] @ 0x30 8013a44: 2b01 cmp r3, #1 8013a46: d119 bne.n 8013a7c { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8013a48: 6efb ldr r3, [r7, #108] @ 0x6c 8013a4a: 681b ldr r3, [r3, #0] 8013a4c: 330c adds r3, #12 8013a4e: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013a50: 693b ldr r3, [r7, #16] 8013a52: e853 3f00 ldrex r3, [r3] 8013a56: 60fb str r3, [r7, #12] return(result); 8013a58: 68fb ldr r3, [r7, #12] 8013a5a: f023 0310 bic.w r3, r3, #16 8013a5e: 65fb str r3, [r7, #92] @ 0x5c 8013a60: 6efb ldr r3, [r7, #108] @ 0x6c 8013a62: 681b ldr r3, [r3, #0] 8013a64: 330c adds r3, #12 8013a66: 6dfa ldr r2, [r7, #92] @ 0x5c 8013a68: 61fa str r2, [r7, #28] 8013a6a: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013a6c: 69b9 ldr r1, [r7, #24] 8013a6e: 69fa ldr r2, [r7, #28] 8013a70: e841 2300 strex r3, r2, [r1] 8013a74: 617b str r3, [r7, #20] return(result); 8013a76: 697b ldr r3, [r7, #20] 8013a78: 2b00 cmp r3, #0 8013a7a: d1e5 bne.n 8013a48 } } /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; 8013a7c: 6efb ldr r3, [r7, #108] @ 0x6c 8013a7e: 2200 movs r2, #0 8013a80: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : use Rx Event callback */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013a82: 6efb ldr r3, [r7, #108] @ 0x6c 8013a84: 6b1b ldr r3, [r3, #48] @ 0x30 8013a86: 2b01 cmp r3, #1 8013a88: d106 bne.n 8013a98 #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); 8013a8a: 6efb ldr r3, [r7, #108] @ 0x6c 8013a8c: 8d9b ldrh r3, [r3, #44] @ 0x2c 8013a8e: 4619 mov r1, r3 8013a90: 6ef8 ldr r0, [r7, #108] @ 0x6c 8013a92: f7f9 f843 bl 800cb1c #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } 8013a96: e002 b.n 8013a9e HAL_UART_RxCpltCallback(huart); 8013a98: 6ef8 ldr r0, [r7, #108] @ 0x6c 8013a9a: f7ff fef6 bl 801388a } 8013a9e: bf00 nop 8013aa0: 3770 adds r7, #112 @ 0x70 8013aa2: 46bd mov sp, r7 8013aa4: bd80 pop {r7, pc} 08013aa6 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma) { 8013aa6: b580 push {r7, lr} 8013aa8: b084 sub sp, #16 8013aaa: af00 add r7, sp, #0 8013aac: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 8013aae: 687b ldr r3, [r7, #4] 8013ab0: 6a5b ldr r3, [r3, #36] @ 0x24 8013ab2: 60fb str r3, [r7, #12] /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Half Transfer */ huart->RxEventType = HAL_UART_RXEVENT_HT; 8013ab4: 68fb ldr r3, [r7, #12] 8013ab6: 2201 movs r2, #1 8013ab8: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : use Rx Event callback */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013aba: 68fb ldr r3, [r7, #12] 8013abc: 6b1b ldr r3, [r3, #48] @ 0x30 8013abe: 2b01 cmp r3, #1 8013ac0: d108 bne.n 8013ad4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize / 2U); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize / 2U); 8013ac2: 68fb ldr r3, [r7, #12] 8013ac4: 8d9b ldrh r3, [r3, #44] @ 0x2c 8013ac6: 085b lsrs r3, r3, #1 8013ac8: b29b uxth r3, r3 8013aca: 4619 mov r1, r3 8013acc: 68f8 ldr r0, [r7, #12] 8013ace: f7f9 f825 bl 800cb1c #else /*Call legacy weak Rx Half complete callback*/ HAL_UART_RxHalfCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } 8013ad2: e002 b.n 8013ada HAL_UART_RxHalfCpltCallback(huart); 8013ad4: 68f8 ldr r0, [r7, #12] 8013ad6: f7ff fee1 bl 801389c } 8013ada: bf00 nop 8013adc: 3710 adds r7, #16 8013ade: 46bd mov sp, r7 8013ae0: bd80 pop {r7, pc} 08013ae2 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAError(DMA_HandleTypeDef *hdma) { 8013ae2: b580 push {r7, lr} 8013ae4: b084 sub sp, #16 8013ae6: af00 add r7, sp, #0 8013ae8: 6078 str r0, [r7, #4] uint32_t dmarequest = 0x00U; 8013aea: 2300 movs r3, #0 8013aec: 60fb str r3, [r7, #12] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 8013aee: 687b ldr r3, [r7, #4] 8013af0: 6a5b ldr r3, [r3, #36] @ 0x24 8013af2: 60bb str r3, [r7, #8] /* Stop UART DMA Tx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); 8013af4: 68bb ldr r3, [r7, #8] 8013af6: 681b ldr r3, [r3, #0] 8013af8: 695b ldr r3, [r3, #20] 8013afa: f003 0380 and.w r3, r3, #128 @ 0x80 8013afe: 2b00 cmp r3, #0 8013b00: bf14 ite ne 8013b02: 2301 movne r3, #1 8013b04: 2300 moveq r3, #0 8013b06: b2db uxtb r3, r3 8013b08: 60fb str r3, [r7, #12] if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) 8013b0a: 68bb ldr r3, [r7, #8] 8013b0c: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8013b10: b2db uxtb r3, r3 8013b12: 2b21 cmp r3, #33 @ 0x21 8013b14: d108 bne.n 8013b28 8013b16: 68fb ldr r3, [r7, #12] 8013b18: 2b00 cmp r3, #0 8013b1a: d005 beq.n 8013b28 { huart->TxXferCount = 0x00U; 8013b1c: 68bb ldr r3, [r7, #8] 8013b1e: 2200 movs r2, #0 8013b20: 84da strh r2, [r3, #38] @ 0x26 UART_EndTxTransfer(huart); 8013b22: 68b8 ldr r0, [r7, #8] 8013b24: f000 f8fa bl 8013d1c } /* Stop UART DMA Rx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); 8013b28: 68bb ldr r3, [r7, #8] 8013b2a: 681b ldr r3, [r3, #0] 8013b2c: 695b ldr r3, [r3, #20] 8013b2e: f003 0340 and.w r3, r3, #64 @ 0x40 8013b32: 2b00 cmp r3, #0 8013b34: bf14 ite ne 8013b36: 2301 movne r3, #1 8013b38: 2300 moveq r3, #0 8013b3a: b2db uxtb r3, r3 8013b3c: 60fb str r3, [r7, #12] if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) 8013b3e: 68bb ldr r3, [r7, #8] 8013b40: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 8013b44: b2db uxtb r3, r3 8013b46: 2b22 cmp r3, #34 @ 0x22 8013b48: d108 bne.n 8013b5c 8013b4a: 68fb ldr r3, [r7, #12] 8013b4c: 2b00 cmp r3, #0 8013b4e: d005 beq.n 8013b5c { huart->RxXferCount = 0x00U; 8013b50: 68bb ldr r3, [r7, #8] 8013b52: 2200 movs r2, #0 8013b54: 85da strh r2, [r3, #46] @ 0x2e UART_EndRxTransfer(huart); 8013b56: 68b8 ldr r0, [r7, #8] 8013b58: f000 f907 bl 8013d6a } huart->ErrorCode |= HAL_UART_ERROR_DMA; 8013b5c: 68bb ldr r3, [r7, #8] 8013b5e: 6c5b ldr r3, [r3, #68] @ 0x44 8013b60: f043 0210 orr.w r2, r3, #16 8013b64: 68bb ldr r3, [r7, #8] 8013b66: 645a str r2, [r3, #68] @ 0x44 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); 8013b68: 68b8 ldr r0, [r7, #8] 8013b6a: f7f8 f88d bl 800bc88 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 8013b6e: bf00 nop 8013b70: 3710 adds r7, #16 8013b72: 46bd mov sp, r7 8013b74: bd80 pop {r7, pc} 08013b76 : * @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) { 8013b76: b480 push {r7} 8013b78: b085 sub sp, #20 8013b7a: af00 add r7, sp, #0 8013b7c: 60f8 str r0, [r7, #12] 8013b7e: 60b9 str r1, [r7, #8] 8013b80: 4613 mov r3, r2 8013b82: 80fb strh r3, [r7, #6] huart->pRxBuffPtr = pData; 8013b84: 68fb ldr r3, [r7, #12] 8013b86: 68ba ldr r2, [r7, #8] 8013b88: 629a str r2, [r3, #40] @ 0x28 huart->RxXferSize = Size; 8013b8a: 68fb ldr r3, [r7, #12] 8013b8c: 88fa ldrh r2, [r7, #6] 8013b8e: 859a strh r2, [r3, #44] @ 0x2c huart->RxXferCount = Size; 8013b90: 68fb ldr r3, [r7, #12] 8013b92: 88fa ldrh r2, [r7, #6] 8013b94: 85da strh r2, [r3, #46] @ 0x2e huart->ErrorCode = HAL_UART_ERROR_NONE; 8013b96: 68fb ldr r3, [r7, #12] 8013b98: 2200 movs r2, #0 8013b9a: 645a str r2, [r3, #68] @ 0x44 huart->RxState = HAL_UART_STATE_BUSY_RX; 8013b9c: 68fb ldr r3, [r7, #12] 8013b9e: 2222 movs r2, #34 @ 0x22 8013ba0: f883 2042 strb.w r2, [r3, #66] @ 0x42 if (huart->Init.Parity != UART_PARITY_NONE) 8013ba4: 68fb ldr r3, [r7, #12] 8013ba6: 691b ldr r3, [r3, #16] 8013ba8: 2b00 cmp r3, #0 8013baa: d007 beq.n 8013bbc { /* Enable the UART Parity Error Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_PE); 8013bac: 68fb ldr r3, [r7, #12] 8013bae: 681b ldr r3, [r3, #0] 8013bb0: 68da ldr r2, [r3, #12] 8013bb2: 68fb ldr r3, [r7, #12] 8013bb4: 681b ldr r3, [r3, #0] 8013bb6: f442 7280 orr.w r2, r2, #256 @ 0x100 8013bba: 60da str r2, [r3, #12] } /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_ENABLE_IT(huart, UART_IT_ERR); 8013bbc: 68fb ldr r3, [r7, #12] 8013bbe: 681b ldr r3, [r3, #0] 8013bc0: 695a ldr r2, [r3, #20] 8013bc2: 68fb ldr r3, [r7, #12] 8013bc4: 681b ldr r3, [r3, #0] 8013bc6: f042 0201 orr.w r2, r2, #1 8013bca: 615a str r2, [r3, #20] /* Enable the UART Data Register not empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE); 8013bcc: 68fb ldr r3, [r7, #12] 8013bce: 681b ldr r3, [r3, #0] 8013bd0: 68da ldr r2, [r3, #12] 8013bd2: 68fb ldr r3, [r7, #12] 8013bd4: 681b ldr r3, [r3, #0] 8013bd6: f042 0220 orr.w r2, r2, #32 8013bda: 60da str r2, [r3, #12] return HAL_OK; 8013bdc: 2300 movs r3, #0 } 8013bde: 4618 mov r0, r3 8013be0: 3714 adds r7, #20 8013be2: 46bd mov sp, r7 8013be4: bc80 pop {r7} 8013be6: 4770 bx lr 08013be8 : * @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_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { 8013be8: b580 push {r7, lr} 8013bea: b098 sub sp, #96 @ 0x60 8013bec: af00 add r7, sp, #0 8013bee: 60f8 str r0, [r7, #12] 8013bf0: 60b9 str r1, [r7, #8] 8013bf2: 4613 mov r3, r2 8013bf4: 80fb strh r3, [r7, #6] uint32_t *tmp; huart->pRxBuffPtr = pData; 8013bf6: 68ba ldr r2, [r7, #8] 8013bf8: 68fb ldr r3, [r7, #12] 8013bfa: 629a str r2, [r3, #40] @ 0x28 huart->RxXferSize = Size; 8013bfc: 68fb ldr r3, [r7, #12] 8013bfe: 88fa ldrh r2, [r7, #6] 8013c00: 859a strh r2, [r3, #44] @ 0x2c huart->ErrorCode = HAL_UART_ERROR_NONE; 8013c02: 68fb ldr r3, [r7, #12] 8013c04: 2200 movs r2, #0 8013c06: 645a str r2, [r3, #68] @ 0x44 huart->RxState = HAL_UART_STATE_BUSY_RX; 8013c08: 68fb ldr r3, [r7, #12] 8013c0a: 2222 movs r2, #34 @ 0x22 8013c0c: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Set the UART DMA transfer complete callback */ huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt; 8013c10: 68fb ldr r3, [r7, #12] 8013c12: 6bdb ldr r3, [r3, #60] @ 0x3c 8013c14: 4a3e ldr r2, [pc, #248] @ (8013d10 ) 8013c16: 629a str r2, [r3, #40] @ 0x28 /* Set the UART DMA Half transfer complete callback */ huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt; 8013c18: 68fb ldr r3, [r7, #12] 8013c1a: 6bdb ldr r3, [r3, #60] @ 0x3c 8013c1c: 4a3d ldr r2, [pc, #244] @ (8013d14 ) 8013c1e: 62da str r2, [r3, #44] @ 0x2c /* Set the DMA error callback */ huart->hdmarx->XferErrorCallback = UART_DMAError; 8013c20: 68fb ldr r3, [r7, #12] 8013c22: 6bdb ldr r3, [r3, #60] @ 0x3c 8013c24: 4a3c ldr r2, [pc, #240] @ (8013d18 ) 8013c26: 631a str r2, [r3, #48] @ 0x30 /* Set the DMA abort callback */ huart->hdmarx->XferAbortCallback = NULL; 8013c28: 68fb ldr r3, [r7, #12] 8013c2a: 6bdb ldr r3, [r3, #60] @ 0x3c 8013c2c: 2200 movs r2, #0 8013c2e: 635a str r2, [r3, #52] @ 0x34 /* Enable the DMA stream */ tmp = (uint32_t *)&pData; 8013c30: f107 0308 add.w r3, r7, #8 8013c34: 65fb str r3, [r7, #92] @ 0x5c HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size); 8013c36: 68fb ldr r3, [r7, #12] 8013c38: 6bd8 ldr r0, [r3, #60] @ 0x3c 8013c3a: 68fb ldr r3, [r7, #12] 8013c3c: 681b ldr r3, [r3, #0] 8013c3e: 3304 adds r3, #4 8013c40: 4619 mov r1, r3 8013c42: 6dfb ldr r3, [r7, #92] @ 0x5c 8013c44: 681a ldr r2, [r3, #0] 8013c46: 88fb ldrh r3, [r7, #6] 8013c48: f7fc f93a bl 800fec0 /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */ __HAL_UART_CLEAR_OREFLAG(huart); 8013c4c: 2300 movs r3, #0 8013c4e: 613b str r3, [r7, #16] 8013c50: 68fb ldr r3, [r7, #12] 8013c52: 681b ldr r3, [r3, #0] 8013c54: 681b ldr r3, [r3, #0] 8013c56: 613b str r3, [r7, #16] 8013c58: 68fb ldr r3, [r7, #12] 8013c5a: 681b ldr r3, [r3, #0] 8013c5c: 685b ldr r3, [r3, #4] 8013c5e: 613b str r3, [r7, #16] 8013c60: 693b ldr r3, [r7, #16] if (huart->Init.Parity != UART_PARITY_NONE) 8013c62: 68fb ldr r3, [r7, #12] 8013c64: 691b ldr r3, [r3, #16] 8013c66: 2b00 cmp r3, #0 8013c68: d019 beq.n 8013c9e { /* Enable the UART Parity Error Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); 8013c6a: 68fb ldr r3, [r7, #12] 8013c6c: 681b ldr r3, [r3, #0] 8013c6e: 330c adds r3, #12 8013c70: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013c72: 6c3b ldr r3, [r7, #64] @ 0x40 8013c74: e853 3f00 ldrex r3, [r3] 8013c78: 63fb str r3, [r7, #60] @ 0x3c return(result); 8013c7a: 6bfb ldr r3, [r7, #60] @ 0x3c 8013c7c: f443 7380 orr.w r3, r3, #256 @ 0x100 8013c80: 65bb str r3, [r7, #88] @ 0x58 8013c82: 68fb ldr r3, [r7, #12] 8013c84: 681b ldr r3, [r3, #0] 8013c86: 330c adds r3, #12 8013c88: 6dba ldr r2, [r7, #88] @ 0x58 8013c8a: 64fa str r2, [r7, #76] @ 0x4c 8013c8c: 64bb str r3, [r7, #72] @ 0x48 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013c8e: 6cb9 ldr r1, [r7, #72] @ 0x48 8013c90: 6cfa ldr r2, [r7, #76] @ 0x4c 8013c92: e841 2300 strex r3, r2, [r1] 8013c96: 647b str r3, [r7, #68] @ 0x44 return(result); 8013c98: 6c7b ldr r3, [r7, #68] @ 0x44 8013c9a: 2b00 cmp r3, #0 8013c9c: d1e5 bne.n 8013c6a } /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013c9e: 68fb ldr r3, [r7, #12] 8013ca0: 681b ldr r3, [r3, #0] 8013ca2: 3314 adds r3, #20 8013ca4: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013ca6: 6afb ldr r3, [r7, #44] @ 0x2c 8013ca8: e853 3f00 ldrex r3, [r3] 8013cac: 62bb str r3, [r7, #40] @ 0x28 return(result); 8013cae: 6abb ldr r3, [r7, #40] @ 0x28 8013cb0: f043 0301 orr.w r3, r3, #1 8013cb4: 657b str r3, [r7, #84] @ 0x54 8013cb6: 68fb ldr r3, [r7, #12] 8013cb8: 681b ldr r3, [r3, #0] 8013cba: 3314 adds r3, #20 8013cbc: 6d7a ldr r2, [r7, #84] @ 0x54 8013cbe: 63ba str r2, [r7, #56] @ 0x38 8013cc0: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013cc2: 6b79 ldr r1, [r7, #52] @ 0x34 8013cc4: 6bba ldr r2, [r7, #56] @ 0x38 8013cc6: e841 2300 strex r3, r2, [r1] 8013cca: 633b str r3, [r7, #48] @ 0x30 return(result); 8013ccc: 6b3b ldr r3, [r7, #48] @ 0x30 8013cce: 2b00 cmp r3, #0 8013cd0: d1e5 bne.n 8013c9e /* Enable the DMA transfer for the receiver request by setting the DMAR bit in the UART CR3 register */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAR); 8013cd2: 68fb ldr r3, [r7, #12] 8013cd4: 681b ldr r3, [r3, #0] 8013cd6: 3314 adds r3, #20 8013cd8: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013cda: 69bb ldr r3, [r7, #24] 8013cdc: e853 3f00 ldrex r3, [r3] 8013ce0: 617b str r3, [r7, #20] return(result); 8013ce2: 697b ldr r3, [r7, #20] 8013ce4: f043 0340 orr.w r3, r3, #64 @ 0x40 8013ce8: 653b str r3, [r7, #80] @ 0x50 8013cea: 68fb ldr r3, [r7, #12] 8013cec: 681b ldr r3, [r3, #0] 8013cee: 3314 adds r3, #20 8013cf0: 6d3a ldr r2, [r7, #80] @ 0x50 8013cf2: 627a str r2, [r7, #36] @ 0x24 8013cf4: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013cf6: 6a39 ldr r1, [r7, #32] 8013cf8: 6a7a ldr r2, [r7, #36] @ 0x24 8013cfa: e841 2300 strex r3, r2, [r1] 8013cfe: 61fb str r3, [r7, #28] return(result); 8013d00: 69fb ldr r3, [r7, #28] 8013d02: 2b00 cmp r3, #0 8013d04: d1e5 bne.n 8013cd2 return HAL_OK; 8013d06: 2300 movs r3, #0 } 8013d08: 4618 mov r0, r3 8013d0a: 3760 adds r7, #96 @ 0x60 8013d0c: 46bd mov sp, r7 8013d0e: bd80 pop {r7, pc} 8013d10: 0801397b .word 0x0801397b 8013d14: 08013aa7 .word 0x08013aa7 8013d18: 08013ae3 .word 0x08013ae3 08013d1c : * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion). * @param huart UART handle. * @retval None */ static void UART_EndTxTransfer(UART_HandleTypeDef *huart) { 8013d1c: b480 push {r7} 8013d1e: b089 sub sp, #36 @ 0x24 8013d20: af00 add r7, sp, #0 8013d22: 6078 str r0, [r7, #4] /* Disable TXEIE and TCIE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); 8013d24: 687b ldr r3, [r7, #4] 8013d26: 681b ldr r3, [r3, #0] 8013d28: 330c adds r3, #12 8013d2a: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013d2c: 68fb ldr r3, [r7, #12] 8013d2e: e853 3f00 ldrex r3, [r3] 8013d32: 60bb str r3, [r7, #8] return(result); 8013d34: 68bb ldr r3, [r7, #8] 8013d36: f023 03c0 bic.w r3, r3, #192 @ 0xc0 8013d3a: 61fb str r3, [r7, #28] 8013d3c: 687b ldr r3, [r7, #4] 8013d3e: 681b ldr r3, [r3, #0] 8013d40: 330c adds r3, #12 8013d42: 69fa ldr r2, [r7, #28] 8013d44: 61ba str r2, [r7, #24] 8013d46: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013d48: 6979 ldr r1, [r7, #20] 8013d4a: 69ba ldr r2, [r7, #24] 8013d4c: e841 2300 strex r3, r2, [r1] 8013d50: 613b str r3, [r7, #16] return(result); 8013d52: 693b ldr r3, [r7, #16] 8013d54: 2b00 cmp r3, #0 8013d56: d1e5 bne.n 8013d24 /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; 8013d58: 687b ldr r3, [r7, #4] 8013d5a: 2220 movs r2, #32 8013d5c: f883 2041 strb.w r2, [r3, #65] @ 0x41 } 8013d60: bf00 nop 8013d62: 3724 adds r7, #36 @ 0x24 8013d64: 46bd mov sp, r7 8013d66: bc80 pop {r7} 8013d68: 4770 bx lr 08013d6a : * @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) { 8013d6a: b480 push {r7} 8013d6c: b095 sub sp, #84 @ 0x54 8013d6e: af00 add r7, sp, #0 8013d70: 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)); 8013d72: 687b ldr r3, [r7, #4] 8013d74: 681b ldr r3, [r3, #0] 8013d76: 330c adds r3, #12 8013d78: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013d7a: 6b7b ldr r3, [r7, #52] @ 0x34 8013d7c: e853 3f00 ldrex r3, [r3] 8013d80: 633b str r3, [r7, #48] @ 0x30 return(result); 8013d82: 6b3b ldr r3, [r7, #48] @ 0x30 8013d84: f423 7390 bic.w r3, r3, #288 @ 0x120 8013d88: 64fb str r3, [r7, #76] @ 0x4c 8013d8a: 687b ldr r3, [r7, #4] 8013d8c: 681b ldr r3, [r3, #0] 8013d8e: 330c adds r3, #12 8013d90: 6cfa ldr r2, [r7, #76] @ 0x4c 8013d92: 643a str r2, [r7, #64] @ 0x40 8013d94: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013d96: 6bf9 ldr r1, [r7, #60] @ 0x3c 8013d98: 6c3a ldr r2, [r7, #64] @ 0x40 8013d9a: e841 2300 strex r3, r2, [r1] 8013d9e: 63bb str r3, [r7, #56] @ 0x38 return(result); 8013da0: 6bbb ldr r3, [r7, #56] @ 0x38 8013da2: 2b00 cmp r3, #0 8013da4: d1e5 bne.n 8013d72 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); 8013da6: 687b ldr r3, [r7, #4] 8013da8: 681b ldr r3, [r3, #0] 8013daa: 3314 adds r3, #20 8013dac: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013dae: 6a3b ldr r3, [r7, #32] 8013db0: e853 3f00 ldrex r3, [r3] 8013db4: 61fb str r3, [r7, #28] return(result); 8013db6: 69fb ldr r3, [r7, #28] 8013db8: f023 0301 bic.w r3, r3, #1 8013dbc: 64bb str r3, [r7, #72] @ 0x48 8013dbe: 687b ldr r3, [r7, #4] 8013dc0: 681b ldr r3, [r3, #0] 8013dc2: 3314 adds r3, #20 8013dc4: 6cba ldr r2, [r7, #72] @ 0x48 8013dc6: 62fa str r2, [r7, #44] @ 0x2c 8013dc8: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013dca: 6ab9 ldr r1, [r7, #40] @ 0x28 8013dcc: 6afa ldr r2, [r7, #44] @ 0x2c 8013dce: e841 2300 strex r3, r2, [r1] 8013dd2: 627b str r3, [r7, #36] @ 0x24 return(result); 8013dd4: 6a7b ldr r3, [r7, #36] @ 0x24 8013dd6: 2b00 cmp r3, #0 8013dd8: d1e5 bne.n 8013da6 /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) 8013dda: 687b ldr r3, [r7, #4] 8013ddc: 6b1b ldr r3, [r3, #48] @ 0x30 8013dde: 2b01 cmp r3, #1 8013de0: d119 bne.n 8013e16 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8013de2: 687b ldr r3, [r7, #4] 8013de4: 681b ldr r3, [r3, #0] 8013de6: 330c adds r3, #12 8013de8: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 8013dea: 68fb ldr r3, [r7, #12] 8013dec: e853 3f00 ldrex r3, [r3] 8013df0: 60bb str r3, [r7, #8] return(result); 8013df2: 68bb ldr r3, [r7, #8] 8013df4: f023 0310 bic.w r3, r3, #16 8013df8: 647b str r3, [r7, #68] @ 0x44 8013dfa: 687b ldr r3, [r7, #4] 8013dfc: 681b ldr r3, [r3, #0] 8013dfe: 330c adds r3, #12 8013e00: 6c7a ldr r2, [r7, #68] @ 0x44 8013e02: 61ba str r2, [r7, #24] 8013e04: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8013e06: 6979 ldr r1, [r7, #20] 8013e08: 69ba ldr r2, [r7, #24] 8013e0a: e841 2300 strex r3, r2, [r1] 8013e0e: 613b str r3, [r7, #16] return(result); 8013e10: 693b ldr r3, [r7, #16] 8013e12: 2b00 cmp r3, #0 8013e14: d1e5 bne.n 8013de2 } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 8013e16: 687b ldr r3, [r7, #4] 8013e18: 2220 movs r2, #32 8013e1a: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 8013e1e: 687b ldr r3, [r7, #4] 8013e20: 2200 movs r2, #0 8013e22: 631a str r2, [r3, #48] @ 0x30 } 8013e24: bf00 nop 8013e26: 3754 adds r7, #84 @ 0x54 8013e28: 46bd mov sp, r7 8013e2a: bc80 pop {r7} 8013e2c: 4770 bx lr 08013e2e : * @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) { 8013e2e: b580 push {r7, lr} 8013e30: b084 sub sp, #16 8013e32: af00 add r7, sp, #0 8013e34: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 8013e36: 687b ldr r3, [r7, #4] 8013e38: 6a5b ldr r3, [r3, #36] @ 0x24 8013e3a: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; 8013e3c: 68fb ldr r3, [r7, #12] 8013e3e: 2200 movs r2, #0 8013e40: 85da strh r2, [r3, #46] @ 0x2e huart->TxXferCount = 0x00U; 8013e42: 68fb ldr r3, [r7, #12] 8013e44: 2200 movs r2, #0 8013e46: 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); 8013e48: 68f8 ldr r0, [r7, #12] 8013e4a: f7f7 ff1d bl 800bc88 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } 8013e4e: bf00 nop 8013e50: 3710 adds r7, #16 8013e52: 46bd mov sp, r7 8013e54: bd80 pop {r7, pc} 08013e56 : * @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) { 8013e56: b480 push {r7} 8013e58: b085 sub sp, #20 8013e5a: af00 add r7, sp, #0 8013e5c: 6078 str r0, [r7, #4] const uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) 8013e5e: 687b ldr r3, [r7, #4] 8013e60: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 8013e64: b2db uxtb r3, r3 8013e66: 2b21 cmp r3, #33 @ 0x21 8013e68: d13e bne.n 8013ee8 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) 8013e6a: 687b ldr r3, [r7, #4] 8013e6c: 689b ldr r3, [r3, #8] 8013e6e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013e72: d114 bne.n 8013e9e 8013e74: 687b ldr r3, [r7, #4] 8013e76: 691b ldr r3, [r3, #16] 8013e78: 2b00 cmp r3, #0 8013e7a: d110 bne.n 8013e9e { tmp = (const uint16_t *) huart->pTxBuffPtr; 8013e7c: 687b ldr r3, [r7, #4] 8013e7e: 6a1b ldr r3, [r3, #32] 8013e80: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); 8013e82: 68fb ldr r3, [r7, #12] 8013e84: 881b ldrh r3, [r3, #0] 8013e86: 461a mov r2, r3 8013e88: 687b ldr r3, [r7, #4] 8013e8a: 681b ldr r3, [r3, #0] 8013e8c: f3c2 0208 ubfx r2, r2, #0, #9 8013e90: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; 8013e92: 687b ldr r3, [r7, #4] 8013e94: 6a1b ldr r3, [r3, #32] 8013e96: 1c9a adds r2, r3, #2 8013e98: 687b ldr r3, [r7, #4] 8013e9a: 621a str r2, [r3, #32] 8013e9c: e008 b.n 8013eb0 } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); 8013e9e: 687b ldr r3, [r7, #4] 8013ea0: 6a1b ldr r3, [r3, #32] 8013ea2: 1c59 adds r1, r3, #1 8013ea4: 687a ldr r2, [r7, #4] 8013ea6: 6211 str r1, [r2, #32] 8013ea8: 781a ldrb r2, [r3, #0] 8013eaa: 687b ldr r3, [r7, #4] 8013eac: 681b ldr r3, [r3, #0] 8013eae: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) 8013eb0: 687b ldr r3, [r7, #4] 8013eb2: 8cdb ldrh r3, [r3, #38] @ 0x26 8013eb4: b29b uxth r3, r3 8013eb6: 3b01 subs r3, #1 8013eb8: b29b uxth r3, r3 8013eba: 687a ldr r2, [r7, #4] 8013ebc: 4619 mov r1, r3 8013ebe: 84d1 strh r1, [r2, #38] @ 0x26 8013ec0: 2b00 cmp r3, #0 8013ec2: d10f bne.n 8013ee4 { /* Disable the UART Transmit Data Register Empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); 8013ec4: 687b ldr r3, [r7, #4] 8013ec6: 681b ldr r3, [r3, #0] 8013ec8: 68da ldr r2, [r3, #12] 8013eca: 687b ldr r3, [r7, #4] 8013ecc: 681b ldr r3, [r3, #0] 8013ece: f022 0280 bic.w r2, r2, #128 @ 0x80 8013ed2: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); 8013ed4: 687b ldr r3, [r7, #4] 8013ed6: 681b ldr r3, [r3, #0] 8013ed8: 68da ldr r2, [r3, #12] 8013eda: 687b ldr r3, [r7, #4] 8013edc: 681b ldr r3, [r3, #0] 8013ede: f042 0240 orr.w r2, r2, #64 @ 0x40 8013ee2: 60da str r2, [r3, #12] } return HAL_OK; 8013ee4: 2300 movs r3, #0 8013ee6: e000 b.n 8013eea } else { return HAL_BUSY; 8013ee8: 2302 movs r3, #2 } } 8013eea: 4618 mov r0, r3 8013eec: 3714 adds r7, #20 8013eee: 46bd mov sp, r7 8013ef0: bc80 pop {r7} 8013ef2: 4770 bx lr 08013ef4 : * @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) { 8013ef4: b580 push {r7, lr} 8013ef6: b082 sub sp, #8 8013ef8: af00 add r7, sp, #0 8013efa: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); 8013efc: 687b ldr r3, [r7, #4] 8013efe: 681b ldr r3, [r3, #0] 8013f00: 68da ldr r2, [r3, #12] 8013f02: 687b ldr r3, [r7, #4] 8013f04: 681b ldr r3, [r3, #0] 8013f06: f022 0240 bic.w r2, r2, #64 @ 0x40 8013f0a: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; 8013f0c: 687b ldr r3, [r7, #4] 8013f0e: 2220 movs r2, #32 8013f10: 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); 8013f14: 6878 ldr r0, [r7, #4] 8013f16: f7f8 fe7b bl 800cc10 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; 8013f1a: 2300 movs r3, #0 } 8013f1c: 4618 mov r0, r3 8013f1e: 3708 adds r7, #8 8013f20: 46bd mov sp, r7 8013f22: bd80 pop {r7, pc} 08013f24 : * @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) { 8013f24: b580 push {r7, lr} 8013f26: b08c sub sp, #48 @ 0x30 8013f28: af00 add r7, sp, #0 8013f2a: 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) 8013f2c: 687b ldr r3, [r7, #4] 8013f2e: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 8013f32: b2db uxtb r3, r3 8013f34: 2b22 cmp r3, #34 @ 0x22 8013f36: f040 80ae bne.w 8014096 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) 8013f3a: 687b ldr r3, [r7, #4] 8013f3c: 689b ldr r3, [r3, #8] 8013f3e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013f42: d117 bne.n 8013f74 8013f44: 687b ldr r3, [r7, #4] 8013f46: 691b ldr r3, [r3, #16] 8013f48: 2b00 cmp r3, #0 8013f4a: d113 bne.n 8013f74 { pdata8bits = NULL; 8013f4c: 2300 movs r3, #0 8013f4e: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = (uint16_t *) huart->pRxBuffPtr; 8013f50: 687b ldr r3, [r7, #4] 8013f52: 6a9b ldr r3, [r3, #40] @ 0x28 8013f54: 62bb str r3, [r7, #40] @ 0x28 *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); 8013f56: 687b ldr r3, [r7, #4] 8013f58: 681b ldr r3, [r3, #0] 8013f5a: 685b ldr r3, [r3, #4] 8013f5c: b29b uxth r3, r3 8013f5e: f3c3 0308 ubfx r3, r3, #0, #9 8013f62: b29a uxth r2, r3 8013f64: 6abb ldr r3, [r7, #40] @ 0x28 8013f66: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; 8013f68: 687b ldr r3, [r7, #4] 8013f6a: 6a9b ldr r3, [r3, #40] @ 0x28 8013f6c: 1c9a adds r2, r3, #2 8013f6e: 687b ldr r3, [r7, #4] 8013f70: 629a str r2, [r3, #40] @ 0x28 8013f72: e026 b.n 8013fc2 } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; 8013f74: 687b ldr r3, [r7, #4] 8013f76: 6a9b ldr r3, [r3, #40] @ 0x28 8013f78: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = NULL; 8013f7a: 2300 movs r3, #0 8013f7c: 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))) 8013f7e: 687b ldr r3, [r7, #4] 8013f80: 689b ldr r3, [r3, #8] 8013f82: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 8013f86: d007 beq.n 8013f98 8013f88: 687b ldr r3, [r7, #4] 8013f8a: 689b ldr r3, [r3, #8] 8013f8c: 2b00 cmp r3, #0 8013f8e: d10a bne.n 8013fa6 8013f90: 687b ldr r3, [r7, #4] 8013f92: 691b ldr r3, [r3, #16] 8013f94: 2b00 cmp r3, #0 8013f96: d106 bne.n 8013fa6 { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); 8013f98: 687b ldr r3, [r7, #4] 8013f9a: 681b ldr r3, [r3, #0] 8013f9c: 685b ldr r3, [r3, #4] 8013f9e: b2da uxtb r2, r3 8013fa0: 6afb ldr r3, [r7, #44] @ 0x2c 8013fa2: 701a strb r2, [r3, #0] 8013fa4: e008 b.n 8013fb8 } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); 8013fa6: 687b ldr r3, [r7, #4] 8013fa8: 681b ldr r3, [r3, #0] 8013faa: 685b ldr r3, [r3, #4] 8013fac: b2db uxtb r3, r3 8013fae: f003 037f and.w r3, r3, #127 @ 0x7f 8013fb2: b2da uxtb r2, r3 8013fb4: 6afb ldr r3, [r7, #44] @ 0x2c 8013fb6: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; 8013fb8: 687b ldr r3, [r7, #4] 8013fba: 6a9b ldr r3, [r3, #40] @ 0x28 8013fbc: 1c5a adds r2, r3, #1 8013fbe: 687b ldr r3, [r7, #4] 8013fc0: 629a str r2, [r3, #40] @ 0x28 } if (--huart->RxXferCount == 0U) 8013fc2: 687b ldr r3, [r7, #4] 8013fc4: 8ddb ldrh r3, [r3, #46] @ 0x2e 8013fc6: b29b uxth r3, r3 8013fc8: 3b01 subs r3, #1 8013fca: b29b uxth r3, r3 8013fcc: 687a ldr r2, [r7, #4] 8013fce: 4619 mov r1, r3 8013fd0: 85d1 strh r1, [r2, #46] @ 0x2e 8013fd2: 2b00 cmp r3, #0 8013fd4: d15d bne.n 8014092 { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); 8013fd6: 687b ldr r3, [r7, #4] 8013fd8: 681b ldr r3, [r3, #0] 8013fda: 68da ldr r2, [r3, #12] 8013fdc: 687b ldr r3, [r7, #4] 8013fde: 681b ldr r3, [r3, #0] 8013fe0: f022 0220 bic.w r2, r2, #32 8013fe4: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); 8013fe6: 687b ldr r3, [r7, #4] 8013fe8: 681b ldr r3, [r3, #0] 8013fea: 68da ldr r2, [r3, #12] 8013fec: 687b ldr r3, [r7, #4] 8013fee: 681b ldr r3, [r3, #0] 8013ff0: f422 7280 bic.w r2, r2, #256 @ 0x100 8013ff4: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); 8013ff6: 687b ldr r3, [r7, #4] 8013ff8: 681b ldr r3, [r3, #0] 8013ffa: 695a ldr r2, [r3, #20] 8013ffc: 687b ldr r3, [r7, #4] 8013ffe: 681b ldr r3, [r3, #0] 8014000: f022 0201 bic.w r2, r2, #1 8014004: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; 8014006: 687b ldr r3, [r7, #4] 8014008: 2220 movs r2, #32 801400a: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; 801400e: 687b ldr r3, [r7, #4] 8014010: 2200 movs r2, #0 8014012: 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) 8014014: 687b ldr r3, [r7, #4] 8014016: 6b1b ldr r3, [r3, #48] @ 0x30 8014018: 2b01 cmp r3, #1 801401a: d135 bne.n 8014088 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; 801401c: 687b ldr r3, [r7, #4] 801401e: 2200 movs r2, #0 8014020: 631a str r2, [r3, #48] @ 0x30 /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); 8014022: 687b ldr r3, [r7, #4] 8014024: 681b ldr r3, [r3, #0] 8014026: 330c adds r3, #12 8014028: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); 801402a: 697b ldr r3, [r7, #20] 801402c: e853 3f00 ldrex r3, [r3] 8014030: 613b str r3, [r7, #16] return(result); 8014032: 693b ldr r3, [r7, #16] 8014034: f023 0310 bic.w r3, r3, #16 8014038: 627b str r3, [r7, #36] @ 0x24 801403a: 687b ldr r3, [r7, #4] 801403c: 681b ldr r3, [r3, #0] 801403e: 330c adds r3, #12 8014040: 6a7a ldr r2, [r7, #36] @ 0x24 8014042: 623a str r2, [r7, #32] 8014044: 61fb str r3, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); 8014046: 69f9 ldr r1, [r7, #28] 8014048: 6a3a ldr r2, [r7, #32] 801404a: e841 2300 strex r3, r2, [r1] 801404e: 61bb str r3, [r7, #24] return(result); 8014050: 69bb ldr r3, [r7, #24] 8014052: 2b00 cmp r3, #0 8014054: d1e5 bne.n 8014022 /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) 8014056: 687b ldr r3, [r7, #4] 8014058: 681b ldr r3, [r3, #0] 801405a: 681b ldr r3, [r3, #0] 801405c: f003 0310 and.w r3, r3, #16 8014060: 2b10 cmp r3, #16 8014062: d10a bne.n 801407a { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); 8014064: 2300 movs r3, #0 8014066: 60fb str r3, [r7, #12] 8014068: 687b ldr r3, [r7, #4] 801406a: 681b ldr r3, [r3, #0] 801406c: 681b ldr r3, [r3, #0] 801406e: 60fb str r3, [r7, #12] 8014070: 687b ldr r3, [r7, #4] 8014072: 681b ldr r3, [r3, #0] 8014074: 685b ldr r3, [r3, #4] 8014076: 60fb str r3, [r7, #12] 8014078: 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); 801407a: 687b ldr r3, [r7, #4] 801407c: 8d9b ldrh r3, [r3, #44] @ 0x2c 801407e: 4619 mov r1, r3 8014080: 6878 ldr r0, [r7, #4] 8014082: f7f8 fd4b bl 800cb1c 8014086: e002 b.n 801408e #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); 8014088: 6878 ldr r0, [r7, #4] 801408a: f7ff fbfe bl 801388a #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; 801408e: 2300 movs r3, #0 8014090: e002 b.n 8014098 } return HAL_OK; 8014092: 2300 movs r3, #0 8014094: e000 b.n 8014098 } else { return HAL_BUSY; 8014096: 2302 movs r3, #2 } } 8014098: 4618 mov r0, r3 801409a: 3730 adds r7, #48 @ 0x30 801409c: 46bd mov sp, r7 801409e: bd80 pop {r7, pc} 080140a0 : * @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) { 80140a0: b580 push {r7, lr} 80140a2: b084 sub sp, #16 80140a4: af00 add r7, sp, #0 80140a6: 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); 80140a8: 687b ldr r3, [r7, #4] 80140aa: 681b ldr r3, [r3, #0] 80140ac: 691b ldr r3, [r3, #16] 80140ae: f423 5140 bic.w r1, r3, #12288 @ 0x3000 80140b2: 687b ldr r3, [r7, #4] 80140b4: 68da ldr r2, [r3, #12] 80140b6: 687b ldr r3, [r7, #4] 80140b8: 681b ldr r3, [r3, #0] 80140ba: 430a orrs r2, r1 80140bc: 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; 80140be: 687b ldr r3, [r7, #4] 80140c0: 689a ldr r2, [r3, #8] 80140c2: 687b ldr r3, [r7, #4] 80140c4: 691b ldr r3, [r3, #16] 80140c6: 431a orrs r2, r3 80140c8: 687b ldr r3, [r7, #4] 80140ca: 695b ldr r3, [r3, #20] 80140cc: 4313 orrs r3, r2 80140ce: 60bb str r3, [r7, #8] MODIFY_REG(huart->Instance->CR1, 80140d0: 687b ldr r3, [r7, #4] 80140d2: 681b ldr r3, [r3, #0] 80140d4: 68db ldr r3, [r3, #12] 80140d6: f423 53b0 bic.w r3, r3, #5632 @ 0x1600 80140da: f023 030c bic.w r3, r3, #12 80140de: 687a ldr r2, [r7, #4] 80140e0: 6812 ldr r2, [r2, #0] 80140e2: 68b9 ldr r1, [r7, #8] 80140e4: 430b orrs r3, r1 80140e6: 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); 80140e8: 687b ldr r3, [r7, #4] 80140ea: 681b ldr r3, [r3, #0] 80140ec: 695b ldr r3, [r3, #20] 80140ee: f423 7140 bic.w r1, r3, #768 @ 0x300 80140f2: 687b ldr r3, [r7, #4] 80140f4: 699a ldr r2, [r3, #24] 80140f6: 687b ldr r3, [r7, #4] 80140f8: 681b ldr r3, [r3, #0] 80140fa: 430a orrs r2, r1 80140fc: 615a str r2, [r3, #20] if(huart->Instance == USART1) 80140fe: 687b ldr r3, [r7, #4] 8014100: 681b ldr r3, [r3, #0] 8014102: 4a2c ldr r2, [pc, #176] @ (80141b4 ) 8014104: 4293 cmp r3, r2 8014106: d103 bne.n 8014110 { pclk = HAL_RCC_GetPCLK2Freq(); 8014108: f7fd fa5c bl 80115c4 801410c: 60f8 str r0, [r7, #12] 801410e: e002 b.n 8014116 } else { pclk = HAL_RCC_GetPCLK1Freq(); 8014110: f7fd fa44 bl 801159c 8014114: 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); 8014116: 68fa ldr r2, [r7, #12] 8014118: 4613 mov r3, r2 801411a: 009b lsls r3, r3, #2 801411c: 4413 add r3, r2 801411e: 009a lsls r2, r3, #2 8014120: 441a add r2, r3 8014122: 687b ldr r3, [r7, #4] 8014124: 685b ldr r3, [r3, #4] 8014126: 009b lsls r3, r3, #2 8014128: fbb2 f3f3 udiv r3, r2, r3 801412c: 4a22 ldr r2, [pc, #136] @ (80141b8 ) 801412e: fba2 2303 umull r2, r3, r2, r3 8014132: 095b lsrs r3, r3, #5 8014134: 0119 lsls r1, r3, #4 8014136: 68fa ldr r2, [r7, #12] 8014138: 4613 mov r3, r2 801413a: 009b lsls r3, r3, #2 801413c: 4413 add r3, r2 801413e: 009a lsls r2, r3, #2 8014140: 441a add r2, r3 8014142: 687b ldr r3, [r7, #4] 8014144: 685b ldr r3, [r3, #4] 8014146: 009b lsls r3, r3, #2 8014148: fbb2 f2f3 udiv r2, r2, r3 801414c: 4b1a ldr r3, [pc, #104] @ (80141b8 ) 801414e: fba3 0302 umull r0, r3, r3, r2 8014152: 095b lsrs r3, r3, #5 8014154: 2064 movs r0, #100 @ 0x64 8014156: fb00 f303 mul.w r3, r0, r3 801415a: 1ad3 subs r3, r2, r3 801415c: 011b lsls r3, r3, #4 801415e: 3332 adds r3, #50 @ 0x32 8014160: 4a15 ldr r2, [pc, #84] @ (80141b8 ) 8014162: fba2 2303 umull r2, r3, r2, r3 8014166: 095b lsrs r3, r3, #5 8014168: f003 03f0 and.w r3, r3, #240 @ 0xf0 801416c: 4419 add r1, r3 801416e: 68fa ldr r2, [r7, #12] 8014170: 4613 mov r3, r2 8014172: 009b lsls r3, r3, #2 8014174: 4413 add r3, r2 8014176: 009a lsls r2, r3, #2 8014178: 441a add r2, r3 801417a: 687b ldr r3, [r7, #4] 801417c: 685b ldr r3, [r3, #4] 801417e: 009b lsls r3, r3, #2 8014180: fbb2 f2f3 udiv r2, r2, r3 8014184: 4b0c ldr r3, [pc, #48] @ (80141b8 ) 8014186: fba3 0302 umull r0, r3, r3, r2 801418a: 095b lsrs r3, r3, #5 801418c: 2064 movs r0, #100 @ 0x64 801418e: fb00 f303 mul.w r3, r0, r3 8014192: 1ad3 subs r3, r2, r3 8014194: 011b lsls r3, r3, #4 8014196: 3332 adds r3, #50 @ 0x32 8014198: 4a07 ldr r2, [pc, #28] @ (80141b8 ) 801419a: fba2 2303 umull r2, r3, r2, r3 801419e: 095b lsrs r3, r3, #5 80141a0: f003 020f and.w r2, r3, #15 80141a4: 687b ldr r3, [r7, #4] 80141a6: 681b ldr r3, [r3, #0] 80141a8: 440a add r2, r1 80141aa: 609a str r2, [r3, #8] #endif /* USART_CR1_OVER8 */ } 80141ac: bf00 nop 80141ae: 3710 adds r7, #16 80141b0: 46bd mov sp, r7 80141b2: bd80 pop {r7, pc} 80141b4: 40013800 .word 0x40013800 80141b8: 51eb851f .word 0x51eb851f 080141bc <__cvt>: 80141bc: 2b00 cmp r3, #0 80141be: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 80141c2: 461d mov r5, r3 80141c4: bfbb ittet lt 80141c6: f103 4300 addlt.w r3, r3, #2147483648 @ 0x80000000 80141ca: 461d movlt r5, r3 80141cc: 2300 movge r3, #0 80141ce: 232d movlt r3, #45 @ 0x2d 80141d0: b088 sub sp, #32 80141d2: 4614 mov r4, r2 80141d4: bfb8 it lt 80141d6: 4614 movlt r4, r2 80141d8: 9a12 ldr r2, [sp, #72] @ 0x48 80141da: 9e10 ldr r6, [sp, #64] @ 0x40 80141dc: 7013 strb r3, [r2, #0] 80141de: 9b14 ldr r3, [sp, #80] @ 0x50 80141e0: f8dd a04c ldr.w sl, [sp, #76] @ 0x4c 80141e4: f023 0820 bic.w r8, r3, #32 80141e8: f1b8 0f46 cmp.w r8, #70 @ 0x46 80141ec: d005 beq.n 80141fa <__cvt+0x3e> 80141ee: f1b8 0f45 cmp.w r8, #69 @ 0x45 80141f2: d100 bne.n 80141f6 <__cvt+0x3a> 80141f4: 3601 adds r6, #1 80141f6: 2302 movs r3, #2 80141f8: e000 b.n 80141fc <__cvt+0x40> 80141fa: 2303 movs r3, #3 80141fc: aa07 add r2, sp, #28 80141fe: 9204 str r2, [sp, #16] 8014200: aa06 add r2, sp, #24 8014202: e9cd a202 strd sl, r2, [sp, #8] 8014206: e9cd 3600 strd r3, r6, [sp] 801420a: 4622 mov r2, r4 801420c: 462b mov r3, r5 801420e: f000 fe3b bl 8014e88 <_dtoa_r> 8014212: f1b8 0f47 cmp.w r8, #71 @ 0x47 8014216: 4607 mov r7, r0 8014218: d119 bne.n 801424e <__cvt+0x92> 801421a: 9b11 ldr r3, [sp, #68] @ 0x44 801421c: 07db lsls r3, r3, #31 801421e: d50e bpl.n 801423e <__cvt+0x82> 8014220: eb00 0906 add.w r9, r0, r6 8014224: 2200 movs r2, #0 8014226: 2300 movs r3, #0 8014228: 4620 mov r0, r4 801422a: 4629 mov r1, r5 801422c: f7f4 fc28 bl 8008a80 <__aeabi_dcmpeq> 8014230: b108 cbz r0, 8014236 <__cvt+0x7a> 8014232: f8cd 901c str.w r9, [sp, #28] 8014236: 2230 movs r2, #48 @ 0x30 8014238: 9b07 ldr r3, [sp, #28] 801423a: 454b cmp r3, r9 801423c: d31e bcc.n 801427c <__cvt+0xc0> 801423e: 4638 mov r0, r7 8014240: 9b07 ldr r3, [sp, #28] 8014242: 9a15 ldr r2, [sp, #84] @ 0x54 8014244: 1bdb subs r3, r3, r7 8014246: 6013 str r3, [r2, #0] 8014248: b008 add sp, #32 801424a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 801424e: f1b8 0f46 cmp.w r8, #70 @ 0x46 8014252: eb00 0906 add.w r9, r0, r6 8014256: d1e5 bne.n 8014224 <__cvt+0x68> 8014258: 7803 ldrb r3, [r0, #0] 801425a: 2b30 cmp r3, #48 @ 0x30 801425c: d10a bne.n 8014274 <__cvt+0xb8> 801425e: 2200 movs r2, #0 8014260: 2300 movs r3, #0 8014262: 4620 mov r0, r4 8014264: 4629 mov r1, r5 8014266: f7f4 fc0b bl 8008a80 <__aeabi_dcmpeq> 801426a: b918 cbnz r0, 8014274 <__cvt+0xb8> 801426c: f1c6 0601 rsb r6, r6, #1 8014270: f8ca 6000 str.w r6, [sl] 8014274: f8da 3000 ldr.w r3, [sl] 8014278: 4499 add r9, r3 801427a: e7d3 b.n 8014224 <__cvt+0x68> 801427c: 1c59 adds r1, r3, #1 801427e: 9107 str r1, [sp, #28] 8014280: 701a strb r2, [r3, #0] 8014282: e7d9 b.n 8014238 <__cvt+0x7c> 08014284 <__exponent>: 8014284: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8014286: 2900 cmp r1, #0 8014288: bfb6 itet lt 801428a: 232d movlt r3, #45 @ 0x2d 801428c: 232b movge r3, #43 @ 0x2b 801428e: 4249 neglt r1, r1 8014290: 2909 cmp r1, #9 8014292: 7002 strb r2, [r0, #0] 8014294: 7043 strb r3, [r0, #1] 8014296: dd29 ble.n 80142ec <__exponent+0x68> 8014298: f10d 0307 add.w r3, sp, #7 801429c: 461d mov r5, r3 801429e: 270a movs r7, #10 80142a0: fbb1 f6f7 udiv r6, r1, r7 80142a4: 461a mov r2, r3 80142a6: fb07 1416 mls r4, r7, r6, r1 80142aa: 3430 adds r4, #48 @ 0x30 80142ac: f802 4c01 strb.w r4, [r2, #-1] 80142b0: 460c mov r4, r1 80142b2: 2c63 cmp r4, #99 @ 0x63 80142b4: 4631 mov r1, r6 80142b6: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff 80142ba: dcf1 bgt.n 80142a0 <__exponent+0x1c> 80142bc: 3130 adds r1, #48 @ 0x30 80142be: 1e94 subs r4, r2, #2 80142c0: f803 1c01 strb.w r1, [r3, #-1] 80142c4: 4623 mov r3, r4 80142c6: 1c41 adds r1, r0, #1 80142c8: 42ab cmp r3, r5 80142ca: d30a bcc.n 80142e2 <__exponent+0x5e> 80142cc: f10d 0309 add.w r3, sp, #9 80142d0: 1a9b subs r3, r3, r2 80142d2: 42ac cmp r4, r5 80142d4: bf88 it hi 80142d6: 2300 movhi r3, #0 80142d8: 3302 adds r3, #2 80142da: 4403 add r3, r0 80142dc: 1a18 subs r0, r3, r0 80142de: b003 add sp, #12 80142e0: bdf0 pop {r4, r5, r6, r7, pc} 80142e2: f813 6b01 ldrb.w r6, [r3], #1 80142e6: f801 6f01 strb.w r6, [r1, #1]! 80142ea: e7ed b.n 80142c8 <__exponent+0x44> 80142ec: 2330 movs r3, #48 @ 0x30 80142ee: 3130 adds r1, #48 @ 0x30 80142f0: 7083 strb r3, [r0, #2] 80142f2: 70c1 strb r1, [r0, #3] 80142f4: 1d03 adds r3, r0, #4 80142f6: e7f1 b.n 80142dc <__exponent+0x58> 080142f8 <_printf_float>: 80142f8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 80142fc: b091 sub sp, #68 @ 0x44 80142fe: 460c mov r4, r1 8014300: f8dd 8068 ldr.w r8, [sp, #104] @ 0x68 8014304: 4616 mov r6, r2 8014306: 461f mov r7, r3 8014308: 4605 mov r5, r0 801430a: f000 fcf7 bl 8014cfc <_localeconv_r> 801430e: 6803 ldr r3, [r0, #0] 8014310: 4618 mov r0, r3 8014312: 9308 str r3, [sp, #32] 8014314: f7f3 ff88 bl 8008228 8014318: 2300 movs r3, #0 801431a: 930e str r3, [sp, #56] @ 0x38 801431c: f8d8 3000 ldr.w r3, [r8] 8014320: 9009 str r0, [sp, #36] @ 0x24 8014322: 3307 adds r3, #7 8014324: f023 0307 bic.w r3, r3, #7 8014328: f103 0208 add.w r2, r3, #8 801432c: f894 a018 ldrb.w sl, [r4, #24] 8014330: f8d4 b000 ldr.w fp, [r4] 8014334: f8c8 2000 str.w r2, [r8] 8014338: e9d3 8900 ldrd r8, r9, [r3] 801433c: f029 4300 bic.w r3, r9, #2147483648 @ 0x80000000 8014340: 930b str r3, [sp, #44] @ 0x2c 8014342: f8cd 8028 str.w r8, [sp, #40] @ 0x28 8014346: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 801434a: e9dd 010a ldrd r0, r1, [sp, #40] @ 0x28 801434e: e9c4 8912 strd r8, r9, [r4, #72] @ 0x48 8014352: 4b9c ldr r3, [pc, #624] @ (80145c4 <_printf_float+0x2cc>) 8014354: f7f4 fbc6 bl 8008ae4 <__aeabi_dcmpun> 8014358: bb70 cbnz r0, 80143b8 <_printf_float+0xc0> 801435a: e9dd 010a ldrd r0, r1, [sp, #40] @ 0x28 801435e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8014362: 4b98 ldr r3, [pc, #608] @ (80145c4 <_printf_float+0x2cc>) 8014364: f7f4 fba0 bl 8008aa8 <__aeabi_dcmple> 8014368: bb30 cbnz r0, 80143b8 <_printf_float+0xc0> 801436a: 2200 movs r2, #0 801436c: 2300 movs r3, #0 801436e: 4640 mov r0, r8 8014370: 4649 mov r1, r9 8014372: f7f4 fb8f bl 8008a94 <__aeabi_dcmplt> 8014376: b110 cbz r0, 801437e <_printf_float+0x86> 8014378: 232d movs r3, #45 @ 0x2d 801437a: f884 3043 strb.w r3, [r4, #67] @ 0x43 801437e: 4a92 ldr r2, [pc, #584] @ (80145c8 <_printf_float+0x2d0>) 8014380: 4b92 ldr r3, [pc, #584] @ (80145cc <_printf_float+0x2d4>) 8014382: f1ba 0f47 cmp.w sl, #71 @ 0x47 8014386: bf8c ite hi 8014388: 4690 movhi r8, r2 801438a: 4698 movls r8, r3 801438c: 2303 movs r3, #3 801438e: f04f 0900 mov.w r9, #0 8014392: 6123 str r3, [r4, #16] 8014394: f02b 0304 bic.w r3, fp, #4 8014398: 6023 str r3, [r4, #0] 801439a: 4633 mov r3, r6 801439c: 4621 mov r1, r4 801439e: 4628 mov r0, r5 80143a0: 9700 str r7, [sp, #0] 80143a2: aa0f add r2, sp, #60 @ 0x3c 80143a4: f000 f9d4 bl 8014750 <_printf_common> 80143a8: 3001 adds r0, #1 80143aa: f040 8090 bne.w 80144ce <_printf_float+0x1d6> 80143ae: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80143b2: b011 add sp, #68 @ 0x44 80143b4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80143b8: 4642 mov r2, r8 80143ba: 464b mov r3, r9 80143bc: 4640 mov r0, r8 80143be: 4649 mov r1, r9 80143c0: f7f4 fb90 bl 8008ae4 <__aeabi_dcmpun> 80143c4: b148 cbz r0, 80143da <_printf_float+0xe2> 80143c6: 464b mov r3, r9 80143c8: 2b00 cmp r3, #0 80143ca: bfb8 it lt 80143cc: 232d movlt r3, #45 @ 0x2d 80143ce: 4a80 ldr r2, [pc, #512] @ (80145d0 <_printf_float+0x2d8>) 80143d0: bfb8 it lt 80143d2: f884 3043 strblt.w r3, [r4, #67] @ 0x43 80143d6: 4b7f ldr r3, [pc, #508] @ (80145d4 <_printf_float+0x2dc>) 80143d8: e7d3 b.n 8014382 <_printf_float+0x8a> 80143da: 6863 ldr r3, [r4, #4] 80143dc: f00a 01df and.w r1, sl, #223 @ 0xdf 80143e0: 1c5a adds r2, r3, #1 80143e2: d13f bne.n 8014464 <_printf_float+0x16c> 80143e4: 2306 movs r3, #6 80143e6: 6063 str r3, [r4, #4] 80143e8: 2200 movs r2, #0 80143ea: f44b 6380 orr.w r3, fp, #1024 @ 0x400 80143ee: 6023 str r3, [r4, #0] 80143f0: 9206 str r2, [sp, #24] 80143f2: aa0e add r2, sp, #56 @ 0x38 80143f4: e9cd a204 strd sl, r2, [sp, #16] 80143f8: aa0d add r2, sp, #52 @ 0x34 80143fa: 9203 str r2, [sp, #12] 80143fc: f10d 0233 add.w r2, sp, #51 @ 0x33 8014400: e9cd 3201 strd r3, r2, [sp, #4] 8014404: 6863 ldr r3, [r4, #4] 8014406: 4642 mov r2, r8 8014408: 9300 str r3, [sp, #0] 801440a: 4628 mov r0, r5 801440c: 464b mov r3, r9 801440e: 910a str r1, [sp, #40] @ 0x28 8014410: f7ff fed4 bl 80141bc <__cvt> 8014414: 990a ldr r1, [sp, #40] @ 0x28 8014416: 4680 mov r8, r0 8014418: 2947 cmp r1, #71 @ 0x47 801441a: 990d ldr r1, [sp, #52] @ 0x34 801441c: d128 bne.n 8014470 <_printf_float+0x178> 801441e: 1cc8 adds r0, r1, #3 8014420: db02 blt.n 8014428 <_printf_float+0x130> 8014422: 6863 ldr r3, [r4, #4] 8014424: 4299 cmp r1, r3 8014426: dd40 ble.n 80144aa <_printf_float+0x1b2> 8014428: f1aa 0a02 sub.w sl, sl, #2 801442c: fa5f fa8a uxtb.w sl, sl 8014430: 4652 mov r2, sl 8014432: 3901 subs r1, #1 8014434: f104 0050 add.w r0, r4, #80 @ 0x50 8014438: 910d str r1, [sp, #52] @ 0x34 801443a: f7ff ff23 bl 8014284 <__exponent> 801443e: 9a0e ldr r2, [sp, #56] @ 0x38 8014440: 4681 mov r9, r0 8014442: 1813 adds r3, r2, r0 8014444: 2a01 cmp r2, #1 8014446: 6123 str r3, [r4, #16] 8014448: dc02 bgt.n 8014450 <_printf_float+0x158> 801444a: 6822 ldr r2, [r4, #0] 801444c: 07d2 lsls r2, r2, #31 801444e: d501 bpl.n 8014454 <_printf_float+0x15c> 8014450: 3301 adds r3, #1 8014452: 6123 str r3, [r4, #16] 8014454: f89d 3033 ldrb.w r3, [sp, #51] @ 0x33 8014458: 2b00 cmp r3, #0 801445a: d09e beq.n 801439a <_printf_float+0xa2> 801445c: 232d movs r3, #45 @ 0x2d 801445e: f884 3043 strb.w r3, [r4, #67] @ 0x43 8014462: e79a b.n 801439a <_printf_float+0xa2> 8014464: 2947 cmp r1, #71 @ 0x47 8014466: d1bf bne.n 80143e8 <_printf_float+0xf0> 8014468: 2b00 cmp r3, #0 801446a: d1bd bne.n 80143e8 <_printf_float+0xf0> 801446c: 2301 movs r3, #1 801446e: e7ba b.n 80143e6 <_printf_float+0xee> 8014470: f1ba 0f65 cmp.w sl, #101 @ 0x65 8014474: d9dc bls.n 8014430 <_printf_float+0x138> 8014476: f1ba 0f66 cmp.w sl, #102 @ 0x66 801447a: d118 bne.n 80144ae <_printf_float+0x1b6> 801447c: 2900 cmp r1, #0 801447e: 6863 ldr r3, [r4, #4] 8014480: dd0b ble.n 801449a <_printf_float+0x1a2> 8014482: 6121 str r1, [r4, #16] 8014484: b913 cbnz r3, 801448c <_printf_float+0x194> 8014486: 6822 ldr r2, [r4, #0] 8014488: 07d0 lsls r0, r2, #31 801448a: d502 bpl.n 8014492 <_printf_float+0x19a> 801448c: 3301 adds r3, #1 801448e: 440b add r3, r1 8014490: 6123 str r3, [r4, #16] 8014492: f04f 0900 mov.w r9, #0 8014496: 65a1 str r1, [r4, #88] @ 0x58 8014498: e7dc b.n 8014454 <_printf_float+0x15c> 801449a: b913 cbnz r3, 80144a2 <_printf_float+0x1aa> 801449c: 6822 ldr r2, [r4, #0] 801449e: 07d2 lsls r2, r2, #31 80144a0: d501 bpl.n 80144a6 <_printf_float+0x1ae> 80144a2: 3302 adds r3, #2 80144a4: e7f4 b.n 8014490 <_printf_float+0x198> 80144a6: 2301 movs r3, #1 80144a8: e7f2 b.n 8014490 <_printf_float+0x198> 80144aa: f04f 0a67 mov.w sl, #103 @ 0x67 80144ae: 9b0e ldr r3, [sp, #56] @ 0x38 80144b0: 4299 cmp r1, r3 80144b2: db05 blt.n 80144c0 <_printf_float+0x1c8> 80144b4: 6823 ldr r3, [r4, #0] 80144b6: 6121 str r1, [r4, #16] 80144b8: 07d8 lsls r0, r3, #31 80144ba: d5ea bpl.n 8014492 <_printf_float+0x19a> 80144bc: 1c4b adds r3, r1, #1 80144be: e7e7 b.n 8014490 <_printf_float+0x198> 80144c0: 2900 cmp r1, #0 80144c2: bfcc ite gt 80144c4: 2201 movgt r2, #1 80144c6: f1c1 0202 rsble r2, r1, #2 80144ca: 4413 add r3, r2 80144cc: e7e0 b.n 8014490 <_printf_float+0x198> 80144ce: 6823 ldr r3, [r4, #0] 80144d0: 055a lsls r2, r3, #21 80144d2: d407 bmi.n 80144e4 <_printf_float+0x1ec> 80144d4: 6923 ldr r3, [r4, #16] 80144d6: 4642 mov r2, r8 80144d8: 4631 mov r1, r6 80144da: 4628 mov r0, r5 80144dc: 47b8 blx r7 80144de: 3001 adds r0, #1 80144e0: d12b bne.n 801453a <_printf_float+0x242> 80144e2: e764 b.n 80143ae <_printf_float+0xb6> 80144e4: f1ba 0f65 cmp.w sl, #101 @ 0x65 80144e8: f240 80dc bls.w 80146a4 <_printf_float+0x3ac> 80144ec: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48 80144f0: 2200 movs r2, #0 80144f2: 2300 movs r3, #0 80144f4: f7f4 fac4 bl 8008a80 <__aeabi_dcmpeq> 80144f8: 2800 cmp r0, #0 80144fa: d033 beq.n 8014564 <_printf_float+0x26c> 80144fc: 2301 movs r3, #1 80144fe: 4631 mov r1, r6 8014500: 4628 mov r0, r5 8014502: 4a35 ldr r2, [pc, #212] @ (80145d8 <_printf_float+0x2e0>) 8014504: 47b8 blx r7 8014506: 3001 adds r0, #1 8014508: f43f af51 beq.w 80143ae <_printf_float+0xb6> 801450c: e9dd 380d ldrd r3, r8, [sp, #52] @ 0x34 8014510: 4543 cmp r3, r8 8014512: db02 blt.n 801451a <_printf_float+0x222> 8014514: 6823 ldr r3, [r4, #0] 8014516: 07d8 lsls r0, r3, #31 8014518: d50f bpl.n 801453a <_printf_float+0x242> 801451a: e9dd 2308 ldrd r2, r3, [sp, #32] 801451e: 4631 mov r1, r6 8014520: 4628 mov r0, r5 8014522: 47b8 blx r7 8014524: 3001 adds r0, #1 8014526: f43f af42 beq.w 80143ae <_printf_float+0xb6> 801452a: f04f 0900 mov.w r9, #0 801452e: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff 8014532: f104 0a1a add.w sl, r4, #26 8014536: 45c8 cmp r8, r9 8014538: dc09 bgt.n 801454e <_printf_float+0x256> 801453a: 6823 ldr r3, [r4, #0] 801453c: 079b lsls r3, r3, #30 801453e: f100 8102 bmi.w 8014746 <_printf_float+0x44e> 8014542: 68e0 ldr r0, [r4, #12] 8014544: 9b0f ldr r3, [sp, #60] @ 0x3c 8014546: 4298 cmp r0, r3 8014548: bfb8 it lt 801454a: 4618 movlt r0, r3 801454c: e731 b.n 80143b2 <_printf_float+0xba> 801454e: 2301 movs r3, #1 8014550: 4652 mov r2, sl 8014552: 4631 mov r1, r6 8014554: 4628 mov r0, r5 8014556: 47b8 blx r7 8014558: 3001 adds r0, #1 801455a: f43f af28 beq.w 80143ae <_printf_float+0xb6> 801455e: f109 0901 add.w r9, r9, #1 8014562: e7e8 b.n 8014536 <_printf_float+0x23e> 8014564: 9b0d ldr r3, [sp, #52] @ 0x34 8014566: 2b00 cmp r3, #0 8014568: dc38 bgt.n 80145dc <_printf_float+0x2e4> 801456a: 2301 movs r3, #1 801456c: 4631 mov r1, r6 801456e: 4628 mov r0, r5 8014570: 4a19 ldr r2, [pc, #100] @ (80145d8 <_printf_float+0x2e0>) 8014572: 47b8 blx r7 8014574: 3001 adds r0, #1 8014576: f43f af1a beq.w 80143ae <_printf_float+0xb6> 801457a: e9dd 390d ldrd r3, r9, [sp, #52] @ 0x34 801457e: ea59 0303 orrs.w r3, r9, r3 8014582: d102 bne.n 801458a <_printf_float+0x292> 8014584: 6823 ldr r3, [r4, #0] 8014586: 07d9 lsls r1, r3, #31 8014588: d5d7 bpl.n 801453a <_printf_float+0x242> 801458a: e9dd 2308 ldrd r2, r3, [sp, #32] 801458e: 4631 mov r1, r6 8014590: 4628 mov r0, r5 8014592: 47b8 blx r7 8014594: 3001 adds r0, #1 8014596: f43f af0a beq.w 80143ae <_printf_float+0xb6> 801459a: f04f 0a00 mov.w sl, #0 801459e: f104 0b1a add.w fp, r4, #26 80145a2: 9b0d ldr r3, [sp, #52] @ 0x34 80145a4: 425b negs r3, r3 80145a6: 4553 cmp r3, sl 80145a8: dc01 bgt.n 80145ae <_printf_float+0x2b6> 80145aa: 464b mov r3, r9 80145ac: e793 b.n 80144d6 <_printf_float+0x1de> 80145ae: 2301 movs r3, #1 80145b0: 465a mov r2, fp 80145b2: 4631 mov r1, r6 80145b4: 4628 mov r0, r5 80145b6: 47b8 blx r7 80145b8: 3001 adds r0, #1 80145ba: f43f aef8 beq.w 80143ae <_printf_float+0xb6> 80145be: f10a 0a01 add.w sl, sl, #1 80145c2: e7ee b.n 80145a2 <_printf_float+0x2aa> 80145c4: 7fefffff .word 0x7fefffff 80145c8: 0801796c .word 0x0801796c 80145cc: 08017968 .word 0x08017968 80145d0: 08017974 .word 0x08017974 80145d4: 08017970 .word 0x08017970 80145d8: 08017978 .word 0x08017978 80145dc: 6da3 ldr r3, [r4, #88] @ 0x58 80145de: f8dd a038 ldr.w sl, [sp, #56] @ 0x38 80145e2: 4553 cmp r3, sl 80145e4: bfa8 it ge 80145e6: 4653 movge r3, sl 80145e8: 2b00 cmp r3, #0 80145ea: 4699 mov r9, r3 80145ec: dc36 bgt.n 801465c <_printf_float+0x364> 80145ee: f04f 0b00 mov.w fp, #0 80145f2: ea29 79e9 bic.w r9, r9, r9, asr #31 80145f6: f104 021a add.w r2, r4, #26 80145fa: 6da3 ldr r3, [r4, #88] @ 0x58 80145fc: 930a str r3, [sp, #40] @ 0x28 80145fe: eba3 0309 sub.w r3, r3, r9 8014602: 455b cmp r3, fp 8014604: dc31 bgt.n 801466a <_printf_float+0x372> 8014606: 9b0d ldr r3, [sp, #52] @ 0x34 8014608: 459a cmp sl, r3 801460a: dc3a bgt.n 8014682 <_printf_float+0x38a> 801460c: 6823 ldr r3, [r4, #0] 801460e: 07da lsls r2, r3, #31 8014610: d437 bmi.n 8014682 <_printf_float+0x38a> 8014612: 9b0d ldr r3, [sp, #52] @ 0x34 8014614: ebaa 0903 sub.w r9, sl, r3 8014618: 9b0a ldr r3, [sp, #40] @ 0x28 801461a: ebaa 0303 sub.w r3, sl, r3 801461e: 4599 cmp r9, r3 8014620: bfa8 it ge 8014622: 4699 movge r9, r3 8014624: f1b9 0f00 cmp.w r9, #0 8014628: dc33 bgt.n 8014692 <_printf_float+0x39a> 801462a: f04f 0800 mov.w r8, #0 801462e: ea29 79e9 bic.w r9, r9, r9, asr #31 8014632: f104 0b1a add.w fp, r4, #26 8014636: 9b0d ldr r3, [sp, #52] @ 0x34 8014638: ebaa 0303 sub.w r3, sl, r3 801463c: eba3 0309 sub.w r3, r3, r9 8014640: 4543 cmp r3, r8 8014642: f77f af7a ble.w 801453a <_printf_float+0x242> 8014646: 2301 movs r3, #1 8014648: 465a mov r2, fp 801464a: 4631 mov r1, r6 801464c: 4628 mov r0, r5 801464e: 47b8 blx r7 8014650: 3001 adds r0, #1 8014652: f43f aeac beq.w 80143ae <_printf_float+0xb6> 8014656: f108 0801 add.w r8, r8, #1 801465a: e7ec b.n 8014636 <_printf_float+0x33e> 801465c: 4642 mov r2, r8 801465e: 4631 mov r1, r6 8014660: 4628 mov r0, r5 8014662: 47b8 blx r7 8014664: 3001 adds r0, #1 8014666: d1c2 bne.n 80145ee <_printf_float+0x2f6> 8014668: e6a1 b.n 80143ae <_printf_float+0xb6> 801466a: 2301 movs r3, #1 801466c: 4631 mov r1, r6 801466e: 4628 mov r0, r5 8014670: 920a str r2, [sp, #40] @ 0x28 8014672: 47b8 blx r7 8014674: 3001 adds r0, #1 8014676: f43f ae9a beq.w 80143ae <_printf_float+0xb6> 801467a: 9a0a ldr r2, [sp, #40] @ 0x28 801467c: f10b 0b01 add.w fp, fp, #1 8014680: e7bb b.n 80145fa <_printf_float+0x302> 8014682: 4631 mov r1, r6 8014684: e9dd 2308 ldrd r2, r3, [sp, #32] 8014688: 4628 mov r0, r5 801468a: 47b8 blx r7 801468c: 3001 adds r0, #1 801468e: d1c0 bne.n 8014612 <_printf_float+0x31a> 8014690: e68d b.n 80143ae <_printf_float+0xb6> 8014692: 9a0a ldr r2, [sp, #40] @ 0x28 8014694: 464b mov r3, r9 8014696: 4631 mov r1, r6 8014698: 4628 mov r0, r5 801469a: 4442 add r2, r8 801469c: 47b8 blx r7 801469e: 3001 adds r0, #1 80146a0: d1c3 bne.n 801462a <_printf_float+0x332> 80146a2: e684 b.n 80143ae <_printf_float+0xb6> 80146a4: f8dd a038 ldr.w sl, [sp, #56] @ 0x38 80146a8: f1ba 0f01 cmp.w sl, #1 80146ac: dc01 bgt.n 80146b2 <_printf_float+0x3ba> 80146ae: 07db lsls r3, r3, #31 80146b0: d536 bpl.n 8014720 <_printf_float+0x428> 80146b2: 2301 movs r3, #1 80146b4: 4642 mov r2, r8 80146b6: 4631 mov r1, r6 80146b8: 4628 mov r0, r5 80146ba: 47b8 blx r7 80146bc: 3001 adds r0, #1 80146be: f43f ae76 beq.w 80143ae <_printf_float+0xb6> 80146c2: e9dd 2308 ldrd r2, r3, [sp, #32] 80146c6: 4631 mov r1, r6 80146c8: 4628 mov r0, r5 80146ca: 47b8 blx r7 80146cc: 3001 adds r0, #1 80146ce: f43f ae6e beq.w 80143ae <_printf_float+0xb6> 80146d2: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48 80146d6: 2200 movs r2, #0 80146d8: 2300 movs r3, #0 80146da: f10a 3aff add.w sl, sl, #4294967295 @ 0xffffffff 80146de: f7f4 f9cf bl 8008a80 <__aeabi_dcmpeq> 80146e2: b9c0 cbnz r0, 8014716 <_printf_float+0x41e> 80146e4: 4653 mov r3, sl 80146e6: f108 0201 add.w r2, r8, #1 80146ea: 4631 mov r1, r6 80146ec: 4628 mov r0, r5 80146ee: 47b8 blx r7 80146f0: 3001 adds r0, #1 80146f2: d10c bne.n 801470e <_printf_float+0x416> 80146f4: e65b b.n 80143ae <_printf_float+0xb6> 80146f6: 2301 movs r3, #1 80146f8: 465a mov r2, fp 80146fa: 4631 mov r1, r6 80146fc: 4628 mov r0, r5 80146fe: 47b8 blx r7 8014700: 3001 adds r0, #1 8014702: f43f ae54 beq.w 80143ae <_printf_float+0xb6> 8014706: f108 0801 add.w r8, r8, #1 801470a: 45d0 cmp r8, sl 801470c: dbf3 blt.n 80146f6 <_printf_float+0x3fe> 801470e: 464b mov r3, r9 8014710: f104 0250 add.w r2, r4, #80 @ 0x50 8014714: e6e0 b.n 80144d8 <_printf_float+0x1e0> 8014716: f04f 0800 mov.w r8, #0 801471a: f104 0b1a add.w fp, r4, #26 801471e: e7f4 b.n 801470a <_printf_float+0x412> 8014720: 2301 movs r3, #1 8014722: 4642 mov r2, r8 8014724: e7e1 b.n 80146ea <_printf_float+0x3f2> 8014726: 2301 movs r3, #1 8014728: 464a mov r2, r9 801472a: 4631 mov r1, r6 801472c: 4628 mov r0, r5 801472e: 47b8 blx r7 8014730: 3001 adds r0, #1 8014732: f43f ae3c beq.w 80143ae <_printf_float+0xb6> 8014736: f108 0801 add.w r8, r8, #1 801473a: 68e3 ldr r3, [r4, #12] 801473c: 990f ldr r1, [sp, #60] @ 0x3c 801473e: 1a5b subs r3, r3, r1 8014740: 4543 cmp r3, r8 8014742: dcf0 bgt.n 8014726 <_printf_float+0x42e> 8014744: e6fd b.n 8014542 <_printf_float+0x24a> 8014746: f04f 0800 mov.w r8, #0 801474a: f104 0919 add.w r9, r4, #25 801474e: e7f4 b.n 801473a <_printf_float+0x442> 08014750 <_printf_common>: 8014750: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8014754: 4616 mov r6, r2 8014756: 4698 mov r8, r3 8014758: 688a ldr r2, [r1, #8] 801475a: 690b ldr r3, [r1, #16] 801475c: 4607 mov r7, r0 801475e: 4293 cmp r3, r2 8014760: bfb8 it lt 8014762: 4613 movlt r3, r2 8014764: 6033 str r3, [r6, #0] 8014766: f891 2043 ldrb.w r2, [r1, #67] @ 0x43 801476a: 460c mov r4, r1 801476c: f8dd 9020 ldr.w r9, [sp, #32] 8014770: b10a cbz r2, 8014776 <_printf_common+0x26> 8014772: 3301 adds r3, #1 8014774: 6033 str r3, [r6, #0] 8014776: 6823 ldr r3, [r4, #0] 8014778: 0699 lsls r1, r3, #26 801477a: bf42 ittt mi 801477c: 6833 ldrmi r3, [r6, #0] 801477e: 3302 addmi r3, #2 8014780: 6033 strmi r3, [r6, #0] 8014782: 6825 ldr r5, [r4, #0] 8014784: f015 0506 ands.w r5, r5, #6 8014788: d106 bne.n 8014798 <_printf_common+0x48> 801478a: f104 0a19 add.w sl, r4, #25 801478e: 68e3 ldr r3, [r4, #12] 8014790: 6832 ldr r2, [r6, #0] 8014792: 1a9b subs r3, r3, r2 8014794: 42ab cmp r3, r5 8014796: dc2b bgt.n 80147f0 <_printf_common+0xa0> 8014798: f894 3043 ldrb.w r3, [r4, #67] @ 0x43 801479c: 6822 ldr r2, [r4, #0] 801479e: 3b00 subs r3, #0 80147a0: bf18 it ne 80147a2: 2301 movne r3, #1 80147a4: 0692 lsls r2, r2, #26 80147a6: d430 bmi.n 801480a <_printf_common+0xba> 80147a8: 4641 mov r1, r8 80147aa: 4638 mov r0, r7 80147ac: f104 0243 add.w r2, r4, #67 @ 0x43 80147b0: 47c8 blx r9 80147b2: 3001 adds r0, #1 80147b4: d023 beq.n 80147fe <_printf_common+0xae> 80147b6: 6823 ldr r3, [r4, #0] 80147b8: 6922 ldr r2, [r4, #16] 80147ba: f003 0306 and.w r3, r3, #6 80147be: 2b04 cmp r3, #4 80147c0: bf14 ite ne 80147c2: 2500 movne r5, #0 80147c4: 6833 ldreq r3, [r6, #0] 80147c6: f04f 0600 mov.w r6, #0 80147ca: bf08 it eq 80147cc: 68e5 ldreq r5, [r4, #12] 80147ce: f104 041a add.w r4, r4, #26 80147d2: bf08 it eq 80147d4: 1aed subeq r5, r5, r3 80147d6: f854 3c12 ldr.w r3, [r4, #-18] 80147da: bf08 it eq 80147dc: ea25 75e5 biceq.w r5, r5, r5, asr #31 80147e0: 4293 cmp r3, r2 80147e2: bfc4 itt gt 80147e4: 1a9b subgt r3, r3, r2 80147e6: 18ed addgt r5, r5, r3 80147e8: 42b5 cmp r5, r6 80147ea: d11a bne.n 8014822 <_printf_common+0xd2> 80147ec: 2000 movs r0, #0 80147ee: e008 b.n 8014802 <_printf_common+0xb2> 80147f0: 2301 movs r3, #1 80147f2: 4652 mov r2, sl 80147f4: 4641 mov r1, r8 80147f6: 4638 mov r0, r7 80147f8: 47c8 blx r9 80147fa: 3001 adds r0, #1 80147fc: d103 bne.n 8014806 <_printf_common+0xb6> 80147fe: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8014802: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8014806: 3501 adds r5, #1 8014808: e7c1 b.n 801478e <_printf_common+0x3e> 801480a: 2030 movs r0, #48 @ 0x30 801480c: 18e1 adds r1, r4, r3 801480e: f881 0043 strb.w r0, [r1, #67] @ 0x43 8014812: 1c5a adds r2, r3, #1 8014814: f894 1045 ldrb.w r1, [r4, #69] @ 0x45 8014818: 4422 add r2, r4 801481a: 3302 adds r3, #2 801481c: f882 1043 strb.w r1, [r2, #67] @ 0x43 8014820: e7c2 b.n 80147a8 <_printf_common+0x58> 8014822: 2301 movs r3, #1 8014824: 4622 mov r2, r4 8014826: 4641 mov r1, r8 8014828: 4638 mov r0, r7 801482a: 47c8 blx r9 801482c: 3001 adds r0, #1 801482e: d0e6 beq.n 80147fe <_printf_common+0xae> 8014830: 3601 adds r6, #1 8014832: e7d9 b.n 80147e8 <_printf_common+0x98> 08014834 <_printf_i>: 8014834: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} 8014838: 7e0f ldrb r7, [r1, #24] 801483a: 4691 mov r9, r2 801483c: 2f78 cmp r7, #120 @ 0x78 801483e: 4680 mov r8, r0 8014840: 460c mov r4, r1 8014842: 469a mov sl, r3 8014844: 9e0c ldr r6, [sp, #48] @ 0x30 8014846: f101 0243 add.w r2, r1, #67 @ 0x43 801484a: d807 bhi.n 801485c <_printf_i+0x28> 801484c: 2f62 cmp r7, #98 @ 0x62 801484e: d80a bhi.n 8014866 <_printf_i+0x32> 8014850: 2f00 cmp r7, #0 8014852: f000 80d1 beq.w 80149f8 <_printf_i+0x1c4> 8014856: 2f58 cmp r7, #88 @ 0x58 8014858: f000 80b8 beq.w 80149cc <_printf_i+0x198> 801485c: f104 0642 add.w r6, r4, #66 @ 0x42 8014860: f884 7042 strb.w r7, [r4, #66] @ 0x42 8014864: e03a b.n 80148dc <_printf_i+0xa8> 8014866: f1a7 0363 sub.w r3, r7, #99 @ 0x63 801486a: 2b15 cmp r3, #21 801486c: d8f6 bhi.n 801485c <_printf_i+0x28> 801486e: a101 add r1, pc, #4 @ (adr r1, 8014874 <_printf_i+0x40>) 8014870: f851 f023 ldr.w pc, [r1, r3, lsl #2] 8014874: 080148cd .word 0x080148cd 8014878: 080148e1 .word 0x080148e1 801487c: 0801485d .word 0x0801485d 8014880: 0801485d .word 0x0801485d 8014884: 0801485d .word 0x0801485d 8014888: 0801485d .word 0x0801485d 801488c: 080148e1 .word 0x080148e1 8014890: 0801485d .word 0x0801485d 8014894: 0801485d .word 0x0801485d 8014898: 0801485d .word 0x0801485d 801489c: 0801485d .word 0x0801485d 80148a0: 080149df .word 0x080149df 80148a4: 0801490b .word 0x0801490b 80148a8: 08014999 .word 0x08014999 80148ac: 0801485d .word 0x0801485d 80148b0: 0801485d .word 0x0801485d 80148b4: 08014a01 .word 0x08014a01 80148b8: 0801485d .word 0x0801485d 80148bc: 0801490b .word 0x0801490b 80148c0: 0801485d .word 0x0801485d 80148c4: 0801485d .word 0x0801485d 80148c8: 080149a1 .word 0x080149a1 80148cc: 6833 ldr r3, [r6, #0] 80148ce: 1d1a adds r2, r3, #4 80148d0: 681b ldr r3, [r3, #0] 80148d2: 6032 str r2, [r6, #0] 80148d4: f104 0642 add.w r6, r4, #66 @ 0x42 80148d8: f884 3042 strb.w r3, [r4, #66] @ 0x42 80148dc: 2301 movs r3, #1 80148de: e09c b.n 8014a1a <_printf_i+0x1e6> 80148e0: 6833 ldr r3, [r6, #0] 80148e2: 6820 ldr r0, [r4, #0] 80148e4: 1d19 adds r1, r3, #4 80148e6: 6031 str r1, [r6, #0] 80148e8: 0606 lsls r6, r0, #24 80148ea: d501 bpl.n 80148f0 <_printf_i+0xbc> 80148ec: 681d ldr r5, [r3, #0] 80148ee: e003 b.n 80148f8 <_printf_i+0xc4> 80148f0: 0645 lsls r5, r0, #25 80148f2: d5fb bpl.n 80148ec <_printf_i+0xb8> 80148f4: f9b3 5000 ldrsh.w r5, [r3] 80148f8: 2d00 cmp r5, #0 80148fa: da03 bge.n 8014904 <_printf_i+0xd0> 80148fc: 232d movs r3, #45 @ 0x2d 80148fe: 426d negs r5, r5 8014900: f884 3043 strb.w r3, [r4, #67] @ 0x43 8014904: 230a movs r3, #10 8014906: 4858 ldr r0, [pc, #352] @ (8014a68 <_printf_i+0x234>) 8014908: e011 b.n 801492e <_printf_i+0xfa> 801490a: 6821 ldr r1, [r4, #0] 801490c: 6833 ldr r3, [r6, #0] 801490e: 0608 lsls r0, r1, #24 8014910: f853 5b04 ldr.w r5, [r3], #4 8014914: d402 bmi.n 801491c <_printf_i+0xe8> 8014916: 0649 lsls r1, r1, #25 8014918: bf48 it mi 801491a: b2ad uxthmi r5, r5 801491c: 2f6f cmp r7, #111 @ 0x6f 801491e: 6033 str r3, [r6, #0] 8014920: bf14 ite ne 8014922: 230a movne r3, #10 8014924: 2308 moveq r3, #8 8014926: 4850 ldr r0, [pc, #320] @ (8014a68 <_printf_i+0x234>) 8014928: 2100 movs r1, #0 801492a: f884 1043 strb.w r1, [r4, #67] @ 0x43 801492e: 6866 ldr r6, [r4, #4] 8014930: 2e00 cmp r6, #0 8014932: 60a6 str r6, [r4, #8] 8014934: db05 blt.n 8014942 <_printf_i+0x10e> 8014936: 6821 ldr r1, [r4, #0] 8014938: 432e orrs r6, r5 801493a: f021 0104 bic.w r1, r1, #4 801493e: 6021 str r1, [r4, #0] 8014940: d04b beq.n 80149da <_printf_i+0x1a6> 8014942: 4616 mov r6, r2 8014944: fbb5 f1f3 udiv r1, r5, r3 8014948: fb03 5711 mls r7, r3, r1, r5 801494c: 5dc7 ldrb r7, [r0, r7] 801494e: f806 7d01 strb.w r7, [r6, #-1]! 8014952: 462f mov r7, r5 8014954: 42bb cmp r3, r7 8014956: 460d mov r5, r1 8014958: d9f4 bls.n 8014944 <_printf_i+0x110> 801495a: 2b08 cmp r3, #8 801495c: d10b bne.n 8014976 <_printf_i+0x142> 801495e: 6823 ldr r3, [r4, #0] 8014960: 07df lsls r7, r3, #31 8014962: d508 bpl.n 8014976 <_printf_i+0x142> 8014964: 6923 ldr r3, [r4, #16] 8014966: 6861 ldr r1, [r4, #4] 8014968: 4299 cmp r1, r3 801496a: bfde ittt le 801496c: 2330 movle r3, #48 @ 0x30 801496e: f806 3c01 strble.w r3, [r6, #-1] 8014972: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff 8014976: 1b92 subs r2, r2, r6 8014978: 6122 str r2, [r4, #16] 801497a: 464b mov r3, r9 801497c: 4621 mov r1, r4 801497e: 4640 mov r0, r8 8014980: f8cd a000 str.w sl, [sp] 8014984: aa03 add r2, sp, #12 8014986: f7ff fee3 bl 8014750 <_printf_common> 801498a: 3001 adds r0, #1 801498c: d14a bne.n 8014a24 <_printf_i+0x1f0> 801498e: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8014992: b004 add sp, #16 8014994: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8014998: 6823 ldr r3, [r4, #0] 801499a: f043 0320 orr.w r3, r3, #32 801499e: 6023 str r3, [r4, #0] 80149a0: 2778 movs r7, #120 @ 0x78 80149a2: 4832 ldr r0, [pc, #200] @ (8014a6c <_printf_i+0x238>) 80149a4: f884 7045 strb.w r7, [r4, #69] @ 0x45 80149a8: 6823 ldr r3, [r4, #0] 80149aa: 6831 ldr r1, [r6, #0] 80149ac: 061f lsls r7, r3, #24 80149ae: f851 5b04 ldr.w r5, [r1], #4 80149b2: d402 bmi.n 80149ba <_printf_i+0x186> 80149b4: 065f lsls r7, r3, #25 80149b6: bf48 it mi 80149b8: b2ad uxthmi r5, r5 80149ba: 6031 str r1, [r6, #0] 80149bc: 07d9 lsls r1, r3, #31 80149be: bf44 itt mi 80149c0: f043 0320 orrmi.w r3, r3, #32 80149c4: 6023 strmi r3, [r4, #0] 80149c6: b11d cbz r5, 80149d0 <_printf_i+0x19c> 80149c8: 2310 movs r3, #16 80149ca: e7ad b.n 8014928 <_printf_i+0xf4> 80149cc: 4826 ldr r0, [pc, #152] @ (8014a68 <_printf_i+0x234>) 80149ce: e7e9 b.n 80149a4 <_printf_i+0x170> 80149d0: 6823 ldr r3, [r4, #0] 80149d2: f023 0320 bic.w r3, r3, #32 80149d6: 6023 str r3, [r4, #0] 80149d8: e7f6 b.n 80149c8 <_printf_i+0x194> 80149da: 4616 mov r6, r2 80149dc: e7bd b.n 801495a <_printf_i+0x126> 80149de: 6833 ldr r3, [r6, #0] 80149e0: 6825 ldr r5, [r4, #0] 80149e2: 1d18 adds r0, r3, #4 80149e4: 6961 ldr r1, [r4, #20] 80149e6: 6030 str r0, [r6, #0] 80149e8: 062e lsls r6, r5, #24 80149ea: 681b ldr r3, [r3, #0] 80149ec: d501 bpl.n 80149f2 <_printf_i+0x1be> 80149ee: 6019 str r1, [r3, #0] 80149f0: e002 b.n 80149f8 <_printf_i+0x1c4> 80149f2: 0668 lsls r0, r5, #25 80149f4: d5fb bpl.n 80149ee <_printf_i+0x1ba> 80149f6: 8019 strh r1, [r3, #0] 80149f8: 2300 movs r3, #0 80149fa: 4616 mov r6, r2 80149fc: 6123 str r3, [r4, #16] 80149fe: e7bc b.n 801497a <_printf_i+0x146> 8014a00: 6833 ldr r3, [r6, #0] 8014a02: 2100 movs r1, #0 8014a04: 1d1a adds r2, r3, #4 8014a06: 6032 str r2, [r6, #0] 8014a08: 681e ldr r6, [r3, #0] 8014a0a: 6862 ldr r2, [r4, #4] 8014a0c: 4630 mov r0, r6 8014a0e: f000 f979 bl 8014d04 8014a12: b108 cbz r0, 8014a18 <_printf_i+0x1e4> 8014a14: 1b80 subs r0, r0, r6 8014a16: 6060 str r0, [r4, #4] 8014a18: 6863 ldr r3, [r4, #4] 8014a1a: 6123 str r3, [r4, #16] 8014a1c: 2300 movs r3, #0 8014a1e: f884 3043 strb.w r3, [r4, #67] @ 0x43 8014a22: e7aa b.n 801497a <_printf_i+0x146> 8014a24: 4632 mov r2, r6 8014a26: 4649 mov r1, r9 8014a28: 4640 mov r0, r8 8014a2a: 6923 ldr r3, [r4, #16] 8014a2c: 47d0 blx sl 8014a2e: 3001 adds r0, #1 8014a30: d0ad beq.n 801498e <_printf_i+0x15a> 8014a32: 6823 ldr r3, [r4, #0] 8014a34: 079b lsls r3, r3, #30 8014a36: d413 bmi.n 8014a60 <_printf_i+0x22c> 8014a38: 68e0 ldr r0, [r4, #12] 8014a3a: 9b03 ldr r3, [sp, #12] 8014a3c: 4298 cmp r0, r3 8014a3e: bfb8 it lt 8014a40: 4618 movlt r0, r3 8014a42: e7a6 b.n 8014992 <_printf_i+0x15e> 8014a44: 2301 movs r3, #1 8014a46: 4632 mov r2, r6 8014a48: 4649 mov r1, r9 8014a4a: 4640 mov r0, r8 8014a4c: 47d0 blx sl 8014a4e: 3001 adds r0, #1 8014a50: d09d beq.n 801498e <_printf_i+0x15a> 8014a52: 3501 adds r5, #1 8014a54: 68e3 ldr r3, [r4, #12] 8014a56: 9903 ldr r1, [sp, #12] 8014a58: 1a5b subs r3, r3, r1 8014a5a: 42ab cmp r3, r5 8014a5c: dcf2 bgt.n 8014a44 <_printf_i+0x210> 8014a5e: e7eb b.n 8014a38 <_printf_i+0x204> 8014a60: 2500 movs r5, #0 8014a62: f104 0619 add.w r6, r4, #25 8014a66: e7f5 b.n 8014a54 <_printf_i+0x220> 8014a68: 0801797a .word 0x0801797a 8014a6c: 0801798b .word 0x0801798b 08014a70 : 8014a70: 2300 movs r3, #0 8014a72: b510 push {r4, lr} 8014a74: 4604 mov r4, r0 8014a76: e9c0 3300 strd r3, r3, [r0] 8014a7a: e9c0 3304 strd r3, r3, [r0, #16] 8014a7e: 6083 str r3, [r0, #8] 8014a80: 8181 strh r1, [r0, #12] 8014a82: 6643 str r3, [r0, #100] @ 0x64 8014a84: 81c2 strh r2, [r0, #14] 8014a86: 6183 str r3, [r0, #24] 8014a88: 4619 mov r1, r3 8014a8a: 2208 movs r2, #8 8014a8c: 305c adds r0, #92 @ 0x5c 8014a8e: f000 f8ff bl 8014c90 8014a92: 4b0d ldr r3, [pc, #52] @ (8014ac8 ) 8014a94: 6224 str r4, [r4, #32] 8014a96: 6263 str r3, [r4, #36] @ 0x24 8014a98: 4b0c ldr r3, [pc, #48] @ (8014acc ) 8014a9a: 62a3 str r3, [r4, #40] @ 0x28 8014a9c: 4b0c ldr r3, [pc, #48] @ (8014ad0 ) 8014a9e: 62e3 str r3, [r4, #44] @ 0x2c 8014aa0: 4b0c ldr r3, [pc, #48] @ (8014ad4 ) 8014aa2: 6323 str r3, [r4, #48] @ 0x30 8014aa4: 4b0c ldr r3, [pc, #48] @ (8014ad8 ) 8014aa6: 429c cmp r4, r3 8014aa8: d006 beq.n 8014ab8 8014aaa: f103 0268 add.w r2, r3, #104 @ 0x68 8014aae: 4294 cmp r4, r2 8014ab0: d002 beq.n 8014ab8 8014ab2: 33d0 adds r3, #208 @ 0xd0 8014ab4: 429c cmp r4, r3 8014ab6: d105 bne.n 8014ac4 8014ab8: f104 0058 add.w r0, r4, #88 @ 0x58 8014abc: e8bd 4010 ldmia.w sp!, {r4, lr} 8014ac0: f000 b918 b.w 8014cf4 <__retarget_lock_init_recursive> 8014ac4: bd10 pop {r4, pc} 8014ac6: bf00 nop 8014ac8: 08016911 .word 0x08016911 8014acc: 08016933 .word 0x08016933 8014ad0: 0801696b .word 0x0801696b 8014ad4: 0801698f .word 0x0801698f 8014ad8: 20001498 .word 0x20001498 08014adc : 8014adc: 4a02 ldr r2, [pc, #8] @ (8014ae8 ) 8014ade: 4903 ldr r1, [pc, #12] @ (8014aec ) 8014ae0: 4803 ldr r0, [pc, #12] @ (8014af0 ) 8014ae2: f000 b8a5 b.w 8014c30 <_fwalk_sglue> 8014ae6: bf00 nop 8014ae8: 20000090 .word 0x20000090 8014aec: 080161b5 .word 0x080161b5 8014af0: 200000a0 .word 0x200000a0 08014af4 : 8014af4: 6841 ldr r1, [r0, #4] 8014af6: 4b0c ldr r3, [pc, #48] @ (8014b28 ) 8014af8: b510 push {r4, lr} 8014afa: 4299 cmp r1, r3 8014afc: 4604 mov r4, r0 8014afe: d001 beq.n 8014b04 8014b00: f001 fb58 bl 80161b4 <_fflush_r> 8014b04: 68a1 ldr r1, [r4, #8] 8014b06: 4b09 ldr r3, [pc, #36] @ (8014b2c ) 8014b08: 4299 cmp r1, r3 8014b0a: d002 beq.n 8014b12 8014b0c: 4620 mov r0, r4 8014b0e: f001 fb51 bl 80161b4 <_fflush_r> 8014b12: 68e1 ldr r1, [r4, #12] 8014b14: 4b06 ldr r3, [pc, #24] @ (8014b30 ) 8014b16: 4299 cmp r1, r3 8014b18: d004 beq.n 8014b24 8014b1a: 4620 mov r0, r4 8014b1c: e8bd 4010 ldmia.w sp!, {r4, lr} 8014b20: f001 bb48 b.w 80161b4 <_fflush_r> 8014b24: bd10 pop {r4, pc} 8014b26: bf00 nop 8014b28: 20001498 .word 0x20001498 8014b2c: 20001500 .word 0x20001500 8014b30: 20001568 .word 0x20001568 08014b34 : 8014b34: b510 push {r4, lr} 8014b36: 4b0b ldr r3, [pc, #44] @ (8014b64 ) 8014b38: 4c0b ldr r4, [pc, #44] @ (8014b68 ) 8014b3a: 4a0c ldr r2, [pc, #48] @ (8014b6c ) 8014b3c: 4620 mov r0, r4 8014b3e: 601a str r2, [r3, #0] 8014b40: 2104 movs r1, #4 8014b42: 2200 movs r2, #0 8014b44: f7ff ff94 bl 8014a70 8014b48: f104 0068 add.w r0, r4, #104 @ 0x68 8014b4c: 2201 movs r2, #1 8014b4e: 2109 movs r1, #9 8014b50: f7ff ff8e bl 8014a70 8014b54: f104 00d0 add.w r0, r4, #208 @ 0xd0 8014b58: 2202 movs r2, #2 8014b5a: e8bd 4010 ldmia.w sp!, {r4, lr} 8014b5e: 2112 movs r1, #18 8014b60: f7ff bf86 b.w 8014a70 8014b64: 200015d0 .word 0x200015d0 8014b68: 20001498 .word 0x20001498 8014b6c: 08014add .word 0x08014add 08014b70 <__sfp_lock_acquire>: 8014b70: 4801 ldr r0, [pc, #4] @ (8014b78 <__sfp_lock_acquire+0x8>) 8014b72: f000 b8c0 b.w 8014cf6 <__retarget_lock_acquire_recursive> 8014b76: bf00 nop 8014b78: 200015d5 .word 0x200015d5 08014b7c <__sfp_lock_release>: 8014b7c: 4801 ldr r0, [pc, #4] @ (8014b84 <__sfp_lock_release+0x8>) 8014b7e: f000 b8bb b.w 8014cf8 <__retarget_lock_release_recursive> 8014b82: bf00 nop 8014b84: 200015d5 .word 0x200015d5 08014b88 <__sinit>: 8014b88: b510 push {r4, lr} 8014b8a: 4604 mov r4, r0 8014b8c: f7ff fff0 bl 8014b70 <__sfp_lock_acquire> 8014b90: 6a23 ldr r3, [r4, #32] 8014b92: b11b cbz r3, 8014b9c <__sinit+0x14> 8014b94: e8bd 4010 ldmia.w sp!, {r4, lr} 8014b98: f7ff bff0 b.w 8014b7c <__sfp_lock_release> 8014b9c: 4b04 ldr r3, [pc, #16] @ (8014bb0 <__sinit+0x28>) 8014b9e: 6223 str r3, [r4, #32] 8014ba0: 4b04 ldr r3, [pc, #16] @ (8014bb4 <__sinit+0x2c>) 8014ba2: 681b ldr r3, [r3, #0] 8014ba4: 2b00 cmp r3, #0 8014ba6: d1f5 bne.n 8014b94 <__sinit+0xc> 8014ba8: f7ff ffc4 bl 8014b34 8014bac: e7f2 b.n 8014b94 <__sinit+0xc> 8014bae: bf00 nop 8014bb0: 08014af5 .word 0x08014af5 8014bb4: 200015d0 .word 0x200015d0 08014bb8 <_vsniprintf_r>: 8014bb8: b530 push {r4, r5, lr} 8014bba: 4614 mov r4, r2 8014bbc: 2c00 cmp r4, #0 8014bbe: 4605 mov r5, r0 8014bc0: 461a mov r2, r3 8014bc2: b09b sub sp, #108 @ 0x6c 8014bc4: da05 bge.n 8014bd2 <_vsniprintf_r+0x1a> 8014bc6: 238b movs r3, #139 @ 0x8b 8014bc8: 6003 str r3, [r0, #0] 8014bca: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8014bce: b01b add sp, #108 @ 0x6c 8014bd0: bd30 pop {r4, r5, pc} 8014bd2: f44f 7302 mov.w r3, #520 @ 0x208 8014bd6: f8ad 300c strh.w r3, [sp, #12] 8014bda: f04f 0300 mov.w r3, #0 8014bde: 9319 str r3, [sp, #100] @ 0x64 8014be0: bf0c ite eq 8014be2: 4623 moveq r3, r4 8014be4: f104 33ff addne.w r3, r4, #4294967295 @ 0xffffffff 8014be8: 9302 str r3, [sp, #8] 8014bea: 9305 str r3, [sp, #20] 8014bec: f64f 73ff movw r3, #65535 @ 0xffff 8014bf0: 9100 str r1, [sp, #0] 8014bf2: 9104 str r1, [sp, #16] 8014bf4: f8ad 300e strh.w r3, [sp, #14] 8014bf8: 4669 mov r1, sp 8014bfa: 9b1e ldr r3, [sp, #120] @ 0x78 8014bfc: f000 ff74 bl 8015ae8 <_svfiprintf_r> 8014c00: 1c43 adds r3, r0, #1 8014c02: bfbc itt lt 8014c04: 238b movlt r3, #139 @ 0x8b 8014c06: 602b strlt r3, [r5, #0] 8014c08: 2c00 cmp r4, #0 8014c0a: d0e0 beq.n 8014bce <_vsniprintf_r+0x16> 8014c0c: 2200 movs r2, #0 8014c0e: 9b00 ldr r3, [sp, #0] 8014c10: 701a strb r2, [r3, #0] 8014c12: e7dc b.n 8014bce <_vsniprintf_r+0x16> 08014c14 : 8014c14: b507 push {r0, r1, r2, lr} 8014c16: 9300 str r3, [sp, #0] 8014c18: 4613 mov r3, r2 8014c1a: 460a mov r2, r1 8014c1c: 4601 mov r1, r0 8014c1e: 4803 ldr r0, [pc, #12] @ (8014c2c ) 8014c20: 6800 ldr r0, [r0, #0] 8014c22: f7ff ffc9 bl 8014bb8 <_vsniprintf_r> 8014c26: b003 add sp, #12 8014c28: f85d fb04 ldr.w pc, [sp], #4 8014c2c: 2000009c .word 0x2000009c 08014c30 <_fwalk_sglue>: 8014c30: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8014c34: 4607 mov r7, r0 8014c36: 4688 mov r8, r1 8014c38: 4614 mov r4, r2 8014c3a: 2600 movs r6, #0 8014c3c: e9d4 9501 ldrd r9, r5, [r4, #4] 8014c40: f1b9 0901 subs.w r9, r9, #1 8014c44: d505 bpl.n 8014c52 <_fwalk_sglue+0x22> 8014c46: 6824 ldr r4, [r4, #0] 8014c48: 2c00 cmp r4, #0 8014c4a: d1f7 bne.n 8014c3c <_fwalk_sglue+0xc> 8014c4c: 4630 mov r0, r6 8014c4e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8014c52: 89ab ldrh r3, [r5, #12] 8014c54: 2b01 cmp r3, #1 8014c56: d907 bls.n 8014c68 <_fwalk_sglue+0x38> 8014c58: f9b5 300e ldrsh.w r3, [r5, #14] 8014c5c: 3301 adds r3, #1 8014c5e: d003 beq.n 8014c68 <_fwalk_sglue+0x38> 8014c60: 4629 mov r1, r5 8014c62: 4638 mov r0, r7 8014c64: 47c0 blx r8 8014c66: 4306 orrs r6, r0 8014c68: 3568 adds r5, #104 @ 0x68 8014c6a: e7e9 b.n 8014c40 <_fwalk_sglue+0x10> 08014c6c : 8014c6c: b40f push {r0, r1, r2, r3} 8014c6e: b507 push {r0, r1, r2, lr} 8014c70: 4906 ldr r1, [pc, #24] @ (8014c8c ) 8014c72: ab04 add r3, sp, #16 8014c74: 6808 ldr r0, [r1, #0] 8014c76: f853 2b04 ldr.w r2, [r3], #4 8014c7a: 6881 ldr r1, [r0, #8] 8014c7c: 9301 str r3, [sp, #4] 8014c7e: f001 f857 bl 8015d30 <_vfiprintf_r> 8014c82: b003 add sp, #12 8014c84: f85d eb04 ldr.w lr, [sp], #4 8014c88: b004 add sp, #16 8014c8a: 4770 bx lr 8014c8c: 2000009c .word 0x2000009c 08014c90 : 8014c90: 4603 mov r3, r0 8014c92: 4402 add r2, r0 8014c94: 4293 cmp r3, r2 8014c96: d100 bne.n 8014c9a 8014c98: 4770 bx lr 8014c9a: f803 1b01 strb.w r1, [r3], #1 8014c9e: e7f9 b.n 8014c94 08014ca0 <__errno>: 8014ca0: 4b01 ldr r3, [pc, #4] @ (8014ca8 <__errno+0x8>) 8014ca2: 6818 ldr r0, [r3, #0] 8014ca4: 4770 bx lr 8014ca6: bf00 nop 8014ca8: 2000009c .word 0x2000009c 08014cac <__libc_init_array>: 8014cac: b570 push {r4, r5, r6, lr} 8014cae: 2600 movs r6, #0 8014cb0: 4d0c ldr r5, [pc, #48] @ (8014ce4 <__libc_init_array+0x38>) 8014cb2: 4c0d ldr r4, [pc, #52] @ (8014ce8 <__libc_init_array+0x3c>) 8014cb4: 1b64 subs r4, r4, r5 8014cb6: 10a4 asrs r4, r4, #2 8014cb8: 42a6 cmp r6, r4 8014cba: d109 bne.n 8014cd0 <__libc_init_array+0x24> 8014cbc: f002 f904 bl 8016ec8 <_init> 8014cc0: 2600 movs r6, #0 8014cc2: 4d0a ldr r5, [pc, #40] @ (8014cec <__libc_init_array+0x40>) 8014cc4: 4c0a ldr r4, [pc, #40] @ (8014cf0 <__libc_init_array+0x44>) 8014cc6: 1b64 subs r4, r4, r5 8014cc8: 10a4 asrs r4, r4, #2 8014cca: 42a6 cmp r6, r4 8014ccc: d105 bne.n 8014cda <__libc_init_array+0x2e> 8014cce: bd70 pop {r4, r5, r6, pc} 8014cd0: f855 3b04 ldr.w r3, [r5], #4 8014cd4: 4798 blx r3 8014cd6: 3601 adds r6, #1 8014cd8: e7ee b.n 8014cb8 <__libc_init_array+0xc> 8014cda: f855 3b04 ldr.w r3, [r5], #4 8014cde: 4798 blx r3 8014ce0: 3601 adds r6, #1 8014ce2: e7f2 b.n 8014cca <__libc_init_array+0x1e> 8014ce4: 08017ce4 .word 0x08017ce4 8014ce8: 08017ce4 .word 0x08017ce4 8014cec: 08017ce4 .word 0x08017ce4 8014cf0: 08017ce8 .word 0x08017ce8 08014cf4 <__retarget_lock_init_recursive>: 8014cf4: 4770 bx lr 08014cf6 <__retarget_lock_acquire_recursive>: 8014cf6: 4770 bx lr 08014cf8 <__retarget_lock_release_recursive>: 8014cf8: 4770 bx lr ... 08014cfc <_localeconv_r>: 8014cfc: 4800 ldr r0, [pc, #0] @ (8014d00 <_localeconv_r+0x4>) 8014cfe: 4770 bx lr 8014d00: 200001dc .word 0x200001dc 08014d04 : 8014d04: 4603 mov r3, r0 8014d06: b510 push {r4, lr} 8014d08: b2c9 uxtb r1, r1 8014d0a: 4402 add r2, r0 8014d0c: 4293 cmp r3, r2 8014d0e: 4618 mov r0, r3 8014d10: d101 bne.n 8014d16 8014d12: 2000 movs r0, #0 8014d14: e003 b.n 8014d1e 8014d16: 7804 ldrb r4, [r0, #0] 8014d18: 3301 adds r3, #1 8014d1a: 428c cmp r4, r1 8014d1c: d1f6 bne.n 8014d0c 8014d1e: bd10 pop {r4, pc} 08014d20 : 8014d20: 440a add r2, r1 8014d22: 4291 cmp r1, r2 8014d24: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff 8014d28: d100 bne.n 8014d2c 8014d2a: 4770 bx lr 8014d2c: b510 push {r4, lr} 8014d2e: f811 4b01 ldrb.w r4, [r1], #1 8014d32: 4291 cmp r1, r2 8014d34: f803 4f01 strb.w r4, [r3, #1]! 8014d38: d1f9 bne.n 8014d2e 8014d3a: bd10 pop {r4, pc} 08014d3c <__assert_func>: 8014d3c: b51f push {r0, r1, r2, r3, r4, lr} 8014d3e: 4614 mov r4, r2 8014d40: 461a mov r2, r3 8014d42: 4b09 ldr r3, [pc, #36] @ (8014d68 <__assert_func+0x2c>) 8014d44: 4605 mov r5, r0 8014d46: 681b ldr r3, [r3, #0] 8014d48: 68d8 ldr r0, [r3, #12] 8014d4a: b14c cbz r4, 8014d60 <__assert_func+0x24> 8014d4c: 4b07 ldr r3, [pc, #28] @ (8014d6c <__assert_func+0x30>) 8014d4e: e9cd 3401 strd r3, r4, [sp, #4] 8014d52: 9100 str r1, [sp, #0] 8014d54: 462b mov r3, r5 8014d56: 4906 ldr r1, [pc, #24] @ (8014d70 <__assert_func+0x34>) 8014d58: f001 fe1e bl 8016998 8014d5c: f001 ffe4 bl 8016d28 8014d60: 4b04 ldr r3, [pc, #16] @ (8014d74 <__assert_func+0x38>) 8014d62: 461c mov r4, r3 8014d64: e7f3 b.n 8014d4e <__assert_func+0x12> 8014d66: bf00 nop 8014d68: 2000009c .word 0x2000009c 8014d6c: 0801799c .word 0x0801799c 8014d70: 080179a9 .word 0x080179a9 8014d74: 080179d7 .word 0x080179d7 08014d78 : 8014d78: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 8014d7c: 6903 ldr r3, [r0, #16] 8014d7e: 690c ldr r4, [r1, #16] 8014d80: 4607 mov r7, r0 8014d82: 42a3 cmp r3, r4 8014d84: db7e blt.n 8014e84 8014d86: 3c01 subs r4, #1 8014d88: 00a3 lsls r3, r4, #2 8014d8a: f100 0514 add.w r5, r0, #20 8014d8e: f101 0814 add.w r8, r1, #20 8014d92: 9300 str r3, [sp, #0] 8014d94: eb05 0384 add.w r3, r5, r4, lsl #2 8014d98: 9301 str r3, [sp, #4] 8014d9a: f858 3024 ldr.w r3, [r8, r4, lsl #2] 8014d9e: f855 2024 ldr.w r2, [r5, r4, lsl #2] 8014da2: 3301 adds r3, #1 8014da4: 429a cmp r2, r3 8014da6: fbb2 f6f3 udiv r6, r2, r3 8014daa: eb08 0984 add.w r9, r8, r4, lsl #2 8014dae: d32e bcc.n 8014e0e 8014db0: f04f 0a00 mov.w sl, #0 8014db4: 46c4 mov ip, r8 8014db6: 46ae mov lr, r5 8014db8: 46d3 mov fp, sl 8014dba: f85c 3b04 ldr.w r3, [ip], #4 8014dbe: b298 uxth r0, r3 8014dc0: fb06 a000 mla r0, r6, r0, sl 8014dc4: 0c1b lsrs r3, r3, #16 8014dc6: 0c02 lsrs r2, r0, #16 8014dc8: fb06 2303 mla r3, r6, r3, r2 8014dcc: f8de 2000 ldr.w r2, [lr] 8014dd0: b280 uxth r0, r0 8014dd2: b292 uxth r2, r2 8014dd4: 1a12 subs r2, r2, r0 8014dd6: 445a add r2, fp 8014dd8: f8de 0000 ldr.w r0, [lr] 8014ddc: ea4f 4a13 mov.w sl, r3, lsr #16 8014de0: b29b uxth r3, r3 8014de2: ebc3 4322 rsb r3, r3, r2, asr #16 8014de6: eb03 4310 add.w r3, r3, r0, lsr #16 8014dea: b292 uxth r2, r2 8014dec: ea42 4203 orr.w r2, r2, r3, lsl #16 8014df0: 45e1 cmp r9, ip 8014df2: ea4f 4b23 mov.w fp, r3, asr #16 8014df6: f84e 2b04 str.w r2, [lr], #4 8014dfa: d2de bcs.n 8014dba 8014dfc: 9b00 ldr r3, [sp, #0] 8014dfe: 58eb ldr r3, [r5, r3] 8014e00: b92b cbnz r3, 8014e0e 8014e02: 9b01 ldr r3, [sp, #4] 8014e04: 3b04 subs r3, #4 8014e06: 429d cmp r5, r3 8014e08: 461a mov r2, r3 8014e0a: d32f bcc.n 8014e6c 8014e0c: 613c str r4, [r7, #16] 8014e0e: 4638 mov r0, r7 8014e10: f001 fc76 bl 8016700 <__mcmp> 8014e14: 2800 cmp r0, #0 8014e16: db25 blt.n 8014e64 8014e18: 4629 mov r1, r5 8014e1a: 2000 movs r0, #0 8014e1c: f858 2b04 ldr.w r2, [r8], #4 8014e20: f8d1 c000 ldr.w ip, [r1] 8014e24: fa1f fe82 uxth.w lr, r2 8014e28: fa1f f38c uxth.w r3, ip 8014e2c: eba3 030e sub.w r3, r3, lr 8014e30: 4403 add r3, r0 8014e32: 0c12 lsrs r2, r2, #16 8014e34: ebc2 4223 rsb r2, r2, r3, asr #16 8014e38: eb02 421c add.w r2, r2, ip, lsr #16 8014e3c: b29b uxth r3, r3 8014e3e: ea43 4302 orr.w r3, r3, r2, lsl #16 8014e42: 45c1 cmp r9, r8 8014e44: ea4f 4022 mov.w r0, r2, asr #16 8014e48: f841 3b04 str.w r3, [r1], #4 8014e4c: d2e6 bcs.n 8014e1c 8014e4e: f855 2024 ldr.w r2, [r5, r4, lsl #2] 8014e52: eb05 0384 add.w r3, r5, r4, lsl #2 8014e56: b922 cbnz r2, 8014e62 8014e58: 3b04 subs r3, #4 8014e5a: 429d cmp r5, r3 8014e5c: 461a mov r2, r3 8014e5e: d30b bcc.n 8014e78 8014e60: 613c str r4, [r7, #16] 8014e62: 3601 adds r6, #1 8014e64: 4630 mov r0, r6 8014e66: b003 add sp, #12 8014e68: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8014e6c: 6812 ldr r2, [r2, #0] 8014e6e: 3b04 subs r3, #4 8014e70: 2a00 cmp r2, #0 8014e72: d1cb bne.n 8014e0c 8014e74: 3c01 subs r4, #1 8014e76: e7c6 b.n 8014e06 8014e78: 6812 ldr r2, [r2, #0] 8014e7a: 3b04 subs r3, #4 8014e7c: 2a00 cmp r2, #0 8014e7e: d1ef bne.n 8014e60 8014e80: 3c01 subs r4, #1 8014e82: e7ea b.n 8014e5a 8014e84: 2000 movs r0, #0 8014e86: e7ee b.n 8014e66 08014e88 <_dtoa_r>: 8014e88: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8014e8c: 4614 mov r4, r2 8014e8e: 461d mov r5, r3 8014e90: 69c7 ldr r7, [r0, #28] 8014e92: b097 sub sp, #92 @ 0x5c 8014e94: 4681 mov r9, r0 8014e96: e9cd 4506 strd r4, r5, [sp, #24] 8014e9a: 9e23 ldr r6, [sp, #140] @ 0x8c 8014e9c: b97f cbnz r7, 8014ebe <_dtoa_r+0x36> 8014e9e: 2010 movs r0, #16 8014ea0: f001 f85e bl 8015f60 8014ea4: 4602 mov r2, r0 8014ea6: f8c9 001c str.w r0, [r9, #28] 8014eaa: b920 cbnz r0, 8014eb6 <_dtoa_r+0x2e> 8014eac: 21ef movs r1, #239 @ 0xef 8014eae: 4bac ldr r3, [pc, #688] @ (8015160 <_dtoa_r+0x2d8>) 8014eb0: 48ac ldr r0, [pc, #688] @ (8015164 <_dtoa_r+0x2dc>) 8014eb2: f7ff ff43 bl 8014d3c <__assert_func> 8014eb6: e9c0 7701 strd r7, r7, [r0, #4] 8014eba: 6007 str r7, [r0, #0] 8014ebc: 60c7 str r7, [r0, #12] 8014ebe: f8d9 301c ldr.w r3, [r9, #28] 8014ec2: 6819 ldr r1, [r3, #0] 8014ec4: b159 cbz r1, 8014ede <_dtoa_r+0x56> 8014ec6: 685a ldr r2, [r3, #4] 8014ec8: 2301 movs r3, #1 8014eca: 4093 lsls r3, r2 8014ecc: 604a str r2, [r1, #4] 8014ece: 608b str r3, [r1, #8] 8014ed0: 4648 mov r0, r9 8014ed2: f001 f9e3 bl 801629c <_Bfree> 8014ed6: 2200 movs r2, #0 8014ed8: f8d9 301c ldr.w r3, [r9, #28] 8014edc: 601a str r2, [r3, #0] 8014ede: 1e2b subs r3, r5, #0 8014ee0: bfaf iteee ge 8014ee2: 2300 movge r3, #0 8014ee4: 2201 movlt r2, #1 8014ee6: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000 8014eea: 9307 strlt r3, [sp, #28] 8014eec: bfa8 it ge 8014eee: 6033 strge r3, [r6, #0] 8014ef0: f8dd 801c ldr.w r8, [sp, #28] 8014ef4: 4b9c ldr r3, [pc, #624] @ (8015168 <_dtoa_r+0x2e0>) 8014ef6: bfb8 it lt 8014ef8: 6032 strlt r2, [r6, #0] 8014efa: ea33 0308 bics.w r3, r3, r8 8014efe: d112 bne.n 8014f26 <_dtoa_r+0x9e> 8014f00: f242 730f movw r3, #9999 @ 0x270f 8014f04: 9a22 ldr r2, [sp, #136] @ 0x88 8014f06: 6013 str r3, [r2, #0] 8014f08: f3c8 0313 ubfx r3, r8, #0, #20 8014f0c: 4323 orrs r3, r4 8014f0e: f000 855e beq.w 80159ce <_dtoa_r+0xb46> 8014f12: 9b24 ldr r3, [sp, #144] @ 0x90 8014f14: f8df a254 ldr.w sl, [pc, #596] @ 801516c <_dtoa_r+0x2e4> 8014f18: 2b00 cmp r3, #0 8014f1a: f000 8560 beq.w 80159de <_dtoa_r+0xb56> 8014f1e: f10a 0303 add.w r3, sl, #3 8014f22: f000 bd5a b.w 80159da <_dtoa_r+0xb52> 8014f26: e9dd 2306 ldrd r2, r3, [sp, #24] 8014f2a: e9cd 230c strd r2, r3, [sp, #48] @ 0x30 8014f2e: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014f32: 2200 movs r2, #0 8014f34: 2300 movs r3, #0 8014f36: f7f3 fda3 bl 8008a80 <__aeabi_dcmpeq> 8014f3a: 4607 mov r7, r0 8014f3c: b158 cbz r0, 8014f56 <_dtoa_r+0xce> 8014f3e: 2301 movs r3, #1 8014f40: 9a22 ldr r2, [sp, #136] @ 0x88 8014f42: 6013 str r3, [r2, #0] 8014f44: 9b24 ldr r3, [sp, #144] @ 0x90 8014f46: b113 cbz r3, 8014f4e <_dtoa_r+0xc6> 8014f48: 4b89 ldr r3, [pc, #548] @ (8015170 <_dtoa_r+0x2e8>) 8014f4a: 9a24 ldr r2, [sp, #144] @ 0x90 8014f4c: 6013 str r3, [r2, #0] 8014f4e: f8df a224 ldr.w sl, [pc, #548] @ 8015174 <_dtoa_r+0x2ec> 8014f52: f000 bd44 b.w 80159de <_dtoa_r+0xb56> 8014f56: ab14 add r3, sp, #80 @ 0x50 8014f58: 9301 str r3, [sp, #4] 8014f5a: ab15 add r3, sp, #84 @ 0x54 8014f5c: 9300 str r3, [sp, #0] 8014f5e: 4648 mov r0, r9 8014f60: e9dd 230c ldrd r2, r3, [sp, #48] @ 0x30 8014f64: f001 fc7c bl 8016860 <__d2b> 8014f68: f3c8 560a ubfx r6, r8, #20, #11 8014f6c: 9003 str r0, [sp, #12] 8014f6e: 2e00 cmp r6, #0 8014f70: d078 beq.n 8015064 <_dtoa_r+0x1dc> 8014f72: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014f76: 9b0d ldr r3, [sp, #52] @ 0x34 8014f78: f2a6 36ff subw r6, r6, #1023 @ 0x3ff 8014f7c: f3c3 0313 ubfx r3, r3, #0, #20 8014f80: f043 537f orr.w r3, r3, #1069547520 @ 0x3fc00000 8014f84: f443 1340 orr.w r3, r3, #3145728 @ 0x300000 8014f88: 9712 str r7, [sp, #72] @ 0x48 8014f8a: 4619 mov r1, r3 8014f8c: 2200 movs r2, #0 8014f8e: 4b7a ldr r3, [pc, #488] @ (8015178 <_dtoa_r+0x2f0>) 8014f90: f7f3 f956 bl 8008240 <__aeabi_dsub> 8014f94: a36c add r3, pc, #432 @ (adr r3, 8015148 <_dtoa_r+0x2c0>) 8014f96: e9d3 2300 ldrd r2, r3, [r3] 8014f9a: f7f3 fb09 bl 80085b0 <__aeabi_dmul> 8014f9e: a36c add r3, pc, #432 @ (adr r3, 8015150 <_dtoa_r+0x2c8>) 8014fa0: e9d3 2300 ldrd r2, r3, [r3] 8014fa4: f7f3 f94e bl 8008244 <__adddf3> 8014fa8: 4604 mov r4, r0 8014faa: 4630 mov r0, r6 8014fac: 460d mov r5, r1 8014fae: f7f3 fa95 bl 80084dc <__aeabi_i2d> 8014fb2: a369 add r3, pc, #420 @ (adr r3, 8015158 <_dtoa_r+0x2d0>) 8014fb4: e9d3 2300 ldrd r2, r3, [r3] 8014fb8: f7f3 fafa bl 80085b0 <__aeabi_dmul> 8014fbc: 4602 mov r2, r0 8014fbe: 460b mov r3, r1 8014fc0: 4620 mov r0, r4 8014fc2: 4629 mov r1, r5 8014fc4: f7f3 f93e bl 8008244 <__adddf3> 8014fc8: 4604 mov r4, r0 8014fca: 460d mov r5, r1 8014fcc: f7f3 fda0 bl 8008b10 <__aeabi_d2iz> 8014fd0: 2200 movs r2, #0 8014fd2: 4607 mov r7, r0 8014fd4: 2300 movs r3, #0 8014fd6: 4620 mov r0, r4 8014fd8: 4629 mov r1, r5 8014fda: f7f3 fd5b bl 8008a94 <__aeabi_dcmplt> 8014fde: b140 cbz r0, 8014ff2 <_dtoa_r+0x16a> 8014fe0: 4638 mov r0, r7 8014fe2: f7f3 fa7b bl 80084dc <__aeabi_i2d> 8014fe6: 4622 mov r2, r4 8014fe8: 462b mov r3, r5 8014fea: f7f3 fd49 bl 8008a80 <__aeabi_dcmpeq> 8014fee: b900 cbnz r0, 8014ff2 <_dtoa_r+0x16a> 8014ff0: 3f01 subs r7, #1 8014ff2: 2f16 cmp r7, #22 8014ff4: d854 bhi.n 80150a0 <_dtoa_r+0x218> 8014ff6: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 8014ffa: 4b60 ldr r3, [pc, #384] @ (801517c <_dtoa_r+0x2f4>) 8014ffc: eb03 03c7 add.w r3, r3, r7, lsl #3 8015000: e9d3 2300 ldrd r2, r3, [r3] 8015004: f7f3 fd46 bl 8008a94 <__aeabi_dcmplt> 8015008: 2800 cmp r0, #0 801500a: d04b beq.n 80150a4 <_dtoa_r+0x21c> 801500c: 2300 movs r3, #0 801500e: 3f01 subs r7, #1 8015010: 930f str r3, [sp, #60] @ 0x3c 8015012: 9b14 ldr r3, [sp, #80] @ 0x50 8015014: 1b9b subs r3, r3, r6 8015016: 1e5a subs r2, r3, #1 8015018: bf49 itett mi 801501a: f1c3 0301 rsbmi r3, r3, #1 801501e: 2300 movpl r3, #0 8015020: 9304 strmi r3, [sp, #16] 8015022: 2300 movmi r3, #0 8015024: 9209 str r2, [sp, #36] @ 0x24 8015026: bf54 ite pl 8015028: 9304 strpl r3, [sp, #16] 801502a: 9309 strmi r3, [sp, #36] @ 0x24 801502c: 2f00 cmp r7, #0 801502e: db3b blt.n 80150a8 <_dtoa_r+0x220> 8015030: 9b09 ldr r3, [sp, #36] @ 0x24 8015032: 970e str r7, [sp, #56] @ 0x38 8015034: 443b add r3, r7 8015036: 9309 str r3, [sp, #36] @ 0x24 8015038: 2300 movs r3, #0 801503a: 930a str r3, [sp, #40] @ 0x28 801503c: 9b20 ldr r3, [sp, #128] @ 0x80 801503e: 2b09 cmp r3, #9 8015040: d865 bhi.n 801510e <_dtoa_r+0x286> 8015042: 2b05 cmp r3, #5 8015044: bfc4 itt gt 8015046: 3b04 subgt r3, #4 8015048: 9320 strgt r3, [sp, #128] @ 0x80 801504a: 9b20 ldr r3, [sp, #128] @ 0x80 801504c: bfc8 it gt 801504e: 2400 movgt r4, #0 8015050: f1a3 0302 sub.w r3, r3, #2 8015054: bfd8 it le 8015056: 2401 movle r4, #1 8015058: 2b03 cmp r3, #3 801505a: d864 bhi.n 8015126 <_dtoa_r+0x29e> 801505c: e8df f003 tbb [pc, r3] 8015060: 2c385553 .word 0x2c385553 8015064: e9dd 6314 ldrd r6, r3, [sp, #80] @ 0x50 8015068: 441e add r6, r3 801506a: f206 4332 addw r3, r6, #1074 @ 0x432 801506e: 2b20 cmp r3, #32 8015070: bfc1 itttt gt 8015072: f1c3 0340 rsbgt r3, r3, #64 @ 0x40 8015076: fa08 f803 lslgt.w r8, r8, r3 801507a: f206 4312 addwgt r3, r6, #1042 @ 0x412 801507e: fa24 f303 lsrgt.w r3, r4, r3 8015082: bfd6 itet le 8015084: f1c3 0320 rsble r3, r3, #32 8015088: ea48 0003 orrgt.w r0, r8, r3 801508c: fa04 f003 lslle.w r0, r4, r3 8015090: f7f3 fa14 bl 80084bc <__aeabi_ui2d> 8015094: 2201 movs r2, #1 8015096: f1a1 73f8 sub.w r3, r1, #32505856 @ 0x1f00000 801509a: 3e01 subs r6, #1 801509c: 9212 str r2, [sp, #72] @ 0x48 801509e: e774 b.n 8014f8a <_dtoa_r+0x102> 80150a0: 2301 movs r3, #1 80150a2: e7b5 b.n 8015010 <_dtoa_r+0x188> 80150a4: 900f str r0, [sp, #60] @ 0x3c 80150a6: e7b4 b.n 8015012 <_dtoa_r+0x18a> 80150a8: 9b04 ldr r3, [sp, #16] 80150aa: 1bdb subs r3, r3, r7 80150ac: 9304 str r3, [sp, #16] 80150ae: 427b negs r3, r7 80150b0: 930a str r3, [sp, #40] @ 0x28 80150b2: 2300 movs r3, #0 80150b4: 930e str r3, [sp, #56] @ 0x38 80150b6: e7c1 b.n 801503c <_dtoa_r+0x1b4> 80150b8: 2301 movs r3, #1 80150ba: 930b str r3, [sp, #44] @ 0x2c 80150bc: 9b21 ldr r3, [sp, #132] @ 0x84 80150be: eb07 0b03 add.w fp, r7, r3 80150c2: f10b 0301 add.w r3, fp, #1 80150c6: 2b01 cmp r3, #1 80150c8: 9308 str r3, [sp, #32] 80150ca: bfb8 it lt 80150cc: 2301 movlt r3, #1 80150ce: e006 b.n 80150de <_dtoa_r+0x256> 80150d0: 2301 movs r3, #1 80150d2: 930b str r3, [sp, #44] @ 0x2c 80150d4: 9b21 ldr r3, [sp, #132] @ 0x84 80150d6: 2b00 cmp r3, #0 80150d8: dd28 ble.n 801512c <_dtoa_r+0x2a4> 80150da: 469b mov fp, r3 80150dc: 9308 str r3, [sp, #32] 80150de: 2100 movs r1, #0 80150e0: 2204 movs r2, #4 80150e2: f8d9 001c ldr.w r0, [r9, #28] 80150e6: f102 0514 add.w r5, r2, #20 80150ea: 429d cmp r5, r3 80150ec: d926 bls.n 801513c <_dtoa_r+0x2b4> 80150ee: 6041 str r1, [r0, #4] 80150f0: 4648 mov r0, r9 80150f2: f001 f893 bl 801621c <_Balloc> 80150f6: 4682 mov sl, r0 80150f8: 2800 cmp r0, #0 80150fa: d143 bne.n 8015184 <_dtoa_r+0x2fc> 80150fc: 4602 mov r2, r0 80150fe: f240 11af movw r1, #431 @ 0x1af 8015102: 4b1f ldr r3, [pc, #124] @ (8015180 <_dtoa_r+0x2f8>) 8015104: e6d4 b.n 8014eb0 <_dtoa_r+0x28> 8015106: 2300 movs r3, #0 8015108: e7e3 b.n 80150d2 <_dtoa_r+0x24a> 801510a: 2300 movs r3, #0 801510c: e7d5 b.n 80150ba <_dtoa_r+0x232> 801510e: 2401 movs r4, #1 8015110: 2300 movs r3, #0 8015112: 940b str r4, [sp, #44] @ 0x2c 8015114: 9320 str r3, [sp, #128] @ 0x80 8015116: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff 801511a: 2200 movs r2, #0 801511c: 2312 movs r3, #18 801511e: f8cd b020 str.w fp, [sp, #32] 8015122: 9221 str r2, [sp, #132] @ 0x84 8015124: e7db b.n 80150de <_dtoa_r+0x256> 8015126: 2301 movs r3, #1 8015128: 930b str r3, [sp, #44] @ 0x2c 801512a: e7f4 b.n 8015116 <_dtoa_r+0x28e> 801512c: f04f 0b01 mov.w fp, #1 8015130: 465b mov r3, fp 8015132: f8cd b020 str.w fp, [sp, #32] 8015136: f8cd b084 str.w fp, [sp, #132] @ 0x84 801513a: e7d0 b.n 80150de <_dtoa_r+0x256> 801513c: 3101 adds r1, #1 801513e: 0052 lsls r2, r2, #1 8015140: e7d1 b.n 80150e6 <_dtoa_r+0x25e> 8015142: bf00 nop 8015144: f3af 8000 nop.w 8015148: 636f4361 .word 0x636f4361 801514c: 3fd287a7 .word 0x3fd287a7 8015150: 8b60c8b3 .word 0x8b60c8b3 8015154: 3fc68a28 .word 0x3fc68a28 8015158: 509f79fb .word 0x509f79fb 801515c: 3fd34413 .word 0x3fd34413 8015160: 080179e5 .word 0x080179e5 8015164: 080179fc .word 0x080179fc 8015168: 7ff00000 .word 0x7ff00000 801516c: 080179e1 .word 0x080179e1 8015170: 08017979 .word 0x08017979 8015174: 08017978 .word 0x08017978 8015178: 3ff80000 .word 0x3ff80000 801517c: 08017b10 .word 0x08017b10 8015180: 08017a54 .word 0x08017a54 8015184: f8d9 301c ldr.w r3, [r9, #28] 8015188: 6018 str r0, [r3, #0] 801518a: 9b08 ldr r3, [sp, #32] 801518c: 2b0e cmp r3, #14 801518e: f200 80a1 bhi.w 80152d4 <_dtoa_r+0x44c> 8015192: 2c00 cmp r4, #0 8015194: f000 809e beq.w 80152d4 <_dtoa_r+0x44c> 8015198: 2f00 cmp r7, #0 801519a: dd33 ble.n 8015204 <_dtoa_r+0x37c> 801519c: 4b9c ldr r3, [pc, #624] @ (8015410 <_dtoa_r+0x588>) 801519e: f007 020f and.w r2, r7, #15 80151a2: eb03 03c2 add.w r3, r3, r2, lsl #3 80151a6: 05f8 lsls r0, r7, #23 80151a8: e9d3 3400 ldrd r3, r4, [r3] 80151ac: e9cd 3410 strd r3, r4, [sp, #64] @ 0x40 80151b0: ea4f 1427 mov.w r4, r7, asr #4 80151b4: d516 bpl.n 80151e4 <_dtoa_r+0x35c> 80151b6: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 80151ba: 4b96 ldr r3, [pc, #600] @ (8015414 <_dtoa_r+0x58c>) 80151bc: 2603 movs r6, #3 80151be: e9d3 2308 ldrd r2, r3, [r3, #32] 80151c2: f7f3 fb1f bl 8008804 <__aeabi_ddiv> 80151c6: e9cd 0106 strd r0, r1, [sp, #24] 80151ca: f004 040f and.w r4, r4, #15 80151ce: 4d91 ldr r5, [pc, #580] @ (8015414 <_dtoa_r+0x58c>) 80151d0: b954 cbnz r4, 80151e8 <_dtoa_r+0x360> 80151d2: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 80151d6: e9dd 0106 ldrd r0, r1, [sp, #24] 80151da: f7f3 fb13 bl 8008804 <__aeabi_ddiv> 80151de: e9cd 0106 strd r0, r1, [sp, #24] 80151e2: e028 b.n 8015236 <_dtoa_r+0x3ae> 80151e4: 2602 movs r6, #2 80151e6: e7f2 b.n 80151ce <_dtoa_r+0x346> 80151e8: 07e1 lsls r1, r4, #31 80151ea: d508 bpl.n 80151fe <_dtoa_r+0x376> 80151ec: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 80151f0: e9d5 2300 ldrd r2, r3, [r5] 80151f4: f7f3 f9dc bl 80085b0 <__aeabi_dmul> 80151f8: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 80151fc: 3601 adds r6, #1 80151fe: 1064 asrs r4, r4, #1 8015200: 3508 adds r5, #8 8015202: e7e5 b.n 80151d0 <_dtoa_r+0x348> 8015204: f000 80af beq.w 8015366 <_dtoa_r+0x4de> 8015208: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30 801520c: 427c negs r4, r7 801520e: 4b80 ldr r3, [pc, #512] @ (8015410 <_dtoa_r+0x588>) 8015210: f004 020f and.w r2, r4, #15 8015214: eb03 03c2 add.w r3, r3, r2, lsl #3 8015218: e9d3 2300 ldrd r2, r3, [r3] 801521c: f7f3 f9c8 bl 80085b0 <__aeabi_dmul> 8015220: 2602 movs r6, #2 8015222: 2300 movs r3, #0 8015224: e9cd 0106 strd r0, r1, [sp, #24] 8015228: 4d7a ldr r5, [pc, #488] @ (8015414 <_dtoa_r+0x58c>) 801522a: 1124 asrs r4, r4, #4 801522c: 2c00 cmp r4, #0 801522e: f040 808f bne.w 8015350 <_dtoa_r+0x4c8> 8015232: 2b00 cmp r3, #0 8015234: d1d3 bne.n 80151de <_dtoa_r+0x356> 8015236: e9dd 4506 ldrd r4, r5, [sp, #24] 801523a: 9b0f ldr r3, [sp, #60] @ 0x3c 801523c: 2b00 cmp r3, #0 801523e: f000 8094 beq.w 801536a <_dtoa_r+0x4e2> 8015242: 2200 movs r2, #0 8015244: 4620 mov r0, r4 8015246: 4629 mov r1, r5 8015248: 4b73 ldr r3, [pc, #460] @ (8015418 <_dtoa_r+0x590>) 801524a: f7f3 fc23 bl 8008a94 <__aeabi_dcmplt> 801524e: 2800 cmp r0, #0 8015250: f000 808b beq.w 801536a <_dtoa_r+0x4e2> 8015254: 9b08 ldr r3, [sp, #32] 8015256: 2b00 cmp r3, #0 8015258: f000 8087 beq.w 801536a <_dtoa_r+0x4e2> 801525c: f1bb 0f00 cmp.w fp, #0 8015260: dd34 ble.n 80152cc <_dtoa_r+0x444> 8015262: 4620 mov r0, r4 8015264: 2200 movs r2, #0 8015266: 4629 mov r1, r5 8015268: 4b6c ldr r3, [pc, #432] @ (801541c <_dtoa_r+0x594>) 801526a: f7f3 f9a1 bl 80085b0 <__aeabi_dmul> 801526e: 465c mov r4, fp 8015270: e9cd 0106 strd r0, r1, [sp, #24] 8015274: f107 38ff add.w r8, r7, #4294967295 @ 0xffffffff 8015278: 3601 adds r6, #1 801527a: 4630 mov r0, r6 801527c: f7f3 f92e bl 80084dc <__aeabi_i2d> 8015280: e9dd 2306 ldrd r2, r3, [sp, #24] 8015284: f7f3 f994 bl 80085b0 <__aeabi_dmul> 8015288: 2200 movs r2, #0 801528a: 4b65 ldr r3, [pc, #404] @ (8015420 <_dtoa_r+0x598>) 801528c: f7f2 ffda bl 8008244 <__adddf3> 8015290: 4605 mov r5, r0 8015292: f1a1 7650 sub.w r6, r1, #54525952 @ 0x3400000 8015296: 2c00 cmp r4, #0 8015298: d16a bne.n 8015370 <_dtoa_r+0x4e8> 801529a: e9dd 0106 ldrd r0, r1, [sp, #24] 801529e: 2200 movs r2, #0 80152a0: 4b60 ldr r3, [pc, #384] @ (8015424 <_dtoa_r+0x59c>) 80152a2: f7f2 ffcd bl 8008240 <__aeabi_dsub> 80152a6: 4602 mov r2, r0 80152a8: 460b mov r3, r1 80152aa: e9cd 2306 strd r2, r3, [sp, #24] 80152ae: 462a mov r2, r5 80152b0: 4633 mov r3, r6 80152b2: f7f3 fc0d bl 8008ad0 <__aeabi_dcmpgt> 80152b6: 2800 cmp r0, #0 80152b8: f040 8298 bne.w 80157ec <_dtoa_r+0x964> 80152bc: e9dd 0106 ldrd r0, r1, [sp, #24] 80152c0: 462a mov r2, r5 80152c2: f106 4300 add.w r3, r6, #2147483648 @ 0x80000000 80152c6: f7f3 fbe5 bl 8008a94 <__aeabi_dcmplt> 80152ca: bb38 cbnz r0, 801531c <_dtoa_r+0x494> 80152cc: e9dd 340c ldrd r3, r4, [sp, #48] @ 0x30 80152d0: e9cd 3406 strd r3, r4, [sp, #24] 80152d4: 9b15 ldr r3, [sp, #84] @ 0x54 80152d6: 2b00 cmp r3, #0 80152d8: f2c0 8157 blt.w 801558a <_dtoa_r+0x702> 80152dc: 2f0e cmp r7, #14 80152de: f300 8154 bgt.w 801558a <_dtoa_r+0x702> 80152e2: 4b4b ldr r3, [pc, #300] @ (8015410 <_dtoa_r+0x588>) 80152e4: eb03 03c7 add.w r3, r3, r7, lsl #3 80152e8: e9d3 3400 ldrd r3, r4, [r3] 80152ec: e9cd 3404 strd r3, r4, [sp, #16] 80152f0: 9b21 ldr r3, [sp, #132] @ 0x84 80152f2: 2b00 cmp r3, #0 80152f4: f280 80e5 bge.w 80154c2 <_dtoa_r+0x63a> 80152f8: 9b08 ldr r3, [sp, #32] 80152fa: 2b00 cmp r3, #0 80152fc: f300 80e1 bgt.w 80154c2 <_dtoa_r+0x63a> 8015300: d10c bne.n 801531c <_dtoa_r+0x494> 8015302: e9dd 0104 ldrd r0, r1, [sp, #16] 8015306: 2200 movs r2, #0 8015308: 4b46 ldr r3, [pc, #280] @ (8015424 <_dtoa_r+0x59c>) 801530a: f7f3 f951 bl 80085b0 <__aeabi_dmul> 801530e: e9dd 2306 ldrd r2, r3, [sp, #24] 8015312: f7f3 fbd3 bl 8008abc <__aeabi_dcmpge> 8015316: 2800 cmp r0, #0 8015318: f000 8266 beq.w 80157e8 <_dtoa_r+0x960> 801531c: 2400 movs r4, #0 801531e: 4625 mov r5, r4 8015320: 9b21 ldr r3, [sp, #132] @ 0x84 8015322: 4656 mov r6, sl 8015324: ea6f 0803 mvn.w r8, r3 8015328: 2700 movs r7, #0 801532a: 4621 mov r1, r4 801532c: 4648 mov r0, r9 801532e: f000 ffb5 bl 801629c <_Bfree> 8015332: 2d00 cmp r5, #0 8015334: f000 80bd beq.w 80154b2 <_dtoa_r+0x62a> 8015338: b12f cbz r7, 8015346 <_dtoa_r+0x4be> 801533a: 42af cmp r7, r5 801533c: d003 beq.n 8015346 <_dtoa_r+0x4be> 801533e: 4639 mov r1, r7 8015340: 4648 mov r0, r9 8015342: f000 ffab bl 801629c <_Bfree> 8015346: 4629 mov r1, r5 8015348: 4648 mov r0, r9 801534a: f000 ffa7 bl 801629c <_Bfree> 801534e: e0b0 b.n 80154b2 <_dtoa_r+0x62a> 8015350: 07e2 lsls r2, r4, #31 8015352: d505 bpl.n 8015360 <_dtoa_r+0x4d8> 8015354: e9d5 2300 ldrd r2, r3, [r5] 8015358: f7f3 f92a bl 80085b0 <__aeabi_dmul> 801535c: 2301 movs r3, #1 801535e: 3601 adds r6, #1 8015360: 1064 asrs r4, r4, #1 8015362: 3508 adds r5, #8 8015364: e762 b.n 801522c <_dtoa_r+0x3a4> 8015366: 2602 movs r6, #2 8015368: e765 b.n 8015236 <_dtoa_r+0x3ae> 801536a: 46b8 mov r8, r7 801536c: 9c08 ldr r4, [sp, #32] 801536e: e784 b.n 801527a <_dtoa_r+0x3f2> 8015370: 4b27 ldr r3, [pc, #156] @ (8015410 <_dtoa_r+0x588>) 8015372: 990b ldr r1, [sp, #44] @ 0x2c 8015374: eb03 03c4 add.w r3, r3, r4, lsl #3 8015378: e953 2302 ldrd r2, r3, [r3, #-8] 801537c: 4454 add r4, sl 801537e: 2900 cmp r1, #0 8015380: d054 beq.n 801542c <_dtoa_r+0x5a4> 8015382: 2000 movs r0, #0 8015384: 4928 ldr r1, [pc, #160] @ (8015428 <_dtoa_r+0x5a0>) 8015386: f7f3 fa3d bl 8008804 <__aeabi_ddiv> 801538a: 4633 mov r3, r6 801538c: 462a mov r2, r5 801538e: f7f2 ff57 bl 8008240 <__aeabi_dsub> 8015392: 4656 mov r6, sl 8015394: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 8015398: e9dd 0106 ldrd r0, r1, [sp, #24] 801539c: f7f3 fbb8 bl 8008b10 <__aeabi_d2iz> 80153a0: 4605 mov r5, r0 80153a2: f7f3 f89b bl 80084dc <__aeabi_i2d> 80153a6: 4602 mov r2, r0 80153a8: 460b mov r3, r1 80153aa: e9dd 0106 ldrd r0, r1, [sp, #24] 80153ae: f7f2 ff47 bl 8008240 <__aeabi_dsub> 80153b2: 4602 mov r2, r0 80153b4: 460b mov r3, r1 80153b6: 3530 adds r5, #48 @ 0x30 80153b8: e9cd 2306 strd r2, r3, [sp, #24] 80153bc: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 80153c0: f806 5b01 strb.w r5, [r6], #1 80153c4: f7f3 fb66 bl 8008a94 <__aeabi_dcmplt> 80153c8: 2800 cmp r0, #0 80153ca: d172 bne.n 80154b2 <_dtoa_r+0x62a> 80153cc: e9dd 2306 ldrd r2, r3, [sp, #24] 80153d0: 2000 movs r0, #0 80153d2: 4911 ldr r1, [pc, #68] @ (8015418 <_dtoa_r+0x590>) 80153d4: f7f2 ff34 bl 8008240 <__aeabi_dsub> 80153d8: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 80153dc: f7f3 fb5a bl 8008a94 <__aeabi_dcmplt> 80153e0: 2800 cmp r0, #0 80153e2: f040 80b4 bne.w 801554e <_dtoa_r+0x6c6> 80153e6: 42a6 cmp r6, r4 80153e8: f43f af70 beq.w 80152cc <_dtoa_r+0x444> 80153ec: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 80153f0: 2200 movs r2, #0 80153f2: 4b0a ldr r3, [pc, #40] @ (801541c <_dtoa_r+0x594>) 80153f4: f7f3 f8dc bl 80085b0 <__aeabi_dmul> 80153f8: 2200 movs r2, #0 80153fa: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 80153fe: e9dd 0106 ldrd r0, r1, [sp, #24] 8015402: 4b06 ldr r3, [pc, #24] @ (801541c <_dtoa_r+0x594>) 8015404: f7f3 f8d4 bl 80085b0 <__aeabi_dmul> 8015408: e9cd 0106 strd r0, r1, [sp, #24] 801540c: e7c4 b.n 8015398 <_dtoa_r+0x510> 801540e: bf00 nop 8015410: 08017b10 .word 0x08017b10 8015414: 08017ae8 .word 0x08017ae8 8015418: 3ff00000 .word 0x3ff00000 801541c: 40240000 .word 0x40240000 8015420: 401c0000 .word 0x401c0000 8015424: 40140000 .word 0x40140000 8015428: 3fe00000 .word 0x3fe00000 801542c: 4631 mov r1, r6 801542e: 4628 mov r0, r5 8015430: f7f3 f8be bl 80085b0 <__aeabi_dmul> 8015434: 4656 mov r6, sl 8015436: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40 801543a: 9413 str r4, [sp, #76] @ 0x4c 801543c: e9dd 0106 ldrd r0, r1, [sp, #24] 8015440: f7f3 fb66 bl 8008b10 <__aeabi_d2iz> 8015444: 4605 mov r5, r0 8015446: f7f3 f849 bl 80084dc <__aeabi_i2d> 801544a: 4602 mov r2, r0 801544c: 460b mov r3, r1 801544e: e9dd 0106 ldrd r0, r1, [sp, #24] 8015452: f7f2 fef5 bl 8008240 <__aeabi_dsub> 8015456: 4602 mov r2, r0 8015458: 460b mov r3, r1 801545a: 3530 adds r5, #48 @ 0x30 801545c: f806 5b01 strb.w r5, [r6], #1 8015460: 42a6 cmp r6, r4 8015462: e9cd 2306 strd r2, r3, [sp, #24] 8015466: f04f 0200 mov.w r2, #0 801546a: d124 bne.n 80154b6 <_dtoa_r+0x62e> 801546c: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40 8015470: 4bae ldr r3, [pc, #696] @ (801572c <_dtoa_r+0x8a4>) 8015472: f7f2 fee7 bl 8008244 <__adddf3> 8015476: 4602 mov r2, r0 8015478: 460b mov r3, r1 801547a: e9dd 0106 ldrd r0, r1, [sp, #24] 801547e: f7f3 fb27 bl 8008ad0 <__aeabi_dcmpgt> 8015482: 2800 cmp r0, #0 8015484: d163 bne.n 801554e <_dtoa_r+0x6c6> 8015486: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40 801548a: 2000 movs r0, #0 801548c: 49a7 ldr r1, [pc, #668] @ (801572c <_dtoa_r+0x8a4>) 801548e: f7f2 fed7 bl 8008240 <__aeabi_dsub> 8015492: 4602 mov r2, r0 8015494: 460b mov r3, r1 8015496: e9dd 0106 ldrd r0, r1, [sp, #24] 801549a: f7f3 fafb bl 8008a94 <__aeabi_dcmplt> 801549e: 2800 cmp r0, #0 80154a0: f43f af14 beq.w 80152cc <_dtoa_r+0x444> 80154a4: 9e13 ldr r6, [sp, #76] @ 0x4c 80154a6: 1e73 subs r3, r6, #1 80154a8: 9313 str r3, [sp, #76] @ 0x4c 80154aa: f816 3c01 ldrb.w r3, [r6, #-1] 80154ae: 2b30 cmp r3, #48 @ 0x30 80154b0: d0f8 beq.n 80154a4 <_dtoa_r+0x61c> 80154b2: 4647 mov r7, r8 80154b4: e03b b.n 801552e <_dtoa_r+0x6a6> 80154b6: 4b9e ldr r3, [pc, #632] @ (8015730 <_dtoa_r+0x8a8>) 80154b8: f7f3 f87a bl 80085b0 <__aeabi_dmul> 80154bc: e9cd 0106 strd r0, r1, [sp, #24] 80154c0: e7bc b.n 801543c <_dtoa_r+0x5b4> 80154c2: 4656 mov r6, sl 80154c4: e9dd 4506 ldrd r4, r5, [sp, #24] 80154c8: e9dd 2304 ldrd r2, r3, [sp, #16] 80154cc: 4620 mov r0, r4 80154ce: 4629 mov r1, r5 80154d0: f7f3 f998 bl 8008804 <__aeabi_ddiv> 80154d4: f7f3 fb1c bl 8008b10 <__aeabi_d2iz> 80154d8: 4680 mov r8, r0 80154da: f7f2 ffff bl 80084dc <__aeabi_i2d> 80154de: e9dd 2304 ldrd r2, r3, [sp, #16] 80154e2: f7f3 f865 bl 80085b0 <__aeabi_dmul> 80154e6: 4602 mov r2, r0 80154e8: 460b mov r3, r1 80154ea: 4620 mov r0, r4 80154ec: 4629 mov r1, r5 80154ee: f7f2 fea7 bl 8008240 <__aeabi_dsub> 80154f2: f108 0430 add.w r4, r8, #48 @ 0x30 80154f6: 9d08 ldr r5, [sp, #32] 80154f8: f806 4b01 strb.w r4, [r6], #1 80154fc: eba6 040a sub.w r4, r6, sl 8015500: 42a5 cmp r5, r4 8015502: 4602 mov r2, r0 8015504: 460b mov r3, r1 8015506: d133 bne.n 8015570 <_dtoa_r+0x6e8> 8015508: f7f2 fe9c bl 8008244 <__adddf3> 801550c: e9dd 2304 ldrd r2, r3, [sp, #16] 8015510: 4604 mov r4, r0 8015512: 460d mov r5, r1 8015514: f7f3 fadc bl 8008ad0 <__aeabi_dcmpgt> 8015518: b9c0 cbnz r0, 801554c <_dtoa_r+0x6c4> 801551a: e9dd 2304 ldrd r2, r3, [sp, #16] 801551e: 4620 mov r0, r4 8015520: 4629 mov r1, r5 8015522: f7f3 faad bl 8008a80 <__aeabi_dcmpeq> 8015526: b110 cbz r0, 801552e <_dtoa_r+0x6a6> 8015528: f018 0f01 tst.w r8, #1 801552c: d10e bne.n 801554c <_dtoa_r+0x6c4> 801552e: 4648 mov r0, r9 8015530: 9903 ldr r1, [sp, #12] 8015532: f000 feb3 bl 801629c <_Bfree> 8015536: 2300 movs r3, #0 8015538: 7033 strb r3, [r6, #0] 801553a: 9b22 ldr r3, [sp, #136] @ 0x88 801553c: 3701 adds r7, #1 801553e: 601f str r7, [r3, #0] 8015540: 9b24 ldr r3, [sp, #144] @ 0x90 8015542: 2b00 cmp r3, #0 8015544: f000 824b beq.w 80159de <_dtoa_r+0xb56> 8015548: 601e str r6, [r3, #0] 801554a: e248 b.n 80159de <_dtoa_r+0xb56> 801554c: 46b8 mov r8, r7 801554e: 4633 mov r3, r6 8015550: 461e mov r6, r3 8015552: f813 2d01 ldrb.w r2, [r3, #-1]! 8015556: 2a39 cmp r2, #57 @ 0x39 8015558: d106 bne.n 8015568 <_dtoa_r+0x6e0> 801555a: 459a cmp sl, r3 801555c: d1f8 bne.n 8015550 <_dtoa_r+0x6c8> 801555e: 2230 movs r2, #48 @ 0x30 8015560: f108 0801 add.w r8, r8, #1 8015564: f88a 2000 strb.w r2, [sl] 8015568: 781a ldrb r2, [r3, #0] 801556a: 3201 adds r2, #1 801556c: 701a strb r2, [r3, #0] 801556e: e7a0 b.n 80154b2 <_dtoa_r+0x62a> 8015570: 2200 movs r2, #0 8015572: 4b6f ldr r3, [pc, #444] @ (8015730 <_dtoa_r+0x8a8>) 8015574: f7f3 f81c bl 80085b0 <__aeabi_dmul> 8015578: 2200 movs r2, #0 801557a: 2300 movs r3, #0 801557c: 4604 mov r4, r0 801557e: 460d mov r5, r1 8015580: f7f3 fa7e bl 8008a80 <__aeabi_dcmpeq> 8015584: 2800 cmp r0, #0 8015586: d09f beq.n 80154c8 <_dtoa_r+0x640> 8015588: e7d1 b.n 801552e <_dtoa_r+0x6a6> 801558a: 9a0b ldr r2, [sp, #44] @ 0x2c 801558c: 2a00 cmp r2, #0 801558e: f000 80ea beq.w 8015766 <_dtoa_r+0x8de> 8015592: 9a20 ldr r2, [sp, #128] @ 0x80 8015594: 2a01 cmp r2, #1 8015596: f300 80cd bgt.w 8015734 <_dtoa_r+0x8ac> 801559a: 9a12 ldr r2, [sp, #72] @ 0x48 801559c: 2a00 cmp r2, #0 801559e: f000 80c1 beq.w 8015724 <_dtoa_r+0x89c> 80155a2: f203 4333 addw r3, r3, #1075 @ 0x433 80155a6: 9c0a ldr r4, [sp, #40] @ 0x28 80155a8: 9e04 ldr r6, [sp, #16] 80155aa: 9a04 ldr r2, [sp, #16] 80155ac: 2101 movs r1, #1 80155ae: 441a add r2, r3 80155b0: 9204 str r2, [sp, #16] 80155b2: 9a09 ldr r2, [sp, #36] @ 0x24 80155b4: 4648 mov r0, r9 80155b6: 441a add r2, r3 80155b8: 9209 str r2, [sp, #36] @ 0x24 80155ba: f000 ff23 bl 8016404 <__i2b> 80155be: 4605 mov r5, r0 80155c0: b166 cbz r6, 80155dc <_dtoa_r+0x754> 80155c2: 9b09 ldr r3, [sp, #36] @ 0x24 80155c4: 2b00 cmp r3, #0 80155c6: dd09 ble.n 80155dc <_dtoa_r+0x754> 80155c8: 42b3 cmp r3, r6 80155ca: bfa8 it ge 80155cc: 4633 movge r3, r6 80155ce: 9a04 ldr r2, [sp, #16] 80155d0: 1af6 subs r6, r6, r3 80155d2: 1ad2 subs r2, r2, r3 80155d4: 9204 str r2, [sp, #16] 80155d6: 9a09 ldr r2, [sp, #36] @ 0x24 80155d8: 1ad3 subs r3, r2, r3 80155da: 9309 str r3, [sp, #36] @ 0x24 80155dc: 9b0a ldr r3, [sp, #40] @ 0x28 80155de: b30b cbz r3, 8015624 <_dtoa_r+0x79c> 80155e0: 9b0b ldr r3, [sp, #44] @ 0x2c 80155e2: 2b00 cmp r3, #0 80155e4: f000 80c6 beq.w 8015774 <_dtoa_r+0x8ec> 80155e8: 2c00 cmp r4, #0 80155ea: f000 80c0 beq.w 801576e <_dtoa_r+0x8e6> 80155ee: 4629 mov r1, r5 80155f0: 4622 mov r2, r4 80155f2: 4648 mov r0, r9 80155f4: f000 ffbe bl 8016574 <__pow5mult> 80155f8: 9a03 ldr r2, [sp, #12] 80155fa: 4601 mov r1, r0 80155fc: 4605 mov r5, r0 80155fe: 4648 mov r0, r9 8015600: f000 ff16 bl 8016430 <__multiply> 8015604: 9903 ldr r1, [sp, #12] 8015606: 4680 mov r8, r0 8015608: 4648 mov r0, r9 801560a: f000 fe47 bl 801629c <_Bfree> 801560e: 9b0a ldr r3, [sp, #40] @ 0x28 8015610: 1b1b subs r3, r3, r4 8015612: 930a str r3, [sp, #40] @ 0x28 8015614: f000 80b1 beq.w 801577a <_dtoa_r+0x8f2> 8015618: 4641 mov r1, r8 801561a: 9a0a ldr r2, [sp, #40] @ 0x28 801561c: 4648 mov r0, r9 801561e: f000 ffa9 bl 8016574 <__pow5mult> 8015622: 9003 str r0, [sp, #12] 8015624: 2101 movs r1, #1 8015626: 4648 mov r0, r9 8015628: f000 feec bl 8016404 <__i2b> 801562c: 9b0e ldr r3, [sp, #56] @ 0x38 801562e: 4604 mov r4, r0 8015630: 2b00 cmp r3, #0 8015632: f000 81d8 beq.w 80159e6 <_dtoa_r+0xb5e> 8015636: 461a mov r2, r3 8015638: 4601 mov r1, r0 801563a: 4648 mov r0, r9 801563c: f000 ff9a bl 8016574 <__pow5mult> 8015640: 9b20 ldr r3, [sp, #128] @ 0x80 8015642: 4604 mov r4, r0 8015644: 2b01 cmp r3, #1 8015646: f300 809f bgt.w 8015788 <_dtoa_r+0x900> 801564a: 9b06 ldr r3, [sp, #24] 801564c: 2b00 cmp r3, #0 801564e: f040 8097 bne.w 8015780 <_dtoa_r+0x8f8> 8015652: 9b07 ldr r3, [sp, #28] 8015654: f3c3 0313 ubfx r3, r3, #0, #20 8015658: 2b00 cmp r3, #0 801565a: f040 8093 bne.w 8015784 <_dtoa_r+0x8fc> 801565e: 9b07 ldr r3, [sp, #28] 8015660: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 8015664: 0d1b lsrs r3, r3, #20 8015666: 051b lsls r3, r3, #20 8015668: b133 cbz r3, 8015678 <_dtoa_r+0x7f0> 801566a: 9b04 ldr r3, [sp, #16] 801566c: 3301 adds r3, #1 801566e: 9304 str r3, [sp, #16] 8015670: 9b09 ldr r3, [sp, #36] @ 0x24 8015672: 3301 adds r3, #1 8015674: 9309 str r3, [sp, #36] @ 0x24 8015676: 2301 movs r3, #1 8015678: 930a str r3, [sp, #40] @ 0x28 801567a: 9b0e ldr r3, [sp, #56] @ 0x38 801567c: 2b00 cmp r3, #0 801567e: f000 81b8 beq.w 80159f2 <_dtoa_r+0xb6a> 8015682: 6923 ldr r3, [r4, #16] 8015684: eb04 0383 add.w r3, r4, r3, lsl #2 8015688: 6918 ldr r0, [r3, #16] 801568a: f000 fe6f bl 801636c <__hi0bits> 801568e: f1c0 0020 rsb r0, r0, #32 8015692: 9b09 ldr r3, [sp, #36] @ 0x24 8015694: 4418 add r0, r3 8015696: f010 001f ands.w r0, r0, #31 801569a: f000 8082 beq.w 80157a2 <_dtoa_r+0x91a> 801569e: f1c0 0320 rsb r3, r0, #32 80156a2: 2b04 cmp r3, #4 80156a4: dd73 ble.n 801578e <_dtoa_r+0x906> 80156a6: 9b04 ldr r3, [sp, #16] 80156a8: f1c0 001c rsb r0, r0, #28 80156ac: 4403 add r3, r0 80156ae: 9304 str r3, [sp, #16] 80156b0: 9b09 ldr r3, [sp, #36] @ 0x24 80156b2: 4406 add r6, r0 80156b4: 4403 add r3, r0 80156b6: 9309 str r3, [sp, #36] @ 0x24 80156b8: 9b04 ldr r3, [sp, #16] 80156ba: 2b00 cmp r3, #0 80156bc: dd05 ble.n 80156ca <_dtoa_r+0x842> 80156be: 461a mov r2, r3 80156c0: 4648 mov r0, r9 80156c2: 9903 ldr r1, [sp, #12] 80156c4: f000 ffb0 bl 8016628 <__lshift> 80156c8: 9003 str r0, [sp, #12] 80156ca: 9b09 ldr r3, [sp, #36] @ 0x24 80156cc: 2b00 cmp r3, #0 80156ce: dd05 ble.n 80156dc <_dtoa_r+0x854> 80156d0: 4621 mov r1, r4 80156d2: 461a mov r2, r3 80156d4: 4648 mov r0, r9 80156d6: f000 ffa7 bl 8016628 <__lshift> 80156da: 4604 mov r4, r0 80156dc: 9b0f ldr r3, [sp, #60] @ 0x3c 80156de: 2b00 cmp r3, #0 80156e0: d061 beq.n 80157a6 <_dtoa_r+0x91e> 80156e2: 4621 mov r1, r4 80156e4: 9803 ldr r0, [sp, #12] 80156e6: f001 f80b bl 8016700 <__mcmp> 80156ea: 2800 cmp r0, #0 80156ec: da5b bge.n 80157a6 <_dtoa_r+0x91e> 80156ee: 2300 movs r3, #0 80156f0: 220a movs r2, #10 80156f2: 4648 mov r0, r9 80156f4: 9903 ldr r1, [sp, #12] 80156f6: f000 fdf3 bl 80162e0 <__multadd> 80156fa: 9b0b ldr r3, [sp, #44] @ 0x2c 80156fc: f107 38ff add.w r8, r7, #4294967295 @ 0xffffffff 8015700: 9003 str r0, [sp, #12] 8015702: 2b00 cmp r3, #0 8015704: f000 8177 beq.w 80159f6 <_dtoa_r+0xb6e> 8015708: 4629 mov r1, r5 801570a: 2300 movs r3, #0 801570c: 220a movs r2, #10 801570e: 4648 mov r0, r9 8015710: f000 fde6 bl 80162e0 <__multadd> 8015714: f1bb 0f00 cmp.w fp, #0 8015718: 4605 mov r5, r0 801571a: dc6f bgt.n 80157fc <_dtoa_r+0x974> 801571c: 9b20 ldr r3, [sp, #128] @ 0x80 801571e: 2b02 cmp r3, #2 8015720: dc49 bgt.n 80157b6 <_dtoa_r+0x92e> 8015722: e06b b.n 80157fc <_dtoa_r+0x974> 8015724: 9b14 ldr r3, [sp, #80] @ 0x50 8015726: f1c3 0336 rsb r3, r3, #54 @ 0x36 801572a: e73c b.n 80155a6 <_dtoa_r+0x71e> 801572c: 3fe00000 .word 0x3fe00000 8015730: 40240000 .word 0x40240000 8015734: 9b08 ldr r3, [sp, #32] 8015736: 1e5c subs r4, r3, #1 8015738: 9b0a ldr r3, [sp, #40] @ 0x28 801573a: 42a3 cmp r3, r4 801573c: db09 blt.n 8015752 <_dtoa_r+0x8ca> 801573e: 1b1c subs r4, r3, r4 8015740: 9b08 ldr r3, [sp, #32] 8015742: 2b00 cmp r3, #0 8015744: f6bf af30 bge.w 80155a8 <_dtoa_r+0x720> 8015748: 9b04 ldr r3, [sp, #16] 801574a: 9a08 ldr r2, [sp, #32] 801574c: 1a9e subs r6, r3, r2 801574e: 2300 movs r3, #0 8015750: e72b b.n 80155aa <_dtoa_r+0x722> 8015752: 9b0a ldr r3, [sp, #40] @ 0x28 8015754: 9a0e ldr r2, [sp, #56] @ 0x38 8015756: 1ae3 subs r3, r4, r3 8015758: 441a add r2, r3 801575a: 940a str r4, [sp, #40] @ 0x28 801575c: 9e04 ldr r6, [sp, #16] 801575e: 2400 movs r4, #0 8015760: 9b08 ldr r3, [sp, #32] 8015762: 920e str r2, [sp, #56] @ 0x38 8015764: e721 b.n 80155aa <_dtoa_r+0x722> 8015766: 9c0a ldr r4, [sp, #40] @ 0x28 8015768: 9e04 ldr r6, [sp, #16] 801576a: 9d0b ldr r5, [sp, #44] @ 0x2c 801576c: e728 b.n 80155c0 <_dtoa_r+0x738> 801576e: f8dd 800c ldr.w r8, [sp, #12] 8015772: e751 b.n 8015618 <_dtoa_r+0x790> 8015774: 9a0a ldr r2, [sp, #40] @ 0x28 8015776: 9903 ldr r1, [sp, #12] 8015778: e750 b.n 801561c <_dtoa_r+0x794> 801577a: f8cd 800c str.w r8, [sp, #12] 801577e: e751 b.n 8015624 <_dtoa_r+0x79c> 8015780: 2300 movs r3, #0 8015782: e779 b.n 8015678 <_dtoa_r+0x7f0> 8015784: 9b06 ldr r3, [sp, #24] 8015786: e777 b.n 8015678 <_dtoa_r+0x7f0> 8015788: 2300 movs r3, #0 801578a: 930a str r3, [sp, #40] @ 0x28 801578c: e779 b.n 8015682 <_dtoa_r+0x7fa> 801578e: d093 beq.n 80156b8 <_dtoa_r+0x830> 8015790: 9a04 ldr r2, [sp, #16] 8015792: 331c adds r3, #28 8015794: 441a add r2, r3 8015796: 9204 str r2, [sp, #16] 8015798: 9a09 ldr r2, [sp, #36] @ 0x24 801579a: 441e add r6, r3 801579c: 441a add r2, r3 801579e: 9209 str r2, [sp, #36] @ 0x24 80157a0: e78a b.n 80156b8 <_dtoa_r+0x830> 80157a2: 4603 mov r3, r0 80157a4: e7f4 b.n 8015790 <_dtoa_r+0x908> 80157a6: 9b08 ldr r3, [sp, #32] 80157a8: 46b8 mov r8, r7 80157aa: 2b00 cmp r3, #0 80157ac: dc20 bgt.n 80157f0 <_dtoa_r+0x968> 80157ae: 469b mov fp, r3 80157b0: 9b20 ldr r3, [sp, #128] @ 0x80 80157b2: 2b02 cmp r3, #2 80157b4: dd1e ble.n 80157f4 <_dtoa_r+0x96c> 80157b6: f1bb 0f00 cmp.w fp, #0 80157ba: f47f adb1 bne.w 8015320 <_dtoa_r+0x498> 80157be: 4621 mov r1, r4 80157c0: 465b mov r3, fp 80157c2: 2205 movs r2, #5 80157c4: 4648 mov r0, r9 80157c6: f000 fd8b bl 80162e0 <__multadd> 80157ca: 4601 mov r1, r0 80157cc: 4604 mov r4, r0 80157ce: 9803 ldr r0, [sp, #12] 80157d0: f000 ff96 bl 8016700 <__mcmp> 80157d4: 2800 cmp r0, #0 80157d6: f77f ada3 ble.w 8015320 <_dtoa_r+0x498> 80157da: 4656 mov r6, sl 80157dc: 2331 movs r3, #49 @ 0x31 80157de: f108 0801 add.w r8, r8, #1 80157e2: f806 3b01 strb.w r3, [r6], #1 80157e6: e59f b.n 8015328 <_dtoa_r+0x4a0> 80157e8: 46b8 mov r8, r7 80157ea: 9c08 ldr r4, [sp, #32] 80157ec: 4625 mov r5, r4 80157ee: e7f4 b.n 80157da <_dtoa_r+0x952> 80157f0: f8dd b020 ldr.w fp, [sp, #32] 80157f4: 9b0b ldr r3, [sp, #44] @ 0x2c 80157f6: 2b00 cmp r3, #0 80157f8: f000 8101 beq.w 80159fe <_dtoa_r+0xb76> 80157fc: 2e00 cmp r6, #0 80157fe: dd05 ble.n 801580c <_dtoa_r+0x984> 8015800: 4629 mov r1, r5 8015802: 4632 mov r2, r6 8015804: 4648 mov r0, r9 8015806: f000 ff0f bl 8016628 <__lshift> 801580a: 4605 mov r5, r0 801580c: 9b0a ldr r3, [sp, #40] @ 0x28 801580e: 2b00 cmp r3, #0 8015810: d05c beq.n 80158cc <_dtoa_r+0xa44> 8015812: 4648 mov r0, r9 8015814: 6869 ldr r1, [r5, #4] 8015816: f000 fd01 bl 801621c <_Balloc> 801581a: 4606 mov r6, r0 801581c: b928 cbnz r0, 801582a <_dtoa_r+0x9a2> 801581e: 4602 mov r2, r0 8015820: f240 21ef movw r1, #751 @ 0x2ef 8015824: 4b80 ldr r3, [pc, #512] @ (8015a28 <_dtoa_r+0xba0>) 8015826: f7ff bb43 b.w 8014eb0 <_dtoa_r+0x28> 801582a: 692a ldr r2, [r5, #16] 801582c: f105 010c add.w r1, r5, #12 8015830: 3202 adds r2, #2 8015832: 0092 lsls r2, r2, #2 8015834: 300c adds r0, #12 8015836: f7ff fa73 bl 8014d20 801583a: 2201 movs r2, #1 801583c: 4631 mov r1, r6 801583e: 4648 mov r0, r9 8015840: f000 fef2 bl 8016628 <__lshift> 8015844: 462f mov r7, r5 8015846: 4605 mov r5, r0 8015848: f10a 0301 add.w r3, sl, #1 801584c: 9304 str r3, [sp, #16] 801584e: eb0a 030b add.w r3, sl, fp 8015852: 930a str r3, [sp, #40] @ 0x28 8015854: 9b06 ldr r3, [sp, #24] 8015856: f003 0301 and.w r3, r3, #1 801585a: 9309 str r3, [sp, #36] @ 0x24 801585c: 9b04 ldr r3, [sp, #16] 801585e: 4621 mov r1, r4 8015860: 9803 ldr r0, [sp, #12] 8015862: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff 8015866: f7ff fa87 bl 8014d78 801586a: 4603 mov r3, r0 801586c: 4639 mov r1, r7 801586e: 3330 adds r3, #48 @ 0x30 8015870: 9006 str r0, [sp, #24] 8015872: 9803 ldr r0, [sp, #12] 8015874: 930b str r3, [sp, #44] @ 0x2c 8015876: f000 ff43 bl 8016700 <__mcmp> 801587a: 462a mov r2, r5 801587c: 9008 str r0, [sp, #32] 801587e: 4621 mov r1, r4 8015880: 4648 mov r0, r9 8015882: f000 ff59 bl 8016738 <__mdiff> 8015886: 68c2 ldr r2, [r0, #12] 8015888: 4606 mov r6, r0 801588a: 9b0b ldr r3, [sp, #44] @ 0x2c 801588c: bb02 cbnz r2, 80158d0 <_dtoa_r+0xa48> 801588e: 4601 mov r1, r0 8015890: 9803 ldr r0, [sp, #12] 8015892: f000 ff35 bl 8016700 <__mcmp> 8015896: 4602 mov r2, r0 8015898: 9b0b ldr r3, [sp, #44] @ 0x2c 801589a: 4631 mov r1, r6 801589c: 4648 mov r0, r9 801589e: e9cd 320b strd r3, r2, [sp, #44] @ 0x2c 80158a2: f000 fcfb bl 801629c <_Bfree> 80158a6: 9b20 ldr r3, [sp, #128] @ 0x80 80158a8: 9a0c ldr r2, [sp, #48] @ 0x30 80158aa: 9e04 ldr r6, [sp, #16] 80158ac: ea42 0103 orr.w r1, r2, r3 80158b0: 9b09 ldr r3, [sp, #36] @ 0x24 80158b2: 4319 orrs r1, r3 80158b4: 9b0b ldr r3, [sp, #44] @ 0x2c 80158b6: d10d bne.n 80158d4 <_dtoa_r+0xa4c> 80158b8: 2b39 cmp r3, #57 @ 0x39 80158ba: d027 beq.n 801590c <_dtoa_r+0xa84> 80158bc: 9a08 ldr r2, [sp, #32] 80158be: 2a00 cmp r2, #0 80158c0: dd01 ble.n 80158c6 <_dtoa_r+0xa3e> 80158c2: 9b06 ldr r3, [sp, #24] 80158c4: 3331 adds r3, #49 @ 0x31 80158c6: f88b 3000 strb.w r3, [fp] 80158ca: e52e b.n 801532a <_dtoa_r+0x4a2> 80158cc: 4628 mov r0, r5 80158ce: e7b9 b.n 8015844 <_dtoa_r+0x9bc> 80158d0: 2201 movs r2, #1 80158d2: e7e2 b.n 801589a <_dtoa_r+0xa12> 80158d4: 9908 ldr r1, [sp, #32] 80158d6: 2900 cmp r1, #0 80158d8: db04 blt.n 80158e4 <_dtoa_r+0xa5c> 80158da: 9820 ldr r0, [sp, #128] @ 0x80 80158dc: 4301 orrs r1, r0 80158de: 9809 ldr r0, [sp, #36] @ 0x24 80158e0: 4301 orrs r1, r0 80158e2: d120 bne.n 8015926 <_dtoa_r+0xa9e> 80158e4: 2a00 cmp r2, #0 80158e6: ddee ble.n 80158c6 <_dtoa_r+0xa3e> 80158e8: 2201 movs r2, #1 80158ea: 9903 ldr r1, [sp, #12] 80158ec: 4648 mov r0, r9 80158ee: 9304 str r3, [sp, #16] 80158f0: f000 fe9a bl 8016628 <__lshift> 80158f4: 4621 mov r1, r4 80158f6: 9003 str r0, [sp, #12] 80158f8: f000 ff02 bl 8016700 <__mcmp> 80158fc: 2800 cmp r0, #0 80158fe: 9b04 ldr r3, [sp, #16] 8015900: dc02 bgt.n 8015908 <_dtoa_r+0xa80> 8015902: d1e0 bne.n 80158c6 <_dtoa_r+0xa3e> 8015904: 07da lsls r2, r3, #31 8015906: d5de bpl.n 80158c6 <_dtoa_r+0xa3e> 8015908: 2b39 cmp r3, #57 @ 0x39 801590a: d1da bne.n 80158c2 <_dtoa_r+0xa3a> 801590c: 2339 movs r3, #57 @ 0x39 801590e: f88b 3000 strb.w r3, [fp] 8015912: 4633 mov r3, r6 8015914: 461e mov r6, r3 8015916: f816 2c01 ldrb.w r2, [r6, #-1] 801591a: 3b01 subs r3, #1 801591c: 2a39 cmp r2, #57 @ 0x39 801591e: d04e beq.n 80159be <_dtoa_r+0xb36> 8015920: 3201 adds r2, #1 8015922: 701a strb r2, [r3, #0] 8015924: e501 b.n 801532a <_dtoa_r+0x4a2> 8015926: 2a00 cmp r2, #0 8015928: dd03 ble.n 8015932 <_dtoa_r+0xaaa> 801592a: 2b39 cmp r3, #57 @ 0x39 801592c: d0ee beq.n 801590c <_dtoa_r+0xa84> 801592e: 3301 adds r3, #1 8015930: e7c9 b.n 80158c6 <_dtoa_r+0xa3e> 8015932: 9a04 ldr r2, [sp, #16] 8015934: 990a ldr r1, [sp, #40] @ 0x28 8015936: f802 3c01 strb.w r3, [r2, #-1] 801593a: 428a cmp r2, r1 801593c: d028 beq.n 8015990 <_dtoa_r+0xb08> 801593e: 2300 movs r3, #0 8015940: 220a movs r2, #10 8015942: 9903 ldr r1, [sp, #12] 8015944: 4648 mov r0, r9 8015946: f000 fccb bl 80162e0 <__multadd> 801594a: 42af cmp r7, r5 801594c: 9003 str r0, [sp, #12] 801594e: f04f 0300 mov.w r3, #0 8015952: f04f 020a mov.w r2, #10 8015956: 4639 mov r1, r7 8015958: 4648 mov r0, r9 801595a: d107 bne.n 801596c <_dtoa_r+0xae4> 801595c: f000 fcc0 bl 80162e0 <__multadd> 8015960: 4607 mov r7, r0 8015962: 4605 mov r5, r0 8015964: 9b04 ldr r3, [sp, #16] 8015966: 3301 adds r3, #1 8015968: 9304 str r3, [sp, #16] 801596a: e777 b.n 801585c <_dtoa_r+0x9d4> 801596c: f000 fcb8 bl 80162e0 <__multadd> 8015970: 4629 mov r1, r5 8015972: 4607 mov r7, r0 8015974: 2300 movs r3, #0 8015976: 220a movs r2, #10 8015978: 4648 mov r0, r9 801597a: f000 fcb1 bl 80162e0 <__multadd> 801597e: 4605 mov r5, r0 8015980: e7f0 b.n 8015964 <_dtoa_r+0xadc> 8015982: f1bb 0f00 cmp.w fp, #0 8015986: bfcc ite gt 8015988: 465e movgt r6, fp 801598a: 2601 movle r6, #1 801598c: 2700 movs r7, #0 801598e: 4456 add r6, sl 8015990: 2201 movs r2, #1 8015992: 9903 ldr r1, [sp, #12] 8015994: 4648 mov r0, r9 8015996: 9304 str r3, [sp, #16] 8015998: f000 fe46 bl 8016628 <__lshift> 801599c: 4621 mov r1, r4 801599e: 9003 str r0, [sp, #12] 80159a0: f000 feae bl 8016700 <__mcmp> 80159a4: 2800 cmp r0, #0 80159a6: dcb4 bgt.n 8015912 <_dtoa_r+0xa8a> 80159a8: d102 bne.n 80159b0 <_dtoa_r+0xb28> 80159aa: 9b04 ldr r3, [sp, #16] 80159ac: 07db lsls r3, r3, #31 80159ae: d4b0 bmi.n 8015912 <_dtoa_r+0xa8a> 80159b0: 4633 mov r3, r6 80159b2: 461e mov r6, r3 80159b4: f813 2d01 ldrb.w r2, [r3, #-1]! 80159b8: 2a30 cmp r2, #48 @ 0x30 80159ba: d0fa beq.n 80159b2 <_dtoa_r+0xb2a> 80159bc: e4b5 b.n 801532a <_dtoa_r+0x4a2> 80159be: 459a cmp sl, r3 80159c0: d1a8 bne.n 8015914 <_dtoa_r+0xa8c> 80159c2: 2331 movs r3, #49 @ 0x31 80159c4: f108 0801 add.w r8, r8, #1 80159c8: f88a 3000 strb.w r3, [sl] 80159cc: e4ad b.n 801532a <_dtoa_r+0x4a2> 80159ce: 9b24 ldr r3, [sp, #144] @ 0x90 80159d0: f8df a058 ldr.w sl, [pc, #88] @ 8015a2c <_dtoa_r+0xba4> 80159d4: b11b cbz r3, 80159de <_dtoa_r+0xb56> 80159d6: f10a 0308 add.w r3, sl, #8 80159da: 9a24 ldr r2, [sp, #144] @ 0x90 80159dc: 6013 str r3, [r2, #0] 80159de: 4650 mov r0, sl 80159e0: b017 add sp, #92 @ 0x5c 80159e2: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80159e6: 9b20 ldr r3, [sp, #128] @ 0x80 80159e8: 2b01 cmp r3, #1 80159ea: f77f ae2e ble.w 801564a <_dtoa_r+0x7c2> 80159ee: 9b0e ldr r3, [sp, #56] @ 0x38 80159f0: 930a str r3, [sp, #40] @ 0x28 80159f2: 2001 movs r0, #1 80159f4: e64d b.n 8015692 <_dtoa_r+0x80a> 80159f6: f1bb 0f00 cmp.w fp, #0 80159fa: f77f aed9 ble.w 80157b0 <_dtoa_r+0x928> 80159fe: 4656 mov r6, sl 8015a00: 4621 mov r1, r4 8015a02: 9803 ldr r0, [sp, #12] 8015a04: f7ff f9b8 bl 8014d78 8015a08: f100 0330 add.w r3, r0, #48 @ 0x30 8015a0c: f806 3b01 strb.w r3, [r6], #1 8015a10: eba6 020a sub.w r2, r6, sl 8015a14: 4593 cmp fp, r2 8015a16: ddb4 ble.n 8015982 <_dtoa_r+0xafa> 8015a18: 2300 movs r3, #0 8015a1a: 220a movs r2, #10 8015a1c: 4648 mov r0, r9 8015a1e: 9903 ldr r1, [sp, #12] 8015a20: f000 fc5e bl 80162e0 <__multadd> 8015a24: 9003 str r0, [sp, #12] 8015a26: e7eb b.n 8015a00 <_dtoa_r+0xb78> 8015a28: 08017a54 .word 0x08017a54 8015a2c: 080179d8 .word 0x080179d8 08015a30 <__ssputs_r>: 8015a30: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8015a34: 461f mov r7, r3 8015a36: 688e ldr r6, [r1, #8] 8015a38: 4682 mov sl, r0 8015a3a: 42be cmp r6, r7 8015a3c: 460c mov r4, r1 8015a3e: 4690 mov r8, r2 8015a40: 680b ldr r3, [r1, #0] 8015a42: d82d bhi.n 8015aa0 <__ssputs_r+0x70> 8015a44: f9b1 200c ldrsh.w r2, [r1, #12] 8015a48: f412 6f90 tst.w r2, #1152 @ 0x480 8015a4c: d026 beq.n 8015a9c <__ssputs_r+0x6c> 8015a4e: 6965 ldr r5, [r4, #20] 8015a50: 6909 ldr r1, [r1, #16] 8015a52: eb05 0545 add.w r5, r5, r5, lsl #1 8015a56: eba3 0901 sub.w r9, r3, r1 8015a5a: eb05 75d5 add.w r5, r5, r5, lsr #31 8015a5e: 1c7b adds r3, r7, #1 8015a60: 444b add r3, r9 8015a62: 106d asrs r5, r5, #1 8015a64: 429d cmp r5, r3 8015a66: bf38 it cc 8015a68: 461d movcc r5, r3 8015a6a: 0553 lsls r3, r2, #21 8015a6c: d527 bpl.n 8015abe <__ssputs_r+0x8e> 8015a6e: 4629 mov r1, r5 8015a70: f000 faa0 bl 8015fb4 <_malloc_r> 8015a74: 4606 mov r6, r0 8015a76: b360 cbz r0, 8015ad2 <__ssputs_r+0xa2> 8015a78: 464a mov r2, r9 8015a7a: 6921 ldr r1, [r4, #16] 8015a7c: f7ff f950 bl 8014d20 8015a80: 89a3 ldrh r3, [r4, #12] 8015a82: f423 6390 bic.w r3, r3, #1152 @ 0x480 8015a86: f043 0380 orr.w r3, r3, #128 @ 0x80 8015a8a: 81a3 strh r3, [r4, #12] 8015a8c: 6126 str r6, [r4, #16] 8015a8e: 444e add r6, r9 8015a90: 6026 str r6, [r4, #0] 8015a92: 463e mov r6, r7 8015a94: 6165 str r5, [r4, #20] 8015a96: eba5 0509 sub.w r5, r5, r9 8015a9a: 60a5 str r5, [r4, #8] 8015a9c: 42be cmp r6, r7 8015a9e: d900 bls.n 8015aa2 <__ssputs_r+0x72> 8015aa0: 463e mov r6, r7 8015aa2: 4632 mov r2, r6 8015aa4: 4641 mov r1, r8 8015aa6: 6820 ldr r0, [r4, #0] 8015aa8: f001 f8ab bl 8016c02 8015aac: 2000 movs r0, #0 8015aae: 68a3 ldr r3, [r4, #8] 8015ab0: 1b9b subs r3, r3, r6 8015ab2: 60a3 str r3, [r4, #8] 8015ab4: 6823 ldr r3, [r4, #0] 8015ab6: 4433 add r3, r6 8015ab8: 6023 str r3, [r4, #0] 8015aba: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8015abe: 462a mov r2, r5 8015ac0: f000 ff7c bl 80169bc <_realloc_r> 8015ac4: 4606 mov r6, r0 8015ac6: 2800 cmp r0, #0 8015ac8: d1e0 bne.n 8015a8c <__ssputs_r+0x5c> 8015aca: 4650 mov r0, sl 8015acc: 6921 ldr r1, [r4, #16] 8015ace: f001 f947 bl 8016d60 <_free_r> 8015ad2: 230c movs r3, #12 8015ad4: f8ca 3000 str.w r3, [sl] 8015ad8: 89a3 ldrh r3, [r4, #12] 8015ada: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015ade: f043 0340 orr.w r3, r3, #64 @ 0x40 8015ae2: 81a3 strh r3, [r4, #12] 8015ae4: e7e9 b.n 8015aba <__ssputs_r+0x8a> ... 08015ae8 <_svfiprintf_r>: 8015ae8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8015aec: 4698 mov r8, r3 8015aee: 898b ldrh r3, [r1, #12] 8015af0: 4607 mov r7, r0 8015af2: 061b lsls r3, r3, #24 8015af4: 460d mov r5, r1 8015af6: 4614 mov r4, r2 8015af8: b09d sub sp, #116 @ 0x74 8015afa: d510 bpl.n 8015b1e <_svfiprintf_r+0x36> 8015afc: 690b ldr r3, [r1, #16] 8015afe: b973 cbnz r3, 8015b1e <_svfiprintf_r+0x36> 8015b00: 2140 movs r1, #64 @ 0x40 8015b02: f000 fa57 bl 8015fb4 <_malloc_r> 8015b06: 6028 str r0, [r5, #0] 8015b08: 6128 str r0, [r5, #16] 8015b0a: b930 cbnz r0, 8015b1a <_svfiprintf_r+0x32> 8015b0c: 230c movs r3, #12 8015b0e: 603b str r3, [r7, #0] 8015b10: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015b14: b01d add sp, #116 @ 0x74 8015b16: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015b1a: 2340 movs r3, #64 @ 0x40 8015b1c: 616b str r3, [r5, #20] 8015b1e: 2300 movs r3, #0 8015b20: 9309 str r3, [sp, #36] @ 0x24 8015b22: 2320 movs r3, #32 8015b24: f88d 3029 strb.w r3, [sp, #41] @ 0x29 8015b28: 2330 movs r3, #48 @ 0x30 8015b2a: f04f 0901 mov.w r9, #1 8015b2e: f8cd 800c str.w r8, [sp, #12] 8015b32: f8df 8198 ldr.w r8, [pc, #408] @ 8015ccc <_svfiprintf_r+0x1e4> 8015b36: f88d 302a strb.w r3, [sp, #42] @ 0x2a 8015b3a: 4623 mov r3, r4 8015b3c: 469a mov sl, r3 8015b3e: f813 2b01 ldrb.w r2, [r3], #1 8015b42: b10a cbz r2, 8015b48 <_svfiprintf_r+0x60> 8015b44: 2a25 cmp r2, #37 @ 0x25 8015b46: d1f9 bne.n 8015b3c <_svfiprintf_r+0x54> 8015b48: ebba 0b04 subs.w fp, sl, r4 8015b4c: d00b beq.n 8015b66 <_svfiprintf_r+0x7e> 8015b4e: 465b mov r3, fp 8015b50: 4622 mov r2, r4 8015b52: 4629 mov r1, r5 8015b54: 4638 mov r0, r7 8015b56: f7ff ff6b bl 8015a30 <__ssputs_r> 8015b5a: 3001 adds r0, #1 8015b5c: f000 80a7 beq.w 8015cae <_svfiprintf_r+0x1c6> 8015b60: 9a09 ldr r2, [sp, #36] @ 0x24 8015b62: 445a add r2, fp 8015b64: 9209 str r2, [sp, #36] @ 0x24 8015b66: f89a 3000 ldrb.w r3, [sl] 8015b6a: 2b00 cmp r3, #0 8015b6c: f000 809f beq.w 8015cae <_svfiprintf_r+0x1c6> 8015b70: 2300 movs r3, #0 8015b72: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8015b76: e9cd 2305 strd r2, r3, [sp, #20] 8015b7a: f10a 0a01 add.w sl, sl, #1 8015b7e: 9304 str r3, [sp, #16] 8015b80: 9307 str r3, [sp, #28] 8015b82: f88d 3053 strb.w r3, [sp, #83] @ 0x53 8015b86: 931a str r3, [sp, #104] @ 0x68 8015b88: 4654 mov r4, sl 8015b8a: 2205 movs r2, #5 8015b8c: f814 1b01 ldrb.w r1, [r4], #1 8015b90: 484e ldr r0, [pc, #312] @ (8015ccc <_svfiprintf_r+0x1e4>) 8015b92: f7ff f8b7 bl 8014d04 8015b96: 9a04 ldr r2, [sp, #16] 8015b98: b9d8 cbnz r0, 8015bd2 <_svfiprintf_r+0xea> 8015b9a: 06d0 lsls r0, r2, #27 8015b9c: bf44 itt mi 8015b9e: 2320 movmi r3, #32 8015ba0: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015ba4: 0711 lsls r1, r2, #28 8015ba6: bf44 itt mi 8015ba8: 232b movmi r3, #43 @ 0x2b 8015baa: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015bae: f89a 3000 ldrb.w r3, [sl] 8015bb2: 2b2a cmp r3, #42 @ 0x2a 8015bb4: d015 beq.n 8015be2 <_svfiprintf_r+0xfa> 8015bb6: 4654 mov r4, sl 8015bb8: 2000 movs r0, #0 8015bba: f04f 0c0a mov.w ip, #10 8015bbe: 9a07 ldr r2, [sp, #28] 8015bc0: 4621 mov r1, r4 8015bc2: f811 3b01 ldrb.w r3, [r1], #1 8015bc6: 3b30 subs r3, #48 @ 0x30 8015bc8: 2b09 cmp r3, #9 8015bca: d94b bls.n 8015c64 <_svfiprintf_r+0x17c> 8015bcc: b1b0 cbz r0, 8015bfc <_svfiprintf_r+0x114> 8015bce: 9207 str r2, [sp, #28] 8015bd0: e014 b.n 8015bfc <_svfiprintf_r+0x114> 8015bd2: eba0 0308 sub.w r3, r0, r8 8015bd6: fa09 f303 lsl.w r3, r9, r3 8015bda: 4313 orrs r3, r2 8015bdc: 46a2 mov sl, r4 8015bde: 9304 str r3, [sp, #16] 8015be0: e7d2 b.n 8015b88 <_svfiprintf_r+0xa0> 8015be2: 9b03 ldr r3, [sp, #12] 8015be4: 1d19 adds r1, r3, #4 8015be6: 681b ldr r3, [r3, #0] 8015be8: 9103 str r1, [sp, #12] 8015bea: 2b00 cmp r3, #0 8015bec: bfbb ittet lt 8015bee: 425b neglt r3, r3 8015bf0: f042 0202 orrlt.w r2, r2, #2 8015bf4: 9307 strge r3, [sp, #28] 8015bf6: 9307 strlt r3, [sp, #28] 8015bf8: bfb8 it lt 8015bfa: 9204 strlt r2, [sp, #16] 8015bfc: 7823 ldrb r3, [r4, #0] 8015bfe: 2b2e cmp r3, #46 @ 0x2e 8015c00: d10a bne.n 8015c18 <_svfiprintf_r+0x130> 8015c02: 7863 ldrb r3, [r4, #1] 8015c04: 2b2a cmp r3, #42 @ 0x2a 8015c06: d132 bne.n 8015c6e <_svfiprintf_r+0x186> 8015c08: 9b03 ldr r3, [sp, #12] 8015c0a: 3402 adds r4, #2 8015c0c: 1d1a adds r2, r3, #4 8015c0e: 681b ldr r3, [r3, #0] 8015c10: 9203 str r2, [sp, #12] 8015c12: ea43 73e3 orr.w r3, r3, r3, asr #31 8015c16: 9305 str r3, [sp, #20] 8015c18: f8df a0b4 ldr.w sl, [pc, #180] @ 8015cd0 <_svfiprintf_r+0x1e8> 8015c1c: 2203 movs r2, #3 8015c1e: 4650 mov r0, sl 8015c20: 7821 ldrb r1, [r4, #0] 8015c22: f7ff f86f bl 8014d04 8015c26: b138 cbz r0, 8015c38 <_svfiprintf_r+0x150> 8015c28: 2240 movs r2, #64 @ 0x40 8015c2a: 9b04 ldr r3, [sp, #16] 8015c2c: eba0 000a sub.w r0, r0, sl 8015c30: 4082 lsls r2, r0 8015c32: 4313 orrs r3, r2 8015c34: 3401 adds r4, #1 8015c36: 9304 str r3, [sp, #16] 8015c38: f814 1b01 ldrb.w r1, [r4], #1 8015c3c: 2206 movs r2, #6 8015c3e: 4825 ldr r0, [pc, #148] @ (8015cd4 <_svfiprintf_r+0x1ec>) 8015c40: f88d 1028 strb.w r1, [sp, #40] @ 0x28 8015c44: f7ff f85e bl 8014d04 8015c48: 2800 cmp r0, #0 8015c4a: d036 beq.n 8015cba <_svfiprintf_r+0x1d2> 8015c4c: 4b22 ldr r3, [pc, #136] @ (8015cd8 <_svfiprintf_r+0x1f0>) 8015c4e: bb1b cbnz r3, 8015c98 <_svfiprintf_r+0x1b0> 8015c50: 9b03 ldr r3, [sp, #12] 8015c52: 3307 adds r3, #7 8015c54: f023 0307 bic.w r3, r3, #7 8015c58: 3308 adds r3, #8 8015c5a: 9303 str r3, [sp, #12] 8015c5c: 9b09 ldr r3, [sp, #36] @ 0x24 8015c5e: 4433 add r3, r6 8015c60: 9309 str r3, [sp, #36] @ 0x24 8015c62: e76a b.n 8015b3a <_svfiprintf_r+0x52> 8015c64: 460c mov r4, r1 8015c66: 2001 movs r0, #1 8015c68: fb0c 3202 mla r2, ip, r2, r3 8015c6c: e7a8 b.n 8015bc0 <_svfiprintf_r+0xd8> 8015c6e: 2300 movs r3, #0 8015c70: f04f 0c0a mov.w ip, #10 8015c74: 4619 mov r1, r3 8015c76: 3401 adds r4, #1 8015c78: 9305 str r3, [sp, #20] 8015c7a: 4620 mov r0, r4 8015c7c: f810 2b01 ldrb.w r2, [r0], #1 8015c80: 3a30 subs r2, #48 @ 0x30 8015c82: 2a09 cmp r2, #9 8015c84: d903 bls.n 8015c8e <_svfiprintf_r+0x1a6> 8015c86: 2b00 cmp r3, #0 8015c88: d0c6 beq.n 8015c18 <_svfiprintf_r+0x130> 8015c8a: 9105 str r1, [sp, #20] 8015c8c: e7c4 b.n 8015c18 <_svfiprintf_r+0x130> 8015c8e: 4604 mov r4, r0 8015c90: 2301 movs r3, #1 8015c92: fb0c 2101 mla r1, ip, r1, r2 8015c96: e7f0 b.n 8015c7a <_svfiprintf_r+0x192> 8015c98: ab03 add r3, sp, #12 8015c9a: 9300 str r3, [sp, #0] 8015c9c: 462a mov r2, r5 8015c9e: 4638 mov r0, r7 8015ca0: 4b0e ldr r3, [pc, #56] @ (8015cdc <_svfiprintf_r+0x1f4>) 8015ca2: a904 add r1, sp, #16 8015ca4: f7fe fb28 bl 80142f8 <_printf_float> 8015ca8: 1c42 adds r2, r0, #1 8015caa: 4606 mov r6, r0 8015cac: d1d6 bne.n 8015c5c <_svfiprintf_r+0x174> 8015cae: 89ab ldrh r3, [r5, #12] 8015cb0: 065b lsls r3, r3, #25 8015cb2: f53f af2d bmi.w 8015b10 <_svfiprintf_r+0x28> 8015cb6: 9809 ldr r0, [sp, #36] @ 0x24 8015cb8: e72c b.n 8015b14 <_svfiprintf_r+0x2c> 8015cba: ab03 add r3, sp, #12 8015cbc: 9300 str r3, [sp, #0] 8015cbe: 462a mov r2, r5 8015cc0: 4638 mov r0, r7 8015cc2: 4b06 ldr r3, [pc, #24] @ (8015cdc <_svfiprintf_r+0x1f4>) 8015cc4: a904 add r1, sp, #16 8015cc6: f7fe fdb5 bl 8014834 <_printf_i> 8015cca: e7ed b.n 8015ca8 <_svfiprintf_r+0x1c0> 8015ccc: 08017a65 .word 0x08017a65 8015cd0: 08017a6b .word 0x08017a6b 8015cd4: 08017a6f .word 0x08017a6f 8015cd8: 080142f9 .word 0x080142f9 8015cdc: 08015a31 .word 0x08015a31 08015ce0 <__sfputc_r>: 8015ce0: 6893 ldr r3, [r2, #8] 8015ce2: b410 push {r4} 8015ce4: 3b01 subs r3, #1 8015ce6: 2b00 cmp r3, #0 8015ce8: 6093 str r3, [r2, #8] 8015cea: da07 bge.n 8015cfc <__sfputc_r+0x1c> 8015cec: 6994 ldr r4, [r2, #24] 8015cee: 42a3 cmp r3, r4 8015cf0: db01 blt.n 8015cf6 <__sfputc_r+0x16> 8015cf2: 290a cmp r1, #10 8015cf4: d102 bne.n 8015cfc <__sfputc_r+0x1c> 8015cf6: bc10 pop {r4} 8015cf8: f000 be8e b.w 8016a18 <__swbuf_r> 8015cfc: 6813 ldr r3, [r2, #0] 8015cfe: 1c58 adds r0, r3, #1 8015d00: 6010 str r0, [r2, #0] 8015d02: 7019 strb r1, [r3, #0] 8015d04: 4608 mov r0, r1 8015d06: bc10 pop {r4} 8015d08: 4770 bx lr 08015d0a <__sfputs_r>: 8015d0a: b5f8 push {r3, r4, r5, r6, r7, lr} 8015d0c: 4606 mov r6, r0 8015d0e: 460f mov r7, r1 8015d10: 4614 mov r4, r2 8015d12: 18d5 adds r5, r2, r3 8015d14: 42ac cmp r4, r5 8015d16: d101 bne.n 8015d1c <__sfputs_r+0x12> 8015d18: 2000 movs r0, #0 8015d1a: e007 b.n 8015d2c <__sfputs_r+0x22> 8015d1c: 463a mov r2, r7 8015d1e: 4630 mov r0, r6 8015d20: f814 1b01 ldrb.w r1, [r4], #1 8015d24: f7ff ffdc bl 8015ce0 <__sfputc_r> 8015d28: 1c43 adds r3, r0, #1 8015d2a: d1f3 bne.n 8015d14 <__sfputs_r+0xa> 8015d2c: bdf8 pop {r3, r4, r5, r6, r7, pc} ... 08015d30 <_vfiprintf_r>: 8015d30: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8015d34: 460d mov r5, r1 8015d36: 4614 mov r4, r2 8015d38: 4698 mov r8, r3 8015d3a: 4606 mov r6, r0 8015d3c: b09d sub sp, #116 @ 0x74 8015d3e: b118 cbz r0, 8015d48 <_vfiprintf_r+0x18> 8015d40: 6a03 ldr r3, [r0, #32] 8015d42: b90b cbnz r3, 8015d48 <_vfiprintf_r+0x18> 8015d44: f7fe ff20 bl 8014b88 <__sinit> 8015d48: 6e6b ldr r3, [r5, #100] @ 0x64 8015d4a: 07d9 lsls r1, r3, #31 8015d4c: d405 bmi.n 8015d5a <_vfiprintf_r+0x2a> 8015d4e: 89ab ldrh r3, [r5, #12] 8015d50: 059a lsls r2, r3, #22 8015d52: d402 bmi.n 8015d5a <_vfiprintf_r+0x2a> 8015d54: 6da8 ldr r0, [r5, #88] @ 0x58 8015d56: f7fe ffce bl 8014cf6 <__retarget_lock_acquire_recursive> 8015d5a: 89ab ldrh r3, [r5, #12] 8015d5c: 071b lsls r3, r3, #28 8015d5e: d501 bpl.n 8015d64 <_vfiprintf_r+0x34> 8015d60: 692b ldr r3, [r5, #16] 8015d62: b99b cbnz r3, 8015d8c <_vfiprintf_r+0x5c> 8015d64: 4629 mov r1, r5 8015d66: 4630 mov r0, r6 8015d68: f000 fe94 bl 8016a94 <__swsetup_r> 8015d6c: b170 cbz r0, 8015d8c <_vfiprintf_r+0x5c> 8015d6e: 6e6b ldr r3, [r5, #100] @ 0x64 8015d70: 07dc lsls r4, r3, #31 8015d72: d504 bpl.n 8015d7e <_vfiprintf_r+0x4e> 8015d74: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8015d78: b01d add sp, #116 @ 0x74 8015d7a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8015d7e: 89ab ldrh r3, [r5, #12] 8015d80: 0598 lsls r0, r3, #22 8015d82: d4f7 bmi.n 8015d74 <_vfiprintf_r+0x44> 8015d84: 6da8 ldr r0, [r5, #88] @ 0x58 8015d86: f7fe ffb7 bl 8014cf8 <__retarget_lock_release_recursive> 8015d8a: e7f3 b.n 8015d74 <_vfiprintf_r+0x44> 8015d8c: 2300 movs r3, #0 8015d8e: 9309 str r3, [sp, #36] @ 0x24 8015d90: 2320 movs r3, #32 8015d92: f88d 3029 strb.w r3, [sp, #41] @ 0x29 8015d96: 2330 movs r3, #48 @ 0x30 8015d98: f04f 0901 mov.w r9, #1 8015d9c: f8cd 800c str.w r8, [sp, #12] 8015da0: f8df 81a8 ldr.w r8, [pc, #424] @ 8015f4c <_vfiprintf_r+0x21c> 8015da4: f88d 302a strb.w r3, [sp, #42] @ 0x2a 8015da8: 4623 mov r3, r4 8015daa: 469a mov sl, r3 8015dac: f813 2b01 ldrb.w r2, [r3], #1 8015db0: b10a cbz r2, 8015db6 <_vfiprintf_r+0x86> 8015db2: 2a25 cmp r2, #37 @ 0x25 8015db4: d1f9 bne.n 8015daa <_vfiprintf_r+0x7a> 8015db6: ebba 0b04 subs.w fp, sl, r4 8015dba: d00b beq.n 8015dd4 <_vfiprintf_r+0xa4> 8015dbc: 465b mov r3, fp 8015dbe: 4622 mov r2, r4 8015dc0: 4629 mov r1, r5 8015dc2: 4630 mov r0, r6 8015dc4: f7ff ffa1 bl 8015d0a <__sfputs_r> 8015dc8: 3001 adds r0, #1 8015dca: f000 80a7 beq.w 8015f1c <_vfiprintf_r+0x1ec> 8015dce: 9a09 ldr r2, [sp, #36] @ 0x24 8015dd0: 445a add r2, fp 8015dd2: 9209 str r2, [sp, #36] @ 0x24 8015dd4: f89a 3000 ldrb.w r3, [sl] 8015dd8: 2b00 cmp r3, #0 8015dda: f000 809f beq.w 8015f1c <_vfiprintf_r+0x1ec> 8015dde: 2300 movs r3, #0 8015de0: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff 8015de4: e9cd 2305 strd r2, r3, [sp, #20] 8015de8: f10a 0a01 add.w sl, sl, #1 8015dec: 9304 str r3, [sp, #16] 8015dee: 9307 str r3, [sp, #28] 8015df0: f88d 3053 strb.w r3, [sp, #83] @ 0x53 8015df4: 931a str r3, [sp, #104] @ 0x68 8015df6: 4654 mov r4, sl 8015df8: 2205 movs r2, #5 8015dfa: f814 1b01 ldrb.w r1, [r4], #1 8015dfe: 4853 ldr r0, [pc, #332] @ (8015f4c <_vfiprintf_r+0x21c>) 8015e00: f7fe ff80 bl 8014d04 8015e04: 9a04 ldr r2, [sp, #16] 8015e06: b9d8 cbnz r0, 8015e40 <_vfiprintf_r+0x110> 8015e08: 06d1 lsls r1, r2, #27 8015e0a: bf44 itt mi 8015e0c: 2320 movmi r3, #32 8015e0e: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015e12: 0713 lsls r3, r2, #28 8015e14: bf44 itt mi 8015e16: 232b movmi r3, #43 @ 0x2b 8015e18: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53 8015e1c: f89a 3000 ldrb.w r3, [sl] 8015e20: 2b2a cmp r3, #42 @ 0x2a 8015e22: d015 beq.n 8015e50 <_vfiprintf_r+0x120> 8015e24: 4654 mov r4, sl 8015e26: 2000 movs r0, #0 8015e28: f04f 0c0a mov.w ip, #10 8015e2c: 9a07 ldr r2, [sp, #28] 8015e2e: 4621 mov r1, r4 8015e30: f811 3b01 ldrb.w r3, [r1], #1 8015e34: 3b30 subs r3, #48 @ 0x30 8015e36: 2b09 cmp r3, #9 8015e38: d94b bls.n 8015ed2 <_vfiprintf_r+0x1a2> 8015e3a: b1b0 cbz r0, 8015e6a <_vfiprintf_r+0x13a> 8015e3c: 9207 str r2, [sp, #28] 8015e3e: e014 b.n 8015e6a <_vfiprintf_r+0x13a> 8015e40: eba0 0308 sub.w r3, r0, r8 8015e44: fa09 f303 lsl.w r3, r9, r3 8015e48: 4313 orrs r3, r2 8015e4a: 46a2 mov sl, r4 8015e4c: 9304 str r3, [sp, #16] 8015e4e: e7d2 b.n 8015df6 <_vfiprintf_r+0xc6> 8015e50: 9b03 ldr r3, [sp, #12] 8015e52: 1d19 adds r1, r3, #4 8015e54: 681b ldr r3, [r3, #0] 8015e56: 9103 str r1, [sp, #12] 8015e58: 2b00 cmp r3, #0 8015e5a: bfbb ittet lt 8015e5c: 425b neglt r3, r3 8015e5e: f042 0202 orrlt.w r2, r2, #2 8015e62: 9307 strge r3, [sp, #28] 8015e64: 9307 strlt r3, [sp, #28] 8015e66: bfb8 it lt 8015e68: 9204 strlt r2, [sp, #16] 8015e6a: 7823 ldrb r3, [r4, #0] 8015e6c: 2b2e cmp r3, #46 @ 0x2e 8015e6e: d10a bne.n 8015e86 <_vfiprintf_r+0x156> 8015e70: 7863 ldrb r3, [r4, #1] 8015e72: 2b2a cmp r3, #42 @ 0x2a 8015e74: d132 bne.n 8015edc <_vfiprintf_r+0x1ac> 8015e76: 9b03 ldr r3, [sp, #12] 8015e78: 3402 adds r4, #2 8015e7a: 1d1a adds r2, r3, #4 8015e7c: 681b ldr r3, [r3, #0] 8015e7e: 9203 str r2, [sp, #12] 8015e80: ea43 73e3 orr.w r3, r3, r3, asr #31 8015e84: 9305 str r3, [sp, #20] 8015e86: f8df a0c8 ldr.w sl, [pc, #200] @ 8015f50 <_vfiprintf_r+0x220> 8015e8a: 2203 movs r2, #3 8015e8c: 4650 mov r0, sl 8015e8e: 7821 ldrb r1, [r4, #0] 8015e90: f7fe ff38 bl 8014d04 8015e94: b138 cbz r0, 8015ea6 <_vfiprintf_r+0x176> 8015e96: 2240 movs r2, #64 @ 0x40 8015e98: 9b04 ldr r3, [sp, #16] 8015e9a: eba0 000a sub.w r0, r0, sl 8015e9e: 4082 lsls r2, r0 8015ea0: 4313 orrs r3, r2 8015ea2: 3401 adds r4, #1 8015ea4: 9304 str r3, [sp, #16] 8015ea6: f814 1b01 ldrb.w r1, [r4], #1 8015eaa: 2206 movs r2, #6 8015eac: 4829 ldr r0, [pc, #164] @ (8015f54 <_vfiprintf_r+0x224>) 8015eae: f88d 1028 strb.w r1, [sp, #40] @ 0x28 8015eb2: f7fe ff27 bl 8014d04 8015eb6: 2800 cmp r0, #0 8015eb8: d03f beq.n 8015f3a <_vfiprintf_r+0x20a> 8015eba: 4b27 ldr r3, [pc, #156] @ (8015f58 <_vfiprintf_r+0x228>) 8015ebc: bb1b cbnz r3, 8015f06 <_vfiprintf_r+0x1d6> 8015ebe: 9b03 ldr r3, [sp, #12] 8015ec0: 3307 adds r3, #7 8015ec2: f023 0307 bic.w r3, r3, #7 8015ec6: 3308 adds r3, #8 8015ec8: 9303 str r3, [sp, #12] 8015eca: 9b09 ldr r3, [sp, #36] @ 0x24 8015ecc: 443b add r3, r7 8015ece: 9309 str r3, [sp, #36] @ 0x24 8015ed0: e76a b.n 8015da8 <_vfiprintf_r+0x78> 8015ed2: 460c mov r4, r1 8015ed4: 2001 movs r0, #1 8015ed6: fb0c 3202 mla r2, ip, r2, r3 8015eda: e7a8 b.n 8015e2e <_vfiprintf_r+0xfe> 8015edc: 2300 movs r3, #0 8015ede: f04f 0c0a mov.w ip, #10 8015ee2: 4619 mov r1, r3 8015ee4: 3401 adds r4, #1 8015ee6: 9305 str r3, [sp, #20] 8015ee8: 4620 mov r0, r4 8015eea: f810 2b01 ldrb.w r2, [r0], #1 8015eee: 3a30 subs r2, #48 @ 0x30 8015ef0: 2a09 cmp r2, #9 8015ef2: d903 bls.n 8015efc <_vfiprintf_r+0x1cc> 8015ef4: 2b00 cmp r3, #0 8015ef6: d0c6 beq.n 8015e86 <_vfiprintf_r+0x156> 8015ef8: 9105 str r1, [sp, #20] 8015efa: e7c4 b.n 8015e86 <_vfiprintf_r+0x156> 8015efc: 4604 mov r4, r0 8015efe: 2301 movs r3, #1 8015f00: fb0c 2101 mla r1, ip, r1, r2 8015f04: e7f0 b.n 8015ee8 <_vfiprintf_r+0x1b8> 8015f06: ab03 add r3, sp, #12 8015f08: 9300 str r3, [sp, #0] 8015f0a: 462a mov r2, r5 8015f0c: 4630 mov r0, r6 8015f0e: 4b13 ldr r3, [pc, #76] @ (8015f5c <_vfiprintf_r+0x22c>) 8015f10: a904 add r1, sp, #16 8015f12: f7fe f9f1 bl 80142f8 <_printf_float> 8015f16: 4607 mov r7, r0 8015f18: 1c78 adds r0, r7, #1 8015f1a: d1d6 bne.n 8015eca <_vfiprintf_r+0x19a> 8015f1c: 6e6b ldr r3, [r5, #100] @ 0x64 8015f1e: 07d9 lsls r1, r3, #31 8015f20: d405 bmi.n 8015f2e <_vfiprintf_r+0x1fe> 8015f22: 89ab ldrh r3, [r5, #12] 8015f24: 059a lsls r2, r3, #22 8015f26: d402 bmi.n 8015f2e <_vfiprintf_r+0x1fe> 8015f28: 6da8 ldr r0, [r5, #88] @ 0x58 8015f2a: f7fe fee5 bl 8014cf8 <__retarget_lock_release_recursive> 8015f2e: 89ab ldrh r3, [r5, #12] 8015f30: 065b lsls r3, r3, #25 8015f32: f53f af1f bmi.w 8015d74 <_vfiprintf_r+0x44> 8015f36: 9809 ldr r0, [sp, #36] @ 0x24 8015f38: e71e b.n 8015d78 <_vfiprintf_r+0x48> 8015f3a: ab03 add r3, sp, #12 8015f3c: 9300 str r3, [sp, #0] 8015f3e: 462a mov r2, r5 8015f40: 4630 mov r0, r6 8015f42: 4b06 ldr r3, [pc, #24] @ (8015f5c <_vfiprintf_r+0x22c>) 8015f44: a904 add r1, sp, #16 8015f46: f7fe fc75 bl 8014834 <_printf_i> 8015f4a: e7e4 b.n 8015f16 <_vfiprintf_r+0x1e6> 8015f4c: 08017a65 .word 0x08017a65 8015f50: 08017a6b .word 0x08017a6b 8015f54: 08017a6f .word 0x08017a6f 8015f58: 080142f9 .word 0x080142f9 8015f5c: 08015d0b .word 0x08015d0b 08015f60 : 8015f60: 4b02 ldr r3, [pc, #8] @ (8015f6c ) 8015f62: 4601 mov r1, r0 8015f64: 6818 ldr r0, [r3, #0] 8015f66: f000 b825 b.w 8015fb4 <_malloc_r> 8015f6a: bf00 nop 8015f6c: 2000009c .word 0x2000009c 08015f70 : 8015f70: b570 push {r4, r5, r6, lr} 8015f72: 4e0f ldr r6, [pc, #60] @ (8015fb0 ) 8015f74: 460c mov r4, r1 8015f76: 6831 ldr r1, [r6, #0] 8015f78: 4605 mov r5, r0 8015f7a: b911 cbnz r1, 8015f82 8015f7c: f000 fe90 bl 8016ca0 <_sbrk_r> 8015f80: 6030 str r0, [r6, #0] 8015f82: 4621 mov r1, r4 8015f84: 4628 mov r0, r5 8015f86: f000 fe8b bl 8016ca0 <_sbrk_r> 8015f8a: 1c43 adds r3, r0, #1 8015f8c: d103 bne.n 8015f96 8015f8e: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff 8015f92: 4620 mov r0, r4 8015f94: bd70 pop {r4, r5, r6, pc} 8015f96: 1cc4 adds r4, r0, #3 8015f98: f024 0403 bic.w r4, r4, #3 8015f9c: 42a0 cmp r0, r4 8015f9e: d0f8 beq.n 8015f92 8015fa0: 1a21 subs r1, r4, r0 8015fa2: 4628 mov r0, r5 8015fa4: f000 fe7c bl 8016ca0 <_sbrk_r> 8015fa8: 3001 adds r0, #1 8015faa: d1f2 bne.n 8015f92 8015fac: e7ef b.n 8015f8e 8015fae: bf00 nop 8015fb0: 200015d8 .word 0x200015d8 08015fb4 <_malloc_r>: 8015fb4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8015fb8: 1ccd adds r5, r1, #3 8015fba: f025 0503 bic.w r5, r5, #3 8015fbe: 3508 adds r5, #8 8015fc0: 2d0c cmp r5, #12 8015fc2: bf38 it cc 8015fc4: 250c movcc r5, #12 8015fc6: 2d00 cmp r5, #0 8015fc8: 4606 mov r6, r0 8015fca: db01 blt.n 8015fd0 <_malloc_r+0x1c> 8015fcc: 42a9 cmp r1, r5 8015fce: d904 bls.n 8015fda <_malloc_r+0x26> 8015fd0: 230c movs r3, #12 8015fd2: 6033 str r3, [r6, #0] 8015fd4: 2000 movs r0, #0 8015fd6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8015fda: f8df 80d4 ldr.w r8, [pc, #212] @ 80160b0 <_malloc_r+0xfc> 8015fde: f000 f911 bl 8016204 <__malloc_lock> 8015fe2: f8d8 3000 ldr.w r3, [r8] 8015fe6: 461c mov r4, r3 8015fe8: bb44 cbnz r4, 801603c <_malloc_r+0x88> 8015fea: 4629 mov r1, r5 8015fec: 4630 mov r0, r6 8015fee: f7ff ffbf bl 8015f70 8015ff2: 1c43 adds r3, r0, #1 8015ff4: 4604 mov r4, r0 8015ff6: d158 bne.n 80160aa <_malloc_r+0xf6> 8015ff8: f8d8 4000 ldr.w r4, [r8] 8015ffc: 4627 mov r7, r4 8015ffe: 2f00 cmp r7, #0 8016000: d143 bne.n 801608a <_malloc_r+0xd6> 8016002: 2c00 cmp r4, #0 8016004: d04b beq.n 801609e <_malloc_r+0xea> 8016006: 6823 ldr r3, [r4, #0] 8016008: 4639 mov r1, r7 801600a: 4630 mov r0, r6 801600c: eb04 0903 add.w r9, r4, r3 8016010: f000 fe46 bl 8016ca0 <_sbrk_r> 8016014: 4581 cmp r9, r0 8016016: d142 bne.n 801609e <_malloc_r+0xea> 8016018: 6821 ldr r1, [r4, #0] 801601a: 4630 mov r0, r6 801601c: 1a6d subs r5, r5, r1 801601e: 4629 mov r1, r5 8016020: f7ff ffa6 bl 8015f70 8016024: 3001 adds r0, #1 8016026: d03a beq.n 801609e <_malloc_r+0xea> 8016028: 6823 ldr r3, [r4, #0] 801602a: 442b add r3, r5 801602c: 6023 str r3, [r4, #0] 801602e: f8d8 3000 ldr.w r3, [r8] 8016032: 685a ldr r2, [r3, #4] 8016034: bb62 cbnz r2, 8016090 <_malloc_r+0xdc> 8016036: f8c8 7000 str.w r7, [r8] 801603a: e00f b.n 801605c <_malloc_r+0xa8> 801603c: 6822 ldr r2, [r4, #0] 801603e: 1b52 subs r2, r2, r5 8016040: d420 bmi.n 8016084 <_malloc_r+0xd0> 8016042: 2a0b cmp r2, #11 8016044: d917 bls.n 8016076 <_malloc_r+0xc2> 8016046: 1961 adds r1, r4, r5 8016048: 42a3 cmp r3, r4 801604a: 6025 str r5, [r4, #0] 801604c: bf18 it ne 801604e: 6059 strne r1, [r3, #4] 8016050: 6863 ldr r3, [r4, #4] 8016052: bf08 it eq 8016054: f8c8 1000 streq.w r1, [r8] 8016058: 5162 str r2, [r4, r5] 801605a: 604b str r3, [r1, #4] 801605c: 4630 mov r0, r6 801605e: f000 f8d7 bl 8016210 <__malloc_unlock> 8016062: f104 000b add.w r0, r4, #11 8016066: 1d23 adds r3, r4, #4 8016068: f020 0007 bic.w r0, r0, #7 801606c: 1ac2 subs r2, r0, r3 801606e: bf1c itt ne 8016070: 1a1b subne r3, r3, r0 8016072: 50a3 strne r3, [r4, r2] 8016074: e7af b.n 8015fd6 <_malloc_r+0x22> 8016076: 6862 ldr r2, [r4, #4] 8016078: 42a3 cmp r3, r4 801607a: bf0c ite eq 801607c: f8c8 2000 streq.w r2, [r8] 8016080: 605a strne r2, [r3, #4] 8016082: e7eb b.n 801605c <_malloc_r+0xa8> 8016084: 4623 mov r3, r4 8016086: 6864 ldr r4, [r4, #4] 8016088: e7ae b.n 8015fe8 <_malloc_r+0x34> 801608a: 463c mov r4, r7 801608c: 687f ldr r7, [r7, #4] 801608e: e7b6 b.n 8015ffe <_malloc_r+0x4a> 8016090: 461a mov r2, r3 8016092: 685b ldr r3, [r3, #4] 8016094: 42a3 cmp r3, r4 8016096: d1fb bne.n 8016090 <_malloc_r+0xdc> 8016098: 2300 movs r3, #0 801609a: 6053 str r3, [r2, #4] 801609c: e7de b.n 801605c <_malloc_r+0xa8> 801609e: 230c movs r3, #12 80160a0: 4630 mov r0, r6 80160a2: 6033 str r3, [r6, #0] 80160a4: f000 f8b4 bl 8016210 <__malloc_unlock> 80160a8: e794 b.n 8015fd4 <_malloc_r+0x20> 80160aa: 6005 str r5, [r0, #0] 80160ac: e7d6 b.n 801605c <_malloc_r+0xa8> 80160ae: bf00 nop 80160b0: 200015dc .word 0x200015dc 080160b4 <__sflush_r>: 80160b4: f9b1 200c ldrsh.w r2, [r1, #12] 80160b8: b5f8 push {r3, r4, r5, r6, r7, lr} 80160ba: 0716 lsls r6, r2, #28 80160bc: 4605 mov r5, r0 80160be: 460c mov r4, r1 80160c0: d454 bmi.n 801616c <__sflush_r+0xb8> 80160c2: 684b ldr r3, [r1, #4] 80160c4: 2b00 cmp r3, #0 80160c6: dc02 bgt.n 80160ce <__sflush_r+0x1a> 80160c8: 6c0b ldr r3, [r1, #64] @ 0x40 80160ca: 2b00 cmp r3, #0 80160cc: dd48 ble.n 8016160 <__sflush_r+0xac> 80160ce: 6ae6 ldr r6, [r4, #44] @ 0x2c 80160d0: 2e00 cmp r6, #0 80160d2: d045 beq.n 8016160 <__sflush_r+0xac> 80160d4: 2300 movs r3, #0 80160d6: f412 5280 ands.w r2, r2, #4096 @ 0x1000 80160da: 682f ldr r7, [r5, #0] 80160dc: 6a21 ldr r1, [r4, #32] 80160de: 602b str r3, [r5, #0] 80160e0: d030 beq.n 8016144 <__sflush_r+0x90> 80160e2: 6d62 ldr r2, [r4, #84] @ 0x54 80160e4: 89a3 ldrh r3, [r4, #12] 80160e6: 0759 lsls r1, r3, #29 80160e8: d505 bpl.n 80160f6 <__sflush_r+0x42> 80160ea: 6863 ldr r3, [r4, #4] 80160ec: 1ad2 subs r2, r2, r3 80160ee: 6b63 ldr r3, [r4, #52] @ 0x34 80160f0: b10b cbz r3, 80160f6 <__sflush_r+0x42> 80160f2: 6c23 ldr r3, [r4, #64] @ 0x40 80160f4: 1ad2 subs r2, r2, r3 80160f6: 2300 movs r3, #0 80160f8: 4628 mov r0, r5 80160fa: 6ae6 ldr r6, [r4, #44] @ 0x2c 80160fc: 6a21 ldr r1, [r4, #32] 80160fe: 47b0 blx r6 8016100: 1c43 adds r3, r0, #1 8016102: 89a3 ldrh r3, [r4, #12] 8016104: d106 bne.n 8016114 <__sflush_r+0x60> 8016106: 6829 ldr r1, [r5, #0] 8016108: 291d cmp r1, #29 801610a: d82b bhi.n 8016164 <__sflush_r+0xb0> 801610c: 4a28 ldr r2, [pc, #160] @ (80161b0 <__sflush_r+0xfc>) 801610e: 40ca lsrs r2, r1 8016110: 07d6 lsls r6, r2, #31 8016112: d527 bpl.n 8016164 <__sflush_r+0xb0> 8016114: 2200 movs r2, #0 8016116: 6062 str r2, [r4, #4] 8016118: 6922 ldr r2, [r4, #16] 801611a: 04d9 lsls r1, r3, #19 801611c: 6022 str r2, [r4, #0] 801611e: d504 bpl.n 801612a <__sflush_r+0x76> 8016120: 1c42 adds r2, r0, #1 8016122: d101 bne.n 8016128 <__sflush_r+0x74> 8016124: 682b ldr r3, [r5, #0] 8016126: b903 cbnz r3, 801612a <__sflush_r+0x76> 8016128: 6560 str r0, [r4, #84] @ 0x54 801612a: 6b61 ldr r1, [r4, #52] @ 0x34 801612c: 602f str r7, [r5, #0] 801612e: b1b9 cbz r1, 8016160 <__sflush_r+0xac> 8016130: f104 0344 add.w r3, r4, #68 @ 0x44 8016134: 4299 cmp r1, r3 8016136: d002 beq.n 801613e <__sflush_r+0x8a> 8016138: 4628 mov r0, r5 801613a: f000 fe11 bl 8016d60 <_free_r> 801613e: 2300 movs r3, #0 8016140: 6363 str r3, [r4, #52] @ 0x34 8016142: e00d b.n 8016160 <__sflush_r+0xac> 8016144: 2301 movs r3, #1 8016146: 4628 mov r0, r5 8016148: 47b0 blx r6 801614a: 4602 mov r2, r0 801614c: 1c50 adds r0, r2, #1 801614e: d1c9 bne.n 80160e4 <__sflush_r+0x30> 8016150: 682b ldr r3, [r5, #0] 8016152: 2b00 cmp r3, #0 8016154: d0c6 beq.n 80160e4 <__sflush_r+0x30> 8016156: 2b1d cmp r3, #29 8016158: d001 beq.n 801615e <__sflush_r+0xaa> 801615a: 2b16 cmp r3, #22 801615c: d11d bne.n 801619a <__sflush_r+0xe6> 801615e: 602f str r7, [r5, #0] 8016160: 2000 movs r0, #0 8016162: e021 b.n 80161a8 <__sflush_r+0xf4> 8016164: f043 0340 orr.w r3, r3, #64 @ 0x40 8016168: b21b sxth r3, r3 801616a: e01a b.n 80161a2 <__sflush_r+0xee> 801616c: 690f ldr r7, [r1, #16] 801616e: 2f00 cmp r7, #0 8016170: d0f6 beq.n 8016160 <__sflush_r+0xac> 8016172: 0793 lsls r3, r2, #30 8016174: bf18 it ne 8016176: 2300 movne r3, #0 8016178: 680e ldr r6, [r1, #0] 801617a: bf08 it eq 801617c: 694b ldreq r3, [r1, #20] 801617e: 1bf6 subs r6, r6, r7 8016180: 600f str r7, [r1, #0] 8016182: 608b str r3, [r1, #8] 8016184: 2e00 cmp r6, #0 8016186: ddeb ble.n 8016160 <__sflush_r+0xac> 8016188: 4633 mov r3, r6 801618a: 463a mov r2, r7 801618c: 4628 mov r0, r5 801618e: 6a21 ldr r1, [r4, #32] 8016190: f8d4 c028 ldr.w ip, [r4, #40] @ 0x28 8016194: 47e0 blx ip 8016196: 2800 cmp r0, #0 8016198: dc07 bgt.n 80161aa <__sflush_r+0xf6> 801619a: f9b4 300c ldrsh.w r3, [r4, #12] 801619e: f043 0340 orr.w r3, r3, #64 @ 0x40 80161a2: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 80161a6: 81a3 strh r3, [r4, #12] 80161a8: bdf8 pop {r3, r4, r5, r6, r7, pc} 80161aa: 4407 add r7, r0 80161ac: 1a36 subs r6, r6, r0 80161ae: e7e9 b.n 8016184 <__sflush_r+0xd0> 80161b0: 20400001 .word 0x20400001 080161b4 <_fflush_r>: 80161b4: b538 push {r3, r4, r5, lr} 80161b6: 690b ldr r3, [r1, #16] 80161b8: 4605 mov r5, r0 80161ba: 460c mov r4, r1 80161bc: b913 cbnz r3, 80161c4 <_fflush_r+0x10> 80161be: 2500 movs r5, #0 80161c0: 4628 mov r0, r5 80161c2: bd38 pop {r3, r4, r5, pc} 80161c4: b118 cbz r0, 80161ce <_fflush_r+0x1a> 80161c6: 6a03 ldr r3, [r0, #32] 80161c8: b90b cbnz r3, 80161ce <_fflush_r+0x1a> 80161ca: f7fe fcdd bl 8014b88 <__sinit> 80161ce: f9b4 300c ldrsh.w r3, [r4, #12] 80161d2: 2b00 cmp r3, #0 80161d4: d0f3 beq.n 80161be <_fflush_r+0xa> 80161d6: 6e62 ldr r2, [r4, #100] @ 0x64 80161d8: 07d0 lsls r0, r2, #31 80161da: d404 bmi.n 80161e6 <_fflush_r+0x32> 80161dc: 0599 lsls r1, r3, #22 80161de: d402 bmi.n 80161e6 <_fflush_r+0x32> 80161e0: 6da0 ldr r0, [r4, #88] @ 0x58 80161e2: f7fe fd88 bl 8014cf6 <__retarget_lock_acquire_recursive> 80161e6: 4628 mov r0, r5 80161e8: 4621 mov r1, r4 80161ea: f7ff ff63 bl 80160b4 <__sflush_r> 80161ee: 6e63 ldr r3, [r4, #100] @ 0x64 80161f0: 4605 mov r5, r0 80161f2: 07da lsls r2, r3, #31 80161f4: d4e4 bmi.n 80161c0 <_fflush_r+0xc> 80161f6: 89a3 ldrh r3, [r4, #12] 80161f8: 059b lsls r3, r3, #22 80161fa: d4e1 bmi.n 80161c0 <_fflush_r+0xc> 80161fc: 6da0 ldr r0, [r4, #88] @ 0x58 80161fe: f7fe fd7b bl 8014cf8 <__retarget_lock_release_recursive> 8016202: e7dd b.n 80161c0 <_fflush_r+0xc> 08016204 <__malloc_lock>: 8016204: 4801 ldr r0, [pc, #4] @ (801620c <__malloc_lock+0x8>) 8016206: f7fe bd76 b.w 8014cf6 <__retarget_lock_acquire_recursive> 801620a: bf00 nop 801620c: 200015d4 .word 0x200015d4 08016210 <__malloc_unlock>: 8016210: 4801 ldr r0, [pc, #4] @ (8016218 <__malloc_unlock+0x8>) 8016212: f7fe bd71 b.w 8014cf8 <__retarget_lock_release_recursive> 8016216: bf00 nop 8016218: 200015d4 .word 0x200015d4 0801621c <_Balloc>: 801621c: b570 push {r4, r5, r6, lr} 801621e: 69c6 ldr r6, [r0, #28] 8016220: 4604 mov r4, r0 8016222: 460d mov r5, r1 8016224: b976 cbnz r6, 8016244 <_Balloc+0x28> 8016226: 2010 movs r0, #16 8016228: f7ff fe9a bl 8015f60 801622c: 4602 mov r2, r0 801622e: 61e0 str r0, [r4, #28] 8016230: b920 cbnz r0, 801623c <_Balloc+0x20> 8016232: 216b movs r1, #107 @ 0x6b 8016234: 4b17 ldr r3, [pc, #92] @ (8016294 <_Balloc+0x78>) 8016236: 4818 ldr r0, [pc, #96] @ (8016298 <_Balloc+0x7c>) 8016238: f7fe fd80 bl 8014d3c <__assert_func> 801623c: e9c0 6601 strd r6, r6, [r0, #4] 8016240: 6006 str r6, [r0, #0] 8016242: 60c6 str r6, [r0, #12] 8016244: 69e6 ldr r6, [r4, #28] 8016246: 68f3 ldr r3, [r6, #12] 8016248: b183 cbz r3, 801626c <_Balloc+0x50> 801624a: 69e3 ldr r3, [r4, #28] 801624c: 68db ldr r3, [r3, #12] 801624e: f853 0025 ldr.w r0, [r3, r5, lsl #2] 8016252: b9b8 cbnz r0, 8016284 <_Balloc+0x68> 8016254: 2101 movs r1, #1 8016256: fa01 f605 lsl.w r6, r1, r5 801625a: 1d72 adds r2, r6, #5 801625c: 4620 mov r0, r4 801625e: 0092 lsls r2, r2, #2 8016260: f000 fd69 bl 8016d36 <_calloc_r> 8016264: b160 cbz r0, 8016280 <_Balloc+0x64> 8016266: e9c0 5601 strd r5, r6, [r0, #4] 801626a: e00e b.n 801628a <_Balloc+0x6e> 801626c: 2221 movs r2, #33 @ 0x21 801626e: 2104 movs r1, #4 8016270: 4620 mov r0, r4 8016272: f000 fd60 bl 8016d36 <_calloc_r> 8016276: 69e3 ldr r3, [r4, #28] 8016278: 60f0 str r0, [r6, #12] 801627a: 68db ldr r3, [r3, #12] 801627c: 2b00 cmp r3, #0 801627e: d1e4 bne.n 801624a <_Balloc+0x2e> 8016280: 2000 movs r0, #0 8016282: bd70 pop {r4, r5, r6, pc} 8016284: 6802 ldr r2, [r0, #0] 8016286: f843 2025 str.w r2, [r3, r5, lsl #2] 801628a: 2300 movs r3, #0 801628c: e9c0 3303 strd r3, r3, [r0, #12] 8016290: e7f7 b.n 8016282 <_Balloc+0x66> 8016292: bf00 nop 8016294: 080179e5 .word 0x080179e5 8016298: 08017a76 .word 0x08017a76 0801629c <_Bfree>: 801629c: b570 push {r4, r5, r6, lr} 801629e: 69c6 ldr r6, [r0, #28] 80162a0: 4605 mov r5, r0 80162a2: 460c mov r4, r1 80162a4: b976 cbnz r6, 80162c4 <_Bfree+0x28> 80162a6: 2010 movs r0, #16 80162a8: f7ff fe5a bl 8015f60 80162ac: 4602 mov r2, r0 80162ae: 61e8 str r0, [r5, #28] 80162b0: b920 cbnz r0, 80162bc <_Bfree+0x20> 80162b2: 218f movs r1, #143 @ 0x8f 80162b4: 4b08 ldr r3, [pc, #32] @ (80162d8 <_Bfree+0x3c>) 80162b6: 4809 ldr r0, [pc, #36] @ (80162dc <_Bfree+0x40>) 80162b8: f7fe fd40 bl 8014d3c <__assert_func> 80162bc: e9c0 6601 strd r6, r6, [r0, #4] 80162c0: 6006 str r6, [r0, #0] 80162c2: 60c6 str r6, [r0, #12] 80162c4: b13c cbz r4, 80162d6 <_Bfree+0x3a> 80162c6: 69eb ldr r3, [r5, #28] 80162c8: 6862 ldr r2, [r4, #4] 80162ca: 68db ldr r3, [r3, #12] 80162cc: f853 1022 ldr.w r1, [r3, r2, lsl #2] 80162d0: 6021 str r1, [r4, #0] 80162d2: f843 4022 str.w r4, [r3, r2, lsl #2] 80162d6: bd70 pop {r4, r5, r6, pc} 80162d8: 080179e5 .word 0x080179e5 80162dc: 08017a76 .word 0x08017a76 080162e0 <__multadd>: 80162e0: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 80162e4: 4607 mov r7, r0 80162e6: 460c mov r4, r1 80162e8: 461e mov r6, r3 80162ea: 2000 movs r0, #0 80162ec: 690d ldr r5, [r1, #16] 80162ee: f101 0c14 add.w ip, r1, #20 80162f2: f8dc 3000 ldr.w r3, [ip] 80162f6: 3001 adds r0, #1 80162f8: b299 uxth r1, r3 80162fa: fb02 6101 mla r1, r2, r1, r6 80162fe: 0c1e lsrs r6, r3, #16 8016300: 0c0b lsrs r3, r1, #16 8016302: fb02 3306 mla r3, r2, r6, r3 8016306: b289 uxth r1, r1 8016308: eb01 4103 add.w r1, r1, r3, lsl #16 801630c: 4285 cmp r5, r0 801630e: ea4f 4613 mov.w r6, r3, lsr #16 8016312: f84c 1b04 str.w r1, [ip], #4 8016316: dcec bgt.n 80162f2 <__multadd+0x12> 8016318: b30e cbz r6, 801635e <__multadd+0x7e> 801631a: 68a3 ldr r3, [r4, #8] 801631c: 42ab cmp r3, r5 801631e: dc19 bgt.n 8016354 <__multadd+0x74> 8016320: 6861 ldr r1, [r4, #4] 8016322: 4638 mov r0, r7 8016324: 3101 adds r1, #1 8016326: f7ff ff79 bl 801621c <_Balloc> 801632a: 4680 mov r8, r0 801632c: b928 cbnz r0, 801633a <__multadd+0x5a> 801632e: 4602 mov r2, r0 8016330: 21ba movs r1, #186 @ 0xba 8016332: 4b0c ldr r3, [pc, #48] @ (8016364 <__multadd+0x84>) 8016334: 480c ldr r0, [pc, #48] @ (8016368 <__multadd+0x88>) 8016336: f7fe fd01 bl 8014d3c <__assert_func> 801633a: 6922 ldr r2, [r4, #16] 801633c: f104 010c add.w r1, r4, #12 8016340: 3202 adds r2, #2 8016342: 0092 lsls r2, r2, #2 8016344: 300c adds r0, #12 8016346: f7fe fceb bl 8014d20 801634a: 4621 mov r1, r4 801634c: 4638 mov r0, r7 801634e: f7ff ffa5 bl 801629c <_Bfree> 8016352: 4644 mov r4, r8 8016354: eb04 0385 add.w r3, r4, r5, lsl #2 8016358: 3501 adds r5, #1 801635a: 615e str r6, [r3, #20] 801635c: 6125 str r5, [r4, #16] 801635e: 4620 mov r0, r4 8016360: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 8016364: 08017a54 .word 0x08017a54 8016368: 08017a76 .word 0x08017a76 0801636c <__hi0bits>: 801636c: 4603 mov r3, r0 801636e: f5b0 3f80 cmp.w r0, #65536 @ 0x10000 8016372: bf3a itte cc 8016374: 0403 lslcc r3, r0, #16 8016376: 2010 movcc r0, #16 8016378: 2000 movcs r0, #0 801637a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 801637e: bf3c itt cc 8016380: 021b lslcc r3, r3, #8 8016382: 3008 addcc r0, #8 8016384: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 8016388: bf3c itt cc 801638a: 011b lslcc r3, r3, #4 801638c: 3004 addcc r0, #4 801638e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 8016392: bf3c itt cc 8016394: 009b lslcc r3, r3, #2 8016396: 3002 addcc r0, #2 8016398: 2b00 cmp r3, #0 801639a: db05 blt.n 80163a8 <__hi0bits+0x3c> 801639c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000 80163a0: f100 0001 add.w r0, r0, #1 80163a4: bf08 it eq 80163a6: 2020 moveq r0, #32 80163a8: 4770 bx lr 080163aa <__lo0bits>: 80163aa: 6803 ldr r3, [r0, #0] 80163ac: 4602 mov r2, r0 80163ae: f013 0007 ands.w r0, r3, #7 80163b2: d00b beq.n 80163cc <__lo0bits+0x22> 80163b4: 07d9 lsls r1, r3, #31 80163b6: d421 bmi.n 80163fc <__lo0bits+0x52> 80163b8: 0798 lsls r0, r3, #30 80163ba: bf49 itett mi 80163bc: 085b lsrmi r3, r3, #1 80163be: 089b lsrpl r3, r3, #2 80163c0: 2001 movmi r0, #1 80163c2: 6013 strmi r3, [r2, #0] 80163c4: bf5c itt pl 80163c6: 2002 movpl r0, #2 80163c8: 6013 strpl r3, [r2, #0] 80163ca: 4770 bx lr 80163cc: b299 uxth r1, r3 80163ce: b909 cbnz r1, 80163d4 <__lo0bits+0x2a> 80163d0: 2010 movs r0, #16 80163d2: 0c1b lsrs r3, r3, #16 80163d4: b2d9 uxtb r1, r3 80163d6: b909 cbnz r1, 80163dc <__lo0bits+0x32> 80163d8: 3008 adds r0, #8 80163da: 0a1b lsrs r3, r3, #8 80163dc: 0719 lsls r1, r3, #28 80163de: bf04 itt eq 80163e0: 091b lsreq r3, r3, #4 80163e2: 3004 addeq r0, #4 80163e4: 0799 lsls r1, r3, #30 80163e6: bf04 itt eq 80163e8: 089b lsreq r3, r3, #2 80163ea: 3002 addeq r0, #2 80163ec: 07d9 lsls r1, r3, #31 80163ee: d403 bmi.n 80163f8 <__lo0bits+0x4e> 80163f0: 085b lsrs r3, r3, #1 80163f2: f100 0001 add.w r0, r0, #1 80163f6: d003 beq.n 8016400 <__lo0bits+0x56> 80163f8: 6013 str r3, [r2, #0] 80163fa: 4770 bx lr 80163fc: 2000 movs r0, #0 80163fe: 4770 bx lr 8016400: 2020 movs r0, #32 8016402: 4770 bx lr 08016404 <__i2b>: 8016404: b510 push {r4, lr} 8016406: 460c mov r4, r1 8016408: 2101 movs r1, #1 801640a: f7ff ff07 bl 801621c <_Balloc> 801640e: 4602 mov r2, r0 8016410: b928 cbnz r0, 801641e <__i2b+0x1a> 8016412: f240 1145 movw r1, #325 @ 0x145 8016416: 4b04 ldr r3, [pc, #16] @ (8016428 <__i2b+0x24>) 8016418: 4804 ldr r0, [pc, #16] @ (801642c <__i2b+0x28>) 801641a: f7fe fc8f bl 8014d3c <__assert_func> 801641e: 2301 movs r3, #1 8016420: 6144 str r4, [r0, #20] 8016422: 6103 str r3, [r0, #16] 8016424: bd10 pop {r4, pc} 8016426: bf00 nop 8016428: 08017a54 .word 0x08017a54 801642c: 08017a76 .word 0x08017a76 08016430 <__multiply>: 8016430: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8016434: 4617 mov r7, r2 8016436: 690a ldr r2, [r1, #16] 8016438: 693b ldr r3, [r7, #16] 801643a: 4689 mov r9, r1 801643c: 429a cmp r2, r3 801643e: bfa2 ittt ge 8016440: 463b movge r3, r7 8016442: 460f movge r7, r1 8016444: 4699 movge r9, r3 8016446: 693d ldr r5, [r7, #16] 8016448: f8d9 a010 ldr.w sl, [r9, #16] 801644c: 68bb ldr r3, [r7, #8] 801644e: 6879 ldr r1, [r7, #4] 8016450: eb05 060a add.w r6, r5, sl 8016454: 42b3 cmp r3, r6 8016456: b085 sub sp, #20 8016458: bfb8 it lt 801645a: 3101 addlt r1, #1 801645c: f7ff fede bl 801621c <_Balloc> 8016460: b930 cbnz r0, 8016470 <__multiply+0x40> 8016462: 4602 mov r2, r0 8016464: f44f 71b1 mov.w r1, #354 @ 0x162 8016468: 4b40 ldr r3, [pc, #256] @ (801656c <__multiply+0x13c>) 801646a: 4841 ldr r0, [pc, #260] @ (8016570 <__multiply+0x140>) 801646c: f7fe fc66 bl 8014d3c <__assert_func> 8016470: f100 0414 add.w r4, r0, #20 8016474: 4623 mov r3, r4 8016476: 2200 movs r2, #0 8016478: eb04 0e86 add.w lr, r4, r6, lsl #2 801647c: 4573 cmp r3, lr 801647e: d320 bcc.n 80164c2 <__multiply+0x92> 8016480: f107 0814 add.w r8, r7, #20 8016484: f109 0114 add.w r1, r9, #20 8016488: eb08 0585 add.w r5, r8, r5, lsl #2 801648c: eb01 038a add.w r3, r1, sl, lsl #2 8016490: 9302 str r3, [sp, #8] 8016492: 1beb subs r3, r5, r7 8016494: 3b15 subs r3, #21 8016496: f023 0303 bic.w r3, r3, #3 801649a: 3304 adds r3, #4 801649c: 3715 adds r7, #21 801649e: 42bd cmp r5, r7 80164a0: bf38 it cc 80164a2: 2304 movcc r3, #4 80164a4: 9301 str r3, [sp, #4] 80164a6: 9b02 ldr r3, [sp, #8] 80164a8: 9103 str r1, [sp, #12] 80164aa: 428b cmp r3, r1 80164ac: d80c bhi.n 80164c8 <__multiply+0x98> 80164ae: 2e00 cmp r6, #0 80164b0: dd03 ble.n 80164ba <__multiply+0x8a> 80164b2: f85e 3d04 ldr.w r3, [lr, #-4]! 80164b6: 2b00 cmp r3, #0 80164b8: d055 beq.n 8016566 <__multiply+0x136> 80164ba: 6106 str r6, [r0, #16] 80164bc: b005 add sp, #20 80164be: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 80164c2: f843 2b04 str.w r2, [r3], #4 80164c6: e7d9 b.n 801647c <__multiply+0x4c> 80164c8: f8b1 a000 ldrh.w sl, [r1] 80164cc: f1ba 0f00 cmp.w sl, #0 80164d0: d01f beq.n 8016512 <__multiply+0xe2> 80164d2: 46c4 mov ip, r8 80164d4: 46a1 mov r9, r4 80164d6: 2700 movs r7, #0 80164d8: f85c 2b04 ldr.w r2, [ip], #4 80164dc: f8d9 3000 ldr.w r3, [r9] 80164e0: fa1f fb82 uxth.w fp, r2 80164e4: b29b uxth r3, r3 80164e6: fb0a 330b mla r3, sl, fp, r3 80164ea: 443b add r3, r7 80164ec: f8d9 7000 ldr.w r7, [r9] 80164f0: 0c12 lsrs r2, r2, #16 80164f2: 0c3f lsrs r7, r7, #16 80164f4: fb0a 7202 mla r2, sl, r2, r7 80164f8: eb02 4213 add.w r2, r2, r3, lsr #16 80164fc: b29b uxth r3, r3 80164fe: ea43 4302 orr.w r3, r3, r2, lsl #16 8016502: 4565 cmp r5, ip 8016504: ea4f 4712 mov.w r7, r2, lsr #16 8016508: f849 3b04 str.w r3, [r9], #4 801650c: d8e4 bhi.n 80164d8 <__multiply+0xa8> 801650e: 9b01 ldr r3, [sp, #4] 8016510: 50e7 str r7, [r4, r3] 8016512: 9b03 ldr r3, [sp, #12] 8016514: 3104 adds r1, #4 8016516: f8b3 9002 ldrh.w r9, [r3, #2] 801651a: f1b9 0f00 cmp.w r9, #0 801651e: d020 beq.n 8016562 <__multiply+0x132> 8016520: 4647 mov r7, r8 8016522: 46a4 mov ip, r4 8016524: f04f 0a00 mov.w sl, #0 8016528: 6823 ldr r3, [r4, #0] 801652a: f8b7 b000 ldrh.w fp, [r7] 801652e: f8bc 2002 ldrh.w r2, [ip, #2] 8016532: b29b uxth r3, r3 8016534: fb09 220b mla r2, r9, fp, r2 8016538: 4452 add r2, sl 801653a: ea43 4302 orr.w r3, r3, r2, lsl #16 801653e: f84c 3b04 str.w r3, [ip], #4 8016542: f857 3b04 ldr.w r3, [r7], #4 8016546: ea4f 4a13 mov.w sl, r3, lsr #16 801654a: f8bc 3000 ldrh.w r3, [ip] 801654e: 42bd cmp r5, r7 8016550: fb09 330a mla r3, r9, sl, r3 8016554: eb03 4312 add.w r3, r3, r2, lsr #16 8016558: ea4f 4a13 mov.w sl, r3, lsr #16 801655c: d8e5 bhi.n 801652a <__multiply+0xfa> 801655e: 9a01 ldr r2, [sp, #4] 8016560: 50a3 str r3, [r4, r2] 8016562: 3404 adds r4, #4 8016564: e79f b.n 80164a6 <__multiply+0x76> 8016566: 3e01 subs r6, #1 8016568: e7a1 b.n 80164ae <__multiply+0x7e> 801656a: bf00 nop 801656c: 08017a54 .word 0x08017a54 8016570: 08017a76 .word 0x08017a76 08016574 <__pow5mult>: 8016574: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8016578: 4615 mov r5, r2 801657a: f012 0203 ands.w r2, r2, #3 801657e: 4607 mov r7, r0 8016580: 460e mov r6, r1 8016582: d007 beq.n 8016594 <__pow5mult+0x20> 8016584: 4c25 ldr r4, [pc, #148] @ (801661c <__pow5mult+0xa8>) 8016586: 3a01 subs r2, #1 8016588: 2300 movs r3, #0 801658a: f854 2022 ldr.w r2, [r4, r2, lsl #2] 801658e: f7ff fea7 bl 80162e0 <__multadd> 8016592: 4606 mov r6, r0 8016594: 10ad asrs r5, r5, #2 8016596: d03d beq.n 8016614 <__pow5mult+0xa0> 8016598: 69fc ldr r4, [r7, #28] 801659a: b97c cbnz r4, 80165bc <__pow5mult+0x48> 801659c: 2010 movs r0, #16 801659e: f7ff fcdf bl 8015f60 80165a2: 4602 mov r2, r0 80165a4: 61f8 str r0, [r7, #28] 80165a6: b928 cbnz r0, 80165b4 <__pow5mult+0x40> 80165a8: f240 11b3 movw r1, #435 @ 0x1b3 80165ac: 4b1c ldr r3, [pc, #112] @ (8016620 <__pow5mult+0xac>) 80165ae: 481d ldr r0, [pc, #116] @ (8016624 <__pow5mult+0xb0>) 80165b0: f7fe fbc4 bl 8014d3c <__assert_func> 80165b4: e9c0 4401 strd r4, r4, [r0, #4] 80165b8: 6004 str r4, [r0, #0] 80165ba: 60c4 str r4, [r0, #12] 80165bc: f8d7 801c ldr.w r8, [r7, #28] 80165c0: f8d8 4008 ldr.w r4, [r8, #8] 80165c4: b94c cbnz r4, 80165da <__pow5mult+0x66> 80165c6: f240 2171 movw r1, #625 @ 0x271 80165ca: 4638 mov r0, r7 80165cc: f7ff ff1a bl 8016404 <__i2b> 80165d0: 2300 movs r3, #0 80165d2: 4604 mov r4, r0 80165d4: f8c8 0008 str.w r0, [r8, #8] 80165d8: 6003 str r3, [r0, #0] 80165da: f04f 0900 mov.w r9, #0 80165de: 07eb lsls r3, r5, #31 80165e0: d50a bpl.n 80165f8 <__pow5mult+0x84> 80165e2: 4631 mov r1, r6 80165e4: 4622 mov r2, r4 80165e6: 4638 mov r0, r7 80165e8: f7ff ff22 bl 8016430 <__multiply> 80165ec: 4680 mov r8, r0 80165ee: 4631 mov r1, r6 80165f0: 4638 mov r0, r7 80165f2: f7ff fe53 bl 801629c <_Bfree> 80165f6: 4646 mov r6, r8 80165f8: 106d asrs r5, r5, #1 80165fa: d00b beq.n 8016614 <__pow5mult+0xa0> 80165fc: 6820 ldr r0, [r4, #0] 80165fe: b938 cbnz r0, 8016610 <__pow5mult+0x9c> 8016600: 4622 mov r2, r4 8016602: 4621 mov r1, r4 8016604: 4638 mov r0, r7 8016606: f7ff ff13 bl 8016430 <__multiply> 801660a: 6020 str r0, [r4, #0] 801660c: f8c0 9000 str.w r9, [r0] 8016610: 4604 mov r4, r0 8016612: e7e4 b.n 80165de <__pow5mult+0x6a> 8016614: 4630 mov r0, r6 8016616: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 801661a: bf00 nop 801661c: 08017adc .word 0x08017adc 8016620: 080179e5 .word 0x080179e5 8016624: 08017a76 .word 0x08017a76 08016628 <__lshift>: 8016628: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 801662c: 460c mov r4, r1 801662e: 4607 mov r7, r0 8016630: 4691 mov r9, r2 8016632: 6923 ldr r3, [r4, #16] 8016634: 6849 ldr r1, [r1, #4] 8016636: eb03 1862 add.w r8, r3, r2, asr #5 801663a: 68a3 ldr r3, [r4, #8] 801663c: ea4f 1a62 mov.w sl, r2, asr #5 8016640: f108 0601 add.w r6, r8, #1 8016644: 42b3 cmp r3, r6 8016646: db0b blt.n 8016660 <__lshift+0x38> 8016648: 4638 mov r0, r7 801664a: f7ff fde7 bl 801621c <_Balloc> 801664e: 4605 mov r5, r0 8016650: b948 cbnz r0, 8016666 <__lshift+0x3e> 8016652: 4602 mov r2, r0 8016654: f44f 71ef mov.w r1, #478 @ 0x1de 8016658: 4b27 ldr r3, [pc, #156] @ (80166f8 <__lshift+0xd0>) 801665a: 4828 ldr r0, [pc, #160] @ (80166fc <__lshift+0xd4>) 801665c: f7fe fb6e bl 8014d3c <__assert_func> 8016660: 3101 adds r1, #1 8016662: 005b lsls r3, r3, #1 8016664: e7ee b.n 8016644 <__lshift+0x1c> 8016666: 2300 movs r3, #0 8016668: f100 0114 add.w r1, r0, #20 801666c: f100 0210 add.w r2, r0, #16 8016670: 4618 mov r0, r3 8016672: 4553 cmp r3, sl 8016674: db33 blt.n 80166de <__lshift+0xb6> 8016676: 6920 ldr r0, [r4, #16] 8016678: ea2a 7aea bic.w sl, sl, sl, asr #31 801667c: f104 0314 add.w r3, r4, #20 8016680: f019 091f ands.w r9, r9, #31 8016684: eb01 018a add.w r1, r1, sl, lsl #2 8016688: eb03 0c80 add.w ip, r3, r0, lsl #2 801668c: d02b beq.n 80166e6 <__lshift+0xbe> 801668e: 468a mov sl, r1 8016690: 2200 movs r2, #0 8016692: f1c9 0e20 rsb lr, r9, #32 8016696: 6818 ldr r0, [r3, #0] 8016698: fa00 f009 lsl.w r0, r0, r9 801669c: 4310 orrs r0, r2 801669e: f84a 0b04 str.w r0, [sl], #4 80166a2: f853 2b04 ldr.w r2, [r3], #4 80166a6: 459c cmp ip, r3 80166a8: fa22 f20e lsr.w r2, r2, lr 80166ac: d8f3 bhi.n 8016696 <__lshift+0x6e> 80166ae: ebac 0304 sub.w r3, ip, r4 80166b2: 3b15 subs r3, #21 80166b4: f023 0303 bic.w r3, r3, #3 80166b8: 3304 adds r3, #4 80166ba: f104 0015 add.w r0, r4, #21 80166be: 4560 cmp r0, ip 80166c0: bf88 it hi 80166c2: 2304 movhi r3, #4 80166c4: 50ca str r2, [r1, r3] 80166c6: b10a cbz r2, 80166cc <__lshift+0xa4> 80166c8: f108 0602 add.w r6, r8, #2 80166cc: 3e01 subs r6, #1 80166ce: 4638 mov r0, r7 80166d0: 4621 mov r1, r4 80166d2: 612e str r6, [r5, #16] 80166d4: f7ff fde2 bl 801629c <_Bfree> 80166d8: 4628 mov r0, r5 80166da: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 80166de: f842 0f04 str.w r0, [r2, #4]! 80166e2: 3301 adds r3, #1 80166e4: e7c5 b.n 8016672 <__lshift+0x4a> 80166e6: 3904 subs r1, #4 80166e8: f853 2b04 ldr.w r2, [r3], #4 80166ec: 459c cmp ip, r3 80166ee: f841 2f04 str.w r2, [r1, #4]! 80166f2: d8f9 bhi.n 80166e8 <__lshift+0xc0> 80166f4: e7ea b.n 80166cc <__lshift+0xa4> 80166f6: bf00 nop 80166f8: 08017a54 .word 0x08017a54 80166fc: 08017a76 .word 0x08017a76 08016700 <__mcmp>: 8016700: 4603 mov r3, r0 8016702: 690a ldr r2, [r1, #16] 8016704: 6900 ldr r0, [r0, #16] 8016706: b530 push {r4, r5, lr} 8016708: 1a80 subs r0, r0, r2 801670a: d10e bne.n 801672a <__mcmp+0x2a> 801670c: 3314 adds r3, #20 801670e: 3114 adds r1, #20 8016710: eb03 0482 add.w r4, r3, r2, lsl #2 8016714: eb01 0182 add.w r1, r1, r2, lsl #2 8016718: f854 5d04 ldr.w r5, [r4, #-4]! 801671c: f851 2d04 ldr.w r2, [r1, #-4]! 8016720: 4295 cmp r5, r2 8016722: d003 beq.n 801672c <__mcmp+0x2c> 8016724: d205 bcs.n 8016732 <__mcmp+0x32> 8016726: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 801672a: bd30 pop {r4, r5, pc} 801672c: 42a3 cmp r3, r4 801672e: d3f3 bcc.n 8016718 <__mcmp+0x18> 8016730: e7fb b.n 801672a <__mcmp+0x2a> 8016732: 2001 movs r0, #1 8016734: e7f9 b.n 801672a <__mcmp+0x2a> ... 08016738 <__mdiff>: 8016738: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 801673c: 4689 mov r9, r1 801673e: 4606 mov r6, r0 8016740: 4611 mov r1, r2 8016742: 4648 mov r0, r9 8016744: 4614 mov r4, r2 8016746: f7ff ffdb bl 8016700 <__mcmp> 801674a: 1e05 subs r5, r0, #0 801674c: d112 bne.n 8016774 <__mdiff+0x3c> 801674e: 4629 mov r1, r5 8016750: 4630 mov r0, r6 8016752: f7ff fd63 bl 801621c <_Balloc> 8016756: 4602 mov r2, r0 8016758: b928 cbnz r0, 8016766 <__mdiff+0x2e> 801675a: f240 2137 movw r1, #567 @ 0x237 801675e: 4b3e ldr r3, [pc, #248] @ (8016858 <__mdiff+0x120>) 8016760: 483e ldr r0, [pc, #248] @ (801685c <__mdiff+0x124>) 8016762: f7fe faeb bl 8014d3c <__assert_func> 8016766: 2301 movs r3, #1 8016768: e9c0 3504 strd r3, r5, [r0, #16] 801676c: 4610 mov r0, r2 801676e: b003 add sp, #12 8016770: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8016774: bfbc itt lt 8016776: 464b movlt r3, r9 8016778: 46a1 movlt r9, r4 801677a: 4630 mov r0, r6 801677c: f8d9 1004 ldr.w r1, [r9, #4] 8016780: bfba itte lt 8016782: 461c movlt r4, r3 8016784: 2501 movlt r5, #1 8016786: 2500 movge r5, #0 8016788: f7ff fd48 bl 801621c <_Balloc> 801678c: 4602 mov r2, r0 801678e: b918 cbnz r0, 8016798 <__mdiff+0x60> 8016790: f240 2145 movw r1, #581 @ 0x245 8016794: 4b30 ldr r3, [pc, #192] @ (8016858 <__mdiff+0x120>) 8016796: e7e3 b.n 8016760 <__mdiff+0x28> 8016798: f100 0b14 add.w fp, r0, #20 801679c: f8d9 7010 ldr.w r7, [r9, #16] 80167a0: f109 0310 add.w r3, r9, #16 80167a4: 60c5 str r5, [r0, #12] 80167a6: f04f 0c00 mov.w ip, #0 80167aa: f109 0514 add.w r5, r9, #20 80167ae: 46d9 mov r9, fp 80167b0: 6926 ldr r6, [r4, #16] 80167b2: f104 0e14 add.w lr, r4, #20 80167b6: eb05 0887 add.w r8, r5, r7, lsl #2 80167ba: eb0e 0686 add.w r6, lr, r6, lsl #2 80167be: 9301 str r3, [sp, #4] 80167c0: 9b01 ldr r3, [sp, #4] 80167c2: f85e 0b04 ldr.w r0, [lr], #4 80167c6: f853 af04 ldr.w sl, [r3, #4]! 80167ca: b281 uxth r1, r0 80167cc: 9301 str r3, [sp, #4] 80167ce: fa1f f38a uxth.w r3, sl 80167d2: 1a5b subs r3, r3, r1 80167d4: 0c00 lsrs r0, r0, #16 80167d6: 4463 add r3, ip 80167d8: ebc0 401a rsb r0, r0, sl, lsr #16 80167dc: eb00 4023 add.w r0, r0, r3, asr #16 80167e0: b29b uxth r3, r3 80167e2: ea43 4300 orr.w r3, r3, r0, lsl #16 80167e6: 4576 cmp r6, lr 80167e8: ea4f 4c20 mov.w ip, r0, asr #16 80167ec: f849 3b04 str.w r3, [r9], #4 80167f0: d8e6 bhi.n 80167c0 <__mdiff+0x88> 80167f2: 1b33 subs r3, r6, r4 80167f4: 3b15 subs r3, #21 80167f6: f023 0303 bic.w r3, r3, #3 80167fa: 3415 adds r4, #21 80167fc: 3304 adds r3, #4 80167fe: 42a6 cmp r6, r4 8016800: bf38 it cc 8016802: 2304 movcc r3, #4 8016804: 441d add r5, r3 8016806: 445b add r3, fp 8016808: 461e mov r6, r3 801680a: 462c mov r4, r5 801680c: 4544 cmp r4, r8 801680e: d30e bcc.n 801682e <__mdiff+0xf6> 8016810: f108 0103 add.w r1, r8, #3 8016814: 1b49 subs r1, r1, r5 8016816: f021 0103 bic.w r1, r1, #3 801681a: 3d03 subs r5, #3 801681c: 45a8 cmp r8, r5 801681e: bf38 it cc 8016820: 2100 movcc r1, #0 8016822: 440b add r3, r1 8016824: f853 1d04 ldr.w r1, [r3, #-4]! 8016828: b199 cbz r1, 8016852 <__mdiff+0x11a> 801682a: 6117 str r7, [r2, #16] 801682c: e79e b.n 801676c <__mdiff+0x34> 801682e: 46e6 mov lr, ip 8016830: f854 1b04 ldr.w r1, [r4], #4 8016834: fa1f fc81 uxth.w ip, r1 8016838: 44f4 add ip, lr 801683a: 0c08 lsrs r0, r1, #16 801683c: 4471 add r1, lr 801683e: eb00 402c add.w r0, r0, ip, asr #16 8016842: b289 uxth r1, r1 8016844: ea41 4100 orr.w r1, r1, r0, lsl #16 8016848: ea4f 4c20 mov.w ip, r0, asr #16 801684c: f846 1b04 str.w r1, [r6], #4 8016850: e7dc b.n 801680c <__mdiff+0xd4> 8016852: 3f01 subs r7, #1 8016854: e7e6 b.n 8016824 <__mdiff+0xec> 8016856: bf00 nop 8016858: 08017a54 .word 0x08017a54 801685c: 08017a76 .word 0x08017a76 08016860 <__d2b>: 8016860: e92d 4373 stmdb sp!, {r0, r1, r4, r5, r6, r8, r9, lr} 8016864: 2101 movs r1, #1 8016866: 4690 mov r8, r2 8016868: 4699 mov r9, r3 801686a: 9e08 ldr r6, [sp, #32] 801686c: f7ff fcd6 bl 801621c <_Balloc> 8016870: 4604 mov r4, r0 8016872: b930 cbnz r0, 8016882 <__d2b+0x22> 8016874: 4602 mov r2, r0 8016876: f240 310f movw r1, #783 @ 0x30f 801687a: 4b23 ldr r3, [pc, #140] @ (8016908 <__d2b+0xa8>) 801687c: 4823 ldr r0, [pc, #140] @ (801690c <__d2b+0xac>) 801687e: f7fe fa5d bl 8014d3c <__assert_func> 8016882: f3c9 550a ubfx r5, r9, #20, #11 8016886: f3c9 0313 ubfx r3, r9, #0, #20 801688a: b10d cbz r5, 8016890 <__d2b+0x30> 801688c: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 8016890: 9301 str r3, [sp, #4] 8016892: f1b8 0300 subs.w r3, r8, #0 8016896: d024 beq.n 80168e2 <__d2b+0x82> 8016898: 4668 mov r0, sp 801689a: 9300 str r3, [sp, #0] 801689c: f7ff fd85 bl 80163aa <__lo0bits> 80168a0: e9dd 1200 ldrd r1, r2, [sp] 80168a4: b1d8 cbz r0, 80168de <__d2b+0x7e> 80168a6: f1c0 0320 rsb r3, r0, #32 80168aa: fa02 f303 lsl.w r3, r2, r3 80168ae: 430b orrs r3, r1 80168b0: 40c2 lsrs r2, r0 80168b2: 6163 str r3, [r4, #20] 80168b4: 9201 str r2, [sp, #4] 80168b6: 9b01 ldr r3, [sp, #4] 80168b8: 2b00 cmp r3, #0 80168ba: bf0c ite eq 80168bc: 2201 moveq r2, #1 80168be: 2202 movne r2, #2 80168c0: 61a3 str r3, [r4, #24] 80168c2: 6122 str r2, [r4, #16] 80168c4: b1ad cbz r5, 80168f2 <__d2b+0x92> 80168c6: f2a5 4533 subw r5, r5, #1075 @ 0x433 80168ca: 4405 add r5, r0 80168cc: 6035 str r5, [r6, #0] 80168ce: f1c0 0035 rsb r0, r0, #53 @ 0x35 80168d2: 9b09 ldr r3, [sp, #36] @ 0x24 80168d4: 6018 str r0, [r3, #0] 80168d6: 4620 mov r0, r4 80168d8: b002 add sp, #8 80168da: e8bd 8370 ldmia.w sp!, {r4, r5, r6, r8, r9, pc} 80168de: 6161 str r1, [r4, #20] 80168e0: e7e9 b.n 80168b6 <__d2b+0x56> 80168e2: a801 add r0, sp, #4 80168e4: f7ff fd61 bl 80163aa <__lo0bits> 80168e8: 9b01 ldr r3, [sp, #4] 80168ea: 2201 movs r2, #1 80168ec: 6163 str r3, [r4, #20] 80168ee: 3020 adds r0, #32 80168f0: e7e7 b.n 80168c2 <__d2b+0x62> 80168f2: f2a0 4032 subw r0, r0, #1074 @ 0x432 80168f6: eb04 0382 add.w r3, r4, r2, lsl #2 80168fa: 6030 str r0, [r6, #0] 80168fc: 6918 ldr r0, [r3, #16] 80168fe: f7ff fd35 bl 801636c <__hi0bits> 8016902: ebc0 1042 rsb r0, r0, r2, lsl #5 8016906: e7e4 b.n 80168d2 <__d2b+0x72> 8016908: 08017a54 .word 0x08017a54 801690c: 08017a76 .word 0x08017a76 08016910 <__sread>: 8016910: b510 push {r4, lr} 8016912: 460c mov r4, r1 8016914: f9b1 100e ldrsh.w r1, [r1, #14] 8016918: f000 f9b0 bl 8016c7c <_read_r> 801691c: 2800 cmp r0, #0 801691e: bfab itete ge 8016920: 6d63 ldrge r3, [r4, #84] @ 0x54 8016922: 89a3 ldrhlt r3, [r4, #12] 8016924: 181b addge r3, r3, r0 8016926: f423 5380 biclt.w r3, r3, #4096 @ 0x1000 801692a: bfac ite ge 801692c: 6563 strge r3, [r4, #84] @ 0x54 801692e: 81a3 strhlt r3, [r4, #12] 8016930: bd10 pop {r4, pc} 08016932 <__swrite>: 8016932: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 8016936: 461f mov r7, r3 8016938: 898b ldrh r3, [r1, #12] 801693a: 4605 mov r5, r0 801693c: 05db lsls r3, r3, #23 801693e: 460c mov r4, r1 8016940: 4616 mov r6, r2 8016942: d505 bpl.n 8016950 <__swrite+0x1e> 8016944: 2302 movs r3, #2 8016946: 2200 movs r2, #0 8016948: f9b1 100e ldrsh.w r1, [r1, #14] 801694c: f000 f984 bl 8016c58 <_lseek_r> 8016950: 89a3 ldrh r3, [r4, #12] 8016952: 4632 mov r2, r6 8016954: f423 5380 bic.w r3, r3, #4096 @ 0x1000 8016958: 81a3 strh r3, [r4, #12] 801695a: 4628 mov r0, r5 801695c: 463b mov r3, r7 801695e: f9b4 100e ldrsh.w r1, [r4, #14] 8016962: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 8016966: f000 b9ab b.w 8016cc0 <_write_r> 0801696a <__sseek>: 801696a: b510 push {r4, lr} 801696c: 460c mov r4, r1 801696e: f9b1 100e ldrsh.w r1, [r1, #14] 8016972: f000 f971 bl 8016c58 <_lseek_r> 8016976: 1c43 adds r3, r0, #1 8016978: 89a3 ldrh r3, [r4, #12] 801697a: bf15 itete ne 801697c: 6560 strne r0, [r4, #84] @ 0x54 801697e: f423 5380 biceq.w r3, r3, #4096 @ 0x1000 8016982: f443 5380 orrne.w r3, r3, #4096 @ 0x1000 8016986: 81a3 strheq r3, [r4, #12] 8016988: bf18 it ne 801698a: 81a3 strhne r3, [r4, #12] 801698c: bd10 pop {r4, pc} 0801698e <__sclose>: 801698e: f9b1 100e ldrsh.w r1, [r1, #14] 8016992: f000 b9a7 b.w 8016ce4 <_close_r> ... 08016998 : 8016998: b40e push {r1, r2, r3} 801699a: b503 push {r0, r1, lr} 801699c: 4601 mov r1, r0 801699e: ab03 add r3, sp, #12 80169a0: 4805 ldr r0, [pc, #20] @ (80169b8 ) 80169a2: f853 2b04 ldr.w r2, [r3], #4 80169a6: 6800 ldr r0, [r0, #0] 80169a8: 9301 str r3, [sp, #4] 80169aa: f7ff f9c1 bl 8015d30 <_vfiprintf_r> 80169ae: b002 add sp, #8 80169b0: f85d eb04 ldr.w lr, [sp], #4 80169b4: b003 add sp, #12 80169b6: 4770 bx lr 80169b8: 2000009c .word 0x2000009c 080169bc <_realloc_r>: 80169bc: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 80169c0: 4607 mov r7, r0 80169c2: 4614 mov r4, r2 80169c4: 460d mov r5, r1 80169c6: b921 cbnz r1, 80169d2 <_realloc_r+0x16> 80169c8: 4611 mov r1, r2 80169ca: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 80169ce: f7ff baf1 b.w 8015fb4 <_malloc_r> 80169d2: b92a cbnz r2, 80169e0 <_realloc_r+0x24> 80169d4: f000 f9c4 bl 8016d60 <_free_r> 80169d8: 4625 mov r5, r4 80169da: 4628 mov r0, r5 80169dc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 80169e0: f000 fa18 bl 8016e14 <_malloc_usable_size_r> 80169e4: 4284 cmp r4, r0 80169e6: 4606 mov r6, r0 80169e8: d802 bhi.n 80169f0 <_realloc_r+0x34> 80169ea: ebb4 0f50 cmp.w r4, r0, lsr #1 80169ee: d8f4 bhi.n 80169da <_realloc_r+0x1e> 80169f0: 4621 mov r1, r4 80169f2: 4638 mov r0, r7 80169f4: f7ff fade bl 8015fb4 <_malloc_r> 80169f8: 4680 mov r8, r0 80169fa: b908 cbnz r0, 8016a00 <_realloc_r+0x44> 80169fc: 4645 mov r5, r8 80169fe: e7ec b.n 80169da <_realloc_r+0x1e> 8016a00: 42b4 cmp r4, r6 8016a02: 4622 mov r2, r4 8016a04: 4629 mov r1, r5 8016a06: bf28 it cs 8016a08: 4632 movcs r2, r6 8016a0a: f7fe f989 bl 8014d20 8016a0e: 4629 mov r1, r5 8016a10: 4638 mov r0, r7 8016a12: f000 f9a5 bl 8016d60 <_free_r> 8016a16: e7f1 b.n 80169fc <_realloc_r+0x40> 08016a18 <__swbuf_r>: 8016a18: b5f8 push {r3, r4, r5, r6, r7, lr} 8016a1a: 460e mov r6, r1 8016a1c: 4614 mov r4, r2 8016a1e: 4605 mov r5, r0 8016a20: b118 cbz r0, 8016a2a <__swbuf_r+0x12> 8016a22: 6a03 ldr r3, [r0, #32] 8016a24: b90b cbnz r3, 8016a2a <__swbuf_r+0x12> 8016a26: f7fe f8af bl 8014b88 <__sinit> 8016a2a: 69a3 ldr r3, [r4, #24] 8016a2c: 60a3 str r3, [r4, #8] 8016a2e: 89a3 ldrh r3, [r4, #12] 8016a30: 071a lsls r2, r3, #28 8016a32: d501 bpl.n 8016a38 <__swbuf_r+0x20> 8016a34: 6923 ldr r3, [r4, #16] 8016a36: b943 cbnz r3, 8016a4a <__swbuf_r+0x32> 8016a38: 4621 mov r1, r4 8016a3a: 4628 mov r0, r5 8016a3c: f000 f82a bl 8016a94 <__swsetup_r> 8016a40: b118 cbz r0, 8016a4a <__swbuf_r+0x32> 8016a42: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff 8016a46: 4638 mov r0, r7 8016a48: bdf8 pop {r3, r4, r5, r6, r7, pc} 8016a4a: 6823 ldr r3, [r4, #0] 8016a4c: 6922 ldr r2, [r4, #16] 8016a4e: b2f6 uxtb r6, r6 8016a50: 1a98 subs r0, r3, r2 8016a52: 6963 ldr r3, [r4, #20] 8016a54: 4637 mov r7, r6 8016a56: 4283 cmp r3, r0 8016a58: dc05 bgt.n 8016a66 <__swbuf_r+0x4e> 8016a5a: 4621 mov r1, r4 8016a5c: 4628 mov r0, r5 8016a5e: f7ff fba9 bl 80161b4 <_fflush_r> 8016a62: 2800 cmp r0, #0 8016a64: d1ed bne.n 8016a42 <__swbuf_r+0x2a> 8016a66: 68a3 ldr r3, [r4, #8] 8016a68: 3b01 subs r3, #1 8016a6a: 60a3 str r3, [r4, #8] 8016a6c: 6823 ldr r3, [r4, #0] 8016a6e: 1c5a adds r2, r3, #1 8016a70: 6022 str r2, [r4, #0] 8016a72: 701e strb r6, [r3, #0] 8016a74: 6962 ldr r2, [r4, #20] 8016a76: 1c43 adds r3, r0, #1 8016a78: 429a cmp r2, r3 8016a7a: d004 beq.n 8016a86 <__swbuf_r+0x6e> 8016a7c: 89a3 ldrh r3, [r4, #12] 8016a7e: 07db lsls r3, r3, #31 8016a80: d5e1 bpl.n 8016a46 <__swbuf_r+0x2e> 8016a82: 2e0a cmp r6, #10 8016a84: d1df bne.n 8016a46 <__swbuf_r+0x2e> 8016a86: 4621 mov r1, r4 8016a88: 4628 mov r0, r5 8016a8a: f7ff fb93 bl 80161b4 <_fflush_r> 8016a8e: 2800 cmp r0, #0 8016a90: d0d9 beq.n 8016a46 <__swbuf_r+0x2e> 8016a92: e7d6 b.n 8016a42 <__swbuf_r+0x2a> 08016a94 <__swsetup_r>: 8016a94: b538 push {r3, r4, r5, lr} 8016a96: 4b29 ldr r3, [pc, #164] @ (8016b3c <__swsetup_r+0xa8>) 8016a98: 4605 mov r5, r0 8016a9a: 6818 ldr r0, [r3, #0] 8016a9c: 460c mov r4, r1 8016a9e: b118 cbz r0, 8016aa8 <__swsetup_r+0x14> 8016aa0: 6a03 ldr r3, [r0, #32] 8016aa2: b90b cbnz r3, 8016aa8 <__swsetup_r+0x14> 8016aa4: f7fe f870 bl 8014b88 <__sinit> 8016aa8: f9b4 300c ldrsh.w r3, [r4, #12] 8016aac: 0719 lsls r1, r3, #28 8016aae: d422 bmi.n 8016af6 <__swsetup_r+0x62> 8016ab0: 06da lsls r2, r3, #27 8016ab2: d407 bmi.n 8016ac4 <__swsetup_r+0x30> 8016ab4: 2209 movs r2, #9 8016ab6: 602a str r2, [r5, #0] 8016ab8: f043 0340 orr.w r3, r3, #64 @ 0x40 8016abc: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8016ac0: 81a3 strh r3, [r4, #12] 8016ac2: e033 b.n 8016b2c <__swsetup_r+0x98> 8016ac4: 0758 lsls r0, r3, #29 8016ac6: d512 bpl.n 8016aee <__swsetup_r+0x5a> 8016ac8: 6b61 ldr r1, [r4, #52] @ 0x34 8016aca: b141 cbz r1, 8016ade <__swsetup_r+0x4a> 8016acc: f104 0344 add.w r3, r4, #68 @ 0x44 8016ad0: 4299 cmp r1, r3 8016ad2: d002 beq.n 8016ada <__swsetup_r+0x46> 8016ad4: 4628 mov r0, r5 8016ad6: f000 f943 bl 8016d60 <_free_r> 8016ada: 2300 movs r3, #0 8016adc: 6363 str r3, [r4, #52] @ 0x34 8016ade: 89a3 ldrh r3, [r4, #12] 8016ae0: f023 0324 bic.w r3, r3, #36 @ 0x24 8016ae4: 81a3 strh r3, [r4, #12] 8016ae6: 2300 movs r3, #0 8016ae8: 6063 str r3, [r4, #4] 8016aea: 6923 ldr r3, [r4, #16] 8016aec: 6023 str r3, [r4, #0] 8016aee: 89a3 ldrh r3, [r4, #12] 8016af0: f043 0308 orr.w r3, r3, #8 8016af4: 81a3 strh r3, [r4, #12] 8016af6: 6923 ldr r3, [r4, #16] 8016af8: b94b cbnz r3, 8016b0e <__swsetup_r+0x7a> 8016afa: 89a3 ldrh r3, [r4, #12] 8016afc: f403 7320 and.w r3, r3, #640 @ 0x280 8016b00: f5b3 7f00 cmp.w r3, #512 @ 0x200 8016b04: d003 beq.n 8016b0e <__swsetup_r+0x7a> 8016b06: 4621 mov r1, r4 8016b08: 4628 mov r0, r5 8016b0a: f000 f83e bl 8016b8a <__smakebuf_r> 8016b0e: f9b4 300c ldrsh.w r3, [r4, #12] 8016b12: f013 0201 ands.w r2, r3, #1 8016b16: d00a beq.n 8016b2e <__swsetup_r+0x9a> 8016b18: 2200 movs r2, #0 8016b1a: 60a2 str r2, [r4, #8] 8016b1c: 6962 ldr r2, [r4, #20] 8016b1e: 4252 negs r2, r2 8016b20: 61a2 str r2, [r4, #24] 8016b22: 6922 ldr r2, [r4, #16] 8016b24: b942 cbnz r2, 8016b38 <__swsetup_r+0xa4> 8016b26: f013 0080 ands.w r0, r3, #128 @ 0x80 8016b2a: d1c5 bne.n 8016ab8 <__swsetup_r+0x24> 8016b2c: bd38 pop {r3, r4, r5, pc} 8016b2e: 0799 lsls r1, r3, #30 8016b30: bf58 it pl 8016b32: 6962 ldrpl r2, [r4, #20] 8016b34: 60a2 str r2, [r4, #8] 8016b36: e7f4 b.n 8016b22 <__swsetup_r+0x8e> 8016b38: 2000 movs r0, #0 8016b3a: e7f7 b.n 8016b2c <__swsetup_r+0x98> 8016b3c: 2000009c .word 0x2000009c 08016b40 <__swhatbuf_r>: 8016b40: b570 push {r4, r5, r6, lr} 8016b42: 460c mov r4, r1 8016b44: f9b1 100e ldrsh.w r1, [r1, #14] 8016b48: 4615 mov r5, r2 8016b4a: 2900 cmp r1, #0 8016b4c: 461e mov r6, r3 8016b4e: b096 sub sp, #88 @ 0x58 8016b50: da0c bge.n 8016b6c <__swhatbuf_r+0x2c> 8016b52: 89a3 ldrh r3, [r4, #12] 8016b54: 2100 movs r1, #0 8016b56: f013 0f80 tst.w r3, #128 @ 0x80 8016b5a: bf14 ite ne 8016b5c: 2340 movne r3, #64 @ 0x40 8016b5e: f44f 6380 moveq.w r3, #1024 @ 0x400 8016b62: 2000 movs r0, #0 8016b64: 6031 str r1, [r6, #0] 8016b66: 602b str r3, [r5, #0] 8016b68: b016 add sp, #88 @ 0x58 8016b6a: bd70 pop {r4, r5, r6, pc} 8016b6c: 466a mov r2, sp 8016b6e: f000 f8c9 bl 8016d04 <_fstat_r> 8016b72: 2800 cmp r0, #0 8016b74: dbed blt.n 8016b52 <__swhatbuf_r+0x12> 8016b76: 9901 ldr r1, [sp, #4] 8016b78: f401 4170 and.w r1, r1, #61440 @ 0xf000 8016b7c: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000 8016b80: 4259 negs r1, r3 8016b82: 4159 adcs r1, r3 8016b84: f44f 6380 mov.w r3, #1024 @ 0x400 8016b88: e7eb b.n 8016b62 <__swhatbuf_r+0x22> 08016b8a <__smakebuf_r>: 8016b8a: 898b ldrh r3, [r1, #12] 8016b8c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8016b8e: 079d lsls r5, r3, #30 8016b90: 4606 mov r6, r0 8016b92: 460c mov r4, r1 8016b94: d507 bpl.n 8016ba6 <__smakebuf_r+0x1c> 8016b96: f104 0347 add.w r3, r4, #71 @ 0x47 8016b9a: 6023 str r3, [r4, #0] 8016b9c: 6123 str r3, [r4, #16] 8016b9e: 2301 movs r3, #1 8016ba0: 6163 str r3, [r4, #20] 8016ba2: b003 add sp, #12 8016ba4: bdf0 pop {r4, r5, r6, r7, pc} 8016ba6: 466a mov r2, sp 8016ba8: ab01 add r3, sp, #4 8016baa: f7ff ffc9 bl 8016b40 <__swhatbuf_r> 8016bae: 9f00 ldr r7, [sp, #0] 8016bb0: 4605 mov r5, r0 8016bb2: 4639 mov r1, r7 8016bb4: 4630 mov r0, r6 8016bb6: f7ff f9fd bl 8015fb4 <_malloc_r> 8016bba: b948 cbnz r0, 8016bd0 <__smakebuf_r+0x46> 8016bbc: f9b4 300c ldrsh.w r3, [r4, #12] 8016bc0: 059a lsls r2, r3, #22 8016bc2: d4ee bmi.n 8016ba2 <__smakebuf_r+0x18> 8016bc4: f023 0303 bic.w r3, r3, #3 8016bc8: f043 0302 orr.w r3, r3, #2 8016bcc: 81a3 strh r3, [r4, #12] 8016bce: e7e2 b.n 8016b96 <__smakebuf_r+0xc> 8016bd0: 89a3 ldrh r3, [r4, #12] 8016bd2: e9c4 0704 strd r0, r7, [r4, #16] 8016bd6: f043 0380 orr.w r3, r3, #128 @ 0x80 8016bda: 81a3 strh r3, [r4, #12] 8016bdc: 9b01 ldr r3, [sp, #4] 8016bde: 6020 str r0, [r4, #0] 8016be0: b15b cbz r3, 8016bfa <__smakebuf_r+0x70> 8016be2: 4630 mov r0, r6 8016be4: f9b4 100e ldrsh.w r1, [r4, #14] 8016be8: f000 f826 bl 8016c38 <_isatty_r> 8016bec: b128 cbz r0, 8016bfa <__smakebuf_r+0x70> 8016bee: 89a3 ldrh r3, [r4, #12] 8016bf0: f023 0303 bic.w r3, r3, #3 8016bf4: f043 0301 orr.w r3, r3, #1 8016bf8: 81a3 strh r3, [r4, #12] 8016bfa: 89a3 ldrh r3, [r4, #12] 8016bfc: 431d orrs r5, r3 8016bfe: 81a5 strh r5, [r4, #12] 8016c00: e7cf b.n 8016ba2 <__smakebuf_r+0x18> 08016c02 : 8016c02: 4288 cmp r0, r1 8016c04: b510 push {r4, lr} 8016c06: eb01 0402 add.w r4, r1, r2 8016c0a: d902 bls.n 8016c12 8016c0c: 4284 cmp r4, r0 8016c0e: 4623 mov r3, r4 8016c10: d807 bhi.n 8016c22 8016c12: 1e43 subs r3, r0, #1 8016c14: 42a1 cmp r1, r4 8016c16: d008 beq.n 8016c2a 8016c18: f811 2b01 ldrb.w r2, [r1], #1 8016c1c: f803 2f01 strb.w r2, [r3, #1]! 8016c20: e7f8 b.n 8016c14 8016c22: 4601 mov r1, r0 8016c24: 4402 add r2, r0 8016c26: 428a cmp r2, r1 8016c28: d100 bne.n 8016c2c 8016c2a: bd10 pop {r4, pc} 8016c2c: f813 4d01 ldrb.w r4, [r3, #-1]! 8016c30: f802 4d01 strb.w r4, [r2, #-1]! 8016c34: e7f7 b.n 8016c26 ... 08016c38 <_isatty_r>: 8016c38: b538 push {r3, r4, r5, lr} 8016c3a: 2300 movs r3, #0 8016c3c: 4d05 ldr r5, [pc, #20] @ (8016c54 <_isatty_r+0x1c>) 8016c3e: 4604 mov r4, r0 8016c40: 4608 mov r0, r1 8016c42: 602b str r3, [r5, #0] 8016c44: f7f6 fe27 bl 800d896 <_isatty> 8016c48: 1c43 adds r3, r0, #1 8016c4a: d102 bne.n 8016c52 <_isatty_r+0x1a> 8016c4c: 682b ldr r3, [r5, #0] 8016c4e: b103 cbz r3, 8016c52 <_isatty_r+0x1a> 8016c50: 6023 str r3, [r4, #0] 8016c52: bd38 pop {r3, r4, r5, pc} 8016c54: 200015e0 .word 0x200015e0 08016c58 <_lseek_r>: 8016c58: b538 push {r3, r4, r5, lr} 8016c5a: 4604 mov r4, r0 8016c5c: 4608 mov r0, r1 8016c5e: 4611 mov r1, r2 8016c60: 2200 movs r2, #0 8016c62: 4d05 ldr r5, [pc, #20] @ (8016c78 <_lseek_r+0x20>) 8016c64: 602a str r2, [r5, #0] 8016c66: 461a mov r2, r3 8016c68: f7f6 fe1f bl 800d8aa <_lseek> 8016c6c: 1c43 adds r3, r0, #1 8016c6e: d102 bne.n 8016c76 <_lseek_r+0x1e> 8016c70: 682b ldr r3, [r5, #0] 8016c72: b103 cbz r3, 8016c76 <_lseek_r+0x1e> 8016c74: 6023 str r3, [r4, #0] 8016c76: bd38 pop {r3, r4, r5, pc} 8016c78: 200015e0 .word 0x200015e0 08016c7c <_read_r>: 8016c7c: b538 push {r3, r4, r5, lr} 8016c7e: 4604 mov r4, r0 8016c80: 4608 mov r0, r1 8016c82: 4611 mov r1, r2 8016c84: 2200 movs r2, #0 8016c86: 4d05 ldr r5, [pc, #20] @ (8016c9c <_read_r+0x20>) 8016c88: 602a str r2, [r5, #0] 8016c8a: 461a mov r2, r3 8016c8c: f7f6 fdcc bl 800d828 <_read> 8016c90: 1c43 adds r3, r0, #1 8016c92: d102 bne.n 8016c9a <_read_r+0x1e> 8016c94: 682b ldr r3, [r5, #0] 8016c96: b103 cbz r3, 8016c9a <_read_r+0x1e> 8016c98: 6023 str r3, [r4, #0] 8016c9a: bd38 pop {r3, r4, r5, pc} 8016c9c: 200015e0 .word 0x200015e0 08016ca0 <_sbrk_r>: 8016ca0: b538 push {r3, r4, r5, lr} 8016ca2: 2300 movs r3, #0 8016ca4: 4d05 ldr r5, [pc, #20] @ (8016cbc <_sbrk_r+0x1c>) 8016ca6: 4604 mov r4, r0 8016ca8: 4608 mov r0, r1 8016caa: 602b str r3, [r5, #0] 8016cac: f7f6 fe0a bl 800d8c4 <_sbrk> 8016cb0: 1c43 adds r3, r0, #1 8016cb2: d102 bne.n 8016cba <_sbrk_r+0x1a> 8016cb4: 682b ldr r3, [r5, #0] 8016cb6: b103 cbz r3, 8016cba <_sbrk_r+0x1a> 8016cb8: 6023 str r3, [r4, #0] 8016cba: bd38 pop {r3, r4, r5, pc} 8016cbc: 200015e0 .word 0x200015e0 08016cc0 <_write_r>: 8016cc0: b538 push {r3, r4, r5, lr} 8016cc2: 4604 mov r4, r0 8016cc4: 4608 mov r0, r1 8016cc6: 4611 mov r1, r2 8016cc8: 2200 movs r2, #0 8016cca: 4d05 ldr r5, [pc, #20] @ (8016ce0 <_write_r+0x20>) 8016ccc: 602a str r2, [r5, #0] 8016cce: 461a mov r2, r3 8016cd0: f7f3 fb30 bl 800a334 <_write> 8016cd4: 1c43 adds r3, r0, #1 8016cd6: d102 bne.n 8016cde <_write_r+0x1e> 8016cd8: 682b ldr r3, [r5, #0] 8016cda: b103 cbz r3, 8016cde <_write_r+0x1e> 8016cdc: 6023 str r3, [r4, #0] 8016cde: bd38 pop {r3, r4, r5, pc} 8016ce0: 200015e0 .word 0x200015e0 08016ce4 <_close_r>: 8016ce4: b538 push {r3, r4, r5, lr} 8016ce6: 2300 movs r3, #0 8016ce8: 4d05 ldr r5, [pc, #20] @ (8016d00 <_close_r+0x1c>) 8016cea: 4604 mov r4, r0 8016cec: 4608 mov r0, r1 8016cee: 602b str r3, [r5, #0] 8016cf0: f7f6 fdb7 bl 800d862 <_close> 8016cf4: 1c43 adds r3, r0, #1 8016cf6: d102 bne.n 8016cfe <_close_r+0x1a> 8016cf8: 682b ldr r3, [r5, #0] 8016cfa: b103 cbz r3, 8016cfe <_close_r+0x1a> 8016cfc: 6023 str r3, [r4, #0] 8016cfe: bd38 pop {r3, r4, r5, pc} 8016d00: 200015e0 .word 0x200015e0 08016d04 <_fstat_r>: 8016d04: b538 push {r3, r4, r5, lr} 8016d06: 2300 movs r3, #0 8016d08: 4d06 ldr r5, [pc, #24] @ (8016d24 <_fstat_r+0x20>) 8016d0a: 4604 mov r4, r0 8016d0c: 4608 mov r0, r1 8016d0e: 4611 mov r1, r2 8016d10: 602b str r3, [r5, #0] 8016d12: f7f6 fdb1 bl 800d878 <_fstat> 8016d16: 1c43 adds r3, r0, #1 8016d18: d102 bne.n 8016d20 <_fstat_r+0x1c> 8016d1a: 682b ldr r3, [r5, #0] 8016d1c: b103 cbz r3, 8016d20 <_fstat_r+0x1c> 8016d1e: 6023 str r3, [r4, #0] 8016d20: bd38 pop {r3, r4, r5, pc} 8016d22: bf00 nop 8016d24: 200015e0 .word 0x200015e0 08016d28 : 8016d28: 2006 movs r0, #6 8016d2a: b508 push {r3, lr} 8016d2c: f000 f8b0 bl 8016e90 8016d30: 2001 movs r0, #1 8016d32: f7f6 fd6e bl 800d812 <_exit> 08016d36 <_calloc_r>: 8016d36: b570 push {r4, r5, r6, lr} 8016d38: fba1 5402 umull r5, r4, r1, r2 8016d3c: b934 cbnz r4, 8016d4c <_calloc_r+0x16> 8016d3e: 4629 mov r1, r5 8016d40: f7ff f938 bl 8015fb4 <_malloc_r> 8016d44: 4606 mov r6, r0 8016d46: b928 cbnz r0, 8016d54 <_calloc_r+0x1e> 8016d48: 4630 mov r0, r6 8016d4a: bd70 pop {r4, r5, r6, pc} 8016d4c: 220c movs r2, #12 8016d4e: 2600 movs r6, #0 8016d50: 6002 str r2, [r0, #0] 8016d52: e7f9 b.n 8016d48 <_calloc_r+0x12> 8016d54: 462a mov r2, r5 8016d56: 4621 mov r1, r4 8016d58: f7fd ff9a bl 8014c90 8016d5c: e7f4 b.n 8016d48 <_calloc_r+0x12> ... 08016d60 <_free_r>: 8016d60: b538 push {r3, r4, r5, lr} 8016d62: 4605 mov r5, r0 8016d64: 2900 cmp r1, #0 8016d66: d040 beq.n 8016dea <_free_r+0x8a> 8016d68: f851 3c04 ldr.w r3, [r1, #-4] 8016d6c: 1f0c subs r4, r1, #4 8016d6e: 2b00 cmp r3, #0 8016d70: bfb8 it lt 8016d72: 18e4 addlt r4, r4, r3 8016d74: f7ff fa46 bl 8016204 <__malloc_lock> 8016d78: 4a1c ldr r2, [pc, #112] @ (8016dec <_free_r+0x8c>) 8016d7a: 6813 ldr r3, [r2, #0] 8016d7c: b933 cbnz r3, 8016d8c <_free_r+0x2c> 8016d7e: 6063 str r3, [r4, #4] 8016d80: 6014 str r4, [r2, #0] 8016d82: 4628 mov r0, r5 8016d84: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 8016d88: f7ff ba42 b.w 8016210 <__malloc_unlock> 8016d8c: 42a3 cmp r3, r4 8016d8e: d908 bls.n 8016da2 <_free_r+0x42> 8016d90: 6820 ldr r0, [r4, #0] 8016d92: 1821 adds r1, r4, r0 8016d94: 428b cmp r3, r1 8016d96: bf01 itttt eq 8016d98: 6819 ldreq r1, [r3, #0] 8016d9a: 685b ldreq r3, [r3, #4] 8016d9c: 1809 addeq r1, r1, r0 8016d9e: 6021 streq r1, [r4, #0] 8016da0: e7ed b.n 8016d7e <_free_r+0x1e> 8016da2: 461a mov r2, r3 8016da4: 685b ldr r3, [r3, #4] 8016da6: b10b cbz r3, 8016dac <_free_r+0x4c> 8016da8: 42a3 cmp r3, r4 8016daa: d9fa bls.n 8016da2 <_free_r+0x42> 8016dac: 6811 ldr r1, [r2, #0] 8016dae: 1850 adds r0, r2, r1 8016db0: 42a0 cmp r0, r4 8016db2: d10b bne.n 8016dcc <_free_r+0x6c> 8016db4: 6820 ldr r0, [r4, #0] 8016db6: 4401 add r1, r0 8016db8: 1850 adds r0, r2, r1 8016dba: 4283 cmp r3, r0 8016dbc: 6011 str r1, [r2, #0] 8016dbe: d1e0 bne.n 8016d82 <_free_r+0x22> 8016dc0: 6818 ldr r0, [r3, #0] 8016dc2: 685b ldr r3, [r3, #4] 8016dc4: 4408 add r0, r1 8016dc6: 6010 str r0, [r2, #0] 8016dc8: 6053 str r3, [r2, #4] 8016dca: e7da b.n 8016d82 <_free_r+0x22> 8016dcc: d902 bls.n 8016dd4 <_free_r+0x74> 8016dce: 230c movs r3, #12 8016dd0: 602b str r3, [r5, #0] 8016dd2: e7d6 b.n 8016d82 <_free_r+0x22> 8016dd4: 6820 ldr r0, [r4, #0] 8016dd6: 1821 adds r1, r4, r0 8016dd8: 428b cmp r3, r1 8016dda: bf01 itttt eq 8016ddc: 6819 ldreq r1, [r3, #0] 8016dde: 685b ldreq r3, [r3, #4] 8016de0: 1809 addeq r1, r1, r0 8016de2: 6021 streq r1, [r4, #0] 8016de4: 6063 str r3, [r4, #4] 8016de6: 6054 str r4, [r2, #4] 8016de8: e7cb b.n 8016d82 <_free_r+0x22> 8016dea: bd38 pop {r3, r4, r5, pc} 8016dec: 200015dc .word 0x200015dc 08016df0 <__ascii_mbtowc>: 8016df0: b082 sub sp, #8 8016df2: b901 cbnz r1, 8016df6 <__ascii_mbtowc+0x6> 8016df4: a901 add r1, sp, #4 8016df6: b142 cbz r2, 8016e0a <__ascii_mbtowc+0x1a> 8016df8: b14b cbz r3, 8016e0e <__ascii_mbtowc+0x1e> 8016dfa: 7813 ldrb r3, [r2, #0] 8016dfc: 600b str r3, [r1, #0] 8016dfe: 7812 ldrb r2, [r2, #0] 8016e00: 1e10 subs r0, r2, #0 8016e02: bf18 it ne 8016e04: 2001 movne r0, #1 8016e06: b002 add sp, #8 8016e08: 4770 bx lr 8016e0a: 4610 mov r0, r2 8016e0c: e7fb b.n 8016e06 <__ascii_mbtowc+0x16> 8016e0e: f06f 0001 mvn.w r0, #1 8016e12: e7f8 b.n 8016e06 <__ascii_mbtowc+0x16> 08016e14 <_malloc_usable_size_r>: 8016e14: f851 3c04 ldr.w r3, [r1, #-4] 8016e18: 1f18 subs r0, r3, #4 8016e1a: 2b00 cmp r3, #0 8016e1c: bfbc itt lt 8016e1e: 580b ldrlt r3, [r1, r0] 8016e20: 18c0 addlt r0, r0, r3 8016e22: 4770 bx lr 08016e24 <__ascii_wctomb>: 8016e24: 4603 mov r3, r0 8016e26: 4608 mov r0, r1 8016e28: b141 cbz r1, 8016e3c <__ascii_wctomb+0x18> 8016e2a: 2aff cmp r2, #255 @ 0xff 8016e2c: d904 bls.n 8016e38 <__ascii_wctomb+0x14> 8016e2e: 228a movs r2, #138 @ 0x8a 8016e30: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8016e34: 601a str r2, [r3, #0] 8016e36: 4770 bx lr 8016e38: 2001 movs r0, #1 8016e3a: 700a strb r2, [r1, #0] 8016e3c: 4770 bx lr 08016e3e <_raise_r>: 8016e3e: 291f cmp r1, #31 8016e40: b538 push {r3, r4, r5, lr} 8016e42: 4605 mov r5, r0 8016e44: 460c mov r4, r1 8016e46: d904 bls.n 8016e52 <_raise_r+0x14> 8016e48: 2316 movs r3, #22 8016e4a: 6003 str r3, [r0, #0] 8016e4c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff 8016e50: bd38 pop {r3, r4, r5, pc} 8016e52: 6bc2 ldr r2, [r0, #60] @ 0x3c 8016e54: b112 cbz r2, 8016e5c <_raise_r+0x1e> 8016e56: f852 3021 ldr.w r3, [r2, r1, lsl #2] 8016e5a: b94b cbnz r3, 8016e70 <_raise_r+0x32> 8016e5c: 4628 mov r0, r5 8016e5e: f000 f831 bl 8016ec4 <_getpid_r> 8016e62: 4622 mov r2, r4 8016e64: 4601 mov r1, r0 8016e66: 4628 mov r0, r5 8016e68: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 8016e6c: f000 b818 b.w 8016ea0 <_kill_r> 8016e70: 2b01 cmp r3, #1 8016e72: d00a beq.n 8016e8a <_raise_r+0x4c> 8016e74: 1c59 adds r1, r3, #1 8016e76: d103 bne.n 8016e80 <_raise_r+0x42> 8016e78: 2316 movs r3, #22 8016e7a: 6003 str r3, [r0, #0] 8016e7c: 2001 movs r0, #1 8016e7e: e7e7 b.n 8016e50 <_raise_r+0x12> 8016e80: 2100 movs r1, #0 8016e82: 4620 mov r0, r4 8016e84: f842 1024 str.w r1, [r2, r4, lsl #2] 8016e88: 4798 blx r3 8016e8a: 2000 movs r0, #0 8016e8c: e7e0 b.n 8016e50 <_raise_r+0x12> ... 08016e90 : 8016e90: 4b02 ldr r3, [pc, #8] @ (8016e9c ) 8016e92: 4601 mov r1, r0 8016e94: 6818 ldr r0, [r3, #0] 8016e96: f7ff bfd2 b.w 8016e3e <_raise_r> 8016e9a: bf00 nop 8016e9c: 2000009c .word 0x2000009c 08016ea0 <_kill_r>: 8016ea0: b538 push {r3, r4, r5, lr} 8016ea2: 2300 movs r3, #0 8016ea4: 4d06 ldr r5, [pc, #24] @ (8016ec0 <_kill_r+0x20>) 8016ea6: 4604 mov r4, r0 8016ea8: 4608 mov r0, r1 8016eaa: 4611 mov r1, r2 8016eac: 602b str r3, [r5, #0] 8016eae: f7f6 fca0 bl 800d7f2 <_kill> 8016eb2: 1c43 adds r3, r0, #1 8016eb4: d102 bne.n 8016ebc <_kill_r+0x1c> 8016eb6: 682b ldr r3, [r5, #0] 8016eb8: b103 cbz r3, 8016ebc <_kill_r+0x1c> 8016eba: 6023 str r3, [r4, #0] 8016ebc: bd38 pop {r3, r4, r5, pc} 8016ebe: bf00 nop 8016ec0: 200015e0 .word 0x200015e0 08016ec4 <_getpid_r>: 8016ec4: f7f6 bc8e b.w 800d7e4 <_getpid> 08016ec8 <_init>: 8016ec8: b5f8 push {r3, r4, r5, r6, r7, lr} 8016eca: bf00 nop 8016ecc: bcf8 pop {r3, r4, r5, r6, r7} 8016ece: bc08 pop {r3} 8016ed0: 469e mov lr, r3 8016ed2: 4770 bx lr 08016ed4 <_fini>: 8016ed4: b5f8 push {r3, r4, r5, r6, r7, lr} 8016ed6: bf00 nop 8016ed8: bcf8 pop {r3, r4, r5, r6, r7} 8016eda: bc08 pop {r3} 8016edc: 469e mov lr, r3 8016ede: 4770 bx lr