TTS_FT25.elf: file format elf32-littlearm Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000000c0 08000000 08000000 00001000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .text 00006210 080000c0 080000c0 000010c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .rodata 0000170c 080062d0 080062d0 000072d0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .ARM.extab 00000000 080079dc 080079dc 0000900c 2**0 CONTENTS, READONLY 4 .ARM 00000008 080079dc 080079dc 000089dc 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 .preinit_array 00000000 080079e4 080079e4 0000900c 2**0 CONTENTS, ALLOC, LOAD, DATA 6 .init_array 00000004 080079e4 080079e4 000089e4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .fini_array 00000004 080079e8 080079e8 000089e8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 8 .data 0000000c 20000000 080079ec 00009000 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .bss 000008a0 2000000c 080079f8 0000900c 2**2 ALLOC 10 ._user_heap_stack 00000604 200008ac 080079f8 000098ac 2**0 ALLOC 11 .ARM.attributes 00000028 00000000 00000000 0000900c 2**0 CONTENTS, READONLY 12 .debug_info 00009012 00000000 00000000 00009034 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 13 .debug_abbrev 00001bce 00000000 00000000 00012046 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 14 .debug_aranges 000008a0 00000000 00000000 00013c18 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS 15 .debug_rnglists 0000068c 00000000 00000000 000144b8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_macro 00018401 00000000 00000000 00014b44 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 17 .debug_line 0000c44a 00000000 00000000 0002cf45 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 18 .debug_str 00088c48 00000000 00000000 0003938f 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 19 .comment 00000043 00000000 00000000 000c1fd7 2**0 CONTENTS, READONLY 20 .debug_frame 000020bc 00000000 00000000 000c201c 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS 21 .debug_line_str 0000007f 00000000 00000000 000c40d8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: 080000c0 <__do_global_dtors_aux>: 80000c0: b510 push {r4, lr} 80000c2: 4c06 ldr r4, [pc, #24] @ (80000dc <__do_global_dtors_aux+0x1c>) 80000c4: 7823 ldrb r3, [r4, #0] 80000c6: 2b00 cmp r3, #0 80000c8: d107 bne.n 80000da <__do_global_dtors_aux+0x1a> 80000ca: 4b05 ldr r3, [pc, #20] @ (80000e0 <__do_global_dtors_aux+0x20>) 80000cc: 2b00 cmp r3, #0 80000ce: d002 beq.n 80000d6 <__do_global_dtors_aux+0x16> 80000d0: 4804 ldr r0, [pc, #16] @ (80000e4 <__do_global_dtors_aux+0x24>) 80000d2: e000 b.n 80000d6 <__do_global_dtors_aux+0x16> 80000d4: bf00 nop 80000d6: 2301 movs r3, #1 80000d8: 7023 strb r3, [r4, #0] 80000da: bd10 pop {r4, pc} 80000dc: 2000000c .word 0x2000000c 80000e0: 00000000 .word 0x00000000 80000e4: 080062b8 .word 0x080062b8 080000e8 : 80000e8: 4b04 ldr r3, [pc, #16] @ (80000fc ) 80000ea: b510 push {r4, lr} 80000ec: 2b00 cmp r3, #0 80000ee: d003 beq.n 80000f8 80000f0: 4903 ldr r1, [pc, #12] @ (8000100 ) 80000f2: 4804 ldr r0, [pc, #16] @ (8000104 ) 80000f4: e000 b.n 80000f8 80000f6: bf00 nop 80000f8: bd10 pop {r4, pc} 80000fa: 46c0 nop @ (mov r8, r8) 80000fc: 00000000 .word 0x00000000 8000100: 20000010 .word 0x20000010 8000104: 080062b8 .word 0x080062b8 08000108 <__udivsi3>: 8000108: 2200 movs r2, #0 800010a: 0843 lsrs r3, r0, #1 800010c: 428b cmp r3, r1 800010e: d374 bcc.n 80001fa <__udivsi3+0xf2> 8000110: 0903 lsrs r3, r0, #4 8000112: 428b cmp r3, r1 8000114: d35f bcc.n 80001d6 <__udivsi3+0xce> 8000116: 0a03 lsrs r3, r0, #8 8000118: 428b cmp r3, r1 800011a: d344 bcc.n 80001a6 <__udivsi3+0x9e> 800011c: 0b03 lsrs r3, r0, #12 800011e: 428b cmp r3, r1 8000120: d328 bcc.n 8000174 <__udivsi3+0x6c> 8000122: 0c03 lsrs r3, r0, #16 8000124: 428b cmp r3, r1 8000126: d30d bcc.n 8000144 <__udivsi3+0x3c> 8000128: 22ff movs r2, #255 @ 0xff 800012a: 0209 lsls r1, r1, #8 800012c: ba12 rev r2, r2 800012e: 0c03 lsrs r3, r0, #16 8000130: 428b cmp r3, r1 8000132: d302 bcc.n 800013a <__udivsi3+0x32> 8000134: 1212 asrs r2, r2, #8 8000136: 0209 lsls r1, r1, #8 8000138: d065 beq.n 8000206 <__udivsi3+0xfe> 800013a: 0b03 lsrs r3, r0, #12 800013c: 428b cmp r3, r1 800013e: d319 bcc.n 8000174 <__udivsi3+0x6c> 8000140: e000 b.n 8000144 <__udivsi3+0x3c> 8000142: 0a09 lsrs r1, r1, #8 8000144: 0bc3 lsrs r3, r0, #15 8000146: 428b cmp r3, r1 8000148: d301 bcc.n 800014e <__udivsi3+0x46> 800014a: 03cb lsls r3, r1, #15 800014c: 1ac0 subs r0, r0, r3 800014e: 4152 adcs r2, r2 8000150: 0b83 lsrs r3, r0, #14 8000152: 428b cmp r3, r1 8000154: d301 bcc.n 800015a <__udivsi3+0x52> 8000156: 038b lsls r3, r1, #14 8000158: 1ac0 subs r0, r0, r3 800015a: 4152 adcs r2, r2 800015c: 0b43 lsrs r3, r0, #13 800015e: 428b cmp r3, r1 8000160: d301 bcc.n 8000166 <__udivsi3+0x5e> 8000162: 034b lsls r3, r1, #13 8000164: 1ac0 subs r0, r0, r3 8000166: 4152 adcs r2, r2 8000168: 0b03 lsrs r3, r0, #12 800016a: 428b cmp r3, r1 800016c: d301 bcc.n 8000172 <__udivsi3+0x6a> 800016e: 030b lsls r3, r1, #12 8000170: 1ac0 subs r0, r0, r3 8000172: 4152 adcs r2, r2 8000174: 0ac3 lsrs r3, r0, #11 8000176: 428b cmp r3, r1 8000178: d301 bcc.n 800017e <__udivsi3+0x76> 800017a: 02cb lsls r3, r1, #11 800017c: 1ac0 subs r0, r0, r3 800017e: 4152 adcs r2, r2 8000180: 0a83 lsrs r3, r0, #10 8000182: 428b cmp r3, r1 8000184: d301 bcc.n 800018a <__udivsi3+0x82> 8000186: 028b lsls r3, r1, #10 8000188: 1ac0 subs r0, r0, r3 800018a: 4152 adcs r2, r2 800018c: 0a43 lsrs r3, r0, #9 800018e: 428b cmp r3, r1 8000190: d301 bcc.n 8000196 <__udivsi3+0x8e> 8000192: 024b lsls r3, r1, #9 8000194: 1ac0 subs r0, r0, r3 8000196: 4152 adcs r2, r2 8000198: 0a03 lsrs r3, r0, #8 800019a: 428b cmp r3, r1 800019c: d301 bcc.n 80001a2 <__udivsi3+0x9a> 800019e: 020b lsls r3, r1, #8 80001a0: 1ac0 subs r0, r0, r3 80001a2: 4152 adcs r2, r2 80001a4: d2cd bcs.n 8000142 <__udivsi3+0x3a> 80001a6: 09c3 lsrs r3, r0, #7 80001a8: 428b cmp r3, r1 80001aa: d301 bcc.n 80001b0 <__udivsi3+0xa8> 80001ac: 01cb lsls r3, r1, #7 80001ae: 1ac0 subs r0, r0, r3 80001b0: 4152 adcs r2, r2 80001b2: 0983 lsrs r3, r0, #6 80001b4: 428b cmp r3, r1 80001b6: d301 bcc.n 80001bc <__udivsi3+0xb4> 80001b8: 018b lsls r3, r1, #6 80001ba: 1ac0 subs r0, r0, r3 80001bc: 4152 adcs r2, r2 80001be: 0943 lsrs r3, r0, #5 80001c0: 428b cmp r3, r1 80001c2: d301 bcc.n 80001c8 <__udivsi3+0xc0> 80001c4: 014b lsls r3, r1, #5 80001c6: 1ac0 subs r0, r0, r3 80001c8: 4152 adcs r2, r2 80001ca: 0903 lsrs r3, r0, #4 80001cc: 428b cmp r3, r1 80001ce: d301 bcc.n 80001d4 <__udivsi3+0xcc> 80001d0: 010b lsls r3, r1, #4 80001d2: 1ac0 subs r0, r0, r3 80001d4: 4152 adcs r2, r2 80001d6: 08c3 lsrs r3, r0, #3 80001d8: 428b cmp r3, r1 80001da: d301 bcc.n 80001e0 <__udivsi3+0xd8> 80001dc: 00cb lsls r3, r1, #3 80001de: 1ac0 subs r0, r0, r3 80001e0: 4152 adcs r2, r2 80001e2: 0883 lsrs r3, r0, #2 80001e4: 428b cmp r3, r1 80001e6: d301 bcc.n 80001ec <__udivsi3+0xe4> 80001e8: 008b lsls r3, r1, #2 80001ea: 1ac0 subs r0, r0, r3 80001ec: 4152 adcs r2, r2 80001ee: 0843 lsrs r3, r0, #1 80001f0: 428b cmp r3, r1 80001f2: d301 bcc.n 80001f8 <__udivsi3+0xf0> 80001f4: 004b lsls r3, r1, #1 80001f6: 1ac0 subs r0, r0, r3 80001f8: 4152 adcs r2, r2 80001fa: 1a41 subs r1, r0, r1 80001fc: d200 bcs.n 8000200 <__udivsi3+0xf8> 80001fe: 4601 mov r1, r0 8000200: 4152 adcs r2, r2 8000202: 4610 mov r0, r2 8000204: 4770 bx lr 8000206: e7ff b.n 8000208 <__udivsi3+0x100> 8000208: b501 push {r0, lr} 800020a: 2000 movs r0, #0 800020c: f000 f8f0 bl 80003f0 <__aeabi_idiv0> 8000210: bd02 pop {r1, pc} 8000212: 46c0 nop @ (mov r8, r8) 08000214 <__aeabi_uidivmod>: 8000214: 2900 cmp r1, #0 8000216: d0f7 beq.n 8000208 <__udivsi3+0x100> 8000218: e776 b.n 8000108 <__udivsi3> 800021a: 4770 bx lr 0800021c <__divsi3>: 800021c: 4603 mov r3, r0 800021e: 430b orrs r3, r1 8000220: d47f bmi.n 8000322 <__divsi3+0x106> 8000222: 2200 movs r2, #0 8000224: 0843 lsrs r3, r0, #1 8000226: 428b cmp r3, r1 8000228: d374 bcc.n 8000314 <__divsi3+0xf8> 800022a: 0903 lsrs r3, r0, #4 800022c: 428b cmp r3, r1 800022e: d35f bcc.n 80002f0 <__divsi3+0xd4> 8000230: 0a03 lsrs r3, r0, #8 8000232: 428b cmp r3, r1 8000234: d344 bcc.n 80002c0 <__divsi3+0xa4> 8000236: 0b03 lsrs r3, r0, #12 8000238: 428b cmp r3, r1 800023a: d328 bcc.n 800028e <__divsi3+0x72> 800023c: 0c03 lsrs r3, r0, #16 800023e: 428b cmp r3, r1 8000240: d30d bcc.n 800025e <__divsi3+0x42> 8000242: 22ff movs r2, #255 @ 0xff 8000244: 0209 lsls r1, r1, #8 8000246: ba12 rev r2, r2 8000248: 0c03 lsrs r3, r0, #16 800024a: 428b cmp r3, r1 800024c: d302 bcc.n 8000254 <__divsi3+0x38> 800024e: 1212 asrs r2, r2, #8 8000250: 0209 lsls r1, r1, #8 8000252: d065 beq.n 8000320 <__divsi3+0x104> 8000254: 0b03 lsrs r3, r0, #12 8000256: 428b cmp r3, r1 8000258: d319 bcc.n 800028e <__divsi3+0x72> 800025a: e000 b.n 800025e <__divsi3+0x42> 800025c: 0a09 lsrs r1, r1, #8 800025e: 0bc3 lsrs r3, r0, #15 8000260: 428b cmp r3, r1 8000262: d301 bcc.n 8000268 <__divsi3+0x4c> 8000264: 03cb lsls r3, r1, #15 8000266: 1ac0 subs r0, r0, r3 8000268: 4152 adcs r2, r2 800026a: 0b83 lsrs r3, r0, #14 800026c: 428b cmp r3, r1 800026e: d301 bcc.n 8000274 <__divsi3+0x58> 8000270: 038b lsls r3, r1, #14 8000272: 1ac0 subs r0, r0, r3 8000274: 4152 adcs r2, r2 8000276: 0b43 lsrs r3, r0, #13 8000278: 428b cmp r3, r1 800027a: d301 bcc.n 8000280 <__divsi3+0x64> 800027c: 034b lsls r3, r1, #13 800027e: 1ac0 subs r0, r0, r3 8000280: 4152 adcs r2, r2 8000282: 0b03 lsrs r3, r0, #12 8000284: 428b cmp r3, r1 8000286: d301 bcc.n 800028c <__divsi3+0x70> 8000288: 030b lsls r3, r1, #12 800028a: 1ac0 subs r0, r0, r3 800028c: 4152 adcs r2, r2 800028e: 0ac3 lsrs r3, r0, #11 8000290: 428b cmp r3, r1 8000292: d301 bcc.n 8000298 <__divsi3+0x7c> 8000294: 02cb lsls r3, r1, #11 8000296: 1ac0 subs r0, r0, r3 8000298: 4152 adcs r2, r2 800029a: 0a83 lsrs r3, r0, #10 800029c: 428b cmp r3, r1 800029e: d301 bcc.n 80002a4 <__divsi3+0x88> 80002a0: 028b lsls r3, r1, #10 80002a2: 1ac0 subs r0, r0, r3 80002a4: 4152 adcs r2, r2 80002a6: 0a43 lsrs r3, r0, #9 80002a8: 428b cmp r3, r1 80002aa: d301 bcc.n 80002b0 <__divsi3+0x94> 80002ac: 024b lsls r3, r1, #9 80002ae: 1ac0 subs r0, r0, r3 80002b0: 4152 adcs r2, r2 80002b2: 0a03 lsrs r3, r0, #8 80002b4: 428b cmp r3, r1 80002b6: d301 bcc.n 80002bc <__divsi3+0xa0> 80002b8: 020b lsls r3, r1, #8 80002ba: 1ac0 subs r0, r0, r3 80002bc: 4152 adcs r2, r2 80002be: d2cd bcs.n 800025c <__divsi3+0x40> 80002c0: 09c3 lsrs r3, r0, #7 80002c2: 428b cmp r3, r1 80002c4: d301 bcc.n 80002ca <__divsi3+0xae> 80002c6: 01cb lsls r3, r1, #7 80002c8: 1ac0 subs r0, r0, r3 80002ca: 4152 adcs r2, r2 80002cc: 0983 lsrs r3, r0, #6 80002ce: 428b cmp r3, r1 80002d0: d301 bcc.n 80002d6 <__divsi3+0xba> 80002d2: 018b lsls r3, r1, #6 80002d4: 1ac0 subs r0, r0, r3 80002d6: 4152 adcs r2, r2 80002d8: 0943 lsrs r3, r0, #5 80002da: 428b cmp r3, r1 80002dc: d301 bcc.n 80002e2 <__divsi3+0xc6> 80002de: 014b lsls r3, r1, #5 80002e0: 1ac0 subs r0, r0, r3 80002e2: 4152 adcs r2, r2 80002e4: 0903 lsrs r3, r0, #4 80002e6: 428b cmp r3, r1 80002e8: d301 bcc.n 80002ee <__divsi3+0xd2> 80002ea: 010b lsls r3, r1, #4 80002ec: 1ac0 subs r0, r0, r3 80002ee: 4152 adcs r2, r2 80002f0: 08c3 lsrs r3, r0, #3 80002f2: 428b cmp r3, r1 80002f4: d301 bcc.n 80002fa <__divsi3+0xde> 80002f6: 00cb lsls r3, r1, #3 80002f8: 1ac0 subs r0, r0, r3 80002fa: 4152 adcs r2, r2 80002fc: 0883 lsrs r3, r0, #2 80002fe: 428b cmp r3, r1 8000300: d301 bcc.n 8000306 <__divsi3+0xea> 8000302: 008b lsls r3, r1, #2 8000304: 1ac0 subs r0, r0, r3 8000306: 4152 adcs r2, r2 8000308: 0843 lsrs r3, r0, #1 800030a: 428b cmp r3, r1 800030c: d301 bcc.n 8000312 <__divsi3+0xf6> 800030e: 004b lsls r3, r1, #1 8000310: 1ac0 subs r0, r0, r3 8000312: 4152 adcs r2, r2 8000314: 1a41 subs r1, r0, r1 8000316: d200 bcs.n 800031a <__divsi3+0xfe> 8000318: 4601 mov r1, r0 800031a: 4152 adcs r2, r2 800031c: 4610 mov r0, r2 800031e: 4770 bx lr 8000320: e05d b.n 80003de <__divsi3+0x1c2> 8000322: 0fca lsrs r2, r1, #31 8000324: d000 beq.n 8000328 <__divsi3+0x10c> 8000326: 4249 negs r1, r1 8000328: 1003 asrs r3, r0, #32 800032a: d300 bcc.n 800032e <__divsi3+0x112> 800032c: 4240 negs r0, r0 800032e: 4053 eors r3, r2 8000330: 2200 movs r2, #0 8000332: 469c mov ip, r3 8000334: 0903 lsrs r3, r0, #4 8000336: 428b cmp r3, r1 8000338: d32d bcc.n 8000396 <__divsi3+0x17a> 800033a: 0a03 lsrs r3, r0, #8 800033c: 428b cmp r3, r1 800033e: d312 bcc.n 8000366 <__divsi3+0x14a> 8000340: 22fc movs r2, #252 @ 0xfc 8000342: 0189 lsls r1, r1, #6 8000344: ba12 rev r2, r2 8000346: 0a03 lsrs r3, r0, #8 8000348: 428b cmp r3, r1 800034a: d30c bcc.n 8000366 <__divsi3+0x14a> 800034c: 0189 lsls r1, r1, #6 800034e: 1192 asrs r2, r2, #6 8000350: 428b cmp r3, r1 8000352: d308 bcc.n 8000366 <__divsi3+0x14a> 8000354: 0189 lsls r1, r1, #6 8000356: 1192 asrs r2, r2, #6 8000358: 428b cmp r3, r1 800035a: d304 bcc.n 8000366 <__divsi3+0x14a> 800035c: 0189 lsls r1, r1, #6 800035e: d03a beq.n 80003d6 <__divsi3+0x1ba> 8000360: 1192 asrs r2, r2, #6 8000362: e000 b.n 8000366 <__divsi3+0x14a> 8000364: 0989 lsrs r1, r1, #6 8000366: 09c3 lsrs r3, r0, #7 8000368: 428b cmp r3, r1 800036a: d301 bcc.n 8000370 <__divsi3+0x154> 800036c: 01cb lsls r3, r1, #7 800036e: 1ac0 subs r0, r0, r3 8000370: 4152 adcs r2, r2 8000372: 0983 lsrs r3, r0, #6 8000374: 428b cmp r3, r1 8000376: d301 bcc.n 800037c <__divsi3+0x160> 8000378: 018b lsls r3, r1, #6 800037a: 1ac0 subs r0, r0, r3 800037c: 4152 adcs r2, r2 800037e: 0943 lsrs r3, r0, #5 8000380: 428b cmp r3, r1 8000382: d301 bcc.n 8000388 <__divsi3+0x16c> 8000384: 014b lsls r3, r1, #5 8000386: 1ac0 subs r0, r0, r3 8000388: 4152 adcs r2, r2 800038a: 0903 lsrs r3, r0, #4 800038c: 428b cmp r3, r1 800038e: d301 bcc.n 8000394 <__divsi3+0x178> 8000390: 010b lsls r3, r1, #4 8000392: 1ac0 subs r0, r0, r3 8000394: 4152 adcs r2, r2 8000396: 08c3 lsrs r3, r0, #3 8000398: 428b cmp r3, r1 800039a: d301 bcc.n 80003a0 <__divsi3+0x184> 800039c: 00cb lsls r3, r1, #3 800039e: 1ac0 subs r0, r0, r3 80003a0: 4152 adcs r2, r2 80003a2: 0883 lsrs r3, r0, #2 80003a4: 428b cmp r3, r1 80003a6: d301 bcc.n 80003ac <__divsi3+0x190> 80003a8: 008b lsls r3, r1, #2 80003aa: 1ac0 subs r0, r0, r3 80003ac: 4152 adcs r2, r2 80003ae: d2d9 bcs.n 8000364 <__divsi3+0x148> 80003b0: 0843 lsrs r3, r0, #1 80003b2: 428b cmp r3, r1 80003b4: d301 bcc.n 80003ba <__divsi3+0x19e> 80003b6: 004b lsls r3, r1, #1 80003b8: 1ac0 subs r0, r0, r3 80003ba: 4152 adcs r2, r2 80003bc: 1a41 subs r1, r0, r1 80003be: d200 bcs.n 80003c2 <__divsi3+0x1a6> 80003c0: 4601 mov r1, r0 80003c2: 4663 mov r3, ip 80003c4: 4152 adcs r2, r2 80003c6: 105b asrs r3, r3, #1 80003c8: 4610 mov r0, r2 80003ca: d301 bcc.n 80003d0 <__divsi3+0x1b4> 80003cc: 4240 negs r0, r0 80003ce: 2b00 cmp r3, #0 80003d0: d500 bpl.n 80003d4 <__divsi3+0x1b8> 80003d2: 4249 negs r1, r1 80003d4: 4770 bx lr 80003d6: 4663 mov r3, ip 80003d8: 105b asrs r3, r3, #1 80003da: d300 bcc.n 80003de <__divsi3+0x1c2> 80003dc: 4240 negs r0, r0 80003de: b501 push {r0, lr} 80003e0: 2000 movs r0, #0 80003e2: f000 f805 bl 80003f0 <__aeabi_idiv0> 80003e6: bd02 pop {r1, pc} 080003e8 <__aeabi_idivmod>: 80003e8: 2900 cmp r1, #0 80003ea: d0f8 beq.n 80003de <__divsi3+0x1c2> 80003ec: e716 b.n 800021c <__divsi3> 80003ee: 4770 bx lr 080003f0 <__aeabi_idiv0>: 80003f0: 4770 bx lr 80003f2: 46c0 nop @ (mov r8, r8) 080003f4 <__aeabi_cfrcmple>: 80003f4: 4684 mov ip, r0 80003f6: 0008 movs r0, r1 80003f8: 4661 mov r1, ip 80003fa: e7ff b.n 80003fc <__aeabi_cfcmpeq> 080003fc <__aeabi_cfcmpeq>: 80003fc: b51f push {r0, r1, r2, r3, r4, lr} 80003fe: f000 fb05 bl 8000a0c <__lesf2> 8000402: 2800 cmp r0, #0 8000404: d401 bmi.n 800040a <__aeabi_cfcmpeq+0xe> 8000406: 2100 movs r1, #0 8000408: 42c8 cmn r0, r1 800040a: bd1f pop {r0, r1, r2, r3, r4, pc} 0800040c <__aeabi_fcmpeq>: 800040c: b510 push {r4, lr} 800040e: f000 fa8d bl 800092c <__eqsf2> 8000412: 4240 negs r0, r0 8000414: 3001 adds r0, #1 8000416: bd10 pop {r4, pc} 08000418 <__aeabi_fcmplt>: 8000418: b510 push {r4, lr} 800041a: f000 faf7 bl 8000a0c <__lesf2> 800041e: 2800 cmp r0, #0 8000420: db01 blt.n 8000426 <__aeabi_fcmplt+0xe> 8000422: 2000 movs r0, #0 8000424: bd10 pop {r4, pc} 8000426: 2001 movs r0, #1 8000428: bd10 pop {r4, pc} 800042a: 46c0 nop @ (mov r8, r8) 0800042c <__aeabi_fcmple>: 800042c: b510 push {r4, lr} 800042e: f000 faed bl 8000a0c <__lesf2> 8000432: 2800 cmp r0, #0 8000434: dd01 ble.n 800043a <__aeabi_fcmple+0xe> 8000436: 2000 movs r0, #0 8000438: bd10 pop {r4, pc} 800043a: 2001 movs r0, #1 800043c: bd10 pop {r4, pc} 800043e: 46c0 nop @ (mov r8, r8) 08000440 <__aeabi_fcmpgt>: 8000440: b510 push {r4, lr} 8000442: f000 fa9b bl 800097c <__gesf2> 8000446: 2800 cmp r0, #0 8000448: dc01 bgt.n 800044e <__aeabi_fcmpgt+0xe> 800044a: 2000 movs r0, #0 800044c: bd10 pop {r4, pc} 800044e: 2001 movs r0, #1 8000450: bd10 pop {r4, pc} 8000452: 46c0 nop @ (mov r8, r8) 08000454 <__aeabi_fcmpge>: 8000454: b510 push {r4, lr} 8000456: f000 fa91 bl 800097c <__gesf2> 800045a: 2800 cmp r0, #0 800045c: da01 bge.n 8000462 <__aeabi_fcmpge+0xe> 800045e: 2000 movs r0, #0 8000460: bd10 pop {r4, pc} 8000462: 2001 movs r0, #1 8000464: bd10 pop {r4, pc} 8000466: 46c0 nop @ (mov r8, r8) 08000468 <__aeabi_ldivmod>: 8000468: 2b00 cmp r3, #0 800046a: d115 bne.n 8000498 <__aeabi_ldivmod+0x30> 800046c: 2a00 cmp r2, #0 800046e: d113 bne.n 8000498 <__aeabi_ldivmod+0x30> 8000470: 2900 cmp r1, #0 8000472: db06 blt.n 8000482 <__aeabi_ldivmod+0x1a> 8000474: dc01 bgt.n 800047a <__aeabi_ldivmod+0x12> 8000476: 2800 cmp r0, #0 8000478: d006 beq.n 8000488 <__aeabi_ldivmod+0x20> 800047a: 2000 movs r0, #0 800047c: 43c0 mvns r0, r0 800047e: 0841 lsrs r1, r0, #1 8000480: e002 b.n 8000488 <__aeabi_ldivmod+0x20> 8000482: 2180 movs r1, #128 @ 0x80 8000484: 0609 lsls r1, r1, #24 8000486: 2000 movs r0, #0 8000488: b407 push {r0, r1, r2} 800048a: 4802 ldr r0, [pc, #8] @ (8000494 <__aeabi_ldivmod+0x2c>) 800048c: a101 add r1, pc, #4 @ (adr r1, 8000494 <__aeabi_ldivmod+0x2c>) 800048e: 1840 adds r0, r0, r1 8000490: 9002 str r0, [sp, #8] 8000492: bd03 pop {r0, r1, pc} 8000494: ffffff5d .word 0xffffff5d 8000498: b403 push {r0, r1} 800049a: 4668 mov r0, sp 800049c: b501 push {r0, lr} 800049e: 9802 ldr r0, [sp, #8] 80004a0: f000 f834 bl 800050c <__gnu_ldivmod_helper> 80004a4: 9b01 ldr r3, [sp, #4] 80004a6: 469e mov lr, r3 80004a8: b002 add sp, #8 80004aa: bc0c pop {r2, r3} 80004ac: 4770 bx lr 80004ae: 46c0 nop @ (mov r8, r8) 080004b0 <__aeabi_lmul>: 80004b0: b5f0 push {r4, r5, r6, r7, lr} 80004b2: 46ce mov lr, r9 80004b4: 4699 mov r9, r3 80004b6: 0c03 lsrs r3, r0, #16 80004b8: 469c mov ip, r3 80004ba: 0413 lsls r3, r2, #16 80004bc: 4647 mov r7, r8 80004be: 0c1b lsrs r3, r3, #16 80004c0: 001d movs r5, r3 80004c2: 000e movs r6, r1 80004c4: 4661 mov r1, ip 80004c6: 0404 lsls r4, r0, #16 80004c8: 0c24 lsrs r4, r4, #16 80004ca: b580 push {r7, lr} 80004cc: 0007 movs r7, r0 80004ce: 0c10 lsrs r0, r2, #16 80004d0: 434b muls r3, r1 80004d2: 4365 muls r5, r4 80004d4: 4341 muls r1, r0 80004d6: 4360 muls r0, r4 80004d8: 0c2c lsrs r4, r5, #16 80004da: 18c0 adds r0, r0, r3 80004dc: 1824 adds r4, r4, r0 80004de: 468c mov ip, r1 80004e0: 42a3 cmp r3, r4 80004e2: d903 bls.n 80004ec <__aeabi_lmul+0x3c> 80004e4: 2380 movs r3, #128 @ 0x80 80004e6: 025b lsls r3, r3, #9 80004e8: 4698 mov r8, r3 80004ea: 44c4 add ip, r8 80004ec: 4649 mov r1, r9 80004ee: 4379 muls r1, r7 80004f0: 4356 muls r6, r2 80004f2: 0c23 lsrs r3, r4, #16 80004f4: 042d lsls r5, r5, #16 80004f6: 0c2d lsrs r5, r5, #16 80004f8: 1989 adds r1, r1, r6 80004fa: 4463 add r3, ip 80004fc: 0424 lsls r4, r4, #16 80004fe: 1960 adds r0, r4, r5 8000500: 18c9 adds r1, r1, r3 8000502: bcc0 pop {r6, r7} 8000504: 46b9 mov r9, r7 8000506: 46b0 mov r8, r6 8000508: bdf0 pop {r4, r5, r6, r7, pc} 800050a: 46c0 nop @ (mov r8, r8) 0800050c <__gnu_ldivmod_helper>: 800050c: b5f8 push {r3, r4, r5, r6, r7, lr} 800050e: 46ce mov lr, r9 8000510: 4647 mov r7, r8 8000512: b580 push {r7, lr} 8000514: 4691 mov r9, r2 8000516: 4698 mov r8, r3 8000518: 0004 movs r4, r0 800051a: 000d movs r5, r1 800051c: f001 fdb8 bl 8002090 <__divdi3> 8000520: 0007 movs r7, r0 8000522: 000e movs r6, r1 8000524: 0002 movs r2, r0 8000526: 000b movs r3, r1 8000528: 4648 mov r0, r9 800052a: 4641 mov r1, r8 800052c: f7ff ffc0 bl 80004b0 <__aeabi_lmul> 8000530: 1a24 subs r4, r4, r0 8000532: 418d sbcs r5, r1 8000534: 9b08 ldr r3, [sp, #32] 8000536: 0038 movs r0, r7 8000538: 0031 movs r1, r6 800053a: 601c str r4, [r3, #0] 800053c: 605d str r5, [r3, #4] 800053e: bcc0 pop {r6, r7} 8000540: 46b9 mov r9, r7 8000542: 46b0 mov r8, r6 8000544: bdf8 pop {r3, r4, r5, r6, r7, pc} 8000546: 46c0 nop @ (mov r8, r8) 08000548 <__aeabi_fadd>: 8000548: b5f8 push {r3, r4, r5, r6, r7, lr} 800054a: 024b lsls r3, r1, #9 800054c: 0a5a lsrs r2, r3, #9 800054e: 4694 mov ip, r2 8000550: 004a lsls r2, r1, #1 8000552: 0fc9 lsrs r1, r1, #31 8000554: 46ce mov lr, r9 8000556: 4647 mov r7, r8 8000558: 4689 mov r9, r1 800055a: 0045 lsls r5, r0, #1 800055c: 0246 lsls r6, r0, #9 800055e: 0e2d lsrs r5, r5, #24 8000560: 0e12 lsrs r2, r2, #24 8000562: b580 push {r7, lr} 8000564: 0999 lsrs r1, r3, #6 8000566: 0a77 lsrs r7, r6, #9 8000568: 0fc4 lsrs r4, r0, #31 800056a: 09b6 lsrs r6, r6, #6 800056c: 1aab subs r3, r5, r2 800056e: 454c cmp r4, r9 8000570: d020 beq.n 80005b4 <__aeabi_fadd+0x6c> 8000572: 2b00 cmp r3, #0 8000574: dd0c ble.n 8000590 <__aeabi_fadd+0x48> 8000576: 2a00 cmp r2, #0 8000578: d134 bne.n 80005e4 <__aeabi_fadd+0x9c> 800057a: 2900 cmp r1, #0 800057c: d02a beq.n 80005d4 <__aeabi_fadd+0x8c> 800057e: 1e5a subs r2, r3, #1 8000580: 2b01 cmp r3, #1 8000582: d100 bne.n 8000586 <__aeabi_fadd+0x3e> 8000584: e08f b.n 80006a6 <__aeabi_fadd+0x15e> 8000586: 2bff cmp r3, #255 @ 0xff 8000588: d100 bne.n 800058c <__aeabi_fadd+0x44> 800058a: e0cd b.n 8000728 <__aeabi_fadd+0x1e0> 800058c: 0013 movs r3, r2 800058e: e02f b.n 80005f0 <__aeabi_fadd+0xa8> 8000590: 2b00 cmp r3, #0 8000592: d060 beq.n 8000656 <__aeabi_fadd+0x10e> 8000594: 1b53 subs r3, r2, r5 8000596: 2d00 cmp r5, #0 8000598: d000 beq.n 800059c <__aeabi_fadd+0x54> 800059a: e0ee b.n 800077a <__aeabi_fadd+0x232> 800059c: 2e00 cmp r6, #0 800059e: d100 bne.n 80005a2 <__aeabi_fadd+0x5a> 80005a0: e13e b.n 8000820 <__aeabi_fadd+0x2d8> 80005a2: 1e5c subs r4, r3, #1 80005a4: 2b01 cmp r3, #1 80005a6: d100 bne.n 80005aa <__aeabi_fadd+0x62> 80005a8: e16b b.n 8000882 <__aeabi_fadd+0x33a> 80005aa: 2bff cmp r3, #255 @ 0xff 80005ac: d100 bne.n 80005b0 <__aeabi_fadd+0x68> 80005ae: e0b9 b.n 8000724 <__aeabi_fadd+0x1dc> 80005b0: 0023 movs r3, r4 80005b2: e0e7 b.n 8000784 <__aeabi_fadd+0x23c> 80005b4: 2b00 cmp r3, #0 80005b6: dc00 bgt.n 80005ba <__aeabi_fadd+0x72> 80005b8: e0a4 b.n 8000704 <__aeabi_fadd+0x1bc> 80005ba: 2a00 cmp r2, #0 80005bc: d069 beq.n 8000692 <__aeabi_fadd+0x14a> 80005be: 2dff cmp r5, #255 @ 0xff 80005c0: d100 bne.n 80005c4 <__aeabi_fadd+0x7c> 80005c2: e0b1 b.n 8000728 <__aeabi_fadd+0x1e0> 80005c4: 2280 movs r2, #128 @ 0x80 80005c6: 04d2 lsls r2, r2, #19 80005c8: 4311 orrs r1, r2 80005ca: 2b1b cmp r3, #27 80005cc: dc00 bgt.n 80005d0 <__aeabi_fadd+0x88> 80005ce: e0e9 b.n 80007a4 <__aeabi_fadd+0x25c> 80005d0: 002b movs r3, r5 80005d2: 3605 adds r6, #5 80005d4: 08f7 lsrs r7, r6, #3 80005d6: 2bff cmp r3, #255 @ 0xff 80005d8: d100 bne.n 80005dc <__aeabi_fadd+0x94> 80005da: e0a5 b.n 8000728 <__aeabi_fadd+0x1e0> 80005dc: 027a lsls r2, r7, #9 80005de: 0a52 lsrs r2, r2, #9 80005e0: b2d8 uxtb r0, r3 80005e2: e030 b.n 8000646 <__aeabi_fadd+0xfe> 80005e4: 2dff cmp r5, #255 @ 0xff 80005e6: d100 bne.n 80005ea <__aeabi_fadd+0xa2> 80005e8: e09e b.n 8000728 <__aeabi_fadd+0x1e0> 80005ea: 2280 movs r2, #128 @ 0x80 80005ec: 04d2 lsls r2, r2, #19 80005ee: 4311 orrs r1, r2 80005f0: 2001 movs r0, #1 80005f2: 2b1b cmp r3, #27 80005f4: dc08 bgt.n 8000608 <__aeabi_fadd+0xc0> 80005f6: 0008 movs r0, r1 80005f8: 2220 movs r2, #32 80005fa: 40d8 lsrs r0, r3 80005fc: 1ad3 subs r3, r2, r3 80005fe: 4099 lsls r1, r3 8000600: 000b movs r3, r1 8000602: 1e5a subs r2, r3, #1 8000604: 4193 sbcs r3, r2 8000606: 4318 orrs r0, r3 8000608: 1a36 subs r6, r6, r0 800060a: 0173 lsls r3, r6, #5 800060c: d400 bmi.n 8000610 <__aeabi_fadd+0xc8> 800060e: e071 b.n 80006f4 <__aeabi_fadd+0x1ac> 8000610: 01b6 lsls r6, r6, #6 8000612: 09b7 lsrs r7, r6, #6 8000614: 0038 movs r0, r7 8000616: f001 fd1d bl 8002054 <__clzsi2> 800061a: 003b movs r3, r7 800061c: 3805 subs r0, #5 800061e: 4083 lsls r3, r0 8000620: 4285 cmp r5, r0 8000622: dd4d ble.n 80006c0 <__aeabi_fadd+0x178> 8000624: 4eb4 ldr r6, [pc, #720] @ (80008f8 <__aeabi_fadd+0x3b0>) 8000626: 1a2d subs r5, r5, r0 8000628: 401e ands r6, r3 800062a: 075a lsls r2, r3, #29 800062c: d068 beq.n 8000700 <__aeabi_fadd+0x1b8> 800062e: 220f movs r2, #15 8000630: 4013 ands r3, r2 8000632: 2b04 cmp r3, #4 8000634: d064 beq.n 8000700 <__aeabi_fadd+0x1b8> 8000636: 3604 adds r6, #4 8000638: 0173 lsls r3, r6, #5 800063a: d561 bpl.n 8000700 <__aeabi_fadd+0x1b8> 800063c: 1c68 adds r0, r5, #1 800063e: 2dfe cmp r5, #254 @ 0xfe 8000640: d154 bne.n 80006ec <__aeabi_fadd+0x1a4> 8000642: 20ff movs r0, #255 @ 0xff 8000644: 2200 movs r2, #0 8000646: 05c0 lsls r0, r0, #23 8000648: 4310 orrs r0, r2 800064a: 07e4 lsls r4, r4, #31 800064c: 4320 orrs r0, r4 800064e: bcc0 pop {r6, r7} 8000650: 46b9 mov r9, r7 8000652: 46b0 mov r8, r6 8000654: bdf8 pop {r3, r4, r5, r6, r7, pc} 8000656: 22fe movs r2, #254 @ 0xfe 8000658: 4690 mov r8, r2 800065a: 1c68 adds r0, r5, #1 800065c: 0002 movs r2, r0 800065e: 4640 mov r0, r8 8000660: 4210 tst r0, r2 8000662: d16b bne.n 800073c <__aeabi_fadd+0x1f4> 8000664: 2d00 cmp r5, #0 8000666: d000 beq.n 800066a <__aeabi_fadd+0x122> 8000668: e0dd b.n 8000826 <__aeabi_fadd+0x2de> 800066a: 2e00 cmp r6, #0 800066c: d100 bne.n 8000670 <__aeabi_fadd+0x128> 800066e: e102 b.n 8000876 <__aeabi_fadd+0x32e> 8000670: 2900 cmp r1, #0 8000672: d0b3 beq.n 80005dc <__aeabi_fadd+0x94> 8000674: 2280 movs r2, #128 @ 0x80 8000676: 1a77 subs r7, r6, r1 8000678: 04d2 lsls r2, r2, #19 800067a: 4217 tst r7, r2 800067c: d100 bne.n 8000680 <__aeabi_fadd+0x138> 800067e: e136 b.n 80008ee <__aeabi_fadd+0x3a6> 8000680: 464c mov r4, r9 8000682: 1b8e subs r6, r1, r6 8000684: d061 beq.n 800074a <__aeabi_fadd+0x202> 8000686: 2001 movs r0, #1 8000688: 4216 tst r6, r2 800068a: d130 bne.n 80006ee <__aeabi_fadd+0x1a6> 800068c: 2300 movs r3, #0 800068e: 08f7 lsrs r7, r6, #3 8000690: e7a4 b.n 80005dc <__aeabi_fadd+0x94> 8000692: 2900 cmp r1, #0 8000694: d09e beq.n 80005d4 <__aeabi_fadd+0x8c> 8000696: 1e5a subs r2, r3, #1 8000698: 2b01 cmp r3, #1 800069a: d100 bne.n 800069e <__aeabi_fadd+0x156> 800069c: e0ca b.n 8000834 <__aeabi_fadd+0x2ec> 800069e: 2bff cmp r3, #255 @ 0xff 80006a0: d042 beq.n 8000728 <__aeabi_fadd+0x1e0> 80006a2: 0013 movs r3, r2 80006a4: e791 b.n 80005ca <__aeabi_fadd+0x82> 80006a6: 1a71 subs r1, r6, r1 80006a8: 014b lsls r3, r1, #5 80006aa: d400 bmi.n 80006ae <__aeabi_fadd+0x166> 80006ac: e0d1 b.n 8000852 <__aeabi_fadd+0x30a> 80006ae: 018f lsls r7, r1, #6 80006b0: 09bf lsrs r7, r7, #6 80006b2: 0038 movs r0, r7 80006b4: f001 fcce bl 8002054 <__clzsi2> 80006b8: 003b movs r3, r7 80006ba: 3805 subs r0, #5 80006bc: 4083 lsls r3, r0 80006be: 2501 movs r5, #1 80006c0: 2220 movs r2, #32 80006c2: 1b40 subs r0, r0, r5 80006c4: 3001 adds r0, #1 80006c6: 1a12 subs r2, r2, r0 80006c8: 001e movs r6, r3 80006ca: 4093 lsls r3, r2 80006cc: 40c6 lsrs r6, r0 80006ce: 1e5a subs r2, r3, #1 80006d0: 4193 sbcs r3, r2 80006d2: 431e orrs r6, r3 80006d4: d039 beq.n 800074a <__aeabi_fadd+0x202> 80006d6: 0773 lsls r3, r6, #29 80006d8: d100 bne.n 80006dc <__aeabi_fadd+0x194> 80006da: e11b b.n 8000914 <__aeabi_fadd+0x3cc> 80006dc: 230f movs r3, #15 80006de: 2500 movs r5, #0 80006e0: 4033 ands r3, r6 80006e2: 2b04 cmp r3, #4 80006e4: d1a7 bne.n 8000636 <__aeabi_fadd+0xee> 80006e6: 2001 movs r0, #1 80006e8: 0172 lsls r2, r6, #5 80006ea: d57c bpl.n 80007e6 <__aeabi_fadd+0x29e> 80006ec: b2c0 uxtb r0, r0 80006ee: 01b2 lsls r2, r6, #6 80006f0: 0a52 lsrs r2, r2, #9 80006f2: e7a8 b.n 8000646 <__aeabi_fadd+0xfe> 80006f4: 0773 lsls r3, r6, #29 80006f6: d003 beq.n 8000700 <__aeabi_fadd+0x1b8> 80006f8: 230f movs r3, #15 80006fa: 4033 ands r3, r6 80006fc: 2b04 cmp r3, #4 80006fe: d19a bne.n 8000636 <__aeabi_fadd+0xee> 8000700: 002b movs r3, r5 8000702: e767 b.n 80005d4 <__aeabi_fadd+0x8c> 8000704: 2b00 cmp r3, #0 8000706: d023 beq.n 8000750 <__aeabi_fadd+0x208> 8000708: 1b53 subs r3, r2, r5 800070a: 2d00 cmp r5, #0 800070c: d17b bne.n 8000806 <__aeabi_fadd+0x2be> 800070e: 2e00 cmp r6, #0 8000710: d100 bne.n 8000714 <__aeabi_fadd+0x1cc> 8000712: e086 b.n 8000822 <__aeabi_fadd+0x2da> 8000714: 1e5d subs r5, r3, #1 8000716: 2b01 cmp r3, #1 8000718: d100 bne.n 800071c <__aeabi_fadd+0x1d4> 800071a: e08b b.n 8000834 <__aeabi_fadd+0x2ec> 800071c: 2bff cmp r3, #255 @ 0xff 800071e: d002 beq.n 8000726 <__aeabi_fadd+0x1de> 8000720: 002b movs r3, r5 8000722: e075 b.n 8000810 <__aeabi_fadd+0x2c8> 8000724: 464c mov r4, r9 8000726: 4667 mov r7, ip 8000728: 2f00 cmp r7, #0 800072a: d100 bne.n 800072e <__aeabi_fadd+0x1e6> 800072c: e789 b.n 8000642 <__aeabi_fadd+0xfa> 800072e: 2280 movs r2, #128 @ 0x80 8000730: 03d2 lsls r2, r2, #15 8000732: 433a orrs r2, r7 8000734: 0252 lsls r2, r2, #9 8000736: 20ff movs r0, #255 @ 0xff 8000738: 0a52 lsrs r2, r2, #9 800073a: e784 b.n 8000646 <__aeabi_fadd+0xfe> 800073c: 1a77 subs r7, r6, r1 800073e: 017b lsls r3, r7, #5 8000740: d46b bmi.n 800081a <__aeabi_fadd+0x2d2> 8000742: 2f00 cmp r7, #0 8000744: d000 beq.n 8000748 <__aeabi_fadd+0x200> 8000746: e765 b.n 8000614 <__aeabi_fadd+0xcc> 8000748: 2400 movs r4, #0 800074a: 2000 movs r0, #0 800074c: 2200 movs r2, #0 800074e: e77a b.n 8000646 <__aeabi_fadd+0xfe> 8000750: 22fe movs r2, #254 @ 0xfe 8000752: 1c6b adds r3, r5, #1 8000754: 421a tst r2, r3 8000756: d149 bne.n 80007ec <__aeabi_fadd+0x2a4> 8000758: 2d00 cmp r5, #0 800075a: d000 beq.n 800075e <__aeabi_fadd+0x216> 800075c: e09f b.n 800089e <__aeabi_fadd+0x356> 800075e: 2e00 cmp r6, #0 8000760: d100 bne.n 8000764 <__aeabi_fadd+0x21c> 8000762: e0ba b.n 80008da <__aeabi_fadd+0x392> 8000764: 2900 cmp r1, #0 8000766: d100 bne.n 800076a <__aeabi_fadd+0x222> 8000768: e0cf b.n 800090a <__aeabi_fadd+0x3c2> 800076a: 1872 adds r2, r6, r1 800076c: 0153 lsls r3, r2, #5 800076e: d400 bmi.n 8000772 <__aeabi_fadd+0x22a> 8000770: e0cd b.n 800090e <__aeabi_fadd+0x3c6> 8000772: 0192 lsls r2, r2, #6 8000774: 2001 movs r0, #1 8000776: 0a52 lsrs r2, r2, #9 8000778: e765 b.n 8000646 <__aeabi_fadd+0xfe> 800077a: 2aff cmp r2, #255 @ 0xff 800077c: d0d2 beq.n 8000724 <__aeabi_fadd+0x1dc> 800077e: 2080 movs r0, #128 @ 0x80 8000780: 04c0 lsls r0, r0, #19 8000782: 4306 orrs r6, r0 8000784: 2001 movs r0, #1 8000786: 2b1b cmp r3, #27 8000788: dc08 bgt.n 800079c <__aeabi_fadd+0x254> 800078a: 0030 movs r0, r6 800078c: 2420 movs r4, #32 800078e: 40d8 lsrs r0, r3 8000790: 1ae3 subs r3, r4, r3 8000792: 409e lsls r6, r3 8000794: 0033 movs r3, r6 8000796: 1e5c subs r4, r3, #1 8000798: 41a3 sbcs r3, r4 800079a: 4318 orrs r0, r3 800079c: 464c mov r4, r9 800079e: 0015 movs r5, r2 80007a0: 1a0e subs r6, r1, r0 80007a2: e732 b.n 800060a <__aeabi_fadd+0xc2> 80007a4: 0008 movs r0, r1 80007a6: 2220 movs r2, #32 80007a8: 40d8 lsrs r0, r3 80007aa: 1ad3 subs r3, r2, r3 80007ac: 4099 lsls r1, r3 80007ae: 000b movs r3, r1 80007b0: 1e5a subs r2, r3, #1 80007b2: 4193 sbcs r3, r2 80007b4: 4303 orrs r3, r0 80007b6: 18f6 adds r6, r6, r3 80007b8: 0173 lsls r3, r6, #5 80007ba: d59b bpl.n 80006f4 <__aeabi_fadd+0x1ac> 80007bc: 3501 adds r5, #1 80007be: 2dff cmp r5, #255 @ 0xff 80007c0: d100 bne.n 80007c4 <__aeabi_fadd+0x27c> 80007c2: e73e b.n 8000642 <__aeabi_fadd+0xfa> 80007c4: 2301 movs r3, #1 80007c6: 494d ldr r1, [pc, #308] @ (80008fc <__aeabi_fadd+0x3b4>) 80007c8: 0872 lsrs r2, r6, #1 80007ca: 4033 ands r3, r6 80007cc: 400a ands r2, r1 80007ce: 431a orrs r2, r3 80007d0: 0016 movs r6, r2 80007d2: 0753 lsls r3, r2, #29 80007d4: d004 beq.n 80007e0 <__aeabi_fadd+0x298> 80007d6: 230f movs r3, #15 80007d8: 4013 ands r3, r2 80007da: 2b04 cmp r3, #4 80007dc: d000 beq.n 80007e0 <__aeabi_fadd+0x298> 80007de: e72a b.n 8000636 <__aeabi_fadd+0xee> 80007e0: 0173 lsls r3, r6, #5 80007e2: d500 bpl.n 80007e6 <__aeabi_fadd+0x29e> 80007e4: e72a b.n 800063c <__aeabi_fadd+0xf4> 80007e6: 002b movs r3, r5 80007e8: 08f7 lsrs r7, r6, #3 80007ea: e6f7 b.n 80005dc <__aeabi_fadd+0x94> 80007ec: 2bff cmp r3, #255 @ 0xff 80007ee: d100 bne.n 80007f2 <__aeabi_fadd+0x2aa> 80007f0: e727 b.n 8000642 <__aeabi_fadd+0xfa> 80007f2: 1871 adds r1, r6, r1 80007f4: 0849 lsrs r1, r1, #1 80007f6: 074a lsls r2, r1, #29 80007f8: d02f beq.n 800085a <__aeabi_fadd+0x312> 80007fa: 220f movs r2, #15 80007fc: 400a ands r2, r1 80007fe: 2a04 cmp r2, #4 8000800: d02b beq.n 800085a <__aeabi_fadd+0x312> 8000802: 1d0e adds r6, r1, #4 8000804: e6e6 b.n 80005d4 <__aeabi_fadd+0x8c> 8000806: 2aff cmp r2, #255 @ 0xff 8000808: d08d beq.n 8000726 <__aeabi_fadd+0x1de> 800080a: 2080 movs r0, #128 @ 0x80 800080c: 04c0 lsls r0, r0, #19 800080e: 4306 orrs r6, r0 8000810: 2b1b cmp r3, #27 8000812: dd24 ble.n 800085e <__aeabi_fadd+0x316> 8000814: 0013 movs r3, r2 8000816: 1d4e adds r6, r1, #5 8000818: e6dc b.n 80005d4 <__aeabi_fadd+0x8c> 800081a: 464c mov r4, r9 800081c: 1b8f subs r7, r1, r6 800081e: e6f9 b.n 8000614 <__aeabi_fadd+0xcc> 8000820: 464c mov r4, r9 8000822: 000e movs r6, r1 8000824: e6d6 b.n 80005d4 <__aeabi_fadd+0x8c> 8000826: 2e00 cmp r6, #0 8000828: d149 bne.n 80008be <__aeabi_fadd+0x376> 800082a: 2900 cmp r1, #0 800082c: d068 beq.n 8000900 <__aeabi_fadd+0x3b8> 800082e: 4667 mov r7, ip 8000830: 464c mov r4, r9 8000832: e77c b.n 800072e <__aeabi_fadd+0x1e6> 8000834: 1870 adds r0, r6, r1 8000836: 0143 lsls r3, r0, #5 8000838: d574 bpl.n 8000924 <__aeabi_fadd+0x3dc> 800083a: 4930 ldr r1, [pc, #192] @ (80008fc <__aeabi_fadd+0x3b4>) 800083c: 0840 lsrs r0, r0, #1 800083e: 4001 ands r1, r0 8000840: 0743 lsls r3, r0, #29 8000842: d009 beq.n 8000858 <__aeabi_fadd+0x310> 8000844: 230f movs r3, #15 8000846: 4003 ands r3, r0 8000848: 2b04 cmp r3, #4 800084a: d005 beq.n 8000858 <__aeabi_fadd+0x310> 800084c: 2302 movs r3, #2 800084e: 1d0e adds r6, r1, #4 8000850: e6c0 b.n 80005d4 <__aeabi_fadd+0x8c> 8000852: 2301 movs r3, #1 8000854: 08cf lsrs r7, r1, #3 8000856: e6c1 b.n 80005dc <__aeabi_fadd+0x94> 8000858: 2302 movs r3, #2 800085a: 08cf lsrs r7, r1, #3 800085c: e6be b.n 80005dc <__aeabi_fadd+0x94> 800085e: 2520 movs r5, #32 8000860: 0030 movs r0, r6 8000862: 40d8 lsrs r0, r3 8000864: 1aeb subs r3, r5, r3 8000866: 409e lsls r6, r3 8000868: 0033 movs r3, r6 800086a: 1e5d subs r5, r3, #1 800086c: 41ab sbcs r3, r5 800086e: 4303 orrs r3, r0 8000870: 0015 movs r5, r2 8000872: 185e adds r6, r3, r1 8000874: e7a0 b.n 80007b8 <__aeabi_fadd+0x270> 8000876: 2900 cmp r1, #0 8000878: d100 bne.n 800087c <__aeabi_fadd+0x334> 800087a: e765 b.n 8000748 <__aeabi_fadd+0x200> 800087c: 464c mov r4, r9 800087e: 4667 mov r7, ip 8000880: e6ac b.n 80005dc <__aeabi_fadd+0x94> 8000882: 1b8f subs r7, r1, r6 8000884: 017b lsls r3, r7, #5 8000886: d52e bpl.n 80008e6 <__aeabi_fadd+0x39e> 8000888: 01bf lsls r7, r7, #6 800088a: 09bf lsrs r7, r7, #6 800088c: 0038 movs r0, r7 800088e: f001 fbe1 bl 8002054 <__clzsi2> 8000892: 003b movs r3, r7 8000894: 3805 subs r0, #5 8000896: 4083 lsls r3, r0 8000898: 464c mov r4, r9 800089a: 3501 adds r5, #1 800089c: e710 b.n 80006c0 <__aeabi_fadd+0x178> 800089e: 2e00 cmp r6, #0 80008a0: d100 bne.n 80008a4 <__aeabi_fadd+0x35c> 80008a2: e740 b.n 8000726 <__aeabi_fadd+0x1de> 80008a4: 2900 cmp r1, #0 80008a6: d100 bne.n 80008aa <__aeabi_fadd+0x362> 80008a8: e741 b.n 800072e <__aeabi_fadd+0x1e6> 80008aa: 2380 movs r3, #128 @ 0x80 80008ac: 03db lsls r3, r3, #15 80008ae: 429f cmp r7, r3 80008b0: d200 bcs.n 80008b4 <__aeabi_fadd+0x36c> 80008b2: e73c b.n 800072e <__aeabi_fadd+0x1e6> 80008b4: 459c cmp ip, r3 80008b6: d300 bcc.n 80008ba <__aeabi_fadd+0x372> 80008b8: e739 b.n 800072e <__aeabi_fadd+0x1e6> 80008ba: 4667 mov r7, ip 80008bc: e737 b.n 800072e <__aeabi_fadd+0x1e6> 80008be: 2900 cmp r1, #0 80008c0: d100 bne.n 80008c4 <__aeabi_fadd+0x37c> 80008c2: e734 b.n 800072e <__aeabi_fadd+0x1e6> 80008c4: 2380 movs r3, #128 @ 0x80 80008c6: 03db lsls r3, r3, #15 80008c8: 429f cmp r7, r3 80008ca: d200 bcs.n 80008ce <__aeabi_fadd+0x386> 80008cc: e72f b.n 800072e <__aeabi_fadd+0x1e6> 80008ce: 459c cmp ip, r3 80008d0: d300 bcc.n 80008d4 <__aeabi_fadd+0x38c> 80008d2: e72c b.n 800072e <__aeabi_fadd+0x1e6> 80008d4: 464c mov r4, r9 80008d6: 4667 mov r7, ip 80008d8: e729 b.n 800072e <__aeabi_fadd+0x1e6> 80008da: 2900 cmp r1, #0 80008dc: d100 bne.n 80008e0 <__aeabi_fadd+0x398> 80008de: e734 b.n 800074a <__aeabi_fadd+0x202> 80008e0: 2300 movs r3, #0 80008e2: 08cf lsrs r7, r1, #3 80008e4: e67a b.n 80005dc <__aeabi_fadd+0x94> 80008e6: 464c mov r4, r9 80008e8: 2301 movs r3, #1 80008ea: 08ff lsrs r7, r7, #3 80008ec: e676 b.n 80005dc <__aeabi_fadd+0x94> 80008ee: 2f00 cmp r7, #0 80008f0: d100 bne.n 80008f4 <__aeabi_fadd+0x3ac> 80008f2: e729 b.n 8000748 <__aeabi_fadd+0x200> 80008f4: 08ff lsrs r7, r7, #3 80008f6: e671 b.n 80005dc <__aeabi_fadd+0x94> 80008f8: fbffffff .word 0xfbffffff 80008fc: 7dffffff .word 0x7dffffff 8000900: 2280 movs r2, #128 @ 0x80 8000902: 2400 movs r4, #0 8000904: 20ff movs r0, #255 @ 0xff 8000906: 03d2 lsls r2, r2, #15 8000908: e69d b.n 8000646 <__aeabi_fadd+0xfe> 800090a: 2300 movs r3, #0 800090c: e666 b.n 80005dc <__aeabi_fadd+0x94> 800090e: 2300 movs r3, #0 8000910: 08d7 lsrs r7, r2, #3 8000912: e663 b.n 80005dc <__aeabi_fadd+0x94> 8000914: 2001 movs r0, #1 8000916: 0172 lsls r2, r6, #5 8000918: d500 bpl.n 800091c <__aeabi_fadd+0x3d4> 800091a: e6e7 b.n 80006ec <__aeabi_fadd+0x1a4> 800091c: 0031 movs r1, r6 800091e: 2300 movs r3, #0 8000920: 08cf lsrs r7, r1, #3 8000922: e65b b.n 80005dc <__aeabi_fadd+0x94> 8000924: 2301 movs r3, #1 8000926: 08c7 lsrs r7, r0, #3 8000928: e658 b.n 80005dc <__aeabi_fadd+0x94> 800092a: 46c0 nop @ (mov r8, r8) 0800092c <__eqsf2>: 800092c: b570 push {r4, r5, r6, lr} 800092e: 0042 lsls r2, r0, #1 8000930: 024e lsls r6, r1, #9 8000932: 004c lsls r4, r1, #1 8000934: 0245 lsls r5, r0, #9 8000936: 0a6d lsrs r5, r5, #9 8000938: 0e12 lsrs r2, r2, #24 800093a: 0fc3 lsrs r3, r0, #31 800093c: 0a76 lsrs r6, r6, #9 800093e: 0e24 lsrs r4, r4, #24 8000940: 0fc9 lsrs r1, r1, #31 8000942: 2aff cmp r2, #255 @ 0xff 8000944: d010 beq.n 8000968 <__eqsf2+0x3c> 8000946: 2cff cmp r4, #255 @ 0xff 8000948: d00c beq.n 8000964 <__eqsf2+0x38> 800094a: 2001 movs r0, #1 800094c: 42a2 cmp r2, r4 800094e: d10a bne.n 8000966 <__eqsf2+0x3a> 8000950: 42b5 cmp r5, r6 8000952: d108 bne.n 8000966 <__eqsf2+0x3a> 8000954: 428b cmp r3, r1 8000956: d00f beq.n 8000978 <__eqsf2+0x4c> 8000958: 2a00 cmp r2, #0 800095a: d104 bne.n 8000966 <__eqsf2+0x3a> 800095c: 0028 movs r0, r5 800095e: 1e43 subs r3, r0, #1 8000960: 4198 sbcs r0, r3 8000962: e000 b.n 8000966 <__eqsf2+0x3a> 8000964: 2001 movs r0, #1 8000966: bd70 pop {r4, r5, r6, pc} 8000968: 2001 movs r0, #1 800096a: 2cff cmp r4, #255 @ 0xff 800096c: d1fb bne.n 8000966 <__eqsf2+0x3a> 800096e: 4335 orrs r5, r6 8000970: d1f9 bne.n 8000966 <__eqsf2+0x3a> 8000972: 404b eors r3, r1 8000974: 0018 movs r0, r3 8000976: e7f6 b.n 8000966 <__eqsf2+0x3a> 8000978: 2000 movs r0, #0 800097a: e7f4 b.n 8000966 <__eqsf2+0x3a> 0800097c <__gesf2>: 800097c: b530 push {r4, r5, lr} 800097e: 0042 lsls r2, r0, #1 8000980: 0244 lsls r4, r0, #9 8000982: 024d lsls r5, r1, #9 8000984: 0fc3 lsrs r3, r0, #31 8000986: 0048 lsls r0, r1, #1 8000988: 0a64 lsrs r4, r4, #9 800098a: 0e12 lsrs r2, r2, #24 800098c: 0a6d lsrs r5, r5, #9 800098e: 0e00 lsrs r0, r0, #24 8000990: 0fc9 lsrs r1, r1, #31 8000992: 2aff cmp r2, #255 @ 0xff 8000994: d018 beq.n 80009c8 <__gesf2+0x4c> 8000996: 28ff cmp r0, #255 @ 0xff 8000998: d00a beq.n 80009b0 <__gesf2+0x34> 800099a: 2a00 cmp r2, #0 800099c: d11e bne.n 80009dc <__gesf2+0x60> 800099e: 2800 cmp r0, #0 80009a0: d10a bne.n 80009b8 <__gesf2+0x3c> 80009a2: 2d00 cmp r5, #0 80009a4: d029 beq.n 80009fa <__gesf2+0x7e> 80009a6: 2c00 cmp r4, #0 80009a8: d12d bne.n 8000a06 <__gesf2+0x8a> 80009aa: 0048 lsls r0, r1, #1 80009ac: 3801 subs r0, #1 80009ae: bd30 pop {r4, r5, pc} 80009b0: 2d00 cmp r5, #0 80009b2: d125 bne.n 8000a00 <__gesf2+0x84> 80009b4: 2a00 cmp r2, #0 80009b6: d101 bne.n 80009bc <__gesf2+0x40> 80009b8: 2c00 cmp r4, #0 80009ba: d0f6 beq.n 80009aa <__gesf2+0x2e> 80009bc: 428b cmp r3, r1 80009be: d019 beq.n 80009f4 <__gesf2+0x78> 80009c0: 2001 movs r0, #1 80009c2: 425b negs r3, r3 80009c4: 4318 orrs r0, r3 80009c6: e7f2 b.n 80009ae <__gesf2+0x32> 80009c8: 2c00 cmp r4, #0 80009ca: d119 bne.n 8000a00 <__gesf2+0x84> 80009cc: 28ff cmp r0, #255 @ 0xff 80009ce: d1f7 bne.n 80009c0 <__gesf2+0x44> 80009d0: 2d00 cmp r5, #0 80009d2: d115 bne.n 8000a00 <__gesf2+0x84> 80009d4: 2000 movs r0, #0 80009d6: 428b cmp r3, r1 80009d8: d1f2 bne.n 80009c0 <__gesf2+0x44> 80009da: e7e8 b.n 80009ae <__gesf2+0x32> 80009dc: 2800 cmp r0, #0 80009de: d0ef beq.n 80009c0 <__gesf2+0x44> 80009e0: 428b cmp r3, r1 80009e2: d1ed bne.n 80009c0 <__gesf2+0x44> 80009e4: 4282 cmp r2, r0 80009e6: dceb bgt.n 80009c0 <__gesf2+0x44> 80009e8: db04 blt.n 80009f4 <__gesf2+0x78> 80009ea: 42ac cmp r4, r5 80009ec: d8e8 bhi.n 80009c0 <__gesf2+0x44> 80009ee: 2000 movs r0, #0 80009f0: 42ac cmp r4, r5 80009f2: d2dc bcs.n 80009ae <__gesf2+0x32> 80009f4: 0058 lsls r0, r3, #1 80009f6: 3801 subs r0, #1 80009f8: e7d9 b.n 80009ae <__gesf2+0x32> 80009fa: 2c00 cmp r4, #0 80009fc: d0d7 beq.n 80009ae <__gesf2+0x32> 80009fe: e7df b.n 80009c0 <__gesf2+0x44> 8000a00: 2002 movs r0, #2 8000a02: 4240 negs r0, r0 8000a04: e7d3 b.n 80009ae <__gesf2+0x32> 8000a06: 428b cmp r3, r1 8000a08: d1da bne.n 80009c0 <__gesf2+0x44> 8000a0a: e7ee b.n 80009ea <__gesf2+0x6e> 08000a0c <__lesf2>: 8000a0c: b530 push {r4, r5, lr} 8000a0e: 0042 lsls r2, r0, #1 8000a10: 0244 lsls r4, r0, #9 8000a12: 024d lsls r5, r1, #9 8000a14: 0fc3 lsrs r3, r0, #31 8000a16: 0048 lsls r0, r1, #1 8000a18: 0a64 lsrs r4, r4, #9 8000a1a: 0e12 lsrs r2, r2, #24 8000a1c: 0a6d lsrs r5, r5, #9 8000a1e: 0e00 lsrs r0, r0, #24 8000a20: 0fc9 lsrs r1, r1, #31 8000a22: 2aff cmp r2, #255 @ 0xff 8000a24: d017 beq.n 8000a56 <__lesf2+0x4a> 8000a26: 28ff cmp r0, #255 @ 0xff 8000a28: d00a beq.n 8000a40 <__lesf2+0x34> 8000a2a: 2a00 cmp r2, #0 8000a2c: d11b bne.n 8000a66 <__lesf2+0x5a> 8000a2e: 2800 cmp r0, #0 8000a30: d10a bne.n 8000a48 <__lesf2+0x3c> 8000a32: 2d00 cmp r5, #0 8000a34: d01d beq.n 8000a72 <__lesf2+0x66> 8000a36: 2c00 cmp r4, #0 8000a38: d12d bne.n 8000a96 <__lesf2+0x8a> 8000a3a: 0048 lsls r0, r1, #1 8000a3c: 3801 subs r0, #1 8000a3e: e011 b.n 8000a64 <__lesf2+0x58> 8000a40: 2d00 cmp r5, #0 8000a42: d10e bne.n 8000a62 <__lesf2+0x56> 8000a44: 2a00 cmp r2, #0 8000a46: d101 bne.n 8000a4c <__lesf2+0x40> 8000a48: 2c00 cmp r4, #0 8000a4a: d0f6 beq.n 8000a3a <__lesf2+0x2e> 8000a4c: 428b cmp r3, r1 8000a4e: d10c bne.n 8000a6a <__lesf2+0x5e> 8000a50: 0058 lsls r0, r3, #1 8000a52: 3801 subs r0, #1 8000a54: e006 b.n 8000a64 <__lesf2+0x58> 8000a56: 2c00 cmp r4, #0 8000a58: d103 bne.n 8000a62 <__lesf2+0x56> 8000a5a: 28ff cmp r0, #255 @ 0xff 8000a5c: d105 bne.n 8000a6a <__lesf2+0x5e> 8000a5e: 2d00 cmp r5, #0 8000a60: d015 beq.n 8000a8e <__lesf2+0x82> 8000a62: 2002 movs r0, #2 8000a64: bd30 pop {r4, r5, pc} 8000a66: 2800 cmp r0, #0 8000a68: d106 bne.n 8000a78 <__lesf2+0x6c> 8000a6a: 2001 movs r0, #1 8000a6c: 425b negs r3, r3 8000a6e: 4318 orrs r0, r3 8000a70: e7f8 b.n 8000a64 <__lesf2+0x58> 8000a72: 2c00 cmp r4, #0 8000a74: d0f6 beq.n 8000a64 <__lesf2+0x58> 8000a76: e7f8 b.n 8000a6a <__lesf2+0x5e> 8000a78: 428b cmp r3, r1 8000a7a: d1f6 bne.n 8000a6a <__lesf2+0x5e> 8000a7c: 4282 cmp r2, r0 8000a7e: dcf4 bgt.n 8000a6a <__lesf2+0x5e> 8000a80: dbe6 blt.n 8000a50 <__lesf2+0x44> 8000a82: 42ac cmp r4, r5 8000a84: d8f1 bhi.n 8000a6a <__lesf2+0x5e> 8000a86: 2000 movs r0, #0 8000a88: 42ac cmp r4, r5 8000a8a: d2eb bcs.n 8000a64 <__lesf2+0x58> 8000a8c: e7e0 b.n 8000a50 <__lesf2+0x44> 8000a8e: 2000 movs r0, #0 8000a90: 428b cmp r3, r1 8000a92: d1ea bne.n 8000a6a <__lesf2+0x5e> 8000a94: e7e6 b.n 8000a64 <__lesf2+0x58> 8000a96: 428b cmp r3, r1 8000a98: d1e7 bne.n 8000a6a <__lesf2+0x5e> 8000a9a: e7f2 b.n 8000a82 <__lesf2+0x76> 08000a9c <__aeabi_fmul>: 8000a9c: b5f0 push {r4, r5, r6, r7, lr} 8000a9e: 464f mov r7, r9 8000aa0: 4646 mov r6, r8 8000aa2: 46d6 mov lr, sl 8000aa4: 0044 lsls r4, r0, #1 8000aa6: b5c0 push {r6, r7, lr} 8000aa8: 0246 lsls r6, r0, #9 8000aaa: 1c0f adds r7, r1, #0 8000aac: 0a76 lsrs r6, r6, #9 8000aae: 0e24 lsrs r4, r4, #24 8000ab0: 0fc5 lsrs r5, r0, #31 8000ab2: 2c00 cmp r4, #0 8000ab4: d100 bne.n 8000ab8 <__aeabi_fmul+0x1c> 8000ab6: e0da b.n 8000c6e <__aeabi_fmul+0x1d2> 8000ab8: 2cff cmp r4, #255 @ 0xff 8000aba: d074 beq.n 8000ba6 <__aeabi_fmul+0x10a> 8000abc: 2380 movs r3, #128 @ 0x80 8000abe: 00f6 lsls r6, r6, #3 8000ac0: 04db lsls r3, r3, #19 8000ac2: 431e orrs r6, r3 8000ac4: 2300 movs r3, #0 8000ac6: 4699 mov r9, r3 8000ac8: 469a mov sl, r3 8000aca: 3c7f subs r4, #127 @ 0x7f 8000acc: 027b lsls r3, r7, #9 8000ace: 0a5b lsrs r3, r3, #9 8000ad0: 4698 mov r8, r3 8000ad2: 007b lsls r3, r7, #1 8000ad4: 0e1b lsrs r3, r3, #24 8000ad6: 0fff lsrs r7, r7, #31 8000ad8: 2b00 cmp r3, #0 8000ada: d074 beq.n 8000bc6 <__aeabi_fmul+0x12a> 8000adc: 2bff cmp r3, #255 @ 0xff 8000ade: d100 bne.n 8000ae2 <__aeabi_fmul+0x46> 8000ae0: e08e b.n 8000c00 <__aeabi_fmul+0x164> 8000ae2: 4642 mov r2, r8 8000ae4: 2180 movs r1, #128 @ 0x80 8000ae6: 00d2 lsls r2, r2, #3 8000ae8: 04c9 lsls r1, r1, #19 8000aea: 4311 orrs r1, r2 8000aec: 3b7f subs r3, #127 @ 0x7f 8000aee: 002a movs r2, r5 8000af0: 18e4 adds r4, r4, r3 8000af2: 464b mov r3, r9 8000af4: 407a eors r2, r7 8000af6: 4688 mov r8, r1 8000af8: b2d2 uxtb r2, r2 8000afa: 2b0a cmp r3, #10 8000afc: dc75 bgt.n 8000bea <__aeabi_fmul+0x14e> 8000afe: 464b mov r3, r9 8000b00: 2000 movs r0, #0 8000b02: 2b02 cmp r3, #2 8000b04: dd0f ble.n 8000b26 <__aeabi_fmul+0x8a> 8000b06: 4649 mov r1, r9 8000b08: 2301 movs r3, #1 8000b0a: 408b lsls r3, r1 8000b0c: 21a6 movs r1, #166 @ 0xa6 8000b0e: 00c9 lsls r1, r1, #3 8000b10: 420b tst r3, r1 8000b12: d169 bne.n 8000be8 <__aeabi_fmul+0x14c> 8000b14: 2190 movs r1, #144 @ 0x90 8000b16: 0089 lsls r1, r1, #2 8000b18: 420b tst r3, r1 8000b1a: d000 beq.n 8000b1e <__aeabi_fmul+0x82> 8000b1c: e100 b.n 8000d20 <__aeabi_fmul+0x284> 8000b1e: 2188 movs r1, #136 @ 0x88 8000b20: 4219 tst r1, r3 8000b22: d000 beq.n 8000b26 <__aeabi_fmul+0x8a> 8000b24: e0f5 b.n 8000d12 <__aeabi_fmul+0x276> 8000b26: 4641 mov r1, r8 8000b28: 0409 lsls r1, r1, #16 8000b2a: 0c09 lsrs r1, r1, #16 8000b2c: 4643 mov r3, r8 8000b2e: 0008 movs r0, r1 8000b30: 0c35 lsrs r5, r6, #16 8000b32: 0436 lsls r6, r6, #16 8000b34: 0c1b lsrs r3, r3, #16 8000b36: 0c36 lsrs r6, r6, #16 8000b38: 4370 muls r0, r6 8000b3a: 4369 muls r1, r5 8000b3c: 435e muls r6, r3 8000b3e: 435d muls r5, r3 8000b40: 1876 adds r6, r6, r1 8000b42: 0c03 lsrs r3, r0, #16 8000b44: 199b adds r3, r3, r6 8000b46: 4299 cmp r1, r3 8000b48: d903 bls.n 8000b52 <__aeabi_fmul+0xb6> 8000b4a: 2180 movs r1, #128 @ 0x80 8000b4c: 0249 lsls r1, r1, #9 8000b4e: 468c mov ip, r1 8000b50: 4465 add r5, ip 8000b52: 0400 lsls r0, r0, #16 8000b54: 0419 lsls r1, r3, #16 8000b56: 0c00 lsrs r0, r0, #16 8000b58: 1809 adds r1, r1, r0 8000b5a: 018e lsls r6, r1, #6 8000b5c: 1e70 subs r0, r6, #1 8000b5e: 4186 sbcs r6, r0 8000b60: 0c1b lsrs r3, r3, #16 8000b62: 0e89 lsrs r1, r1, #26 8000b64: 195b adds r3, r3, r5 8000b66: 430e orrs r6, r1 8000b68: 019b lsls r3, r3, #6 8000b6a: 431e orrs r6, r3 8000b6c: 011b lsls r3, r3, #4 8000b6e: d46c bmi.n 8000c4a <__aeabi_fmul+0x1ae> 8000b70: 0023 movs r3, r4 8000b72: 337f adds r3, #127 @ 0x7f 8000b74: 2b00 cmp r3, #0 8000b76: dc00 bgt.n 8000b7a <__aeabi_fmul+0xde> 8000b78: e0b1 b.n 8000cde <__aeabi_fmul+0x242> 8000b7a: 0015 movs r5, r2 8000b7c: 0771 lsls r1, r6, #29 8000b7e: d00b beq.n 8000b98 <__aeabi_fmul+0xfc> 8000b80: 200f movs r0, #15 8000b82: 0021 movs r1, r4 8000b84: 4030 ands r0, r6 8000b86: 2804 cmp r0, #4 8000b88: d006 beq.n 8000b98 <__aeabi_fmul+0xfc> 8000b8a: 3604 adds r6, #4 8000b8c: 0132 lsls r2, r6, #4 8000b8e: d503 bpl.n 8000b98 <__aeabi_fmul+0xfc> 8000b90: 4b6e ldr r3, [pc, #440] @ (8000d4c <__aeabi_fmul+0x2b0>) 8000b92: 401e ands r6, r3 8000b94: 000b movs r3, r1 8000b96: 3380 adds r3, #128 @ 0x80 8000b98: 2bfe cmp r3, #254 @ 0xfe 8000b9a: dd00 ble.n 8000b9e <__aeabi_fmul+0x102> 8000b9c: e0bd b.n 8000d1a <__aeabi_fmul+0x27e> 8000b9e: 01b2 lsls r2, r6, #6 8000ba0: 0a52 lsrs r2, r2, #9 8000ba2: b2db uxtb r3, r3 8000ba4: e048 b.n 8000c38 <__aeabi_fmul+0x19c> 8000ba6: 2e00 cmp r6, #0 8000ba8: d000 beq.n 8000bac <__aeabi_fmul+0x110> 8000baa: e092 b.n 8000cd2 <__aeabi_fmul+0x236> 8000bac: 2308 movs r3, #8 8000bae: 4699 mov r9, r3 8000bb0: 3b06 subs r3, #6 8000bb2: 469a mov sl, r3 8000bb4: 027b lsls r3, r7, #9 8000bb6: 0a5b lsrs r3, r3, #9 8000bb8: 4698 mov r8, r3 8000bba: 007b lsls r3, r7, #1 8000bbc: 24ff movs r4, #255 @ 0xff 8000bbe: 0e1b lsrs r3, r3, #24 8000bc0: 0fff lsrs r7, r7, #31 8000bc2: 2b00 cmp r3, #0 8000bc4: d18a bne.n 8000adc <__aeabi_fmul+0x40> 8000bc6: 4642 mov r2, r8 8000bc8: 2a00 cmp r2, #0 8000bca: d164 bne.n 8000c96 <__aeabi_fmul+0x1fa> 8000bcc: 4649 mov r1, r9 8000bce: 3201 adds r2, #1 8000bd0: 4311 orrs r1, r2 8000bd2: 4689 mov r9, r1 8000bd4: 290a cmp r1, #10 8000bd6: dc08 bgt.n 8000bea <__aeabi_fmul+0x14e> 8000bd8: 407d eors r5, r7 8000bda: 2001 movs r0, #1 8000bdc: b2ea uxtb r2, r5 8000bde: 2902 cmp r1, #2 8000be0: dc91 bgt.n 8000b06 <__aeabi_fmul+0x6a> 8000be2: 0015 movs r5, r2 8000be4: 2200 movs r2, #0 8000be6: e027 b.n 8000c38 <__aeabi_fmul+0x19c> 8000be8: 0015 movs r5, r2 8000bea: 4653 mov r3, sl 8000bec: 2b02 cmp r3, #2 8000bee: d100 bne.n 8000bf2 <__aeabi_fmul+0x156> 8000bf0: e093 b.n 8000d1a <__aeabi_fmul+0x27e> 8000bf2: 2b03 cmp r3, #3 8000bf4: d01a beq.n 8000c2c <__aeabi_fmul+0x190> 8000bf6: 2b01 cmp r3, #1 8000bf8: d12c bne.n 8000c54 <__aeabi_fmul+0x1b8> 8000bfa: 2300 movs r3, #0 8000bfc: 2200 movs r2, #0 8000bfe: e01b b.n 8000c38 <__aeabi_fmul+0x19c> 8000c00: 4643 mov r3, r8 8000c02: 34ff adds r4, #255 @ 0xff 8000c04: 2b00 cmp r3, #0 8000c06: d055 beq.n 8000cb4 <__aeabi_fmul+0x218> 8000c08: 2103 movs r1, #3 8000c0a: 464b mov r3, r9 8000c0c: 430b orrs r3, r1 8000c0e: 0019 movs r1, r3 8000c10: 2b0a cmp r3, #10 8000c12: dc00 bgt.n 8000c16 <__aeabi_fmul+0x17a> 8000c14: e092 b.n 8000d3c <__aeabi_fmul+0x2a0> 8000c16: 2b0f cmp r3, #15 8000c18: d000 beq.n 8000c1c <__aeabi_fmul+0x180> 8000c1a: e08c b.n 8000d36 <__aeabi_fmul+0x29a> 8000c1c: 2280 movs r2, #128 @ 0x80 8000c1e: 03d2 lsls r2, r2, #15 8000c20: 4216 tst r6, r2 8000c22: d003 beq.n 8000c2c <__aeabi_fmul+0x190> 8000c24: 4643 mov r3, r8 8000c26: 4213 tst r3, r2 8000c28: d100 bne.n 8000c2c <__aeabi_fmul+0x190> 8000c2a: e07d b.n 8000d28 <__aeabi_fmul+0x28c> 8000c2c: 2280 movs r2, #128 @ 0x80 8000c2e: 03d2 lsls r2, r2, #15 8000c30: 4332 orrs r2, r6 8000c32: 0252 lsls r2, r2, #9 8000c34: 0a52 lsrs r2, r2, #9 8000c36: 23ff movs r3, #255 @ 0xff 8000c38: 05d8 lsls r0, r3, #23 8000c3a: 07ed lsls r5, r5, #31 8000c3c: 4310 orrs r0, r2 8000c3e: 4328 orrs r0, r5 8000c40: bce0 pop {r5, r6, r7} 8000c42: 46ba mov sl, r7 8000c44: 46b1 mov r9, r6 8000c46: 46a8 mov r8, r5 8000c48: bdf0 pop {r4, r5, r6, r7, pc} 8000c4a: 2301 movs r3, #1 8000c4c: 0015 movs r5, r2 8000c4e: 0871 lsrs r1, r6, #1 8000c50: 401e ands r6, r3 8000c52: 430e orrs r6, r1 8000c54: 0023 movs r3, r4 8000c56: 3380 adds r3, #128 @ 0x80 8000c58: 1c61 adds r1, r4, #1 8000c5a: 2b00 cmp r3, #0 8000c5c: dd41 ble.n 8000ce2 <__aeabi_fmul+0x246> 8000c5e: 0772 lsls r2, r6, #29 8000c60: d094 beq.n 8000b8c <__aeabi_fmul+0xf0> 8000c62: 220f movs r2, #15 8000c64: 4032 ands r2, r6 8000c66: 2a04 cmp r2, #4 8000c68: d000 beq.n 8000c6c <__aeabi_fmul+0x1d0> 8000c6a: e78e b.n 8000b8a <__aeabi_fmul+0xee> 8000c6c: e78e b.n 8000b8c <__aeabi_fmul+0xf0> 8000c6e: 2e00 cmp r6, #0 8000c70: d105 bne.n 8000c7e <__aeabi_fmul+0x1e2> 8000c72: 2304 movs r3, #4 8000c74: 4699 mov r9, r3 8000c76: 3b03 subs r3, #3 8000c78: 2400 movs r4, #0 8000c7a: 469a mov sl, r3 8000c7c: e726 b.n 8000acc <__aeabi_fmul+0x30> 8000c7e: 0030 movs r0, r6 8000c80: f001 f9e8 bl 8002054 <__clzsi2> 8000c84: 2476 movs r4, #118 @ 0x76 8000c86: 1f43 subs r3, r0, #5 8000c88: 409e lsls r6, r3 8000c8a: 2300 movs r3, #0 8000c8c: 4264 negs r4, r4 8000c8e: 4699 mov r9, r3 8000c90: 469a mov sl, r3 8000c92: 1a24 subs r4, r4, r0 8000c94: e71a b.n 8000acc <__aeabi_fmul+0x30> 8000c96: 4640 mov r0, r8 8000c98: f001 f9dc bl 8002054 <__clzsi2> 8000c9c: 464b mov r3, r9 8000c9e: 1a24 subs r4, r4, r0 8000ca0: 3c76 subs r4, #118 @ 0x76 8000ca2: 2b0a cmp r3, #10 8000ca4: dca1 bgt.n 8000bea <__aeabi_fmul+0x14e> 8000ca6: 4643 mov r3, r8 8000ca8: 3805 subs r0, #5 8000caa: 4083 lsls r3, r0 8000cac: 407d eors r5, r7 8000cae: 4698 mov r8, r3 8000cb0: b2ea uxtb r2, r5 8000cb2: e724 b.n 8000afe <__aeabi_fmul+0x62> 8000cb4: 464a mov r2, r9 8000cb6: 3302 adds r3, #2 8000cb8: 4313 orrs r3, r2 8000cba: 002a movs r2, r5 8000cbc: 407a eors r2, r7 8000cbe: b2d2 uxtb r2, r2 8000cc0: 2b0a cmp r3, #10 8000cc2: dc92 bgt.n 8000bea <__aeabi_fmul+0x14e> 8000cc4: 4649 mov r1, r9 8000cc6: 0015 movs r5, r2 8000cc8: 2900 cmp r1, #0 8000cca: d026 beq.n 8000d1a <__aeabi_fmul+0x27e> 8000ccc: 4699 mov r9, r3 8000cce: 2002 movs r0, #2 8000cd0: e719 b.n 8000b06 <__aeabi_fmul+0x6a> 8000cd2: 230c movs r3, #12 8000cd4: 4699 mov r9, r3 8000cd6: 3b09 subs r3, #9 8000cd8: 24ff movs r4, #255 @ 0xff 8000cda: 469a mov sl, r3 8000cdc: e6f6 b.n 8000acc <__aeabi_fmul+0x30> 8000cde: 0015 movs r5, r2 8000ce0: 0021 movs r1, r4 8000ce2: 2201 movs r2, #1 8000ce4: 1ad3 subs r3, r2, r3 8000ce6: 2b1b cmp r3, #27 8000ce8: dd00 ble.n 8000cec <__aeabi_fmul+0x250> 8000cea: e786 b.n 8000bfa <__aeabi_fmul+0x15e> 8000cec: 319e adds r1, #158 @ 0x9e 8000cee: 0032 movs r2, r6 8000cf0: 408e lsls r6, r1 8000cf2: 40da lsrs r2, r3 8000cf4: 1e73 subs r3, r6, #1 8000cf6: 419e sbcs r6, r3 8000cf8: 4332 orrs r2, r6 8000cfa: 0753 lsls r3, r2, #29 8000cfc: d004 beq.n 8000d08 <__aeabi_fmul+0x26c> 8000cfe: 230f movs r3, #15 8000d00: 4013 ands r3, r2 8000d02: 2b04 cmp r3, #4 8000d04: d000 beq.n 8000d08 <__aeabi_fmul+0x26c> 8000d06: 3204 adds r2, #4 8000d08: 0153 lsls r3, r2, #5 8000d0a: d510 bpl.n 8000d2e <__aeabi_fmul+0x292> 8000d0c: 2301 movs r3, #1 8000d0e: 2200 movs r2, #0 8000d10: e792 b.n 8000c38 <__aeabi_fmul+0x19c> 8000d12: 003d movs r5, r7 8000d14: 4646 mov r6, r8 8000d16: 4682 mov sl, r0 8000d18: e767 b.n 8000bea <__aeabi_fmul+0x14e> 8000d1a: 23ff movs r3, #255 @ 0xff 8000d1c: 2200 movs r2, #0 8000d1e: e78b b.n 8000c38 <__aeabi_fmul+0x19c> 8000d20: 2280 movs r2, #128 @ 0x80 8000d22: 2500 movs r5, #0 8000d24: 03d2 lsls r2, r2, #15 8000d26: e786 b.n 8000c36 <__aeabi_fmul+0x19a> 8000d28: 003d movs r5, r7 8000d2a: 431a orrs r2, r3 8000d2c: e783 b.n 8000c36 <__aeabi_fmul+0x19a> 8000d2e: 0192 lsls r2, r2, #6 8000d30: 2300 movs r3, #0 8000d32: 0a52 lsrs r2, r2, #9 8000d34: e780 b.n 8000c38 <__aeabi_fmul+0x19c> 8000d36: 003d movs r5, r7 8000d38: 4646 mov r6, r8 8000d3a: e777 b.n 8000c2c <__aeabi_fmul+0x190> 8000d3c: 002a movs r2, r5 8000d3e: 2301 movs r3, #1 8000d40: 407a eors r2, r7 8000d42: 408b lsls r3, r1 8000d44: 2003 movs r0, #3 8000d46: b2d2 uxtb r2, r2 8000d48: e6e9 b.n 8000b1e <__aeabi_fmul+0x82> 8000d4a: 46c0 nop @ (mov r8, r8) 8000d4c: f7ffffff .word 0xf7ffffff 08000d50 <__aeabi_fsub>: 8000d50: b5f8 push {r3, r4, r5, r6, r7, lr} 8000d52: 4647 mov r7, r8 8000d54: 46ce mov lr, r9 8000d56: 0243 lsls r3, r0, #9 8000d58: b580 push {r7, lr} 8000d5a: 0a5f lsrs r7, r3, #9 8000d5c: 099b lsrs r3, r3, #6 8000d5e: 0045 lsls r5, r0, #1 8000d60: 004a lsls r2, r1, #1 8000d62: 469c mov ip, r3 8000d64: 024b lsls r3, r1, #9 8000d66: 0fc4 lsrs r4, r0, #31 8000d68: 0fce lsrs r6, r1, #31 8000d6a: 0e2d lsrs r5, r5, #24 8000d6c: 0a58 lsrs r0, r3, #9 8000d6e: 0e12 lsrs r2, r2, #24 8000d70: 0999 lsrs r1, r3, #6 8000d72: 2aff cmp r2, #255 @ 0xff 8000d74: d06b beq.n 8000e4e <__aeabi_fsub+0xfe> 8000d76: 2301 movs r3, #1 8000d78: 405e eors r6, r3 8000d7a: 1aab subs r3, r5, r2 8000d7c: 42b4 cmp r4, r6 8000d7e: d04b beq.n 8000e18 <__aeabi_fsub+0xc8> 8000d80: 2b00 cmp r3, #0 8000d82: dc00 bgt.n 8000d86 <__aeabi_fsub+0x36> 8000d84: e0ff b.n 8000f86 <__aeabi_fsub+0x236> 8000d86: 2a00 cmp r2, #0 8000d88: d100 bne.n 8000d8c <__aeabi_fsub+0x3c> 8000d8a: e088 b.n 8000e9e <__aeabi_fsub+0x14e> 8000d8c: 2dff cmp r5, #255 @ 0xff 8000d8e: d100 bne.n 8000d92 <__aeabi_fsub+0x42> 8000d90: e0ef b.n 8000f72 <__aeabi_fsub+0x222> 8000d92: 2280 movs r2, #128 @ 0x80 8000d94: 04d2 lsls r2, r2, #19 8000d96: 4311 orrs r1, r2 8000d98: 2001 movs r0, #1 8000d9a: 2b1b cmp r3, #27 8000d9c: dc08 bgt.n 8000db0 <__aeabi_fsub+0x60> 8000d9e: 0008 movs r0, r1 8000da0: 2220 movs r2, #32 8000da2: 40d8 lsrs r0, r3 8000da4: 1ad3 subs r3, r2, r3 8000da6: 4099 lsls r1, r3 8000da8: 000b movs r3, r1 8000daa: 1e5a subs r2, r3, #1 8000dac: 4193 sbcs r3, r2 8000dae: 4318 orrs r0, r3 8000db0: 4663 mov r3, ip 8000db2: 1a1b subs r3, r3, r0 8000db4: 469c mov ip, r3 8000db6: 4663 mov r3, ip 8000db8: 015b lsls r3, r3, #5 8000dba: d400 bmi.n 8000dbe <__aeabi_fsub+0x6e> 8000dbc: e0cd b.n 8000f5a <__aeabi_fsub+0x20a> 8000dbe: 4663 mov r3, ip 8000dc0: 019f lsls r7, r3, #6 8000dc2: 09bf lsrs r7, r7, #6 8000dc4: 0038 movs r0, r7 8000dc6: f001 f945 bl 8002054 <__clzsi2> 8000dca: 003b movs r3, r7 8000dcc: 3805 subs r0, #5 8000dce: 4083 lsls r3, r0 8000dd0: 4285 cmp r5, r0 8000dd2: dc00 bgt.n 8000dd6 <__aeabi_fsub+0x86> 8000dd4: e0a2 b.n 8000f1c <__aeabi_fsub+0x1cc> 8000dd6: 4ab7 ldr r2, [pc, #732] @ (80010b4 <__aeabi_fsub+0x364>) 8000dd8: 1a2d subs r5, r5, r0 8000dda: 401a ands r2, r3 8000ddc: 4694 mov ip, r2 8000dde: 075a lsls r2, r3, #29 8000de0: d100 bne.n 8000de4 <__aeabi_fsub+0x94> 8000de2: e0c3 b.n 8000f6c <__aeabi_fsub+0x21c> 8000de4: 220f movs r2, #15 8000de6: 4013 ands r3, r2 8000de8: 2b04 cmp r3, #4 8000dea: d100 bne.n 8000dee <__aeabi_fsub+0x9e> 8000dec: e0be b.n 8000f6c <__aeabi_fsub+0x21c> 8000dee: 2304 movs r3, #4 8000df0: 4698 mov r8, r3 8000df2: 44c4 add ip, r8 8000df4: 4663 mov r3, ip 8000df6: 015b lsls r3, r3, #5 8000df8: d400 bmi.n 8000dfc <__aeabi_fsub+0xac> 8000dfa: e0b7 b.n 8000f6c <__aeabi_fsub+0x21c> 8000dfc: 1c68 adds r0, r5, #1 8000dfe: 2dfe cmp r5, #254 @ 0xfe 8000e00: d000 beq.n 8000e04 <__aeabi_fsub+0xb4> 8000e02: e0a5 b.n 8000f50 <__aeabi_fsub+0x200> 8000e04: 20ff movs r0, #255 @ 0xff 8000e06: 2200 movs r2, #0 8000e08: 05c0 lsls r0, r0, #23 8000e0a: 4310 orrs r0, r2 8000e0c: 07e4 lsls r4, r4, #31 8000e0e: 4320 orrs r0, r4 8000e10: bcc0 pop {r6, r7} 8000e12: 46b9 mov r9, r7 8000e14: 46b0 mov r8, r6 8000e16: bdf8 pop {r3, r4, r5, r6, r7, pc} 8000e18: 2b00 cmp r3, #0 8000e1a: dc00 bgt.n 8000e1e <__aeabi_fsub+0xce> 8000e1c: e1eb b.n 80011f6 <__aeabi_fsub+0x4a6> 8000e1e: 2a00 cmp r2, #0 8000e20: d046 beq.n 8000eb0 <__aeabi_fsub+0x160> 8000e22: 2dff cmp r5, #255 @ 0xff 8000e24: d100 bne.n 8000e28 <__aeabi_fsub+0xd8> 8000e26: e0a4 b.n 8000f72 <__aeabi_fsub+0x222> 8000e28: 2280 movs r2, #128 @ 0x80 8000e2a: 04d2 lsls r2, r2, #19 8000e2c: 4311 orrs r1, r2 8000e2e: 2b1b cmp r3, #27 8000e30: dc00 bgt.n 8000e34 <__aeabi_fsub+0xe4> 8000e32: e0fb b.n 800102c <__aeabi_fsub+0x2dc> 8000e34: 2305 movs r3, #5 8000e36: 4698 mov r8, r3 8000e38: 002b movs r3, r5 8000e3a: 44c4 add ip, r8 8000e3c: 4662 mov r2, ip 8000e3e: 08d7 lsrs r7, r2, #3 8000e40: 2bff cmp r3, #255 @ 0xff 8000e42: d100 bne.n 8000e46 <__aeabi_fsub+0xf6> 8000e44: e095 b.n 8000f72 <__aeabi_fsub+0x222> 8000e46: 027a lsls r2, r7, #9 8000e48: 0a52 lsrs r2, r2, #9 8000e4a: b2d8 uxtb r0, r3 8000e4c: e7dc b.n 8000e08 <__aeabi_fsub+0xb8> 8000e4e: 002b movs r3, r5 8000e50: 3bff subs r3, #255 @ 0xff 8000e52: 4699 mov r9, r3 8000e54: 2900 cmp r1, #0 8000e56: d118 bne.n 8000e8a <__aeabi_fsub+0x13a> 8000e58: 2301 movs r3, #1 8000e5a: 405e eors r6, r3 8000e5c: 42b4 cmp r4, r6 8000e5e: d100 bne.n 8000e62 <__aeabi_fsub+0x112> 8000e60: e0ca b.n 8000ff8 <__aeabi_fsub+0x2a8> 8000e62: 464b mov r3, r9 8000e64: 2b00 cmp r3, #0 8000e66: d02d beq.n 8000ec4 <__aeabi_fsub+0x174> 8000e68: 2d00 cmp r5, #0 8000e6a: d000 beq.n 8000e6e <__aeabi_fsub+0x11e> 8000e6c: e13c b.n 80010e8 <__aeabi_fsub+0x398> 8000e6e: 23ff movs r3, #255 @ 0xff 8000e70: 4664 mov r4, ip 8000e72: 2c00 cmp r4, #0 8000e74: d100 bne.n 8000e78 <__aeabi_fsub+0x128> 8000e76: e15f b.n 8001138 <__aeabi_fsub+0x3e8> 8000e78: 1e5d subs r5, r3, #1 8000e7a: 2b01 cmp r3, #1 8000e7c: d100 bne.n 8000e80 <__aeabi_fsub+0x130> 8000e7e: e174 b.n 800116a <__aeabi_fsub+0x41a> 8000e80: 0034 movs r4, r6 8000e82: 2bff cmp r3, #255 @ 0xff 8000e84: d074 beq.n 8000f70 <__aeabi_fsub+0x220> 8000e86: 002b movs r3, r5 8000e88: e103 b.n 8001092 <__aeabi_fsub+0x342> 8000e8a: 42b4 cmp r4, r6 8000e8c: d100 bne.n 8000e90 <__aeabi_fsub+0x140> 8000e8e: e09c b.n 8000fca <__aeabi_fsub+0x27a> 8000e90: 2b00 cmp r3, #0 8000e92: d017 beq.n 8000ec4 <__aeabi_fsub+0x174> 8000e94: 2d00 cmp r5, #0 8000e96: d0ea beq.n 8000e6e <__aeabi_fsub+0x11e> 8000e98: 0007 movs r7, r0 8000e9a: 0034 movs r4, r6 8000e9c: e06c b.n 8000f78 <__aeabi_fsub+0x228> 8000e9e: 2900 cmp r1, #0 8000ea0: d0cc beq.n 8000e3c <__aeabi_fsub+0xec> 8000ea2: 1e5a subs r2, r3, #1 8000ea4: 2b01 cmp r3, #1 8000ea6: d02b beq.n 8000f00 <__aeabi_fsub+0x1b0> 8000ea8: 2bff cmp r3, #255 @ 0xff 8000eaa: d062 beq.n 8000f72 <__aeabi_fsub+0x222> 8000eac: 0013 movs r3, r2 8000eae: e773 b.n 8000d98 <__aeabi_fsub+0x48> 8000eb0: 2900 cmp r1, #0 8000eb2: d0c3 beq.n 8000e3c <__aeabi_fsub+0xec> 8000eb4: 1e5a subs r2, r3, #1 8000eb6: 2b01 cmp r3, #1 8000eb8: d100 bne.n 8000ebc <__aeabi_fsub+0x16c> 8000eba: e11e b.n 80010fa <__aeabi_fsub+0x3aa> 8000ebc: 2bff cmp r3, #255 @ 0xff 8000ebe: d058 beq.n 8000f72 <__aeabi_fsub+0x222> 8000ec0: 0013 movs r3, r2 8000ec2: e7b4 b.n 8000e2e <__aeabi_fsub+0xde> 8000ec4: 22fe movs r2, #254 @ 0xfe 8000ec6: 1c6b adds r3, r5, #1 8000ec8: 421a tst r2, r3 8000eca: d10d bne.n 8000ee8 <__aeabi_fsub+0x198> 8000ecc: 2d00 cmp r5, #0 8000ece: d060 beq.n 8000f92 <__aeabi_fsub+0x242> 8000ed0: 4663 mov r3, ip 8000ed2: 2b00 cmp r3, #0 8000ed4: d000 beq.n 8000ed8 <__aeabi_fsub+0x188> 8000ed6: e120 b.n 800111a <__aeabi_fsub+0x3ca> 8000ed8: 2900 cmp r1, #0 8000eda: d000 beq.n 8000ede <__aeabi_fsub+0x18e> 8000edc: e128 b.n 8001130 <__aeabi_fsub+0x3e0> 8000ede: 2280 movs r2, #128 @ 0x80 8000ee0: 2400 movs r4, #0 8000ee2: 20ff movs r0, #255 @ 0xff 8000ee4: 03d2 lsls r2, r2, #15 8000ee6: e78f b.n 8000e08 <__aeabi_fsub+0xb8> 8000ee8: 4663 mov r3, ip 8000eea: 1a5f subs r7, r3, r1 8000eec: 017b lsls r3, r7, #5 8000eee: d500 bpl.n 8000ef2 <__aeabi_fsub+0x1a2> 8000ef0: e0fe b.n 80010f0 <__aeabi_fsub+0x3a0> 8000ef2: 2f00 cmp r7, #0 8000ef4: d000 beq.n 8000ef8 <__aeabi_fsub+0x1a8> 8000ef6: e765 b.n 8000dc4 <__aeabi_fsub+0x74> 8000ef8: 2400 movs r4, #0 8000efa: 2000 movs r0, #0 8000efc: 2200 movs r2, #0 8000efe: e783 b.n 8000e08 <__aeabi_fsub+0xb8> 8000f00: 4663 mov r3, ip 8000f02: 1a59 subs r1, r3, r1 8000f04: 014b lsls r3, r1, #5 8000f06: d400 bmi.n 8000f0a <__aeabi_fsub+0x1ba> 8000f08: e119 b.n 800113e <__aeabi_fsub+0x3ee> 8000f0a: 018f lsls r7, r1, #6 8000f0c: 09bf lsrs r7, r7, #6 8000f0e: 0038 movs r0, r7 8000f10: f001 f8a0 bl 8002054 <__clzsi2> 8000f14: 003b movs r3, r7 8000f16: 3805 subs r0, #5 8000f18: 4083 lsls r3, r0 8000f1a: 2501 movs r5, #1 8000f1c: 2220 movs r2, #32 8000f1e: 1b40 subs r0, r0, r5 8000f20: 3001 adds r0, #1 8000f22: 1a12 subs r2, r2, r0 8000f24: 0019 movs r1, r3 8000f26: 4093 lsls r3, r2 8000f28: 40c1 lsrs r1, r0 8000f2a: 1e5a subs r2, r3, #1 8000f2c: 4193 sbcs r3, r2 8000f2e: 4319 orrs r1, r3 8000f30: 468c mov ip, r1 8000f32: 1e0b subs r3, r1, #0 8000f34: d0e1 beq.n 8000efa <__aeabi_fsub+0x1aa> 8000f36: 075b lsls r3, r3, #29 8000f38: d100 bne.n 8000f3c <__aeabi_fsub+0x1ec> 8000f3a: e152 b.n 80011e2 <__aeabi_fsub+0x492> 8000f3c: 230f movs r3, #15 8000f3e: 2500 movs r5, #0 8000f40: 400b ands r3, r1 8000f42: 2b04 cmp r3, #4 8000f44: d000 beq.n 8000f48 <__aeabi_fsub+0x1f8> 8000f46: e752 b.n 8000dee <__aeabi_fsub+0x9e> 8000f48: 2001 movs r0, #1 8000f4a: 014a lsls r2, r1, #5 8000f4c: d400 bmi.n 8000f50 <__aeabi_fsub+0x200> 8000f4e: e092 b.n 8001076 <__aeabi_fsub+0x326> 8000f50: b2c0 uxtb r0, r0 8000f52: 4663 mov r3, ip 8000f54: 019a lsls r2, r3, #6 8000f56: 0a52 lsrs r2, r2, #9 8000f58: e756 b.n 8000e08 <__aeabi_fsub+0xb8> 8000f5a: 4663 mov r3, ip 8000f5c: 075b lsls r3, r3, #29 8000f5e: d005 beq.n 8000f6c <__aeabi_fsub+0x21c> 8000f60: 230f movs r3, #15 8000f62: 4662 mov r2, ip 8000f64: 4013 ands r3, r2 8000f66: 2b04 cmp r3, #4 8000f68: d000 beq.n 8000f6c <__aeabi_fsub+0x21c> 8000f6a: e740 b.n 8000dee <__aeabi_fsub+0x9e> 8000f6c: 002b movs r3, r5 8000f6e: e765 b.n 8000e3c <__aeabi_fsub+0xec> 8000f70: 0007 movs r7, r0 8000f72: 2f00 cmp r7, #0 8000f74: d100 bne.n 8000f78 <__aeabi_fsub+0x228> 8000f76: e745 b.n 8000e04 <__aeabi_fsub+0xb4> 8000f78: 2280 movs r2, #128 @ 0x80 8000f7a: 03d2 lsls r2, r2, #15 8000f7c: 433a orrs r2, r7 8000f7e: 0252 lsls r2, r2, #9 8000f80: 20ff movs r0, #255 @ 0xff 8000f82: 0a52 lsrs r2, r2, #9 8000f84: e740 b.n 8000e08 <__aeabi_fsub+0xb8> 8000f86: 2b00 cmp r3, #0 8000f88: d179 bne.n 800107e <__aeabi_fsub+0x32e> 8000f8a: 22fe movs r2, #254 @ 0xfe 8000f8c: 1c6b adds r3, r5, #1 8000f8e: 421a tst r2, r3 8000f90: d1aa bne.n 8000ee8 <__aeabi_fsub+0x198> 8000f92: 4663 mov r3, ip 8000f94: 2b00 cmp r3, #0 8000f96: d100 bne.n 8000f9a <__aeabi_fsub+0x24a> 8000f98: e0f5 b.n 8001186 <__aeabi_fsub+0x436> 8000f9a: 2900 cmp r1, #0 8000f9c: d100 bne.n 8000fa0 <__aeabi_fsub+0x250> 8000f9e: e0d1 b.n 8001144 <__aeabi_fsub+0x3f4> 8000fa0: 1a5f subs r7, r3, r1 8000fa2: 2380 movs r3, #128 @ 0x80 8000fa4: 04db lsls r3, r3, #19 8000fa6: 421f tst r7, r3 8000fa8: d100 bne.n 8000fac <__aeabi_fsub+0x25c> 8000faa: e10e b.n 80011ca <__aeabi_fsub+0x47a> 8000fac: 4662 mov r2, ip 8000fae: 2401 movs r4, #1 8000fb0: 1a8a subs r2, r1, r2 8000fb2: 4694 mov ip, r2 8000fb4: 2000 movs r0, #0 8000fb6: 4034 ands r4, r6 8000fb8: 2a00 cmp r2, #0 8000fba: d100 bne.n 8000fbe <__aeabi_fsub+0x26e> 8000fbc: e724 b.n 8000e08 <__aeabi_fsub+0xb8> 8000fbe: 2001 movs r0, #1 8000fc0: 421a tst r2, r3 8000fc2: d1c6 bne.n 8000f52 <__aeabi_fsub+0x202> 8000fc4: 2300 movs r3, #0 8000fc6: 08d7 lsrs r7, r2, #3 8000fc8: e73d b.n 8000e46 <__aeabi_fsub+0xf6> 8000fca: 2b00 cmp r3, #0 8000fcc: d017 beq.n 8000ffe <__aeabi_fsub+0x2ae> 8000fce: 2d00 cmp r5, #0 8000fd0: d000 beq.n 8000fd4 <__aeabi_fsub+0x284> 8000fd2: e0af b.n 8001134 <__aeabi_fsub+0x3e4> 8000fd4: 23ff movs r3, #255 @ 0xff 8000fd6: 4665 mov r5, ip 8000fd8: 2d00 cmp r5, #0 8000fda: d100 bne.n 8000fde <__aeabi_fsub+0x28e> 8000fdc: e0ad b.n 800113a <__aeabi_fsub+0x3ea> 8000fde: 1e5e subs r6, r3, #1 8000fe0: 2b01 cmp r3, #1 8000fe2: d100 bne.n 8000fe6 <__aeabi_fsub+0x296> 8000fe4: e089 b.n 80010fa <__aeabi_fsub+0x3aa> 8000fe6: 2bff cmp r3, #255 @ 0xff 8000fe8: d0c2 beq.n 8000f70 <__aeabi_fsub+0x220> 8000fea: 2e1b cmp r6, #27 8000fec: dc00 bgt.n 8000ff0 <__aeabi_fsub+0x2a0> 8000fee: e0ab b.n 8001148 <__aeabi_fsub+0x3f8> 8000ff0: 1d4b adds r3, r1, #5 8000ff2: 469c mov ip, r3 8000ff4: 0013 movs r3, r2 8000ff6: e721 b.n 8000e3c <__aeabi_fsub+0xec> 8000ff8: 464b mov r3, r9 8000ffa: 2b00 cmp r3, #0 8000ffc: d170 bne.n 80010e0 <__aeabi_fsub+0x390> 8000ffe: 22fe movs r2, #254 @ 0xfe 8001000: 1c6b adds r3, r5, #1 8001002: 421a tst r2, r3 8001004: d15e bne.n 80010c4 <__aeabi_fsub+0x374> 8001006: 2d00 cmp r5, #0 8001008: d000 beq.n 800100c <__aeabi_fsub+0x2bc> 800100a: e0c3 b.n 8001194 <__aeabi_fsub+0x444> 800100c: 4663 mov r3, ip 800100e: 2b00 cmp r3, #0 8001010: d100 bne.n 8001014 <__aeabi_fsub+0x2c4> 8001012: e0d0 b.n 80011b6 <__aeabi_fsub+0x466> 8001014: 2900 cmp r1, #0 8001016: d100 bne.n 800101a <__aeabi_fsub+0x2ca> 8001018: e094 b.n 8001144 <__aeabi_fsub+0x3f4> 800101a: 000a movs r2, r1 800101c: 4462 add r2, ip 800101e: 0153 lsls r3, r2, #5 8001020: d400 bmi.n 8001024 <__aeabi_fsub+0x2d4> 8001022: e0d8 b.n 80011d6 <__aeabi_fsub+0x486> 8001024: 0192 lsls r2, r2, #6 8001026: 2001 movs r0, #1 8001028: 0a52 lsrs r2, r2, #9 800102a: e6ed b.n 8000e08 <__aeabi_fsub+0xb8> 800102c: 0008 movs r0, r1 800102e: 2220 movs r2, #32 8001030: 40d8 lsrs r0, r3 8001032: 1ad3 subs r3, r2, r3 8001034: 4099 lsls r1, r3 8001036: 000b movs r3, r1 8001038: 1e5a subs r2, r3, #1 800103a: 4193 sbcs r3, r2 800103c: 4303 orrs r3, r0 800103e: 449c add ip, r3 8001040: 4663 mov r3, ip 8001042: 015b lsls r3, r3, #5 8001044: d589 bpl.n 8000f5a <__aeabi_fsub+0x20a> 8001046: 3501 adds r5, #1 8001048: 2dff cmp r5, #255 @ 0xff 800104a: d100 bne.n 800104e <__aeabi_fsub+0x2fe> 800104c: e6da b.n 8000e04 <__aeabi_fsub+0xb4> 800104e: 4662 mov r2, ip 8001050: 2301 movs r3, #1 8001052: 4919 ldr r1, [pc, #100] @ (80010b8 <__aeabi_fsub+0x368>) 8001054: 4013 ands r3, r2 8001056: 0852 lsrs r2, r2, #1 8001058: 400a ands r2, r1 800105a: 431a orrs r2, r3 800105c: 0013 movs r3, r2 800105e: 4694 mov ip, r2 8001060: 075b lsls r3, r3, #29 8001062: d004 beq.n 800106e <__aeabi_fsub+0x31e> 8001064: 230f movs r3, #15 8001066: 4013 ands r3, r2 8001068: 2b04 cmp r3, #4 800106a: d000 beq.n 800106e <__aeabi_fsub+0x31e> 800106c: e6bf b.n 8000dee <__aeabi_fsub+0x9e> 800106e: 4663 mov r3, ip 8001070: 015b lsls r3, r3, #5 8001072: d500 bpl.n 8001076 <__aeabi_fsub+0x326> 8001074: e6c2 b.n 8000dfc <__aeabi_fsub+0xac> 8001076: 4663 mov r3, ip 8001078: 08df lsrs r7, r3, #3 800107a: 002b movs r3, r5 800107c: e6e3 b.n 8000e46 <__aeabi_fsub+0xf6> 800107e: 1b53 subs r3, r2, r5 8001080: 2d00 cmp r5, #0 8001082: d100 bne.n 8001086 <__aeabi_fsub+0x336> 8001084: e6f4 b.n 8000e70 <__aeabi_fsub+0x120> 8001086: 2080 movs r0, #128 @ 0x80 8001088: 4664 mov r4, ip 800108a: 04c0 lsls r0, r0, #19 800108c: 4304 orrs r4, r0 800108e: 46a4 mov ip, r4 8001090: 0034 movs r4, r6 8001092: 2001 movs r0, #1 8001094: 2b1b cmp r3, #27 8001096: dc09 bgt.n 80010ac <__aeabi_fsub+0x35c> 8001098: 2520 movs r5, #32 800109a: 4660 mov r0, ip 800109c: 40d8 lsrs r0, r3 800109e: 1aeb subs r3, r5, r3 80010a0: 4665 mov r5, ip 80010a2: 409d lsls r5, r3 80010a4: 002b movs r3, r5 80010a6: 1e5d subs r5, r3, #1 80010a8: 41ab sbcs r3, r5 80010aa: 4318 orrs r0, r3 80010ac: 1a0b subs r3, r1, r0 80010ae: 469c mov ip, r3 80010b0: 0015 movs r5, r2 80010b2: e680 b.n 8000db6 <__aeabi_fsub+0x66> 80010b4: fbffffff .word 0xfbffffff 80010b8: 7dffffff .word 0x7dffffff 80010bc: 22fe movs r2, #254 @ 0xfe 80010be: 1c6b adds r3, r5, #1 80010c0: 4213 tst r3, r2 80010c2: d0a3 beq.n 800100c <__aeabi_fsub+0x2bc> 80010c4: 2bff cmp r3, #255 @ 0xff 80010c6: d100 bne.n 80010ca <__aeabi_fsub+0x37a> 80010c8: e69c b.n 8000e04 <__aeabi_fsub+0xb4> 80010ca: 4461 add r1, ip 80010cc: 0849 lsrs r1, r1, #1 80010ce: 074a lsls r2, r1, #29 80010d0: d049 beq.n 8001166 <__aeabi_fsub+0x416> 80010d2: 220f movs r2, #15 80010d4: 400a ands r2, r1 80010d6: 2a04 cmp r2, #4 80010d8: d045 beq.n 8001166 <__aeabi_fsub+0x416> 80010da: 1d0a adds r2, r1, #4 80010dc: 4694 mov ip, r2 80010de: e6ad b.n 8000e3c <__aeabi_fsub+0xec> 80010e0: 2d00 cmp r5, #0 80010e2: d100 bne.n 80010e6 <__aeabi_fsub+0x396> 80010e4: e776 b.n 8000fd4 <__aeabi_fsub+0x284> 80010e6: e68d b.n 8000e04 <__aeabi_fsub+0xb4> 80010e8: 0034 movs r4, r6 80010ea: 20ff movs r0, #255 @ 0xff 80010ec: 2200 movs r2, #0 80010ee: e68b b.n 8000e08 <__aeabi_fsub+0xb8> 80010f0: 4663 mov r3, ip 80010f2: 2401 movs r4, #1 80010f4: 1acf subs r7, r1, r3 80010f6: 4034 ands r4, r6 80010f8: e664 b.n 8000dc4 <__aeabi_fsub+0x74> 80010fa: 4461 add r1, ip 80010fc: 014b lsls r3, r1, #5 80010fe: d56d bpl.n 80011dc <__aeabi_fsub+0x48c> 8001100: 0848 lsrs r0, r1, #1 8001102: 4944 ldr r1, [pc, #272] @ (8001214 <__aeabi_fsub+0x4c4>) 8001104: 4001 ands r1, r0 8001106: 0743 lsls r3, r0, #29 8001108: d02c beq.n 8001164 <__aeabi_fsub+0x414> 800110a: 230f movs r3, #15 800110c: 4003 ands r3, r0 800110e: 2b04 cmp r3, #4 8001110: d028 beq.n 8001164 <__aeabi_fsub+0x414> 8001112: 1d0b adds r3, r1, #4 8001114: 469c mov ip, r3 8001116: 2302 movs r3, #2 8001118: e690 b.n 8000e3c <__aeabi_fsub+0xec> 800111a: 2900 cmp r1, #0 800111c: d100 bne.n 8001120 <__aeabi_fsub+0x3d0> 800111e: e72b b.n 8000f78 <__aeabi_fsub+0x228> 8001120: 2380 movs r3, #128 @ 0x80 8001122: 03db lsls r3, r3, #15 8001124: 429f cmp r7, r3 8001126: d200 bcs.n 800112a <__aeabi_fsub+0x3da> 8001128: e726 b.n 8000f78 <__aeabi_fsub+0x228> 800112a: 4298 cmp r0, r3 800112c: d300 bcc.n 8001130 <__aeabi_fsub+0x3e0> 800112e: e723 b.n 8000f78 <__aeabi_fsub+0x228> 8001130: 2401 movs r4, #1 8001132: 4034 ands r4, r6 8001134: 0007 movs r7, r0 8001136: e71f b.n 8000f78 <__aeabi_fsub+0x228> 8001138: 0034 movs r4, r6 800113a: 468c mov ip, r1 800113c: e67e b.n 8000e3c <__aeabi_fsub+0xec> 800113e: 2301 movs r3, #1 8001140: 08cf lsrs r7, r1, #3 8001142: e680 b.n 8000e46 <__aeabi_fsub+0xf6> 8001144: 2300 movs r3, #0 8001146: e67e b.n 8000e46 <__aeabi_fsub+0xf6> 8001148: 2020 movs r0, #32 800114a: 4665 mov r5, ip 800114c: 1b80 subs r0, r0, r6 800114e: 4085 lsls r5, r0 8001150: 4663 mov r3, ip 8001152: 0028 movs r0, r5 8001154: 40f3 lsrs r3, r6 8001156: 1e45 subs r5, r0, #1 8001158: 41a8 sbcs r0, r5 800115a: 4303 orrs r3, r0 800115c: 469c mov ip, r3 800115e: 0015 movs r5, r2 8001160: 448c add ip, r1 8001162: e76d b.n 8001040 <__aeabi_fsub+0x2f0> 8001164: 2302 movs r3, #2 8001166: 08cf lsrs r7, r1, #3 8001168: e66d b.n 8000e46 <__aeabi_fsub+0xf6> 800116a: 1b0f subs r7, r1, r4 800116c: 017b lsls r3, r7, #5 800116e: d528 bpl.n 80011c2 <__aeabi_fsub+0x472> 8001170: 01bf lsls r7, r7, #6 8001172: 09bf lsrs r7, r7, #6 8001174: 0038 movs r0, r7 8001176: f000 ff6d bl 8002054 <__clzsi2> 800117a: 003b movs r3, r7 800117c: 3805 subs r0, #5 800117e: 4083 lsls r3, r0 8001180: 0034 movs r4, r6 8001182: 2501 movs r5, #1 8001184: e6ca b.n 8000f1c <__aeabi_fsub+0x1cc> 8001186: 2900 cmp r1, #0 8001188: d100 bne.n 800118c <__aeabi_fsub+0x43c> 800118a: e6b5 b.n 8000ef8 <__aeabi_fsub+0x1a8> 800118c: 2401 movs r4, #1 800118e: 0007 movs r7, r0 8001190: 4034 ands r4, r6 8001192: e658 b.n 8000e46 <__aeabi_fsub+0xf6> 8001194: 4663 mov r3, ip 8001196: 2b00 cmp r3, #0 8001198: d100 bne.n 800119c <__aeabi_fsub+0x44c> 800119a: e6e9 b.n 8000f70 <__aeabi_fsub+0x220> 800119c: 2900 cmp r1, #0 800119e: d100 bne.n 80011a2 <__aeabi_fsub+0x452> 80011a0: e6ea b.n 8000f78 <__aeabi_fsub+0x228> 80011a2: 2380 movs r3, #128 @ 0x80 80011a4: 03db lsls r3, r3, #15 80011a6: 429f cmp r7, r3 80011a8: d200 bcs.n 80011ac <__aeabi_fsub+0x45c> 80011aa: e6e5 b.n 8000f78 <__aeabi_fsub+0x228> 80011ac: 4298 cmp r0, r3 80011ae: d300 bcc.n 80011b2 <__aeabi_fsub+0x462> 80011b0: e6e2 b.n 8000f78 <__aeabi_fsub+0x228> 80011b2: 0007 movs r7, r0 80011b4: e6e0 b.n 8000f78 <__aeabi_fsub+0x228> 80011b6: 2900 cmp r1, #0 80011b8: d100 bne.n 80011bc <__aeabi_fsub+0x46c> 80011ba: e69e b.n 8000efa <__aeabi_fsub+0x1aa> 80011bc: 2300 movs r3, #0 80011be: 08cf lsrs r7, r1, #3 80011c0: e641 b.n 8000e46 <__aeabi_fsub+0xf6> 80011c2: 0034 movs r4, r6 80011c4: 2301 movs r3, #1 80011c6: 08ff lsrs r7, r7, #3 80011c8: e63d b.n 8000e46 <__aeabi_fsub+0xf6> 80011ca: 2f00 cmp r7, #0 80011cc: d100 bne.n 80011d0 <__aeabi_fsub+0x480> 80011ce: e693 b.n 8000ef8 <__aeabi_fsub+0x1a8> 80011d0: 2300 movs r3, #0 80011d2: 08ff lsrs r7, r7, #3 80011d4: e637 b.n 8000e46 <__aeabi_fsub+0xf6> 80011d6: 2300 movs r3, #0 80011d8: 08d7 lsrs r7, r2, #3 80011da: e634 b.n 8000e46 <__aeabi_fsub+0xf6> 80011dc: 2301 movs r3, #1 80011de: 08cf lsrs r7, r1, #3 80011e0: e631 b.n 8000e46 <__aeabi_fsub+0xf6> 80011e2: 2280 movs r2, #128 @ 0x80 80011e4: 000b movs r3, r1 80011e6: 04d2 lsls r2, r2, #19 80011e8: 2001 movs r0, #1 80011ea: 4013 ands r3, r2 80011ec: 4211 tst r1, r2 80011ee: d000 beq.n 80011f2 <__aeabi_fsub+0x4a2> 80011f0: e6ae b.n 8000f50 <__aeabi_fsub+0x200> 80011f2: 08cf lsrs r7, r1, #3 80011f4: e627 b.n 8000e46 <__aeabi_fsub+0xf6> 80011f6: 2b00 cmp r3, #0 80011f8: d100 bne.n 80011fc <__aeabi_fsub+0x4ac> 80011fa: e75f b.n 80010bc <__aeabi_fsub+0x36c> 80011fc: 1b56 subs r6, r2, r5 80011fe: 2d00 cmp r5, #0 8001200: d101 bne.n 8001206 <__aeabi_fsub+0x4b6> 8001202: 0033 movs r3, r6 8001204: e6e7 b.n 8000fd6 <__aeabi_fsub+0x286> 8001206: 2380 movs r3, #128 @ 0x80 8001208: 4660 mov r0, ip 800120a: 04db lsls r3, r3, #19 800120c: 4318 orrs r0, r3 800120e: 4684 mov ip, r0 8001210: e6eb b.n 8000fea <__aeabi_fsub+0x29a> 8001212: 46c0 nop @ (mov r8, r8) 8001214: 7dffffff .word 0x7dffffff 08001218 <__aeabi_f2iz>: 8001218: 0241 lsls r1, r0, #9 800121a: 0042 lsls r2, r0, #1 800121c: 0fc3 lsrs r3, r0, #31 800121e: 0a49 lsrs r1, r1, #9 8001220: 2000 movs r0, #0 8001222: 0e12 lsrs r2, r2, #24 8001224: 2a7e cmp r2, #126 @ 0x7e 8001226: dd03 ble.n 8001230 <__aeabi_f2iz+0x18> 8001228: 2a9d cmp r2, #157 @ 0x9d 800122a: dd02 ble.n 8001232 <__aeabi_f2iz+0x1a> 800122c: 4a09 ldr r2, [pc, #36] @ (8001254 <__aeabi_f2iz+0x3c>) 800122e: 1898 adds r0, r3, r2 8001230: 4770 bx lr 8001232: 2080 movs r0, #128 @ 0x80 8001234: 0400 lsls r0, r0, #16 8001236: 4301 orrs r1, r0 8001238: 2a95 cmp r2, #149 @ 0x95 800123a: dc07 bgt.n 800124c <__aeabi_f2iz+0x34> 800123c: 2096 movs r0, #150 @ 0x96 800123e: 1a82 subs r2, r0, r2 8001240: 40d1 lsrs r1, r2 8001242: 4248 negs r0, r1 8001244: 2b00 cmp r3, #0 8001246: d1f3 bne.n 8001230 <__aeabi_f2iz+0x18> 8001248: 0008 movs r0, r1 800124a: e7f1 b.n 8001230 <__aeabi_f2iz+0x18> 800124c: 3a96 subs r2, #150 @ 0x96 800124e: 4091 lsls r1, r2 8001250: e7f7 b.n 8001242 <__aeabi_f2iz+0x2a> 8001252: 46c0 nop @ (mov r8, r8) 8001254: 7fffffff .word 0x7fffffff 08001258 <__aeabi_i2f>: 8001258: b570 push {r4, r5, r6, lr} 800125a: 2800 cmp r0, #0 800125c: d012 beq.n 8001284 <__aeabi_i2f+0x2c> 800125e: 17c3 asrs r3, r0, #31 8001260: 18c5 adds r5, r0, r3 8001262: 405d eors r5, r3 8001264: 0fc4 lsrs r4, r0, #31 8001266: 0028 movs r0, r5 8001268: f000 fef4 bl 8002054 <__clzsi2> 800126c: 239e movs r3, #158 @ 0x9e 800126e: 1a1b subs r3, r3, r0 8001270: 2b96 cmp r3, #150 @ 0x96 8001272: dc0f bgt.n 8001294 <__aeabi_i2f+0x3c> 8001274: 2808 cmp r0, #8 8001276: d038 beq.n 80012ea <__aeabi_i2f+0x92> 8001278: 3808 subs r0, #8 800127a: 4085 lsls r5, r0 800127c: 026d lsls r5, r5, #9 800127e: 0a6d lsrs r5, r5, #9 8001280: b2d8 uxtb r0, r3 8001282: e002 b.n 800128a <__aeabi_i2f+0x32> 8001284: 2400 movs r4, #0 8001286: 2000 movs r0, #0 8001288: 2500 movs r5, #0 800128a: 05c0 lsls r0, r0, #23 800128c: 4328 orrs r0, r5 800128e: 07e4 lsls r4, r4, #31 8001290: 4320 orrs r0, r4 8001292: bd70 pop {r4, r5, r6, pc} 8001294: 2b99 cmp r3, #153 @ 0x99 8001296: dc14 bgt.n 80012c2 <__aeabi_i2f+0x6a> 8001298: 1f42 subs r2, r0, #5 800129a: 4095 lsls r5, r2 800129c: 002a movs r2, r5 800129e: 4915 ldr r1, [pc, #84] @ (80012f4 <__aeabi_i2f+0x9c>) 80012a0: 4011 ands r1, r2 80012a2: 0755 lsls r5, r2, #29 80012a4: d01c beq.n 80012e0 <__aeabi_i2f+0x88> 80012a6: 250f movs r5, #15 80012a8: 402a ands r2, r5 80012aa: 2a04 cmp r2, #4 80012ac: d018 beq.n 80012e0 <__aeabi_i2f+0x88> 80012ae: 3104 adds r1, #4 80012b0: 08ca lsrs r2, r1, #3 80012b2: 0149 lsls r1, r1, #5 80012b4: d515 bpl.n 80012e2 <__aeabi_i2f+0x8a> 80012b6: 239f movs r3, #159 @ 0x9f 80012b8: 0252 lsls r2, r2, #9 80012ba: 1a18 subs r0, r3, r0 80012bc: 0a55 lsrs r5, r2, #9 80012be: b2c0 uxtb r0, r0 80012c0: e7e3 b.n 800128a <__aeabi_i2f+0x32> 80012c2: 2205 movs r2, #5 80012c4: 0029 movs r1, r5 80012c6: 1a12 subs r2, r2, r0 80012c8: 40d1 lsrs r1, r2 80012ca: 0002 movs r2, r0 80012cc: 321b adds r2, #27 80012ce: 4095 lsls r5, r2 80012d0: 002a movs r2, r5 80012d2: 1e55 subs r5, r2, #1 80012d4: 41aa sbcs r2, r5 80012d6: 430a orrs r2, r1 80012d8: 4906 ldr r1, [pc, #24] @ (80012f4 <__aeabi_i2f+0x9c>) 80012da: 4011 ands r1, r2 80012dc: 0755 lsls r5, r2, #29 80012de: d1e2 bne.n 80012a6 <__aeabi_i2f+0x4e> 80012e0: 08ca lsrs r2, r1, #3 80012e2: 0252 lsls r2, r2, #9 80012e4: 0a55 lsrs r5, r2, #9 80012e6: b2d8 uxtb r0, r3 80012e8: e7cf b.n 800128a <__aeabi_i2f+0x32> 80012ea: 026d lsls r5, r5, #9 80012ec: 0a6d lsrs r5, r5, #9 80012ee: 308e adds r0, #142 @ 0x8e 80012f0: e7cb b.n 800128a <__aeabi_i2f+0x32> 80012f2: 46c0 nop @ (mov r8, r8) 80012f4: fbffffff .word 0xfbffffff 080012f8 <__aeabi_ui2f>: 80012f8: b510 push {r4, lr} 80012fa: 1e04 subs r4, r0, #0 80012fc: d00d beq.n 800131a <__aeabi_ui2f+0x22> 80012fe: f000 fea9 bl 8002054 <__clzsi2> 8001302: 239e movs r3, #158 @ 0x9e 8001304: 1a1b subs r3, r3, r0 8001306: 2b96 cmp r3, #150 @ 0x96 8001308: dc0c bgt.n 8001324 <__aeabi_ui2f+0x2c> 800130a: 2808 cmp r0, #8 800130c: d034 beq.n 8001378 <__aeabi_ui2f+0x80> 800130e: 3808 subs r0, #8 8001310: 4084 lsls r4, r0 8001312: 0264 lsls r4, r4, #9 8001314: 0a64 lsrs r4, r4, #9 8001316: b2d8 uxtb r0, r3 8001318: e001 b.n 800131e <__aeabi_ui2f+0x26> 800131a: 2000 movs r0, #0 800131c: 2400 movs r4, #0 800131e: 05c0 lsls r0, r0, #23 8001320: 4320 orrs r0, r4 8001322: bd10 pop {r4, pc} 8001324: 2b99 cmp r3, #153 @ 0x99 8001326: dc13 bgt.n 8001350 <__aeabi_ui2f+0x58> 8001328: 1f42 subs r2, r0, #5 800132a: 4094 lsls r4, r2 800132c: 4a14 ldr r2, [pc, #80] @ (8001380 <__aeabi_ui2f+0x88>) 800132e: 4022 ands r2, r4 8001330: 0761 lsls r1, r4, #29 8001332: d01c beq.n 800136e <__aeabi_ui2f+0x76> 8001334: 210f movs r1, #15 8001336: 4021 ands r1, r4 8001338: 2904 cmp r1, #4 800133a: d018 beq.n 800136e <__aeabi_ui2f+0x76> 800133c: 3204 adds r2, #4 800133e: 08d4 lsrs r4, r2, #3 8001340: 0152 lsls r2, r2, #5 8001342: d515 bpl.n 8001370 <__aeabi_ui2f+0x78> 8001344: 239f movs r3, #159 @ 0x9f 8001346: 0264 lsls r4, r4, #9 8001348: 1a18 subs r0, r3, r0 800134a: 0a64 lsrs r4, r4, #9 800134c: b2c0 uxtb r0, r0 800134e: e7e6 b.n 800131e <__aeabi_ui2f+0x26> 8001350: 0002 movs r2, r0 8001352: 0021 movs r1, r4 8001354: 321b adds r2, #27 8001356: 4091 lsls r1, r2 8001358: 000a movs r2, r1 800135a: 1e51 subs r1, r2, #1 800135c: 418a sbcs r2, r1 800135e: 2105 movs r1, #5 8001360: 1a09 subs r1, r1, r0 8001362: 40cc lsrs r4, r1 8001364: 4314 orrs r4, r2 8001366: 4a06 ldr r2, [pc, #24] @ (8001380 <__aeabi_ui2f+0x88>) 8001368: 4022 ands r2, r4 800136a: 0761 lsls r1, r4, #29 800136c: d1e2 bne.n 8001334 <__aeabi_ui2f+0x3c> 800136e: 08d4 lsrs r4, r2, #3 8001370: 0264 lsls r4, r4, #9 8001372: 0a64 lsrs r4, r4, #9 8001374: b2d8 uxtb r0, r3 8001376: e7d2 b.n 800131e <__aeabi_ui2f+0x26> 8001378: 0264 lsls r4, r4, #9 800137a: 0a64 lsrs r4, r4, #9 800137c: 308e adds r0, #142 @ 0x8e 800137e: e7ce b.n 800131e <__aeabi_ui2f+0x26> 8001380: fbffffff .word 0xfbffffff 08001384 <__aeabi_ddiv>: 8001384: b5f0 push {r4, r5, r6, r7, lr} 8001386: 46de mov lr, fp 8001388: 4645 mov r5, r8 800138a: 4657 mov r7, sl 800138c: 464e mov r6, r9 800138e: b5e0 push {r5, r6, r7, lr} 8001390: b087 sub sp, #28 8001392: 9200 str r2, [sp, #0] 8001394: 9301 str r3, [sp, #4] 8001396: 030b lsls r3, r1, #12 8001398: 0b1b lsrs r3, r3, #12 800139a: 469b mov fp, r3 800139c: 0fca lsrs r2, r1, #31 800139e: 004b lsls r3, r1, #1 80013a0: 0004 movs r4, r0 80013a2: 4680 mov r8, r0 80013a4: 0d5b lsrs r3, r3, #21 80013a6: 9202 str r2, [sp, #8] 80013a8: d100 bne.n 80013ac <__aeabi_ddiv+0x28> 80013aa: e098 b.n 80014de <__aeabi_ddiv+0x15a> 80013ac: 4a7c ldr r2, [pc, #496] @ (80015a0 <__aeabi_ddiv+0x21c>) 80013ae: 4293 cmp r3, r2 80013b0: d037 beq.n 8001422 <__aeabi_ddiv+0x9e> 80013b2: 4659 mov r1, fp 80013b4: 0f42 lsrs r2, r0, #29 80013b6: 00c9 lsls r1, r1, #3 80013b8: 430a orrs r2, r1 80013ba: 2180 movs r1, #128 @ 0x80 80013bc: 0409 lsls r1, r1, #16 80013be: 4311 orrs r1, r2 80013c0: 00c2 lsls r2, r0, #3 80013c2: 4690 mov r8, r2 80013c4: 4a77 ldr r2, [pc, #476] @ (80015a4 <__aeabi_ddiv+0x220>) 80013c6: 4689 mov r9, r1 80013c8: 4692 mov sl, r2 80013ca: 449a add sl, r3 80013cc: 2300 movs r3, #0 80013ce: 2400 movs r4, #0 80013d0: 9303 str r3, [sp, #12] 80013d2: 9e00 ldr r6, [sp, #0] 80013d4: 9f01 ldr r7, [sp, #4] 80013d6: 033b lsls r3, r7, #12 80013d8: 0b1b lsrs r3, r3, #12 80013da: 469b mov fp, r3 80013dc: 007b lsls r3, r7, #1 80013de: 0030 movs r0, r6 80013e0: 0d5b lsrs r3, r3, #21 80013e2: 0ffd lsrs r5, r7, #31 80013e4: 2b00 cmp r3, #0 80013e6: d059 beq.n 800149c <__aeabi_ddiv+0x118> 80013e8: 4a6d ldr r2, [pc, #436] @ (80015a0 <__aeabi_ddiv+0x21c>) 80013ea: 4293 cmp r3, r2 80013ec: d048 beq.n 8001480 <__aeabi_ddiv+0xfc> 80013ee: 4659 mov r1, fp 80013f0: 0f72 lsrs r2, r6, #29 80013f2: 00c9 lsls r1, r1, #3 80013f4: 430a orrs r2, r1 80013f6: 2180 movs r1, #128 @ 0x80 80013f8: 0409 lsls r1, r1, #16 80013fa: 4311 orrs r1, r2 80013fc: 468b mov fp, r1 80013fe: 4969 ldr r1, [pc, #420] @ (80015a4 <__aeabi_ddiv+0x220>) 8001400: 00f2 lsls r2, r6, #3 8001402: 468c mov ip, r1 8001404: 4651 mov r1, sl 8001406: 4463 add r3, ip 8001408: 1acb subs r3, r1, r3 800140a: 469a mov sl, r3 800140c: 2100 movs r1, #0 800140e: 9e02 ldr r6, [sp, #8] 8001410: 406e eors r6, r5 8001412: b2f6 uxtb r6, r6 8001414: 2c0f cmp r4, #15 8001416: d900 bls.n 800141a <__aeabi_ddiv+0x96> 8001418: e0ce b.n 80015b8 <__aeabi_ddiv+0x234> 800141a: 4b63 ldr r3, [pc, #396] @ (80015a8 <__aeabi_ddiv+0x224>) 800141c: 00a4 lsls r4, r4, #2 800141e: 591b ldr r3, [r3, r4] 8001420: 469f mov pc, r3 8001422: 465a mov r2, fp 8001424: 4302 orrs r2, r0 8001426: 4691 mov r9, r2 8001428: d000 beq.n 800142c <__aeabi_ddiv+0xa8> 800142a: e090 b.n 800154e <__aeabi_ddiv+0x1ca> 800142c: 469a mov sl, r3 800142e: 2302 movs r3, #2 8001430: 4690 mov r8, r2 8001432: 2408 movs r4, #8 8001434: 9303 str r3, [sp, #12] 8001436: e7cc b.n 80013d2 <__aeabi_ddiv+0x4e> 8001438: 46cb mov fp, r9 800143a: 4642 mov r2, r8 800143c: 9d02 ldr r5, [sp, #8] 800143e: 9903 ldr r1, [sp, #12] 8001440: 2902 cmp r1, #2 8001442: d100 bne.n 8001446 <__aeabi_ddiv+0xc2> 8001444: e1de b.n 8001804 <__aeabi_ddiv+0x480> 8001446: 2903 cmp r1, #3 8001448: d100 bne.n 800144c <__aeabi_ddiv+0xc8> 800144a: e08d b.n 8001568 <__aeabi_ddiv+0x1e4> 800144c: 2901 cmp r1, #1 800144e: d000 beq.n 8001452 <__aeabi_ddiv+0xce> 8001450: e179 b.n 8001746 <__aeabi_ddiv+0x3c2> 8001452: 002e movs r6, r5 8001454: 2200 movs r2, #0 8001456: 2300 movs r3, #0 8001458: 2400 movs r4, #0 800145a: 4690 mov r8, r2 800145c: 051b lsls r3, r3, #20 800145e: 4323 orrs r3, r4 8001460: 07f6 lsls r6, r6, #31 8001462: 4333 orrs r3, r6 8001464: 4640 mov r0, r8 8001466: 0019 movs r1, r3 8001468: b007 add sp, #28 800146a: bcf0 pop {r4, r5, r6, r7} 800146c: 46bb mov fp, r7 800146e: 46b2 mov sl, r6 8001470: 46a9 mov r9, r5 8001472: 46a0 mov r8, r4 8001474: bdf0 pop {r4, r5, r6, r7, pc} 8001476: 2200 movs r2, #0 8001478: 2400 movs r4, #0 800147a: 4690 mov r8, r2 800147c: 4b48 ldr r3, [pc, #288] @ (80015a0 <__aeabi_ddiv+0x21c>) 800147e: e7ed b.n 800145c <__aeabi_ddiv+0xd8> 8001480: 465a mov r2, fp 8001482: 9b00 ldr r3, [sp, #0] 8001484: 431a orrs r2, r3 8001486: 4b49 ldr r3, [pc, #292] @ (80015ac <__aeabi_ddiv+0x228>) 8001488: 469c mov ip, r3 800148a: 44e2 add sl, ip 800148c: 2a00 cmp r2, #0 800148e: d159 bne.n 8001544 <__aeabi_ddiv+0x1c0> 8001490: 2302 movs r3, #2 8001492: 431c orrs r4, r3 8001494: 2300 movs r3, #0 8001496: 2102 movs r1, #2 8001498: 469b mov fp, r3 800149a: e7b8 b.n 800140e <__aeabi_ddiv+0x8a> 800149c: 465a mov r2, fp 800149e: 9b00 ldr r3, [sp, #0] 80014a0: 431a orrs r2, r3 80014a2: d049 beq.n 8001538 <__aeabi_ddiv+0x1b4> 80014a4: 465b mov r3, fp 80014a6: 2b00 cmp r3, #0 80014a8: d100 bne.n 80014ac <__aeabi_ddiv+0x128> 80014aa: e19c b.n 80017e6 <__aeabi_ddiv+0x462> 80014ac: 4658 mov r0, fp 80014ae: f000 fdd1 bl 8002054 <__clzsi2> 80014b2: 0002 movs r2, r0 80014b4: 0003 movs r3, r0 80014b6: 3a0b subs r2, #11 80014b8: 271d movs r7, #29 80014ba: 9e00 ldr r6, [sp, #0] 80014bc: 1aba subs r2, r7, r2 80014be: 0019 movs r1, r3 80014c0: 4658 mov r0, fp 80014c2: 40d6 lsrs r6, r2 80014c4: 3908 subs r1, #8 80014c6: 4088 lsls r0, r1 80014c8: 0032 movs r2, r6 80014ca: 4302 orrs r2, r0 80014cc: 4693 mov fp, r2 80014ce: 9a00 ldr r2, [sp, #0] 80014d0: 408a lsls r2, r1 80014d2: 4937 ldr r1, [pc, #220] @ (80015b0 <__aeabi_ddiv+0x22c>) 80014d4: 4453 add r3, sl 80014d6: 468a mov sl, r1 80014d8: 2100 movs r1, #0 80014da: 449a add sl, r3 80014dc: e797 b.n 800140e <__aeabi_ddiv+0x8a> 80014de: 465b mov r3, fp 80014e0: 4303 orrs r3, r0 80014e2: 4699 mov r9, r3 80014e4: d021 beq.n 800152a <__aeabi_ddiv+0x1a6> 80014e6: 465b mov r3, fp 80014e8: 2b00 cmp r3, #0 80014ea: d100 bne.n 80014ee <__aeabi_ddiv+0x16a> 80014ec: e169 b.n 80017c2 <__aeabi_ddiv+0x43e> 80014ee: 4658 mov r0, fp 80014f0: f000 fdb0 bl 8002054 <__clzsi2> 80014f4: 230b movs r3, #11 80014f6: 425b negs r3, r3 80014f8: 469c mov ip, r3 80014fa: 0002 movs r2, r0 80014fc: 4484 add ip, r0 80014fe: 4666 mov r6, ip 8001500: 231d movs r3, #29 8001502: 1b9b subs r3, r3, r6 8001504: 0026 movs r6, r4 8001506: 0011 movs r1, r2 8001508: 4658 mov r0, fp 800150a: 40de lsrs r6, r3 800150c: 3908 subs r1, #8 800150e: 4088 lsls r0, r1 8001510: 0033 movs r3, r6 8001512: 4303 orrs r3, r0 8001514: 4699 mov r9, r3 8001516: 0023 movs r3, r4 8001518: 408b lsls r3, r1 800151a: 4698 mov r8, r3 800151c: 4b25 ldr r3, [pc, #148] @ (80015b4 <__aeabi_ddiv+0x230>) 800151e: 2400 movs r4, #0 8001520: 1a9b subs r3, r3, r2 8001522: 469a mov sl, r3 8001524: 2300 movs r3, #0 8001526: 9303 str r3, [sp, #12] 8001528: e753 b.n 80013d2 <__aeabi_ddiv+0x4e> 800152a: 2300 movs r3, #0 800152c: 4698 mov r8, r3 800152e: 469a mov sl, r3 8001530: 3301 adds r3, #1 8001532: 2404 movs r4, #4 8001534: 9303 str r3, [sp, #12] 8001536: e74c b.n 80013d2 <__aeabi_ddiv+0x4e> 8001538: 2301 movs r3, #1 800153a: 431c orrs r4, r3 800153c: 2300 movs r3, #0 800153e: 2101 movs r1, #1 8001540: 469b mov fp, r3 8001542: e764 b.n 800140e <__aeabi_ddiv+0x8a> 8001544: 2303 movs r3, #3 8001546: 0032 movs r2, r6 8001548: 2103 movs r1, #3 800154a: 431c orrs r4, r3 800154c: e75f b.n 800140e <__aeabi_ddiv+0x8a> 800154e: 469a mov sl, r3 8001550: 2303 movs r3, #3 8001552: 46d9 mov r9, fp 8001554: 240c movs r4, #12 8001556: 9303 str r3, [sp, #12] 8001558: e73b b.n 80013d2 <__aeabi_ddiv+0x4e> 800155a: 2300 movs r3, #0 800155c: 2480 movs r4, #128 @ 0x80 800155e: 4698 mov r8, r3 8001560: 2600 movs r6, #0 8001562: 4b0f ldr r3, [pc, #60] @ (80015a0 <__aeabi_ddiv+0x21c>) 8001564: 0324 lsls r4, r4, #12 8001566: e779 b.n 800145c <__aeabi_ddiv+0xd8> 8001568: 2480 movs r4, #128 @ 0x80 800156a: 465b mov r3, fp 800156c: 0324 lsls r4, r4, #12 800156e: 431c orrs r4, r3 8001570: 0324 lsls r4, r4, #12 8001572: 002e movs r6, r5 8001574: 4690 mov r8, r2 8001576: 4b0a ldr r3, [pc, #40] @ (80015a0 <__aeabi_ddiv+0x21c>) 8001578: 0b24 lsrs r4, r4, #12 800157a: e76f b.n 800145c <__aeabi_ddiv+0xd8> 800157c: 2480 movs r4, #128 @ 0x80 800157e: 464b mov r3, r9 8001580: 0324 lsls r4, r4, #12 8001582: 4223 tst r3, r4 8001584: d002 beq.n 800158c <__aeabi_ddiv+0x208> 8001586: 465b mov r3, fp 8001588: 4223 tst r3, r4 800158a: d0f0 beq.n 800156e <__aeabi_ddiv+0x1ea> 800158c: 2480 movs r4, #128 @ 0x80 800158e: 464b mov r3, r9 8001590: 0324 lsls r4, r4, #12 8001592: 431c orrs r4, r3 8001594: 0324 lsls r4, r4, #12 8001596: 9e02 ldr r6, [sp, #8] 8001598: 4b01 ldr r3, [pc, #4] @ (80015a0 <__aeabi_ddiv+0x21c>) 800159a: 0b24 lsrs r4, r4, #12 800159c: e75e b.n 800145c <__aeabi_ddiv+0xd8> 800159e: 46c0 nop @ (mov r8, r8) 80015a0: 000007ff .word 0x000007ff 80015a4: fffffc01 .word 0xfffffc01 80015a8: 080062d0 .word 0x080062d0 80015ac: fffff801 .word 0xfffff801 80015b0: 000003f3 .word 0x000003f3 80015b4: fffffc0d .word 0xfffffc0d 80015b8: 45cb cmp fp, r9 80015ba: d200 bcs.n 80015be <__aeabi_ddiv+0x23a> 80015bc: e0f8 b.n 80017b0 <__aeabi_ddiv+0x42c> 80015be: d100 bne.n 80015c2 <__aeabi_ddiv+0x23e> 80015c0: e0f3 b.n 80017aa <__aeabi_ddiv+0x426> 80015c2: 2301 movs r3, #1 80015c4: 425b negs r3, r3 80015c6: 469c mov ip, r3 80015c8: 4644 mov r4, r8 80015ca: 4648 mov r0, r9 80015cc: 2500 movs r5, #0 80015ce: 44e2 add sl, ip 80015d0: 465b mov r3, fp 80015d2: 0e17 lsrs r7, r2, #24 80015d4: 021b lsls r3, r3, #8 80015d6: 431f orrs r7, r3 80015d8: 0c19 lsrs r1, r3, #16 80015da: 043b lsls r3, r7, #16 80015dc: 0212 lsls r2, r2, #8 80015de: 9700 str r7, [sp, #0] 80015e0: 0c1f lsrs r7, r3, #16 80015e2: 4691 mov r9, r2 80015e4: 9102 str r1, [sp, #8] 80015e6: 9703 str r7, [sp, #12] 80015e8: f7fe fe14 bl 8000214 <__aeabi_uidivmod> 80015ec: 0002 movs r2, r0 80015ee: 437a muls r2, r7 80015f0: 040b lsls r3, r1, #16 80015f2: 0c21 lsrs r1, r4, #16 80015f4: 4680 mov r8, r0 80015f6: 4319 orrs r1, r3 80015f8: 428a cmp r2, r1 80015fa: d909 bls.n 8001610 <__aeabi_ddiv+0x28c> 80015fc: 9f00 ldr r7, [sp, #0] 80015fe: 2301 movs r3, #1 8001600: 46bc mov ip, r7 8001602: 425b negs r3, r3 8001604: 4461 add r1, ip 8001606: 469c mov ip, r3 8001608: 44e0 add r8, ip 800160a: 428f cmp r7, r1 800160c: d800 bhi.n 8001610 <__aeabi_ddiv+0x28c> 800160e: e15c b.n 80018ca <__aeabi_ddiv+0x546> 8001610: 1a88 subs r0, r1, r2 8001612: 9902 ldr r1, [sp, #8] 8001614: f7fe fdfe bl 8000214 <__aeabi_uidivmod> 8001618: 9a03 ldr r2, [sp, #12] 800161a: 0424 lsls r4, r4, #16 800161c: 4342 muls r2, r0 800161e: 0409 lsls r1, r1, #16 8001620: 0c24 lsrs r4, r4, #16 8001622: 0003 movs r3, r0 8001624: 430c orrs r4, r1 8001626: 42a2 cmp r2, r4 8001628: d906 bls.n 8001638 <__aeabi_ddiv+0x2b4> 800162a: 9900 ldr r1, [sp, #0] 800162c: 3b01 subs r3, #1 800162e: 468c mov ip, r1 8001630: 4464 add r4, ip 8001632: 42a1 cmp r1, r4 8001634: d800 bhi.n 8001638 <__aeabi_ddiv+0x2b4> 8001636: e142 b.n 80018be <__aeabi_ddiv+0x53a> 8001638: 1aa0 subs r0, r4, r2 800163a: 4642 mov r2, r8 800163c: 0412 lsls r2, r2, #16 800163e: 431a orrs r2, r3 8001640: 4693 mov fp, r2 8001642: 464b mov r3, r9 8001644: 4659 mov r1, fp 8001646: 0c1b lsrs r3, r3, #16 8001648: 001f movs r7, r3 800164a: 9304 str r3, [sp, #16] 800164c: 040b lsls r3, r1, #16 800164e: 4649 mov r1, r9 8001650: 0409 lsls r1, r1, #16 8001652: 0c09 lsrs r1, r1, #16 8001654: 000c movs r4, r1 8001656: 0c1b lsrs r3, r3, #16 8001658: 435c muls r4, r3 800165a: 0c12 lsrs r2, r2, #16 800165c: 437b muls r3, r7 800165e: 4688 mov r8, r1 8001660: 4351 muls r1, r2 8001662: 437a muls r2, r7 8001664: 0c27 lsrs r7, r4, #16 8001666: 46bc mov ip, r7 8001668: 185b adds r3, r3, r1 800166a: 4463 add r3, ip 800166c: 4299 cmp r1, r3 800166e: d903 bls.n 8001678 <__aeabi_ddiv+0x2f4> 8001670: 2180 movs r1, #128 @ 0x80 8001672: 0249 lsls r1, r1, #9 8001674: 468c mov ip, r1 8001676: 4462 add r2, ip 8001678: 0c19 lsrs r1, r3, #16 800167a: 0424 lsls r4, r4, #16 800167c: 041b lsls r3, r3, #16 800167e: 0c24 lsrs r4, r4, #16 8001680: 188a adds r2, r1, r2 8001682: 191c adds r4, r3, r4 8001684: 4290 cmp r0, r2 8001686: d302 bcc.n 800168e <__aeabi_ddiv+0x30a> 8001688: d116 bne.n 80016b8 <__aeabi_ddiv+0x334> 800168a: 42a5 cmp r5, r4 800168c: d214 bcs.n 80016b8 <__aeabi_ddiv+0x334> 800168e: 465b mov r3, fp 8001690: 9f00 ldr r7, [sp, #0] 8001692: 3b01 subs r3, #1 8001694: 444d add r5, r9 8001696: 9305 str r3, [sp, #20] 8001698: 454d cmp r5, r9 800169a: 419b sbcs r3, r3 800169c: 46bc mov ip, r7 800169e: 425b negs r3, r3 80016a0: 4463 add r3, ip 80016a2: 18c0 adds r0, r0, r3 80016a4: 4287 cmp r7, r0 80016a6: d300 bcc.n 80016aa <__aeabi_ddiv+0x326> 80016a8: e102 b.n 80018b0 <__aeabi_ddiv+0x52c> 80016aa: 4282 cmp r2, r0 80016ac: d900 bls.n 80016b0 <__aeabi_ddiv+0x32c> 80016ae: e129 b.n 8001904 <__aeabi_ddiv+0x580> 80016b0: d100 bne.n 80016b4 <__aeabi_ddiv+0x330> 80016b2: e124 b.n 80018fe <__aeabi_ddiv+0x57a> 80016b4: 9b05 ldr r3, [sp, #20] 80016b6: 469b mov fp, r3 80016b8: 1b2c subs r4, r5, r4 80016ba: 42a5 cmp r5, r4 80016bc: 41ad sbcs r5, r5 80016be: 9b00 ldr r3, [sp, #0] 80016c0: 1a80 subs r0, r0, r2 80016c2: 426d negs r5, r5 80016c4: 1b40 subs r0, r0, r5 80016c6: 4283 cmp r3, r0 80016c8: d100 bne.n 80016cc <__aeabi_ddiv+0x348> 80016ca: e10f b.n 80018ec <__aeabi_ddiv+0x568> 80016cc: 9902 ldr r1, [sp, #8] 80016ce: f7fe fda1 bl 8000214 <__aeabi_uidivmod> 80016d2: 9a03 ldr r2, [sp, #12] 80016d4: 040b lsls r3, r1, #16 80016d6: 4342 muls r2, r0 80016d8: 0c21 lsrs r1, r4, #16 80016da: 0005 movs r5, r0 80016dc: 4319 orrs r1, r3 80016de: 428a cmp r2, r1 80016e0: d900 bls.n 80016e4 <__aeabi_ddiv+0x360> 80016e2: e0cb b.n 800187c <__aeabi_ddiv+0x4f8> 80016e4: 1a88 subs r0, r1, r2 80016e6: 9902 ldr r1, [sp, #8] 80016e8: f7fe fd94 bl 8000214 <__aeabi_uidivmod> 80016ec: 9a03 ldr r2, [sp, #12] 80016ee: 0424 lsls r4, r4, #16 80016f0: 4342 muls r2, r0 80016f2: 0409 lsls r1, r1, #16 80016f4: 0c24 lsrs r4, r4, #16 80016f6: 0003 movs r3, r0 80016f8: 430c orrs r4, r1 80016fa: 42a2 cmp r2, r4 80016fc: d900 bls.n 8001700 <__aeabi_ddiv+0x37c> 80016fe: e0ca b.n 8001896 <__aeabi_ddiv+0x512> 8001700: 4641 mov r1, r8 8001702: 1aa4 subs r4, r4, r2 8001704: 042a lsls r2, r5, #16 8001706: 431a orrs r2, r3 8001708: 9f04 ldr r7, [sp, #16] 800170a: 0413 lsls r3, r2, #16 800170c: 0c1b lsrs r3, r3, #16 800170e: 4359 muls r1, r3 8001710: 4640 mov r0, r8 8001712: 437b muls r3, r7 8001714: 469c mov ip, r3 8001716: 0c15 lsrs r5, r2, #16 8001718: 4368 muls r0, r5 800171a: 0c0b lsrs r3, r1, #16 800171c: 4484 add ip, r0 800171e: 4463 add r3, ip 8001720: 437d muls r5, r7 8001722: 4298 cmp r0, r3 8001724: d903 bls.n 800172e <__aeabi_ddiv+0x3aa> 8001726: 2080 movs r0, #128 @ 0x80 8001728: 0240 lsls r0, r0, #9 800172a: 4684 mov ip, r0 800172c: 4465 add r5, ip 800172e: 0c18 lsrs r0, r3, #16 8001730: 0409 lsls r1, r1, #16 8001732: 041b lsls r3, r3, #16 8001734: 0c09 lsrs r1, r1, #16 8001736: 1940 adds r0, r0, r5 8001738: 185b adds r3, r3, r1 800173a: 4284 cmp r4, r0 800173c: d327 bcc.n 800178e <__aeabi_ddiv+0x40a> 800173e: d023 beq.n 8001788 <__aeabi_ddiv+0x404> 8001740: 2301 movs r3, #1 8001742: 0035 movs r5, r6 8001744: 431a orrs r2, r3 8001746: 4b94 ldr r3, [pc, #592] @ (8001998 <__aeabi_ddiv+0x614>) 8001748: 4453 add r3, sl 800174a: 2b00 cmp r3, #0 800174c: dd60 ble.n 8001810 <__aeabi_ddiv+0x48c> 800174e: 0751 lsls r1, r2, #29 8001750: d000 beq.n 8001754 <__aeabi_ddiv+0x3d0> 8001752: e086 b.n 8001862 <__aeabi_ddiv+0x4de> 8001754: 002e movs r6, r5 8001756: 08d1 lsrs r1, r2, #3 8001758: 465a mov r2, fp 800175a: 01d2 lsls r2, r2, #7 800175c: d506 bpl.n 800176c <__aeabi_ddiv+0x3e8> 800175e: 465a mov r2, fp 8001760: 4b8e ldr r3, [pc, #568] @ (800199c <__aeabi_ddiv+0x618>) 8001762: 401a ands r2, r3 8001764: 2380 movs r3, #128 @ 0x80 8001766: 4693 mov fp, r2 8001768: 00db lsls r3, r3, #3 800176a: 4453 add r3, sl 800176c: 4a8c ldr r2, [pc, #560] @ (80019a0 <__aeabi_ddiv+0x61c>) 800176e: 4293 cmp r3, r2 8001770: dd00 ble.n 8001774 <__aeabi_ddiv+0x3f0> 8001772: e680 b.n 8001476 <__aeabi_ddiv+0xf2> 8001774: 465a mov r2, fp 8001776: 0752 lsls r2, r2, #29 8001778: 430a orrs r2, r1 800177a: 4690 mov r8, r2 800177c: 465a mov r2, fp 800177e: 055b lsls r3, r3, #21 8001780: 0254 lsls r4, r2, #9 8001782: 0b24 lsrs r4, r4, #12 8001784: 0d5b lsrs r3, r3, #21 8001786: e669 b.n 800145c <__aeabi_ddiv+0xd8> 8001788: 0035 movs r5, r6 800178a: 2b00 cmp r3, #0 800178c: d0db beq.n 8001746 <__aeabi_ddiv+0x3c2> 800178e: 9d00 ldr r5, [sp, #0] 8001790: 1e51 subs r1, r2, #1 8001792: 46ac mov ip, r5 8001794: 4464 add r4, ip 8001796: 42ac cmp r4, r5 8001798: d200 bcs.n 800179c <__aeabi_ddiv+0x418> 800179a: e09e b.n 80018da <__aeabi_ddiv+0x556> 800179c: 4284 cmp r4, r0 800179e: d200 bcs.n 80017a2 <__aeabi_ddiv+0x41e> 80017a0: e0e1 b.n 8001966 <__aeabi_ddiv+0x5e2> 80017a2: d100 bne.n 80017a6 <__aeabi_ddiv+0x422> 80017a4: e0ee b.n 8001984 <__aeabi_ddiv+0x600> 80017a6: 000a movs r2, r1 80017a8: e7ca b.n 8001740 <__aeabi_ddiv+0x3bc> 80017aa: 4542 cmp r2, r8 80017ac: d900 bls.n 80017b0 <__aeabi_ddiv+0x42c> 80017ae: e708 b.n 80015c2 <__aeabi_ddiv+0x23e> 80017b0: 464b mov r3, r9 80017b2: 07dc lsls r4, r3, #31 80017b4: 0858 lsrs r0, r3, #1 80017b6: 4643 mov r3, r8 80017b8: 085b lsrs r3, r3, #1 80017ba: 431c orrs r4, r3 80017bc: 4643 mov r3, r8 80017be: 07dd lsls r5, r3, #31 80017c0: e706 b.n 80015d0 <__aeabi_ddiv+0x24c> 80017c2: f000 fc47 bl 8002054 <__clzsi2> 80017c6: 2315 movs r3, #21 80017c8: 469c mov ip, r3 80017ca: 4484 add ip, r0 80017cc: 0002 movs r2, r0 80017ce: 4663 mov r3, ip 80017d0: 3220 adds r2, #32 80017d2: 2b1c cmp r3, #28 80017d4: dc00 bgt.n 80017d8 <__aeabi_ddiv+0x454> 80017d6: e692 b.n 80014fe <__aeabi_ddiv+0x17a> 80017d8: 0023 movs r3, r4 80017da: 3808 subs r0, #8 80017dc: 4083 lsls r3, r0 80017de: 4699 mov r9, r3 80017e0: 2300 movs r3, #0 80017e2: 4698 mov r8, r3 80017e4: e69a b.n 800151c <__aeabi_ddiv+0x198> 80017e6: f000 fc35 bl 8002054 <__clzsi2> 80017ea: 0002 movs r2, r0 80017ec: 0003 movs r3, r0 80017ee: 3215 adds r2, #21 80017f0: 3320 adds r3, #32 80017f2: 2a1c cmp r2, #28 80017f4: dc00 bgt.n 80017f8 <__aeabi_ddiv+0x474> 80017f6: e65f b.n 80014b8 <__aeabi_ddiv+0x134> 80017f8: 9900 ldr r1, [sp, #0] 80017fa: 3808 subs r0, #8 80017fc: 4081 lsls r1, r0 80017fe: 2200 movs r2, #0 8001800: 468b mov fp, r1 8001802: e666 b.n 80014d2 <__aeabi_ddiv+0x14e> 8001804: 2200 movs r2, #0 8001806: 002e movs r6, r5 8001808: 2400 movs r4, #0 800180a: 4690 mov r8, r2 800180c: 4b65 ldr r3, [pc, #404] @ (80019a4 <__aeabi_ddiv+0x620>) 800180e: e625 b.n 800145c <__aeabi_ddiv+0xd8> 8001810: 002e movs r6, r5 8001812: 2101 movs r1, #1 8001814: 1ac9 subs r1, r1, r3 8001816: 2938 cmp r1, #56 @ 0x38 8001818: dd00 ble.n 800181c <__aeabi_ddiv+0x498> 800181a: e61b b.n 8001454 <__aeabi_ddiv+0xd0> 800181c: 291f cmp r1, #31 800181e: dc7e bgt.n 800191e <__aeabi_ddiv+0x59a> 8001820: 4861 ldr r0, [pc, #388] @ (80019a8 <__aeabi_ddiv+0x624>) 8001822: 0014 movs r4, r2 8001824: 4450 add r0, sl 8001826: 465b mov r3, fp 8001828: 4082 lsls r2, r0 800182a: 4083 lsls r3, r0 800182c: 40cc lsrs r4, r1 800182e: 1e50 subs r0, r2, #1 8001830: 4182 sbcs r2, r0 8001832: 4323 orrs r3, r4 8001834: 431a orrs r2, r3 8001836: 465b mov r3, fp 8001838: 40cb lsrs r3, r1 800183a: 0751 lsls r1, r2, #29 800183c: d009 beq.n 8001852 <__aeabi_ddiv+0x4ce> 800183e: 210f movs r1, #15 8001840: 4011 ands r1, r2 8001842: 2904 cmp r1, #4 8001844: d005 beq.n 8001852 <__aeabi_ddiv+0x4ce> 8001846: 1d11 adds r1, r2, #4 8001848: 4291 cmp r1, r2 800184a: 4192 sbcs r2, r2 800184c: 4252 negs r2, r2 800184e: 189b adds r3, r3, r2 8001850: 000a movs r2, r1 8001852: 0219 lsls r1, r3, #8 8001854: d400 bmi.n 8001858 <__aeabi_ddiv+0x4d4> 8001856: e09b b.n 8001990 <__aeabi_ddiv+0x60c> 8001858: 2200 movs r2, #0 800185a: 2301 movs r3, #1 800185c: 2400 movs r4, #0 800185e: 4690 mov r8, r2 8001860: e5fc b.n 800145c <__aeabi_ddiv+0xd8> 8001862: 210f movs r1, #15 8001864: 4011 ands r1, r2 8001866: 2904 cmp r1, #4 8001868: d100 bne.n 800186c <__aeabi_ddiv+0x4e8> 800186a: e773 b.n 8001754 <__aeabi_ddiv+0x3d0> 800186c: 1d11 adds r1, r2, #4 800186e: 4291 cmp r1, r2 8001870: 4192 sbcs r2, r2 8001872: 4252 negs r2, r2 8001874: 002e movs r6, r5 8001876: 08c9 lsrs r1, r1, #3 8001878: 4493 add fp, r2 800187a: e76d b.n 8001758 <__aeabi_ddiv+0x3d4> 800187c: 9b00 ldr r3, [sp, #0] 800187e: 3d01 subs r5, #1 8001880: 469c mov ip, r3 8001882: 4461 add r1, ip 8001884: 428b cmp r3, r1 8001886: d900 bls.n 800188a <__aeabi_ddiv+0x506> 8001888: e72c b.n 80016e4 <__aeabi_ddiv+0x360> 800188a: 428a cmp r2, r1 800188c: d800 bhi.n 8001890 <__aeabi_ddiv+0x50c> 800188e: e729 b.n 80016e4 <__aeabi_ddiv+0x360> 8001890: 1e85 subs r5, r0, #2 8001892: 4461 add r1, ip 8001894: e726 b.n 80016e4 <__aeabi_ddiv+0x360> 8001896: 9900 ldr r1, [sp, #0] 8001898: 3b01 subs r3, #1 800189a: 468c mov ip, r1 800189c: 4464 add r4, ip 800189e: 42a1 cmp r1, r4 80018a0: d900 bls.n 80018a4 <__aeabi_ddiv+0x520> 80018a2: e72d b.n 8001700 <__aeabi_ddiv+0x37c> 80018a4: 42a2 cmp r2, r4 80018a6: d800 bhi.n 80018aa <__aeabi_ddiv+0x526> 80018a8: e72a b.n 8001700 <__aeabi_ddiv+0x37c> 80018aa: 1e83 subs r3, r0, #2 80018ac: 4464 add r4, ip 80018ae: e727 b.n 8001700 <__aeabi_ddiv+0x37c> 80018b0: 4287 cmp r7, r0 80018b2: d000 beq.n 80018b6 <__aeabi_ddiv+0x532> 80018b4: e6fe b.n 80016b4 <__aeabi_ddiv+0x330> 80018b6: 45a9 cmp r9, r5 80018b8: d900 bls.n 80018bc <__aeabi_ddiv+0x538> 80018ba: e6fb b.n 80016b4 <__aeabi_ddiv+0x330> 80018bc: e6f5 b.n 80016aa <__aeabi_ddiv+0x326> 80018be: 42a2 cmp r2, r4 80018c0: d800 bhi.n 80018c4 <__aeabi_ddiv+0x540> 80018c2: e6b9 b.n 8001638 <__aeabi_ddiv+0x2b4> 80018c4: 1e83 subs r3, r0, #2 80018c6: 4464 add r4, ip 80018c8: e6b6 b.n 8001638 <__aeabi_ddiv+0x2b4> 80018ca: 428a cmp r2, r1 80018cc: d800 bhi.n 80018d0 <__aeabi_ddiv+0x54c> 80018ce: e69f b.n 8001610 <__aeabi_ddiv+0x28c> 80018d0: 46bc mov ip, r7 80018d2: 1e83 subs r3, r0, #2 80018d4: 4698 mov r8, r3 80018d6: 4461 add r1, ip 80018d8: e69a b.n 8001610 <__aeabi_ddiv+0x28c> 80018da: 000a movs r2, r1 80018dc: 4284 cmp r4, r0 80018de: d000 beq.n 80018e2 <__aeabi_ddiv+0x55e> 80018e0: e72e b.n 8001740 <__aeabi_ddiv+0x3bc> 80018e2: 454b cmp r3, r9 80018e4: d000 beq.n 80018e8 <__aeabi_ddiv+0x564> 80018e6: e72b b.n 8001740 <__aeabi_ddiv+0x3bc> 80018e8: 0035 movs r5, r6 80018ea: e72c b.n 8001746 <__aeabi_ddiv+0x3c2> 80018ec: 4b2a ldr r3, [pc, #168] @ (8001998 <__aeabi_ddiv+0x614>) 80018ee: 4a2f ldr r2, [pc, #188] @ (80019ac <__aeabi_ddiv+0x628>) 80018f0: 4453 add r3, sl 80018f2: 4592 cmp sl, r2 80018f4: db43 blt.n 800197e <__aeabi_ddiv+0x5fa> 80018f6: 2201 movs r2, #1 80018f8: 2100 movs r1, #0 80018fa: 4493 add fp, r2 80018fc: e72c b.n 8001758 <__aeabi_ddiv+0x3d4> 80018fe: 42ac cmp r4, r5 8001900: d800 bhi.n 8001904 <__aeabi_ddiv+0x580> 8001902: e6d7 b.n 80016b4 <__aeabi_ddiv+0x330> 8001904: 2302 movs r3, #2 8001906: 425b negs r3, r3 8001908: 469c mov ip, r3 800190a: 9900 ldr r1, [sp, #0] 800190c: 444d add r5, r9 800190e: 454d cmp r5, r9 8001910: 419b sbcs r3, r3 8001912: 44e3 add fp, ip 8001914: 468c mov ip, r1 8001916: 425b negs r3, r3 8001918: 4463 add r3, ip 800191a: 18c0 adds r0, r0, r3 800191c: e6cc b.n 80016b8 <__aeabi_ddiv+0x334> 800191e: 201f movs r0, #31 8001920: 4240 negs r0, r0 8001922: 1ac3 subs r3, r0, r3 8001924: 4658 mov r0, fp 8001926: 40d8 lsrs r0, r3 8001928: 2920 cmp r1, #32 800192a: d004 beq.n 8001936 <__aeabi_ddiv+0x5b2> 800192c: 4659 mov r1, fp 800192e: 4b20 ldr r3, [pc, #128] @ (80019b0 <__aeabi_ddiv+0x62c>) 8001930: 4453 add r3, sl 8001932: 4099 lsls r1, r3 8001934: 430a orrs r2, r1 8001936: 1e53 subs r3, r2, #1 8001938: 419a sbcs r2, r3 800193a: 2307 movs r3, #7 800193c: 0019 movs r1, r3 800193e: 4302 orrs r2, r0 8001940: 2400 movs r4, #0 8001942: 4011 ands r1, r2 8001944: 4213 tst r3, r2 8001946: d009 beq.n 800195c <__aeabi_ddiv+0x5d8> 8001948: 3308 adds r3, #8 800194a: 4013 ands r3, r2 800194c: 2b04 cmp r3, #4 800194e: d01d beq.n 800198c <__aeabi_ddiv+0x608> 8001950: 1d13 adds r3, r2, #4 8001952: 4293 cmp r3, r2 8001954: 4189 sbcs r1, r1 8001956: 001a movs r2, r3 8001958: 4249 negs r1, r1 800195a: 0749 lsls r1, r1, #29 800195c: 08d2 lsrs r2, r2, #3 800195e: 430a orrs r2, r1 8001960: 4690 mov r8, r2 8001962: 2300 movs r3, #0 8001964: e57a b.n 800145c <__aeabi_ddiv+0xd8> 8001966: 4649 mov r1, r9 8001968: 9f00 ldr r7, [sp, #0] 800196a: 004d lsls r5, r1, #1 800196c: 454d cmp r5, r9 800196e: 4189 sbcs r1, r1 8001970: 46bc mov ip, r7 8001972: 4249 negs r1, r1 8001974: 4461 add r1, ip 8001976: 46a9 mov r9, r5 8001978: 3a02 subs r2, #2 800197a: 1864 adds r4, r4, r1 800197c: e7ae b.n 80018dc <__aeabi_ddiv+0x558> 800197e: 2201 movs r2, #1 8001980: 4252 negs r2, r2 8001982: e746 b.n 8001812 <__aeabi_ddiv+0x48e> 8001984: 4599 cmp r9, r3 8001986: d3ee bcc.n 8001966 <__aeabi_ddiv+0x5e2> 8001988: 000a movs r2, r1 800198a: e7aa b.n 80018e2 <__aeabi_ddiv+0x55e> 800198c: 2100 movs r1, #0 800198e: e7e5 b.n 800195c <__aeabi_ddiv+0x5d8> 8001990: 0759 lsls r1, r3, #29 8001992: 025b lsls r3, r3, #9 8001994: 0b1c lsrs r4, r3, #12 8001996: e7e1 b.n 800195c <__aeabi_ddiv+0x5d8> 8001998: 000003ff .word 0x000003ff 800199c: feffffff .word 0xfeffffff 80019a0: 000007fe .word 0x000007fe 80019a4: 000007ff .word 0x000007ff 80019a8: 0000041e .word 0x0000041e 80019ac: fffffc02 .word 0xfffffc02 80019b0: 0000043e .word 0x0000043e 080019b4 <__aeabi_dmul>: 80019b4: b5f0 push {r4, r5, r6, r7, lr} 80019b6: 4657 mov r7, sl 80019b8: 464e mov r6, r9 80019ba: 46de mov lr, fp 80019bc: 4645 mov r5, r8 80019be: b5e0 push {r5, r6, r7, lr} 80019c0: 001f movs r7, r3 80019c2: 030b lsls r3, r1, #12 80019c4: 0b1b lsrs r3, r3, #12 80019c6: 0016 movs r6, r2 80019c8: 469a mov sl, r3 80019ca: 0fca lsrs r2, r1, #31 80019cc: 004b lsls r3, r1, #1 80019ce: 0004 movs r4, r0 80019d0: 4691 mov r9, r2 80019d2: b085 sub sp, #20 80019d4: 0d5b lsrs r3, r3, #21 80019d6: d100 bne.n 80019da <__aeabi_dmul+0x26> 80019d8: e1cf b.n 8001d7a <__aeabi_dmul+0x3c6> 80019da: 4acd ldr r2, [pc, #820] @ (8001d10 <__aeabi_dmul+0x35c>) 80019dc: 4293 cmp r3, r2 80019de: d055 beq.n 8001a8c <__aeabi_dmul+0xd8> 80019e0: 4651 mov r1, sl 80019e2: 0f42 lsrs r2, r0, #29 80019e4: 00c9 lsls r1, r1, #3 80019e6: 430a orrs r2, r1 80019e8: 2180 movs r1, #128 @ 0x80 80019ea: 0409 lsls r1, r1, #16 80019ec: 4311 orrs r1, r2 80019ee: 00c2 lsls r2, r0, #3 80019f0: 4690 mov r8, r2 80019f2: 4ac8 ldr r2, [pc, #800] @ (8001d14 <__aeabi_dmul+0x360>) 80019f4: 468a mov sl, r1 80019f6: 4693 mov fp, r2 80019f8: 449b add fp, r3 80019fa: 2300 movs r3, #0 80019fc: 2500 movs r5, #0 80019fe: 9302 str r3, [sp, #8] 8001a00: 033c lsls r4, r7, #12 8001a02: 007b lsls r3, r7, #1 8001a04: 0ffa lsrs r2, r7, #31 8001a06: 9601 str r6, [sp, #4] 8001a08: 0b24 lsrs r4, r4, #12 8001a0a: 0d5b lsrs r3, r3, #21 8001a0c: 9200 str r2, [sp, #0] 8001a0e: d100 bne.n 8001a12 <__aeabi_dmul+0x5e> 8001a10: e188 b.n 8001d24 <__aeabi_dmul+0x370> 8001a12: 4abf ldr r2, [pc, #764] @ (8001d10 <__aeabi_dmul+0x35c>) 8001a14: 4293 cmp r3, r2 8001a16: d100 bne.n 8001a1a <__aeabi_dmul+0x66> 8001a18: e092 b.n 8001b40 <__aeabi_dmul+0x18c> 8001a1a: 4abe ldr r2, [pc, #760] @ (8001d14 <__aeabi_dmul+0x360>) 8001a1c: 4694 mov ip, r2 8001a1e: 4463 add r3, ip 8001a20: 449b add fp, r3 8001a22: 2d0a cmp r5, #10 8001a24: dc42 bgt.n 8001aac <__aeabi_dmul+0xf8> 8001a26: 00e4 lsls r4, r4, #3 8001a28: 0f73 lsrs r3, r6, #29 8001a2a: 4323 orrs r3, r4 8001a2c: 2480 movs r4, #128 @ 0x80 8001a2e: 4649 mov r1, r9 8001a30: 0424 lsls r4, r4, #16 8001a32: 431c orrs r4, r3 8001a34: 00f3 lsls r3, r6, #3 8001a36: 9301 str r3, [sp, #4] 8001a38: 9b00 ldr r3, [sp, #0] 8001a3a: 2000 movs r0, #0 8001a3c: 4059 eors r1, r3 8001a3e: b2cb uxtb r3, r1 8001a40: 9303 str r3, [sp, #12] 8001a42: 2d02 cmp r5, #2 8001a44: dc00 bgt.n 8001a48 <__aeabi_dmul+0x94> 8001a46: e094 b.n 8001b72 <__aeabi_dmul+0x1be> 8001a48: 2301 movs r3, #1 8001a4a: 40ab lsls r3, r5 8001a4c: 001d movs r5, r3 8001a4e: 23a6 movs r3, #166 @ 0xa6 8001a50: 002a movs r2, r5 8001a52: 00db lsls r3, r3, #3 8001a54: 401a ands r2, r3 8001a56: 421d tst r5, r3 8001a58: d000 beq.n 8001a5c <__aeabi_dmul+0xa8> 8001a5a: e229 b.n 8001eb0 <__aeabi_dmul+0x4fc> 8001a5c: 2390 movs r3, #144 @ 0x90 8001a5e: 009b lsls r3, r3, #2 8001a60: 421d tst r5, r3 8001a62: d100 bne.n 8001a66 <__aeabi_dmul+0xb2> 8001a64: e24d b.n 8001f02 <__aeabi_dmul+0x54e> 8001a66: 2300 movs r3, #0 8001a68: 2480 movs r4, #128 @ 0x80 8001a6a: 4699 mov r9, r3 8001a6c: 0324 lsls r4, r4, #12 8001a6e: 4ba8 ldr r3, [pc, #672] @ (8001d10 <__aeabi_dmul+0x35c>) 8001a70: 0010 movs r0, r2 8001a72: 464a mov r2, r9 8001a74: 051b lsls r3, r3, #20 8001a76: 4323 orrs r3, r4 8001a78: 07d2 lsls r2, r2, #31 8001a7a: 4313 orrs r3, r2 8001a7c: 0019 movs r1, r3 8001a7e: b005 add sp, #20 8001a80: bcf0 pop {r4, r5, r6, r7} 8001a82: 46bb mov fp, r7 8001a84: 46b2 mov sl, r6 8001a86: 46a9 mov r9, r5 8001a88: 46a0 mov r8, r4 8001a8a: bdf0 pop {r4, r5, r6, r7, pc} 8001a8c: 4652 mov r2, sl 8001a8e: 4302 orrs r2, r0 8001a90: 4690 mov r8, r2 8001a92: d000 beq.n 8001a96 <__aeabi_dmul+0xe2> 8001a94: e1ac b.n 8001df0 <__aeabi_dmul+0x43c> 8001a96: 469b mov fp, r3 8001a98: 2302 movs r3, #2 8001a9a: 4692 mov sl, r2 8001a9c: 2508 movs r5, #8 8001a9e: 9302 str r3, [sp, #8] 8001aa0: e7ae b.n 8001a00 <__aeabi_dmul+0x4c> 8001aa2: 9b00 ldr r3, [sp, #0] 8001aa4: 46a2 mov sl, r4 8001aa6: 4699 mov r9, r3 8001aa8: 9b01 ldr r3, [sp, #4] 8001aaa: 4698 mov r8, r3 8001aac: 9b02 ldr r3, [sp, #8] 8001aae: 2b02 cmp r3, #2 8001ab0: d100 bne.n 8001ab4 <__aeabi_dmul+0x100> 8001ab2: e1ca b.n 8001e4a <__aeabi_dmul+0x496> 8001ab4: 2b03 cmp r3, #3 8001ab6: d100 bne.n 8001aba <__aeabi_dmul+0x106> 8001ab8: e192 b.n 8001de0 <__aeabi_dmul+0x42c> 8001aba: 2b01 cmp r3, #1 8001abc: d110 bne.n 8001ae0 <__aeabi_dmul+0x12c> 8001abe: 2300 movs r3, #0 8001ac0: 2400 movs r4, #0 8001ac2: 2200 movs r2, #0 8001ac4: e7d4 b.n 8001a70 <__aeabi_dmul+0xbc> 8001ac6: 2201 movs r2, #1 8001ac8: 087b lsrs r3, r7, #1 8001aca: 403a ands r2, r7 8001acc: 4313 orrs r3, r2 8001ace: 4652 mov r2, sl 8001ad0: 07d2 lsls r2, r2, #31 8001ad2: 4313 orrs r3, r2 8001ad4: 4698 mov r8, r3 8001ad6: 4653 mov r3, sl 8001ad8: 085b lsrs r3, r3, #1 8001ada: 469a mov sl, r3 8001adc: 9b03 ldr r3, [sp, #12] 8001ade: 4699 mov r9, r3 8001ae0: 465b mov r3, fp 8001ae2: 1c58 adds r0, r3, #1 8001ae4: 2380 movs r3, #128 @ 0x80 8001ae6: 00db lsls r3, r3, #3 8001ae8: 445b add r3, fp 8001aea: 2b00 cmp r3, #0 8001aec: dc00 bgt.n 8001af0 <__aeabi_dmul+0x13c> 8001aee: e1b1 b.n 8001e54 <__aeabi_dmul+0x4a0> 8001af0: 4642 mov r2, r8 8001af2: 0752 lsls r2, r2, #29 8001af4: d00b beq.n 8001b0e <__aeabi_dmul+0x15a> 8001af6: 220f movs r2, #15 8001af8: 4641 mov r1, r8 8001afa: 400a ands r2, r1 8001afc: 2a04 cmp r2, #4 8001afe: d006 beq.n 8001b0e <__aeabi_dmul+0x15a> 8001b00: 4642 mov r2, r8 8001b02: 1d11 adds r1, r2, #4 8001b04: 4541 cmp r1, r8 8001b06: 4192 sbcs r2, r2 8001b08: 4688 mov r8, r1 8001b0a: 4252 negs r2, r2 8001b0c: 4492 add sl, r2 8001b0e: 4652 mov r2, sl 8001b10: 01d2 lsls r2, r2, #7 8001b12: d506 bpl.n 8001b22 <__aeabi_dmul+0x16e> 8001b14: 4652 mov r2, sl 8001b16: 4b80 ldr r3, [pc, #512] @ (8001d18 <__aeabi_dmul+0x364>) 8001b18: 401a ands r2, r3 8001b1a: 2380 movs r3, #128 @ 0x80 8001b1c: 4692 mov sl, r2 8001b1e: 00db lsls r3, r3, #3 8001b20: 18c3 adds r3, r0, r3 8001b22: 4a7e ldr r2, [pc, #504] @ (8001d1c <__aeabi_dmul+0x368>) 8001b24: 4293 cmp r3, r2 8001b26: dd00 ble.n 8001b2a <__aeabi_dmul+0x176> 8001b28: e18f b.n 8001e4a <__aeabi_dmul+0x496> 8001b2a: 4642 mov r2, r8 8001b2c: 08d1 lsrs r1, r2, #3 8001b2e: 4652 mov r2, sl 8001b30: 0752 lsls r2, r2, #29 8001b32: 430a orrs r2, r1 8001b34: 4651 mov r1, sl 8001b36: 055b lsls r3, r3, #21 8001b38: 024c lsls r4, r1, #9 8001b3a: 0b24 lsrs r4, r4, #12 8001b3c: 0d5b lsrs r3, r3, #21 8001b3e: e797 b.n 8001a70 <__aeabi_dmul+0xbc> 8001b40: 4b73 ldr r3, [pc, #460] @ (8001d10 <__aeabi_dmul+0x35c>) 8001b42: 4326 orrs r6, r4 8001b44: 469c mov ip, r3 8001b46: 44e3 add fp, ip 8001b48: 2e00 cmp r6, #0 8001b4a: d100 bne.n 8001b4e <__aeabi_dmul+0x19a> 8001b4c: e16f b.n 8001e2e <__aeabi_dmul+0x47a> 8001b4e: 2303 movs r3, #3 8001b50: 4649 mov r1, r9 8001b52: 431d orrs r5, r3 8001b54: 9b00 ldr r3, [sp, #0] 8001b56: 4059 eors r1, r3 8001b58: b2cb uxtb r3, r1 8001b5a: 9303 str r3, [sp, #12] 8001b5c: 2d0a cmp r5, #10 8001b5e: dd00 ble.n 8001b62 <__aeabi_dmul+0x1ae> 8001b60: e133 b.n 8001dca <__aeabi_dmul+0x416> 8001b62: 2301 movs r3, #1 8001b64: 40ab lsls r3, r5 8001b66: 001d movs r5, r3 8001b68: 2303 movs r3, #3 8001b6a: 9302 str r3, [sp, #8] 8001b6c: 2288 movs r2, #136 @ 0x88 8001b6e: 422a tst r2, r5 8001b70: d197 bne.n 8001aa2 <__aeabi_dmul+0xee> 8001b72: 4642 mov r2, r8 8001b74: 4643 mov r3, r8 8001b76: 0412 lsls r2, r2, #16 8001b78: 0c12 lsrs r2, r2, #16 8001b7a: 0016 movs r6, r2 8001b7c: 9801 ldr r0, [sp, #4] 8001b7e: 0c1d lsrs r5, r3, #16 8001b80: 0c03 lsrs r3, r0, #16 8001b82: 0400 lsls r0, r0, #16 8001b84: 0c00 lsrs r0, r0, #16 8001b86: 4346 muls r6, r0 8001b88: 46b4 mov ip, r6 8001b8a: 001e movs r6, r3 8001b8c: 436e muls r6, r5 8001b8e: 9600 str r6, [sp, #0] 8001b90: 0016 movs r6, r2 8001b92: 0007 movs r7, r0 8001b94: 435e muls r6, r3 8001b96: 4661 mov r1, ip 8001b98: 46b0 mov r8, r6 8001b9a: 436f muls r7, r5 8001b9c: 0c0e lsrs r6, r1, #16 8001b9e: 44b8 add r8, r7 8001ba0: 4446 add r6, r8 8001ba2: 42b7 cmp r7, r6 8001ba4: d905 bls.n 8001bb2 <__aeabi_dmul+0x1fe> 8001ba6: 2180 movs r1, #128 @ 0x80 8001ba8: 0249 lsls r1, r1, #9 8001baa: 4688 mov r8, r1 8001bac: 9f00 ldr r7, [sp, #0] 8001bae: 4447 add r7, r8 8001bb0: 9700 str r7, [sp, #0] 8001bb2: 4661 mov r1, ip 8001bb4: 0409 lsls r1, r1, #16 8001bb6: 0c09 lsrs r1, r1, #16 8001bb8: 0c37 lsrs r7, r6, #16 8001bba: 0436 lsls r6, r6, #16 8001bbc: 468c mov ip, r1 8001bbe: 0031 movs r1, r6 8001bc0: 4461 add r1, ip 8001bc2: 9101 str r1, [sp, #4] 8001bc4: 0011 movs r1, r2 8001bc6: 0c26 lsrs r6, r4, #16 8001bc8: 0424 lsls r4, r4, #16 8001bca: 0c24 lsrs r4, r4, #16 8001bcc: 4361 muls r1, r4 8001bce: 468c mov ip, r1 8001bd0: 0021 movs r1, r4 8001bd2: 4369 muls r1, r5 8001bd4: 4689 mov r9, r1 8001bd6: 4661 mov r1, ip 8001bd8: 0c09 lsrs r1, r1, #16 8001bda: 4688 mov r8, r1 8001bdc: 4372 muls r2, r6 8001bde: 444a add r2, r9 8001be0: 4442 add r2, r8 8001be2: 4375 muls r5, r6 8001be4: 4591 cmp r9, r2 8001be6: d903 bls.n 8001bf0 <__aeabi_dmul+0x23c> 8001be8: 2180 movs r1, #128 @ 0x80 8001bea: 0249 lsls r1, r1, #9 8001bec: 4688 mov r8, r1 8001bee: 4445 add r5, r8 8001bf0: 0c11 lsrs r1, r2, #16 8001bf2: 4688 mov r8, r1 8001bf4: 4661 mov r1, ip 8001bf6: 0409 lsls r1, r1, #16 8001bf8: 0c09 lsrs r1, r1, #16 8001bfa: 468c mov ip, r1 8001bfc: 0412 lsls r2, r2, #16 8001bfe: 4462 add r2, ip 8001c00: 18b9 adds r1, r7, r2 8001c02: 9102 str r1, [sp, #8] 8001c04: 4651 mov r1, sl 8001c06: 0c09 lsrs r1, r1, #16 8001c08: 468c mov ip, r1 8001c0a: 4651 mov r1, sl 8001c0c: 040f lsls r7, r1, #16 8001c0e: 0c3f lsrs r7, r7, #16 8001c10: 0039 movs r1, r7 8001c12: 4341 muls r1, r0 8001c14: 4445 add r5, r8 8001c16: 4688 mov r8, r1 8001c18: 4661 mov r1, ip 8001c1a: 4341 muls r1, r0 8001c1c: 468a mov sl, r1 8001c1e: 4641 mov r1, r8 8001c20: 4660 mov r0, ip 8001c22: 0c09 lsrs r1, r1, #16 8001c24: 4689 mov r9, r1 8001c26: 4358 muls r0, r3 8001c28: 437b muls r3, r7 8001c2a: 4453 add r3, sl 8001c2c: 444b add r3, r9 8001c2e: 459a cmp sl, r3 8001c30: d903 bls.n 8001c3a <__aeabi_dmul+0x286> 8001c32: 2180 movs r1, #128 @ 0x80 8001c34: 0249 lsls r1, r1, #9 8001c36: 4689 mov r9, r1 8001c38: 4448 add r0, r9 8001c3a: 0c19 lsrs r1, r3, #16 8001c3c: 4689 mov r9, r1 8001c3e: 4641 mov r1, r8 8001c40: 0409 lsls r1, r1, #16 8001c42: 0c09 lsrs r1, r1, #16 8001c44: 4688 mov r8, r1 8001c46: 0039 movs r1, r7 8001c48: 4361 muls r1, r4 8001c4a: 041b lsls r3, r3, #16 8001c4c: 4443 add r3, r8 8001c4e: 4688 mov r8, r1 8001c50: 4661 mov r1, ip 8001c52: 434c muls r4, r1 8001c54: 4371 muls r1, r6 8001c56: 468c mov ip, r1 8001c58: 4641 mov r1, r8 8001c5a: 4377 muls r7, r6 8001c5c: 0c0e lsrs r6, r1, #16 8001c5e: 193f adds r7, r7, r4 8001c60: 19f6 adds r6, r6, r7 8001c62: 4448 add r0, r9 8001c64: 42b4 cmp r4, r6 8001c66: d903 bls.n 8001c70 <__aeabi_dmul+0x2bc> 8001c68: 2180 movs r1, #128 @ 0x80 8001c6a: 0249 lsls r1, r1, #9 8001c6c: 4689 mov r9, r1 8001c6e: 44cc add ip, r9 8001c70: 9902 ldr r1, [sp, #8] 8001c72: 9f00 ldr r7, [sp, #0] 8001c74: 4689 mov r9, r1 8001c76: 0431 lsls r1, r6, #16 8001c78: 444f add r7, r9 8001c7a: 4689 mov r9, r1 8001c7c: 4641 mov r1, r8 8001c7e: 4297 cmp r7, r2 8001c80: 4192 sbcs r2, r2 8001c82: 040c lsls r4, r1, #16 8001c84: 0c24 lsrs r4, r4, #16 8001c86: 444c add r4, r9 8001c88: 18ff adds r7, r7, r3 8001c8a: 4252 negs r2, r2 8001c8c: 1964 adds r4, r4, r5 8001c8e: 18a1 adds r1, r4, r2 8001c90: 429f cmp r7, r3 8001c92: 419b sbcs r3, r3 8001c94: 4688 mov r8, r1 8001c96: 4682 mov sl, r0 8001c98: 425b negs r3, r3 8001c9a: 4699 mov r9, r3 8001c9c: 4590 cmp r8, r2 8001c9e: 4192 sbcs r2, r2 8001ca0: 42ac cmp r4, r5 8001ca2: 41a4 sbcs r4, r4 8001ca4: 44c2 add sl, r8 8001ca6: 44d1 add r9, sl 8001ca8: 4252 negs r2, r2 8001caa: 4264 negs r4, r4 8001cac: 4314 orrs r4, r2 8001cae: 4599 cmp r9, r3 8001cb0: 419b sbcs r3, r3 8001cb2: 4582 cmp sl, r0 8001cb4: 4192 sbcs r2, r2 8001cb6: 425b negs r3, r3 8001cb8: 4252 negs r2, r2 8001cba: 4313 orrs r3, r2 8001cbc: 464a mov r2, r9 8001cbe: 0c36 lsrs r6, r6, #16 8001cc0: 19a4 adds r4, r4, r6 8001cc2: 18e3 adds r3, r4, r3 8001cc4: 4463 add r3, ip 8001cc6: 025b lsls r3, r3, #9 8001cc8: 0dd2 lsrs r2, r2, #23 8001cca: 431a orrs r2, r3 8001ccc: 9901 ldr r1, [sp, #4] 8001cce: 4692 mov sl, r2 8001cd0: 027a lsls r2, r7, #9 8001cd2: 430a orrs r2, r1 8001cd4: 1e50 subs r0, r2, #1 8001cd6: 4182 sbcs r2, r0 8001cd8: 0dff lsrs r7, r7, #23 8001cda: 4317 orrs r7, r2 8001cdc: 464a mov r2, r9 8001cde: 0252 lsls r2, r2, #9 8001ce0: 4317 orrs r7, r2 8001ce2: 46b8 mov r8, r7 8001ce4: 01db lsls r3, r3, #7 8001ce6: d500 bpl.n 8001cea <__aeabi_dmul+0x336> 8001ce8: e6ed b.n 8001ac6 <__aeabi_dmul+0x112> 8001cea: 4b0d ldr r3, [pc, #52] @ (8001d20 <__aeabi_dmul+0x36c>) 8001cec: 9a03 ldr r2, [sp, #12] 8001cee: 445b add r3, fp 8001cf0: 4691 mov r9, r2 8001cf2: 2b00 cmp r3, #0 8001cf4: dc00 bgt.n 8001cf8 <__aeabi_dmul+0x344> 8001cf6: e0ac b.n 8001e52 <__aeabi_dmul+0x49e> 8001cf8: 003a movs r2, r7 8001cfa: 0752 lsls r2, r2, #29 8001cfc: d100 bne.n 8001d00 <__aeabi_dmul+0x34c> 8001cfe: e710 b.n 8001b22 <__aeabi_dmul+0x16e> 8001d00: 220f movs r2, #15 8001d02: 4658 mov r0, fp 8001d04: 403a ands r2, r7 8001d06: 2a04 cmp r2, #4 8001d08: d000 beq.n 8001d0c <__aeabi_dmul+0x358> 8001d0a: e6f9 b.n 8001b00 <__aeabi_dmul+0x14c> 8001d0c: e709 b.n 8001b22 <__aeabi_dmul+0x16e> 8001d0e: 46c0 nop @ (mov r8, r8) 8001d10: 000007ff .word 0x000007ff 8001d14: fffffc01 .word 0xfffffc01 8001d18: feffffff .word 0xfeffffff 8001d1c: 000007fe .word 0x000007fe 8001d20: 000003ff .word 0x000003ff 8001d24: 0022 movs r2, r4 8001d26: 4332 orrs r2, r6 8001d28: d06f beq.n 8001e0a <__aeabi_dmul+0x456> 8001d2a: 2c00 cmp r4, #0 8001d2c: d100 bne.n 8001d30 <__aeabi_dmul+0x37c> 8001d2e: e0c2 b.n 8001eb6 <__aeabi_dmul+0x502> 8001d30: 0020 movs r0, r4 8001d32: f000 f98f bl 8002054 <__clzsi2> 8001d36: 0002 movs r2, r0 8001d38: 0003 movs r3, r0 8001d3a: 3a0b subs r2, #11 8001d3c: 201d movs r0, #29 8001d3e: 1a82 subs r2, r0, r2 8001d40: 0030 movs r0, r6 8001d42: 0019 movs r1, r3 8001d44: 40d0 lsrs r0, r2 8001d46: 3908 subs r1, #8 8001d48: 408c lsls r4, r1 8001d4a: 0002 movs r2, r0 8001d4c: 4322 orrs r2, r4 8001d4e: 0034 movs r4, r6 8001d50: 408c lsls r4, r1 8001d52: 4659 mov r1, fp 8001d54: 1acb subs r3, r1, r3 8001d56: 4986 ldr r1, [pc, #536] @ (8001f70 <__aeabi_dmul+0x5bc>) 8001d58: 468b mov fp, r1 8001d5a: 449b add fp, r3 8001d5c: 2d0a cmp r5, #10 8001d5e: dd00 ble.n 8001d62 <__aeabi_dmul+0x3ae> 8001d60: e6a4 b.n 8001aac <__aeabi_dmul+0xf8> 8001d62: 4649 mov r1, r9 8001d64: 9b00 ldr r3, [sp, #0] 8001d66: 9401 str r4, [sp, #4] 8001d68: 4059 eors r1, r3 8001d6a: b2cb uxtb r3, r1 8001d6c: 0014 movs r4, r2 8001d6e: 2000 movs r0, #0 8001d70: 9303 str r3, [sp, #12] 8001d72: 2d02 cmp r5, #2 8001d74: dd00 ble.n 8001d78 <__aeabi_dmul+0x3c4> 8001d76: e667 b.n 8001a48 <__aeabi_dmul+0x94> 8001d78: e6fb b.n 8001b72 <__aeabi_dmul+0x1be> 8001d7a: 4653 mov r3, sl 8001d7c: 4303 orrs r3, r0 8001d7e: 4698 mov r8, r3 8001d80: d03c beq.n 8001dfc <__aeabi_dmul+0x448> 8001d82: 4653 mov r3, sl 8001d84: 2b00 cmp r3, #0 8001d86: d100 bne.n 8001d8a <__aeabi_dmul+0x3d6> 8001d88: e0a3 b.n 8001ed2 <__aeabi_dmul+0x51e> 8001d8a: 4650 mov r0, sl 8001d8c: f000 f962 bl 8002054 <__clzsi2> 8001d90: 230b movs r3, #11 8001d92: 425b negs r3, r3 8001d94: 469c mov ip, r3 8001d96: 0002 movs r2, r0 8001d98: 4484 add ip, r0 8001d9a: 0011 movs r1, r2 8001d9c: 4650 mov r0, sl 8001d9e: 3908 subs r1, #8 8001da0: 4088 lsls r0, r1 8001da2: 231d movs r3, #29 8001da4: 4680 mov r8, r0 8001da6: 4660 mov r0, ip 8001da8: 1a1b subs r3, r3, r0 8001daa: 0020 movs r0, r4 8001dac: 40d8 lsrs r0, r3 8001dae: 0003 movs r3, r0 8001db0: 4640 mov r0, r8 8001db2: 4303 orrs r3, r0 8001db4: 469a mov sl, r3 8001db6: 0023 movs r3, r4 8001db8: 408b lsls r3, r1 8001dba: 4698 mov r8, r3 8001dbc: 4b6c ldr r3, [pc, #432] @ (8001f70 <__aeabi_dmul+0x5bc>) 8001dbe: 2500 movs r5, #0 8001dc0: 1a9b subs r3, r3, r2 8001dc2: 469b mov fp, r3 8001dc4: 2300 movs r3, #0 8001dc6: 9302 str r3, [sp, #8] 8001dc8: e61a b.n 8001a00 <__aeabi_dmul+0x4c> 8001dca: 2d0f cmp r5, #15 8001dcc: d000 beq.n 8001dd0 <__aeabi_dmul+0x41c> 8001dce: e0c9 b.n 8001f64 <__aeabi_dmul+0x5b0> 8001dd0: 2380 movs r3, #128 @ 0x80 8001dd2: 4652 mov r2, sl 8001dd4: 031b lsls r3, r3, #12 8001dd6: 421a tst r2, r3 8001dd8: d002 beq.n 8001de0 <__aeabi_dmul+0x42c> 8001dda: 421c tst r4, r3 8001ddc: d100 bne.n 8001de0 <__aeabi_dmul+0x42c> 8001dde: e092 b.n 8001f06 <__aeabi_dmul+0x552> 8001de0: 2480 movs r4, #128 @ 0x80 8001de2: 4653 mov r3, sl 8001de4: 0324 lsls r4, r4, #12 8001de6: 431c orrs r4, r3 8001de8: 0324 lsls r4, r4, #12 8001dea: 4642 mov r2, r8 8001dec: 0b24 lsrs r4, r4, #12 8001dee: e63e b.n 8001a6e <__aeabi_dmul+0xba> 8001df0: 469b mov fp, r3 8001df2: 2303 movs r3, #3 8001df4: 4680 mov r8, r0 8001df6: 250c movs r5, #12 8001df8: 9302 str r3, [sp, #8] 8001dfa: e601 b.n 8001a00 <__aeabi_dmul+0x4c> 8001dfc: 2300 movs r3, #0 8001dfe: 469a mov sl, r3 8001e00: 469b mov fp, r3 8001e02: 3301 adds r3, #1 8001e04: 2504 movs r5, #4 8001e06: 9302 str r3, [sp, #8] 8001e08: e5fa b.n 8001a00 <__aeabi_dmul+0x4c> 8001e0a: 2101 movs r1, #1 8001e0c: 430d orrs r5, r1 8001e0e: 2d0a cmp r5, #10 8001e10: dd00 ble.n 8001e14 <__aeabi_dmul+0x460> 8001e12: e64b b.n 8001aac <__aeabi_dmul+0xf8> 8001e14: 4649 mov r1, r9 8001e16: 9800 ldr r0, [sp, #0] 8001e18: 4041 eors r1, r0 8001e1a: b2c9 uxtb r1, r1 8001e1c: 9103 str r1, [sp, #12] 8001e1e: 2d02 cmp r5, #2 8001e20: dc00 bgt.n 8001e24 <__aeabi_dmul+0x470> 8001e22: e096 b.n 8001f52 <__aeabi_dmul+0x59e> 8001e24: 2300 movs r3, #0 8001e26: 2400 movs r4, #0 8001e28: 2001 movs r0, #1 8001e2a: 9301 str r3, [sp, #4] 8001e2c: e60c b.n 8001a48 <__aeabi_dmul+0x94> 8001e2e: 4649 mov r1, r9 8001e30: 2302 movs r3, #2 8001e32: 9a00 ldr r2, [sp, #0] 8001e34: 432b orrs r3, r5 8001e36: 4051 eors r1, r2 8001e38: b2ca uxtb r2, r1 8001e3a: 9203 str r2, [sp, #12] 8001e3c: 2b0a cmp r3, #10 8001e3e: dd00 ble.n 8001e42 <__aeabi_dmul+0x48e> 8001e40: e634 b.n 8001aac <__aeabi_dmul+0xf8> 8001e42: 2d00 cmp r5, #0 8001e44: d157 bne.n 8001ef6 <__aeabi_dmul+0x542> 8001e46: 9b03 ldr r3, [sp, #12] 8001e48: 4699 mov r9, r3 8001e4a: 2400 movs r4, #0 8001e4c: 2200 movs r2, #0 8001e4e: 4b49 ldr r3, [pc, #292] @ (8001f74 <__aeabi_dmul+0x5c0>) 8001e50: e60e b.n 8001a70 <__aeabi_dmul+0xbc> 8001e52: 4658 mov r0, fp 8001e54: 2101 movs r1, #1 8001e56: 1ac9 subs r1, r1, r3 8001e58: 2938 cmp r1, #56 @ 0x38 8001e5a: dd00 ble.n 8001e5e <__aeabi_dmul+0x4aa> 8001e5c: e62f b.n 8001abe <__aeabi_dmul+0x10a> 8001e5e: 291f cmp r1, #31 8001e60: dd56 ble.n 8001f10 <__aeabi_dmul+0x55c> 8001e62: 221f movs r2, #31 8001e64: 4654 mov r4, sl 8001e66: 4252 negs r2, r2 8001e68: 1ad3 subs r3, r2, r3 8001e6a: 40dc lsrs r4, r3 8001e6c: 2920 cmp r1, #32 8001e6e: d007 beq.n 8001e80 <__aeabi_dmul+0x4cc> 8001e70: 4b41 ldr r3, [pc, #260] @ (8001f78 <__aeabi_dmul+0x5c4>) 8001e72: 4642 mov r2, r8 8001e74: 469c mov ip, r3 8001e76: 4653 mov r3, sl 8001e78: 4460 add r0, ip 8001e7a: 4083 lsls r3, r0 8001e7c: 431a orrs r2, r3 8001e7e: 4690 mov r8, r2 8001e80: 4642 mov r2, r8 8001e82: 2107 movs r1, #7 8001e84: 1e53 subs r3, r2, #1 8001e86: 419a sbcs r2, r3 8001e88: 000b movs r3, r1 8001e8a: 4322 orrs r2, r4 8001e8c: 4013 ands r3, r2 8001e8e: 2400 movs r4, #0 8001e90: 4211 tst r1, r2 8001e92: d009 beq.n 8001ea8 <__aeabi_dmul+0x4f4> 8001e94: 230f movs r3, #15 8001e96: 4013 ands r3, r2 8001e98: 2b04 cmp r3, #4 8001e9a: d05d beq.n 8001f58 <__aeabi_dmul+0x5a4> 8001e9c: 1d11 adds r1, r2, #4 8001e9e: 4291 cmp r1, r2 8001ea0: 419b sbcs r3, r3 8001ea2: 000a movs r2, r1 8001ea4: 425b negs r3, r3 8001ea6: 075b lsls r3, r3, #29 8001ea8: 08d2 lsrs r2, r2, #3 8001eaa: 431a orrs r2, r3 8001eac: 2300 movs r3, #0 8001eae: e5df b.n 8001a70 <__aeabi_dmul+0xbc> 8001eb0: 9b03 ldr r3, [sp, #12] 8001eb2: 4699 mov r9, r3 8001eb4: e5fa b.n 8001aac <__aeabi_dmul+0xf8> 8001eb6: 9801 ldr r0, [sp, #4] 8001eb8: f000 f8cc bl 8002054 <__clzsi2> 8001ebc: 0002 movs r2, r0 8001ebe: 0003 movs r3, r0 8001ec0: 3215 adds r2, #21 8001ec2: 3320 adds r3, #32 8001ec4: 2a1c cmp r2, #28 8001ec6: dc00 bgt.n 8001eca <__aeabi_dmul+0x516> 8001ec8: e738 b.n 8001d3c <__aeabi_dmul+0x388> 8001eca: 9a01 ldr r2, [sp, #4] 8001ecc: 3808 subs r0, #8 8001ece: 4082 lsls r2, r0 8001ed0: e73f b.n 8001d52 <__aeabi_dmul+0x39e> 8001ed2: f000 f8bf bl 8002054 <__clzsi2> 8001ed6: 2315 movs r3, #21 8001ed8: 469c mov ip, r3 8001eda: 4484 add ip, r0 8001edc: 0002 movs r2, r0 8001ede: 4663 mov r3, ip 8001ee0: 3220 adds r2, #32 8001ee2: 2b1c cmp r3, #28 8001ee4: dc00 bgt.n 8001ee8 <__aeabi_dmul+0x534> 8001ee6: e758 b.n 8001d9a <__aeabi_dmul+0x3e6> 8001ee8: 2300 movs r3, #0 8001eea: 4698 mov r8, r3 8001eec: 0023 movs r3, r4 8001eee: 3808 subs r0, #8 8001ef0: 4083 lsls r3, r0 8001ef2: 469a mov sl, r3 8001ef4: e762 b.n 8001dbc <__aeabi_dmul+0x408> 8001ef6: 001d movs r5, r3 8001ef8: 2300 movs r3, #0 8001efa: 2400 movs r4, #0 8001efc: 2002 movs r0, #2 8001efe: 9301 str r3, [sp, #4] 8001f00: e5a2 b.n 8001a48 <__aeabi_dmul+0x94> 8001f02: 9002 str r0, [sp, #8] 8001f04: e632 b.n 8001b6c <__aeabi_dmul+0x1b8> 8001f06: 431c orrs r4, r3 8001f08: 9b00 ldr r3, [sp, #0] 8001f0a: 9a01 ldr r2, [sp, #4] 8001f0c: 4699 mov r9, r3 8001f0e: e5ae b.n 8001a6e <__aeabi_dmul+0xba> 8001f10: 4b1a ldr r3, [pc, #104] @ (8001f7c <__aeabi_dmul+0x5c8>) 8001f12: 4652 mov r2, sl 8001f14: 18c3 adds r3, r0, r3 8001f16: 4640 mov r0, r8 8001f18: 409a lsls r2, r3 8001f1a: 40c8 lsrs r0, r1 8001f1c: 4302 orrs r2, r0 8001f1e: 4640 mov r0, r8 8001f20: 4098 lsls r0, r3 8001f22: 0003 movs r3, r0 8001f24: 1e58 subs r0, r3, #1 8001f26: 4183 sbcs r3, r0 8001f28: 4654 mov r4, sl 8001f2a: 431a orrs r2, r3 8001f2c: 40cc lsrs r4, r1 8001f2e: 0753 lsls r3, r2, #29 8001f30: d009 beq.n 8001f46 <__aeabi_dmul+0x592> 8001f32: 230f movs r3, #15 8001f34: 4013 ands r3, r2 8001f36: 2b04 cmp r3, #4 8001f38: d005 beq.n 8001f46 <__aeabi_dmul+0x592> 8001f3a: 1d13 adds r3, r2, #4 8001f3c: 4293 cmp r3, r2 8001f3e: 4192 sbcs r2, r2 8001f40: 4252 negs r2, r2 8001f42: 18a4 adds r4, r4, r2 8001f44: 001a movs r2, r3 8001f46: 0223 lsls r3, r4, #8 8001f48: d508 bpl.n 8001f5c <__aeabi_dmul+0x5a8> 8001f4a: 2301 movs r3, #1 8001f4c: 2400 movs r4, #0 8001f4e: 2200 movs r2, #0 8001f50: e58e b.n 8001a70 <__aeabi_dmul+0xbc> 8001f52: 4689 mov r9, r1 8001f54: 2400 movs r4, #0 8001f56: e58b b.n 8001a70 <__aeabi_dmul+0xbc> 8001f58: 2300 movs r3, #0 8001f5a: e7a5 b.n 8001ea8 <__aeabi_dmul+0x4f4> 8001f5c: 0763 lsls r3, r4, #29 8001f5e: 0264 lsls r4, r4, #9 8001f60: 0b24 lsrs r4, r4, #12 8001f62: e7a1 b.n 8001ea8 <__aeabi_dmul+0x4f4> 8001f64: 9b00 ldr r3, [sp, #0] 8001f66: 46a2 mov sl, r4 8001f68: 4699 mov r9, r3 8001f6a: 9b01 ldr r3, [sp, #4] 8001f6c: 4698 mov r8, r3 8001f6e: e737 b.n 8001de0 <__aeabi_dmul+0x42c> 8001f70: fffffc0d .word 0xfffffc0d 8001f74: 000007ff .word 0x000007ff 8001f78: 0000043e .word 0x0000043e 8001f7c: 0000041e .word 0x0000041e 08001f80 <__aeabi_d2iz>: 8001f80: 000b movs r3, r1 8001f82: 0002 movs r2, r0 8001f84: b570 push {r4, r5, r6, lr} 8001f86: 4d16 ldr r5, [pc, #88] @ (8001fe0 <__aeabi_d2iz+0x60>) 8001f88: 030c lsls r4, r1, #12 8001f8a: b082 sub sp, #8 8001f8c: 0049 lsls r1, r1, #1 8001f8e: 2000 movs r0, #0 8001f90: 9200 str r2, [sp, #0] 8001f92: 9301 str r3, [sp, #4] 8001f94: 0b24 lsrs r4, r4, #12 8001f96: 0d49 lsrs r1, r1, #21 8001f98: 0fde lsrs r6, r3, #31 8001f9a: 42a9 cmp r1, r5 8001f9c: dd04 ble.n 8001fa8 <__aeabi_d2iz+0x28> 8001f9e: 4811 ldr r0, [pc, #68] @ (8001fe4 <__aeabi_d2iz+0x64>) 8001fa0: 4281 cmp r1, r0 8001fa2: dd03 ble.n 8001fac <__aeabi_d2iz+0x2c> 8001fa4: 4b10 ldr r3, [pc, #64] @ (8001fe8 <__aeabi_d2iz+0x68>) 8001fa6: 18f0 adds r0, r6, r3 8001fa8: b002 add sp, #8 8001faa: bd70 pop {r4, r5, r6, pc} 8001fac: 2080 movs r0, #128 @ 0x80 8001fae: 0340 lsls r0, r0, #13 8001fb0: 4320 orrs r0, r4 8001fb2: 4c0e ldr r4, [pc, #56] @ (8001fec <__aeabi_d2iz+0x6c>) 8001fb4: 1a64 subs r4, r4, r1 8001fb6: 2c1f cmp r4, #31 8001fb8: dd08 ble.n 8001fcc <__aeabi_d2iz+0x4c> 8001fba: 4b0d ldr r3, [pc, #52] @ (8001ff0 <__aeabi_d2iz+0x70>) 8001fbc: 1a5b subs r3, r3, r1 8001fbe: 40d8 lsrs r0, r3 8001fc0: 0003 movs r3, r0 8001fc2: 4258 negs r0, r3 8001fc4: 2e00 cmp r6, #0 8001fc6: d1ef bne.n 8001fa8 <__aeabi_d2iz+0x28> 8001fc8: 0018 movs r0, r3 8001fca: e7ed b.n 8001fa8 <__aeabi_d2iz+0x28> 8001fcc: 4b09 ldr r3, [pc, #36] @ (8001ff4 <__aeabi_d2iz+0x74>) 8001fce: 9a00 ldr r2, [sp, #0] 8001fd0: 469c mov ip, r3 8001fd2: 0003 movs r3, r0 8001fd4: 4461 add r1, ip 8001fd6: 408b lsls r3, r1 8001fd8: 40e2 lsrs r2, r4 8001fda: 4313 orrs r3, r2 8001fdc: e7f1 b.n 8001fc2 <__aeabi_d2iz+0x42> 8001fde: 46c0 nop @ (mov r8, r8) 8001fe0: 000003fe .word 0x000003fe 8001fe4: 0000041d .word 0x0000041d 8001fe8: 7fffffff .word 0x7fffffff 8001fec: 00000433 .word 0x00000433 8001ff0: 00000413 .word 0x00000413 8001ff4: fffffbed .word 0xfffffbed 08001ff8 <__aeabi_i2d>: 8001ff8: b570 push {r4, r5, r6, lr} 8001ffa: 2800 cmp r0, #0 8001ffc: d016 beq.n 800202c <__aeabi_i2d+0x34> 8001ffe: 17c3 asrs r3, r0, #31 8002000: 18c5 adds r5, r0, r3 8002002: 405d eors r5, r3 8002004: 0fc4 lsrs r4, r0, #31 8002006: 0028 movs r0, r5 8002008: f000 f824 bl 8002054 <__clzsi2> 800200c: 4b10 ldr r3, [pc, #64] @ (8002050 <__aeabi_i2d+0x58>) 800200e: 1a1b subs r3, r3, r0 8002010: 055b lsls r3, r3, #21 8002012: 0d5b lsrs r3, r3, #21 8002014: 280a cmp r0, #10 8002016: dc14 bgt.n 8002042 <__aeabi_i2d+0x4a> 8002018: 0002 movs r2, r0 800201a: 002e movs r6, r5 800201c: 3215 adds r2, #21 800201e: 4096 lsls r6, r2 8002020: 220b movs r2, #11 8002022: 1a12 subs r2, r2, r0 8002024: 40d5 lsrs r5, r2 8002026: 032d lsls r5, r5, #12 8002028: 0b2d lsrs r5, r5, #12 800202a: e003 b.n 8002034 <__aeabi_i2d+0x3c> 800202c: 2400 movs r4, #0 800202e: 2300 movs r3, #0 8002030: 2500 movs r5, #0 8002032: 2600 movs r6, #0 8002034: 051b lsls r3, r3, #20 8002036: 432b orrs r3, r5 8002038: 07e4 lsls r4, r4, #31 800203a: 4323 orrs r3, r4 800203c: 0030 movs r0, r6 800203e: 0019 movs r1, r3 8002040: bd70 pop {r4, r5, r6, pc} 8002042: 380b subs r0, #11 8002044: 4085 lsls r5, r0 8002046: 032d lsls r5, r5, #12 8002048: 2600 movs r6, #0 800204a: 0b2d lsrs r5, r5, #12 800204c: e7f2 b.n 8002034 <__aeabi_i2d+0x3c> 800204e: 46c0 nop @ (mov r8, r8) 8002050: 0000041e .word 0x0000041e 08002054 <__clzsi2>: 8002054: 211c movs r1, #28 8002056: 2301 movs r3, #1 8002058: 041b lsls r3, r3, #16 800205a: 4298 cmp r0, r3 800205c: d301 bcc.n 8002062 <__clzsi2+0xe> 800205e: 0c00 lsrs r0, r0, #16 8002060: 3910 subs r1, #16 8002062: 0a1b lsrs r3, r3, #8 8002064: 4298 cmp r0, r3 8002066: d301 bcc.n 800206c <__clzsi2+0x18> 8002068: 0a00 lsrs r0, r0, #8 800206a: 3908 subs r1, #8 800206c: 091b lsrs r3, r3, #4 800206e: 4298 cmp r0, r3 8002070: d301 bcc.n 8002076 <__clzsi2+0x22> 8002072: 0900 lsrs r0, r0, #4 8002074: 3904 subs r1, #4 8002076: a202 add r2, pc, #8 @ (adr r2, 8002080 <__clzsi2+0x2c>) 8002078: 5c10 ldrb r0, [r2, r0] 800207a: 1840 adds r0, r0, r1 800207c: 4770 bx lr 800207e: 46c0 nop @ (mov r8, r8) 8002080: 02020304 .word 0x02020304 8002084: 01010101 .word 0x01010101 ... 08002090 <__divdi3>: 8002090: b5f0 push {r4, r5, r6, r7, lr} 8002092: 464f mov r7, r9 8002094: 4646 mov r6, r8 8002096: 46d6 mov lr, sl 8002098: b5c0 push {r6, r7, lr} 800209a: 0006 movs r6, r0 800209c: 000f movs r7, r1 800209e: 0010 movs r0, r2 80020a0: 0019 movs r1, r3 80020a2: b082 sub sp, #8 80020a4: 2f00 cmp r7, #0 80020a6: db5d blt.n 8002164 <__divdi3+0xd4> 80020a8: 0034 movs r4, r6 80020aa: 003d movs r5, r7 80020ac: 2b00 cmp r3, #0 80020ae: db0b blt.n 80020c8 <__divdi3+0x38> 80020b0: 0016 movs r6, r2 80020b2: 001f movs r7, r3 80020b4: 42ab cmp r3, r5 80020b6: d917 bls.n 80020e8 <__divdi3+0x58> 80020b8: 2000 movs r0, #0 80020ba: 2100 movs r1, #0 80020bc: b002 add sp, #8 80020be: bce0 pop {r5, r6, r7} 80020c0: 46ba mov sl, r7 80020c2: 46b1 mov r9, r6 80020c4: 46a8 mov r8, r5 80020c6: bdf0 pop {r4, r5, r6, r7, pc} 80020c8: 2700 movs r7, #0 80020ca: 4246 negs r6, r0 80020cc: 418f sbcs r7, r1 80020ce: 42af cmp r7, r5 80020d0: d8f2 bhi.n 80020b8 <__divdi3+0x28> 80020d2: d100 bne.n 80020d6 <__divdi3+0x46> 80020d4: e0a0 b.n 8002218 <__divdi3+0x188> 80020d6: 2301 movs r3, #1 80020d8: 425b negs r3, r3 80020da: 4699 mov r9, r3 80020dc: e009 b.n 80020f2 <__divdi3+0x62> 80020de: 2700 movs r7, #0 80020e0: 4246 negs r6, r0 80020e2: 418f sbcs r7, r1 80020e4: 42af cmp r7, r5 80020e6: d8e7 bhi.n 80020b8 <__divdi3+0x28> 80020e8: 42af cmp r7, r5 80020ea: d100 bne.n 80020ee <__divdi3+0x5e> 80020ec: e090 b.n 8002210 <__divdi3+0x180> 80020ee: 2300 movs r3, #0 80020f0: 4699 mov r9, r3 80020f2: 0039 movs r1, r7 80020f4: 0030 movs r0, r6 80020f6: f000 f8b7 bl 8002268 <__clzdi2> 80020fa: 4680 mov r8, r0 80020fc: 0029 movs r1, r5 80020fe: 0020 movs r0, r4 8002100: f000 f8b2 bl 8002268 <__clzdi2> 8002104: 4643 mov r3, r8 8002106: 1a1b subs r3, r3, r0 8002108: 4698 mov r8, r3 800210a: 3b20 subs r3, #32 800210c: d475 bmi.n 80021fa <__divdi3+0x16a> 800210e: 0031 movs r1, r6 8002110: 4099 lsls r1, r3 8002112: 469a mov sl, r3 8002114: 000b movs r3, r1 8002116: 0031 movs r1, r6 8002118: 4640 mov r0, r8 800211a: 4081 lsls r1, r0 800211c: 000a movs r2, r1 800211e: 42ab cmp r3, r5 8002120: d82e bhi.n 8002180 <__divdi3+0xf0> 8002122: d02b beq.n 800217c <__divdi3+0xec> 8002124: 4651 mov r1, sl 8002126: 1aa4 subs r4, r4, r2 8002128: 419d sbcs r5, r3 800212a: 2900 cmp r1, #0 800212c: da00 bge.n 8002130 <__divdi3+0xa0> 800212e: e090 b.n 8002252 <__divdi3+0x1c2> 8002130: 2100 movs r1, #0 8002132: 2000 movs r0, #0 8002134: 2601 movs r6, #1 8002136: 9000 str r0, [sp, #0] 8002138: 9101 str r1, [sp, #4] 800213a: 4651 mov r1, sl 800213c: 408e lsls r6, r1 800213e: 9601 str r6, [sp, #4] 8002140: 4641 mov r1, r8 8002142: 2601 movs r6, #1 8002144: 408e lsls r6, r1 8002146: 4641 mov r1, r8 8002148: 9600 str r6, [sp, #0] 800214a: 2900 cmp r1, #0 800214c: d11f bne.n 800218e <__divdi3+0xfe> 800214e: 9800 ldr r0, [sp, #0] 8002150: 9901 ldr r1, [sp, #4] 8002152: 464b mov r3, r9 8002154: 2b00 cmp r3, #0 8002156: d0b1 beq.n 80020bc <__divdi3+0x2c> 8002158: 0003 movs r3, r0 800215a: 000c movs r4, r1 800215c: 2100 movs r1, #0 800215e: 4258 negs r0, r3 8002160: 41a1 sbcs r1, r4 8002162: e7ab b.n 80020bc <__divdi3+0x2c> 8002164: 2500 movs r5, #0 8002166: 4274 negs r4, r6 8002168: 41bd sbcs r5, r7 800216a: 2b00 cmp r3, #0 800216c: dbb7 blt.n 80020de <__divdi3+0x4e> 800216e: 0016 movs r6, r2 8002170: 001f movs r7, r3 8002172: 42ab cmp r3, r5 8002174: d8a0 bhi.n 80020b8 <__divdi3+0x28> 8002176: 42af cmp r7, r5 8002178: d1ad bne.n 80020d6 <__divdi3+0x46> 800217a: e04d b.n 8002218 <__divdi3+0x188> 800217c: 42a1 cmp r1, r4 800217e: d9d1 bls.n 8002124 <__divdi3+0x94> 8002180: 2100 movs r1, #0 8002182: 2000 movs r0, #0 8002184: 9000 str r0, [sp, #0] 8002186: 9101 str r1, [sp, #4] 8002188: 4641 mov r1, r8 800218a: 2900 cmp r1, #0 800218c: d0df beq.n 800214e <__divdi3+0xbe> 800218e: 07d9 lsls r1, r3, #31 8002190: 0856 lsrs r6, r2, #1 8002192: 085f lsrs r7, r3, #1 8002194: 430e orrs r6, r1 8002196: 4643 mov r3, r8 8002198: e00e b.n 80021b8 <__divdi3+0x128> 800219a: 42af cmp r7, r5 800219c: d101 bne.n 80021a2 <__divdi3+0x112> 800219e: 42a6 cmp r6, r4 80021a0: d80c bhi.n 80021bc <__divdi3+0x12c> 80021a2: 1ba4 subs r4, r4, r6 80021a4: 41bd sbcs r5, r7 80021a6: 2101 movs r1, #1 80021a8: 1924 adds r4, r4, r4 80021aa: 416d adcs r5, r5 80021ac: 2200 movs r2, #0 80021ae: 3b01 subs r3, #1 80021b0: 1864 adds r4, r4, r1 80021b2: 4155 adcs r5, r2 80021b4: 2b00 cmp r3, #0 80021b6: d006 beq.n 80021c6 <__divdi3+0x136> 80021b8: 42af cmp r7, r5 80021ba: d9ee bls.n 800219a <__divdi3+0x10a> 80021bc: 3b01 subs r3, #1 80021be: 1924 adds r4, r4, r4 80021c0: 416d adcs r5, r5 80021c2: 2b00 cmp r3, #0 80021c4: d1f8 bne.n 80021b8 <__divdi3+0x128> 80021c6: 9a00 ldr r2, [sp, #0] 80021c8: 9b01 ldr r3, [sp, #4] 80021ca: 4651 mov r1, sl 80021cc: 1912 adds r2, r2, r4 80021ce: 416b adcs r3, r5 80021d0: 2900 cmp r1, #0 80021d2: db25 blt.n 8002220 <__divdi3+0x190> 80021d4: 002e movs r6, r5 80021d6: 002c movs r4, r5 80021d8: 40ce lsrs r6, r1 80021da: 4641 mov r1, r8 80021dc: 40cc lsrs r4, r1 80021de: 4651 mov r1, sl 80021e0: 2900 cmp r1, #0 80021e2: db2d blt.n 8002240 <__divdi3+0x1b0> 80021e4: 0034 movs r4, r6 80021e6: 408c lsls r4, r1 80021e8: 0021 movs r1, r4 80021ea: 4644 mov r4, r8 80021ec: 40a6 lsls r6, r4 80021ee: 0030 movs r0, r6 80021f0: 1a12 subs r2, r2, r0 80021f2: 418b sbcs r3, r1 80021f4: 9200 str r2, [sp, #0] 80021f6: 9301 str r3, [sp, #4] 80021f8: e7a9 b.n 800214e <__divdi3+0xbe> 80021fa: 4642 mov r2, r8 80021fc: 0038 movs r0, r7 80021fe: 469a mov sl, r3 8002200: 2320 movs r3, #32 8002202: 0031 movs r1, r6 8002204: 4090 lsls r0, r2 8002206: 1a9b subs r3, r3, r2 8002208: 40d9 lsrs r1, r3 800220a: 0003 movs r3, r0 800220c: 430b orrs r3, r1 800220e: e782 b.n 8002116 <__divdi3+0x86> 8002210: 42a6 cmp r6, r4 8002212: d900 bls.n 8002216 <__divdi3+0x186> 8002214: e750 b.n 80020b8 <__divdi3+0x28> 8002216: e76a b.n 80020ee <__divdi3+0x5e> 8002218: 42a6 cmp r6, r4 800221a: d800 bhi.n 800221e <__divdi3+0x18e> 800221c: e75b b.n 80020d6 <__divdi3+0x46> 800221e: e74b b.n 80020b8 <__divdi3+0x28> 8002220: 4640 mov r0, r8 8002222: 2120 movs r1, #32 8002224: 1a09 subs r1, r1, r0 8002226: 0028 movs r0, r5 8002228: 4088 lsls r0, r1 800222a: 0026 movs r6, r4 800222c: 0001 movs r1, r0 800222e: 4640 mov r0, r8 8002230: 40c6 lsrs r6, r0 8002232: 002c movs r4, r5 8002234: 430e orrs r6, r1 8002236: 4641 mov r1, r8 8002238: 40cc lsrs r4, r1 800223a: 4651 mov r1, sl 800223c: 2900 cmp r1, #0 800223e: dad1 bge.n 80021e4 <__divdi3+0x154> 8002240: 4640 mov r0, r8 8002242: 2120 movs r1, #32 8002244: 0035 movs r5, r6 8002246: 4084 lsls r4, r0 8002248: 1a09 subs r1, r1, r0 800224a: 40cd lsrs r5, r1 800224c: 0021 movs r1, r4 800224e: 4329 orrs r1, r5 8002250: e7cb b.n 80021ea <__divdi3+0x15a> 8002252: 4641 mov r1, r8 8002254: 2620 movs r6, #32 8002256: 2701 movs r7, #1 8002258: 1a76 subs r6, r6, r1 800225a: 2000 movs r0, #0 800225c: 2100 movs r1, #0 800225e: 40f7 lsrs r7, r6 8002260: 9000 str r0, [sp, #0] 8002262: 9101 str r1, [sp, #4] 8002264: 9701 str r7, [sp, #4] 8002266: e76b b.n 8002140 <__divdi3+0xb0> 08002268 <__clzdi2>: 8002268: b510 push {r4, lr} 800226a: 2900 cmp r1, #0 800226c: d103 bne.n 8002276 <__clzdi2+0xe> 800226e: f7ff fef1 bl 8002054 <__clzsi2> 8002272: 3020 adds r0, #32 8002274: e002 b.n 800227c <__clzdi2+0x14> 8002276: 0008 movs r0, r1 8002278: f7ff feec bl 8002054 <__clzsi2> 800227c: bd10 pop {r4, pc} 800227e: 46c0 nop @ (mov r8, r8) 08002280 : * configuration to the respective registers. * Afterwards the sensor is in idle and ready for conversion. * * @param *hi2c: Pointer to I2C Handle */ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002280: b5f0 push {r4, r5, r6, r7, lr} 8002282: b087 sub sp, #28 8002284: af00 add r7, sp, #0 8002286: 6078 str r0, [r7, #4] htpa_hi2c = hi2c; 8002288: 4bf4 ldr r3, [pc, #976] @ (800265c ) 800228a: 687a ldr r2, [r7, #4] 800228c: 601a str r2, [r3, #0] // I2C initialized on 400kbit Fast Mode /* * Read EEPROM calibration values * (see datasheet Figure 13) */ uint8_t eeprom_float[4] = {0}; 800228e: 250c movs r5, #12 8002290: 197b adds r3, r7, r5 8002292: 2200 movs r2, #0 8002294: 601a str r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0000); 8002296: 2000 movs r0, #0 8002298: f000 ffa2 bl 80031e0 800229c: 0003 movs r3, r0 800229e: 001a movs r2, r3 80022a0: 197b adds r3, r7, r5 80022a2: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0001); 80022a4: 2001 movs r0, #1 80022a6: f000 ff9b bl 80031e0 80022aa: 0003 movs r3, r0 80022ac: 001a movs r2, r3 80022ae: 197b adds r3, r7, r5 80022b0: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x0002); 80022b2: 2002 movs r0, #2 80022b4: f000 ff94 bl 80031e0 80022b8: 0003 movs r3, r0 80022ba: 001a movs r2, r3 80022bc: 197b adds r3, r7, r5 80022be: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x0003); 80022c0: 2003 movs r0, #3 80022c2: f000 ff8d bl 80031e0 80022c6: 0003 movs r3, r0 80022c8: 001a movs r2, r3 80022ca: 197b adds r3, r7, r5 80022cc: 70da strb r2, [r3, #3] pixcmin = *(float*)eeprom_float; 80022ce: 197b adds r3, r7, r5 80022d0: 681a ldr r2, [r3, #0] 80022d2: 4be3 ldr r3, [pc, #908] @ (8002660 ) 80022d4: 601a str r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0004); 80022d6: 2004 movs r0, #4 80022d8: f000 ff82 bl 80031e0 80022dc: 0003 movs r3, r0 80022de: 001a movs r2, r3 80022e0: 197b adds r3, r7, r5 80022e2: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0005); 80022e4: 2005 movs r0, #5 80022e6: f000 ff7b bl 80031e0 80022ea: 0003 movs r3, r0 80022ec: 001a movs r2, r3 80022ee: 197b adds r3, r7, r5 80022f0: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x0006); 80022f2: 2006 movs r0, #6 80022f4: f000 ff74 bl 80031e0 80022f8: 0003 movs r3, r0 80022fa: 001a movs r2, r3 80022fc: 197b adds r3, r7, r5 80022fe: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x0007); 8002300: 2007 movs r0, #7 8002302: f000 ff6d bl 80031e0 8002306: 0003 movs r3, r0 8002308: 001a movs r2, r3 800230a: 197b adds r3, r7, r5 800230c: 70da strb r2, [r3, #3] pixcmax = *(float*)eeprom_float; 800230e: 197b adds r3, r7, r5 8002310: 681a ldr r2, [r3, #0] 8002312: 4bd4 ldr r3, [pc, #848] @ (8002664 ) 8002314: 601a str r2, [r3, #0] gradscale = HTPA_ReadEEPROM_byte(0x0008); 8002316: 2008 movs r0, #8 8002318: f000 ff62 bl 80031e0 800231c: 0003 movs r3, r0 800231e: 001a movs r2, r3 8002320: 4bd1 ldr r3, [pc, #836] @ (8002668 ) 8002322: 701a strb r2, [r3, #0] tablenumber = HTPA_ReadEEPROM_byte(0x000C) << 8 | HTPA_ReadEEPROM_byte(0x000B); 8002324: 200c movs r0, #12 8002326: f000 ff5b bl 80031e0 800232a: 0003 movs r3, r0 800232c: b21b sxth r3, r3 800232e: 021b lsls r3, r3, #8 8002330: b21c sxth r4, r3 8002332: 200b movs r0, #11 8002334: f000 ff54 bl 80031e0 8002338: 0003 movs r3, r0 800233a: b21b sxth r3, r3 800233c: 4323 orrs r3, r4 800233e: b21b sxth r3, r3 8002340: b29a uxth r2, r3 8002342: 4bca ldr r3, [pc, #808] @ (800266c ) 8002344: 801a strh r2, [r3, #0] epsilon = HTPA_ReadEEPROM_byte(0x000D); 8002346: 200d movs r0, #13 8002348: f000 ff4a bl 80031e0 800234c: 0003 movs r3, r0 800234e: 001a movs r2, r3 8002350: 4bc7 ldr r3, [pc, #796] @ (8002670 ) 8002352: 701a strb r2, [r3, #0] arraytype = HTPA_ReadEEPROM_byte(0x0022); 8002354: 2022 movs r0, #34 @ 0x22 8002356: f000 ff43 bl 80031e0 800235a: 0003 movs r3, r0 800235c: 001a movs r2, r3 800235e: 4bc5 ldr r3, [pc, #788] @ (8002674 ) 8002360: 701a strb r2, [r3, #0] vddth1 = HTPA_ReadEEPROM_byte(0x0027) << 8 | HTPA_ReadEEPROM_byte(0x0026); 8002362: 2027 movs r0, #39 @ 0x27 8002364: f000 ff3c bl 80031e0 8002368: 0003 movs r3, r0 800236a: b21b sxth r3, r3 800236c: 021b lsls r3, r3, #8 800236e: b21c sxth r4, r3 8002370: 2026 movs r0, #38 @ 0x26 8002372: f000 ff35 bl 80031e0 8002376: 0003 movs r3, r0 8002378: b21b sxth r3, r3 800237a: 4323 orrs r3, r4 800237c: b21b sxth r3, r3 800237e: b29a uxth r2, r3 8002380: 4bbd ldr r3, [pc, #756] @ (8002678 ) 8002382: 801a strh r2, [r3, #0] vddth2 = HTPA_ReadEEPROM_byte(0x0029) << 8 | HTPA_ReadEEPROM_byte(0x0028); 8002384: 2029 movs r0, #41 @ 0x29 8002386: f000 ff2b bl 80031e0 800238a: 0003 movs r3, r0 800238c: b21b sxth r3, r3 800238e: 021b lsls r3, r3, #8 8002390: b21c sxth r4, r3 8002392: 2028 movs r0, #40 @ 0x28 8002394: f000 ff24 bl 80031e0 8002398: 0003 movs r3, r0 800239a: b21b sxth r3, r3 800239c: 4323 orrs r3, r4 800239e: b21b sxth r3, r3 80023a0: b29a uxth r2, r3 80023a2: 4bb6 ldr r3, [pc, #728] @ (800267c ) 80023a4: 801a strh r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0034); 80023a6: 2034 movs r0, #52 @ 0x34 80023a8: f000 ff1a bl 80031e0 80023ac: 0003 movs r3, r0 80023ae: 001a movs r2, r3 80023b0: 002c movs r4, r5 80023b2: 193b adds r3, r7, r4 80023b4: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0035); 80023b6: 2035 movs r0, #53 @ 0x35 80023b8: f000 ff12 bl 80031e0 80023bc: 0003 movs r3, r0 80023be: 001a movs r2, r3 80023c0: 193b adds r3, r7, r4 80023c2: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x0036); 80023c4: 2036 movs r0, #54 @ 0x36 80023c6: f000 ff0b bl 80031e0 80023ca: 0003 movs r3, r0 80023cc: 001a movs r2, r3 80023ce: 193b adds r3, r7, r4 80023d0: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x0037); 80023d2: 2037 movs r0, #55 @ 0x37 80023d4: f000 ff04 bl 80031e0 80023d8: 0003 movs r3, r0 80023da: 001a movs r2, r3 80023dc: 193b adds r3, r7, r4 80023de: 70da strb r2, [r3, #3] ptatgr = *(float*)eeprom_float; 80023e0: 193b adds r3, r7, r4 80023e2: 681a ldr r2, [r3, #0] 80023e4: 4ba6 ldr r3, [pc, #664] @ (8002680 ) 80023e6: 601a str r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0038); 80023e8: 2038 movs r0, #56 @ 0x38 80023ea: f000 fef9 bl 80031e0 80023ee: 0003 movs r3, r0 80023f0: 001a movs r2, r3 80023f2: 193b adds r3, r7, r4 80023f4: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0039); 80023f6: 2039 movs r0, #57 @ 0x39 80023f8: f000 fef2 bl 80031e0 80023fc: 0003 movs r3, r0 80023fe: 001a movs r2, r3 8002400: 193b adds r3, r7, r4 8002402: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x003A); 8002404: 203a movs r0, #58 @ 0x3a 8002406: f000 feeb bl 80031e0 800240a: 0003 movs r3, r0 800240c: 001a movs r2, r3 800240e: 193b adds r3, r7, r4 8002410: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x003B); 8002412: 203b movs r0, #59 @ 0x3b 8002414: f000 fee4 bl 80031e0 8002418: 0003 movs r3, r0 800241a: 001a movs r2, r3 800241c: 193b adds r3, r7, r4 800241e: 70da strb r2, [r3, #3] ptatoff = *(float*)eeprom_float; 8002420: 193b adds r3, r7, r4 8002422: 681a ldr r2, [r3, #0] 8002424: 4b97 ldr r3, [pc, #604] @ (8002684 ) 8002426: 601a str r2, [r3, #0] ptatth1 = HTPA_ReadEEPROM_byte(0x003D) << 8 | HTPA_ReadEEPROM_byte(0x003C); 8002428: 203d movs r0, #61 @ 0x3d 800242a: f000 fed9 bl 80031e0 800242e: 0003 movs r3, r0 8002430: b21b sxth r3, r3 8002432: 021b lsls r3, r3, #8 8002434: b21c sxth r4, r3 8002436: 203c movs r0, #60 @ 0x3c 8002438: f000 fed2 bl 80031e0 800243c: 0003 movs r3, r0 800243e: b21b sxth r3, r3 8002440: 4323 orrs r3, r4 8002442: b21b sxth r3, r3 8002444: b29a uxth r2, r3 8002446: 4b90 ldr r3, [pc, #576] @ (8002688 ) 8002448: 801a strh r2, [r3, #0] ptatth2 = HTPA_ReadEEPROM_byte(0x003F) << 8 | HTPA_ReadEEPROM_byte(0x003E); 800244a: 203f movs r0, #63 @ 0x3f 800244c: f000 fec8 bl 80031e0 8002450: 0003 movs r3, r0 8002452: b21b sxth r3, r3 8002454: 021b lsls r3, r3, #8 8002456: b21c sxth r4, r3 8002458: 203e movs r0, #62 @ 0x3e 800245a: f000 fec1 bl 80031e0 800245e: 0003 movs r3, r0 8002460: b21b sxth r3, r3 8002462: 4323 orrs r3, r4 8002464: b21b sxth r3, r3 8002466: b29a uxth r2, r3 8002468: 4b88 ldr r3, [pc, #544] @ (800268c ) 800246a: 801a strh r2, [r3, #0] vddscgrad = HTPA_ReadEEPROM_byte(0x004E); 800246c: 204e movs r0, #78 @ 0x4e 800246e: f000 feb7 bl 80031e0 8002472: 0003 movs r3, r0 8002474: 001a movs r2, r3 8002476: 4b86 ldr r3, [pc, #536] @ (8002690 ) 8002478: 701a strb r2, [r3, #0] vddscoff = HTPA_ReadEEPROM_byte(0x004F); 800247a: 204f movs r0, #79 @ 0x4f 800247c: f000 feb0 bl 80031e0 8002480: 0003 movs r3, r0 8002482: 001a movs r2, r3 8002484: 4b83 ldr r3, [pc, #524] @ (8002694 ) 8002486: 701a strb r2, [r3, #0] globaloff = HTPA_ReadEEPROM_byte(0x0054); 8002488: 2054 movs r0, #84 @ 0x54 800248a: f000 fea9 bl 80031e0 800248e: 0003 movs r3, r0 8002490: b25a sxtb r2, r3 8002492: 4b81 ldr r3, [pc, #516] @ (8002698 ) 8002494: 701a strb r2, [r3, #0] globalgain = HTPA_ReadEEPROM_byte(0x0056) << 8 | HTPA_ReadEEPROM_byte(0x0055); 8002496: 2056 movs r0, #86 @ 0x56 8002498: f000 fea2 bl 80031e0 800249c: 0003 movs r3, r0 800249e: b21b sxth r3, r3 80024a0: 021b lsls r3, r3, #8 80024a2: b21c sxth r4, r3 80024a4: 2055 movs r0, #85 @ 0x55 80024a6: f000 fe9b bl 80031e0 80024aa: 0003 movs r3, r0 80024ac: b21b sxth r3, r3 80024ae: 4323 orrs r3, r4 80024b0: b21b sxth r3, r3 80024b2: b29a uxth r2, r3 80024b4: 4b79 ldr r3, [pc, #484] @ (800269c ) 80024b6: 801a strh r2, [r3, #0] nrofdefpix = HTPA_ReadEEPROM_byte(0x007F); 80024b8: 207f movs r0, #127 @ 0x7f 80024ba: f000 fe91 bl 80031e0 80024be: 0003 movs r3, r0 80024c0: 001a movs r2, r3 80024c2: 4b77 ldr r3, [pc, #476] @ (80026a0 ) 80024c4: 701a strb r2, [r3, #0] mbit = HTPA_ReadEEPROM_byte(0x001A); 80024c6: 201a movs r0, #26 80024c8: f000 fe8a bl 80031e0 80024cc: 0003 movs r3, r0 80024ce: 001a movs r2, r3 80024d0: 4b74 ldr r3, [pc, #464] @ (80026a4 ) 80024d2: 701a strb r2, [r3, #0] bias = HTPA_ReadEEPROM_byte(0x001B); 80024d4: 201b movs r0, #27 80024d6: f000 fe83 bl 80031e0 80024da: 0003 movs r3, r0 80024dc: 001a movs r2, r3 80024de: 4b72 ldr r3, [pc, #456] @ (80026a8 ) 80024e0: 701a strb r2, [r3, #0] clk = HTPA_ReadEEPROM_byte(0x001C); 80024e2: 201c movs r0, #28 80024e4: f000 fe7c bl 80031e0 80024e8: 0003 movs r3, r0 80024ea: 001a movs r2, r3 80024ec: 4b6f ldr r3, [pc, #444] @ (80026ac ) 80024ee: 701a strb r2, [r3, #0] bpa = HTPA_ReadEEPROM_byte(0x001D); 80024f0: 201d movs r0, #29 80024f2: f000 fe75 bl 80031e0 80024f6: 0003 movs r3, r0 80024f8: 001a movs r2, r3 80024fa: 4b6d ldr r3, [pc, #436] @ (80026b0 ) 80024fc: 701a strb r2, [r3, #0] pu = HTPA_ReadEEPROM_byte(0x001E); 80024fe: 201e movs r0, #30 8002500: f000 fe6e bl 80031e0 8002504: 0003 movs r3, r0 8002506: 001a movs r2, r3 8002508: 4b6a ldr r3, [pc, #424] @ (80026b4 ) 800250a: 701a strb r2, [r3, #0] for(uint8_t i = 0; i < 32; i++) { 800250c: 2317 movs r3, #23 800250e: 18fb adds r3, r7, r3 8002510: 2200 movs r2, #0 8002512: 701a strb r2, [r3, #0] 8002514: e02b b.n 800256e // start at top half, row 4 vddcompgrad[i] = HTPA_ReadEEPROM_byte(HTPA_EEPROM_VDDCOMPGRAD + HTPA_ROWSELECTION * 64 + 2 * i + 1) << 8 | HTPA_ReadEEPROM_byte(HTPA_EEPROM_VDDCOMPGRAD + HTPA_ROWSELECTION * 64 + 2 * i); 8002516: 2517 movs r5, #23 8002518: 197b adds r3, r7, r5 800251a: 781b ldrb r3, [r3, #0] 800251c: b29b uxth r3, r3 800251e: 18db adds r3, r3, r3 8002520: b29b uxth r3, r3 8002522: 4a65 ldr r2, [pc, #404] @ (80026b8 ) 8002524: 4694 mov ip, r2 8002526: 4463 add r3, ip 8002528: b29b uxth r3, r3 800252a: 0018 movs r0, r3 800252c: f000 fe58 bl 80031e0 8002530: 0003 movs r3, r0 8002532: b21b sxth r3, r3 8002534: 021b lsls r3, r3, #8 8002536: b21c sxth r4, r3 8002538: 197b adds r3, r7, r5 800253a: 781b ldrb r3, [r3, #0] 800253c: b29b uxth r3, r3 800253e: 2280 movs r2, #128 @ 0x80 8002540: 0092 lsls r2, r2, #2 8002542: 4694 mov ip, r2 8002544: 4463 add r3, ip 8002546: b29b uxth r3, r3 8002548: 18db adds r3, r3, r3 800254a: b29b uxth r3, r3 800254c: 0018 movs r0, r3 800254e: f000 fe47 bl 80031e0 8002552: 0003 movs r3, r0 8002554: b21b sxth r3, r3 8002556: 197a adds r2, r7, r5 8002558: 7812 ldrb r2, [r2, #0] 800255a: 4323 orrs r3, r4 800255c: b219 sxth r1, r3 800255e: 4b57 ldr r3, [pc, #348] @ (80026bc ) 8002560: 0052 lsls r2, r2, #1 8002562: 52d1 strh r1, [r2, r3] for(uint8_t i = 0; i < 32; i++) { 8002564: 197b adds r3, r7, r5 8002566: 781a ldrb r2, [r3, #0] 8002568: 197b adds r3, r7, r5 800256a: 3201 adds r2, #1 800256c: 701a strb r2, [r3, #0] 800256e: 2317 movs r3, #23 8002570: 18fb adds r3, r7, r3 8002572: 781b ldrb r3, [r3, #0] 8002574: 2b1f cmp r3, #31 8002576: d9ce bls.n 8002516 // ignore bottom half } for(uint8_t i = 0; i < 32; i++) { 8002578: 2316 movs r3, #22 800257a: 18fb adds r3, r7, r3 800257c: 2200 movs r2, #0 800257e: 701a strb r2, [r3, #0] 8002580: e02b b.n 80025da // start at top half, row 4 vddcompoff[i] = HTPA_ReadEEPROM_byte(HTPA_EEPROM_VDDCOMPOFF + HTPA_ROWSELECTION * 64 + 2 * i + 1) << 8 | HTPA_ReadEEPROM_byte(HTPA_EEPROM_VDDCOMPOFF + HTPA_ROWSELECTION * 64 + 2 * i); 8002582: 2516 movs r5, #22 8002584: 197b adds r3, r7, r5 8002586: 781b ldrb r3, [r3, #0] 8002588: b29b uxth r3, r3 800258a: 18db adds r3, r3, r3 800258c: b29b uxth r3, r3 800258e: 4a4c ldr r2, [pc, #304] @ (80026c0 ) 8002590: 4694 mov ip, r2 8002592: 4463 add r3, ip 8002594: b29b uxth r3, r3 8002596: 0018 movs r0, r3 8002598: f000 fe22 bl 80031e0 800259c: 0003 movs r3, r0 800259e: b21b sxth r3, r3 80025a0: 021b lsls r3, r3, #8 80025a2: b21c sxth r4, r3 80025a4: 197b adds r3, r7, r5 80025a6: 781b ldrb r3, [r3, #0] 80025a8: b29b uxth r3, r3 80025aa: 22c0 movs r2, #192 @ 0xc0 80025ac: 0092 lsls r2, r2, #2 80025ae: 4694 mov ip, r2 80025b0: 4463 add r3, ip 80025b2: b29b uxth r3, r3 80025b4: 18db adds r3, r3, r3 80025b6: b29b uxth r3, r3 80025b8: 0018 movs r0, r3 80025ba: f000 fe11 bl 80031e0 80025be: 0003 movs r3, r0 80025c0: b21b sxth r3, r3 80025c2: 197a adds r2, r7, r5 80025c4: 7812 ldrb r2, [r2, #0] 80025c6: 4323 orrs r3, r4 80025c8: b219 sxth r1, r3 80025ca: 4b3e ldr r3, [pc, #248] @ (80026c4 ) 80025cc: 0052 lsls r2, r2, #1 80025ce: 52d1 strh r1, [r2, r3] for(uint8_t i = 0; i < 32; i++) { 80025d0: 197b adds r3, r7, r5 80025d2: 781a ldrb r2, [r3, #0] 80025d4: 197b adds r3, r7, r5 80025d6: 3201 adds r2, #1 80025d8: 701a strb r2, [r3, #0] 80025da: 2316 movs r3, #22 80025dc: 18fb adds r3, r7, r3 80025de: 781b ldrb r3, [r3, #0] 80025e0: 2b1f cmp r3, #31 80025e2: d9ce bls.n 8002582 // ignore bottom half } for(uint8_t i = 0; i < 32; i++) { 80025e4: 2315 movs r3, #21 80025e6: 18fb adds r3, r7, r3 80025e8: 2200 movs r2, #0 80025ea: 701a strb r2, [r3, #0] 80025ec: e02b b.n 8002646 // start at block 3, row 4 (pixel 480) thgrad[i] = HTPA_ReadEEPROM_byte(HTPA_EEPROM_THGRAD + HTPA_ROWSELECTION * 64 + 2 * i + 1) << 8 | HTPA_ReadEEPROM_byte(HTPA_EEPROM_THGRAD + HTPA_ROWSELECTION * 64 + 2 * i); 80025ee: 2515 movs r5, #21 80025f0: 197b adds r3, r7, r5 80025f2: 781b ldrb r3, [r3, #0] 80025f4: b29b uxth r3, r3 80025f6: 18db adds r3, r3, r3 80025f8: b29b uxth r3, r3 80025fa: 4a33 ldr r2, [pc, #204] @ (80026c8 ) 80025fc: 4694 mov ip, r2 80025fe: 4463 add r3, ip 8002600: b29b uxth r3, r3 8002602: 0018 movs r0, r3 8002604: f000 fdec bl 80031e0 8002608: 0003 movs r3, r0 800260a: b21b sxth r3, r3 800260c: 021b lsls r3, r3, #8 800260e: b21c sxth r4, r3 8002610: 197b adds r3, r7, r5 8002612: 781b ldrb r3, [r3, #0] 8002614: b29b uxth r3, r3 8002616: 22b0 movs r2, #176 @ 0xb0 8002618: 00d2 lsls r2, r2, #3 800261a: 4694 mov ip, r2 800261c: 4463 add r3, ip 800261e: b29b uxth r3, r3 8002620: 18db adds r3, r3, r3 8002622: b29b uxth r3, r3 8002624: 0018 movs r0, r3 8002626: f000 fddb bl 80031e0 800262a: 0003 movs r3, r0 800262c: b21b sxth r3, r3 800262e: 197a adds r2, r7, r5 8002630: 7812 ldrb r2, [r2, #0] 8002632: 4323 orrs r3, r4 8002634: b219 sxth r1, r3 8002636: 4b25 ldr r3, [pc, #148] @ (80026cc ) 8002638: 0052 lsls r2, r2, #1 800263a: 52d1 strh r1, [r2, r3] for(uint8_t i = 0; i < 32; i++) { 800263c: 197b adds r3, r7, r5 800263e: 781a ldrb r2, [r3, #0] 8002640: 197b adds r3, r7, r5 8002642: 3201 adds r2, #1 8002644: 701a strb r2, [r3, #0] 8002646: 2315 movs r3, #21 8002648: 18fb adds r3, r7, r3 800264a: 781b ldrb r3, [r3, #0] 800264c: 2b1f cmp r3, #31 800264e: d9ce bls.n 80025ee // ignore bottom half } for(uint8_t i = 0; i < 32; i++) { 8002650: 2314 movs r3, #20 8002652: 18fb adds r3, r7, r3 8002654: 2200 movs r2, #0 8002656: 701a strb r2, [r3, #0] 8002658: e066 b.n 8002728 800265a: 46c0 nop @ (mov r8, r8) 800265c: 20000028 .word 0x20000028 8002660: 20000184 .word 0x20000184 8002664: 20000188 .word 0x20000188 8002668: 2000002c .word 0x2000002c 800266c: 20000042 .word 0x20000042 8002670: 2000002f .word 0x2000002f 8002674: 20000030 .word 0x20000030 8002678: 20000038 .word 0x20000038 800267c: 2000003a .word 0x2000003a 8002680: 2000018c .word 0x2000018c 8002684: 20000190 .word 0x20000190 8002688: 2000003c .word 0x2000003c 800268c: 2000003e .word 0x2000003e 8002690: 2000002d .word 0x2000002d 8002694: 2000002e .word 0x2000002e 8002698: 20000037 .word 0x20000037 800269c: 20000040 .word 0x20000040 80026a0: 20000031 .word 0x20000031 80026a4: 20000032 .word 0x20000032 80026a8: 20000033 .word 0x20000033 80026ac: 20000034 .word 0x20000034 80026b0: 20000035 .word 0x20000035 80026b4: 20000036 .word 0x20000036 80026b8: 00000401 .word 0x00000401 80026bc: 20000104 .word 0x20000104 80026c0: 00000601 .word 0x00000601 80026c4: 20000144 .word 0x20000144 80026c8: 00000b01 .word 0x00000b01 80026cc: 20000084 .word 0x20000084 // start at block 3, row 4 (pixel 480) thoffset[i] = HTPA_ReadEEPROM_byte(HTPA_EEPROM_THOFFSET + HTPA_ROWSELECTION * 64 + 2 * i + 1) << 8 | HTPA_ReadEEPROM_byte(HTPA_EEPROM_THOFFSET + HTPA_ROWSELECTION * 64 + 2 * i); 80026d0: 2514 movs r5, #20 80026d2: 197b adds r3, r7, r5 80026d4: 781b ldrb r3, [r3, #0] 80026d6: b29b uxth r3, r3 80026d8: 18db adds r3, r3, r3 80026da: b29b uxth r3, r3 80026dc: 4ac6 ldr r2, [pc, #792] @ (80029f8 ) 80026de: 4694 mov ip, r2 80026e0: 4463 add r3, ip 80026e2: b29b uxth r3, r3 80026e4: 0018 movs r0, r3 80026e6: f000 fd7b bl 80031e0 80026ea: 0003 movs r3, r0 80026ec: b21b sxth r3, r3 80026ee: 021b lsls r3, r3, #8 80026f0: b21c sxth r4, r3 80026f2: 197b adds r3, r7, r5 80026f4: 781b ldrb r3, [r3, #0] 80026f6: b29b uxth r3, r3 80026f8: 2298 movs r2, #152 @ 0x98 80026fa: 0112 lsls r2, r2, #4 80026fc: 4694 mov ip, r2 80026fe: 4463 add r3, ip 8002700: b29b uxth r3, r3 8002702: 18db adds r3, r3, r3 8002704: b29b uxth r3, r3 8002706: 0018 movs r0, r3 8002708: f000 fd6a bl 80031e0 800270c: 0003 movs r3, r0 800270e: b21b sxth r3, r3 8002710: 197a adds r2, r7, r5 8002712: 7812 ldrb r2, [r2, #0] 8002714: 4323 orrs r3, r4 8002716: b219 sxth r1, r3 8002718: 4bb8 ldr r3, [pc, #736] @ (80029fc ) 800271a: 0052 lsls r2, r2, #1 800271c: 52d1 strh r1, [r2, r3] for(uint8_t i = 0; i < 32; i++) { 800271e: 197b adds r3, r7, r5 8002720: 781a ldrb r2, [r3, #0] 8002722: 197b adds r3, r7, r5 8002724: 3201 adds r2, #1 8002726: 701a strb r2, [r3, #0] 8002728: 2314 movs r3, #20 800272a: 18fb adds r3, r7, r3 800272c: 781b ldrb r3, [r3, #0] 800272e: 2b1f cmp r3, #31 8002730: d9ce bls.n 80026d0 // ignore bottom half } for(uint8_t i = 0; i < 32; i++) { 8002732: 2313 movs r3, #19 8002734: 18fb adds r3, r7, r3 8002736: 2200 movs r2, #0 8002738: 701a strb r2, [r3, #0] 800273a: e02c b.n 8002796 // start at block 3, row 4 (pixel 480) pij[i] = HTPA_ReadEEPROM_byte(HTPA_EEPROM_PI + HTPA_ROWSELECTION * 64 + 2 * i + 1) << 8 | HTPA_ReadEEPROM_byte(HTPA_EEPROM_PI + HTPA_ROWSELECTION * 64 + 2 * i); 800273c: 2513 movs r5, #19 800273e: 197b adds r3, r7, r5 8002740: 781b ldrb r3, [r3, #0] 8002742: b29b uxth r3, r3 8002744: 18db adds r3, r3, r3 8002746: b29b uxth r3, r3 8002748: 4aad ldr r2, [pc, #692] @ (8002a00 ) 800274a: 4694 mov ip, r2 800274c: 4463 add r3, ip 800274e: b29b uxth r3, r3 8002750: 0018 movs r0, r3 8002752: f000 fd45 bl 80031e0 8002756: 0003 movs r3, r0 8002758: b21b sxth r3, r3 800275a: 021b lsls r3, r3, #8 800275c: b21c sxth r4, r3 800275e: 197b adds r3, r7, r5 8002760: 781b ldrb r3, [r3, #0] 8002762: b29b uxth r3, r3 8002764: 22d8 movs r2, #216 @ 0xd8 8002766: 0112 lsls r2, r2, #4 8002768: 4694 mov ip, r2 800276a: 4463 add r3, ip 800276c: b29b uxth r3, r3 800276e: 18db adds r3, r3, r3 8002770: b29b uxth r3, r3 8002772: 0018 movs r0, r3 8002774: f000 fd34 bl 80031e0 8002778: 0003 movs r3, r0 800277a: b21b sxth r3, r3 800277c: 4323 orrs r3, r4 800277e: b219 sxth r1, r3 8002780: 197b adds r3, r7, r5 8002782: 781a ldrb r2, [r3, #0] 8002784: b289 uxth r1, r1 8002786: 4b9f ldr r3, [pc, #636] @ (8002a04 ) 8002788: 0052 lsls r2, r2, #1 800278a: 52d1 strh r1, [r2, r3] for(uint8_t i = 0; i < 32; i++) { 800278c: 197b adds r3, r7, r5 800278e: 781a ldrb r2, [r3, #0] 8002790: 197b adds r3, r7, r5 8002792: 3201 adds r2, #1 8002794: 701a strb r2, [r3, #0] 8002796: 2313 movs r3, #19 8002798: 18fb adds r3, r7, r3 800279a: 781b ldrb r3, [r3, #0] 800279c: 2b1f cmp r3, #31 800279e: d9cd bls.n 800273c // ignore bottom half } /* Set I2C to Fast Mode Plus (1Mbit) for sensor readout: */ if (HAL_I2C_DeInit(htpa_hi2c) != HAL_OK) 80027a0: 4b99 ldr r3, [pc, #612] @ (8002a08 ) 80027a2: 681b ldr r3, [r3, #0] 80027a4: 0018 movs r0, r3 80027a6: f002 f973 bl 8004a90 80027aa: 1e03 subs r3, r0, #0 80027ac: d001 beq.n 80027b2 { Error_Handler(); 80027ae: f000 fecd bl 800354c } htpa_hi2c->Init.Timing = 0x00000107; 80027b2: 4b95 ldr r3, [pc, #596] @ (8002a08 ) 80027b4: 681b ldr r3, [r3, #0] 80027b6: 2208 movs r2, #8 80027b8: 32ff adds r2, #255 @ 0xff 80027ba: 605a str r2, [r3, #4] if (HAL_I2C_Init(htpa_hi2c) != HAL_OK) 80027bc: 4b92 ldr r3, [pc, #584] @ (8002a08 ) 80027be: 681b ldr r3, [r3, #0] 80027c0: 0018 movs r0, r3 80027c2: f002 f8bf bl 8004944 80027c6: 1e03 subs r3, r0, #0 80027c8: d001 beq.n 80027ce { Error_Handler(); 80027ca: f000 febf bl 800354c } __HAL_SYSCFG_FASTMODEPLUS_ENABLE(I2C_FASTMODEPLUS_I2C1); 80027ce: 4b8f ldr r3, [pc, #572] @ (8002a0c ) 80027d0: 681a ldr r2, [r3, #0] 80027d2: 4b8e ldr r3, [pc, #568] @ (8002a0c ) 80027d4: 2180 movs r1, #128 @ 0x80 80027d6: 0349 lsls r1, r1, #13 80027d8: 430a orrs r2, r1 80027da: 601a str r2, [r3, #0] HAL_Delay(100); 80027dc: 2064 movs r0, #100 @ 0x64 80027de: f001 fb5b bl 8003e98 /* * Write sensor calibration registers */ HTPA_WriteRegister(HTPA_SENSOR_CONFIG, 0x01); // wakeup 80027e2: 2101 movs r1, #1 80027e4: 2001 movs r0, #1 80027e6: f000 fc7d bl 80030e4 HAL_Delay(10); 80027ea: 200a movs r0, #10 80027ec: f001 fb54 bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_1, mbit); // bit 5,4 = 00 -> amplification = 0, bit 3-0 = 1100 -> 16bit ADC-Resolution (4 + m=12) 80027f0: 4b87 ldr r3, [pc, #540] @ (8002a10 ) 80027f2: 781b ldrb r3, [r3, #0] 80027f4: 0019 movs r1, r3 80027f6: 2003 movs r0, #3 80027f8: f000 fc74 bl 80030e4 HAL_Delay(10); 80027fc: 200a movs r0, #10 80027fe: f001 fb4b bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_2, bias); 8002802: 4b84 ldr r3, [pc, #528] @ (8002a14 ) 8002804: 781b ldrb r3, [r3, #0] 8002806: 0019 movs r1, r3 8002808: 2004 movs r0, #4 800280a: f000 fc6b bl 80030e4 HAL_Delay(10); 800280e: 200a movs r0, #10 8002810: f001 fb42 bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_3, bias); 8002814: 4b7f ldr r3, [pc, #508] @ (8002a14 ) 8002816: 781b ldrb r3, [r3, #0] 8002818: 0019 movs r1, r3 800281a: 2005 movs r0, #5 800281c: f000 fc62 bl 80030e4 HAL_Delay(10); 8002820: 200a movs r0, #10 8002822: f001 fb39 bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_4, clk); // clock frequency set to 0x14 -> 4.75MHz -> time for quarter frame: ~27ms 8002826: 4b7c ldr r3, [pc, #496] @ (8002a18 ) 8002828: 781b ldrb r3, [r3, #0] 800282a: 0019 movs r1, r3 800282c: 2006 movs r0, #6 800282e: f000 fc59 bl 80030e4 HAL_Delay(10); 8002832: 200a movs r0, #10 8002834: f001 fb30 bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_5, bpa); 8002838: 4b78 ldr r3, [pc, #480] @ (8002a1c ) 800283a: 781b ldrb r3, [r3, #0] 800283c: 0019 movs r1, r3 800283e: 2007 movs r0, #7 8002840: f000 fc50 bl 80030e4 HAL_Delay(10); 8002844: 200a movs r0, #10 8002846: f001 fb27 bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_6, bpa); 800284a: 4b74 ldr r3, [pc, #464] @ (8002a1c ) 800284c: 781b ldrb r3, [r3, #0] 800284e: 0019 movs r1, r3 8002850: 2008 movs r0, #8 8002852: f000 fc47 bl 80030e4 HAL_Delay(10); 8002856: 200a movs r0, #10 8002858: f001 fb1e bl 8003e98 HTPA_WriteRegister(HTPA_SENSOR_TRIM_7, pu); 800285c: 4b70 ldr r3, [pc, #448] @ (8002a20 ) 800285e: 781b ldrb r3, [r3, #0] 8002860: 0019 movs r1, r3 8002862: 2009 movs r0, #9 8002864: f000 fc3e bl 80030e4 HAL_Delay(10); 8002868: 200a movs r0, #10 800286a: f001 fb15 bl 8003e98 /* * Calculations */ //gradscale_div = HTPA_calcPowerTwo(gradscale); gradscale_div = HTPA_calcPowerTwo(gradscale); 800286e: 4b6d ldr r3, [pc, #436] @ (8002a24 ) 8002870: 781b ldrb r3, [r3, #0] 8002872: 0018 movs r0, r3 8002874: f000 f8f2 bl 8002a5c 8002878: 0002 movs r2, r0 800287a: 4b6b ldr r3, [pc, #428] @ (8002a28 ) 800287c: 601a str r2, [r3, #0] vddscgrad_div = HTPA_calcPowerTwo(vddscgrad); 800287e: 4b6b ldr r3, [pc, #428] @ (8002a2c ) 8002880: 781b ldrb r3, [r3, #0] 8002882: 0018 movs r0, r3 8002884: f000 f8ea bl 8002a5c 8002888: 0002 movs r2, r0 800288a: 4b69 ldr r3, [pc, #420] @ (8002a30 ) 800288c: 601a str r2, [r3, #0] vddscoff_div = HTPA_calcPowerTwo(vddscoff); 800288e: 4b69 ldr r3, [pc, #420] @ (8002a34 ) 8002890: 781b ldrb r3, [r3, #0] 8002892: 0018 movs r0, r3 8002894: f000 f8e2 bl 8002a5c 8002898: 0002 movs r2, r0 800289a: 4b67 ldr r3, [pc, #412] @ (8002a38 ) 800289c: 601a str r2, [r3, #0] // calculate sensitivity coefficients: (datasheet 11.5) for(uint8_t i = 0; i < 32; i++) { 800289e: 2312 movs r3, #18 80028a0: 18fb adds r3, r7, r3 80028a2: 2200 movs r2, #0 80028a4: 701a strb r2, [r3, #0] 80028a6: e09b b.n 80029e0 pixcij[i] = (int32_t)pixcmax - (int32_t)pixcmin; 80028a8: 4b64 ldr r3, [pc, #400] @ (8002a3c ) 80028aa: 681b ldr r3, [r3, #0] 80028ac: 1c18 adds r0, r3, #0 80028ae: f7fe fcb3 bl 8001218 <__aeabi_f2iz> 80028b2: 0004 movs r4, r0 80028b4: 4b62 ldr r3, [pc, #392] @ (8002a40 ) 80028b6: 681b ldr r3, [r3, #0] 80028b8: 1c18 adds r0, r3, #0 80028ba: f7fe fcad bl 8001218 <__aeabi_f2iz> 80028be: 0001 movs r1, r0 80028c0: 2612 movs r6, #18 80028c2: 19bb adds r3, r7, r6 80028c4: 781a ldrb r2, [r3, #0] 80028c6: 1a61 subs r1, r4, r1 80028c8: 4b5e ldr r3, [pc, #376] @ (8002a44 ) 80028ca: 0092 lsls r2, r2, #2 80028cc: 50d1 str r1, [r2, r3] pixcij[i] = pixcij[i] / 65535; 80028ce: 19bb adds r3, r7, r6 80028d0: 781a ldrb r2, [r3, #0] 80028d2: 4b5c ldr r3, [pc, #368] @ (8002a44 ) 80028d4: 0092 lsls r2, r2, #2 80028d6: 58d2 ldr r2, [r2, r3] 80028d8: 19bb adds r3, r7, r6 80028da: 781c ldrb r4, [r3, #0] 80028dc: 495a ldr r1, [pc, #360] @ (8002a48 ) 80028de: 0010 movs r0, r2 80028e0: f7fd fc9c bl 800021c <__divsi3> 80028e4: 0003 movs r3, r0 80028e6: 0019 movs r1, r3 80028e8: 4b56 ldr r3, [pc, #344] @ (8002a44 ) 80028ea: 00a2 lsls r2, r4, #2 80028ec: 50d1 str r1, [r2, r3] pixcij[i] = pixcij[i] * pij[i]; 80028ee: 19bb adds r3, r7, r6 80028f0: 781a ldrb r2, [r3, #0] 80028f2: 4b54 ldr r3, [pc, #336] @ (8002a44 ) 80028f4: 0092 lsls r2, r2, #2 80028f6: 58d3 ldr r3, [r2, r3] 80028f8: 19ba adds r2, r7, r6 80028fa: 7811 ldrb r1, [r2, #0] 80028fc: 4a41 ldr r2, [pc, #260] @ (8002a04 ) 80028fe: 0049 lsls r1, r1, #1 8002900: 5a8a ldrh r2, [r1, r2] 8002902: 0011 movs r1, r2 8002904: 19ba adds r2, r7, r6 8002906: 7812 ldrb r2, [r2, #0] 8002908: 4359 muls r1, r3 800290a: 4b4e ldr r3, [pc, #312] @ (8002a44 ) 800290c: 0092 lsls r2, r2, #2 800290e: 50d1 str r1, [r2, r3] pixcij[i] = pixcij[i] + pixcmin; 8002910: 19bb adds r3, r7, r6 8002912: 781a ldrb r2, [r3, #0] 8002914: 4b4b ldr r3, [pc, #300] @ (8002a44 ) 8002916: 0092 lsls r2, r2, #2 8002918: 58d3 ldr r3, [r2, r3] 800291a: 0018 movs r0, r3 800291c: f7fe fc9c bl 8001258 <__aeabi_i2f> 8002920: 1c02 adds r2, r0, #0 8002922: 4b47 ldr r3, [pc, #284] @ (8002a40 ) 8002924: 681b ldr r3, [r3, #0] 8002926: 1c19 adds r1, r3, #0 8002928: 1c10 adds r0, r2, #0 800292a: f7fd fe0d bl 8000548 <__aeabi_fadd> 800292e: 1c03 adds r3, r0, #0 8002930: 1c1a adds r2, r3, #0 8002932: 19bb adds r3, r7, r6 8002934: 781c ldrb r4, [r3, #0] 8002936: 1c10 adds r0, r2, #0 8002938: f7fe fc6e bl 8001218 <__aeabi_f2iz> 800293c: 0001 movs r1, r0 800293e: 4b41 ldr r3, [pc, #260] @ (8002a44 ) 8002940: 00a2 lsls r2, r4, #2 8002942: 50d1 str r1, [r2, r3] pixcij[i] = pixcij[i] * 1.0 * HTPA_CUSTOM_EPSILON / 100; 8002944: 19bb adds r3, r7, r6 8002946: 781a ldrb r2, [r3, #0] 8002948: 4b3e ldr r3, [pc, #248] @ (8002a44 ) 800294a: 0092 lsls r2, r2, #2 800294c: 58d3 ldr r3, [r2, r3] 800294e: 0018 movs r0, r3 8002950: f7ff fb52 bl 8001ff8 <__aeabi_i2d> 8002954: 2200 movs r2, #0 8002956: 4b3d ldr r3, [pc, #244] @ (8002a4c ) 8002958: f7ff f82c bl 80019b4 <__aeabi_dmul> 800295c: 0002 movs r2, r0 800295e: 000b movs r3, r1 8002960: 0010 movs r0, r2 8002962: 0019 movs r1, r3 8002964: 2200 movs r2, #0 8002966: 4b3a ldr r3, [pc, #232] @ (8002a50 ) 8002968: f7fe fd0c bl 8001384 <__aeabi_ddiv> 800296c: 0002 movs r2, r0 800296e: 000b movs r3, r1 8002970: 19b9 adds r1, r7, r6 8002972: 780c ldrb r4, [r1, #0] 8002974: 0010 movs r0, r2 8002976: 0019 movs r1, r3 8002978: f7ff fb02 bl 8001f80 <__aeabi_d2iz> 800297c: 0001 movs r1, r0 800297e: 4b31 ldr r3, [pc, #196] @ (8002a44 ) 8002980: 00a2 lsls r2, r4, #2 8002982: 50d1 str r1, [r2, r3] pixcij[i] = pixcij[i] * 1.0 * globalgain / 10000; 8002984: 19bb adds r3, r7, r6 8002986: 781a ldrb r2, [r3, #0] 8002988: 4b2e ldr r3, [pc, #184] @ (8002a44 ) 800298a: 0092 lsls r2, r2, #2 800298c: 58d3 ldr r3, [r2, r3] 800298e: 0018 movs r0, r3 8002990: f7ff fb32 bl 8001ff8 <__aeabi_i2d> 8002994: 0004 movs r4, r0 8002996: 000d movs r5, r1 8002998: 4b2e ldr r3, [pc, #184] @ (8002a54 ) 800299a: 881b ldrh r3, [r3, #0] 800299c: 0018 movs r0, r3 800299e: f7ff fb2b bl 8001ff8 <__aeabi_i2d> 80029a2: 0002 movs r2, r0 80029a4: 000b movs r3, r1 80029a6: 0020 movs r0, r4 80029a8: 0029 movs r1, r5 80029aa: f7ff f803 bl 80019b4 <__aeabi_dmul> 80029ae: 0002 movs r2, r0 80029b0: 000b movs r3, r1 80029b2: 0010 movs r0, r2 80029b4: 0019 movs r1, r3 80029b6: 2200 movs r2, #0 80029b8: 4b27 ldr r3, [pc, #156] @ (8002a58 ) 80029ba: f7fe fce3 bl 8001384 <__aeabi_ddiv> 80029be: 0002 movs r2, r0 80029c0: 000b movs r3, r1 80029c2: 19b9 adds r1, r7, r6 80029c4: 780c ldrb r4, [r1, #0] 80029c6: 0010 movs r0, r2 80029c8: 0019 movs r1, r3 80029ca: f7ff fad9 bl 8001f80 <__aeabi_d2iz> 80029ce: 0001 movs r1, r0 80029d0: 4b1c ldr r3, [pc, #112] @ (8002a44 ) 80029d2: 00a2 lsls r2, r4, #2 80029d4: 50d1 str r1, [r2, r3] for(uint8_t i = 0; i < 32; i++) { 80029d6: 19bb adds r3, r7, r6 80029d8: 781a ldrb r2, [r3, #0] 80029da: 19bb adds r3, r7, r6 80029dc: 3201 adds r2, #1 80029de: 701a strb r2, [r3, #0] 80029e0: 2312 movs r3, #18 80029e2: 18fb adds r3, r7, r3 80029e4: 781b ldrb r3, [r3, #0] 80029e6: 2b1f cmp r3, #31 80029e8: d800 bhi.n 80029ec 80029ea: e75d b.n 80028a8 } } 80029ec: 46c0 nop @ (mov r8, r8) 80029ee: 46c0 nop @ (mov r8, r8) 80029f0: 46bd mov sp, r7 80029f2: b007 add sp, #28 80029f4: bdf0 pop {r4, r5, r6, r7, pc} 80029f6: 46c0 nop @ (mov r8, r8) 80029f8: 00001301 .word 0x00001301 80029fc: 200000c4 .word 0x200000c4 8002a00: 00001b01 .word 0x00001b01 8002a04: 20000044 .word 0x20000044 8002a08: 20000028 .word 0x20000028 8002a0c: 40010000 .word 0x40010000 8002a10: 20000032 .word 0x20000032 8002a14: 20000033 .word 0x20000033 8002a18: 20000034 .word 0x20000034 8002a1c: 20000035 .word 0x20000035 8002a20: 20000036 .word 0x20000036 8002a24: 2000002c .word 0x2000002c 8002a28: 20000424 .word 0x20000424 8002a2c: 2000002d .word 0x2000002d 8002a30: 20000428 .word 0x20000428 8002a34: 2000002e .word 0x2000002e 8002a38: 2000042c .word 0x2000042c 8002a3c: 20000188 .word 0x20000188 8002a40: 20000184 .word 0x20000184 8002a44: 20000430 .word 0x20000430 8002a48: 0000ffff .word 0x0000ffff 8002a4c: 40578000 .word 0x40578000 8002a50: 40590000 .word 0x40590000 8002a54: 20000040 .word 0x20000040 8002a58: 40c38800 .word 0x40c38800 08002a5c : uint32_t HTPA_calcPowerTwo(uint8_t power) { 8002a5c: b590 push {r4, r7, lr} 8002a5e: b083 sub sp, #12 8002a60: af00 add r7, sp, #0 8002a62: 0002 movs r2, r0 8002a64: 1dfb adds r3, r7, #7 8002a66: 701a strb r2, [r3, #0] if (power == 0) 8002a68: 1dfb adds r3, r7, #7 8002a6a: 781b ldrb r3, [r3, #0] 8002a6c: 2b00 cmp r3, #0 8002a6e: d101 bne.n 8002a74 return 1; 8002a70: 2301 movs r3, #1 8002a72: e02a b.n 8002aca else if ((power % 2) == 0) 8002a74: 1dfb adds r3, r7, #7 8002a76: 781b ldrb r3, [r3, #0] 8002a78: 2201 movs r2, #1 8002a7a: 4013 ands r3, r2 8002a7c: b2db uxtb r3, r3 8002a7e: 2b00 cmp r3, #0 8002a80: d111 bne.n 8002aa6 return HTPA_calcPowerTwo(power / 2) * HTPA_calcPowerTwo(power / 2); 8002a82: 1dfb adds r3, r7, #7 8002a84: 781b ldrb r3, [r3, #0] 8002a86: 085b lsrs r3, r3, #1 8002a88: b2db uxtb r3, r3 8002a8a: 0018 movs r0, r3 8002a8c: f7ff ffe6 bl 8002a5c 8002a90: 0004 movs r4, r0 8002a92: 1dfb adds r3, r7, #7 8002a94: 781b ldrb r3, [r3, #0] 8002a96: 085b lsrs r3, r3, #1 8002a98: b2db uxtb r3, r3 8002a9a: 0018 movs r0, r3 8002a9c: f7ff ffde bl 8002a5c 8002aa0: 0003 movs r3, r0 8002aa2: 4363 muls r3, r4 8002aa4: e011 b.n 8002aca else return 2 * HTPA_calcPowerTwo(power / 2) * HTPA_calcPowerTwo(power / 2); 8002aa6: 1dfb adds r3, r7, #7 8002aa8: 781b ldrb r3, [r3, #0] 8002aaa: 085b lsrs r3, r3, #1 8002aac: b2db uxtb r3, r3 8002aae: 0018 movs r0, r3 8002ab0: f7ff ffd4 bl 8002a5c 8002ab4: 0004 movs r4, r0 8002ab6: 1dfb adds r3, r7, #7 8002ab8: 781b ldrb r3, [r3, #0] 8002aba: 085b lsrs r3, r3, #1 8002abc: b2db uxtb r3, r3 8002abe: 0018 movs r0, r3 8002ac0: f7ff ffcc bl 8002a5c 8002ac4: 0003 movs r3, r0 8002ac6: 4363 muls r3, r4 8002ac8: 005b lsls r3, r3, #1 } 8002aca: 0018 movs r0, r3 8002acc: 46bd mov sp, r7 8002ace: b003 add sp, #12 8002ad0: bd90 pop {r4, r7, pc} ... 08002ad4 : void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002ad4: b5f0 push {r4, r5, r6, r7, lr} 8002ad6: b09b sub sp, #108 @ 0x6c 8002ad8: af00 add r7, sp, #0 8002ada: 62f8 str r0, [r7, #44] @ 0x2c uint8_t config = 0; 8002adc: 2033 movs r0, #51 @ 0x33 8002ade: 2428 movs r4, #40 @ 0x28 8002ae0: 1903 adds r3, r0, r4 8002ae2: 19da adds r2, r3, r7 8002ae4: 2300 movs r3, #0 8002ae6: 7013 strb r3, [r2, #0] /* * Read top array half of block3 with PTAT */ // write block and vdd/ptat selection to config register: config |= (3 << 4); // bit 5,4 block 3 selection 8002ae8: 1903 adds r3, r0, r4 8002aea: 19d9 adds r1, r3, r7 8002aec: 1903 adds r3, r0, r4 8002aee: 19db adds r3, r3, r7 8002af0: 781a ldrb r2, [r3, #0] 8002af2: 2330 movs r3, #48 @ 0x30 8002af4: 4313 orrs r3, r2 8002af6: 700b strb r3, [r1, #0] config |= 0x09; // bit 3 start | bit 0 wakeup 8002af8: 1903 adds r3, r0, r4 8002afa: 19d9 adds r1, r3, r7 8002afc: 1903 adds r3, r0, r4 8002afe: 19db adds r3, r3, r7 8002b00: 781a ldrb r2, [r3, #0] 8002b02: 2309 movs r3, #9 8002b04: 4313 orrs r3, r2 8002b06: 700b strb r3, [r1, #0] HTPA_WriteRegister(HTPA_SENSOR_CONFIG, config); 8002b08: 1903 adds r3, r0, r4 8002b0a: 19db adds r3, r3, r7 8002b0c: 781b ldrb r3, [r3, #0] 8002b0e: 0019 movs r1, r3 8002b10: 2001 movs r0, #1 8002b12: f000 fae7 bl 80030e4 HAL_Delay(30); // conversion around 27ms in standard config 8002b16: 201e movs r0, #30 8002b18: f001 f9be bl 8003e98 HTPA_GetStatus(); 8002b1c: f000 fb22 bl 8003164 HAL_Delay(5); 8002b20: 2005 movs r0, #5 8002b22: f001 f9b9 bl 8003e98 while(htpa_statusReg.eoc != 1) { 8002b26: e004 b.n 8002b32 HAL_Delay(5); 8002b28: 2005 movs r0, #5 8002b2a: f001 f9b5 bl 8003e98 HTPA_GetStatus(); 8002b2e: f000 fb19 bl 8003164 while(htpa_statusReg.eoc != 1) { 8002b32: 4b7b ldr r3, [pc, #492] @ (8002d20 ) 8002b34: 78da ldrb r2, [r3, #3] 8002b36: 2301 movs r3, #1 8002b38: 4053 eors r3, r2 8002b3a: b2db uxtb r3, r3 8002b3c: 2b00 cmp r3, #0 8002b3e: d1f3 bne.n 8002b28 } // wait until eoc flag is set then read register data HTPA_ReadRegister(HTPA_SENSOR_READTOP, data_topBlock, 258); 8002b40: 2381 movs r3, #129 @ 0x81 8002b42: 005a lsls r2, r3, #1 8002b44: 4b77 ldr r3, [pc, #476] @ (8002d24 ) 8002b46: 0019 movs r1, r3 8002b48: 200a movs r0, #10 8002b4a: f000 fae9 bl 8003120 ptat_topBlock = (data_topBlock[0] << 8) | data_topBlock[1]; 8002b4e: 4b75 ldr r3, [pc, #468] @ (8002d24 ) 8002b50: 781b ldrb r3, [r3, #0] 8002b52: b21b sxth r3, r3 8002b54: 021b lsls r3, r3, #8 8002b56: b21a sxth r2, r3 8002b58: 4b72 ldr r3, [pc, #456] @ (8002d24 ) 8002b5a: 785b ldrb r3, [r3, #1] 8002b5c: b21b sxth r3, r3 8002b5e: 4313 orrs r3, r2 8002b60: b21b sxth r3, r3 8002b62: b29b uxth r3, r3 8002b64: 4a70 ldr r2, [pc, #448] @ (8002d28 ) 8002b66: 8013 strh r3, [r2, #0] /* * Read electrical offset with VDD */ config |= 0x04; // bit 2 vdd_meas 8002b68: 2033 movs r0, #51 @ 0x33 8002b6a: 2428 movs r4, #40 @ 0x28 8002b6c: 1903 adds r3, r0, r4 8002b6e: 19d9 adds r1, r3, r7 8002b70: 1903 adds r3, r0, r4 8002b72: 19db adds r3, r3, r7 8002b74: 781a ldrb r2, [r3, #0] 8002b76: 2304 movs r3, #4 8002b78: 4313 orrs r3, r2 8002b7a: 700b strb r3, [r1, #0] config |= 0x02; // bit 1 blind for electrical offset readout (block selection is ignored) 8002b7c: 1903 adds r3, r0, r4 8002b7e: 19d9 adds r1, r3, r7 8002b80: 1903 adds r3, r0, r4 8002b82: 19db adds r3, r3, r7 8002b84: 781a ldrb r2, [r3, #0] 8002b86: 2302 movs r3, #2 8002b88: 4313 orrs r3, r2 8002b8a: 700b strb r3, [r1, #0] HTPA_WriteRegister(HTPA_SENSOR_CONFIG, config); 8002b8c: 1903 adds r3, r0, r4 8002b8e: 19db adds r3, r3, r7 8002b90: 781b ldrb r3, [r3, #0] 8002b92: 0019 movs r1, r3 8002b94: 2001 movs r0, #1 8002b96: f000 faa5 bl 80030e4 HAL_Delay(30); // conversion around 27ms in standard config 8002b9a: 201e movs r0, #30 8002b9c: f001 f97c bl 8003e98 while(htpa_statusReg.eoc != 1) { 8002ba0: e004 b.n 8002bac HAL_Delay(5); 8002ba2: 2005 movs r0, #5 8002ba4: f001 f978 bl 8003e98 HTPA_GetStatus(); 8002ba8: f000 fadc bl 8003164 while(htpa_statusReg.eoc != 1) { 8002bac: 4b5c ldr r3, [pc, #368] @ (8002d20 ) 8002bae: 78da ldrb r2, [r3, #3] 8002bb0: 2301 movs r3, #1 8002bb2: 4053 eors r3, r2 8002bb4: b2db uxtb r3, r3 8002bb6: 2b00 cmp r3, #0 8002bb8: d1f3 bne.n 8002ba2 } // wait until eoc flag is set then read register data HTPA_ReadRegister(HTPA_SENSOR_READTOP, elOffset_topBlock, 258); 8002bba: 2381 movs r3, #129 @ 0x81 8002bbc: 005a lsls r2, r3, #1 8002bbe: 4b5b ldr r3, [pc, #364] @ (8002d2c ) 8002bc0: 0019 movs r1, r3 8002bc2: 200a movs r0, #10 8002bc4: f000 faac bl 8003120 vdd_topBlock = (elOffset_topBlock[0] << 8) | elOffset_topBlock[1]; 8002bc8: 4b58 ldr r3, [pc, #352] @ (8002d2c ) 8002bca: 781b ldrb r3, [r3, #0] 8002bcc: b21b sxth r3, r3 8002bce: 021b lsls r3, r3, #8 8002bd0: b21a sxth r2, r3 8002bd2: 4b56 ldr r3, [pc, #344] @ (8002d2c ) 8002bd4: 785b ldrb r3, [r3, #1] 8002bd6: b21b sxth r3, r3 8002bd8: 4313 orrs r3, r2 8002bda: b21b sxth r3, r3 8002bdc: b29b uxth r3, r3 8002bde: 4a54 ldr r2, [pc, #336] @ (8002d30 ) 8002be0: 8013 strh r3, [r2, #0] /* * Sort sensor data and assign to pixels */ for(int i=0; i<32; i++) { 8002be2: 2300 movs r3, #0 8002be4: 667b str r3, [r7, #100] @ 0x64 8002be6: e030 b.n 8002c4a pixel_topBlock[0][i] = (data_topBlock[2*i + 2] << 8) | data_topBlock[2*i + 3]; pixel_topBlock[1][i] = (data_topBlock[2*(i+32) + 2] << 8) | data_topBlock[2*(i+32) + 3]; pixel_topBlock[2][i] = (data_topBlock[2*(i+64) + 2] << 8) | data_topBlock[2*(i+64) + 3]; pixel_topBlock[3][i] = (data_topBlock[2*(i+96) + 2] << 8) | data_topBlock[2*(i+96) + 3]; */ pixel_topBlock[i] = (data_topBlock[2*(i+32*HTPA_ROWSELECTION) + 2] << 8) | data_topBlock[2*(i+32*HTPA_ROWSELECTION) + 3]; 8002be8: 6e7b ldr r3, [r7, #100] @ 0x64 8002bea: 3361 adds r3, #97 @ 0x61 8002bec: 005a lsls r2, r3, #1 8002bee: 4b4d ldr r3, [pc, #308] @ (8002d24 ) 8002bf0: 5c9b ldrb r3, [r3, r2] 8002bf2: b21b sxth r3, r3 8002bf4: 021b lsls r3, r3, #8 8002bf6: b219 sxth r1, r3 8002bf8: 6e7b ldr r3, [r7, #100] @ 0x64 8002bfa: 005b lsls r3, r3, #1 8002bfc: 33c3 adds r3, #195 @ 0xc3 8002bfe: 001a movs r2, r3 8002c00: 4b48 ldr r3, [pc, #288] @ (8002d24 ) 8002c02: 5c9b ldrb r3, [r3, r2] 8002c04: b21b sxth r3, r3 8002c06: 430b orrs r3, r1 8002c08: b21b sxth r3, r3 8002c0a: b298 uxth r0, r3 8002c0c: 4949 ldr r1, [pc, #292] @ (8002d34 ) 8002c0e: 6e7b ldr r3, [r7, #100] @ 0x64 8002c10: 005a lsls r2, r3, #1 8002c12: 1c03 adds r3, r0, #0 8002c14: 5253 strh r3, [r2, r1] elOffset[0][i] = (elOffset_topBlock[2*i + 2] << 8) | elOffset_topBlock[2*i + 3]; elOffset[1][i] = (elOffset_topBlock[2*(i+32) + 2] << 8) | elOffset_topBlock[2*(i+32) + 3]; elOffset[2][i] = (elOffset_topBlock[2*(i+64) + 2] << 8) | elOffset_topBlock[2*(i+64) + 3]; elOffset[3][i] = (elOffset_topBlock[2*(i+96) + 2] << 8) | elOffset_topBlock[2*(i+96) + 3]; */ elOffset[i] = (elOffset_topBlock[2*(i+32*HTPA_ROWSELECTION) + 2] << 8) | elOffset_topBlock[2*(i+32*HTPA_ROWSELECTION) + 3]; 8002c16: 6e7b ldr r3, [r7, #100] @ 0x64 8002c18: 3361 adds r3, #97 @ 0x61 8002c1a: 005a lsls r2, r3, #1 8002c1c: 4b43 ldr r3, [pc, #268] @ (8002d2c ) 8002c1e: 5c9b ldrb r3, [r3, r2] 8002c20: b21b sxth r3, r3 8002c22: 021b lsls r3, r3, #8 8002c24: b219 sxth r1, r3 8002c26: 6e7b ldr r3, [r7, #100] @ 0x64 8002c28: 005b lsls r3, r3, #1 8002c2a: 33c3 adds r3, #195 @ 0xc3 8002c2c: 001a movs r2, r3 8002c2e: 4b3f ldr r3, [pc, #252] @ (8002d2c ) 8002c30: 5c9b ldrb r3, [r3, r2] 8002c32: b21b sxth r3, r3 8002c34: 430b orrs r3, r1 8002c36: b21b sxth r3, r3 8002c38: b298 uxth r0, r3 8002c3a: 493f ldr r1, [pc, #252] @ (8002d38 ) 8002c3c: 6e7b ldr r3, [r7, #100] @ 0x64 8002c3e: 005a lsls r2, r3, #1 8002c40: 1c03 adds r3, r0, #0 8002c42: 5253 strh r3, [r2, r1] for(int i=0; i<32; i++) { 8002c44: 6e7b ldr r3, [r7, #100] @ 0x64 8002c46: 3301 adds r3, #1 8002c48: 667b str r3, [r7, #100] @ 0x64 8002c4a: 6e7b ldr r3, [r7, #100] @ 0x64 8002c4c: 2b1f cmp r3, #31 8002c4e: ddcb ble.n 8002be8 int64_t vdd_calc_steps; uint16_t table_row, table_col; int32_t vx, vy, ydist, dta; // 11.1 ambient temperature: ambient_temperature = ptat_topBlock * ptatgr + ptatoff; // value in dK 8002c50: 4b35 ldr r3, [pc, #212] @ (8002d28 ) 8002c52: 881b ldrh r3, [r3, #0] 8002c54: 0018 movs r0, r3 8002c56: f7fe faff bl 8001258 <__aeabi_i2f> 8002c5a: 1c02 adds r2, r0, #0 8002c5c: 4b37 ldr r3, [pc, #220] @ (8002d3c ) 8002c5e: 681b ldr r3, [r3, #0] 8002c60: 1c19 adds r1, r3, #0 8002c62: 1c10 adds r0, r2, #0 8002c64: f7fd ff1a bl 8000a9c <__aeabi_fmul> 8002c68: 1c03 adds r3, r0, #0 8002c6a: 1c1a adds r2, r3, #0 8002c6c: 4b34 ldr r3, [pc, #208] @ (8002d40 ) 8002c6e: 681b ldr r3, [r3, #0] 8002c70: 1c19 adds r1, r3, #0 8002c72: 1c10 adds r0, r2, #0 8002c74: f7fd fc68 bl 8000548 <__aeabi_fadd> 8002c78: 1c03 adds r3, r0, #0 8002c7a: 1c1a adds r2, r3, #0 8002c7c: 4b31 ldr r3, [pc, #196] @ (8002d44 ) 8002c7e: 601a str r2, [r3, #0] // find column of lookup table (ambient temperature) for(uint16_t i = 0; i < NROFTAELEMENTS; i++) { 8002c80: 2338 movs r3, #56 @ 0x38 8002c82: 2228 movs r2, #40 @ 0x28 8002c84: 189b adds r3, r3, r2 8002c86: 19da adds r2, r3, r7 8002c88: 2300 movs r3, #0 8002c8a: 8013 strh r3, [r2, #0] 8002c8c: e024 b.n 8002cd8 if(ambient_temperature > XTATemps[i]) { 8002c8e: 2438 movs r4, #56 @ 0x38 8002c90: 2128 movs r1, #40 @ 0x28 8002c92: 1863 adds r3, r4, r1 8002c94: 19db adds r3, r3, r7 8002c96: 881b ldrh r3, [r3, #0] 8002c98: 4a2b ldr r2, [pc, #172] @ (8002d48 ) 8002c9a: 009b lsls r3, r3, #2 8002c9c: 589b ldr r3, [r3, r2] 8002c9e: 0018 movs r0, r3 8002ca0: f7fe fb2a bl 80012f8 <__aeabi_ui2f> 8002ca4: 1c02 adds r2, r0, #0 8002ca6: 4b27 ldr r3, [pc, #156] @ (8002d44 ) 8002ca8: 681b ldr r3, [r3, #0] 8002caa: 1c19 adds r1, r3, #0 8002cac: 1c10 adds r0, r2, #0 8002cae: f7fd fbb3 bl 8000418 <__aeabi_fcmplt> 8002cb2: 1e03 subs r3, r0, #0 8002cb4: d007 beq.n 8002cc6 table_col = i; 8002cb6: 233a movs r3, #58 @ 0x3a 8002cb8: 2128 movs r1, #40 @ 0x28 8002cba: 185b adds r3, r3, r1 8002cbc: 19da adds r2, r3, r7 8002cbe: 1863 adds r3, r4, r1 8002cc0: 19db adds r3, r3, r7 8002cc2: 881b ldrh r3, [r3, #0] 8002cc4: 8013 strh r3, [r2, #0] for(uint16_t i = 0; i < NROFTAELEMENTS; i++) { 8002cc6: 2238 movs r2, #56 @ 0x38 8002cc8: 2128 movs r1, #40 @ 0x28 8002cca: 1853 adds r3, r2, r1 8002ccc: 19db adds r3, r3, r7 8002cce: 881b ldrh r3, [r3, #0] 8002cd0: 1852 adds r2, r2, r1 8002cd2: 19d2 adds r2, r2, r7 8002cd4: 3301 adds r3, #1 8002cd6: 8013 strh r3, [r2, #0] 8002cd8: 2338 movs r3, #56 @ 0x38 8002cda: 2228 movs r2, #40 @ 0x28 8002cdc: 189b adds r3, r3, r2 8002cde: 19db adds r3, r3, r7 8002ce0: 881b ldrh r3, [r3, #0] 8002ce2: 2b06 cmp r3, #6 8002ce4: d9d3 bls.n 8002c8e } } dta = ambient_temperature - XTATemps[table_col]; 8002ce6: 4b17 ldr r3, [pc, #92] @ (8002d44 ) 8002ce8: 681c ldr r4, [r3, #0] 8002cea: 233a movs r3, #58 @ 0x3a 8002cec: 189b adds r3, r3, r2 8002cee: 19db adds r3, r3, r7 8002cf0: 881b ldrh r3, [r3, #0] 8002cf2: 4a15 ldr r2, [pc, #84] @ (8002d48 ) 8002cf4: 009b lsls r3, r3, #2 8002cf6: 589b ldr r3, [r3, r2] 8002cf8: 0018 movs r0, r3 8002cfa: f7fe fafd bl 80012f8 <__aeabi_ui2f> 8002cfe: 1c03 adds r3, r0, #0 8002d00: 1c19 adds r1, r3, #0 8002d02: 1c20 adds r0, r4, #0 8002d04: f7fe f824 bl 8000d50 <__aeabi_fsub> 8002d08: 1c03 adds r3, r0, #0 8002d0a: 1c18 adds r0, r3, #0 8002d0c: f7fe fa84 bl 8001218 <__aeabi_f2iz> 8002d10: 0003 movs r3, r0 8002d12: 657b str r3, [r7, #84] @ 0x54 ydist = (int32_t)ADEQUIDISTANCE; 8002d14: 2340 movs r3, #64 @ 0x40 8002d16: 653b str r3, [r7, #80] @ 0x50 for(int i=0; i<32; i++) { 8002d18: 2300 movs r3, #0 8002d1a: 65fb str r3, [r7, #92] @ 0x5c 8002d1c: e1a5 b.n 800306a 8002d1e: 46c0 nop @ (mov r8, r8) 8002d20: 20000194 .word 0x20000194 8002d24: 20000198 .word 0x20000198 8002d28: 200003a0 .word 0x200003a0 8002d2c: 2000029c .word 0x2000029c 8002d30: 2000039e .word 0x2000039e 8002d34: 200003a4 .word 0x200003a4 8002d38: 200003e4 .word 0x200003e4 8002d3c: 2000018c .word 0x2000018c 8002d40: 20000190 .word 0x20000190 8002d44: 20000730 .word 0x20000730 8002d48: 080076c0 .word 0x080076c0 // 11.2 thermal offset: vij_comp[i] = pixel_topBlock[i] - (thgrad[i] * ptat_topBlock / gradscale_div) - thoffset[i]; 8002d4c: 4acb ldr r2, [pc, #812] @ (800307c ) 8002d4e: 6dfb ldr r3, [r7, #92] @ 0x5c 8002d50: 005b lsls r3, r3, #1 8002d52: 5a9b ldrh r3, [r3, r2] 8002d54: 001c movs r4, r3 8002d56: 4aca ldr r2, [pc, #808] @ (8003080 ) 8002d58: 6dfb ldr r3, [r7, #92] @ 0x5c 8002d5a: 005b lsls r3, r3, #1 8002d5c: 5e9b ldrsh r3, [r3, r2] 8002d5e: 001a movs r2, r3 8002d60: 4bc8 ldr r3, [pc, #800] @ (8003084 ) 8002d62: 881b ldrh r3, [r3, #0] 8002d64: 4353 muls r3, r2 8002d66: 001a movs r2, r3 8002d68: 4bc7 ldr r3, [pc, #796] @ (8003088 ) 8002d6a: 681b ldr r3, [r3, #0] 8002d6c: 0019 movs r1, r3 8002d6e: 0010 movs r0, r2 8002d70: f7fd f9ca bl 8000108 <__udivsi3> 8002d74: 0003 movs r3, r0 8002d76: 1ae1 subs r1, r4, r3 8002d78: 4ac4 ldr r2, [pc, #784] @ (800308c ) 8002d7a: 6dfb ldr r3, [r7, #92] @ 0x5c 8002d7c: 005b lsls r3, r3, #1 8002d7e: 5e9b ldrsh r3, [r3, r2] 8002d80: 1acb subs r3, r1, r3 8002d82: 0019 movs r1, r3 8002d84: 4ac2 ldr r2, [pc, #776] @ (8003090 ) 8002d86: 6dfb ldr r3, [r7, #92] @ 0x5c 8002d88: 009b lsls r3, r3, #2 8002d8a: 5099 str r1, [r3, r2] // 11.3 electrical offset: vij_comp_s[i] = vij_comp[i] - elOffset[i]; 8002d8c: 4ac0 ldr r2, [pc, #768] @ (8003090 ) 8002d8e: 6dfb ldr r3, [r7, #92] @ 0x5c 8002d90: 009b lsls r3, r3, #2 8002d92: 5899 ldr r1, [r3, r2] 8002d94: 4abf ldr r2, [pc, #764] @ (8003094 ) 8002d96: 6dfb ldr r3, [r7, #92] @ 0x5c 8002d98: 005b lsls r3, r3, #1 8002d9a: 5a9b ldrh r3, [r3, r2] 8002d9c: 1ac9 subs r1, r1, r3 8002d9e: 4abe ldr r2, [pc, #760] @ (8003098 ) 8002da0: 6dfb ldr r3, [r7, #92] @ 0x5c 8002da2: 009b lsls r3, r3, #2 8002da4: 5099 str r1, [r3, r2] // 11.4 Vdd compensation: vdd_calc_steps = vddcompgrad[i] * ptat_topBlock; 8002da6: 4abd ldr r2, [pc, #756] @ (800309c ) 8002da8: 6dfb ldr r3, [r7, #92] @ 0x5c 8002daa: 005b lsls r3, r3, #1 8002dac: 5e9b ldrsh r3, [r3, r2] 8002dae: 001a movs r2, r3 8002db0: 4bb4 ldr r3, [pc, #720] @ (8003084 ) 8002db2: 881b ldrh r3, [r3, #0] 8002db4: 4353 muls r3, r2 8002db6: 64bb str r3, [r7, #72] @ 0x48 8002db8: 17db asrs r3, r3, #31 8002dba: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps / vddscgrad_div; 8002dbc: 4bb8 ldr r3, [pc, #736] @ (80030a0 ) 8002dbe: 681b ldr r3, [r3, #0] 8002dc0: 623b str r3, [r7, #32] 8002dc2: 2300 movs r3, #0 8002dc4: 627b str r3, [r7, #36] @ 0x24 8002dc6: 6a3a ldr r2, [r7, #32] 8002dc8: 6a7b ldr r3, [r7, #36] @ 0x24 8002dca: 6cb8 ldr r0, [r7, #72] @ 0x48 8002dcc: 6cf9 ldr r1, [r7, #76] @ 0x4c 8002dce: f7fd fb4b bl 8000468 <__aeabi_ldivmod> 8002dd2: 0002 movs r2, r0 8002dd4: 000b movs r3, r1 8002dd6: 64ba str r2, [r7, #72] @ 0x48 8002dd8: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps + vddcompoff[i]; 8002dda: 4ab2 ldr r2, [pc, #712] @ (80030a4 ) 8002ddc: 6dfb ldr r3, [r7, #92] @ 0x5c 8002dde: 005b lsls r3, r3, #1 8002de0: 5e9b ldrsh r3, [r3, r2] 8002de2: 001d movs r5, r3 8002de4: 17db asrs r3, r3, #31 8002de6: 001e movs r6, r3 8002de8: 6cba ldr r2, [r7, #72] @ 0x48 8002dea: 6cfb ldr r3, [r7, #76] @ 0x4c 8002dec: 1952 adds r2, r2, r5 8002dee: 4173 adcs r3, r6 8002df0: 64ba str r2, [r7, #72] @ 0x48 8002df2: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps * (vdd_topBlock - vddth1 - ((vddth2 - vddth1) / (ptatth2 - ptatth1)) * (ptat_topBlock - ptatth1)); 8002df4: 4bac ldr r3, [pc, #688] @ (80030a8 ) 8002df6: 881b ldrh r3, [r3, #0] 8002df8: 001a movs r2, r3 8002dfa: 4bac ldr r3, [pc, #688] @ (80030ac ) 8002dfc: 881b ldrh r3, [r3, #0] 8002dfe: 1ad4 subs r4, r2, r3 8002e00: 4bab ldr r3, [pc, #684] @ (80030b0 ) 8002e02: 881b ldrh r3, [r3, #0] 8002e04: 001a movs r2, r3 8002e06: 4ba9 ldr r3, [pc, #676] @ (80030ac ) 8002e08: 881b ldrh r3, [r3, #0] 8002e0a: 1ad0 subs r0, r2, r3 8002e0c: 4ba9 ldr r3, [pc, #676] @ (80030b4 ) 8002e0e: 881b ldrh r3, [r3, #0] 8002e10: 001a movs r2, r3 8002e12: 4ba9 ldr r3, [pc, #676] @ (80030b8 ) 8002e14: 881b ldrh r3, [r3, #0] 8002e16: 1ad3 subs r3, r2, r3 8002e18: 0019 movs r1, r3 8002e1a: f7fd f9ff bl 800021c <__divsi3> 8002e1e: 0003 movs r3, r0 8002e20: 0019 movs r1, r3 8002e22: 4b98 ldr r3, [pc, #608] @ (8003084 ) 8002e24: 881b ldrh r3, [r3, #0] 8002e26: 001a movs r2, r3 8002e28: 4ba3 ldr r3, [pc, #652] @ (80030b8 ) 8002e2a: 881b ldrh r3, [r3, #0] 8002e2c: 1ad3 subs r3, r2, r3 8002e2e: 434b muls r3, r1 8002e30: 1ae3 subs r3, r4, r3 8002e32: 61bb str r3, [r7, #24] 8002e34: 17db asrs r3, r3, #31 8002e36: 61fb str r3, [r7, #28] 8002e38: 69ba ldr r2, [r7, #24] 8002e3a: 69fb ldr r3, [r7, #28] 8002e3c: 6cb8 ldr r0, [r7, #72] @ 0x48 8002e3e: 6cf9 ldr r1, [r7, #76] @ 0x4c 8002e40: f7fd fb36 bl 80004b0 <__aeabi_lmul> 8002e44: 0002 movs r2, r0 8002e46: 000b movs r3, r1 8002e48: 64ba str r2, [r7, #72] @ 0x48 8002e4a: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps / vddscoff_div; 8002e4c: 4b9b ldr r3, [pc, #620] @ (80030bc ) 8002e4e: 681b ldr r3, [r3, #0] 8002e50: 613b str r3, [r7, #16] 8002e52: 2300 movs r3, #0 8002e54: 617b str r3, [r7, #20] 8002e56: 693a ldr r2, [r7, #16] 8002e58: 697b ldr r3, [r7, #20] 8002e5a: 6cb8 ldr r0, [r7, #72] @ 0x48 8002e5c: 6cf9 ldr r1, [r7, #76] @ 0x4c 8002e5e: f7fd fb03 bl 8000468 <__aeabi_ldivmod> 8002e62: 0002 movs r2, r0 8002e64: 000b movs r3, r1 8002e66: 64ba str r2, [r7, #72] @ 0x48 8002e68: 64fb str r3, [r7, #76] @ 0x4c vij_vddcomp[i] = vij_comp_s[i] - vdd_calc_steps; 8002e6a: 4a8b ldr r2, [pc, #556] @ (8003098 ) 8002e6c: 6dfb ldr r3, [r7, #92] @ 0x5c 8002e6e: 009b lsls r3, r3, #2 8002e70: 589b ldr r3, [r3, r2] 8002e72: 001a movs r2, r3 8002e74: 6cbb ldr r3, [r7, #72] @ 0x48 8002e76: 1ad3 subs r3, r2, r3 8002e78: 0019 movs r1, r3 8002e7a: 4a91 ldr r2, [pc, #580] @ (80030c0 ) 8002e7c: 6dfb ldr r3, [r7, #92] @ 0x5c 8002e7e: 009b lsls r3, r3, #2 8002e80: 5099 str r1, [r3, r2] // 11.5 calculate object temperature vij_pixc_and_pcscaleval = (int64_t)vij_vddcomp[i] * (int64_t)PCSCALEVAL; 8002e82: 4a8f ldr r2, [pc, #572] @ (80030c0 ) 8002e84: 6dfb ldr r3, [r7, #92] @ 0x5c 8002e86: 009b lsls r3, r3, #2 8002e88: 589b ldr r3, [r3, r2] 8002e8a: 60bb str r3, [r7, #8] 8002e8c: 17db asrs r3, r3, #31 8002e8e: 60fb str r3, [r7, #12] 8002e90: 4a8c ldr r2, [pc, #560] @ (80030c4 ) 8002e92: 2300 movs r3, #0 8002e94: 68b8 ldr r0, [r7, #8] 8002e96: 68f9 ldr r1, [r7, #12] 8002e98: f7fd fb0a bl 80004b0 <__aeabi_lmul> 8002e9c: 0002 movs r2, r0 8002e9e: 000b movs r3, r1 8002ea0: 643a str r2, [r7, #64] @ 0x40 8002ea2: 647b str r3, [r7, #68] @ 0x44 vij_pixc[i] = (int32_t)(vij_pixc_and_pcscaleval / (int64_t)pixcij[i]); 8002ea4: 4a88 ldr r2, [pc, #544] @ (80030c8 ) 8002ea6: 6dfb ldr r3, [r7, #92] @ 0x5c 8002ea8: 009b lsls r3, r3, #2 8002eaa: 589b ldr r3, [r3, r2] 8002eac: 603b str r3, [r7, #0] 8002eae: 17db asrs r3, r3, #31 8002eb0: 607b str r3, [r7, #4] 8002eb2: 683a ldr r2, [r7, #0] 8002eb4: 687b ldr r3, [r7, #4] 8002eb6: 6c38 ldr r0, [r7, #64] @ 0x40 8002eb8: 6c79 ldr r1, [r7, #68] @ 0x44 8002eba: f7fd fad5 bl 8000468 <__aeabi_ldivmod> 8002ebe: 0002 movs r2, r0 8002ec0: 000b movs r3, r1 8002ec2: 0011 movs r1, r2 8002ec4: 4a81 ldr r2, [pc, #516] @ (80030cc ) 8002ec6: 6dfb ldr r3, [r7, #92] @ 0x5c 8002ec8: 009b lsls r3, r3, #2 8002eca: 5099 str r1, [r3, r2] // find temperature in lookup table and do bilinear interpolation table_row = vij_pixc[i] + TABLEOFFSET; 8002ecc: 4a7f ldr r2, [pc, #508] @ (80030cc ) 8002ece: 6dfb ldr r3, [r7, #92] @ 0x5c 8002ed0: 009b lsls r3, r3, #2 8002ed2: 589b ldr r3, [r3, r2] 8002ed4: b29b uxth r3, r3 8002ed6: 2116 movs r1, #22 8002ed8: 2428 movs r4, #40 @ 0x28 8002eda: 190a adds r2, r1, r4 8002edc: 19d2 adds r2, r2, r7 8002ede: 2080 movs r0, #128 @ 0x80 8002ee0: 00c0 lsls r0, r0, #3 8002ee2: 4684 mov ip, r0 8002ee4: 4463 add r3, ip 8002ee6: 8013 strh r3, [r2, #0] table_row = table_row >> ADEXPBITS; 8002ee8: 0020 movs r0, r4 8002eea: 180b adds r3, r1, r0 8002eec: 19da adds r2, r3, r7 8002eee: 180b adds r3, r1, r0 8002ef0: 19db adds r3, r3, r7 8002ef2: 881b ldrh r3, [r3, #0] 8002ef4: 099b lsrs r3, r3, #6 8002ef6: 8013 strh r3, [r2, #0] vx = ((((int32_t)TempTable[table_row][table_col + 1] - (int32_t)TempTable[table_row][table_col]) * (int32_t)dta) / (int32_t)TAEQUIDISTANCE) + (int32_t)TempTable[table_row][table_col]; 8002ef8: 0002 movs r2, r0 8002efa: 188b adds r3, r1, r2 8002efc: 19db adds r3, r3, r7 8002efe: 8818 ldrh r0, [r3, #0] 8002f00: 233a movs r3, #58 @ 0x3a 8002f02: 189b adds r3, r3, r2 8002f04: 19db adds r3, r3, r7 8002f06: 881b ldrh r3, [r3, #0] 8002f08: 1c5a adds r2, r3, #1 8002f0a: 4971 ldr r1, [pc, #452] @ (80030d0 ) 8002f0c: 0003 movs r3, r0 8002f0e: 00db lsls r3, r3, #3 8002f10: 1a1b subs r3, r3, r0 8002f12: 189b adds r3, r3, r2 8002f14: 009b lsls r3, r3, #2 8002f16: 585b ldr r3, [r3, r1] 8002f18: 001c movs r4, r3 8002f1a: 2116 movs r1, #22 8002f1c: 2228 movs r2, #40 @ 0x28 8002f1e: 188b adds r3, r1, r2 8002f20: 19db adds r3, r3, r7 8002f22: 8819 ldrh r1, [r3, #0] 8002f24: 233a movs r3, #58 @ 0x3a 8002f26: 189b adds r3, r3, r2 8002f28: 19db adds r3, r3, r7 8002f2a: 881a ldrh r2, [r3, #0] 8002f2c: 4868 ldr r0, [pc, #416] @ (80030d0 ) 8002f2e: 000b movs r3, r1 8002f30: 00db lsls r3, r3, #3 8002f32: 1a5b subs r3, r3, r1 8002f34: 189b adds r3, r3, r2 8002f36: 009b lsls r3, r3, #2 8002f38: 581b ldr r3, [r3, r0] 8002f3a: 1ae2 subs r2, r4, r3 8002f3c: 6d7b ldr r3, [r7, #84] @ 0x54 8002f3e: 4353 muls r3, r2 8002f40: 2164 movs r1, #100 @ 0x64 8002f42: 0018 movs r0, r3 8002f44: f7fd f96a bl 800021c <__divsi3> 8002f48: 0003 movs r3, r0 8002f4a: 001c movs r4, r3 8002f4c: 2116 movs r1, #22 8002f4e: 2228 movs r2, #40 @ 0x28 8002f50: 188b adds r3, r1, r2 8002f52: 19db adds r3, r3, r7 8002f54: 8819 ldrh r1, [r3, #0] 8002f56: 233a movs r3, #58 @ 0x3a 8002f58: 189b adds r3, r3, r2 8002f5a: 19db adds r3, r3, r7 8002f5c: 881a ldrh r2, [r3, #0] 8002f5e: 485c ldr r0, [pc, #368] @ (80030d0 ) 8002f60: 000b movs r3, r1 8002f62: 00db lsls r3, r3, #3 8002f64: 1a5b subs r3, r3, r1 8002f66: 189b adds r3, r3, r2 8002f68: 009b lsls r3, r3, #2 8002f6a: 581b ldr r3, [r3, r0] 8002f6c: 18e3 adds r3, r4, r3 8002f6e: 63bb str r3, [r7, #56] @ 0x38 vy = ((((int32_t)TempTable[table_row + 1][table_col + 1] - (int32_t)TempTable[table_row + 1][table_col]) * (int32_t)dta) / (int32_t)TAEQUIDISTANCE) + (int32_t)TempTable[table_row + 1][table_col]; 8002f70: 2116 movs r1, #22 8002f72: 2228 movs r2, #40 @ 0x28 8002f74: 188b adds r3, r1, r2 8002f76: 19db adds r3, r3, r7 8002f78: 881b ldrh r3, [r3, #0] 8002f7a: 1c58 adds r0, r3, #1 8002f7c: 233a movs r3, #58 @ 0x3a 8002f7e: 189b adds r3, r3, r2 8002f80: 19db adds r3, r3, r7 8002f82: 881b ldrh r3, [r3, #0] 8002f84: 1c5a adds r2, r3, #1 8002f86: 4952 ldr r1, [pc, #328] @ (80030d0 ) 8002f88: 0003 movs r3, r0 8002f8a: 00db lsls r3, r3, #3 8002f8c: 1a1b subs r3, r3, r0 8002f8e: 189b adds r3, r3, r2 8002f90: 009b lsls r3, r3, #2 8002f92: 585b ldr r3, [r3, r1] 8002f94: 001c movs r4, r3 8002f96: 2116 movs r1, #22 8002f98: 2028 movs r0, #40 @ 0x28 8002f9a: 180b adds r3, r1, r0 8002f9c: 19db adds r3, r3, r7 8002f9e: 881b ldrh r3, [r3, #0] 8002fa0: 1c59 adds r1, r3, #1 8002fa2: 233a movs r3, #58 @ 0x3a 8002fa4: 181b adds r3, r3, r0 8002fa6: 19db adds r3, r3, r7 8002fa8: 881a ldrh r2, [r3, #0] 8002faa: 4849 ldr r0, [pc, #292] @ (80030d0 ) 8002fac: 000b movs r3, r1 8002fae: 00db lsls r3, r3, #3 8002fb0: 1a5b subs r3, r3, r1 8002fb2: 189b adds r3, r3, r2 8002fb4: 009b lsls r3, r3, #2 8002fb6: 581b ldr r3, [r3, r0] 8002fb8: 1ae2 subs r2, r4, r3 8002fba: 6d7b ldr r3, [r7, #84] @ 0x54 8002fbc: 4353 muls r3, r2 8002fbe: 2164 movs r1, #100 @ 0x64 8002fc0: 0018 movs r0, r3 8002fc2: f7fd f92b bl 800021c <__divsi3> 8002fc6: 0003 movs r3, r0 8002fc8: 001c movs r4, r3 8002fca: 2116 movs r1, #22 8002fcc: 2028 movs r0, #40 @ 0x28 8002fce: 180b adds r3, r1, r0 8002fd0: 19db adds r3, r3, r7 8002fd2: 881b ldrh r3, [r3, #0] 8002fd4: 1c59 adds r1, r3, #1 8002fd6: 223a movs r2, #58 @ 0x3a 8002fd8: 1813 adds r3, r2, r0 8002fda: 19db adds r3, r3, r7 8002fdc: 881a ldrh r2, [r3, #0] 8002fde: 483c ldr r0, [pc, #240] @ (80030d0 ) 8002fe0: 000b movs r3, r1 8002fe2: 00db lsls r3, r3, #3 8002fe4: 1a5b subs r3, r3, r1 8002fe6: 189b adds r3, r3, r2 8002fe8: 009b lsls r3, r3, #2 8002fea: 581b ldr r3, [r3, r0] 8002fec: 18e3 adds r3, r4, r3 8002fee: 637b str r3, [r7, #52] @ 0x34 temp_pix[i] = (uint32_t)((vy - vx) * ((int32_t)(vij_pixc[i] + TABLEOFFSET) - (int32_t)YADValues[table_row]) / ydist + (int32_t)vx); 8002ff0: 6b7a ldr r2, [r7, #52] @ 0x34 8002ff2: 6bbb ldr r3, [r7, #56] @ 0x38 8002ff4: 1ad0 subs r0, r2, r3 8002ff6: 4a35 ldr r2, [pc, #212] @ (80030cc ) 8002ff8: 6dfb ldr r3, [r7, #92] @ 0x5c 8002ffa: 009b lsls r3, r3, #2 8002ffc: 589b ldr r3, [r3, r2] 8002ffe: 0019 movs r1, r3 8003000: 2316 movs r3, #22 8003002: 2228 movs r2, #40 @ 0x28 8003004: 189b adds r3, r3, r2 8003006: 19db adds r3, r3, r7 8003008: 881b ldrh r3, [r3, #0] 800300a: 4a32 ldr r2, [pc, #200] @ (80030d4 ) 800300c: 009b lsls r3, r3, #2 800300e: 589b ldr r3, [r3, r2] 8003010: 1acb subs r3, r1, r3 8003012: 2280 movs r2, #128 @ 0x80 8003014: 00d2 lsls r2, r2, #3 8003016: 4694 mov ip, r2 8003018: 4463 add r3, ip 800301a: 4343 muls r3, r0 800301c: 6d39 ldr r1, [r7, #80] @ 0x50 800301e: 0018 movs r0, r3 8003020: f7fd f8fc bl 800021c <__divsi3> 8003024: 0003 movs r3, r0 8003026: 001a movs r2, r3 8003028: 6bbb ldr r3, [r7, #56] @ 0x38 800302a: 18d3 adds r3, r2, r3 800302c: 0019 movs r1, r3 800302e: 4a2a ldr r2, [pc, #168] @ (80030d8 ) 8003030: 6dfb ldr r3, [r7, #92] @ 0x5c 8003032: 009b lsls r3, r3, #2 8003034: 5099 str r1, [r3, r2] // --- GLOBAL OFFSET --- temp_pix[i] = temp_pix[i] + globaloff; 8003036: 4a28 ldr r2, [pc, #160] @ (80030d8 ) 8003038: 6dfb ldr r3, [r7, #92] @ 0x5c 800303a: 009b lsls r3, r3, #2 800303c: 589a ldr r2, [r3, r2] 800303e: 4b27 ldr r3, [pc, #156] @ (80030dc ) 8003040: 781b ldrb r3, [r3, #0] 8003042: b25b sxtb r3, r3 8003044: 18d1 adds r1, r2, r3 8003046: 4a24 ldr r2, [pc, #144] @ (80030d8 ) 8003048: 6dfb ldr r3, [r7, #92] @ 0x5c 800304a: 009b lsls r3, r3, #2 800304c: 5099 str r1, [r3, r2] dataArray[i] = temp_pix[i] - 2731; 800304e: 4a22 ldr r2, [pc, #136] @ (80030d8 ) 8003050: 6dfb ldr r3, [r7, #92] @ 0x5c 8003052: 009b lsls r3, r3, #2 8003054: 5899 ldr r1, [r3, r2] 8003056: 6dfb ldr r3, [r7, #92] @ 0x5c 8003058: 009a lsls r2, r3, #2 800305a: 6afb ldr r3, [r7, #44] @ 0x2c 800305c: 189a adds r2, r3, r2 800305e: 4b20 ldr r3, [pc, #128] @ (80030e0 ) 8003060: 18cb adds r3, r1, r3 8003062: 6013 str r3, [r2, #0] for(int i=0; i<32; i++) { 8003064: 6dfb ldr r3, [r7, #92] @ 0x5c 8003066: 3301 adds r3, #1 8003068: 65fb str r3, [r7, #92] @ 0x5c 800306a: 6dfb ldr r3, [r7, #92] @ 0x5c 800306c: 2b1f cmp r3, #31 800306e: dc00 bgt.n 8003072 8003070: e66c b.n 8002d4c } } 8003072: 46c0 nop @ (mov r8, r8) 8003074: 46c0 nop @ (mov r8, r8) 8003076: 46bd mov sp, r7 8003078: b01b add sp, #108 @ 0x6c 800307a: bdf0 pop {r4, r5, r6, r7, pc} 800307c: 200003a4 .word 0x200003a4 8003080: 20000084 .word 0x20000084 8003084: 200003a0 .word 0x200003a0 8003088: 20000424 .word 0x20000424 800308c: 200000c4 .word 0x200000c4 8003090: 200004b0 .word 0x200004b0 8003094: 200003e4 .word 0x200003e4 8003098: 20000530 .word 0x20000530 800309c: 20000104 .word 0x20000104 80030a0: 20000428 .word 0x20000428 80030a4: 20000144 .word 0x20000144 80030a8: 2000039e .word 0x2000039e 80030ac: 20000038 .word 0x20000038 80030b0: 2000003a .word 0x2000003a 80030b4: 2000003e .word 0x2000003e 80030b8: 2000003c .word 0x2000003c 80030bc: 2000042c .word 0x2000042c 80030c0: 200005b0 .word 0x200005b0 80030c4: 05f5e100 .word 0x05f5e100 80030c8: 20000430 .word 0x20000430 80030cc: 20000630 .word 0x20000630 80030d0: 08006310 .word 0x08006310 80030d4: 080076dc .word 0x080076dc 80030d8: 200006b0 .word 0x200006b0 80030dc: 20000037 .word 0x20000037 80030e0: fffff555 .word 0xfffff555 080030e4 : * description * * @param address: address of register * @param byte: byte to be written to register */ void HTPA_WriteRegister(uint8_t address, uint8_t byte){ 80030e4: b580 push {r7, lr} 80030e6: b086 sub sp, #24 80030e8: af04 add r7, sp, #16 80030ea: 0002 movs r2, r0 80030ec: 1dfb adds r3, r7, #7 80030ee: 701a strb r2, [r3, #0] 80030f0: 1dbb adds r3, r7, #6 80030f2: 1c0a adds r2, r1, #0 80030f4: 701a strb r2, [r3, #0] HAL_I2C_Mem_Write(htpa_hi2c, (HTPA_SENSOR_ADDRESS << 1), address, I2C_MEMADD_SIZE_8BIT, &byte, 1, HTPA_I2C_MAX_DELAY); 80030f6: 4b09 ldr r3, [pc, #36] @ (800311c ) 80030f8: 6818 ldr r0, [r3, #0] 80030fa: 1dfb adds r3, r7, #7 80030fc: 781b ldrb r3, [r3, #0] 80030fe: b29a uxth r2, r3 8003100: 23ff movs r3, #255 @ 0xff 8003102: 9302 str r3, [sp, #8] 8003104: 2301 movs r3, #1 8003106: 9301 str r3, [sp, #4] 8003108: 1dbb adds r3, r7, #6 800310a: 9300 str r3, [sp, #0] 800310c: 2301 movs r3, #1 800310e: 2134 movs r1, #52 @ 0x34 8003110: f001 fcee bl 8004af0 } 8003114: 46c0 nop @ (mov r8, r8) 8003116: 46bd mov sp, r7 8003118: b002 add sp, #8 800311a: bd80 pop {r7, pc} 800311c: 20000028 .word 0x20000028 08003120 : * * @param address: register address * @param pData: pointer to output data array * @param length: length of data to be read */ void HTPA_ReadRegister(uint8_t address, uint8_t *pData, uint16_t length){ 8003120: b580 push {r7, lr} 8003122: b086 sub sp, #24 8003124: af04 add r7, sp, #16 8003126: 6039 str r1, [r7, #0] 8003128: 0011 movs r1, r2 800312a: 1dfb adds r3, r7, #7 800312c: 1c02 adds r2, r0, #0 800312e: 701a strb r2, [r3, #0] 8003130: 1d3b adds r3, r7, #4 8003132: 1c0a adds r2, r1, #0 8003134: 801a strh r2, [r3, #0] HAL_I2C_Mem_Read(htpa_hi2c, (HTPA_SENSOR_ADDRESS << 1), address, I2C_MEMADD_SIZE_8BIT, pData, length, HTPA_I2C_MAX_DELAY); 8003136: 4b0a ldr r3, [pc, #40] @ (8003160 ) 8003138: 6818 ldr r0, [r3, #0] 800313a: 1dfb adds r3, r7, #7 800313c: 781b ldrb r3, [r3, #0] 800313e: b29a uxth r2, r3 8003140: 23ff movs r3, #255 @ 0xff 8003142: 9302 str r3, [sp, #8] 8003144: 1d3b adds r3, r7, #4 8003146: 881b ldrh r3, [r3, #0] 8003148: 9301 str r3, [sp, #4] 800314a: 683b ldr r3, [r7, #0] 800314c: 9300 str r3, [sp, #0] 800314e: 2301 movs r3, #1 8003150: 2134 movs r1, #52 @ 0x34 8003152: f001 fdfb bl 8004d4c } 8003156: 46c0 nop @ (mov r8, r8) 8003158: 46bd mov sp, r7 800315a: b002 add sp, #8 800315c: bd80 pop {r7, pc} 800315e: 46c0 nop @ (mov r8, r8) 8003160: 20000028 .word 0x20000028 08003164 : * * Reads the sensors status register and stores the information in * the htpa_statusReg variable * */ void HTPA_GetStatus(void){ 8003164: b580 push {r7, lr} 8003166: b082 sub sp, #8 8003168: af00 add r7, sp, #0 uint8_t i2c_readData = 0; 800316a: 1dfb adds r3, r7, #7 800316c: 2200 movs r2, #0 800316e: 701a strb r2, [r3, #0] HTPA_ReadRegister(HTPA_SENSOR_STATUS, &i2c_readData, 1); 8003170: 1dfb adds r3, r7, #7 8003172: 2201 movs r2, #1 8003174: 0019 movs r1, r3 8003176: 2002 movs r0, #2 8003178: f7ff ffd2 bl 8003120 htpa_statusReg.block = (i2c_readData >> 4) & 0x03; 800317c: 1dfb adds r3, r7, #7 800317e: 781b ldrb r3, [r3, #0] 8003180: 091b lsrs r3, r3, #4 8003182: b2db uxtb r3, r3 8003184: 2203 movs r2, #3 8003186: 4013 ands r3, r2 8003188: b2da uxtb r2, r3 800318a: 4b14 ldr r3, [pc, #80] @ (80031dc ) 800318c: 701a strb r2, [r3, #0] htpa_statusReg.vdd_meas = (i2c_readData >> 2) & 0x01; 800318e: 1dfb adds r3, r7, #7 8003190: 781b ldrb r3, [r3, #0] 8003192: 089b lsrs r3, r3, #2 8003194: b2db uxtb r3, r3 8003196: 001a movs r2, r3 8003198: 2301 movs r3, #1 800319a: 4013 ands r3, r2 800319c: 1e5a subs r2, r3, #1 800319e: 4193 sbcs r3, r2 80031a0: b2da uxtb r2, r3 80031a2: 4b0e ldr r3, [pc, #56] @ (80031dc ) 80031a4: 705a strb r2, [r3, #1] htpa_statusReg.blind = (i2c_readData >> 1) & 0x01; 80031a6: 1dfb adds r3, r7, #7 80031a8: 781b ldrb r3, [r3, #0] 80031aa: 085b lsrs r3, r3, #1 80031ac: b2db uxtb r3, r3 80031ae: 001a movs r2, r3 80031b0: 2301 movs r3, #1 80031b2: 4013 ands r3, r2 80031b4: 1e5a subs r2, r3, #1 80031b6: 4193 sbcs r3, r2 80031b8: b2da uxtb r2, r3 80031ba: 4b08 ldr r3, [pc, #32] @ (80031dc ) 80031bc: 709a strb r2, [r3, #2] htpa_statusReg.eoc = i2c_readData & 0x01; 80031be: 1dfb adds r3, r7, #7 80031c0: 781b ldrb r3, [r3, #0] 80031c2: 001a movs r2, r3 80031c4: 2301 movs r3, #1 80031c6: 4013 ands r3, r2 80031c8: 1e5a subs r2, r3, #1 80031ca: 4193 sbcs r3, r2 80031cc: b2da uxtb r2, r3 80031ce: 4b03 ldr r3, [pc, #12] @ (80031dc ) 80031d0: 70da strb r2, [r3, #3] } 80031d2: 46c0 nop @ (mov r8, r8) 80031d4: 46bd mov sp, r7 80031d6: b002 add sp, #8 80031d8: bd80 pop {r7, pc} 80031da: 46c0 nop @ (mov r8, r8) 80031dc: 20000194 .word 0x20000194 080031e0 : * * Reads the sensors status register and stores the information in * the htpa_statusReg variable * */ uint8_t HTPA_ReadEEPROM_byte(uint16_t address){ 80031e0: b590 push {r4, r7, lr} 80031e2: b089 sub sp, #36 @ 0x24 80031e4: af04 add r7, sp, #16 80031e6: 0002 movs r2, r0 80031e8: 1dbb adds r3, r7, #6 80031ea: 801a strh r2, [r3, #0] uint8_t data = 0; 80031ec: 210f movs r1, #15 80031ee: 187b adds r3, r7, r1 80031f0: 2200 movs r2, #0 80031f2: 701a strb r2, [r3, #0] HAL_I2C_Mem_Read(htpa_hi2c, (HTPA_EEPROM_ADDRESS << 1), address, I2C_MEMADD_SIZE_16BIT, &data, 1, HTPA_I2C_MAX_DELAY); 80031f4: 4b0a ldr r3, [pc, #40] @ (8003220 ) 80031f6: 6818 ldr r0, [r3, #0] 80031f8: 1dbb adds r3, r7, #6 80031fa: 881a ldrh r2, [r3, #0] 80031fc: 23ff movs r3, #255 @ 0xff 80031fe: 9302 str r3, [sp, #8] 8003200: 2301 movs r3, #1 8003202: 9301 str r3, [sp, #4] 8003204: 000c movs r4, r1 8003206: 187b adds r3, r7, r1 8003208: 9300 str r3, [sp, #0] 800320a: 2302 movs r3, #2 800320c: 21a0 movs r1, #160 @ 0xa0 800320e: f001 fd9d bl 8004d4c return data; 8003212: 193b adds r3, r7, r4 8003214: 781b ldrb r3, [r3, #0] } 8003216: 0018 movs r0, r3 8003218: 46bd mov sp, r7 800321a: b005 add sp, #20 800321c: bd90 pop {r4, r7, pc} 800321e: 46c0 nop @ (mov r8, r8) 8003220: 20000028 .word 0x20000028 08003224
: /** * @brief The application entry point. * @retval int */ int main(void) { 8003224: b580 push {r7, lr} 8003226: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); 8003228: f000 fdd2 bl 8003dd0 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); 800322c: f000 f86c bl 8003308 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); 8003230: f000 f936 bl 80034a0 MX_CAN_Init(); 8003234: f000 f8bc bl 80033b0 MX_I2C1_Init(); 8003238: f000 f8f2 bl 8003420 /* USER CODE BEGIN 2 */ HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); 800323c: 2390 movs r3, #144 @ 0x90 800323e: 05db lsls r3, r3, #23 8003240: 2201 movs r2, #1 8003242: 2108 movs r1, #8 8003244: 0018 movs r0, r3 8003246: f001 fb45 bl 80048d4 HTPA_Init(&hi2c1); 800324a: 4b29 ldr r3, [pc, #164] @ (80032f0 ) 800324c: 0018 movs r0, r3 800324e: f7ff f817 bl 8002280 TTS_Init(&hcan); 8003252: 4b28 ldr r3, [pc, #160] @ (80032f4 ) 8003254: 0018 movs r0, r3 8003256: f000 fa97 bl 8003788 HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); 800325a: 2390 movs r3, #144 @ 0x90 800325c: 05db lsls r3, r3, #23 800325e: 2200 movs r2, #0 8003260: 2108 movs r1, #8 8003262: 0018 movs r0, r3 8003264: f001 fb36 bl 80048d4 HAL_CAN_Start(&hcan); 8003268: 4b22 ldr r3, [pc, #136] @ (80032f4 ) 800326a: 0018 movs r0, r3 800326c: f000 ff36 bl 80040dc /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { //* systicks = HAL_GetTick(); 8003270: f000 fe08 bl 8003e84 8003274: 0002 movs r2, r0 8003276: 4b20 ldr r3, [pc, #128] @ (80032f8 ) 8003278: 601a str r2, [r3, #0] if((systicks % 100) <= 1){ 800327a: 4b1f ldr r3, [pc, #124] @ (80032f8 ) 800327c: 681b ldr r3, [r3, #0] 800327e: 2164 movs r1, #100 @ 0x64 8003280: 0018 movs r0, r3 8003282: f7fc ffc7 bl 8000214 <__aeabi_uidivmod> 8003286: 000b movs r3, r1 8003288: 2b01 cmp r3, #1 800328a: d81b bhi.n 80032c4 if(blinkCount >= 9) { 800328c: 4b1b ldr r3, [pc, #108] @ (80032fc ) 800328e: 781b ldrb r3, [r3, #0] 8003290: 2b08 cmp r3, #8 8003292: d90a bls.n 80032aa HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); 8003294: 2390 movs r3, #144 @ 0x90 8003296: 05db lsls r3, r3, #23 8003298: 2201 movs r2, #1 800329a: 2108 movs r1, #8 800329c: 0018 movs r0, r3 800329e: f001 fb19 bl 80048d4 blinkCount = 0; 80032a2: 4b16 ldr r3, [pc, #88] @ (80032fc ) 80032a4: 2200 movs r2, #0 80032a6: 701a strb r2, [r3, #0] 80032a8: e00c b.n 80032c4 } else { HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); 80032aa: 2390 movs r3, #144 @ 0x90 80032ac: 05db lsls r3, r3, #23 80032ae: 2200 movs r2, #0 80032b0: 2108 movs r1, #8 80032b2: 0018 movs r0, r3 80032b4: f001 fb0e bl 80048d4 blinkCount++; 80032b8: 4b10 ldr r3, [pc, #64] @ (80032fc ) 80032ba: 781b ldrb r3, [r3, #0] 80032bc: 3301 adds r3, #1 80032be: b2da uxtb r2, r3 80032c0: 4b0e ldr r3, [pc, #56] @ (80032fc ) 80032c2: 701a strb r2, [r3, #0] } } HTPA_ReadSensor(pixelTemps); 80032c4: 4b0e ldr r3, [pc, #56] @ (8003300 ) 80032c6: 0018 movs r0, r3 80032c8: f7ff fc04 bl 8002ad4 TTS_TireZones(pixelTemps,tireTemps); 80032cc: 4a0d ldr r2, [pc, #52] @ (8003304 ) 80032ce: 4b0c ldr r3, [pc, #48] @ (8003300 ) 80032d0: 0011 movs r1, r2 80032d2: 0018 movs r0, r3 80032d4: f000 fb0e bl 80038f4 TTS_SendCAN(tireTemps); // hier wird Funktion für CAN aufgerufen 80032d8: 4b0a ldr r3, [pc, #40] @ (8003304 ) 80032da: 0018 movs r0, r3 80032dc: f000 fa9a bl 8003814 HAL_GPIO_TogglePin(LED_GPIO_Port,LED_Pin); 80032e0: 2390 movs r3, #144 @ 0x90 80032e2: 05db lsls r3, r3, #23 80032e4: 2108 movs r1, #8 80032e6: 0018 movs r0, r3 80032e8: f001 fb11 bl 800490e systicks = HAL_GetTick(); 80032ec: e7c0 b.n 8003270 80032ee: 46c0 nop @ (mov r8, r8) 80032f0: 2000075c .word 0x2000075c 80032f4: 20000734 .word 0x20000734 80032f8: 20000844 .word 0x20000844 80032fc: 20000848 .word 0x20000848 8003300: 200007b0 .word 0x200007b0 8003304: 20000830 .word 0x20000830 08003308 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { 8003308: b590 push {r4, r7, lr} 800330a: b099 sub sp, #100 @ 0x64 800330c: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; 800330e: 242c movs r4, #44 @ 0x2c 8003310: 193b adds r3, r7, r4 8003312: 0018 movs r0, r3 8003314: 2334 movs r3, #52 @ 0x34 8003316: 001a movs r2, r3 8003318: 2100 movs r1, #0 800331a: f002 ffa1 bl 8006260 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 800331e: 231c movs r3, #28 8003320: 18fb adds r3, r7, r3 8003322: 0018 movs r0, r3 8003324: 2310 movs r3, #16 8003326: 001a movs r2, r3 8003328: 2100 movs r1, #0 800332a: f002 ff99 bl 8006260 RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; 800332e: 1d3b adds r3, r7, #4 8003330: 0018 movs r0, r3 8003332: 2318 movs r3, #24 8003334: 001a movs r2, r3 8003336: 2100 movs r1, #0 8003338: f002 ff92 bl 8006260 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; 800333c: 193b adds r3, r7, r4 800333e: 2201 movs r2, #1 8003340: 601a str r2, [r3, #0] RCC_OscInitStruct.HSEState = RCC_HSE_ON; 8003342: 193b adds r3, r7, r4 8003344: 2201 movs r2, #1 8003346: 605a str r2, [r3, #4] RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; 8003348: 193b adds r3, r7, r4 800334a: 2200 movs r2, #0 800334c: 625a str r2, [r3, #36] @ 0x24 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800334e: 193b adds r3, r7, r4 8003350: 0018 movs r0, r3 8003352: f002 f9c3 bl 80056dc 8003356: 1e03 subs r3, r0, #0 8003358: d001 beq.n 800335e { Error_Handler(); 800335a: f000 f8f7 bl 800354c } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK 800335e: 211c movs r1, #28 8003360: 187b adds r3, r7, r1 8003362: 2207 movs r2, #7 8003364: 601a str r2, [r3, #0] |RCC_CLOCKTYPE_PCLK1; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSE; 8003366: 187b adds r3, r7, r1 8003368: 2201 movs r2, #1 800336a: 605a str r2, [r3, #4] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; 800336c: 187b adds r3, r7, r1 800336e: 2200 movs r2, #0 8003370: 609a str r2, [r3, #8] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; 8003372: 187b adds r3, r7, r1 8003374: 2200 movs r2, #0 8003376: 60da str r2, [r3, #12] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK) 8003378: 187b adds r3, r7, r1 800337a: 2100 movs r1, #0 800337c: 0018 movs r0, r3 800337e: f002 fd33 bl 8005de8 8003382: 1e03 subs r3, r0, #0 8003384: d001 beq.n 800338a { Error_Handler(); 8003386: f000 f8e1 bl 800354c } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_I2C1; 800338a: 1d3b adds r3, r7, #4 800338c: 2220 movs r2, #32 800338e: 601a str r2, [r3, #0] PeriphClkInit.I2c1ClockSelection = RCC_I2C1CLKSOURCE_SYSCLK; 8003390: 1d3b adds r3, r7, #4 8003392: 2210 movs r2, #16 8003394: 60da str r2, [r3, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) 8003396: 1d3b adds r3, r7, #4 8003398: 0018 movs r0, r3 800339a: f002 fe73 bl 8006084 800339e: 1e03 subs r3, r0, #0 80033a0: d001 beq.n 80033a6 { Error_Handler(); 80033a2: f000 f8d3 bl 800354c } } 80033a6: 46c0 nop @ (mov r8, r8) 80033a8: 46bd mov sp, r7 80033aa: b019 add sp, #100 @ 0x64 80033ac: bd90 pop {r4, r7, pc} ... 080033b0 : * @brief CAN Initialization Function * @param None * @retval None */ static void MX_CAN_Init(void) { 80033b0: b580 push {r7, lr} 80033b2: af00 add r7, sp, #0 /* USER CODE END CAN_Init 0 */ /* USER CODE BEGIN CAN_Init 1 */ /* USER CODE END CAN_Init 1 */ hcan.Instance = CAN; 80033b4: 4b18 ldr r3, [pc, #96] @ (8003418 ) 80033b6: 4a19 ldr r2, [pc, #100] @ (800341c ) 80033b8: 601a str r2, [r3, #0] hcan.Init.Prescaler = 2; 80033ba: 4b17 ldr r3, [pc, #92] @ (8003418 ) 80033bc: 2202 movs r2, #2 80033be: 605a str r2, [r3, #4] hcan.Init.Mode = CAN_MODE_NORMAL; 80033c0: 4b15 ldr r3, [pc, #84] @ (8003418 ) 80033c2: 2200 movs r2, #0 80033c4: 609a str r2, [r3, #8] hcan.Init.SyncJumpWidth = CAN_SJW_1TQ; 80033c6: 4b14 ldr r3, [pc, #80] @ (8003418 ) 80033c8: 2200 movs r2, #0 80033ca: 60da str r2, [r3, #12] hcan.Init.TimeSeg1 = CAN_BS1_13TQ; 80033cc: 4b12 ldr r3, [pc, #72] @ (8003418 ) 80033ce: 22c0 movs r2, #192 @ 0xc0 80033d0: 0312 lsls r2, r2, #12 80033d2: 611a str r2, [r3, #16] hcan.Init.TimeSeg2 = CAN_BS2_2TQ; 80033d4: 4b10 ldr r3, [pc, #64] @ (8003418 ) 80033d6: 2280 movs r2, #128 @ 0x80 80033d8: 0352 lsls r2, r2, #13 80033da: 615a str r2, [r3, #20] hcan.Init.TimeTriggeredMode = DISABLE; 80033dc: 4b0e ldr r3, [pc, #56] @ (8003418 ) 80033de: 2200 movs r2, #0 80033e0: 761a strb r2, [r3, #24] hcan.Init.AutoBusOff = DISABLE; 80033e2: 4b0d ldr r3, [pc, #52] @ (8003418 ) 80033e4: 2200 movs r2, #0 80033e6: 765a strb r2, [r3, #25] hcan.Init.AutoWakeUp = DISABLE; 80033e8: 4b0b ldr r3, [pc, #44] @ (8003418 ) 80033ea: 2200 movs r2, #0 80033ec: 769a strb r2, [r3, #26] hcan.Init.AutoRetransmission = DISABLE; 80033ee: 4b0a ldr r3, [pc, #40] @ (8003418 ) 80033f0: 2200 movs r2, #0 80033f2: 76da strb r2, [r3, #27] hcan.Init.ReceiveFifoLocked = DISABLE; 80033f4: 4b08 ldr r3, [pc, #32] @ (8003418 ) 80033f6: 2200 movs r2, #0 80033f8: 771a strb r2, [r3, #28] hcan.Init.TransmitFifoPriority = DISABLE; 80033fa: 4b07 ldr r3, [pc, #28] @ (8003418 ) 80033fc: 2200 movs r2, #0 80033fe: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan) != HAL_OK) 8003400: 4b05 ldr r3, [pc, #20] @ (8003418 ) 8003402: 0018 movs r0, r3 8003404: f000 fd6c bl 8003ee0 8003408: 1e03 subs r3, r0, #0 800340a: d001 beq.n 8003410 { Error_Handler(); 800340c: f000 f89e bl 800354c } /* USER CODE BEGIN CAN_Init 2 */ /* USER CODE END CAN_Init 2 */ } 8003410: 46c0 nop @ (mov r8, r8) 8003412: 46bd mov sp, r7 8003414: bd80 pop {r7, pc} 8003416: 46c0 nop @ (mov r8, r8) 8003418: 20000734 .word 0x20000734 800341c: 40006400 .word 0x40006400 08003420 : * @brief I2C1 Initialization Function * @param None * @retval None */ static void MX_I2C1_Init(void) { 8003420: b580 push {r7, lr} 8003422: af00 add r7, sp, #0 /* USER CODE END I2C1_Init 0 */ /* USER CODE BEGIN I2C1_Init 1 */ /* USER CODE END I2C1_Init 1 */ hi2c1.Instance = I2C1; 8003424: 4b1b ldr r3, [pc, #108] @ (8003494 ) 8003426: 4a1c ldr r2, [pc, #112] @ (8003498 ) 8003428: 601a str r2, [r3, #0] hi2c1.Init.Timing = 0x00300617; 800342a: 4b1a ldr r3, [pc, #104] @ (8003494 ) 800342c: 4a1b ldr r2, [pc, #108] @ (800349c ) 800342e: 605a str r2, [r3, #4] hi2c1.Init.OwnAddress1 = 0; 8003430: 4b18 ldr r3, [pc, #96] @ (8003494 ) 8003432: 2200 movs r2, #0 8003434: 609a str r2, [r3, #8] hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; 8003436: 4b17 ldr r3, [pc, #92] @ (8003494 ) 8003438: 2201 movs r2, #1 800343a: 60da str r2, [r3, #12] hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; 800343c: 4b15 ldr r3, [pc, #84] @ (8003494 ) 800343e: 2200 movs r2, #0 8003440: 611a str r2, [r3, #16] hi2c1.Init.OwnAddress2 = 0; 8003442: 4b14 ldr r3, [pc, #80] @ (8003494 ) 8003444: 2200 movs r2, #0 8003446: 615a str r2, [r3, #20] hi2c1.Init.OwnAddress2Masks = I2C_OA2_NOMASK; 8003448: 4b12 ldr r3, [pc, #72] @ (8003494 ) 800344a: 2200 movs r2, #0 800344c: 619a str r2, [r3, #24] hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; 800344e: 4b11 ldr r3, [pc, #68] @ (8003494 ) 8003450: 2200 movs r2, #0 8003452: 61da str r2, [r3, #28] hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; 8003454: 4b0f ldr r3, [pc, #60] @ (8003494 ) 8003456: 2200 movs r2, #0 8003458: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c1) != HAL_OK) 800345a: 4b0e ldr r3, [pc, #56] @ (8003494 ) 800345c: 0018 movs r0, r3 800345e: f001 fa71 bl 8004944 8003462: 1e03 subs r3, r0, #0 8003464: d001 beq.n 800346a { Error_Handler(); 8003466: f000 f871 bl 800354c } /** Configure Analogue filter */ if (HAL_I2CEx_ConfigAnalogFilter(&hi2c1, I2C_ANALOGFILTER_ENABLE) != HAL_OK) 800346a: 4b0a ldr r3, [pc, #40] @ (8003494 ) 800346c: 2100 movs r1, #0 800346e: 0018 movs r0, r3 8003470: f002 f89c bl 80055ac 8003474: 1e03 subs r3, r0, #0 8003476: d001 beq.n 800347c { Error_Handler(); 8003478: f000 f868 bl 800354c } /** Configure Digital filter */ if (HAL_I2CEx_ConfigDigitalFilter(&hi2c1, 0) != HAL_OK) 800347c: 4b05 ldr r3, [pc, #20] @ (8003494 ) 800347e: 2100 movs r1, #0 8003480: 0018 movs r0, r3 8003482: f002 f8df bl 8005644 8003486: 1e03 subs r3, r0, #0 8003488: d001 beq.n 800348e { Error_Handler(); 800348a: f000 f85f bl 800354c } /* USER CODE BEGIN I2C1_Init 2 */ /* USER CODE END I2C1_Init 2 */ } 800348e: 46c0 nop @ (mov r8, r8) 8003490: 46bd mov sp, r7 8003492: bd80 pop {r7, pc} 8003494: 2000075c .word 0x2000075c 8003498: 40005400 .word 0x40005400 800349c: 00300617 .word 0x00300617 080034a0 : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { 80034a0: b590 push {r4, r7, lr} 80034a2: b089 sub sp, #36 @ 0x24 80034a4: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; 80034a6: 240c movs r4, #12 80034a8: 193b adds r3, r7, r4 80034aa: 0018 movs r0, r3 80034ac: 2314 movs r3, #20 80034ae: 001a movs r2, r3 80034b0: 2100 movs r1, #0 80034b2: f002 fed5 bl 8006260 /* USER CODE BEGIN MX_GPIO_Init_1 */ /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOF_CLK_ENABLE(); 80034b6: 4b24 ldr r3, [pc, #144] @ (8003548 ) 80034b8: 695a ldr r2, [r3, #20] 80034ba: 4b23 ldr r3, [pc, #140] @ (8003548 ) 80034bc: 2180 movs r1, #128 @ 0x80 80034be: 03c9 lsls r1, r1, #15 80034c0: 430a orrs r2, r1 80034c2: 615a str r2, [r3, #20] 80034c4: 4b20 ldr r3, [pc, #128] @ (8003548 ) 80034c6: 695a ldr r2, [r3, #20] 80034c8: 2380 movs r3, #128 @ 0x80 80034ca: 03db lsls r3, r3, #15 80034cc: 4013 ands r3, r2 80034ce: 60bb str r3, [r7, #8] 80034d0: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOA_CLK_ENABLE(); 80034d2: 4b1d ldr r3, [pc, #116] @ (8003548 ) 80034d4: 695a ldr r2, [r3, #20] 80034d6: 4b1c ldr r3, [pc, #112] @ (8003548 ) 80034d8: 2180 movs r1, #128 @ 0x80 80034da: 0289 lsls r1, r1, #10 80034dc: 430a orrs r2, r1 80034de: 615a str r2, [r3, #20] 80034e0: 4b19 ldr r3, [pc, #100] @ (8003548 ) 80034e2: 695a ldr r2, [r3, #20] 80034e4: 2380 movs r3, #128 @ 0x80 80034e6: 029b lsls r3, r3, #10 80034e8: 4013 ands r3, r2 80034ea: 607b str r3, [r7, #4] 80034ec: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOB_CLK_ENABLE(); 80034ee: 4b16 ldr r3, [pc, #88] @ (8003548 ) 80034f0: 695a ldr r2, [r3, #20] 80034f2: 4b15 ldr r3, [pc, #84] @ (8003548 ) 80034f4: 2180 movs r1, #128 @ 0x80 80034f6: 02c9 lsls r1, r1, #11 80034f8: 430a orrs r2, r1 80034fa: 615a str r2, [r3, #20] 80034fc: 4b12 ldr r3, [pc, #72] @ (8003548 ) 80034fe: 695a ldr r2, [r3, #20] 8003500: 2380 movs r3, #128 @ 0x80 8003502: 02db lsls r3, r3, #11 8003504: 4013 ands r3, r2 8003506: 603b str r3, [r7, #0] 8003508: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); 800350a: 2390 movs r3, #144 @ 0x90 800350c: 05db lsls r3, r3, #23 800350e: 2200 movs r2, #0 8003510: 2108 movs r1, #8 8003512: 0018 movs r0, r3 8003514: f001 f9de bl 80048d4 /*Configure GPIO pin : LED_Pin */ GPIO_InitStruct.Pin = LED_Pin; 8003518: 0021 movs r1, r4 800351a: 187b adds r3, r7, r1 800351c: 2208 movs r2, #8 800351e: 601a str r2, [r3, #0] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 8003520: 187b adds r3, r7, r1 8003522: 2201 movs r2, #1 8003524: 605a str r2, [r3, #4] GPIO_InitStruct.Pull = GPIO_NOPULL; 8003526: 187b adds r3, r7, r1 8003528: 2200 movs r2, #0 800352a: 609a str r2, [r3, #8] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800352c: 187b adds r3, r7, r1 800352e: 2200 movs r2, #0 8003530: 60da str r2, [r3, #12] HAL_GPIO_Init(LED_GPIO_Port, &GPIO_InitStruct); 8003532: 187a adds r2, r7, r1 8003534: 2390 movs r3, #144 @ 0x90 8003536: 05db lsls r3, r3, #23 8003538: 0011 movs r1, r2 800353a: 0018 movs r0, r3 800353c: f000 ff9a bl 8004474 /* USER CODE BEGIN MX_GPIO_Init_2 */ /* USER CODE END MX_GPIO_Init_2 */ } 8003540: 46c0 nop @ (mov r8, r8) 8003542: 46bd mov sp, r7 8003544: b009 add sp, #36 @ 0x24 8003546: bd90 pop {r4, r7, pc} 8003548: 40021000 .word 0x40021000 0800354c : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { 800354c: b580 push {r7, lr} 800354e: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); 8003550: b672 cpsid i } 8003552: 46c0 nop @ (mov r8, r8) /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) { HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); 8003554: 2390 movs r3, #144 @ 0x90 8003556: 05db lsls r3, r3, #23 8003558: 2201 movs r2, #1 800355a: 2108 movs r1, #8 800355c: 0018 movs r0, r3 800355e: f001 f9b9 bl 80048d4 HAL_Delay(100); 8003562: 2064 movs r0, #100 @ 0x64 8003564: f000 fc98 bl 8003e98 HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); 8003568: 2390 movs r3, #144 @ 0x90 800356a: 05db lsls r3, r3, #23 800356c: 2200 movs r2, #0 800356e: 2108 movs r1, #8 8003570: 0018 movs r0, r3 8003572: f001 f9af bl 80048d4 HAL_Delay(100); 8003576: 2064 movs r0, #100 @ 0x64 8003578: f000 fc8e bl 8003e98 HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); 800357c: 46c0 nop @ (mov r8, r8) 800357e: e7e9 b.n 8003554 08003580 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { 8003580: b580 push {r7, lr} 8003582: b082 sub sp, #8 8003584: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); 8003586: 4b0f ldr r3, [pc, #60] @ (80035c4 ) 8003588: 699a ldr r2, [r3, #24] 800358a: 4b0e ldr r3, [pc, #56] @ (80035c4 ) 800358c: 2101 movs r1, #1 800358e: 430a orrs r2, r1 8003590: 619a str r2, [r3, #24] 8003592: 4b0c ldr r3, [pc, #48] @ (80035c4 ) 8003594: 699b ldr r3, [r3, #24] 8003596: 2201 movs r2, #1 8003598: 4013 ands r3, r2 800359a: 607b str r3, [r7, #4] 800359c: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); 800359e: 4b09 ldr r3, [pc, #36] @ (80035c4 ) 80035a0: 69da ldr r2, [r3, #28] 80035a2: 4b08 ldr r3, [pc, #32] @ (80035c4 ) 80035a4: 2180 movs r1, #128 @ 0x80 80035a6: 0549 lsls r1, r1, #21 80035a8: 430a orrs r2, r1 80035aa: 61da str r2, [r3, #28] 80035ac: 4b05 ldr r3, [pc, #20] @ (80035c4 ) 80035ae: 69da ldr r2, [r3, #28] 80035b0: 2380 movs r3, #128 @ 0x80 80035b2: 055b lsls r3, r3, #21 80035b4: 4013 ands r3, r2 80035b6: 603b str r3, [r7, #0] 80035b8: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } 80035ba: 46c0 nop @ (mov r8, r8) 80035bc: 46bd mov sp, r7 80035be: b002 add sp, #8 80035c0: bd80 pop {r7, pc} 80035c2: 46c0 nop @ (mov r8, r8) 80035c4: 40021000 .word 0x40021000 080035c8 : * This function configures the hardware resources used in this example * @param hcan: CAN handle pointer * @retval None */ void HAL_CAN_MspInit(CAN_HandleTypeDef* hcan) { 80035c8: b590 push {r4, r7, lr} 80035ca: b08b sub sp, #44 @ 0x2c 80035cc: af00 add r7, sp, #0 80035ce: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 80035d0: 2414 movs r4, #20 80035d2: 193b adds r3, r7, r4 80035d4: 0018 movs r0, r3 80035d6: 2314 movs r3, #20 80035d8: 001a movs r2, r3 80035da: 2100 movs r1, #0 80035dc: f002 fe40 bl 8006260 if(hcan->Instance==CAN) 80035e0: 687b ldr r3, [r7, #4] 80035e2: 681b ldr r3, [r3, #0] 80035e4: 4a1d ldr r2, [pc, #116] @ (800365c ) 80035e6: 4293 cmp r3, r2 80035e8: d133 bne.n 8003652 { /* USER CODE BEGIN CAN_MspInit 0 */ /* USER CODE END CAN_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_CAN1_CLK_ENABLE(); 80035ea: 4b1d ldr r3, [pc, #116] @ (8003660 ) 80035ec: 69da ldr r2, [r3, #28] 80035ee: 4b1c ldr r3, [pc, #112] @ (8003660 ) 80035f0: 2180 movs r1, #128 @ 0x80 80035f2: 0489 lsls r1, r1, #18 80035f4: 430a orrs r2, r1 80035f6: 61da str r2, [r3, #28] 80035f8: 4b19 ldr r3, [pc, #100] @ (8003660 ) 80035fa: 69da ldr r2, [r3, #28] 80035fc: 2380 movs r3, #128 @ 0x80 80035fe: 049b lsls r3, r3, #18 8003600: 4013 ands r3, r2 8003602: 613b str r3, [r7, #16] 8003604: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); 8003606: 4b16 ldr r3, [pc, #88] @ (8003660 ) 8003608: 695a ldr r2, [r3, #20] 800360a: 4b15 ldr r3, [pc, #84] @ (8003660 ) 800360c: 2180 movs r1, #128 @ 0x80 800360e: 0289 lsls r1, r1, #10 8003610: 430a orrs r2, r1 8003612: 615a str r2, [r3, #20] 8003614: 4b12 ldr r3, [pc, #72] @ (8003660 ) 8003616: 695a ldr r2, [r3, #20] 8003618: 2380 movs r3, #128 @ 0x80 800361a: 029b lsls r3, r3, #10 800361c: 4013 ands r3, r2 800361e: 60fb str r3, [r7, #12] 8003620: 68fb ldr r3, [r7, #12] /**CAN GPIO Configuration PA11 ------> CAN_RX PA12 ------> CAN_TX */ GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12; 8003622: 193b adds r3, r7, r4 8003624: 22c0 movs r2, #192 @ 0xc0 8003626: 0152 lsls r2, r2, #5 8003628: 601a str r2, [r3, #0] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 800362a: 0021 movs r1, r4 800362c: 187b adds r3, r7, r1 800362e: 2202 movs r2, #2 8003630: 605a str r2, [r3, #4] GPIO_InitStruct.Pull = GPIO_NOPULL; 8003632: 187b adds r3, r7, r1 8003634: 2200 movs r2, #0 8003636: 609a str r2, [r3, #8] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8003638: 187b adds r3, r7, r1 800363a: 2203 movs r2, #3 800363c: 60da str r2, [r3, #12] GPIO_InitStruct.Alternate = GPIO_AF4_CAN; 800363e: 187b adds r3, r7, r1 8003640: 2204 movs r2, #4 8003642: 611a str r2, [r3, #16] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 8003644: 187a adds r2, r7, r1 8003646: 2390 movs r3, #144 @ 0x90 8003648: 05db lsls r3, r3, #23 800364a: 0011 movs r1, r2 800364c: 0018 movs r0, r3 800364e: f000 ff11 bl 8004474 /* USER CODE END CAN_MspInit 1 */ } } 8003652: 46c0 nop @ (mov r8, r8) 8003654: 46bd mov sp, r7 8003656: b00b add sp, #44 @ 0x2c 8003658: bd90 pop {r4, r7, pc} 800365a: 46c0 nop @ (mov r8, r8) 800365c: 40006400 .word 0x40006400 8003660: 40021000 .word 0x40021000 08003664 : * This function configures the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) { 8003664: b590 push {r4, r7, lr} 8003666: b08b sub sp, #44 @ 0x2c 8003668: af00 add r7, sp, #0 800366a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 800366c: 2414 movs r4, #20 800366e: 193b adds r3, r7, r4 8003670: 0018 movs r0, r3 8003672: 2314 movs r3, #20 8003674: 001a movs r2, r3 8003676: 2100 movs r1, #0 8003678: f002 fdf2 bl 8006260 if(hi2c->Instance==I2C1) 800367c: 687b ldr r3, [r7, #4] 800367e: 681b ldr r3, [r3, #0] 8003680: 4a1c ldr r2, [pc, #112] @ (80036f4 ) 8003682: 4293 cmp r3, r2 8003684: d131 bne.n 80036ea { /* USER CODE BEGIN I2C1_MspInit 0 */ /* USER CODE END I2C1_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); 8003686: 4b1c ldr r3, [pc, #112] @ (80036f8 ) 8003688: 695a ldr r2, [r3, #20] 800368a: 4b1b ldr r3, [pc, #108] @ (80036f8 ) 800368c: 2180 movs r1, #128 @ 0x80 800368e: 02c9 lsls r1, r1, #11 8003690: 430a orrs r2, r1 8003692: 615a str r2, [r3, #20] 8003694: 4b18 ldr r3, [pc, #96] @ (80036f8 ) 8003696: 695a ldr r2, [r3, #20] 8003698: 2380 movs r3, #128 @ 0x80 800369a: 02db lsls r3, r3, #11 800369c: 4013 ands r3, r2 800369e: 613b str r3, [r7, #16] 80036a0: 693b ldr r3, [r7, #16] /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; 80036a2: 0021 movs r1, r4 80036a4: 187b adds r3, r7, r1 80036a6: 22c0 movs r2, #192 @ 0xc0 80036a8: 601a str r2, [r3, #0] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; 80036aa: 187b adds r3, r7, r1 80036ac: 2212 movs r2, #18 80036ae: 605a str r2, [r3, #4] GPIO_InitStruct.Pull = GPIO_NOPULL; 80036b0: 187b adds r3, r7, r1 80036b2: 2200 movs r2, #0 80036b4: 609a str r2, [r3, #8] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 80036b6: 187b adds r3, r7, r1 80036b8: 2203 movs r2, #3 80036ba: 60da str r2, [r3, #12] GPIO_InitStruct.Alternate = GPIO_AF1_I2C1; 80036bc: 187b adds r3, r7, r1 80036be: 2201 movs r2, #1 80036c0: 611a str r2, [r3, #16] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 80036c2: 187b adds r3, r7, r1 80036c4: 4a0d ldr r2, [pc, #52] @ (80036fc ) 80036c6: 0019 movs r1, r3 80036c8: 0010 movs r0, r2 80036ca: f000 fed3 bl 8004474 /* Peripheral clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); 80036ce: 4b0a ldr r3, [pc, #40] @ (80036f8 ) 80036d0: 69da ldr r2, [r3, #28] 80036d2: 4b09 ldr r3, [pc, #36] @ (80036f8 ) 80036d4: 2180 movs r1, #128 @ 0x80 80036d6: 0389 lsls r1, r1, #14 80036d8: 430a orrs r2, r1 80036da: 61da str r2, [r3, #28] 80036dc: 4b06 ldr r3, [pc, #24] @ (80036f8 ) 80036de: 69da ldr r2, [r3, #28] 80036e0: 2380 movs r3, #128 @ 0x80 80036e2: 039b lsls r3, r3, #14 80036e4: 4013 ands r3, r2 80036e6: 60fb str r3, [r7, #12] 80036e8: 68fb ldr r3, [r7, #12] /* USER CODE END I2C1_MspInit 1 */ } } 80036ea: 46c0 nop @ (mov r8, r8) 80036ec: 46bd mov sp, r7 80036ee: b00b add sp, #44 @ 0x2c 80036f0: bd90 pop {r4, r7, pc} 80036f2: 46c0 nop @ (mov r8, r8) 80036f4: 40005400 .word 0x40005400 80036f8: 40021000 .word 0x40021000 80036fc: 48000400 .word 0x48000400 08003700 : * This function freeze the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c) { 8003700: b580 push {r7, lr} 8003702: b082 sub sp, #8 8003704: af00 add r7, sp, #0 8003706: 6078 str r0, [r7, #4] if(hi2c->Instance==I2C1) 8003708: 687b ldr r3, [r7, #4] 800370a: 681b ldr r3, [r3, #0] 800370c: 4a0b ldr r2, [pc, #44] @ (800373c ) 800370e: 4293 cmp r3, r2 8003710: d10f bne.n 8003732 { /* USER CODE BEGIN I2C1_MspDeInit 0 */ /* USER CODE END I2C1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_I2C1_CLK_DISABLE(); 8003712: 4b0b ldr r3, [pc, #44] @ (8003740 ) 8003714: 69da ldr r2, [r3, #28] 8003716: 4b0a ldr r3, [pc, #40] @ (8003740 ) 8003718: 490a ldr r1, [pc, #40] @ (8003744 ) 800371a: 400a ands r2, r1 800371c: 61da str r2, [r3, #28] /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6); 800371e: 4b0a ldr r3, [pc, #40] @ (8003748 ) 8003720: 2140 movs r1, #64 @ 0x40 8003722: 0018 movs r0, r3 8003724: f001 f80e bl 8004744 HAL_GPIO_DeInit(GPIOB, GPIO_PIN_7); 8003728: 4b07 ldr r3, [pc, #28] @ (8003748 ) 800372a: 2180 movs r1, #128 @ 0x80 800372c: 0018 movs r0, r3 800372e: f001 f809 bl 8004744 /* USER CODE BEGIN I2C1_MspDeInit 1 */ /* USER CODE END I2C1_MspDeInit 1 */ } } 8003732: 46c0 nop @ (mov r8, r8) 8003734: 46bd mov sp, r7 8003736: b002 add sp, #8 8003738: bd80 pop {r7, pc} 800373a: 46c0 nop @ (mov r8, r8) 800373c: 40005400 .word 0x40005400 8003740: 40021000 .word 0x40021000 8003744: ffdfffff .word 0xffdfffff 8003748: 48000400 .word 0x48000400 0800374c : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { 800374c: b580 push {r7, lr} 800374e: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) 8003750: 46c0 nop @ (mov r8, r8) 8003752: e7fd b.n 8003750 08003754 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { 8003754: b580 push {r7, lr} 8003756: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) 8003758: 46c0 nop @ (mov r8, r8) 800375a: e7fd b.n 8003758 0800375c : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { 800375c: b580 push {r7, lr} 800375e: af00 add r7, sp, #0 /* USER CODE END SVC_IRQn 0 */ /* USER CODE BEGIN SVC_IRQn 1 */ /* USER CODE END SVC_IRQn 1 */ } 8003760: 46c0 nop @ (mov r8, r8) 8003762: 46bd mov sp, r7 8003764: bd80 pop {r7, pc} 08003766 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { 8003766: b580 push {r7, lr} 8003768: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } 800376a: 46c0 nop @ (mov r8, r8) 800376c: 46bd mov sp, r7 800376e: bd80 pop {r7, pc} 08003770 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { 8003770: b580 push {r7, lr} 8003772: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); 8003774: f000 fb74 bl 8003e60 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } 8003778: 46c0 nop @ (mov r8, r8) 800377a: 46bd mov sp, r7 800377c: bd80 pop {r7, pc} 0800377e : * @brief Setup the microcontroller system * @param None * @retval None */ void SystemInit(void) { 800377e: b580 push {r7, lr} 8003780: af00 add r7, sp, #0 before branch to main program. This call is made inside the "startup_stm32f0xx.s" file. User can setups the default system clock (System clock source, PLL Multiplier and Divider factors, AHB/APBx prescalers and Flash settings). */ } 8003782: 46c0 nop @ (mov r8, r8) 8003784: 46bd mov sp, r7 8003786: bd80 pop {r7, pc} 08003788 : TTS_SensorID tts_sensorid; TTS_CarID tts_carid; TTS_TireID tts_tireid; TTS_TireData tts_tiredb[4]; void TTS_Init(CAN_HandleTypeDef *hcan) { 8003788: b580 push {r7, lr} 800378a: b084 sub sp, #16 800378c: af00 add r7, sp, #0 800378e: 6078 str r0, [r7, #4] // initialize values TTS_LoadTireData(); 8003790: f000 fa34 bl 8003bfc tts_sensorid = TTS_FR; 8003794: 4b18 ldr r3, [pc, #96] @ (80037f8 ) 8003796: 2201 movs r2, #1 8003798: 701a strb r2, [r3, #0] tts_carid = FT25; 800379a: 4b18 ldr r3, [pc, #96] @ (80037fc ) 800379c: 2219 movs r2, #25 800379e: 701a strb r2, [r3, #0] tts_tireid = OZ7_SLICKS; 80037a0: 4b17 ldr r3, [pc, #92] @ (8003800 ) 80037a2: 2201 movs r2, #1 80037a4: 701a strb r2, [r3, #0] // init CAN tts_hcan = hcan; 80037a6: 4b17 ldr r3, [pc, #92] @ (8003804 ) 80037a8: 687a ldr r2, [r7, #4] 80037aa: 601a str r2, [r3, #0] // init CAN_Tx Frame //uint8_t canID = tts_sensorid + TTS_CANIDSTART; tts_canHeader.IDE = CAN_ID_STD; 80037ac: 4b16 ldr r3, [pc, #88] @ (8003808 ) 80037ae: 2200 movs r2, #0 80037b0: 609a str r2, [r3, #8] tts_canHeader.StdId = 0x702; 80037b2: 4b15 ldr r3, [pc, #84] @ (8003808 ) 80037b4: 4a15 ldr r2, [pc, #84] @ (800380c ) 80037b6: 601a str r2, [r3, #0] tts_canHeader.DLC = 8; 80037b8: 4b13 ldr r3, [pc, #76] @ (8003808 ) 80037ba: 2208 movs r2, #8 80037bc: 611a str r2, [r3, #16] tts_canHeader.RTR = CAN_RTR_DATA; 80037be: 4b12 ldr r3, [pc, #72] @ (8003808 ) 80037c0: 2200 movs r2, #0 80037c2: 60da str r2, [r3, #12] for(uint8_t i=0; i<8; i++) { 80037c4: 230f movs r3, #15 80037c6: 18fb adds r3, r7, r3 80037c8: 2200 movs r2, #0 80037ca: 701a strb r2, [r3, #0] 80037cc: e00a b.n 80037e4 tts_canData[i] = 0xFF; 80037ce: 200f movs r0, #15 80037d0: 183b adds r3, r7, r0 80037d2: 781b ldrb r3, [r3, #0] 80037d4: 4a0e ldr r2, [pc, #56] @ (8003810 ) 80037d6: 21ff movs r1, #255 @ 0xff 80037d8: 54d1 strb r1, [r2, r3] for(uint8_t i=0; i<8; i++) { 80037da: 183b adds r3, r7, r0 80037dc: 781a ldrb r2, [r3, #0] 80037de: 183b adds r3, r7, r0 80037e0: 3201 adds r2, #1 80037e2: 701a strb r2, [r3, #0] 80037e4: 230f movs r3, #15 80037e6: 18fb adds r3, r7, r3 80037e8: 781b ldrb r3, [r3, #0] 80037ea: 2b07 cmp r3, #7 80037ec: d9ef bls.n 80037ce } } 80037ee: 46c0 nop @ (mov r8, r8) 80037f0: 46c0 nop @ (mov r8, r8) 80037f2: 46bd mov sp, r7 80037f4: b004 add sp, #16 80037f6: bd80 pop {r7, pc} 80037f8: 20000874 .word 0x20000874 80037fc: 20000875 .word 0x20000875 8003800: 20000876 .word 0x20000876 8003804: 2000084c .word 0x2000084c 8003808: 20000850 .word 0x20000850 800380c: 00000702 .word 0x00000702 8003810: 20000868 .word 0x20000868 08003814 : void TTS_SendCAN(uint32_t tireZones[5]) { 8003814: b580 push {r7, lr} 8003816: b082 sub sp, #8 8003818: af00 add r7, sp, #0 800381a: 6078 str r0, [r7, #4] // Outer left: tts_canData[0] = tireZones[0] & 0xFF; 800381c: 687b ldr r3, [r7, #4] 800381e: 681b ldr r3, [r3, #0] 8003820: b2da uxtb r2, r3 8003822: 4b30 ldr r3, [pc, #192] @ (80038e4 ) 8003824: 701a strb r2, [r3, #0] tts_canData[1] = (tireZones[0] >> 8) & 0xF; 8003826: 687b ldr r3, [r7, #4] 8003828: 681b ldr r3, [r3, #0] 800382a: 0a1b lsrs r3, r3, #8 800382c: b2db uxtb r3, r3 800382e: 220f movs r2, #15 8003830: 4013 ands r3, r2 8003832: b2da uxtb r2, r3 8003834: 4b2b ldr r3, [pc, #172] @ (80038e4 ) 8003836: 705a strb r2, [r3, #1] // Center left: tts_canData[1] = tts_canData[1] | ((tireZones[1] & 0xF) << 4); 8003838: 4b2a ldr r3, [pc, #168] @ (80038e4 ) 800383a: 785a ldrb r2, [r3, #1] 800383c: 687b ldr r3, [r7, #4] 800383e: 3304 adds r3, #4 8003840: 681b ldr r3, [r3, #0] 8003842: b2db uxtb r3, r3 8003844: 011b lsls r3, r3, #4 8003846: b2db uxtb r3, r3 8003848: 4313 orrs r3, r2 800384a: b2da uxtb r2, r3 800384c: 4b25 ldr r3, [pc, #148] @ (80038e4 ) 800384e: 705a strb r2, [r3, #1] tts_canData[2] = (tireZones[1] >> 4) & 0xFF; 8003850: 687b ldr r3, [r7, #4] 8003852: 3304 adds r3, #4 8003854: 681b ldr r3, [r3, #0] 8003856: 091b lsrs r3, r3, #4 8003858: b2da uxtb r2, r3 800385a: 4b22 ldr r3, [pc, #136] @ (80038e4 ) 800385c: 709a strb r2, [r3, #2] // Center: tts_canData[3] = tireZones[2] & 0xFF; 800385e: 687b ldr r3, [r7, #4] 8003860: 3308 adds r3, #8 8003862: 681b ldr r3, [r3, #0] 8003864: b2da uxtb r2, r3 8003866: 4b1f ldr r3, [pc, #124] @ (80038e4 ) 8003868: 70da strb r2, [r3, #3] tts_canData[4] = (tireZones[2] >> 8) & 0xF; 800386a: 687b ldr r3, [r7, #4] 800386c: 3308 adds r3, #8 800386e: 681b ldr r3, [r3, #0] 8003870: 0a1b lsrs r3, r3, #8 8003872: b2db uxtb r3, r3 8003874: 220f movs r2, #15 8003876: 4013 ands r3, r2 8003878: b2da uxtb r2, r3 800387a: 4b1a ldr r3, [pc, #104] @ (80038e4 ) 800387c: 711a strb r2, [r3, #4] // Center right: tts_canData[4] = tts_canData[4] | ((tireZones[3] & 0xF) << 4); 800387e: 4b19 ldr r3, [pc, #100] @ (80038e4 ) 8003880: 791a ldrb r2, [r3, #4] 8003882: 687b ldr r3, [r7, #4] 8003884: 330c adds r3, #12 8003886: 681b ldr r3, [r3, #0] 8003888: b2db uxtb r3, r3 800388a: 011b lsls r3, r3, #4 800388c: b2db uxtb r3, r3 800388e: 4313 orrs r3, r2 8003890: b2da uxtb r2, r3 8003892: 4b14 ldr r3, [pc, #80] @ (80038e4 ) 8003894: 711a strb r2, [r3, #4] tts_canData[5] = (tireZones[3] >> 4) & 0xFF; 8003896: 687b ldr r3, [r7, #4] 8003898: 330c adds r3, #12 800389a: 681b ldr r3, [r3, #0] 800389c: 091b lsrs r3, r3, #4 800389e: b2da uxtb r2, r3 80038a0: 4b10 ldr r3, [pc, #64] @ (80038e4 ) 80038a2: 715a strb r2, [r3, #5] // Center right: tts_canData[6] = tireZones[4] & 0xFF; 80038a4: 687b ldr r3, [r7, #4] 80038a6: 3310 adds r3, #16 80038a8: 681b ldr r3, [r3, #0] 80038aa: b2da uxtb r2, r3 80038ac: 4b0d ldr r3, [pc, #52] @ (80038e4 ) 80038ae: 719a strb r2, [r3, #6] tts_canData[7] = (tireZones[4] >> 8) & 0xF; 80038b0: 687b ldr r3, [r7, #4] 80038b2: 3310 adds r3, #16 80038b4: 681b ldr r3, [r3, #0] 80038b6: 0a1b lsrs r3, r3, #8 80038b8: b2db uxtb r3, r3 80038ba: 220f movs r2, #15 80038bc: 4013 ands r3, r2 80038be: b2da uxtb r2, r3 80038c0: 4b08 ldr r3, [pc, #32] @ (80038e4 ) 80038c2: 71da strb r2, [r3, #7] // current tire selected: //tts_canData[7] = tts_canData[7] | ((tts_tireid & 0xF) << 4); if(HAL_CAN_AddTxMessage(tts_hcan, &tts_canHeader, tts_canData, &tts_canMailbox) != HAL_OK) { 80038c4: 4b08 ldr r3, [pc, #32] @ (80038e8 ) 80038c6: 6818 ldr r0, [r3, #0] 80038c8: 4b08 ldr r3, [pc, #32] @ (80038ec ) 80038ca: 4a06 ldr r2, [pc, #24] @ (80038e4 ) 80038cc: 4908 ldr r1, [pc, #32] @ (80038f0 ) 80038ce: f000 fc4b bl 8004168 80038d2: 1e03 subs r3, r0, #0 80038d4: d001 beq.n 80038da Error_Handler(); 80038d6: f7ff fe39 bl 800354c } } 80038da: 46c0 nop @ (mov r8, r8) 80038dc: 46bd mov sp, r7 80038de: b002 add sp, #8 80038e0: bd80 pop {r7, pc} 80038e2: 46c0 nop @ (mov r8, r8) 80038e4: 20000868 .word 0x20000868 80038e8: 2000084c .word 0x2000084c 80038ec: 20000870 .word 0x20000870 80038f0: 20000850 .word 0x20000850 080038f4 : void TTS_TireZones(uint32_t tempArray[32], uint32_t tireTempArray[5]) { 80038f4: b5b0 push {r4, r5, r7, lr} 80038f6: b084 sub sp, #16 80038f8: af00 add r7, sp, #0 80038fa: 6078 str r0, [r7, #4] 80038fc: 6039 str r1, [r7, #0] for(uint8_t i = 0; i < 5; i++) { 80038fe: 230f movs r3, #15 8003900: 18fb adds r3, r7, r3 8003902: 2200 movs r2, #0 8003904: 701a strb r2, [r3, #0] 8003906: e00c b.n 8003922 tireTempArray[i] = 0; 8003908: 210f movs r1, #15 800390a: 187b adds r3, r7, r1 800390c: 781b ldrb r3, [r3, #0] 800390e: 009b lsls r3, r3, #2 8003910: 683a ldr r2, [r7, #0] 8003912: 18d3 adds r3, r2, r3 8003914: 2200 movs r2, #0 8003916: 601a str r2, [r3, #0] for(uint8_t i = 0; i < 5; i++) { 8003918: 187b adds r3, r7, r1 800391a: 781a ldrb r2, [r3, #0] 800391c: 187b adds r3, r7, r1 800391e: 3201 adds r2, #1 8003920: 701a strb r2, [r3, #0] 8003922: 230f movs r3, #15 8003924: 18fb adds r3, r7, r3 8003926: 781b ldrb r3, [r3, #0] 8003928: 2b04 cmp r3, #4 800392a: d9ed bls.n 8003908 } uint8_t zoneWidth[5] = {0}; 800392c: 2308 movs r3, #8 800392e: 18fb adds r3, r7, r3 8003930: 0018 movs r0, r3 8003932: 2305 movs r3, #5 8003934: 001a movs r2, r3 8003936: 2100 movs r1, #0 8003938: f002 fc92 bl 8006260 uint8_t tireid = tts_tireid; 800393c: 230d movs r3, #13 800393e: 18fb adds r3, r7, r3 8003940: 4aac ldr r2, [pc, #688] @ (8003bf4 ) 8003942: 7812 ldrb r2, [r2, #0] 8003944: 701a strb r2, [r3, #0] for(uint8_t i = 0; i < 32; i++) { 8003946: 230e movs r3, #14 8003948: 18fb adds r3, r7, r3 800394a: 2200 movs r2, #0 800394c: 701a strb r2, [r3, #0] 800394e: e102 b.n 8003b56 // outer right: if((i <= tts_tiredb[tts_tireid].outerRightStart) && (i >= tts_tiredb[tts_tireid].outerRightStop)) { 8003950: 4ba8 ldr r3, [pc, #672] @ (8003bf4 ) 8003952: 781b ldrb r3, [r3, #0] 8003954: 0019 movs r1, r3 8003956: 4aa8 ldr r2, [pc, #672] @ (8003bf8 ) 8003958: 000b movs r3, r1 800395a: 005b lsls r3, r3, #1 800395c: 185b adds r3, r3, r1 800395e: 009b lsls r3, r3, #2 8003960: 18d3 adds r3, r2, r3 8003962: 330a adds r3, #10 8003964: 781b ldrb r3, [r3, #0] 8003966: 200e movs r0, #14 8003968: 183a adds r2, r7, r0 800396a: 7812 ldrb r2, [r2, #0] 800396c: 429a cmp r2, r3 800396e: d822 bhi.n 80039b6 8003970: 4ba0 ldr r3, [pc, #640] @ (8003bf4 ) 8003972: 781b ldrb r3, [r3, #0] 8003974: 0019 movs r1, r3 8003976: 4aa0 ldr r2, [pc, #640] @ (8003bf8 ) 8003978: 000b movs r3, r1 800397a: 005b lsls r3, r3, #1 800397c: 185b adds r3, r3, r1 800397e: 009b lsls r3, r3, #2 8003980: 18d3 adds r3, r2, r3 8003982: 330b adds r3, #11 8003984: 781b ldrb r3, [r3, #0] 8003986: 183a adds r2, r7, r0 8003988: 7812 ldrb r2, [r2, #0] 800398a: 429a cmp r2, r3 800398c: d313 bcc.n 80039b6 tireTempArray[4] = tireTempArray[4] + tempArray[i]; 800398e: 683b ldr r3, [r7, #0] 8003990: 3310 adds r3, #16 8003992: 6819 ldr r1, [r3, #0] 8003994: 183b adds r3, r7, r0 8003996: 781b ldrb r3, [r3, #0] 8003998: 009b lsls r3, r3, #2 800399a: 687a ldr r2, [r7, #4] 800399c: 18d3 adds r3, r2, r3 800399e: 681a ldr r2, [r3, #0] 80039a0: 683b ldr r3, [r7, #0] 80039a2: 3310 adds r3, #16 80039a4: 188a adds r2, r1, r2 80039a6: 601a str r2, [r3, #0] zoneWidth[4]++; 80039a8: 2108 movs r1, #8 80039aa: 187b adds r3, r7, r1 80039ac: 791b ldrb r3, [r3, #4] 80039ae: 3301 adds r3, #1 80039b0: b2da uxtb r2, r3 80039b2: 187b adds r3, r7, r1 80039b4: 711a strb r2, [r3, #4] } // center right: if((i <= tts_tiredb[tts_tireid].centerRightStart) && (i >= tts_tiredb[tts_tireid].centerRightStop)) { 80039b6: 4b8f ldr r3, [pc, #572] @ (8003bf4 ) 80039b8: 781b ldrb r3, [r3, #0] 80039ba: 0019 movs r1, r3 80039bc: 4a8e ldr r2, [pc, #568] @ (8003bf8 ) 80039be: 000b movs r3, r1 80039c0: 005b lsls r3, r3, #1 80039c2: 185b adds r3, r3, r1 80039c4: 009b lsls r3, r3, #2 80039c6: 18d3 adds r3, r2, r3 80039c8: 3308 adds r3, #8 80039ca: 781b ldrb r3, [r3, #0] 80039cc: 200e movs r0, #14 80039ce: 183a adds r2, r7, r0 80039d0: 7812 ldrb r2, [r2, #0] 80039d2: 429a cmp r2, r3 80039d4: d822 bhi.n 8003a1c 80039d6: 4b87 ldr r3, [pc, #540] @ (8003bf4 ) 80039d8: 781b ldrb r3, [r3, #0] 80039da: 0019 movs r1, r3 80039dc: 4a86 ldr r2, [pc, #536] @ (8003bf8 ) 80039de: 000b movs r3, r1 80039e0: 005b lsls r3, r3, #1 80039e2: 185b adds r3, r3, r1 80039e4: 009b lsls r3, r3, #2 80039e6: 18d3 adds r3, r2, r3 80039e8: 3309 adds r3, #9 80039ea: 781b ldrb r3, [r3, #0] 80039ec: 183a adds r2, r7, r0 80039ee: 7812 ldrb r2, [r2, #0] 80039f0: 429a cmp r2, r3 80039f2: d313 bcc.n 8003a1c tireTempArray[3] = tireTempArray[3] + tempArray[i]; 80039f4: 683b ldr r3, [r7, #0] 80039f6: 330c adds r3, #12 80039f8: 6819 ldr r1, [r3, #0] 80039fa: 183b adds r3, r7, r0 80039fc: 781b ldrb r3, [r3, #0] 80039fe: 009b lsls r3, r3, #2 8003a00: 687a ldr r2, [r7, #4] 8003a02: 18d3 adds r3, r2, r3 8003a04: 681a ldr r2, [r3, #0] 8003a06: 683b ldr r3, [r7, #0] 8003a08: 330c adds r3, #12 8003a0a: 188a adds r2, r1, r2 8003a0c: 601a str r2, [r3, #0] zoneWidth[3]++; 8003a0e: 2108 movs r1, #8 8003a10: 187b adds r3, r7, r1 8003a12: 78db ldrb r3, [r3, #3] 8003a14: 3301 adds r3, #1 8003a16: b2da uxtb r2, r3 8003a18: 187b adds r3, r7, r1 8003a1a: 70da strb r2, [r3, #3] } // center: if((i <= tts_tiredb[tts_tireid].centerStart) && (i >= tts_tiredb[tts_tireid].centerStop)) { 8003a1c: 4b75 ldr r3, [pc, #468] @ (8003bf4 ) 8003a1e: 781b ldrb r3, [r3, #0] 8003a20: 0019 movs r1, r3 8003a22: 4a75 ldr r2, [pc, #468] @ (8003bf8 ) 8003a24: 000b movs r3, r1 8003a26: 005b lsls r3, r3, #1 8003a28: 185b adds r3, r3, r1 8003a2a: 009b lsls r3, r3, #2 8003a2c: 18d3 adds r3, r2, r3 8003a2e: 3306 adds r3, #6 8003a30: 781b ldrb r3, [r3, #0] 8003a32: 200e movs r0, #14 8003a34: 183a adds r2, r7, r0 8003a36: 7812 ldrb r2, [r2, #0] 8003a38: 429a cmp r2, r3 8003a3a: d822 bhi.n 8003a82 8003a3c: 4b6d ldr r3, [pc, #436] @ (8003bf4 ) 8003a3e: 781b ldrb r3, [r3, #0] 8003a40: 0019 movs r1, r3 8003a42: 4a6d ldr r2, [pc, #436] @ (8003bf8 ) 8003a44: 000b movs r3, r1 8003a46: 005b lsls r3, r3, #1 8003a48: 185b adds r3, r3, r1 8003a4a: 009b lsls r3, r3, #2 8003a4c: 18d3 adds r3, r2, r3 8003a4e: 3307 adds r3, #7 8003a50: 781b ldrb r3, [r3, #0] 8003a52: 183a adds r2, r7, r0 8003a54: 7812 ldrb r2, [r2, #0] 8003a56: 429a cmp r2, r3 8003a58: d313 bcc.n 8003a82 tireTempArray[2] = tireTempArray[2] + tempArray[i]; 8003a5a: 683b ldr r3, [r7, #0] 8003a5c: 3308 adds r3, #8 8003a5e: 6819 ldr r1, [r3, #0] 8003a60: 183b adds r3, r7, r0 8003a62: 781b ldrb r3, [r3, #0] 8003a64: 009b lsls r3, r3, #2 8003a66: 687a ldr r2, [r7, #4] 8003a68: 18d3 adds r3, r2, r3 8003a6a: 681a ldr r2, [r3, #0] 8003a6c: 683b ldr r3, [r7, #0] 8003a6e: 3308 adds r3, #8 8003a70: 188a adds r2, r1, r2 8003a72: 601a str r2, [r3, #0] zoneWidth[2]++; 8003a74: 2108 movs r1, #8 8003a76: 187b adds r3, r7, r1 8003a78: 789b ldrb r3, [r3, #2] 8003a7a: 3301 adds r3, #1 8003a7c: b2da uxtb r2, r3 8003a7e: 187b adds r3, r7, r1 8003a80: 709a strb r2, [r3, #2] } // center left: if((i <= tts_tiredb[tts_tireid].centerLeftStart) && (i >= tts_tiredb[tts_tireid].centerLeftStop)) { 8003a82: 4b5c ldr r3, [pc, #368] @ (8003bf4 ) 8003a84: 781b ldrb r3, [r3, #0] 8003a86: 0019 movs r1, r3 8003a88: 4a5b ldr r2, [pc, #364] @ (8003bf8 ) 8003a8a: 000b movs r3, r1 8003a8c: 005b lsls r3, r3, #1 8003a8e: 185b adds r3, r3, r1 8003a90: 009b lsls r3, r3, #2 8003a92: 18d3 adds r3, r2, r3 8003a94: 3304 adds r3, #4 8003a96: 781b ldrb r3, [r3, #0] 8003a98: 200e movs r0, #14 8003a9a: 183a adds r2, r7, r0 8003a9c: 7812 ldrb r2, [r2, #0] 8003a9e: 429a cmp r2, r3 8003aa0: d822 bhi.n 8003ae8 8003aa2: 4b54 ldr r3, [pc, #336] @ (8003bf4 ) 8003aa4: 781b ldrb r3, [r3, #0] 8003aa6: 0019 movs r1, r3 8003aa8: 4a53 ldr r2, [pc, #332] @ (8003bf8 ) 8003aaa: 000b movs r3, r1 8003aac: 005b lsls r3, r3, #1 8003aae: 185b adds r3, r3, r1 8003ab0: 009b lsls r3, r3, #2 8003ab2: 18d3 adds r3, r2, r3 8003ab4: 3305 adds r3, #5 8003ab6: 781b ldrb r3, [r3, #0] 8003ab8: 183a adds r2, r7, r0 8003aba: 7812 ldrb r2, [r2, #0] 8003abc: 429a cmp r2, r3 8003abe: d313 bcc.n 8003ae8 tireTempArray[1] = tireTempArray[1] + tempArray[i]; 8003ac0: 683b ldr r3, [r7, #0] 8003ac2: 3304 adds r3, #4 8003ac4: 6819 ldr r1, [r3, #0] 8003ac6: 183b adds r3, r7, r0 8003ac8: 781b ldrb r3, [r3, #0] 8003aca: 009b lsls r3, r3, #2 8003acc: 687a ldr r2, [r7, #4] 8003ace: 18d3 adds r3, r2, r3 8003ad0: 681a ldr r2, [r3, #0] 8003ad2: 683b ldr r3, [r7, #0] 8003ad4: 3304 adds r3, #4 8003ad6: 188a adds r2, r1, r2 8003ad8: 601a str r2, [r3, #0] zoneWidth[1]++; 8003ada: 2108 movs r1, #8 8003adc: 187b adds r3, r7, r1 8003ade: 785b ldrb r3, [r3, #1] 8003ae0: 3301 adds r3, #1 8003ae2: b2da uxtb r2, r3 8003ae4: 187b adds r3, r7, r1 8003ae6: 705a strb r2, [r3, #1] } // outer left: if((i <= tts_tiredb[tts_tireid].outerLeftStart) && (i >= tts_tiredb[tts_tireid].outerLeftStop)) { 8003ae8: 4b42 ldr r3, [pc, #264] @ (8003bf4 ) 8003aea: 781b ldrb r3, [r3, #0] 8003aec: 0019 movs r1, r3 8003aee: 4a42 ldr r2, [pc, #264] @ (8003bf8 ) 8003af0: 000b movs r3, r1 8003af2: 005b lsls r3, r3, #1 8003af4: 185b adds r3, r3, r1 8003af6: 009b lsls r3, r3, #2 8003af8: 18d3 adds r3, r2, r3 8003afa: 3302 adds r3, #2 8003afc: 781b ldrb r3, [r3, #0] 8003afe: 200e movs r0, #14 8003b00: 183a adds r2, r7, r0 8003b02: 7812 ldrb r2, [r2, #0] 8003b04: 429a cmp r2, r3 8003b06: d820 bhi.n 8003b4a 8003b08: 4b3a ldr r3, [pc, #232] @ (8003bf4 ) 8003b0a: 781b ldrb r3, [r3, #0] 8003b0c: 0019 movs r1, r3 8003b0e: 4a3a ldr r2, [pc, #232] @ (8003bf8 ) 8003b10: 000b movs r3, r1 8003b12: 005b lsls r3, r3, #1 8003b14: 185b adds r3, r3, r1 8003b16: 009b lsls r3, r3, #2 8003b18: 18d3 adds r3, r2, r3 8003b1a: 3303 adds r3, #3 8003b1c: 781b ldrb r3, [r3, #0] 8003b1e: 183a adds r2, r7, r0 8003b20: 7812 ldrb r2, [r2, #0] 8003b22: 429a cmp r2, r3 8003b24: d311 bcc.n 8003b4a tireTempArray[0] = tireTempArray[0] + tempArray[i]; 8003b26: 683b ldr r3, [r7, #0] 8003b28: 681a ldr r2, [r3, #0] 8003b2a: 183b adds r3, r7, r0 8003b2c: 781b ldrb r3, [r3, #0] 8003b2e: 009b lsls r3, r3, #2 8003b30: 6879 ldr r1, [r7, #4] 8003b32: 18cb adds r3, r1, r3 8003b34: 681b ldr r3, [r3, #0] 8003b36: 18d2 adds r2, r2, r3 8003b38: 683b ldr r3, [r7, #0] 8003b3a: 601a str r2, [r3, #0] zoneWidth[0]++; 8003b3c: 2108 movs r1, #8 8003b3e: 187b adds r3, r7, r1 8003b40: 781b ldrb r3, [r3, #0] 8003b42: 3301 adds r3, #1 8003b44: b2da uxtb r2, r3 8003b46: 187b adds r3, r7, r1 8003b48: 701a strb r2, [r3, #0] for(uint8_t i = 0; i < 32; i++) { 8003b4a: 210e movs r1, #14 8003b4c: 187b adds r3, r7, r1 8003b4e: 781a ldrb r2, [r3, #0] 8003b50: 187b adds r3, r7, r1 8003b52: 3201 adds r2, #1 8003b54: 701a strb r2, [r3, #0] 8003b56: 230e movs r3, #14 8003b58: 18fb adds r3, r7, r3 8003b5a: 781b ldrb r3, [r3, #0] 8003b5c: 2b1f cmp r3, #31 8003b5e: d800 bhi.n 8003b62 8003b60: e6f6 b.n 8003950 } } tireTempArray[4] = tireTempArray[4] / zoneWidth[4]; 8003b62: 683b ldr r3, [r7, #0] 8003b64: 3310 adds r3, #16 8003b66: 681a ldr r2, [r3, #0] 8003b68: 2508 movs r5, #8 8003b6a: 197b adds r3, r7, r5 8003b6c: 791b ldrb r3, [r3, #4] 8003b6e: 0019 movs r1, r3 8003b70: 683b ldr r3, [r7, #0] 8003b72: 3310 adds r3, #16 8003b74: 001c movs r4, r3 8003b76: 0010 movs r0, r2 8003b78: f7fc fac6 bl 8000108 <__udivsi3> 8003b7c: 0003 movs r3, r0 8003b7e: 6023 str r3, [r4, #0] tireTempArray[3] = tireTempArray[3] / zoneWidth[3]; 8003b80: 683b ldr r3, [r7, #0] 8003b82: 330c adds r3, #12 8003b84: 681a ldr r2, [r3, #0] 8003b86: 197b adds r3, r7, r5 8003b88: 78db ldrb r3, [r3, #3] 8003b8a: 0019 movs r1, r3 8003b8c: 683b ldr r3, [r7, #0] 8003b8e: 330c adds r3, #12 8003b90: 001c movs r4, r3 8003b92: 0010 movs r0, r2 8003b94: f7fc fab8 bl 8000108 <__udivsi3> 8003b98: 0003 movs r3, r0 8003b9a: 6023 str r3, [r4, #0] tireTempArray[2] = tireTempArray[2] / zoneWidth[2]; 8003b9c: 683b ldr r3, [r7, #0] 8003b9e: 3308 adds r3, #8 8003ba0: 681a ldr r2, [r3, #0] 8003ba2: 197b adds r3, r7, r5 8003ba4: 789b ldrb r3, [r3, #2] 8003ba6: 0019 movs r1, r3 8003ba8: 683b ldr r3, [r7, #0] 8003baa: 3308 adds r3, #8 8003bac: 001c movs r4, r3 8003bae: 0010 movs r0, r2 8003bb0: f7fc faaa bl 8000108 <__udivsi3> 8003bb4: 0003 movs r3, r0 8003bb6: 6023 str r3, [r4, #0] tireTempArray[1] = tireTempArray[1] / zoneWidth[1]; 8003bb8: 683b ldr r3, [r7, #0] 8003bba: 3304 adds r3, #4 8003bbc: 681a ldr r2, [r3, #0] 8003bbe: 197b adds r3, r7, r5 8003bc0: 785b ldrb r3, [r3, #1] 8003bc2: 0019 movs r1, r3 8003bc4: 683b ldr r3, [r7, #0] 8003bc6: 1d1c adds r4, r3, #4 8003bc8: 0010 movs r0, r2 8003bca: f7fc fa9d bl 8000108 <__udivsi3> 8003bce: 0003 movs r3, r0 8003bd0: 6023 str r3, [r4, #0] tireTempArray[0] = tireTempArray[0] / zoneWidth[0]; 8003bd2: 683b ldr r3, [r7, #0] 8003bd4: 681a ldr r2, [r3, #0] 8003bd6: 197b adds r3, r7, r5 8003bd8: 781b ldrb r3, [r3, #0] 8003bda: 0019 movs r1, r3 8003bdc: 0010 movs r0, r2 8003bde: f7fc fa93 bl 8000108 <__udivsi3> 8003be2: 0003 movs r3, r0 8003be4: 001a movs r2, r3 8003be6: 683b ldr r3, [r7, #0] 8003be8: 601a str r2, [r3, #0] } 8003bea: 46c0 nop @ (mov r8, r8) 8003bec: 46bd mov sp, r7 8003bee: b004 add sp, #16 8003bf0: bdb0 pop {r4, r5, r7, pc} 8003bf2: 46c0 nop @ (mov r8, r8) 8003bf4: 20000876 .word 0x20000876 8003bf8: 20000878 .word 0x20000878 08003bfc : void TTS_LoadTireData(void) { 8003bfc: b580 push {r7, lr} 8003bfe: af00 add r7, sp, #0 tts_tiredb[UNKNOWN].id = UNKNOWN; 8003c00: 4b51 ldr r3, [pc, #324] @ (8003d48 ) 8003c02: 2200 movs r2, #0 8003c04: 701a strb r2, [r3, #0] tts_tiredb[UNKNOWN].epsilon = 84; 8003c06: 4b50 ldr r3, [pc, #320] @ (8003d48 ) 8003c08: 2254 movs r2, #84 @ 0x54 8003c0a: 705a strb r2, [r3, #1] tts_tiredb[UNKNOWN].outerLeftStart = 31; 8003c0c: 4b4e ldr r3, [pc, #312] @ (8003d48 ) 8003c0e: 221f movs r2, #31 8003c10: 709a strb r2, [r3, #2] tts_tiredb[UNKNOWN].outerLeftStop = 26; 8003c12: 4b4d ldr r3, [pc, #308] @ (8003d48 ) 8003c14: 221a movs r2, #26 8003c16: 70da strb r2, [r3, #3] tts_tiredb[UNKNOWN].centerLeftStart = 25; 8003c18: 4b4b ldr r3, [pc, #300] @ (8003d48 ) 8003c1a: 2219 movs r2, #25 8003c1c: 711a strb r2, [r3, #4] tts_tiredb[UNKNOWN].centerLeftStop = 20; 8003c1e: 4b4a ldr r3, [pc, #296] @ (8003d48 ) 8003c20: 2214 movs r2, #20 8003c22: 715a strb r2, [r3, #5] tts_tiredb[UNKNOWN].centerStart = 19; 8003c24: 4b48 ldr r3, [pc, #288] @ (8003d48 ) 8003c26: 2213 movs r2, #19 8003c28: 719a strb r2, [r3, #6] tts_tiredb[UNKNOWN].centerStop = 12; 8003c2a: 4b47 ldr r3, [pc, #284] @ (8003d48 ) 8003c2c: 220c movs r2, #12 8003c2e: 71da strb r2, [r3, #7] tts_tiredb[UNKNOWN].centerRightStart = 11; 8003c30: 4b45 ldr r3, [pc, #276] @ (8003d48 ) 8003c32: 220b movs r2, #11 8003c34: 721a strb r2, [r3, #8] tts_tiredb[UNKNOWN].centerRightStop = 6; 8003c36: 4b44 ldr r3, [pc, #272] @ (8003d48 ) 8003c38: 2206 movs r2, #6 8003c3a: 725a strb r2, [r3, #9] tts_tiredb[UNKNOWN].outerRightStart = 5; 8003c3c: 4b42 ldr r3, [pc, #264] @ (8003d48 ) 8003c3e: 2205 movs r2, #5 8003c40: 729a strb r2, [r3, #10] tts_tiredb[UNKNOWN].outerRightStop = 0; 8003c42: 4b41 ldr r3, [pc, #260] @ (8003d48 ) 8003c44: 2200 movs r2, #0 8003c46: 72da strb r2, [r3, #11] tts_tiredb[OZ7_SLICKS].id = OZ7_SLICKS; 8003c48: 4b3f ldr r3, [pc, #252] @ (8003d48 ) 8003c4a: 2201 movs r2, #1 8003c4c: 731a strb r2, [r3, #12] tts_tiredb[OZ7_SLICKS].epsilon = 84; 8003c4e: 4b3e ldr r3, [pc, #248] @ (8003d48 ) 8003c50: 2254 movs r2, #84 @ 0x54 8003c52: 735a strb r2, [r3, #13] tts_tiredb[OZ7_SLICKS].outerLeftStart = 27; 8003c54: 4b3c ldr r3, [pc, #240] @ (8003d48 ) 8003c56: 221b movs r2, #27 8003c58: 739a strb r2, [r3, #14] tts_tiredb[OZ7_SLICKS].outerLeftStop = 25; 8003c5a: 4b3b ldr r3, [pc, #236] @ (8003d48 ) 8003c5c: 2219 movs r2, #25 8003c5e: 73da strb r2, [r3, #15] tts_tiredb[OZ7_SLICKS].centerLeftStart = 24; 8003c60: 4b39 ldr r3, [pc, #228] @ (8003d48 ) 8003c62: 2218 movs r2, #24 8003c64: 741a strb r2, [r3, #16] tts_tiredb[OZ7_SLICKS].centerLeftStop = 19; 8003c66: 4b38 ldr r3, [pc, #224] @ (8003d48 ) 8003c68: 2213 movs r2, #19 8003c6a: 745a strb r2, [r3, #17] tts_tiredb[OZ7_SLICKS].centerStart = 18; 8003c6c: 4b36 ldr r3, [pc, #216] @ (8003d48 ) 8003c6e: 2212 movs r2, #18 8003c70: 749a strb r2, [r3, #18] tts_tiredb[OZ7_SLICKS].centerStop = 13; 8003c72: 4b35 ldr r3, [pc, #212] @ (8003d48 ) 8003c74: 220d movs r2, #13 8003c76: 74da strb r2, [r3, #19] tts_tiredb[OZ7_SLICKS].centerRightStart = 12; 8003c78: 4b33 ldr r3, [pc, #204] @ (8003d48 ) 8003c7a: 220c movs r2, #12 8003c7c: 751a strb r2, [r3, #20] tts_tiredb[OZ7_SLICKS].centerRightStop = 7; 8003c7e: 4b32 ldr r3, [pc, #200] @ (8003d48 ) 8003c80: 2207 movs r2, #7 8003c82: 755a strb r2, [r3, #21] tts_tiredb[OZ7_SLICKS].outerRightStart = 6; 8003c84: 4b30 ldr r3, [pc, #192] @ (8003d48 ) 8003c86: 2206 movs r2, #6 8003c88: 759a strb r2, [r3, #22] tts_tiredb[OZ7_SLICKS].outerRightStop = 4; 8003c8a: 4b2f ldr r3, [pc, #188] @ (8003d48 ) 8003c8c: 2204 movs r2, #4 8003c8e: 75da strb r2, [r3, #23] tts_tiredb[OZ7_RAIN].id = OZ7_RAIN; 8003c90: 4b2d ldr r3, [pc, #180] @ (8003d48 ) 8003c92: 2202 movs r2, #2 8003c94: 761a strb r2, [r3, #24] tts_tiredb[OZ7_RAIN].epsilon = 84; 8003c96: 4b2c ldr r3, [pc, #176] @ (8003d48 ) 8003c98: 2254 movs r2, #84 @ 0x54 8003c9a: 765a strb r2, [r3, #25] tts_tiredb[OZ7_RAIN].outerLeftStart = 31; 8003c9c: 4b2a ldr r3, [pc, #168] @ (8003d48 ) 8003c9e: 221f movs r2, #31 8003ca0: 769a strb r2, [r3, #26] tts_tiredb[OZ7_RAIN].outerLeftStop = 26; 8003ca2: 4b29 ldr r3, [pc, #164] @ (8003d48 ) 8003ca4: 221a movs r2, #26 8003ca6: 76da strb r2, [r3, #27] tts_tiredb[OZ7_RAIN].centerLeftStart = 25; 8003ca8: 4b27 ldr r3, [pc, #156] @ (8003d48 ) 8003caa: 2219 movs r2, #25 8003cac: 771a strb r2, [r3, #28] tts_tiredb[OZ7_RAIN].centerLeftStop = 20; 8003cae: 4b26 ldr r3, [pc, #152] @ (8003d48 ) 8003cb0: 2214 movs r2, #20 8003cb2: 775a strb r2, [r3, #29] tts_tiredb[OZ7_RAIN].centerStart = 19; 8003cb4: 4b24 ldr r3, [pc, #144] @ (8003d48 ) 8003cb6: 2213 movs r2, #19 8003cb8: 779a strb r2, [r3, #30] tts_tiredb[OZ7_RAIN].centerStop = 12; 8003cba: 4b23 ldr r3, [pc, #140] @ (8003d48 ) 8003cbc: 220c movs r2, #12 8003cbe: 77da strb r2, [r3, #31] tts_tiredb[OZ7_RAIN].centerRightStart = 11; 8003cc0: 4b21 ldr r3, [pc, #132] @ (8003d48 ) 8003cc2: 2220 movs r2, #32 8003cc4: 210b movs r1, #11 8003cc6: 5499 strb r1, [r3, r2] tts_tiredb[OZ7_RAIN].centerRightStop = 6; 8003cc8: 4b1f ldr r3, [pc, #124] @ (8003d48 ) 8003cca: 2221 movs r2, #33 @ 0x21 8003ccc: 2106 movs r1, #6 8003cce: 5499 strb r1, [r3, r2] tts_tiredb[OZ7_RAIN].outerRightStart = 5; 8003cd0: 4b1d ldr r3, [pc, #116] @ (8003d48 ) 8003cd2: 2222 movs r2, #34 @ 0x22 8003cd4: 2105 movs r1, #5 8003cd6: 5499 strb r1, [r3, r2] tts_tiredb[OZ7_RAIN].outerRightStop = 0; 8003cd8: 4b1b ldr r3, [pc, #108] @ (8003d48 ) 8003cda: 2223 movs r2, #35 @ 0x23 8003cdc: 2100 movs r1, #0 8003cde: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].id = JP8_SLICKS; 8003ce0: 4b19 ldr r3, [pc, #100] @ (8003d48 ) 8003ce2: 2224 movs r2, #36 @ 0x24 8003ce4: 2103 movs r1, #3 8003ce6: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].epsilon = 84; 8003ce8: 4b17 ldr r3, [pc, #92] @ (8003d48 ) 8003cea: 2225 movs r2, #37 @ 0x25 8003cec: 2154 movs r1, #84 @ 0x54 8003cee: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerLeftStart = 28; 8003cf0: 4b15 ldr r3, [pc, #84] @ (8003d48 ) 8003cf2: 2226 movs r2, #38 @ 0x26 8003cf4: 211c movs r1, #28 8003cf6: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerLeftStop = 24; 8003cf8: 4b13 ldr r3, [pc, #76] @ (8003d48 ) 8003cfa: 2227 movs r2, #39 @ 0x27 8003cfc: 2118 movs r1, #24 8003cfe: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerLeftStart = 23; 8003d00: 4b11 ldr r3, [pc, #68] @ (8003d48 ) 8003d02: 2228 movs r2, #40 @ 0x28 8003d04: 2117 movs r1, #23 8003d06: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerLeftStop = 19; 8003d08: 4b0f ldr r3, [pc, #60] @ (8003d48 ) 8003d0a: 2229 movs r2, #41 @ 0x29 8003d0c: 2113 movs r1, #19 8003d0e: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerStart = 18; 8003d10: 4b0d ldr r3, [pc, #52] @ (8003d48 ) 8003d12: 222a movs r2, #42 @ 0x2a 8003d14: 2112 movs r1, #18 8003d16: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerStop = 13; 8003d18: 4b0b ldr r3, [pc, #44] @ (8003d48 ) 8003d1a: 222b movs r2, #43 @ 0x2b 8003d1c: 210d movs r1, #13 8003d1e: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerRightStart = 12; 8003d20: 4b09 ldr r3, [pc, #36] @ (8003d48 ) 8003d22: 222c movs r2, #44 @ 0x2c 8003d24: 210c movs r1, #12 8003d26: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerRightStop = 8; 8003d28: 4b07 ldr r3, [pc, #28] @ (8003d48 ) 8003d2a: 222d movs r2, #45 @ 0x2d 8003d2c: 2108 movs r1, #8 8003d2e: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerRightStart = 7; 8003d30: 4b05 ldr r3, [pc, #20] @ (8003d48 ) 8003d32: 222e movs r2, #46 @ 0x2e 8003d34: 2107 movs r1, #7 8003d36: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerRightStop = 3; 8003d38: 4b03 ldr r3, [pc, #12] @ (8003d48 ) 8003d3a: 222f movs r2, #47 @ 0x2f 8003d3c: 2103 movs r1, #3 8003d3e: 5499 strb r1, [r3, r2] } 8003d40: 46c0 nop @ (mov r8, r8) 8003d42: 46bd mov sp, r7 8003d44: bd80 pop {r7, pc} 8003d46: 46c0 nop @ (mov r8, r8) 8003d48: 20000878 .word 0x20000878 08003d4c : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr r0, =_estack 8003d4c: 4813 ldr r0, [pc, #76] @ (8003d9c ) mov sp, r0 /* set stack pointer */ 8003d4e: 4685 mov sp, r0 /* Call the clock system initialization function.*/ bl SystemInit 8003d50: f7ff fd15 bl 800377e /*Check if boot space corresponds to test memory*/ LDR R0,=0x00000004 8003d54: 4812 ldr r0, [pc, #72] @ (8003da0 ) LDR R1, [R0] 8003d56: 6801 ldr r1, [r0, #0] LSRS R1, R1, #24 8003d58: 0e09 lsrs r1, r1, #24 LDR R2,=0x1F 8003d5a: 4a12 ldr r2, [pc, #72] @ (8003da4 ) CMP R1, R2 8003d5c: 4291 cmp r1, r2 BNE ApplicationStart 8003d5e: d105 bne.n 8003d6c /*SYSCFG clock enable*/ LDR R0,=0x40021018 8003d60: 4811 ldr r0, [pc, #68] @ (8003da8 ) LDR R1,=0x00000001 8003d62: 4912 ldr r1, [pc, #72] @ (8003dac ) STR R1, [R0] 8003d64: 6001 str r1, [r0, #0] /*Set CFGR1 register with flash memory remap at address 0*/ LDR R0,=0x40010000 8003d66: 4812 ldr r0, [pc, #72] @ (8003db0 ) LDR R1,=0x00000000 8003d68: 4912 ldr r1, [pc, #72] @ (8003db4 ) STR R1, [R0] 8003d6a: 6001 str r1, [r0, #0] 08003d6c : ApplicationStart: /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata 8003d6c: 4812 ldr r0, [pc, #72] @ (8003db8 ) ldr r1, =_edata 8003d6e: 4913 ldr r1, [pc, #76] @ (8003dbc ) ldr r2, =_sidata 8003d70: 4a13 ldr r2, [pc, #76] @ (8003dc0 ) movs r3, #0 8003d72: 2300 movs r3, #0 b LoopCopyDataInit 8003d74: e002 b.n 8003d7c 08003d76 : CopyDataInit: ldr r4, [r2, r3] 8003d76: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] 8003d78: 50c4 str r4, [r0, r3] adds r3, r3, #4 8003d7a: 3304 adds r3, #4 08003d7c : LoopCopyDataInit: adds r4, r0, r3 8003d7c: 18c4 adds r4, r0, r3 cmp r4, r1 8003d7e: 428c cmp r4, r1 bcc CopyDataInit 8003d80: d3f9 bcc.n 8003d76 /* Zero fill the bss segment. */ ldr r2, =_sbss 8003d82: 4a10 ldr r2, [pc, #64] @ (8003dc4 ) ldr r4, =_ebss 8003d84: 4c10 ldr r4, [pc, #64] @ (8003dc8 ) movs r3, #0 8003d86: 2300 movs r3, #0 b LoopFillZerobss 8003d88: e001 b.n 8003d8e 08003d8a : FillZerobss: str r3, [r2] 8003d8a: 6013 str r3, [r2, #0] adds r2, r2, #4 8003d8c: 3204 adds r2, #4 08003d8e : LoopFillZerobss: cmp r2, r4 8003d8e: 42a2 cmp r2, r4 bcc FillZerobss 8003d90: d3fb bcc.n 8003d8a /* Call static constructors */ bl __libc_init_array 8003d92: f002 fa6d bl 8006270 <__libc_init_array> /* Call the application's entry point.*/ bl main 8003d96: f7ff fa45 bl 8003224
08003d9a : LoopForever: b LoopForever 8003d9a: e7fe b.n 8003d9a ldr r0, =_estack 8003d9c: 20001800 .word 0x20001800 LDR R0,=0x00000004 8003da0: 00000004 .word 0x00000004 LDR R2,=0x1F 8003da4: 0000001f .word 0x0000001f LDR R0,=0x40021018 8003da8: 40021018 .word 0x40021018 LDR R1,=0x00000001 8003dac: 00000001 .word 0x00000001 LDR R0,=0x40010000 8003db0: 40010000 .word 0x40010000 LDR R1,=0x00000000 8003db4: 00000000 .word 0x00000000 ldr r0, =_sdata 8003db8: 20000000 .word 0x20000000 ldr r1, =_edata 8003dbc: 2000000c .word 0x2000000c ldr r2, =_sidata 8003dc0: 080079ec .word 0x080079ec ldr r2, =_sbss 8003dc4: 2000000c .word 0x2000000c ldr r4, =_ebss 8003dc8: 200008ac .word 0x200008ac 08003dcc : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop 8003dcc: e7fe b.n 8003dcc ... 08003dd0 : * In the default implementation,Systick is used as source of time base. * The tick variable is incremented each 1ms in its ISR. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { 8003dd0: b580 push {r7, lr} 8003dd2: af00 add r7, sp, #0 /* Configure Flash prefetch */ #if (PREFETCH_ENABLE != 0) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); 8003dd4: 4b07 ldr r3, [pc, #28] @ (8003df4 ) 8003dd6: 681a ldr r2, [r3, #0] 8003dd8: 4b06 ldr r3, [pc, #24] @ (8003df4 ) 8003dda: 2110 movs r1, #16 8003ddc: 430a orrs r2, r1 8003dde: 601a str r2, [r3, #0] #endif /* PREFETCH_ENABLE */ /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); 8003de0: 2003 movs r0, #3 8003de2: f000 f809 bl 8003df8 /* Init the low level hardware */ HAL_MspInit(); 8003de6: f7ff fbcb bl 8003580 /* Return function status */ return HAL_OK; 8003dea: 2300 movs r3, #0 } 8003dec: 0018 movs r0, r3 8003dee: 46bd mov sp, r7 8003df0: bd80 pop {r7, pc} 8003df2: 46c0 nop @ (mov r8, r8) 8003df4: 40022000 .word 0x40022000 08003df8 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { 8003df8: b590 push {r4, r7, lr} 8003dfa: b083 sub sp, #12 8003dfc: af00 add r7, sp, #0 8003dfe: 6078 str r0, [r7, #4] /*Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) 8003e00: 4b14 ldr r3, [pc, #80] @ (8003e54 ) 8003e02: 681c ldr r4, [r3, #0] 8003e04: 4b14 ldr r3, [pc, #80] @ (8003e58 ) 8003e06: 781b ldrb r3, [r3, #0] 8003e08: 0019 movs r1, r3 8003e0a: 23fa movs r3, #250 @ 0xfa 8003e0c: 0098 lsls r0, r3, #2 8003e0e: f7fc f97b bl 8000108 <__udivsi3> 8003e12: 0003 movs r3, r0 8003e14: 0019 movs r1, r3 8003e16: 0020 movs r0, r4 8003e18: f7fc f976 bl 8000108 <__udivsi3> 8003e1c: 0003 movs r3, r0 8003e1e: 0018 movs r0, r3 8003e20: f000 fb1b bl 800445a 8003e24: 1e03 subs r3, r0, #0 8003e26: d001 beq.n 8003e2c { return HAL_ERROR; 8003e28: 2301 movs r3, #1 8003e2a: e00f b.n 8003e4c } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) 8003e2c: 687b ldr r3, [r7, #4] 8003e2e: 2b03 cmp r3, #3 8003e30: d80b bhi.n 8003e4a { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); 8003e32: 6879 ldr r1, [r7, #4] 8003e34: 2301 movs r3, #1 8003e36: 425b negs r3, r3 8003e38: 2200 movs r2, #0 8003e3a: 0018 movs r0, r3 8003e3c: f000 faf8 bl 8004430 uwTickPrio = TickPriority; 8003e40: 4b06 ldr r3, [pc, #24] @ (8003e5c ) 8003e42: 687a ldr r2, [r7, #4] 8003e44: 601a str r2, [r3, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; 8003e46: 2300 movs r3, #0 8003e48: e000 b.n 8003e4c return HAL_ERROR; 8003e4a: 2301 movs r3, #1 } 8003e4c: 0018 movs r0, r3 8003e4e: 46bd mov sp, r7 8003e50: b003 add sp, #12 8003e52: bd90 pop {r4, r7, pc} 8003e54: 20000000 .word 0x20000000 8003e58: 20000008 .word 0x20000008 8003e5c: 20000004 .word 0x20000004 08003e60 : * @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) { 8003e60: b580 push {r7, lr} 8003e62: af00 add r7, sp, #0 uwTick += uwTickFreq; 8003e64: 4b05 ldr r3, [pc, #20] @ (8003e7c ) 8003e66: 781b ldrb r3, [r3, #0] 8003e68: 001a movs r2, r3 8003e6a: 4b05 ldr r3, [pc, #20] @ (8003e80 ) 8003e6c: 681b ldr r3, [r3, #0] 8003e6e: 18d2 adds r2, r2, r3 8003e70: 4b03 ldr r3, [pc, #12] @ (8003e80 ) 8003e72: 601a str r2, [r3, #0] } 8003e74: 46c0 nop @ (mov r8, r8) 8003e76: 46bd mov sp, r7 8003e78: bd80 pop {r7, pc} 8003e7a: 46c0 nop @ (mov r8, r8) 8003e7c: 20000008 .word 0x20000008 8003e80: 200008a8 .word 0x200008a8 08003e84 : * @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) { 8003e84: b580 push {r7, lr} 8003e86: af00 add r7, sp, #0 return uwTick; 8003e88: 4b02 ldr r3, [pc, #8] @ (8003e94 ) 8003e8a: 681b ldr r3, [r3, #0] } 8003e8c: 0018 movs r0, r3 8003e8e: 46bd mov sp, r7 8003e90: bd80 pop {r7, pc} 8003e92: 46c0 nop @ (mov r8, r8) 8003e94: 200008a8 .word 0x200008a8 08003e98 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { 8003e98: b580 push {r7, lr} 8003e9a: b084 sub sp, #16 8003e9c: af00 add r7, sp, #0 8003e9e: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 8003ea0: f7ff fff0 bl 8003e84 8003ea4: 0003 movs r3, r0 8003ea6: 60bb str r3, [r7, #8] uint32_t wait = Delay; 8003ea8: 687b ldr r3, [r7, #4] 8003eaa: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) 8003eac: 68fb ldr r3, [r7, #12] 8003eae: 3301 adds r3, #1 8003eb0: d005 beq.n 8003ebe { wait += (uint32_t)(uwTickFreq); 8003eb2: 4b0a ldr r3, [pc, #40] @ (8003edc ) 8003eb4: 781b ldrb r3, [r3, #0] 8003eb6: 001a movs r2, r3 8003eb8: 68fb ldr r3, [r7, #12] 8003eba: 189b adds r3, r3, r2 8003ebc: 60fb str r3, [r7, #12] } while((HAL_GetTick() - tickstart) < wait) 8003ebe: 46c0 nop @ (mov r8, r8) 8003ec0: f7ff ffe0 bl 8003e84 8003ec4: 0002 movs r2, r0 8003ec6: 68bb ldr r3, [r7, #8] 8003ec8: 1ad3 subs r3, r2, r3 8003eca: 68fa ldr r2, [r7, #12] 8003ecc: 429a cmp r2, r3 8003ece: d8f7 bhi.n 8003ec0 { } } 8003ed0: 46c0 nop @ (mov r8, r8) 8003ed2: 46c0 nop @ (mov r8, r8) 8003ed4: 46bd mov sp, r7 8003ed6: b004 add sp, #16 8003ed8: bd80 pop {r7, pc} 8003eda: 46c0 nop @ (mov r8, r8) 8003edc: 20000008 .word 0x20000008 08003ee0 : * @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) { 8003ee0: b580 push {r7, lr} 8003ee2: b084 sub sp, #16 8003ee4: af00 add r7, sp, #0 8003ee6: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) 8003ee8: 687b ldr r3, [r7, #4] 8003eea: 2b00 cmp r3, #0 8003eec: d101 bne.n 8003ef2 { return HAL_ERROR; 8003eee: 2301 movs r3, #1 8003ef0: e0f0 b.n 80040d4 /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) 8003ef2: 687b ldr r3, [r7, #4] 8003ef4: 2220 movs r2, #32 8003ef6: 5c9b ldrb r3, [r3, r2] 8003ef8: b2db uxtb r3, r3 8003efa: 2b00 cmp r3, #0 8003efc: d103 bne.n 8003f06 { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); 8003efe: 687b ldr r3, [r7, #4] 8003f00: 0018 movs r0, r3 8003f02: f7ff fb61 bl 80035c8 } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 8003f06: 687b ldr r3, [r7, #4] 8003f08: 681b ldr r3, [r3, #0] 8003f0a: 681a ldr r2, [r3, #0] 8003f0c: 687b ldr r3, [r7, #4] 8003f0e: 681b ldr r3, [r3, #0] 8003f10: 2101 movs r1, #1 8003f12: 430a orrs r2, r1 8003f14: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 8003f16: f7ff ffb5 bl 8003e84 8003f1a: 0003 movs r3, r0 8003f1c: 60fb str r3, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 8003f1e: e013 b.n 8003f48 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 8003f20: f7ff ffb0 bl 8003e84 8003f24: 0002 movs r2, r0 8003f26: 68fb ldr r3, [r7, #12] 8003f28: 1ad3 subs r3, r2, r3 8003f2a: 2b0a cmp r3, #10 8003f2c: d90c bls.n 8003f48 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 8003f2e: 687b ldr r3, [r7, #4] 8003f30: 6a5b ldr r3, [r3, #36] @ 0x24 8003f32: 2280 movs r2, #128 @ 0x80 8003f34: 0292 lsls r2, r2, #10 8003f36: 431a orrs r2, r3 8003f38: 687b ldr r3, [r7, #4] 8003f3a: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 8003f3c: 687b ldr r3, [r7, #4] 8003f3e: 2220 movs r2, #32 8003f40: 2105 movs r1, #5 8003f42: 5499 strb r1, [r3, r2] return HAL_ERROR; 8003f44: 2301 movs r3, #1 8003f46: e0c5 b.n 80040d4 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) 8003f48: 687b ldr r3, [r7, #4] 8003f4a: 681b ldr r3, [r3, #0] 8003f4c: 685b ldr r3, [r3, #4] 8003f4e: 2201 movs r2, #1 8003f50: 4013 ands r3, r2 8003f52: d0e5 beq.n 8003f20 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); 8003f54: 687b ldr r3, [r7, #4] 8003f56: 681b ldr r3, [r3, #0] 8003f58: 681a ldr r2, [r3, #0] 8003f5a: 687b ldr r3, [r7, #4] 8003f5c: 681b ldr r3, [r3, #0] 8003f5e: 2102 movs r1, #2 8003f60: 438a bics r2, r1 8003f62: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 8003f64: f7ff ff8e bl 8003e84 8003f68: 0003 movs r3, r0 8003f6a: 60fb str r3, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 8003f6c: e013 b.n 8003f96 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 8003f6e: f7ff ff89 bl 8003e84 8003f72: 0002 movs r2, r0 8003f74: 68fb ldr r3, [r7, #12] 8003f76: 1ad3 subs r3, r2, r3 8003f78: 2b0a cmp r3, #10 8003f7a: d90c bls.n 8003f96 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 8003f7c: 687b ldr r3, [r7, #4] 8003f7e: 6a5b ldr r3, [r3, #36] @ 0x24 8003f80: 2280 movs r2, #128 @ 0x80 8003f82: 0292 lsls r2, r2, #10 8003f84: 431a orrs r2, r3 8003f86: 687b ldr r3, [r7, #4] 8003f88: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 8003f8a: 687b ldr r3, [r7, #4] 8003f8c: 2220 movs r2, #32 8003f8e: 2105 movs r1, #5 8003f90: 5499 strb r1, [r3, r2] return HAL_ERROR; 8003f92: 2301 movs r3, #1 8003f94: e09e b.n 80040d4 while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) 8003f96: 687b ldr r3, [r7, #4] 8003f98: 681b ldr r3, [r3, #0] 8003f9a: 685b ldr r3, [r3, #4] 8003f9c: 2202 movs r2, #2 8003f9e: 4013 ands r3, r2 8003fa0: d1e5 bne.n 8003f6e } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) 8003fa2: 687b ldr r3, [r7, #4] 8003fa4: 7e1b ldrb r3, [r3, #24] 8003fa6: 2b01 cmp r3, #1 8003fa8: d108 bne.n 8003fbc { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 8003faa: 687b ldr r3, [r7, #4] 8003fac: 681b ldr r3, [r3, #0] 8003fae: 681a ldr r2, [r3, #0] 8003fb0: 687b ldr r3, [r7, #4] 8003fb2: 681b ldr r3, [r3, #0] 8003fb4: 2180 movs r1, #128 @ 0x80 8003fb6: 430a orrs r2, r1 8003fb8: 601a str r2, [r3, #0] 8003fba: e007 b.n 8003fcc } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); 8003fbc: 687b ldr r3, [r7, #4] 8003fbe: 681b ldr r3, [r3, #0] 8003fc0: 681a ldr r2, [r3, #0] 8003fc2: 687b ldr r3, [r7, #4] 8003fc4: 681b ldr r3, [r3, #0] 8003fc6: 2180 movs r1, #128 @ 0x80 8003fc8: 438a bics r2, r1 8003fca: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) 8003fcc: 687b ldr r3, [r7, #4] 8003fce: 7e5b ldrb r3, [r3, #25] 8003fd0: 2b01 cmp r3, #1 8003fd2: d108 bne.n 8003fe6 { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 8003fd4: 687b ldr r3, [r7, #4] 8003fd6: 681b ldr r3, [r3, #0] 8003fd8: 681a ldr r2, [r3, #0] 8003fda: 687b ldr r3, [r7, #4] 8003fdc: 681b ldr r3, [r3, #0] 8003fde: 2140 movs r1, #64 @ 0x40 8003fe0: 430a orrs r2, r1 8003fe2: 601a str r2, [r3, #0] 8003fe4: e007 b.n 8003ff6 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); 8003fe6: 687b ldr r3, [r7, #4] 8003fe8: 681b ldr r3, [r3, #0] 8003fea: 681a ldr r2, [r3, #0] 8003fec: 687b ldr r3, [r7, #4] 8003fee: 681b ldr r3, [r3, #0] 8003ff0: 2140 movs r1, #64 @ 0x40 8003ff2: 438a bics r2, r1 8003ff4: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) 8003ff6: 687b ldr r3, [r7, #4] 8003ff8: 7e9b ldrb r3, [r3, #26] 8003ffa: 2b01 cmp r3, #1 8003ffc: d108 bne.n 8004010 { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 8003ffe: 687b ldr r3, [r7, #4] 8004000: 681b ldr r3, [r3, #0] 8004002: 681a ldr r2, [r3, #0] 8004004: 687b ldr r3, [r7, #4] 8004006: 681b ldr r3, [r3, #0] 8004008: 2120 movs r1, #32 800400a: 430a orrs r2, r1 800400c: 601a str r2, [r3, #0] 800400e: e007 b.n 8004020 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); 8004010: 687b ldr r3, [r7, #4] 8004012: 681b ldr r3, [r3, #0] 8004014: 681a ldr r2, [r3, #0] 8004016: 687b ldr r3, [r7, #4] 8004018: 681b ldr r3, [r3, #0] 800401a: 2120 movs r1, #32 800401c: 438a bics r2, r1 800401e: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) 8004020: 687b ldr r3, [r7, #4] 8004022: 7edb ldrb r3, [r3, #27] 8004024: 2b01 cmp r3, #1 8004026: d108 bne.n 800403a { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); 8004028: 687b ldr r3, [r7, #4] 800402a: 681b ldr r3, [r3, #0] 800402c: 681a ldr r2, [r3, #0] 800402e: 687b ldr r3, [r7, #4] 8004030: 681b ldr r3, [r3, #0] 8004032: 2110 movs r1, #16 8004034: 438a bics r2, r1 8004036: 601a str r2, [r3, #0] 8004038: e007 b.n 800404a } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); 800403a: 687b ldr r3, [r7, #4] 800403c: 681b ldr r3, [r3, #0] 800403e: 681a ldr r2, [r3, #0] 8004040: 687b ldr r3, [r7, #4] 8004042: 681b ldr r3, [r3, #0] 8004044: 2110 movs r1, #16 8004046: 430a orrs r2, r1 8004048: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) 800404a: 687b ldr r3, [r7, #4] 800404c: 7f1b ldrb r3, [r3, #28] 800404e: 2b01 cmp r3, #1 8004050: d108 bne.n 8004064 { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 8004052: 687b ldr r3, [r7, #4] 8004054: 681b ldr r3, [r3, #0] 8004056: 681a ldr r2, [r3, #0] 8004058: 687b ldr r3, [r7, #4] 800405a: 681b ldr r3, [r3, #0] 800405c: 2108 movs r1, #8 800405e: 430a orrs r2, r1 8004060: 601a str r2, [r3, #0] 8004062: e007 b.n 8004074 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); 8004064: 687b ldr r3, [r7, #4] 8004066: 681b ldr r3, [r3, #0] 8004068: 681a ldr r2, [r3, #0] 800406a: 687b ldr r3, [r7, #4] 800406c: 681b ldr r3, [r3, #0] 800406e: 2108 movs r1, #8 8004070: 438a bics r2, r1 8004072: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) 8004074: 687b ldr r3, [r7, #4] 8004076: 7f5b ldrb r3, [r3, #29] 8004078: 2b01 cmp r3, #1 800407a: d108 bne.n 800408e { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800407c: 687b ldr r3, [r7, #4] 800407e: 681b ldr r3, [r3, #0] 8004080: 681a ldr r2, [r3, #0] 8004082: 687b ldr r3, [r7, #4] 8004084: 681b ldr r3, [r3, #0] 8004086: 2104 movs r1, #4 8004088: 430a orrs r2, r1 800408a: 601a str r2, [r3, #0] 800408c: e007 b.n 800409e } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); 800408e: 687b ldr r3, [r7, #4] 8004090: 681b ldr r3, [r3, #0] 8004092: 681a ldr r2, [r3, #0] 8004094: 687b ldr r3, [r7, #4] 8004096: 681b ldr r3, [r3, #0] 8004098: 2104 movs r1, #4 800409a: 438a bics r2, r1 800409c: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | 800409e: 687b ldr r3, [r7, #4] 80040a0: 689a ldr r2, [r3, #8] 80040a2: 687b ldr r3, [r7, #4] 80040a4: 68db ldr r3, [r3, #12] 80040a6: 431a orrs r2, r3 80040a8: 687b ldr r3, [r7, #4] 80040aa: 691b ldr r3, [r3, #16] 80040ac: 431a orrs r2, r3 80040ae: 687b ldr r3, [r7, #4] 80040b0: 695b ldr r3, [r3, #20] 80040b2: 431a orrs r2, r3 80040b4: 0011 movs r1, r2 80040b6: 687b ldr r3, [r7, #4] 80040b8: 685b ldr r3, [r3, #4] 80040ba: 1e5a subs r2, r3, #1 80040bc: 687b ldr r3, [r7, #4] 80040be: 681b ldr r3, [r3, #0] 80040c0: 430a orrs r2, r1 80040c2: 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; 80040c4: 687b ldr r3, [r7, #4] 80040c6: 2200 movs r2, #0 80040c8: 625a str r2, [r3, #36] @ 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; 80040ca: 687b ldr r3, [r7, #4] 80040cc: 2220 movs r2, #32 80040ce: 2101 movs r1, #1 80040d0: 5499 strb r1, [r3, r2] /* Return function status */ return HAL_OK; 80040d2: 2300 movs r3, #0 } 80040d4: 0018 movs r0, r3 80040d6: 46bd mov sp, r7 80040d8: b004 add sp, #16 80040da: bd80 pop {r7, pc} 080040dc : * @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) { 80040dc: b580 push {r7, lr} 80040de: b084 sub sp, #16 80040e0: af00 add r7, sp, #0 80040e2: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) 80040e4: 687b ldr r3, [r7, #4] 80040e6: 2220 movs r2, #32 80040e8: 5c9b ldrb r3, [r3, r2] 80040ea: b2db uxtb r3, r3 80040ec: 2b01 cmp r3, #1 80040ee: d12f bne.n 8004150 { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; 80040f0: 687b ldr r3, [r7, #4] 80040f2: 2220 movs r2, #32 80040f4: 2102 movs r1, #2 80040f6: 5499 strb r1, [r3, r2] /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); 80040f8: 687b ldr r3, [r7, #4] 80040fa: 681b ldr r3, [r3, #0] 80040fc: 681a ldr r2, [r3, #0] 80040fe: 687b ldr r3, [r7, #4] 8004100: 681b ldr r3, [r3, #0] 8004102: 2101 movs r1, #1 8004104: 438a bics r2, r1 8004106: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); 8004108: f7ff febc bl 8003e84 800410c: 0003 movs r3, r0 800410e: 60fb str r3, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 8004110: e013 b.n 800413a { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) 8004112: f7ff feb7 bl 8003e84 8004116: 0002 movs r2, r0 8004118: 68fb ldr r3, [r7, #12] 800411a: 1ad3 subs r3, r2, r3 800411c: 2b0a cmp r3, #10 800411e: d90c bls.n 800413a { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; 8004120: 687b ldr r3, [r7, #4] 8004122: 6a5b ldr r3, [r3, #36] @ 0x24 8004124: 2280 movs r2, #128 @ 0x80 8004126: 0292 lsls r2, r2, #10 8004128: 431a orrs r2, r3 800412a: 687b ldr r3, [r7, #4] 800412c: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; 800412e: 687b ldr r3, [r7, #4] 8004130: 2220 movs r2, #32 8004132: 2105 movs r1, #5 8004134: 5499 strb r1, [r3, r2] return HAL_ERROR; 8004136: 2301 movs r3, #1 8004138: e012 b.n 8004160 while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) 800413a: 687b ldr r3, [r7, #4] 800413c: 681b ldr r3, [r3, #0] 800413e: 685b ldr r3, [r3, #4] 8004140: 2201 movs r2, #1 8004142: 4013 ands r3, r2 8004144: d1e5 bne.n 8004112 } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; 8004146: 687b ldr r3, [r7, #4] 8004148: 2200 movs r2, #0 800414a: 625a str r2, [r3, #36] @ 0x24 /* Return function status */ return HAL_OK; 800414c: 2300 movs r3, #0 800414e: e007 b.n 8004160 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; 8004150: 687b ldr r3, [r7, #4] 8004152: 6a5b ldr r3, [r3, #36] @ 0x24 8004154: 2280 movs r2, #128 @ 0x80 8004156: 0312 lsls r2, r2, #12 8004158: 431a orrs r2, r3 800415a: 687b ldr r3, [r7, #4] 800415c: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 800415e: 2301 movs r3, #1 } } 8004160: 0018 movs r0, r3 8004162: 46bd mov sp, r7 8004164: b004 add sp, #16 8004166: bd80 pop {r7, pc} 08004168 : * 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) { 8004168: b580 push {r7, lr} 800416a: b088 sub sp, #32 800416c: af00 add r7, sp, #0 800416e: 60f8 str r0, [r7, #12] 8004170: 60b9 str r1, [r7, #8] 8004172: 607a str r2, [r7, #4] 8004174: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; 8004176: 201f movs r0, #31 8004178: 183b adds r3, r7, r0 800417a: 68fa ldr r2, [r7, #12] 800417c: 2120 movs r1, #32 800417e: 5c52 ldrb r2, [r2, r1] 8004180: 701a strb r2, [r3, #0] uint32_t tsr = READ_REG(hcan->Instance->TSR); 8004182: 68fb ldr r3, [r7, #12] 8004184: 681b ldr r3, [r3, #0] 8004186: 689b ldr r3, [r3, #8] 8004188: 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) || 800418a: 183b adds r3, r7, r0 800418c: 781b ldrb r3, [r3, #0] 800418e: 2b01 cmp r3, #1 8004190: d004 beq.n 800419c 8004192: 183b adds r3, r7, r0 8004194: 781b ldrb r3, [r3, #0] 8004196: 2b02 cmp r3, #2 8004198: d000 beq.n 800419c 800419a: e0ab b.n 80042f4 (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || 800419c: 69ba ldr r2, [r7, #24] 800419e: 2380 movs r3, #128 @ 0x80 80041a0: 04db lsls r3, r3, #19 80041a2: 4013 ands r3, r2 80041a4: d10a bne.n 80041bc ((tsr & CAN_TSR_TME1) != 0U) || 80041a6: 69ba ldr r2, [r7, #24] 80041a8: 2380 movs r3, #128 @ 0x80 80041aa: 051b lsls r3, r3, #20 80041ac: 4013 ands r3, r2 if (((tsr & CAN_TSR_TME0) != 0U) || 80041ae: d105 bne.n 80041bc ((tsr & CAN_TSR_TME2) != 0U)) 80041b0: 69ba ldr r2, [r7, #24] 80041b2: 2380 movs r3, #128 @ 0x80 80041b4: 055b lsls r3, r3, #21 80041b6: 4013 ands r3, r2 ((tsr & CAN_TSR_TME1) != 0U) || 80041b8: d100 bne.n 80041bc 80041ba: e092 b.n 80042e2 { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; 80041bc: 69bb ldr r3, [r7, #24] 80041be: 0e1b lsrs r3, r3, #24 80041c0: 2203 movs r2, #3 80041c2: 4013 ands r3, r2 80041c4: 617b str r3, [r7, #20] /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; 80041c6: 2201 movs r2, #1 80041c8: 697b ldr r3, [r7, #20] 80041ca: 409a lsls r2, r3 80041cc: 683b ldr r3, [r7, #0] 80041ce: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) 80041d0: 68bb ldr r3, [r7, #8] 80041d2: 689b ldr r3, [r3, #8] 80041d4: 2b00 cmp r3, #0 80041d6: d10c bne.n 80041f2 { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 80041d8: 68bb ldr r3, [r7, #8] 80041da: 681b ldr r3, [r3, #0] 80041dc: 0559 lsls r1, r3, #21 pHeader->RTR); 80041de: 68bb ldr r3, [r7, #8] 80041e0: 68da ldr r2, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | 80041e2: 68fb ldr r3, [r7, #12] 80041e4: 681b ldr r3, [r3, #0] 80041e6: 4311 orrs r1, r2 80041e8: 697a ldr r2, [r7, #20] 80041ea: 3218 adds r2, #24 80041ec: 0112 lsls r2, r2, #4 80041ee: 50d1 str r1, [r2, r3] 80041f0: e00f b.n 8004212 } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 80041f2: 68bb ldr r3, [r7, #8] 80041f4: 685b ldr r3, [r3, #4] 80041f6: 00da lsls r2, r3, #3 pHeader->IDE | 80041f8: 68bb ldr r3, [r7, #8] 80041fa: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 80041fc: 431a orrs r2, r3 80041fe: 0011 movs r1, r2 pHeader->RTR); 8004200: 68bb ldr r3, [r7, #8] 8004202: 68da ldr r2, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 8004204: 68fb ldr r3, [r7, #12] 8004206: 681b ldr r3, [r3, #0] pHeader->IDE | 8004208: 4311 orrs r1, r2 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | 800420a: 697a ldr r2, [r7, #20] 800420c: 3218 adds r2, #24 800420e: 0112 lsls r2, r2, #4 8004210: 50d1 str r1, [r2, r3] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); 8004212: 68fb ldr r3, [r7, #12] 8004214: 6819 ldr r1, [r3, #0] 8004216: 68bb ldr r3, [r7, #8] 8004218: 691a ldr r2, [r3, #16] 800421a: 697b ldr r3, [r7, #20] 800421c: 3318 adds r3, #24 800421e: 011b lsls r3, r3, #4 8004220: 18cb adds r3, r1, r3 8004222: 3304 adds r3, #4 8004224: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) 8004226: 68bb ldr r3, [r7, #8] 8004228: 7d1b ldrb r3, [r3, #20] 800422a: 2b01 cmp r3, #1 800422c: d112 bne.n 8004254 { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); 800422e: 68fb ldr r3, [r7, #12] 8004230: 681a ldr r2, [r3, #0] 8004232: 697b ldr r3, [r7, #20] 8004234: 3318 adds r3, #24 8004236: 011b lsls r3, r3, #4 8004238: 18d3 adds r3, r2, r3 800423a: 3304 adds r3, #4 800423c: 681a ldr r2, [r3, #0] 800423e: 68fb ldr r3, [r7, #12] 8004240: 6819 ldr r1, [r3, #0] 8004242: 2380 movs r3, #128 @ 0x80 8004244: 005b lsls r3, r3, #1 8004246: 431a orrs r2, r3 8004248: 697b ldr r3, [r7, #20] 800424a: 3318 adds r3, #24 800424c: 011b lsls r3, r3, #4 800424e: 18cb adds r3, r1, r3 8004250: 3304 adds r3, #4 8004252: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, 8004254: 687b ldr r3, [r7, #4] 8004256: 3307 adds r3, #7 8004258: 781b ldrb r3, [r3, #0] 800425a: 061a lsls r2, r3, #24 800425c: 687b ldr r3, [r7, #4] 800425e: 3306 adds r3, #6 8004260: 781b ldrb r3, [r3, #0] 8004262: 041b lsls r3, r3, #16 8004264: 431a orrs r2, r3 8004266: 687b ldr r3, [r7, #4] 8004268: 3305 adds r3, #5 800426a: 781b ldrb r3, [r3, #0] 800426c: 021b lsls r3, r3, #8 800426e: 431a orrs r2, r3 8004270: 687b ldr r3, [r7, #4] 8004272: 3304 adds r3, #4 8004274: 781b ldrb r3, [r3, #0] 8004276: 0019 movs r1, r3 8004278: 68fb ldr r3, [r7, #12] 800427a: 6818 ldr r0, [r3, #0] 800427c: 430a orrs r2, r1 800427e: 6979 ldr r1, [r7, #20] 8004280: 23c6 movs r3, #198 @ 0xc6 8004282: 005b lsls r3, r3, #1 8004284: 0109 lsls r1, r1, #4 8004286: 1841 adds r1, r0, r1 8004288: 18cb adds r3, r1, r3 800428a: 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, 800428c: 687b ldr r3, [r7, #4] 800428e: 3303 adds r3, #3 8004290: 781b ldrb r3, [r3, #0] 8004292: 061a lsls r2, r3, #24 8004294: 687b ldr r3, [r7, #4] 8004296: 3302 adds r3, #2 8004298: 781b ldrb r3, [r3, #0] 800429a: 041b lsls r3, r3, #16 800429c: 431a orrs r2, r3 800429e: 687b ldr r3, [r7, #4] 80042a0: 3301 adds r3, #1 80042a2: 781b ldrb r3, [r3, #0] 80042a4: 021b lsls r3, r3, #8 80042a6: 431a orrs r2, r3 80042a8: 687b ldr r3, [r7, #4] 80042aa: 781b ldrb r3, [r3, #0] 80042ac: 0019 movs r1, r3 80042ae: 68fb ldr r3, [r7, #12] 80042b0: 6818 ldr r0, [r3, #0] 80042b2: 430a orrs r2, r1 80042b4: 6979 ldr r1, [r7, #20] 80042b6: 23c4 movs r3, #196 @ 0xc4 80042b8: 005b lsls r3, r3, #1 80042ba: 0109 lsls r1, r1, #4 80042bc: 1841 adds r1, r0, r1 80042be: 18cb adds r3, r1, r3 80042c0: 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); 80042c2: 68fb ldr r3, [r7, #12] 80042c4: 681b ldr r3, [r3, #0] 80042c6: 697a ldr r2, [r7, #20] 80042c8: 3218 adds r2, #24 80042ca: 0112 lsls r2, r2, #4 80042cc: 58d2 ldr r2, [r2, r3] 80042ce: 68fb ldr r3, [r7, #12] 80042d0: 681b ldr r3, [r3, #0] 80042d2: 2101 movs r1, #1 80042d4: 4311 orrs r1, r2 80042d6: 697a ldr r2, [r7, #20] 80042d8: 3218 adds r2, #24 80042da: 0112 lsls r2, r2, #4 80042dc: 50d1 str r1, [r2, r3] /* Return function status */ return HAL_OK; 80042de: 2300 movs r3, #0 80042e0: e010 b.n 8004304 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; 80042e2: 68fb ldr r3, [r7, #12] 80042e4: 6a5b ldr r3, [r3, #36] @ 0x24 80042e6: 2280 movs r2, #128 @ 0x80 80042e8: 0392 lsls r2, r2, #14 80042ea: 431a orrs r2, r3 80042ec: 68fb ldr r3, [r7, #12] 80042ee: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 80042f0: 2301 movs r3, #1 80042f2: e007 b.n 8004304 } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; 80042f4: 68fb ldr r3, [r7, #12] 80042f6: 6a5b ldr r3, [r3, #36] @ 0x24 80042f8: 2280 movs r2, #128 @ 0x80 80042fa: 02d2 lsls r2, r2, #11 80042fc: 431a orrs r2, r3 80042fe: 68fb ldr r3, [r7, #12] 8004300: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; 8004302: 2301 movs r3, #1 } } 8004304: 0018 movs r0, r3 8004306: 46bd mov sp, r7 8004308: b008 add sp, #32 800430a: bd80 pop {r7, pc} 0800430c <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { 800430c: b590 push {r4, r7, lr} 800430e: b083 sub sp, #12 8004310: af00 add r7, sp, #0 8004312: 0002 movs r2, r0 8004314: 6039 str r1, [r7, #0] 8004316: 1dfb adds r3, r7, #7 8004318: 701a strb r2, [r3, #0] if ((int32_t)(IRQn) >= 0) 800431a: 1dfb adds r3, r7, #7 800431c: 781b ldrb r3, [r3, #0] 800431e: 2b7f cmp r3, #127 @ 0x7f 8004320: d828 bhi.n 8004374 <__NVIC_SetPriority+0x68> { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | 8004322: 4a2f ldr r2, [pc, #188] @ (80043e0 <__NVIC_SetPriority+0xd4>) 8004324: 1dfb adds r3, r7, #7 8004326: 781b ldrb r3, [r3, #0] 8004328: b25b sxtb r3, r3 800432a: 089b lsrs r3, r3, #2 800432c: 33c0 adds r3, #192 @ 0xc0 800432e: 009b lsls r3, r3, #2 8004330: 589b ldr r3, [r3, r2] 8004332: 1dfa adds r2, r7, #7 8004334: 7812 ldrb r2, [r2, #0] 8004336: 0011 movs r1, r2 8004338: 2203 movs r2, #3 800433a: 400a ands r2, r1 800433c: 00d2 lsls r2, r2, #3 800433e: 21ff movs r1, #255 @ 0xff 8004340: 4091 lsls r1, r2 8004342: 000a movs r2, r1 8004344: 43d2 mvns r2, r2 8004346: 401a ands r2, r3 8004348: 0011 movs r1, r2 (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); 800434a: 683b ldr r3, [r7, #0] 800434c: 019b lsls r3, r3, #6 800434e: 22ff movs r2, #255 @ 0xff 8004350: 401a ands r2, r3 8004352: 1dfb adds r3, r7, #7 8004354: 781b ldrb r3, [r3, #0] 8004356: 0018 movs r0, r3 8004358: 2303 movs r3, #3 800435a: 4003 ands r3, r0 800435c: 00db lsls r3, r3, #3 800435e: 409a lsls r2, r3 NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | 8004360: 481f ldr r0, [pc, #124] @ (80043e0 <__NVIC_SetPriority+0xd4>) 8004362: 1dfb adds r3, r7, #7 8004364: 781b ldrb r3, [r3, #0] 8004366: b25b sxtb r3, r3 8004368: 089b lsrs r3, r3, #2 800436a: 430a orrs r2, r1 800436c: 33c0 adds r3, #192 @ 0xc0 800436e: 009b lsls r3, r3, #2 8004370: 501a str r2, [r3, r0] else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } 8004372: e031 b.n 80043d8 <__NVIC_SetPriority+0xcc> SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | 8004374: 4a1b ldr r2, [pc, #108] @ (80043e4 <__NVIC_SetPriority+0xd8>) 8004376: 1dfb adds r3, r7, #7 8004378: 781b ldrb r3, [r3, #0] 800437a: 0019 movs r1, r3 800437c: 230f movs r3, #15 800437e: 400b ands r3, r1 8004380: 3b08 subs r3, #8 8004382: 089b lsrs r3, r3, #2 8004384: 3306 adds r3, #6 8004386: 009b lsls r3, r3, #2 8004388: 18d3 adds r3, r2, r3 800438a: 3304 adds r3, #4 800438c: 681b ldr r3, [r3, #0] 800438e: 1dfa adds r2, r7, #7 8004390: 7812 ldrb r2, [r2, #0] 8004392: 0011 movs r1, r2 8004394: 2203 movs r2, #3 8004396: 400a ands r2, r1 8004398: 00d2 lsls r2, r2, #3 800439a: 21ff movs r1, #255 @ 0xff 800439c: 4091 lsls r1, r2 800439e: 000a movs r2, r1 80043a0: 43d2 mvns r2, r2 80043a2: 401a ands r2, r3 80043a4: 0011 movs r1, r2 (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); 80043a6: 683b ldr r3, [r7, #0] 80043a8: 019b lsls r3, r3, #6 80043aa: 22ff movs r2, #255 @ 0xff 80043ac: 401a ands r2, r3 80043ae: 1dfb adds r3, r7, #7 80043b0: 781b ldrb r3, [r3, #0] 80043b2: 0018 movs r0, r3 80043b4: 2303 movs r3, #3 80043b6: 4003 ands r3, r0 80043b8: 00db lsls r3, r3, #3 80043ba: 409a lsls r2, r3 SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | 80043bc: 4809 ldr r0, [pc, #36] @ (80043e4 <__NVIC_SetPriority+0xd8>) 80043be: 1dfb adds r3, r7, #7 80043c0: 781b ldrb r3, [r3, #0] 80043c2: 001c movs r4, r3 80043c4: 230f movs r3, #15 80043c6: 4023 ands r3, r4 80043c8: 3b08 subs r3, #8 80043ca: 089b lsrs r3, r3, #2 80043cc: 430a orrs r2, r1 80043ce: 3306 adds r3, #6 80043d0: 009b lsls r3, r3, #2 80043d2: 18c3 adds r3, r0, r3 80043d4: 3304 adds r3, #4 80043d6: 601a str r2, [r3, #0] } 80043d8: 46c0 nop @ (mov r8, r8) 80043da: 46bd mov sp, r7 80043dc: b003 add sp, #12 80043de: bd90 pop {r4, r7, pc} 80043e0: e000e100 .word 0xe000e100 80043e4: e000ed00 .word 0xe000ed00 080043e8 : \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) { 80043e8: b580 push {r7, lr} 80043ea: b082 sub sp, #8 80043ec: af00 add r7, sp, #0 80043ee: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) 80043f0: 687b ldr r3, [r7, #4] 80043f2: 1e5a subs r2, r3, #1 80043f4: 2380 movs r3, #128 @ 0x80 80043f6: 045b lsls r3, r3, #17 80043f8: 429a cmp r2, r3 80043fa: d301 bcc.n 8004400 { return (1UL); /* Reload value impossible */ 80043fc: 2301 movs r3, #1 80043fe: e010 b.n 8004422 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ 8004400: 4b0a ldr r3, [pc, #40] @ (800442c ) 8004402: 687a ldr r2, [r7, #4] 8004404: 3a01 subs r2, #1 8004406: 605a str r2, [r3, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ 8004408: 2301 movs r3, #1 800440a: 425b negs r3, r3 800440c: 2103 movs r1, #3 800440e: 0018 movs r0, r3 8004410: f7ff ff7c bl 800430c <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ 8004414: 4b05 ldr r3, [pc, #20] @ (800442c ) 8004416: 2200 movs r2, #0 8004418: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | 800441a: 4b04 ldr r3, [pc, #16] @ (800442c ) 800441c: 2207 movs r2, #7 800441e: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ 8004420: 2300 movs r3, #0 } 8004422: 0018 movs r0, r3 8004424: 46bd mov sp, r7 8004426: b002 add sp, #8 8004428: bd80 pop {r7, pc} 800442a: 46c0 nop @ (mov r8, r8) 800442c: e000e010 .word 0xe000e010 08004430 : * with stm32f0xx devices, this parameter is a dummy value and it is ignored, because * no subpriority supported in Cortex M0 based products. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { 8004430: b580 push {r7, lr} 8004432: b084 sub sp, #16 8004434: af00 add r7, sp, #0 8004436: 60b9 str r1, [r7, #8] 8004438: 607a str r2, [r7, #4] 800443a: 210f movs r1, #15 800443c: 187b adds r3, r7, r1 800443e: 1c02 adds r2, r0, #0 8004440: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); NVIC_SetPriority(IRQn,PreemptPriority); 8004442: 68ba ldr r2, [r7, #8] 8004444: 187b adds r3, r7, r1 8004446: 781b ldrb r3, [r3, #0] 8004448: b25b sxtb r3, r3 800444a: 0011 movs r1, r2 800444c: 0018 movs r0, r3 800444e: f7ff ff5d bl 800430c <__NVIC_SetPriority> /* Prevent unused argument(s) compilation warning */ UNUSED(SubPriority); } 8004452: 46c0 nop @ (mov r8, r8) 8004454: 46bd mov sp, r7 8004456: b004 add sp, #16 8004458: bd80 pop {r7, pc} 0800445a : * @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) { 800445a: b580 push {r7, lr} 800445c: b082 sub sp, #8 800445e: af00 add r7, sp, #0 8004460: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); 8004462: 687b ldr r3, [r7, #4] 8004464: 0018 movs r0, r3 8004466: f7ff ffbf bl 80043e8 800446a: 0003 movs r3, r0 } 800446c: 0018 movs r0, r3 800446e: 46bd mov sp, r7 8004470: b002 add sp, #8 8004472: bd80 pop {r7, pc} 08004474 : * @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) { 8004474: b580 push {r7, lr} 8004476: b086 sub sp, #24 8004478: af00 add r7, sp, #0 800447a: 6078 str r0, [r7, #4] 800447c: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 800447e: 2300 movs r3, #0 8004480: 617b str r3, [r7, #20] 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) 8004482: e149 b.n 8004718 { /* Get current io position */ iocurrent = (GPIO_Init->Pin) & (1uL << position); 8004484: 683b ldr r3, [r7, #0] 8004486: 681b ldr r3, [r3, #0] 8004488: 2101 movs r1, #1 800448a: 697a ldr r2, [r7, #20] 800448c: 4091 lsls r1, r2 800448e: 000a movs r2, r1 8004490: 4013 ands r3, r2 8004492: 60fb str r3, [r7, #12] if (iocurrent != 0x00u) 8004494: 68fb ldr r3, [r7, #12] 8004496: 2b00 cmp r3, #0 8004498: d100 bne.n 800449c 800449a: e13a b.n 8004712 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || 800449c: 683b ldr r3, [r7, #0] 800449e: 685b ldr r3, [r3, #4] 80044a0: 2203 movs r2, #3 80044a2: 4013 ands r3, r2 80044a4: 2b01 cmp r3, #1 80044a6: d005 beq.n 80044b4 ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)) 80044a8: 683b ldr r3, [r7, #0] 80044aa: 685b ldr r3, [r3, #4] 80044ac: 2203 movs r2, #3 80044ae: 4013 ands r3, r2 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || 80044b0: 2b02 cmp r3, #2 80044b2: d130 bne.n 8004516 { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; 80044b4: 687b ldr r3, [r7, #4] 80044b6: 689b ldr r3, [r3, #8] 80044b8: 613b str r3, [r7, #16] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); 80044ba: 697b ldr r3, [r7, #20] 80044bc: 005b lsls r3, r3, #1 80044be: 2203 movs r2, #3 80044c0: 409a lsls r2, r3 80044c2: 0013 movs r3, r2 80044c4: 43da mvns r2, r3 80044c6: 693b ldr r3, [r7, #16] 80044c8: 4013 ands r3, r2 80044ca: 613b str r3, [r7, #16] temp |= (GPIO_Init->Speed << (position * 2u)); 80044cc: 683b ldr r3, [r7, #0] 80044ce: 68da ldr r2, [r3, #12] 80044d0: 697b ldr r3, [r7, #20] 80044d2: 005b lsls r3, r3, #1 80044d4: 409a lsls r2, r3 80044d6: 0013 movs r3, r2 80044d8: 693a ldr r2, [r7, #16] 80044da: 4313 orrs r3, r2 80044dc: 613b str r3, [r7, #16] GPIOx->OSPEEDR = temp; 80044de: 687b ldr r3, [r7, #4] 80044e0: 693a ldr r2, [r7, #16] 80044e2: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; 80044e4: 687b ldr r3, [r7, #4] 80044e6: 685b ldr r3, [r3, #4] 80044e8: 613b str r3, [r7, #16] temp &= ~(GPIO_OTYPER_OT_0 << position) ; 80044ea: 2201 movs r2, #1 80044ec: 697b ldr r3, [r7, #20] 80044ee: 409a lsls r2, r3 80044f0: 0013 movs r3, r2 80044f2: 43da mvns r2, r3 80044f4: 693b ldr r3, [r7, #16] 80044f6: 4013 ands r3, r2 80044f8: 613b str r3, [r7, #16] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); 80044fa: 683b ldr r3, [r7, #0] 80044fc: 685b ldr r3, [r3, #4] 80044fe: 091b lsrs r3, r3, #4 8004500: 2201 movs r2, #1 8004502: 401a ands r2, r3 8004504: 697b ldr r3, [r7, #20] 8004506: 409a lsls r2, r3 8004508: 0013 movs r3, r2 800450a: 693a ldr r2, [r7, #16] 800450c: 4313 orrs r3, r2 800450e: 613b str r3, [r7, #16] GPIOx->OTYPER = temp; 8004510: 687b ldr r3, [r7, #4] 8004512: 693a ldr r2, [r7, #16] 8004514: 605a str r2, [r3, #4] } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) 8004516: 683b ldr r3, [r7, #0] 8004518: 685b ldr r3, [r3, #4] 800451a: 2203 movs r2, #3 800451c: 4013 ands r3, r2 800451e: 2b03 cmp r3, #3 8004520: d017 beq.n 8004552 { /* Check the Pull parameter */ assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; 8004522: 687b ldr r3, [r7, #4] 8004524: 68db ldr r3, [r3, #12] 8004526: 613b str r3, [r7, #16] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); 8004528: 697b ldr r3, [r7, #20] 800452a: 005b lsls r3, r3, #1 800452c: 2203 movs r2, #3 800452e: 409a lsls r2, r3 8004530: 0013 movs r3, r2 8004532: 43da mvns r2, r3 8004534: 693b ldr r3, [r7, #16] 8004536: 4013 ands r3, r2 8004538: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Pull) << (position * 2u)); 800453a: 683b ldr r3, [r7, #0] 800453c: 689a ldr r2, [r3, #8] 800453e: 697b ldr r3, [r7, #20] 8004540: 005b lsls r3, r3, #1 8004542: 409a lsls r2, r3 8004544: 0013 movs r3, r2 8004546: 693a ldr r2, [r7, #16] 8004548: 4313 orrs r3, r2 800454a: 613b str r3, [r7, #16] GPIOx->PUPDR = temp; 800454c: 687b ldr r3, [r7, #4] 800454e: 693a ldr r2, [r7, #16] 8004550: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) 8004552: 683b ldr r3, [r7, #0] 8004554: 685b ldr r3, [r3, #4] 8004556: 2203 movs r2, #3 8004558: 4013 ands r3, r2 800455a: 2b02 cmp r3, #2 800455c: d123 bne.n 80045a6 /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3u]; 800455e: 697b ldr r3, [r7, #20] 8004560: 08da lsrs r2, r3, #3 8004562: 687b ldr r3, [r7, #4] 8004564: 3208 adds r2, #8 8004566: 0092 lsls r2, r2, #2 8004568: 58d3 ldr r3, [r2, r3] 800456a: 613b str r3, [r7, #16] temp &= ~(0xFu << ((position & 0x07u) * 4u)); 800456c: 697b ldr r3, [r7, #20] 800456e: 2207 movs r2, #7 8004570: 4013 ands r3, r2 8004572: 009b lsls r3, r3, #2 8004574: 220f movs r2, #15 8004576: 409a lsls r2, r3 8004578: 0013 movs r3, r2 800457a: 43da mvns r2, r3 800457c: 693b ldr r3, [r7, #16] 800457e: 4013 ands r3, r2 8004580: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); 8004582: 683b ldr r3, [r7, #0] 8004584: 691a ldr r2, [r3, #16] 8004586: 697b ldr r3, [r7, #20] 8004588: 2107 movs r1, #7 800458a: 400b ands r3, r1 800458c: 009b lsls r3, r3, #2 800458e: 409a lsls r2, r3 8004590: 0013 movs r3, r2 8004592: 693a ldr r2, [r7, #16] 8004594: 4313 orrs r3, r2 8004596: 613b str r3, [r7, #16] GPIOx->AFR[position >> 3u] = temp; 8004598: 697b ldr r3, [r7, #20] 800459a: 08da lsrs r2, r3, #3 800459c: 687b ldr r3, [r7, #4] 800459e: 3208 adds r2, #8 80045a0: 0092 lsls r2, r2, #2 80045a2: 6939 ldr r1, [r7, #16] 80045a4: 50d1 str r1, [r2, r3] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; 80045a6: 687b ldr r3, [r7, #4] 80045a8: 681b ldr r3, [r3, #0] 80045aa: 613b str r3, [r7, #16] temp &= ~(GPIO_MODER_MODER0 << (position * 2u)); 80045ac: 697b ldr r3, [r7, #20] 80045ae: 005b lsls r3, r3, #1 80045b0: 2203 movs r2, #3 80045b2: 409a lsls r2, r3 80045b4: 0013 movs r3, r2 80045b6: 43da mvns r2, r3 80045b8: 693b ldr r3, [r7, #16] 80045ba: 4013 ands r3, r2 80045bc: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); 80045be: 683b ldr r3, [r7, #0] 80045c0: 685b ldr r3, [r3, #4] 80045c2: 2203 movs r2, #3 80045c4: 401a ands r2, r3 80045c6: 697b ldr r3, [r7, #20] 80045c8: 005b lsls r3, r3, #1 80045ca: 409a lsls r2, r3 80045cc: 0013 movs r3, r2 80045ce: 693a ldr r2, [r7, #16] 80045d0: 4313 orrs r3, r2 80045d2: 613b str r3, [r7, #16] GPIOx->MODER = temp; 80045d4: 687b ldr r3, [r7, #4] 80045d6: 693a ldr r2, [r7, #16] 80045d8: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if((GPIO_Init->Mode & EXTI_MODE) != 0x00u) 80045da: 683b ldr r3, [r7, #0] 80045dc: 685a ldr r2, [r3, #4] 80045de: 23c0 movs r3, #192 @ 0xc0 80045e0: 029b lsls r3, r3, #10 80045e2: 4013 ands r3, r2 80045e4: d100 bne.n 80045e8 80045e6: e094 b.n 8004712 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); 80045e8: 4b51 ldr r3, [pc, #324] @ (8004730 ) 80045ea: 699a ldr r2, [r3, #24] 80045ec: 4b50 ldr r3, [pc, #320] @ (8004730 ) 80045ee: 2101 movs r1, #1 80045f0: 430a orrs r2, r1 80045f2: 619a str r2, [r3, #24] 80045f4: 4b4e ldr r3, [pc, #312] @ (8004730 ) 80045f6: 699b ldr r3, [r3, #24] 80045f8: 2201 movs r2, #1 80045fa: 4013 ands r3, r2 80045fc: 60bb str r3, [r7, #8] 80045fe: 68bb ldr r3, [r7, #8] temp = SYSCFG->EXTICR[position >> 2u]; 8004600: 4a4c ldr r2, [pc, #304] @ (8004734 ) 8004602: 697b ldr r3, [r7, #20] 8004604: 089b lsrs r3, r3, #2 8004606: 3302 adds r3, #2 8004608: 009b lsls r3, r3, #2 800460a: 589b ldr r3, [r3, r2] 800460c: 613b str r3, [r7, #16] temp &= ~(0x0FuL << (4u * (position & 0x03u))); 800460e: 697b ldr r3, [r7, #20] 8004610: 2203 movs r2, #3 8004612: 4013 ands r3, r2 8004614: 009b lsls r3, r3, #2 8004616: 220f movs r2, #15 8004618: 409a lsls r2, r3 800461a: 0013 movs r3, r2 800461c: 43da mvns r2, r3 800461e: 693b ldr r3, [r7, #16] 8004620: 4013 ands r3, r2 8004622: 613b str r3, [r7, #16] temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); 8004624: 687a ldr r2, [r7, #4] 8004626: 2390 movs r3, #144 @ 0x90 8004628: 05db lsls r3, r3, #23 800462a: 429a cmp r2, r3 800462c: d00d beq.n 800464a 800462e: 687b ldr r3, [r7, #4] 8004630: 4a41 ldr r2, [pc, #260] @ (8004738 ) 8004632: 4293 cmp r3, r2 8004634: d007 beq.n 8004646 8004636: 687b ldr r3, [r7, #4] 8004638: 4a40 ldr r2, [pc, #256] @ (800473c ) 800463a: 4293 cmp r3, r2 800463c: d101 bne.n 8004642 800463e: 2302 movs r3, #2 8004640: e004 b.n 800464c 8004642: 2305 movs r3, #5 8004644: e002 b.n 800464c 8004646: 2301 movs r3, #1 8004648: e000 b.n 800464c 800464a: 2300 movs r3, #0 800464c: 697a ldr r2, [r7, #20] 800464e: 2103 movs r1, #3 8004650: 400a ands r2, r1 8004652: 0092 lsls r2, r2, #2 8004654: 4093 lsls r3, r2 8004656: 693a ldr r2, [r7, #16] 8004658: 4313 orrs r3, r2 800465a: 613b str r3, [r7, #16] SYSCFG->EXTICR[position >> 2u] = temp; 800465c: 4935 ldr r1, [pc, #212] @ (8004734 ) 800465e: 697b ldr r3, [r7, #20] 8004660: 089b lsrs r3, r3, #2 8004662: 3302 adds r3, #2 8004664: 009b lsls r3, r3, #2 8004666: 693a ldr r2, [r7, #16] 8004668: 505a str r2, [r3, r1] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; 800466a: 4b35 ldr r3, [pc, #212] @ (8004740 ) 800466c: 689b ldr r3, [r3, #8] 800466e: 613b str r3, [r7, #16] temp &= ~(iocurrent); 8004670: 68fb ldr r3, [r7, #12] 8004672: 43da mvns r2, r3 8004674: 693b ldr r3, [r7, #16] 8004676: 4013 ands r3, r2 8004678: 613b str r3, [r7, #16] if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00u) 800467a: 683b ldr r3, [r7, #0] 800467c: 685a ldr r2, [r3, #4] 800467e: 2380 movs r3, #128 @ 0x80 8004680: 035b lsls r3, r3, #13 8004682: 4013 ands r3, r2 8004684: d003 beq.n 800468e { temp |= iocurrent; 8004686: 693a ldr r2, [r7, #16] 8004688: 68fb ldr r3, [r7, #12] 800468a: 4313 orrs r3, r2 800468c: 613b str r3, [r7, #16] } EXTI->RTSR = temp; 800468e: 4b2c ldr r3, [pc, #176] @ (8004740 ) 8004690: 693a ldr r2, [r7, #16] 8004692: 609a str r2, [r3, #8] temp = EXTI->FTSR; 8004694: 4b2a ldr r3, [pc, #168] @ (8004740 ) 8004696: 68db ldr r3, [r3, #12] 8004698: 613b str r3, [r7, #16] temp &= ~(iocurrent); 800469a: 68fb ldr r3, [r7, #12] 800469c: 43da mvns r2, r3 800469e: 693b ldr r3, [r7, #16] 80046a0: 4013 ands r3, r2 80046a2: 613b str r3, [r7, #16] if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00u) 80046a4: 683b ldr r3, [r7, #0] 80046a6: 685a ldr r2, [r3, #4] 80046a8: 2380 movs r3, #128 @ 0x80 80046aa: 039b lsls r3, r3, #14 80046ac: 4013 ands r3, r2 80046ae: d003 beq.n 80046b8 { temp |= iocurrent; 80046b0: 693a ldr r2, [r7, #16] 80046b2: 68fb ldr r3, [r7, #12] 80046b4: 4313 orrs r3, r2 80046b6: 613b str r3, [r7, #16] } EXTI->FTSR = temp; 80046b8: 4b21 ldr r3, [pc, #132] @ (8004740 ) 80046ba: 693a ldr r2, [r7, #16] 80046bc: 60da str r2, [r3, #12] /* Clear EXTI line configuration */ temp = EXTI->EMR; 80046be: 4b20 ldr r3, [pc, #128] @ (8004740 ) 80046c0: 685b ldr r3, [r3, #4] 80046c2: 613b str r3, [r7, #16] temp &= ~(iocurrent); 80046c4: 68fb ldr r3, [r7, #12] 80046c6: 43da mvns r2, r3 80046c8: 693b ldr r3, [r7, #16] 80046ca: 4013 ands r3, r2 80046cc: 613b str r3, [r7, #16] if((GPIO_Init->Mode & EXTI_EVT) != 0x00u) 80046ce: 683b ldr r3, [r7, #0] 80046d0: 685a ldr r2, [r3, #4] 80046d2: 2380 movs r3, #128 @ 0x80 80046d4: 029b lsls r3, r3, #10 80046d6: 4013 ands r3, r2 80046d8: d003 beq.n 80046e2 { temp |= iocurrent; 80046da: 693a ldr r2, [r7, #16] 80046dc: 68fb ldr r3, [r7, #12] 80046de: 4313 orrs r3, r2 80046e0: 613b str r3, [r7, #16] } EXTI->EMR = temp; 80046e2: 4b17 ldr r3, [pc, #92] @ (8004740 ) 80046e4: 693a ldr r2, [r7, #16] 80046e6: 605a str r2, [r3, #4] temp = EXTI->IMR; 80046e8: 4b15 ldr r3, [pc, #84] @ (8004740 ) 80046ea: 681b ldr r3, [r3, #0] 80046ec: 613b str r3, [r7, #16] temp &= ~(iocurrent); 80046ee: 68fb ldr r3, [r7, #12] 80046f0: 43da mvns r2, r3 80046f2: 693b ldr r3, [r7, #16] 80046f4: 4013 ands r3, r2 80046f6: 613b str r3, [r7, #16] if((GPIO_Init->Mode & EXTI_IT) != 0x00u) 80046f8: 683b ldr r3, [r7, #0] 80046fa: 685a ldr r2, [r3, #4] 80046fc: 2380 movs r3, #128 @ 0x80 80046fe: 025b lsls r3, r3, #9 8004700: 4013 ands r3, r2 8004702: d003 beq.n 800470c { temp |= iocurrent; 8004704: 693a ldr r2, [r7, #16] 8004706: 68fb ldr r3, [r7, #12] 8004708: 4313 orrs r3, r2 800470a: 613b str r3, [r7, #16] } EXTI->IMR = temp; 800470c: 4b0c ldr r3, [pc, #48] @ (8004740 ) 800470e: 693a ldr r2, [r7, #16] 8004710: 601a str r2, [r3, #0] } } position++; 8004712: 697b ldr r3, [r7, #20] 8004714: 3301 adds r3, #1 8004716: 617b str r3, [r7, #20] while (((GPIO_Init->Pin) >> position) != 0x00u) 8004718: 683b ldr r3, [r7, #0] 800471a: 681a ldr r2, [r3, #0] 800471c: 697b ldr r3, [r7, #20] 800471e: 40da lsrs r2, r3 8004720: 1e13 subs r3, r2, #0 8004722: d000 beq.n 8004726 8004724: e6ae b.n 8004484 } } 8004726: 46c0 nop @ (mov r8, r8) 8004728: 46c0 nop @ (mov r8, r8) 800472a: 46bd mov sp, r7 800472c: b006 add sp, #24 800472e: bd80 pop {r7, pc} 8004730: 40021000 .word 0x40021000 8004734: 40010000 .word 0x40010000 8004738: 48000400 .word 0x48000400 800473c: 48000800 .word 0x48000800 8004740: 40010400 .word 0x40010400 08004744 : * @param GPIO_Pin specifies the port bit to be written. * This parameter can be one of GPIO_PIN_x where x can be (0..15). * @retval None */ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) { 8004744: b580 push {r7, lr} 8004746: b086 sub sp, #24 8004748: af00 add r7, sp, #0 800474a: 6078 str r0, [r7, #4] 800474c: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 800474e: 2300 movs r3, #0 8004750: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Pin)); /* Configure the port pins */ while ((GPIO_Pin >> position) != 0x00u) 8004752: e0ab b.n 80048ac { /* Get current io position */ iocurrent = (GPIO_Pin) & (1uL << position); 8004754: 2201 movs r2, #1 8004756: 697b ldr r3, [r7, #20] 8004758: 409a lsls r2, r3 800475a: 683b ldr r3, [r7, #0] 800475c: 4013 ands r3, r2 800475e: 613b str r3, [r7, #16] if (iocurrent != 0x00u) 8004760: 693b ldr r3, [r7, #16] 8004762: 2b00 cmp r3, #0 8004764: d100 bne.n 8004768 8004766: e09e b.n 80048a6 { /*------------------------- EXTI Mode Configuration --------------------*/ /* Clear the External Interrupt or Event for the current IO */ tmp = SYSCFG->EXTICR[position >> 2u]; 8004768: 4a56 ldr r2, [pc, #344] @ (80048c4 ) 800476a: 697b ldr r3, [r7, #20] 800476c: 089b lsrs r3, r3, #2 800476e: 3302 adds r3, #2 8004770: 009b lsls r3, r3, #2 8004772: 589b ldr r3, [r3, r2] 8004774: 60fb str r3, [r7, #12] tmp &= (0x0FuL << (4u * (position & 0x03u))); 8004776: 697b ldr r3, [r7, #20] 8004778: 2203 movs r2, #3 800477a: 4013 ands r3, r2 800477c: 009b lsls r3, r3, #2 800477e: 220f movs r2, #15 8004780: 409a lsls r2, r3 8004782: 68fb ldr r3, [r7, #12] 8004784: 4013 ands r3, r2 8004786: 60fb str r3, [r7, #12] if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) 8004788: 687a ldr r2, [r7, #4] 800478a: 2390 movs r3, #144 @ 0x90 800478c: 05db lsls r3, r3, #23 800478e: 429a cmp r2, r3 8004790: d00d beq.n 80047ae 8004792: 687b ldr r3, [r7, #4] 8004794: 4a4c ldr r2, [pc, #304] @ (80048c8 ) 8004796: 4293 cmp r3, r2 8004798: d007 beq.n 80047aa 800479a: 687b ldr r3, [r7, #4] 800479c: 4a4b ldr r2, [pc, #300] @ (80048cc ) 800479e: 4293 cmp r3, r2 80047a0: d101 bne.n 80047a6 80047a2: 2302 movs r3, #2 80047a4: e004 b.n 80047b0 80047a6: 2305 movs r3, #5 80047a8: e002 b.n 80047b0 80047aa: 2301 movs r3, #1 80047ac: e000 b.n 80047b0 80047ae: 2300 movs r3, #0 80047b0: 697a ldr r2, [r7, #20] 80047b2: 2103 movs r1, #3 80047b4: 400a ands r2, r1 80047b6: 0092 lsls r2, r2, #2 80047b8: 4093 lsls r3, r2 80047ba: 68fa ldr r2, [r7, #12] 80047bc: 429a cmp r2, r3 80047be: d132 bne.n 8004826 { /* Clear EXTI line configuration */ EXTI->IMR &= ~((uint32_t)iocurrent); 80047c0: 4b43 ldr r3, [pc, #268] @ (80048d0 ) 80047c2: 681a ldr r2, [r3, #0] 80047c4: 693b ldr r3, [r7, #16] 80047c6: 43d9 mvns r1, r3 80047c8: 4b41 ldr r3, [pc, #260] @ (80048d0 ) 80047ca: 400a ands r2, r1 80047cc: 601a str r2, [r3, #0] EXTI->EMR &= ~((uint32_t)iocurrent); 80047ce: 4b40 ldr r3, [pc, #256] @ (80048d0 ) 80047d0: 685a ldr r2, [r3, #4] 80047d2: 693b ldr r3, [r7, #16] 80047d4: 43d9 mvns r1, r3 80047d6: 4b3e ldr r3, [pc, #248] @ (80048d0 ) 80047d8: 400a ands r2, r1 80047da: 605a str r2, [r3, #4] /* Clear Rising Falling edge configuration */ EXTI->FTSR &= ~((uint32_t)iocurrent); 80047dc: 4b3c ldr r3, [pc, #240] @ (80048d0 ) 80047de: 68da ldr r2, [r3, #12] 80047e0: 693b ldr r3, [r7, #16] 80047e2: 43d9 mvns r1, r3 80047e4: 4b3a ldr r3, [pc, #232] @ (80048d0 ) 80047e6: 400a ands r2, r1 80047e8: 60da str r2, [r3, #12] EXTI->RTSR &= ~((uint32_t)iocurrent); 80047ea: 4b39 ldr r3, [pc, #228] @ (80048d0 ) 80047ec: 689a ldr r2, [r3, #8] 80047ee: 693b ldr r3, [r7, #16] 80047f0: 43d9 mvns r1, r3 80047f2: 4b37 ldr r3, [pc, #220] @ (80048d0 ) 80047f4: 400a ands r2, r1 80047f6: 609a str r2, [r3, #8] /* Configure the External Interrupt or event for the current IO */ tmp = 0x0FuL << (4u * (position & 0x03u)); 80047f8: 697b ldr r3, [r7, #20] 80047fa: 2203 movs r2, #3 80047fc: 4013 ands r3, r2 80047fe: 009b lsls r3, r3, #2 8004800: 220f movs r2, #15 8004802: 409a lsls r2, r3 8004804: 0013 movs r3, r2 8004806: 60fb str r3, [r7, #12] SYSCFG->EXTICR[position >> 2u] &= ~tmp; 8004808: 4a2e ldr r2, [pc, #184] @ (80048c4 ) 800480a: 697b ldr r3, [r7, #20] 800480c: 089b lsrs r3, r3, #2 800480e: 3302 adds r3, #2 8004810: 009b lsls r3, r3, #2 8004812: 589a ldr r2, [r3, r2] 8004814: 68fb ldr r3, [r7, #12] 8004816: 43d9 mvns r1, r3 8004818: 482a ldr r0, [pc, #168] @ (80048c4 ) 800481a: 697b ldr r3, [r7, #20] 800481c: 089b lsrs r3, r3, #2 800481e: 400a ands r2, r1 8004820: 3302 adds r3, #2 8004822: 009b lsls r3, r3, #2 8004824: 501a str r2, [r3, r0] } /*------------------------- GPIO Mode Configuration --------------------*/ /* Configure IO Direction in Input Floating Mode */ GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2u)); 8004826: 687b ldr r3, [r7, #4] 8004828: 681b ldr r3, [r3, #0] 800482a: 697a ldr r2, [r7, #20] 800482c: 0052 lsls r2, r2, #1 800482e: 2103 movs r1, #3 8004830: 4091 lsls r1, r2 8004832: 000a movs r2, r1 8004834: 43d2 mvns r2, r2 8004836: 401a ands r2, r3 8004838: 687b ldr r3, [r7, #4] 800483a: 601a str r2, [r3, #0] /* Configure the default Alternate Function in current IO */ GPIOx->AFR[position >> 3u] &= ~(0xFu << ((uint32_t)(position & 0x07u) * 4u)) ; 800483c: 697b ldr r3, [r7, #20] 800483e: 08da lsrs r2, r3, #3 8004840: 687b ldr r3, [r7, #4] 8004842: 3208 adds r2, #8 8004844: 0092 lsls r2, r2, #2 8004846: 58d3 ldr r3, [r2, r3] 8004848: 697a ldr r2, [r7, #20] 800484a: 2107 movs r1, #7 800484c: 400a ands r2, r1 800484e: 0092 lsls r2, r2, #2 8004850: 210f movs r1, #15 8004852: 4091 lsls r1, r2 8004854: 000a movs r2, r1 8004856: 43d1 mvns r1, r2 8004858: 697a ldr r2, [r7, #20] 800485a: 08d2 lsrs r2, r2, #3 800485c: 4019 ands r1, r3 800485e: 687b ldr r3, [r7, #4] 8004860: 3208 adds r2, #8 8004862: 0092 lsls r2, r2, #2 8004864: 50d1 str r1, [r2, r3] /* Deactivate the Pull-up and Pull-down resistor for the current IO */ GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); 8004866: 687b ldr r3, [r7, #4] 8004868: 68db ldr r3, [r3, #12] 800486a: 697a ldr r2, [r7, #20] 800486c: 0052 lsls r2, r2, #1 800486e: 2103 movs r1, #3 8004870: 4091 lsls r1, r2 8004872: 000a movs r2, r1 8004874: 43d2 mvns r2, r2 8004876: 401a ands r2, r3 8004878: 687b ldr r3, [r7, #4] 800487a: 60da str r2, [r3, #12] /* Configure the default value IO Output Type */ GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; 800487c: 687b ldr r3, [r7, #4] 800487e: 685b ldr r3, [r3, #4] 8004880: 2101 movs r1, #1 8004882: 697a ldr r2, [r7, #20] 8004884: 4091 lsls r1, r2 8004886: 000a movs r2, r1 8004888: 43d2 mvns r2, r2 800488a: 401a ands r2, r3 800488c: 687b ldr r3, [r7, #4] 800488e: 605a str r2, [r3, #4] /* Configure the default value for IO Speed */ GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); 8004890: 687b ldr r3, [r7, #4] 8004892: 689b ldr r3, [r3, #8] 8004894: 697a ldr r2, [r7, #20] 8004896: 0052 lsls r2, r2, #1 8004898: 2103 movs r1, #3 800489a: 4091 lsls r1, r2 800489c: 000a movs r2, r1 800489e: 43d2 mvns r2, r2 80048a0: 401a ands r2, r3 80048a2: 687b ldr r3, [r7, #4] 80048a4: 609a str r2, [r3, #8] } position++; 80048a6: 697b ldr r3, [r7, #20] 80048a8: 3301 adds r3, #1 80048aa: 617b str r3, [r7, #20] while ((GPIO_Pin >> position) != 0x00u) 80048ac: 683a ldr r2, [r7, #0] 80048ae: 697b ldr r3, [r7, #20] 80048b0: 40da lsrs r2, r3 80048b2: 1e13 subs r3, r2, #0 80048b4: d000 beq.n 80048b8 80048b6: e74d b.n 8004754 } } 80048b8: 46c0 nop @ (mov r8, r8) 80048ba: 46c0 nop @ (mov r8, r8) 80048bc: 46bd mov sp, r7 80048be: b006 add sp, #24 80048c0: bd80 pop {r7, pc} 80048c2: 46c0 nop @ (mov r8, r8) 80048c4: 40010000 .word 0x40010000 80048c8: 48000400 .word 0x48000400 80048cc: 48000800 .word 0x48000800 80048d0: 40010400 .word 0x40010400 080048d4 : * @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) { 80048d4: b580 push {r7, lr} 80048d6: b082 sub sp, #8 80048d8: af00 add r7, sp, #0 80048da: 6078 str r0, [r7, #4] 80048dc: 0008 movs r0, r1 80048de: 0011 movs r1, r2 80048e0: 1cbb adds r3, r7, #2 80048e2: 1c02 adds r2, r0, #0 80048e4: 801a strh r2, [r3, #0] 80048e6: 1c7b adds r3, r7, #1 80048e8: 1c0a adds r2, r1, #0 80048ea: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if (PinState != GPIO_PIN_RESET) 80048ec: 1c7b adds r3, r7, #1 80048ee: 781b ldrb r3, [r3, #0] 80048f0: 2b00 cmp r3, #0 80048f2: d004 beq.n 80048fe { GPIOx->BSRR = (uint32_t)GPIO_Pin; 80048f4: 1cbb adds r3, r7, #2 80048f6: 881a ldrh r2, [r3, #0] 80048f8: 687b ldr r3, [r7, #4] 80048fa: 619a str r2, [r3, #24] } else { GPIOx->BRR = (uint32_t)GPIO_Pin; } } 80048fc: e003 b.n 8004906 GPIOx->BRR = (uint32_t)GPIO_Pin; 80048fe: 1cbb adds r3, r7, #2 8004900: 881a ldrh r2, [r3, #0] 8004902: 687b ldr r3, [r7, #4] 8004904: 629a str r2, [r3, #40] @ 0x28 } 8004906: 46c0 nop @ (mov r8, r8) 8004908: 46bd mov sp, r7 800490a: b002 add sp, #8 800490c: bd80 pop {r7, pc} 0800490e : * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family * @param GPIO_Pin specifies the pin to be toggled. * @retval None */ void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) { 800490e: b580 push {r7, lr} 8004910: b084 sub sp, #16 8004912: af00 add r7, sp, #0 8004914: 6078 str r0, [r7, #4] 8004916: 000a movs r2, r1 8004918: 1cbb adds r3, r7, #2 800491a: 801a strh r2, [r3, #0] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); /* get current Output Data Register value */ odr = GPIOx->ODR; 800491c: 687b ldr r3, [r7, #4] 800491e: 695b ldr r3, [r3, #20] 8004920: 60fb str r3, [r7, #12] /* Set selected pins that were at low level, and reset ones that were high */ GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin); 8004922: 1cbb adds r3, r7, #2 8004924: 881b ldrh r3, [r3, #0] 8004926: 68fa ldr r2, [r7, #12] 8004928: 4013 ands r3, r2 800492a: 041a lsls r2, r3, #16 800492c: 68fb ldr r3, [r7, #12] 800492e: 43db mvns r3, r3 8004930: 1cb9 adds r1, r7, #2 8004932: 8809 ldrh r1, [r1, #0] 8004934: 400b ands r3, r1 8004936: 431a orrs r2, r3 8004938: 687b ldr r3, [r7, #4] 800493a: 619a str r2, [r3, #24] } 800493c: 46c0 nop @ (mov r8, r8) 800493e: 46bd mov sp, r7 8004940: b004 add sp, #16 8004942: bd80 pop {r7, pc} 08004944 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { 8004944: b580 push {r7, lr} 8004946: b082 sub sp, #8 8004948: af00 add r7, sp, #0 800494a: 6078 str r0, [r7, #4] /* Check the I2C handle allocation */ if (hi2c == NULL) 800494c: 687b ldr r3, [r7, #4] 800494e: 2b00 cmp r3, #0 8004950: d101 bne.n 8004956 { return HAL_ERROR; 8004952: 2301 movs r3, #1 8004954: e08f b.n 8004a76 assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_OWN_ADDRESS2_MASK(hi2c->Init.OwnAddress2Masks)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) 8004956: 687b ldr r3, [r7, #4] 8004958: 2241 movs r2, #65 @ 0x41 800495a: 5c9b ldrb r3, [r3, r2] 800495c: b2db uxtb r3, r3 800495e: 2b00 cmp r3, #0 8004960: d107 bne.n 8004972 { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; 8004962: 687b ldr r3, [r7, #4] 8004964: 2240 movs r2, #64 @ 0x40 8004966: 2100 movs r1, #0 8004968: 5499 strb r1, [r3, r2] /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ HAL_I2C_MspInit(hi2c); 800496a: 687b ldr r3, [r7, #4] 800496c: 0018 movs r0, r3 800496e: f7fe fe79 bl 8003664 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; 8004972: 687b ldr r3, [r7, #4] 8004974: 2241 movs r2, #65 @ 0x41 8004976: 2124 movs r1, #36 @ 0x24 8004978: 5499 strb r1, [r3, r2] /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); 800497a: 687b ldr r3, [r7, #4] 800497c: 681b ldr r3, [r3, #0] 800497e: 681a ldr r2, [r3, #0] 8004980: 687b ldr r3, [r7, #4] 8004982: 681b ldr r3, [r3, #0] 8004984: 2101 movs r1, #1 8004986: 438a bics r2, r1 8004988: 601a str r2, [r3, #0] /*---------------------------- I2Cx TIMINGR Configuration ------------------*/ /* Configure I2Cx: Frequency range */ hi2c->Instance->TIMINGR = hi2c->Init.Timing & TIMING_CLEAR_MASK; 800498a: 687b ldr r3, [r7, #4] 800498c: 685a ldr r2, [r3, #4] 800498e: 687b ldr r3, [r7, #4] 8004990: 681b ldr r3, [r3, #0] 8004992: 493b ldr r1, [pc, #236] @ (8004a80 ) 8004994: 400a ands r2, r1 8004996: 611a str r2, [r3, #16] /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Disable Own Address1 before set the Own Address1 configuration */ hi2c->Instance->OAR1 &= ~I2C_OAR1_OA1EN; 8004998: 687b ldr r3, [r7, #4] 800499a: 681b ldr r3, [r3, #0] 800499c: 689a ldr r2, [r3, #8] 800499e: 687b ldr r3, [r7, #4] 80049a0: 681b ldr r3, [r3, #0] 80049a2: 4938 ldr r1, [pc, #224] @ (8004a84 ) 80049a4: 400a ands r2, r1 80049a6: 609a str r2, [r3, #8] /* Configure I2Cx: Own Address1 and ack own address1 mode */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) 80049a8: 687b ldr r3, [r7, #4] 80049aa: 68db ldr r3, [r3, #12] 80049ac: 2b01 cmp r3, #1 80049ae: d108 bne.n 80049c2 { hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | hi2c->Init.OwnAddress1); 80049b0: 687b ldr r3, [r7, #4] 80049b2: 689a ldr r2, [r3, #8] 80049b4: 687b ldr r3, [r7, #4] 80049b6: 681b ldr r3, [r3, #0] 80049b8: 2180 movs r1, #128 @ 0x80 80049ba: 0209 lsls r1, r1, #8 80049bc: 430a orrs r2, r1 80049be: 609a str r2, [r3, #8] 80049c0: e007 b.n 80049d2 } else /* I2C_ADDRESSINGMODE_10BIT */ { hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | I2C_OAR1_OA1MODE | hi2c->Init.OwnAddress1); 80049c2: 687b ldr r3, [r7, #4] 80049c4: 689a ldr r2, [r3, #8] 80049c6: 687b ldr r3, [r7, #4] 80049c8: 681b ldr r3, [r3, #0] 80049ca: 2184 movs r1, #132 @ 0x84 80049cc: 0209 lsls r1, r1, #8 80049ce: 430a orrs r2, r1 80049d0: 609a str r2, [r3, #8] } /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Addressing Master mode */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) 80049d2: 687b ldr r3, [r7, #4] 80049d4: 68db ldr r3, [r3, #12] 80049d6: 2b02 cmp r3, #2 80049d8: d109 bne.n 80049ee { SET_BIT(hi2c->Instance->CR2, I2C_CR2_ADD10); 80049da: 687b ldr r3, [r7, #4] 80049dc: 681b ldr r3, [r3, #0] 80049de: 685a ldr r2, [r3, #4] 80049e0: 687b ldr r3, [r7, #4] 80049e2: 681b ldr r3, [r3, #0] 80049e4: 2180 movs r1, #128 @ 0x80 80049e6: 0109 lsls r1, r1, #4 80049e8: 430a orrs r2, r1 80049ea: 605a str r2, [r3, #4] 80049ec: e007 b.n 80049fe } else { /* Clear the I2C ADD10 bit */ CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_ADD10); 80049ee: 687b ldr r3, [r7, #4] 80049f0: 681b ldr r3, [r3, #0] 80049f2: 685a ldr r2, [r3, #4] 80049f4: 687b ldr r3, [r7, #4] 80049f6: 681b ldr r3, [r3, #0] 80049f8: 4923 ldr r1, [pc, #140] @ (8004a88 ) 80049fa: 400a ands r2, r1 80049fc: 605a str r2, [r3, #4] } /* Enable the AUTOEND by default, and enable NACK (should be disable only during Slave process */ hi2c->Instance->CR2 |= (I2C_CR2_AUTOEND | I2C_CR2_NACK); 80049fe: 687b ldr r3, [r7, #4] 8004a00: 681b ldr r3, [r3, #0] 8004a02: 685a ldr r2, [r3, #4] 8004a04: 687b ldr r3, [r7, #4] 8004a06: 681b ldr r3, [r3, #0] 8004a08: 4920 ldr r1, [pc, #128] @ (8004a8c ) 8004a0a: 430a orrs r2, r1 8004a0c: 605a str r2, [r3, #4] /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Disable Own Address2 before set the Own Address2 configuration */ hi2c->Instance->OAR2 &= ~I2C_DUALADDRESS_ENABLE; 8004a0e: 687b ldr r3, [r7, #4] 8004a10: 681b ldr r3, [r3, #0] 8004a12: 68da ldr r2, [r3, #12] 8004a14: 687b ldr r3, [r7, #4] 8004a16: 681b ldr r3, [r3, #0] 8004a18: 491a ldr r1, [pc, #104] @ (8004a84 ) 8004a1a: 400a ands r2, r1 8004a1c: 60da str r2, [r3, #12] /* Configure I2Cx: Dual mode and Own Address2 */ hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | \ 8004a1e: 687b ldr r3, [r7, #4] 8004a20: 691a ldr r2, [r3, #16] 8004a22: 687b ldr r3, [r7, #4] 8004a24: 695b ldr r3, [r3, #20] 8004a26: 431a orrs r2, r3 8004a28: 0011 movs r1, r2 (hi2c->Init.OwnAddress2Masks << 8)); 8004a2a: 687b ldr r3, [r7, #4] 8004a2c: 699b ldr r3, [r3, #24] 8004a2e: 021a lsls r2, r3, #8 hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | \ 8004a30: 687b ldr r3, [r7, #4] 8004a32: 681b ldr r3, [r3, #0] 8004a34: 430a orrs r2, r1 8004a36: 60da str r2, [r3, #12] /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode); 8004a38: 687b ldr r3, [r7, #4] 8004a3a: 69d9 ldr r1, [r3, #28] 8004a3c: 687b ldr r3, [r7, #4] 8004a3e: 6a1a ldr r2, [r3, #32] 8004a40: 687b ldr r3, [r7, #4] 8004a42: 681b ldr r3, [r3, #0] 8004a44: 430a orrs r2, r1 8004a46: 601a str r2, [r3, #0] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); 8004a48: 687b ldr r3, [r7, #4] 8004a4a: 681b ldr r3, [r3, #0] 8004a4c: 681a ldr r2, [r3, #0] 8004a4e: 687b ldr r3, [r7, #4] 8004a50: 681b ldr r3, [r3, #0] 8004a52: 2101 movs r1, #1 8004a54: 430a orrs r2, r1 8004a56: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 8004a58: 687b ldr r3, [r7, #4] 8004a5a: 2200 movs r2, #0 8004a5c: 645a str r2, [r3, #68] @ 0x44 hi2c->State = HAL_I2C_STATE_READY; 8004a5e: 687b ldr r3, [r7, #4] 8004a60: 2241 movs r2, #65 @ 0x41 8004a62: 2120 movs r1, #32 8004a64: 5499 strb r1, [r3, r2] hi2c->PreviousState = I2C_STATE_NONE; 8004a66: 687b ldr r3, [r7, #4] 8004a68: 2200 movs r2, #0 8004a6a: 631a str r2, [r3, #48] @ 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; 8004a6c: 687b ldr r3, [r7, #4] 8004a6e: 2242 movs r2, #66 @ 0x42 8004a70: 2100 movs r1, #0 8004a72: 5499 strb r1, [r3, r2] return HAL_OK; 8004a74: 2300 movs r3, #0 } 8004a76: 0018 movs r0, r3 8004a78: 46bd mov sp, r7 8004a7a: b002 add sp, #8 8004a7c: bd80 pop {r7, pc} 8004a7e: 46c0 nop @ (mov r8, r8) 8004a80: f0ffffff .word 0xf0ffffff 8004a84: ffff7fff .word 0xffff7fff 8004a88: fffff7ff .word 0xfffff7ff 8004a8c: 02008000 .word 0x02008000 08004a90 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c) { 8004a90: b580 push {r7, lr} 8004a92: b082 sub sp, #8 8004a94: af00 add r7, sp, #0 8004a96: 6078 str r0, [r7, #4] /* Check the I2C handle allocation */ if (hi2c == NULL) 8004a98: 687b ldr r3, [r7, #4] 8004a9a: 2b00 cmp r3, #0 8004a9c: d101 bne.n 8004aa2 { return HAL_ERROR; 8004a9e: 2301 movs r3, #1 8004aa0: e022 b.n 8004ae8 } /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); hi2c->State = HAL_I2C_STATE_BUSY; 8004aa2: 687b ldr r3, [r7, #4] 8004aa4: 2241 movs r2, #65 @ 0x41 8004aa6: 2124 movs r1, #36 @ 0x24 8004aa8: 5499 strb r1, [r3, r2] /* Disable the I2C Peripheral Clock */ __HAL_I2C_DISABLE(hi2c); 8004aaa: 687b ldr r3, [r7, #4] 8004aac: 681b ldr r3, [r3, #0] 8004aae: 681a ldr r2, [r3, #0] 8004ab0: 687b ldr r3, [r7, #4] 8004ab2: 681b ldr r3, [r3, #0] 8004ab4: 2101 movs r1, #1 8004ab6: 438a bics r2, r1 8004ab8: 601a str r2, [r3, #0] /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ hi2c->MspDeInitCallback(hi2c); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_I2C_MspDeInit(hi2c); 8004aba: 687b ldr r3, [r7, #4] 8004abc: 0018 movs r0, r3 8004abe: f7fe fe1f bl 8003700 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 8004ac2: 687b ldr r3, [r7, #4] 8004ac4: 2200 movs r2, #0 8004ac6: 645a str r2, [r3, #68] @ 0x44 hi2c->State = HAL_I2C_STATE_RESET; 8004ac8: 687b ldr r3, [r7, #4] 8004aca: 2241 movs r2, #65 @ 0x41 8004acc: 2100 movs r1, #0 8004ace: 5499 strb r1, [r3, r2] hi2c->PreviousState = I2C_STATE_NONE; 8004ad0: 687b ldr r3, [r7, #4] 8004ad2: 2200 movs r2, #0 8004ad4: 631a str r2, [r3, #48] @ 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; 8004ad6: 687b ldr r3, [r7, #4] 8004ad8: 2242 movs r2, #66 @ 0x42 8004ada: 2100 movs r1, #0 8004adc: 5499 strb r1, [r3, r2] /* Release Lock */ __HAL_UNLOCK(hi2c); 8004ade: 687b ldr r3, [r7, #4] 8004ae0: 2240 movs r2, #64 @ 0x40 8004ae2: 2100 movs r1, #0 8004ae4: 5499 strb r1, [r3, r2] return HAL_OK; 8004ae6: 2300 movs r3, #0 } 8004ae8: 0018 movs r0, r3 8004aea: 46bd mov sp, r7 8004aec: b002 add sp, #8 8004aee: bd80 pop {r7, pc} 08004af0 : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { 8004af0: b590 push {r4, r7, lr} 8004af2: b089 sub sp, #36 @ 0x24 8004af4: af02 add r7, sp, #8 8004af6: 60f8 str r0, [r7, #12] 8004af8: 000c movs r4, r1 8004afa: 0010 movs r0, r2 8004afc: 0019 movs r1, r3 8004afe: 230a movs r3, #10 8004b00: 18fb adds r3, r7, r3 8004b02: 1c22 adds r2, r4, #0 8004b04: 801a strh r2, [r3, #0] 8004b06: 2308 movs r3, #8 8004b08: 18fb adds r3, r7, r3 8004b0a: 1c02 adds r2, r0, #0 8004b0c: 801a strh r2, [r3, #0] 8004b0e: 1dbb adds r3, r7, #6 8004b10: 1c0a adds r2, r1, #0 8004b12: 801a strh r2, [r3, #0] uint32_t tickstart; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) 8004b14: 68fb ldr r3, [r7, #12] 8004b16: 2241 movs r2, #65 @ 0x41 8004b18: 5c9b ldrb r3, [r3, r2] 8004b1a: b2db uxtb r3, r3 8004b1c: 2b20 cmp r3, #32 8004b1e: d000 beq.n 8004b22 8004b20: e10c b.n 8004d3c { if ((pData == NULL) || (Size == 0U)) 8004b22: 6abb ldr r3, [r7, #40] @ 0x28 8004b24: 2b00 cmp r3, #0 8004b26: d004 beq.n 8004b32 8004b28: 232c movs r3, #44 @ 0x2c 8004b2a: 18fb adds r3, r7, r3 8004b2c: 881b ldrh r3, [r3, #0] 8004b2e: 2b00 cmp r3, #0 8004b30: d105 bne.n 8004b3e { hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; 8004b32: 68fb ldr r3, [r7, #12] 8004b34: 2280 movs r2, #128 @ 0x80 8004b36: 0092 lsls r2, r2, #2 8004b38: 645a str r2, [r3, #68] @ 0x44 return HAL_ERROR; 8004b3a: 2301 movs r3, #1 8004b3c: e0ff b.n 8004d3e } /* Process Locked */ __HAL_LOCK(hi2c); 8004b3e: 68fb ldr r3, [r7, #12] 8004b40: 2240 movs r2, #64 @ 0x40 8004b42: 5c9b ldrb r3, [r3, r2] 8004b44: 2b01 cmp r3, #1 8004b46: d101 bne.n 8004b4c 8004b48: 2302 movs r3, #2 8004b4a: e0f8 b.n 8004d3e 8004b4c: 68fb ldr r3, [r7, #12] 8004b4e: 2240 movs r2, #64 @ 0x40 8004b50: 2101 movs r1, #1 8004b52: 5499 strb r1, [r3, r2] /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); 8004b54: f7ff f996 bl 8003e84 8004b58: 0003 movs r3, r0 8004b5a: 617b str r3, [r7, #20] if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) 8004b5c: 2380 movs r3, #128 @ 0x80 8004b5e: 0219 lsls r1, r3, #8 8004b60: 68f8 ldr r0, [r7, #12] 8004b62: 697b ldr r3, [r7, #20] 8004b64: 9300 str r3, [sp, #0] 8004b66: 2319 movs r3, #25 8004b68: 2201 movs r2, #1 8004b6a: f000 fb0b bl 8005184 8004b6e: 1e03 subs r3, r0, #0 8004b70: d001 beq.n 8004b76 { return HAL_ERROR; 8004b72: 2301 movs r3, #1 8004b74: e0e3 b.n 8004d3e } hi2c->State = HAL_I2C_STATE_BUSY_TX; 8004b76: 68fb ldr r3, [r7, #12] 8004b78: 2241 movs r2, #65 @ 0x41 8004b7a: 2121 movs r1, #33 @ 0x21 8004b7c: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_MEM; 8004b7e: 68fb ldr r3, [r7, #12] 8004b80: 2242 movs r2, #66 @ 0x42 8004b82: 2140 movs r1, #64 @ 0x40 8004b84: 5499 strb r1, [r3, r2] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 8004b86: 68fb ldr r3, [r7, #12] 8004b88: 2200 movs r2, #0 8004b8a: 645a str r2, [r3, #68] @ 0x44 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; 8004b8c: 68fb ldr r3, [r7, #12] 8004b8e: 6aba ldr r2, [r7, #40] @ 0x28 8004b90: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount = Size; 8004b92: 68fb ldr r3, [r7, #12] 8004b94: 222c movs r2, #44 @ 0x2c 8004b96: 18ba adds r2, r7, r2 8004b98: 8812 ldrh r2, [r2, #0] 8004b9a: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferISR = NULL; 8004b9c: 68fb ldr r3, [r7, #12] 8004b9e: 2200 movs r2, #0 8004ba0: 635a str r2, [r3, #52] @ 0x34 /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) 8004ba2: 1dbb adds r3, r7, #6 8004ba4: 881c ldrh r4, [r3, #0] 8004ba6: 2308 movs r3, #8 8004ba8: 18fb adds r3, r7, r3 8004baa: 881a ldrh r2, [r3, #0] 8004bac: 230a movs r3, #10 8004bae: 18fb adds r3, r7, r3 8004bb0: 8819 ldrh r1, [r3, #0] 8004bb2: 68f8 ldr r0, [r7, #12] 8004bb4: 697b ldr r3, [r7, #20] 8004bb6: 9301 str r3, [sp, #4] 8004bb8: 6b3b ldr r3, [r7, #48] @ 0x30 8004bba: 9300 str r3, [sp, #0] 8004bbc: 0023 movs r3, r4 8004bbe: f000 f9f9 bl 8004fb4 8004bc2: 1e03 subs r3, r0, #0 8004bc4: d005 beq.n 8004bd2 { /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8004bc6: 68fb ldr r3, [r7, #12] 8004bc8: 2240 movs r2, #64 @ 0x40 8004bca: 2100 movs r1, #0 8004bcc: 5499 strb r1, [r3, r2] return HAL_ERROR; 8004bce: 2301 movs r3, #1 8004bd0: e0b5 b.n 8004d3e } /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ if (hi2c->XferCount > MAX_NBYTE_SIZE) 8004bd2: 68fb ldr r3, [r7, #12] 8004bd4: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004bd6: b29b uxth r3, r3 8004bd8: 2bff cmp r3, #255 @ 0xff 8004bda: d911 bls.n 8004c00 { hi2c->XferSize = MAX_NBYTE_SIZE; 8004bdc: 68fb ldr r3, [r7, #12] 8004bde: 22ff movs r2, #255 @ 0xff 8004be0: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); 8004be2: 68fb ldr r3, [r7, #12] 8004be4: 8d1b ldrh r3, [r3, #40] @ 0x28 8004be6: b2da uxtb r2, r3 8004be8: 2380 movs r3, #128 @ 0x80 8004bea: 045c lsls r4, r3, #17 8004bec: 230a movs r3, #10 8004bee: 18fb adds r3, r7, r3 8004bf0: 8819 ldrh r1, [r3, #0] 8004bf2: 68f8 ldr r0, [r7, #12] 8004bf4: 2300 movs r3, #0 8004bf6: 9300 str r3, [sp, #0] 8004bf8: 0023 movs r3, r4 8004bfa: f000 fc9d bl 8005538 8004bfe: e012 b.n 8004c26 } else { hi2c->XferSize = hi2c->XferCount; 8004c00: 68fb ldr r3, [r7, #12] 8004c02: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004c04: b29a uxth r2, r3 8004c06: 68fb ldr r3, [r7, #12] 8004c08: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); 8004c0a: 68fb ldr r3, [r7, #12] 8004c0c: 8d1b ldrh r3, [r3, #40] @ 0x28 8004c0e: b2da uxtb r2, r3 8004c10: 2380 movs r3, #128 @ 0x80 8004c12: 049c lsls r4, r3, #18 8004c14: 230a movs r3, #10 8004c16: 18fb adds r3, r7, r3 8004c18: 8819 ldrh r1, [r3, #0] 8004c1a: 68f8 ldr r0, [r7, #12] 8004c1c: 2300 movs r3, #0 8004c1e: 9300 str r3, [sp, #0] 8004c20: 0023 movs r3, r4 8004c22: f000 fc89 bl 8005538 } do { /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 8004c26: 697a ldr r2, [r7, #20] 8004c28: 6b39 ldr r1, [r7, #48] @ 0x30 8004c2a: 68fb ldr r3, [r7, #12] 8004c2c: 0018 movs r0, r3 8004c2e: f000 fb01 bl 8005234 8004c32: 1e03 subs r3, r0, #0 8004c34: d001 beq.n 8004c3a { return HAL_ERROR; 8004c36: 2301 movs r3, #1 8004c38: e081 b.n 8004d3e } /* Write data to TXDR */ hi2c->Instance->TXDR = *hi2c->pBuffPtr; 8004c3a: 68fb ldr r3, [r7, #12] 8004c3c: 6a5b ldr r3, [r3, #36] @ 0x24 8004c3e: 781a ldrb r2, [r3, #0] 8004c40: 68fb ldr r3, [r7, #12] 8004c42: 681b ldr r3, [r3, #0] 8004c44: 629a str r2, [r3, #40] @ 0x28 /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8004c46: 68fb ldr r3, [r7, #12] 8004c48: 6a5b ldr r3, [r3, #36] @ 0x24 8004c4a: 1c5a adds r2, r3, #1 8004c4c: 68fb ldr r3, [r7, #12] 8004c4e: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount--; 8004c50: 68fb ldr r3, [r7, #12] 8004c52: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004c54: b29b uxth r3, r3 8004c56: 3b01 subs r3, #1 8004c58: b29a uxth r2, r3 8004c5a: 68fb ldr r3, [r7, #12] 8004c5c: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferSize--; 8004c5e: 68fb ldr r3, [r7, #12] 8004c60: 8d1b ldrh r3, [r3, #40] @ 0x28 8004c62: 3b01 subs r3, #1 8004c64: b29a uxth r2, r3 8004c66: 68fb ldr r3, [r7, #12] 8004c68: 851a strh r2, [r3, #40] @ 0x28 if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) 8004c6a: 68fb ldr r3, [r7, #12] 8004c6c: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004c6e: b29b uxth r3, r3 8004c70: 2b00 cmp r3, #0 8004c72: d03a beq.n 8004cea 8004c74: 68fb ldr r3, [r7, #12] 8004c76: 8d1b ldrh r3, [r3, #40] @ 0x28 8004c78: 2b00 cmp r3, #0 8004c7a: d136 bne.n 8004cea { /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) 8004c7c: 6b3a ldr r2, [r7, #48] @ 0x30 8004c7e: 68f8 ldr r0, [r7, #12] 8004c80: 697b ldr r3, [r7, #20] 8004c82: 9300 str r3, [sp, #0] 8004c84: 0013 movs r3, r2 8004c86: 2200 movs r2, #0 8004c88: 2180 movs r1, #128 @ 0x80 8004c8a: f000 fa7b bl 8005184 8004c8e: 1e03 subs r3, r0, #0 8004c90: d001 beq.n 8004c96 { return HAL_ERROR; 8004c92: 2301 movs r3, #1 8004c94: e053 b.n 8004d3e } if (hi2c->XferCount > MAX_NBYTE_SIZE) 8004c96: 68fb ldr r3, [r7, #12] 8004c98: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004c9a: b29b uxth r3, r3 8004c9c: 2bff cmp r3, #255 @ 0xff 8004c9e: d911 bls.n 8004cc4 { hi2c->XferSize = MAX_NBYTE_SIZE; 8004ca0: 68fb ldr r3, [r7, #12] 8004ca2: 22ff movs r2, #255 @ 0xff 8004ca4: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, 8004ca6: 68fb ldr r3, [r7, #12] 8004ca8: 8d1b ldrh r3, [r3, #40] @ 0x28 8004caa: b2da uxtb r2, r3 8004cac: 2380 movs r3, #128 @ 0x80 8004cae: 045c lsls r4, r3, #17 8004cb0: 230a movs r3, #10 8004cb2: 18fb adds r3, r7, r3 8004cb4: 8819 ldrh r1, [r3, #0] 8004cb6: 68f8 ldr r0, [r7, #12] 8004cb8: 2300 movs r3, #0 8004cba: 9300 str r3, [sp, #0] 8004cbc: 0023 movs r3, r4 8004cbe: f000 fc3b bl 8005538 8004cc2: e012 b.n 8004cea I2C_NO_STARTSTOP); } else { hi2c->XferSize = hi2c->XferCount; 8004cc4: 68fb ldr r3, [r7, #12] 8004cc6: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004cc8: b29a uxth r2, r3 8004cca: 68fb ldr r3, [r7, #12] 8004ccc: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, 8004cce: 68fb ldr r3, [r7, #12] 8004cd0: 8d1b ldrh r3, [r3, #40] @ 0x28 8004cd2: b2da uxtb r2, r3 8004cd4: 2380 movs r3, #128 @ 0x80 8004cd6: 049c lsls r4, r3, #18 8004cd8: 230a movs r3, #10 8004cda: 18fb adds r3, r7, r3 8004cdc: 8819 ldrh r1, [r3, #0] 8004cde: 68f8 ldr r0, [r7, #12] 8004ce0: 2300 movs r3, #0 8004ce2: 9300 str r3, [sp, #0] 8004ce4: 0023 movs r3, r4 8004ce6: f000 fc27 bl 8005538 I2C_NO_STARTSTOP); } } } while (hi2c->XferCount > 0U); 8004cea: 68fb ldr r3, [r7, #12] 8004cec: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004cee: b29b uxth r3, r3 8004cf0: 2b00 cmp r3, #0 8004cf2: d198 bne.n 8004c26 /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ /* Wait until STOPF flag is reset */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 8004cf4: 697a ldr r2, [r7, #20] 8004cf6: 6b39 ldr r1, [r7, #48] @ 0x30 8004cf8: 68fb ldr r3, [r7, #12] 8004cfa: 0018 movs r0, r3 8004cfc: f000 fae0 bl 80052c0 8004d00: 1e03 subs r3, r0, #0 8004d02: d001 beq.n 8004d08 { return HAL_ERROR; 8004d04: 2301 movs r3, #1 8004d06: e01a b.n 8004d3e } /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); 8004d08: 68fb ldr r3, [r7, #12] 8004d0a: 681b ldr r3, [r3, #0] 8004d0c: 2220 movs r2, #32 8004d0e: 61da str r2, [r3, #28] /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); 8004d10: 68fb ldr r3, [r7, #12] 8004d12: 681b ldr r3, [r3, #0] 8004d14: 685a ldr r2, [r3, #4] 8004d16: 68fb ldr r3, [r7, #12] 8004d18: 681b ldr r3, [r3, #0] 8004d1a: 490b ldr r1, [pc, #44] @ (8004d48 ) 8004d1c: 400a ands r2, r1 8004d1e: 605a str r2, [r3, #4] hi2c->State = HAL_I2C_STATE_READY; 8004d20: 68fb ldr r3, [r7, #12] 8004d22: 2241 movs r2, #65 @ 0x41 8004d24: 2120 movs r1, #32 8004d26: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; 8004d28: 68fb ldr r3, [r7, #12] 8004d2a: 2242 movs r2, #66 @ 0x42 8004d2c: 2100 movs r1, #0 8004d2e: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8004d30: 68fb ldr r3, [r7, #12] 8004d32: 2240 movs r2, #64 @ 0x40 8004d34: 2100 movs r1, #0 8004d36: 5499 strb r1, [r3, r2] return HAL_OK; 8004d38: 2300 movs r3, #0 8004d3a: e000 b.n 8004d3e } else { return HAL_BUSY; 8004d3c: 2302 movs r3, #2 } } 8004d3e: 0018 movs r0, r3 8004d40: 46bd mov sp, r7 8004d42: b007 add sp, #28 8004d44: bd90 pop {r4, r7, pc} 8004d46: 46c0 nop @ (mov r8, r8) 8004d48: fe00e800 .word 0xfe00e800 08004d4c : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { 8004d4c: b590 push {r4, r7, lr} 8004d4e: b089 sub sp, #36 @ 0x24 8004d50: af02 add r7, sp, #8 8004d52: 60f8 str r0, [r7, #12] 8004d54: 000c movs r4, r1 8004d56: 0010 movs r0, r2 8004d58: 0019 movs r1, r3 8004d5a: 230a movs r3, #10 8004d5c: 18fb adds r3, r7, r3 8004d5e: 1c22 adds r2, r4, #0 8004d60: 801a strh r2, [r3, #0] 8004d62: 2308 movs r3, #8 8004d64: 18fb adds r3, r7, r3 8004d66: 1c02 adds r2, r0, #0 8004d68: 801a strh r2, [r3, #0] 8004d6a: 1dbb adds r3, r7, #6 8004d6c: 1c0a adds r2, r1, #0 8004d6e: 801a strh r2, [r3, #0] uint32_t tickstart; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) 8004d70: 68fb ldr r3, [r7, #12] 8004d72: 2241 movs r2, #65 @ 0x41 8004d74: 5c9b ldrb r3, [r3, r2] 8004d76: b2db uxtb r3, r3 8004d78: 2b20 cmp r3, #32 8004d7a: d000 beq.n 8004d7e 8004d7c: e110 b.n 8004fa0 { if ((pData == NULL) || (Size == 0U)) 8004d7e: 6abb ldr r3, [r7, #40] @ 0x28 8004d80: 2b00 cmp r3, #0 8004d82: d004 beq.n 8004d8e 8004d84: 232c movs r3, #44 @ 0x2c 8004d86: 18fb adds r3, r7, r3 8004d88: 881b ldrh r3, [r3, #0] 8004d8a: 2b00 cmp r3, #0 8004d8c: d105 bne.n 8004d9a { hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; 8004d8e: 68fb ldr r3, [r7, #12] 8004d90: 2280 movs r2, #128 @ 0x80 8004d92: 0092 lsls r2, r2, #2 8004d94: 645a str r2, [r3, #68] @ 0x44 return HAL_ERROR; 8004d96: 2301 movs r3, #1 8004d98: e103 b.n 8004fa2 } /* Process Locked */ __HAL_LOCK(hi2c); 8004d9a: 68fb ldr r3, [r7, #12] 8004d9c: 2240 movs r2, #64 @ 0x40 8004d9e: 5c9b ldrb r3, [r3, r2] 8004da0: 2b01 cmp r3, #1 8004da2: d101 bne.n 8004da8 8004da4: 2302 movs r3, #2 8004da6: e0fc b.n 8004fa2 8004da8: 68fb ldr r3, [r7, #12] 8004daa: 2240 movs r2, #64 @ 0x40 8004dac: 2101 movs r1, #1 8004dae: 5499 strb r1, [r3, r2] /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); 8004db0: f7ff f868 bl 8003e84 8004db4: 0003 movs r3, r0 8004db6: 617b str r3, [r7, #20] if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) 8004db8: 2380 movs r3, #128 @ 0x80 8004dba: 0219 lsls r1, r3, #8 8004dbc: 68f8 ldr r0, [r7, #12] 8004dbe: 697b ldr r3, [r7, #20] 8004dc0: 9300 str r3, [sp, #0] 8004dc2: 2319 movs r3, #25 8004dc4: 2201 movs r2, #1 8004dc6: f000 f9dd bl 8005184 8004dca: 1e03 subs r3, r0, #0 8004dcc: d001 beq.n 8004dd2 { return HAL_ERROR; 8004dce: 2301 movs r3, #1 8004dd0: e0e7 b.n 8004fa2 } hi2c->State = HAL_I2C_STATE_BUSY_RX; 8004dd2: 68fb ldr r3, [r7, #12] 8004dd4: 2241 movs r2, #65 @ 0x41 8004dd6: 2122 movs r1, #34 @ 0x22 8004dd8: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_MEM; 8004dda: 68fb ldr r3, [r7, #12] 8004ddc: 2242 movs r2, #66 @ 0x42 8004dde: 2140 movs r1, #64 @ 0x40 8004de0: 5499 strb r1, [r3, r2] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 8004de2: 68fb ldr r3, [r7, #12] 8004de4: 2200 movs r2, #0 8004de6: 645a str r2, [r3, #68] @ 0x44 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; 8004de8: 68fb ldr r3, [r7, #12] 8004dea: 6aba ldr r2, [r7, #40] @ 0x28 8004dec: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount = Size; 8004dee: 68fb ldr r3, [r7, #12] 8004df0: 222c movs r2, #44 @ 0x2c 8004df2: 18ba adds r2, r7, r2 8004df4: 8812 ldrh r2, [r2, #0] 8004df6: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferISR = NULL; 8004df8: 68fb ldr r3, [r7, #12] 8004dfa: 2200 movs r2, #0 8004dfc: 635a str r2, [r3, #52] @ 0x34 /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) 8004dfe: 1dbb adds r3, r7, #6 8004e00: 881c ldrh r4, [r3, #0] 8004e02: 2308 movs r3, #8 8004e04: 18fb adds r3, r7, r3 8004e06: 881a ldrh r2, [r3, #0] 8004e08: 230a movs r3, #10 8004e0a: 18fb adds r3, r7, r3 8004e0c: 8819 ldrh r1, [r3, #0] 8004e0e: 68f8 ldr r0, [r7, #12] 8004e10: 697b ldr r3, [r7, #20] 8004e12: 9301 str r3, [sp, #4] 8004e14: 6b3b ldr r3, [r7, #48] @ 0x30 8004e16: 9300 str r3, [sp, #0] 8004e18: 0023 movs r3, r4 8004e1a: f000 f92f bl 800507c 8004e1e: 1e03 subs r3, r0, #0 8004e20: d005 beq.n 8004e2e { /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8004e22: 68fb ldr r3, [r7, #12] 8004e24: 2240 movs r2, #64 @ 0x40 8004e26: 2100 movs r1, #0 8004e28: 5499 strb r1, [r3, r2] return HAL_ERROR; 8004e2a: 2301 movs r3, #1 8004e2c: e0b9 b.n 8004fa2 } /* Send Slave Address */ /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ if (hi2c->XferCount > MAX_NBYTE_SIZE) 8004e2e: 68fb ldr r3, [r7, #12] 8004e30: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004e32: b29b uxth r3, r3 8004e34: 2bff cmp r3, #255 @ 0xff 8004e36: d911 bls.n 8004e5c { hi2c->XferSize = 1U; 8004e38: 68fb ldr r3, [r7, #12] 8004e3a: 2201 movs r2, #1 8004e3c: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, 8004e3e: 68fb ldr r3, [r7, #12] 8004e40: 8d1b ldrh r3, [r3, #40] @ 0x28 8004e42: b2da uxtb r2, r3 8004e44: 2380 movs r3, #128 @ 0x80 8004e46: 045c lsls r4, r3, #17 8004e48: 230a movs r3, #10 8004e4a: 18fb adds r3, r7, r3 8004e4c: 8819 ldrh r1, [r3, #0] 8004e4e: 68f8 ldr r0, [r7, #12] 8004e50: 4b56 ldr r3, [pc, #344] @ (8004fac ) 8004e52: 9300 str r3, [sp, #0] 8004e54: 0023 movs r3, r4 8004e56: f000 fb6f bl 8005538 8004e5a: e012 b.n 8004e82 I2C_GENERATE_START_READ); } else { hi2c->XferSize = hi2c->XferCount; 8004e5c: 68fb ldr r3, [r7, #12] 8004e5e: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004e60: b29a uxth r2, r3 8004e62: 68fb ldr r3, [r7, #12] 8004e64: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, 8004e66: 68fb ldr r3, [r7, #12] 8004e68: 8d1b ldrh r3, [r3, #40] @ 0x28 8004e6a: b2da uxtb r2, r3 8004e6c: 2380 movs r3, #128 @ 0x80 8004e6e: 049c lsls r4, r3, #18 8004e70: 230a movs r3, #10 8004e72: 18fb adds r3, r7, r3 8004e74: 8819 ldrh r1, [r3, #0] 8004e76: 68f8 ldr r0, [r7, #12] 8004e78: 4b4c ldr r3, [pc, #304] @ (8004fac ) 8004e7a: 9300 str r3, [sp, #0] 8004e7c: 0023 movs r3, r4 8004e7e: f000 fb5b bl 8005538 } do { /* Wait until RXNE flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_RXNE, RESET, Timeout, tickstart) != HAL_OK) 8004e82: 6b3a ldr r2, [r7, #48] @ 0x30 8004e84: 68f8 ldr r0, [r7, #12] 8004e86: 697b ldr r3, [r7, #20] 8004e88: 9300 str r3, [sp, #0] 8004e8a: 0013 movs r3, r2 8004e8c: 2200 movs r2, #0 8004e8e: 2104 movs r1, #4 8004e90: f000 f978 bl 8005184 8004e94: 1e03 subs r3, r0, #0 8004e96: d001 beq.n 8004e9c { return HAL_ERROR; 8004e98: 2301 movs r3, #1 8004e9a: e082 b.n 8004fa2 } /* Read data from RXDR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; 8004e9c: 68fb ldr r3, [r7, #12] 8004e9e: 681b ldr r3, [r3, #0] 8004ea0: 6a5a ldr r2, [r3, #36] @ 0x24 8004ea2: 68fb ldr r3, [r7, #12] 8004ea4: 6a5b ldr r3, [r3, #36] @ 0x24 8004ea6: b2d2 uxtb r2, r2 8004ea8: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8004eaa: 68fb ldr r3, [r7, #12] 8004eac: 6a5b ldr r3, [r3, #36] @ 0x24 8004eae: 1c5a adds r2, r3, #1 8004eb0: 68fb ldr r3, [r7, #12] 8004eb2: 625a str r2, [r3, #36] @ 0x24 hi2c->XferSize--; 8004eb4: 68fb ldr r3, [r7, #12] 8004eb6: 8d1b ldrh r3, [r3, #40] @ 0x28 8004eb8: 3b01 subs r3, #1 8004eba: b29a uxth r2, r3 8004ebc: 68fb ldr r3, [r7, #12] 8004ebe: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; 8004ec0: 68fb ldr r3, [r7, #12] 8004ec2: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004ec4: b29b uxth r3, r3 8004ec6: 3b01 subs r3, #1 8004ec8: b29a uxth r2, r3 8004eca: 68fb ldr r3, [r7, #12] 8004ecc: 855a strh r2, [r3, #42] @ 0x2a if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) 8004ece: 68fb ldr r3, [r7, #12] 8004ed0: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004ed2: b29b uxth r3, r3 8004ed4: 2b00 cmp r3, #0 8004ed6: d03a beq.n 8004f4e 8004ed8: 68fb ldr r3, [r7, #12] 8004eda: 8d1b ldrh r3, [r3, #40] @ 0x28 8004edc: 2b00 cmp r3, #0 8004ede: d136 bne.n 8004f4e { /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) 8004ee0: 6b3a ldr r2, [r7, #48] @ 0x30 8004ee2: 68f8 ldr r0, [r7, #12] 8004ee4: 697b ldr r3, [r7, #20] 8004ee6: 9300 str r3, [sp, #0] 8004ee8: 0013 movs r3, r2 8004eea: 2200 movs r2, #0 8004eec: 2180 movs r1, #128 @ 0x80 8004eee: f000 f949 bl 8005184 8004ef2: 1e03 subs r3, r0, #0 8004ef4: d001 beq.n 8004efa { return HAL_ERROR; 8004ef6: 2301 movs r3, #1 8004ef8: e053 b.n 8004fa2 } if (hi2c->XferCount > MAX_NBYTE_SIZE) 8004efa: 68fb ldr r3, [r7, #12] 8004efc: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004efe: b29b uxth r3, r3 8004f00: 2bff cmp r3, #255 @ 0xff 8004f02: d911 bls.n 8004f28 { hi2c->XferSize = 1U; 8004f04: 68fb ldr r3, [r7, #12] 8004f06: 2201 movs r2, #1 8004f08: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t) hi2c->XferSize, I2C_RELOAD_MODE, 8004f0a: 68fb ldr r3, [r7, #12] 8004f0c: 8d1b ldrh r3, [r3, #40] @ 0x28 8004f0e: b2da uxtb r2, r3 8004f10: 2380 movs r3, #128 @ 0x80 8004f12: 045c lsls r4, r3, #17 8004f14: 230a movs r3, #10 8004f16: 18fb adds r3, r7, r3 8004f18: 8819 ldrh r1, [r3, #0] 8004f1a: 68f8 ldr r0, [r7, #12] 8004f1c: 2300 movs r3, #0 8004f1e: 9300 str r3, [sp, #0] 8004f20: 0023 movs r3, r4 8004f22: f000 fb09 bl 8005538 8004f26: e012 b.n 8004f4e I2C_NO_STARTSTOP); } else { hi2c->XferSize = hi2c->XferCount; 8004f28: 68fb ldr r3, [r7, #12] 8004f2a: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004f2c: b29a uxth r2, r3 8004f2e: 68fb ldr r3, [r7, #12] 8004f30: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, 8004f32: 68fb ldr r3, [r7, #12] 8004f34: 8d1b ldrh r3, [r3, #40] @ 0x28 8004f36: b2da uxtb r2, r3 8004f38: 2380 movs r3, #128 @ 0x80 8004f3a: 049c lsls r4, r3, #18 8004f3c: 230a movs r3, #10 8004f3e: 18fb adds r3, r7, r3 8004f40: 8819 ldrh r1, [r3, #0] 8004f42: 68f8 ldr r0, [r7, #12] 8004f44: 2300 movs r3, #0 8004f46: 9300 str r3, [sp, #0] 8004f48: 0023 movs r3, r4 8004f4a: f000 faf5 bl 8005538 I2C_NO_STARTSTOP); } } } while (hi2c->XferCount > 0U); 8004f4e: 68fb ldr r3, [r7, #12] 8004f50: 8d5b ldrh r3, [r3, #42] @ 0x2a 8004f52: b29b uxth r3, r3 8004f54: 2b00 cmp r3, #0 8004f56: d194 bne.n 8004e82 /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ /* Wait until STOPF flag is reset */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 8004f58: 697a ldr r2, [r7, #20] 8004f5a: 6b39 ldr r1, [r7, #48] @ 0x30 8004f5c: 68fb ldr r3, [r7, #12] 8004f5e: 0018 movs r0, r3 8004f60: f000 f9ae bl 80052c0 8004f64: 1e03 subs r3, r0, #0 8004f66: d001 beq.n 8004f6c { return HAL_ERROR; 8004f68: 2301 movs r3, #1 8004f6a: e01a b.n 8004fa2 } /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); 8004f6c: 68fb ldr r3, [r7, #12] 8004f6e: 681b ldr r3, [r3, #0] 8004f70: 2220 movs r2, #32 8004f72: 61da str r2, [r3, #28] /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); 8004f74: 68fb ldr r3, [r7, #12] 8004f76: 681b ldr r3, [r3, #0] 8004f78: 685a ldr r2, [r3, #4] 8004f7a: 68fb ldr r3, [r7, #12] 8004f7c: 681b ldr r3, [r3, #0] 8004f7e: 490c ldr r1, [pc, #48] @ (8004fb0 ) 8004f80: 400a ands r2, r1 8004f82: 605a str r2, [r3, #4] hi2c->State = HAL_I2C_STATE_READY; 8004f84: 68fb ldr r3, [r7, #12] 8004f86: 2241 movs r2, #65 @ 0x41 8004f88: 2120 movs r1, #32 8004f8a: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; 8004f8c: 68fb ldr r3, [r7, #12] 8004f8e: 2242 movs r2, #66 @ 0x42 8004f90: 2100 movs r1, #0 8004f92: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8004f94: 68fb ldr r3, [r7, #12] 8004f96: 2240 movs r2, #64 @ 0x40 8004f98: 2100 movs r1, #0 8004f9a: 5499 strb r1, [r3, r2] return HAL_OK; 8004f9c: 2300 movs r3, #0 8004f9e: e000 b.n 8004fa2 } else { return HAL_BUSY; 8004fa0: 2302 movs r3, #2 } } 8004fa2: 0018 movs r0, r3 8004fa4: 46bd mov sp, r7 8004fa6: b007 add sp, #28 8004fa8: bd90 pop {r4, r7, pc} 8004faa: 46c0 nop @ (mov r8, r8) 8004fac: 80002400 .word 0x80002400 8004fb0: fe00e800 .word 0xfe00e800 08004fb4 : * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { 8004fb4: b5b0 push {r4, r5, r7, lr} 8004fb6: b086 sub sp, #24 8004fb8: af02 add r7, sp, #8 8004fba: 60f8 str r0, [r7, #12] 8004fbc: 000c movs r4, r1 8004fbe: 0010 movs r0, r2 8004fc0: 0019 movs r1, r3 8004fc2: 250a movs r5, #10 8004fc4: 197b adds r3, r7, r5 8004fc6: 1c22 adds r2, r4, #0 8004fc8: 801a strh r2, [r3, #0] 8004fca: 2308 movs r3, #8 8004fcc: 18fb adds r3, r7, r3 8004fce: 1c02 adds r2, r0, #0 8004fd0: 801a strh r2, [r3, #0] 8004fd2: 1dbb adds r3, r7, #6 8004fd4: 1c0a adds r2, r1, #0 8004fd6: 801a strh r2, [r3, #0] I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); 8004fd8: 1dbb adds r3, r7, #6 8004fda: 881b ldrh r3, [r3, #0] 8004fdc: b2da uxtb r2, r3 8004fde: 2380 movs r3, #128 @ 0x80 8004fe0: 045c lsls r4, r3, #17 8004fe2: 197b adds r3, r7, r5 8004fe4: 8819 ldrh r1, [r3, #0] 8004fe6: 68f8 ldr r0, [r7, #12] 8004fe8: 4b23 ldr r3, [pc, #140] @ (8005078 ) 8004fea: 9300 str r3, [sp, #0] 8004fec: 0023 movs r3, r4 8004fee: f000 faa3 bl 8005538 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8004ff2: 6a7a ldr r2, [r7, #36] @ 0x24 8004ff4: 6a39 ldr r1, [r7, #32] 8004ff6: 68fb ldr r3, [r7, #12] 8004ff8: 0018 movs r0, r3 8004ffa: f000 f91b bl 8005234 8004ffe: 1e03 subs r3, r0, #0 8005000: d001 beq.n 8005006 { return HAL_ERROR; 8005002: 2301 movs r3, #1 8005004: e033 b.n 800506e } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) 8005006: 1dbb adds r3, r7, #6 8005008: 881b ldrh r3, [r3, #0] 800500a: 2b01 cmp r3, #1 800500c: d107 bne.n 800501e { /* Send Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); 800500e: 2308 movs r3, #8 8005010: 18fb adds r3, r7, r3 8005012: 881b ldrh r3, [r3, #0] 8005014: b2da uxtb r2, r3 8005016: 68fb ldr r3, [r7, #12] 8005018: 681b ldr r3, [r3, #0] 800501a: 629a str r2, [r3, #40] @ 0x28 800501c: e019 b.n 8005052 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); 800501e: 2308 movs r3, #8 8005020: 18fb adds r3, r7, r3 8005022: 881b ldrh r3, [r3, #0] 8005024: 0a1b lsrs r3, r3, #8 8005026: b29b uxth r3, r3 8005028: b2da uxtb r2, r3 800502a: 68fb ldr r3, [r7, #12] 800502c: 681b ldr r3, [r3, #0] 800502e: 629a str r2, [r3, #40] @ 0x28 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8005030: 6a7a ldr r2, [r7, #36] @ 0x24 8005032: 6a39 ldr r1, [r7, #32] 8005034: 68fb ldr r3, [r7, #12] 8005036: 0018 movs r0, r3 8005038: f000 f8fc bl 8005234 800503c: 1e03 subs r3, r0, #0 800503e: d001 beq.n 8005044 { return HAL_ERROR; 8005040: 2301 movs r3, #1 8005042: e014 b.n 800506e } /* Send LSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); 8005044: 2308 movs r3, #8 8005046: 18fb adds r3, r7, r3 8005048: 881b ldrh r3, [r3, #0] 800504a: b2da uxtb r2, r3 800504c: 68fb ldr r3, [r7, #12] 800504e: 681b ldr r3, [r3, #0] 8005050: 629a str r2, [r3, #40] @ 0x28 } /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, Tickstart) != HAL_OK) 8005052: 6a3a ldr r2, [r7, #32] 8005054: 68f8 ldr r0, [r7, #12] 8005056: 6a7b ldr r3, [r7, #36] @ 0x24 8005058: 9300 str r3, [sp, #0] 800505a: 0013 movs r3, r2 800505c: 2200 movs r2, #0 800505e: 2180 movs r1, #128 @ 0x80 8005060: f000 f890 bl 8005184 8005064: 1e03 subs r3, r0, #0 8005066: d001 beq.n 800506c { return HAL_ERROR; 8005068: 2301 movs r3, #1 800506a: e000 b.n 800506e } return HAL_OK; 800506c: 2300 movs r3, #0 } 800506e: 0018 movs r0, r3 8005070: 46bd mov sp, r7 8005072: b004 add sp, #16 8005074: bdb0 pop {r4, r5, r7, pc} 8005076: 46c0 nop @ (mov r8, r8) 8005078: 80002000 .word 0x80002000 0800507c : * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { 800507c: b5b0 push {r4, r5, r7, lr} 800507e: b086 sub sp, #24 8005080: af02 add r7, sp, #8 8005082: 60f8 str r0, [r7, #12] 8005084: 000c movs r4, r1 8005086: 0010 movs r0, r2 8005088: 0019 movs r1, r3 800508a: 250a movs r5, #10 800508c: 197b adds r3, r7, r5 800508e: 1c22 adds r2, r4, #0 8005090: 801a strh r2, [r3, #0] 8005092: 2308 movs r3, #8 8005094: 18fb adds r3, r7, r3 8005096: 1c02 adds r2, r0, #0 8005098: 801a strh r2, [r3, #0] 800509a: 1dbb adds r3, r7, #6 800509c: 1c0a adds r2, r1, #0 800509e: 801a strh r2, [r3, #0] I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); 80050a0: 1dbb adds r3, r7, #6 80050a2: 881b ldrh r3, [r3, #0] 80050a4: b2da uxtb r2, r3 80050a6: 197b adds r3, r7, r5 80050a8: 8819 ldrh r1, [r3, #0] 80050aa: 68f8 ldr r0, [r7, #12] 80050ac: 4b23 ldr r3, [pc, #140] @ (800513c ) 80050ae: 9300 str r3, [sp, #0] 80050b0: 2300 movs r3, #0 80050b2: f000 fa41 bl 8005538 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 80050b6: 6a7a ldr r2, [r7, #36] @ 0x24 80050b8: 6a39 ldr r1, [r7, #32] 80050ba: 68fb ldr r3, [r7, #12] 80050bc: 0018 movs r0, r3 80050be: f000 f8b9 bl 8005234 80050c2: 1e03 subs r3, r0, #0 80050c4: d001 beq.n 80050ca { return HAL_ERROR; 80050c6: 2301 movs r3, #1 80050c8: e033 b.n 8005132 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) 80050ca: 1dbb adds r3, r7, #6 80050cc: 881b ldrh r3, [r3, #0] 80050ce: 2b01 cmp r3, #1 80050d0: d107 bne.n 80050e2 { /* Send Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); 80050d2: 2308 movs r3, #8 80050d4: 18fb adds r3, r7, r3 80050d6: 881b ldrh r3, [r3, #0] 80050d8: b2da uxtb r2, r3 80050da: 68fb ldr r3, [r7, #12] 80050dc: 681b ldr r3, [r3, #0] 80050de: 629a str r2, [r3, #40] @ 0x28 80050e0: e019 b.n 8005116 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); 80050e2: 2308 movs r3, #8 80050e4: 18fb adds r3, r7, r3 80050e6: 881b ldrh r3, [r3, #0] 80050e8: 0a1b lsrs r3, r3, #8 80050ea: b29b uxth r3, r3 80050ec: b2da uxtb r2, r3 80050ee: 68fb ldr r3, [r7, #12] 80050f0: 681b ldr r3, [r3, #0] 80050f2: 629a str r2, [r3, #40] @ 0x28 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 80050f4: 6a7a ldr r2, [r7, #36] @ 0x24 80050f6: 6a39 ldr r1, [r7, #32] 80050f8: 68fb ldr r3, [r7, #12] 80050fa: 0018 movs r0, r3 80050fc: f000 f89a bl 8005234 8005100: 1e03 subs r3, r0, #0 8005102: d001 beq.n 8005108 { return HAL_ERROR; 8005104: 2301 movs r3, #1 8005106: e014 b.n 8005132 } /* Send LSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); 8005108: 2308 movs r3, #8 800510a: 18fb adds r3, r7, r3 800510c: 881b ldrh r3, [r3, #0] 800510e: b2da uxtb r2, r3 8005110: 68fb ldr r3, [r7, #12] 8005112: 681b ldr r3, [r3, #0] 8005114: 629a str r2, [r3, #40] @ 0x28 } /* Wait until TC flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TC, RESET, Timeout, Tickstart) != HAL_OK) 8005116: 6a3a ldr r2, [r7, #32] 8005118: 68f8 ldr r0, [r7, #12] 800511a: 6a7b ldr r3, [r7, #36] @ 0x24 800511c: 9300 str r3, [sp, #0] 800511e: 0013 movs r3, r2 8005120: 2200 movs r2, #0 8005122: 2140 movs r1, #64 @ 0x40 8005124: f000 f82e bl 8005184 8005128: 1e03 subs r3, r0, #0 800512a: d001 beq.n 8005130 { return HAL_ERROR; 800512c: 2301 movs r3, #1 800512e: e000 b.n 8005132 } return HAL_OK; 8005130: 2300 movs r3, #0 } 8005132: 0018 movs r0, r3 8005134: 46bd mov sp, r7 8005136: b004 add sp, #16 8005138: bdb0 pop {r4, r5, r7, pc} 800513a: 46c0 nop @ (mov r8, r8) 800513c: 80002000 .word 0x80002000 08005140 : * @brief I2C Tx data register flush process. * @param hi2c I2C handle. * @retval None */ static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c) { 8005140: b580 push {r7, lr} 8005142: b082 sub sp, #8 8005144: af00 add r7, sp, #0 8005146: 6078 str r0, [r7, #4] /* If a pending TXIS flag is set */ /* Write a dummy data in TXDR to clear it */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) != RESET) 8005148: 687b ldr r3, [r7, #4] 800514a: 681b ldr r3, [r3, #0] 800514c: 699b ldr r3, [r3, #24] 800514e: 2202 movs r2, #2 8005150: 4013 ands r3, r2 8005152: 2b02 cmp r3, #2 8005154: d103 bne.n 800515e { hi2c->Instance->TXDR = 0x00U; 8005156: 687b ldr r3, [r7, #4] 8005158: 681b ldr r3, [r3, #0] 800515a: 2200 movs r2, #0 800515c: 629a str r2, [r3, #40] @ 0x28 } /* Flush TX register if not empty */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) 800515e: 687b ldr r3, [r7, #4] 8005160: 681b ldr r3, [r3, #0] 8005162: 699b ldr r3, [r3, #24] 8005164: 2201 movs r2, #1 8005166: 4013 ands r3, r2 8005168: 2b01 cmp r3, #1 800516a: d007 beq.n 800517c { __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_TXE); 800516c: 687b ldr r3, [r7, #4] 800516e: 681b ldr r3, [r3, #0] 8005170: 699a ldr r2, [r3, #24] 8005172: 687b ldr r3, [r7, #4] 8005174: 681b ldr r3, [r3, #0] 8005176: 2101 movs r1, #1 8005178: 430a orrs r2, r1 800517a: 619a str r2, [r3, #24] } } 800517c: 46c0 nop @ (mov r8, r8) 800517e: 46bd mov sp, r7 8005180: b002 add sp, #8 8005182: bd80 pop {r7, pc} 08005184 : * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) { 8005184: b580 push {r7, lr} 8005186: b084 sub sp, #16 8005188: af00 add r7, sp, #0 800518a: 60f8 str r0, [r7, #12] 800518c: 60b9 str r1, [r7, #8] 800518e: 603b str r3, [r7, #0] 8005190: 1dfb adds r3, r7, #7 8005192: 701a strb r2, [r3, #0] while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) 8005194: e03a b.n 800520c { /* Check if an error is detected */ if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) 8005196: 69ba ldr r2, [r7, #24] 8005198: 6839 ldr r1, [r7, #0] 800519a: 68fb ldr r3, [r7, #12] 800519c: 0018 movs r0, r3 800519e: f000 f8d3 bl 8005348 80051a2: 1e03 subs r3, r0, #0 80051a4: d001 beq.n 80051aa { return HAL_ERROR; 80051a6: 2301 movs r3, #1 80051a8: e040 b.n 800522c } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 80051aa: 683b ldr r3, [r7, #0] 80051ac: 3301 adds r3, #1 80051ae: d02d beq.n 800520c { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 80051b0: f7fe fe68 bl 8003e84 80051b4: 0002 movs r2, r0 80051b6: 69bb ldr r3, [r7, #24] 80051b8: 1ad3 subs r3, r2, r3 80051ba: 683a ldr r2, [r7, #0] 80051bc: 429a cmp r2, r3 80051be: d302 bcc.n 80051c6 80051c0: 683b ldr r3, [r7, #0] 80051c2: 2b00 cmp r3, #0 80051c4: d122 bne.n 800520c { if ((__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)) 80051c6: 68fb ldr r3, [r7, #12] 80051c8: 681b ldr r3, [r3, #0] 80051ca: 699b ldr r3, [r3, #24] 80051cc: 68ba ldr r2, [r7, #8] 80051ce: 4013 ands r3, r2 80051d0: 68ba ldr r2, [r7, #8] 80051d2: 1ad3 subs r3, r2, r3 80051d4: 425a negs r2, r3 80051d6: 4153 adcs r3, r2 80051d8: b2db uxtb r3, r3 80051da: 001a movs r2, r3 80051dc: 1dfb adds r3, r7, #7 80051de: 781b ldrb r3, [r3, #0] 80051e0: 429a cmp r2, r3 80051e2: d113 bne.n 800520c { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 80051e4: 68fb ldr r3, [r7, #12] 80051e6: 6c5b ldr r3, [r3, #68] @ 0x44 80051e8: 2220 movs r2, #32 80051ea: 431a orrs r2, r3 80051ec: 68fb ldr r3, [r7, #12] 80051ee: 645a str r2, [r3, #68] @ 0x44 hi2c->State = HAL_I2C_STATE_READY; 80051f0: 68fb ldr r3, [r7, #12] 80051f2: 2241 movs r2, #65 @ 0x41 80051f4: 2120 movs r1, #32 80051f6: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; 80051f8: 68fb ldr r3, [r7, #12] 80051fa: 2242 movs r2, #66 @ 0x42 80051fc: 2100 movs r1, #0 80051fe: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8005200: 68fb ldr r3, [r7, #12] 8005202: 2240 movs r2, #64 @ 0x40 8005204: 2100 movs r1, #0 8005206: 5499 strb r1, [r3, r2] return HAL_ERROR; 8005208: 2301 movs r3, #1 800520a: e00f b.n 800522c while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) 800520c: 68fb ldr r3, [r7, #12] 800520e: 681b ldr r3, [r3, #0] 8005210: 699b ldr r3, [r3, #24] 8005212: 68ba ldr r2, [r7, #8] 8005214: 4013 ands r3, r2 8005216: 68ba ldr r2, [r7, #8] 8005218: 1ad3 subs r3, r2, r3 800521a: 425a negs r2, r3 800521c: 4153 adcs r3, r2 800521e: b2db uxtb r3, r3 8005220: 001a movs r2, r3 8005222: 1dfb adds r3, r7, #7 8005224: 781b ldrb r3, [r3, #0] 8005226: 429a cmp r2, r3 8005228: d0b5 beq.n 8005196 } } } } return HAL_OK; 800522a: 2300 movs r3, #0 } 800522c: 0018 movs r0, r3 800522e: 46bd mov sp, r7 8005230: b004 add sp, #16 8005232: bd80 pop {r7, pc} 08005234 : * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { 8005234: b580 push {r7, lr} 8005236: b084 sub sp, #16 8005238: af00 add r7, sp, #0 800523a: 60f8 str r0, [r7, #12] 800523c: 60b9 str r1, [r7, #8] 800523e: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) 8005240: e032 b.n 80052a8 { /* Check if an error is detected */ if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) 8005242: 687a ldr r2, [r7, #4] 8005244: 68b9 ldr r1, [r7, #8] 8005246: 68fb ldr r3, [r7, #12] 8005248: 0018 movs r0, r3 800524a: f000 f87d bl 8005348 800524e: 1e03 subs r3, r0, #0 8005250: d001 beq.n 8005256 { return HAL_ERROR; 8005252: 2301 movs r3, #1 8005254: e030 b.n 80052b8 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 8005256: 68bb ldr r3, [r7, #8] 8005258: 3301 adds r3, #1 800525a: d025 beq.n 80052a8 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 800525c: f7fe fe12 bl 8003e84 8005260: 0002 movs r2, r0 8005262: 687b ldr r3, [r7, #4] 8005264: 1ad3 subs r3, r2, r3 8005266: 68ba ldr r2, [r7, #8] 8005268: 429a cmp r2, r3 800526a: d302 bcc.n 8005272 800526c: 68bb ldr r3, [r7, #8] 800526e: 2b00 cmp r3, #0 8005270: d11a bne.n 80052a8 { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET)) 8005272: 68fb ldr r3, [r7, #12] 8005274: 681b ldr r3, [r3, #0] 8005276: 699b ldr r3, [r3, #24] 8005278: 2202 movs r2, #2 800527a: 4013 ands r3, r2 800527c: 2b02 cmp r3, #2 800527e: d013 beq.n 80052a8 { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 8005280: 68fb ldr r3, [r7, #12] 8005282: 6c5b ldr r3, [r3, #68] @ 0x44 8005284: 2220 movs r2, #32 8005286: 431a orrs r2, r3 8005288: 68fb ldr r3, [r7, #12] 800528a: 645a str r2, [r3, #68] @ 0x44 hi2c->State = HAL_I2C_STATE_READY; 800528c: 68fb ldr r3, [r7, #12] 800528e: 2241 movs r2, #65 @ 0x41 8005290: 2120 movs r1, #32 8005292: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; 8005294: 68fb ldr r3, [r7, #12] 8005296: 2242 movs r2, #66 @ 0x42 8005298: 2100 movs r1, #0 800529a: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 800529c: 68fb ldr r3, [r7, #12] 800529e: 2240 movs r2, #64 @ 0x40 80052a0: 2100 movs r1, #0 80052a2: 5499 strb r1, [r3, r2] return HAL_ERROR; 80052a4: 2301 movs r3, #1 80052a6: e007 b.n 80052b8 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) 80052a8: 68fb ldr r3, [r7, #12] 80052aa: 681b ldr r3, [r3, #0] 80052ac: 699b ldr r3, [r3, #24] 80052ae: 2202 movs r2, #2 80052b0: 4013 ands r3, r2 80052b2: 2b02 cmp r3, #2 80052b4: d1c5 bne.n 8005242 } } } } return HAL_OK; 80052b6: 2300 movs r3, #0 } 80052b8: 0018 movs r0, r3 80052ba: 46bd mov sp, r7 80052bc: b004 add sp, #16 80052be: bd80 pop {r7, pc} 080052c0 : * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { 80052c0: b580 push {r7, lr} 80052c2: b084 sub sp, #16 80052c4: af00 add r7, sp, #0 80052c6: 60f8 str r0, [r7, #12] 80052c8: 60b9 str r1, [r7, #8] 80052ca: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) 80052cc: e02f b.n 800532e { /* Check if an error is detected */ if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) 80052ce: 687a ldr r2, [r7, #4] 80052d0: 68b9 ldr r1, [r7, #8] 80052d2: 68fb ldr r3, [r7, #12] 80052d4: 0018 movs r0, r3 80052d6: f000 f837 bl 8005348 80052da: 1e03 subs r3, r0, #0 80052dc: d001 beq.n 80052e2 { return HAL_ERROR; 80052de: 2301 movs r3, #1 80052e0: e02d b.n 800533e } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 80052e2: f7fe fdcf bl 8003e84 80052e6: 0002 movs r2, r0 80052e8: 687b ldr r3, [r7, #4] 80052ea: 1ad3 subs r3, r2, r3 80052ec: 68ba ldr r2, [r7, #8] 80052ee: 429a cmp r2, r3 80052f0: d302 bcc.n 80052f8 80052f2: 68bb ldr r3, [r7, #8] 80052f4: 2b00 cmp r3, #0 80052f6: d11a bne.n 800532e { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET)) 80052f8: 68fb ldr r3, [r7, #12] 80052fa: 681b ldr r3, [r3, #0] 80052fc: 699b ldr r3, [r3, #24] 80052fe: 2220 movs r2, #32 8005300: 4013 ands r3, r2 8005302: 2b20 cmp r3, #32 8005304: d013 beq.n 800532e { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 8005306: 68fb ldr r3, [r7, #12] 8005308: 6c5b ldr r3, [r3, #68] @ 0x44 800530a: 2220 movs r2, #32 800530c: 431a orrs r2, r3 800530e: 68fb ldr r3, [r7, #12] 8005310: 645a str r2, [r3, #68] @ 0x44 hi2c->State = HAL_I2C_STATE_READY; 8005312: 68fb ldr r3, [r7, #12] 8005314: 2241 movs r2, #65 @ 0x41 8005316: 2120 movs r1, #32 8005318: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; 800531a: 68fb ldr r3, [r7, #12] 800531c: 2242 movs r2, #66 @ 0x42 800531e: 2100 movs r1, #0 8005320: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8005322: 68fb ldr r3, [r7, #12] 8005324: 2240 movs r2, #64 @ 0x40 8005326: 2100 movs r1, #0 8005328: 5499 strb r1, [r3, r2] return HAL_ERROR; 800532a: 2301 movs r3, #1 800532c: e007 b.n 800533e while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) 800532e: 68fb ldr r3, [r7, #12] 8005330: 681b ldr r3, [r3, #0] 8005332: 699b ldr r3, [r3, #24] 8005334: 2220 movs r2, #32 8005336: 4013 ands r3, r2 8005338: 2b20 cmp r3, #32 800533a: d1c8 bne.n 80052ce } } } return HAL_OK; 800533c: 2300 movs r3, #0 } 800533e: 0018 movs r0, r3 8005340: 46bd mov sp, r7 8005342: b004 add sp, #16 8005344: bd80 pop {r7, pc} ... 08005348 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_IsErrorOccurred(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { 8005348: b580 push {r7, lr} 800534a: b08a sub sp, #40 @ 0x28 800534c: af00 add r7, sp, #0 800534e: 60f8 str r0, [r7, #12] 8005350: 60b9 str r1, [r7, #8] 8005352: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; 8005354: 2327 movs r3, #39 @ 0x27 8005356: 18fb adds r3, r7, r3 8005358: 2200 movs r2, #0 800535a: 701a strb r2, [r3, #0] uint32_t itflag = hi2c->Instance->ISR; 800535c: 68fb ldr r3, [r7, #12] 800535e: 681b ldr r3, [r3, #0] 8005360: 699b ldr r3, [r3, #24] 8005362: 61bb str r3, [r7, #24] uint32_t error_code = 0; 8005364: 2300 movs r3, #0 8005366: 623b str r3, [r7, #32] uint32_t tickstart = Tickstart; 8005368: 687b ldr r3, [r7, #4] 800536a: 61fb str r3, [r7, #28] uint32_t tmp1; HAL_I2C_ModeTypeDef tmp2; if (HAL_IS_BIT_SET(itflag, I2C_FLAG_AF)) 800536c: 69bb ldr r3, [r7, #24] 800536e: 2210 movs r2, #16 8005370: 4013 ands r3, r2 8005372: d100 bne.n 8005376 8005374: e079 b.n 800546a { /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); 8005376: 68fb ldr r3, [r7, #12] 8005378: 681b ldr r3, [r3, #0] 800537a: 2210 movs r2, #16 800537c: 61da str r2, [r3, #28] /* Wait until STOP Flag is set or timeout occurred */ /* AutoEnd should be initiate after AF */ while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (status == HAL_OK)) 800537e: e057 b.n 8005430 8005380: 2227 movs r2, #39 @ 0x27 8005382: 18bb adds r3, r7, r2 8005384: 18ba adds r2, r7, r2 8005386: 7812 ldrb r2, [r2, #0] 8005388: 701a strb r2, [r3, #0] { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 800538a: 68bb ldr r3, [r7, #8] 800538c: 3301 adds r3, #1 800538e: d04f beq.n 8005430 { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) 8005390: f7fe fd78 bl 8003e84 8005394: 0002 movs r2, r0 8005396: 69fb ldr r3, [r7, #28] 8005398: 1ad3 subs r3, r2, r3 800539a: 68ba ldr r2, [r7, #8] 800539c: 429a cmp r2, r3 800539e: d302 bcc.n 80053a6 80053a0: 68bb ldr r3, [r7, #8] 80053a2: 2b00 cmp r3, #0 80053a4: d144 bne.n 8005430 { tmp1 = (uint32_t)(hi2c->Instance->CR2 & I2C_CR2_STOP); 80053a6: 68fb ldr r3, [r7, #12] 80053a8: 681b ldr r3, [r3, #0] 80053aa: 685a ldr r2, [r3, #4] 80053ac: 2380 movs r3, #128 @ 0x80 80053ae: 01db lsls r3, r3, #7 80053b0: 4013 ands r3, r2 80053b2: 617b str r3, [r7, #20] tmp2 = hi2c->Mode; 80053b4: 2013 movs r0, #19 80053b6: 183b adds r3, r7, r0 80053b8: 68fa ldr r2, [r7, #12] 80053ba: 2142 movs r1, #66 @ 0x42 80053bc: 5c52 ldrb r2, [r2, r1] 80053be: 701a strb r2, [r3, #0] /* In case of I2C still busy, try to regenerate a STOP manually */ if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET) && \ 80053c0: 68fb ldr r3, [r7, #12] 80053c2: 681b ldr r3, [r3, #0] 80053c4: 699a ldr r2, [r3, #24] 80053c6: 2380 movs r3, #128 @ 0x80 80053c8: 021b lsls r3, r3, #8 80053ca: 401a ands r2, r3 80053cc: 2380 movs r3, #128 @ 0x80 80053ce: 021b lsls r3, r3, #8 80053d0: 429a cmp r2, r3 80053d2: d126 bne.n 8005422 80053d4: 697a ldr r2, [r7, #20] 80053d6: 2380 movs r3, #128 @ 0x80 80053d8: 01db lsls r3, r3, #7 80053da: 429a cmp r2, r3 80053dc: d021 beq.n 8005422 (tmp1 != I2C_CR2_STOP) && \ 80053de: 183b adds r3, r7, r0 80053e0: 781b ldrb r3, [r3, #0] 80053e2: 2b20 cmp r3, #32 80053e4: d01d beq.n 8005422 (tmp2 != HAL_I2C_MODE_SLAVE)) { /* Generate Stop */ hi2c->Instance->CR2 |= I2C_CR2_STOP; 80053e6: 68fb ldr r3, [r7, #12] 80053e8: 681b ldr r3, [r3, #0] 80053ea: 685a ldr r2, [r3, #4] 80053ec: 68fb ldr r3, [r7, #12] 80053ee: 681b ldr r3, [r3, #0] 80053f0: 2180 movs r1, #128 @ 0x80 80053f2: 01c9 lsls r1, r1, #7 80053f4: 430a orrs r2, r1 80053f6: 605a str r2, [r3, #4] /* Update Tick with new reference */ tickstart = HAL_GetTick(); 80053f8: f7fe fd44 bl 8003e84 80053fc: 0003 movs r3, r0 80053fe: 61fb str r3, [r7, #28] } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) 8005400: e00f b.n 8005422 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > I2C_TIMEOUT_STOPF) 8005402: f7fe fd3f bl 8003e84 8005406: 0002 movs r2, r0 8005408: 69fb ldr r3, [r7, #28] 800540a: 1ad3 subs r3, r2, r3 800540c: 2b19 cmp r3, #25 800540e: d908 bls.n 8005422 { error_code |= HAL_I2C_ERROR_TIMEOUT; 8005410: 6a3b ldr r3, [r7, #32] 8005412: 2220 movs r2, #32 8005414: 4313 orrs r3, r2 8005416: 623b str r3, [r7, #32] status = HAL_ERROR; 8005418: 2327 movs r3, #39 @ 0x27 800541a: 18fb adds r3, r7, r3 800541c: 2201 movs r2, #1 800541e: 701a strb r2, [r3, #0] break; 8005420: e006 b.n 8005430 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) 8005422: 68fb ldr r3, [r7, #12] 8005424: 681b ldr r3, [r3, #0] 8005426: 699b ldr r3, [r3, #24] 8005428: 2220 movs r2, #32 800542a: 4013 ands r3, r2 800542c: 2b20 cmp r3, #32 800542e: d1e8 bne.n 8005402 while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (status == HAL_OK)) 8005430: 68fb ldr r3, [r7, #12] 8005432: 681b ldr r3, [r3, #0] 8005434: 699b ldr r3, [r3, #24] 8005436: 2220 movs r2, #32 8005438: 4013 ands r3, r2 800543a: 2b20 cmp r3, #32 800543c: d004 beq.n 8005448 800543e: 2327 movs r3, #39 @ 0x27 8005440: 18fb adds r3, r7, r3 8005442: 781b ldrb r3, [r3, #0] 8005444: 2b00 cmp r3, #0 8005446: d09b beq.n 8005380 } } } /* In case STOP Flag is detected, clear it */ if (status == HAL_OK) 8005448: 2327 movs r3, #39 @ 0x27 800544a: 18fb adds r3, r7, r3 800544c: 781b ldrb r3, [r3, #0] 800544e: 2b00 cmp r3, #0 8005450: d103 bne.n 800545a { /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); 8005452: 68fb ldr r3, [r7, #12] 8005454: 681b ldr r3, [r3, #0] 8005456: 2220 movs r2, #32 8005458: 61da str r2, [r3, #28] } error_code |= HAL_I2C_ERROR_AF; 800545a: 6a3b ldr r3, [r7, #32] 800545c: 2204 movs r2, #4 800545e: 4313 orrs r3, r2 8005460: 623b str r3, [r7, #32] status = HAL_ERROR; 8005462: 2327 movs r3, #39 @ 0x27 8005464: 18fb adds r3, r7, r3 8005466: 2201 movs r2, #1 8005468: 701a strb r2, [r3, #0] } /* Refresh Content of Status register */ itflag = hi2c->Instance->ISR; 800546a: 68fb ldr r3, [r7, #12] 800546c: 681b ldr r3, [r3, #0] 800546e: 699b ldr r3, [r3, #24] 8005470: 61bb str r3, [r7, #24] /* Then verify if an additional errors occurs */ /* Check if a Bus error occurred */ if (HAL_IS_BIT_SET(itflag, I2C_FLAG_BERR)) 8005472: 69ba ldr r2, [r7, #24] 8005474: 2380 movs r3, #128 @ 0x80 8005476: 005b lsls r3, r3, #1 8005478: 4013 ands r3, r2 800547a: d00c beq.n 8005496 { error_code |= HAL_I2C_ERROR_BERR; 800547c: 6a3b ldr r3, [r7, #32] 800547e: 2201 movs r2, #1 8005480: 4313 orrs r3, r2 8005482: 623b str r3, [r7, #32] /* Clear BERR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); 8005484: 68fb ldr r3, [r7, #12] 8005486: 681b ldr r3, [r3, #0] 8005488: 2280 movs r2, #128 @ 0x80 800548a: 0052 lsls r2, r2, #1 800548c: 61da str r2, [r3, #28] status = HAL_ERROR; 800548e: 2327 movs r3, #39 @ 0x27 8005490: 18fb adds r3, r7, r3 8005492: 2201 movs r2, #1 8005494: 701a strb r2, [r3, #0] } /* Check if an Over-Run/Under-Run error occurred */ if (HAL_IS_BIT_SET(itflag, I2C_FLAG_OVR)) 8005496: 69ba ldr r2, [r7, #24] 8005498: 2380 movs r3, #128 @ 0x80 800549a: 00db lsls r3, r3, #3 800549c: 4013 ands r3, r2 800549e: d00c beq.n 80054ba { error_code |= HAL_I2C_ERROR_OVR; 80054a0: 6a3b ldr r3, [r7, #32] 80054a2: 2208 movs r2, #8 80054a4: 4313 orrs r3, r2 80054a6: 623b str r3, [r7, #32] /* Clear OVR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); 80054a8: 68fb ldr r3, [r7, #12] 80054aa: 681b ldr r3, [r3, #0] 80054ac: 2280 movs r2, #128 @ 0x80 80054ae: 00d2 lsls r2, r2, #3 80054b0: 61da str r2, [r3, #28] status = HAL_ERROR; 80054b2: 2327 movs r3, #39 @ 0x27 80054b4: 18fb adds r3, r7, r3 80054b6: 2201 movs r2, #1 80054b8: 701a strb r2, [r3, #0] } /* Check if an Arbitration Loss error occurred */ if (HAL_IS_BIT_SET(itflag, I2C_FLAG_ARLO)) 80054ba: 69ba ldr r2, [r7, #24] 80054bc: 2380 movs r3, #128 @ 0x80 80054be: 009b lsls r3, r3, #2 80054c0: 4013 ands r3, r2 80054c2: d00c beq.n 80054de { error_code |= HAL_I2C_ERROR_ARLO; 80054c4: 6a3b ldr r3, [r7, #32] 80054c6: 2202 movs r2, #2 80054c8: 4313 orrs r3, r2 80054ca: 623b str r3, [r7, #32] /* Clear ARLO flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); 80054cc: 68fb ldr r3, [r7, #12] 80054ce: 681b ldr r3, [r3, #0] 80054d0: 2280 movs r2, #128 @ 0x80 80054d2: 0092 lsls r2, r2, #2 80054d4: 61da str r2, [r3, #28] status = HAL_ERROR; 80054d6: 2327 movs r3, #39 @ 0x27 80054d8: 18fb adds r3, r7, r3 80054da: 2201 movs r2, #1 80054dc: 701a strb r2, [r3, #0] } if (status != HAL_OK) 80054de: 2327 movs r3, #39 @ 0x27 80054e0: 18fb adds r3, r7, r3 80054e2: 781b ldrb r3, [r3, #0] 80054e4: 2b00 cmp r3, #0 80054e6: d01d beq.n 8005524 { /* Flush TX register */ I2C_Flush_TXDR(hi2c); 80054e8: 68fb ldr r3, [r7, #12] 80054ea: 0018 movs r0, r3 80054ec: f7ff fe28 bl 8005140 /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); 80054f0: 68fb ldr r3, [r7, #12] 80054f2: 681b ldr r3, [r3, #0] 80054f4: 685a ldr r2, [r3, #4] 80054f6: 68fb ldr r3, [r7, #12] 80054f8: 681b ldr r3, [r3, #0] 80054fa: 490e ldr r1, [pc, #56] @ (8005534 ) 80054fc: 400a ands r2, r1 80054fe: 605a str r2, [r3, #4] hi2c->ErrorCode |= error_code; 8005500: 68fb ldr r3, [r7, #12] 8005502: 6c5a ldr r2, [r3, #68] @ 0x44 8005504: 6a3b ldr r3, [r7, #32] 8005506: 431a orrs r2, r3 8005508: 68fb ldr r3, [r7, #12] 800550a: 645a str r2, [r3, #68] @ 0x44 hi2c->State = HAL_I2C_STATE_READY; 800550c: 68fb ldr r3, [r7, #12] 800550e: 2241 movs r2, #65 @ 0x41 8005510: 2120 movs r1, #32 8005512: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; 8005514: 68fb ldr r3, [r7, #12] 8005516: 2242 movs r2, #66 @ 0x42 8005518: 2100 movs r1, #0 800551a: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 800551c: 68fb ldr r3, [r7, #12] 800551e: 2240 movs r2, #64 @ 0x40 8005520: 2100 movs r1, #0 8005522: 5499 strb r1, [r3, r2] } return status; 8005524: 2327 movs r3, #39 @ 0x27 8005526: 18fb adds r3, r7, r3 8005528: 781b ldrb r3, [r3, #0] } 800552a: 0018 movs r0, r3 800552c: 46bd mov sp, r7 800552e: b00a add sp, #40 @ 0x28 8005530: bd80 pop {r7, pc} 8005532: 46c0 nop @ (mov r8, r8) 8005534: fe00e800 .word 0xfe00e800 08005538 : * @arg @ref I2C_GENERATE_START_WRITE Generate Restart for write request. * @retval None */ static void I2C_TransferConfig(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) { 8005538: b590 push {r4, r7, lr} 800553a: b087 sub sp, #28 800553c: af00 add r7, sp, #0 800553e: 60f8 str r0, [r7, #12] 8005540: 0008 movs r0, r1 8005542: 0011 movs r1, r2 8005544: 607b str r3, [r7, #4] 8005546: 240a movs r4, #10 8005548: 193b adds r3, r7, r4 800554a: 1c02 adds r2, r0, #0 800554c: 801a strh r2, [r3, #0] 800554e: 2009 movs r0, #9 8005550: 183b adds r3, r7, r0 8005552: 1c0a adds r2, r1, #0 8005554: 701a strb r2, [r3, #0] assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_TRANSFER_MODE(Mode)); assert_param(IS_TRANSFER_REQUEST(Request)); /* Declaration of tmp to prevent undefined behavior of volatile usage */ uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ 8005556: 193b adds r3, r7, r4 8005558: 881b ldrh r3, [r3, #0] 800555a: 059b lsls r3, r3, #22 800555c: 0d9a lsrs r2, r3, #22 (((uint32_t)Size << I2C_CR2_NBYTES_Pos) & I2C_CR2_NBYTES) | \ 800555e: 183b adds r3, r7, r0 8005560: 781b ldrb r3, [r3, #0] 8005562: 0419 lsls r1, r3, #16 8005564: 23ff movs r3, #255 @ 0xff 8005566: 041b lsls r3, r3, #16 8005568: 400b ands r3, r1 uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ 800556a: 431a orrs r2, r3 (((uint32_t)Size << I2C_CR2_NBYTES_Pos) & I2C_CR2_NBYTES) | \ 800556c: 687b ldr r3, [r7, #4] 800556e: 431a orrs r2, r3 uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ 8005570: 6abb ldr r3, [r7, #40] @ 0x28 8005572: 4313 orrs r3, r2 8005574: 005b lsls r3, r3, #1 8005576: 085b lsrs r3, r3, #1 8005578: 617b str r3, [r7, #20] (uint32_t)Mode | (uint32_t)Request) & (~0x80000000U)); /* update CR2 register */ MODIFY_REG(hi2c->Instance->CR2, \ 800557a: 68fb ldr r3, [r7, #12] 800557c: 681b ldr r3, [r3, #0] 800557e: 685b ldr r3, [r3, #4] 8005580: 6aba ldr r2, [r7, #40] @ 0x28 8005582: 0d51 lsrs r1, r2, #21 8005584: 2280 movs r2, #128 @ 0x80 8005586: 00d2 lsls r2, r2, #3 8005588: 400a ands r2, r1 800558a: 4907 ldr r1, [pc, #28] @ (80055a8 ) 800558c: 430a orrs r2, r1 800558e: 43d2 mvns r2, r2 8005590: 401a ands r2, r3 8005592: 0011 movs r1, r2 8005594: 68fb ldr r3, [r7, #12] 8005596: 681b ldr r3, [r3, #0] 8005598: 697a ldr r2, [r7, #20] 800559a: 430a orrs r2, r1 800559c: 605a str r2, [r3, #4] ((I2C_CR2_SADD | I2C_CR2_NBYTES | I2C_CR2_RELOAD | I2C_CR2_AUTOEND | \ (I2C_CR2_RD_WRN & (uint32_t)(Request >> (31U - I2C_CR2_RD_WRN_Pos))) | \ I2C_CR2_START | I2C_CR2_STOP)), tmp); } 800559e: 46c0 nop @ (mov r8, r8) 80055a0: 46bd mov sp, r7 80055a2: b007 add sp, #28 80055a4: bd90 pop {r4, r7, pc} 80055a6: 46c0 nop @ (mov r8, r8) 80055a8: 03ff63ff .word 0x03ff63ff 080055ac : * the configuration information for the specified I2Cx peripheral. * @param AnalogFilter New state of the Analog filter. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter) { 80055ac: b580 push {r7, lr} 80055ae: b082 sub sp, #8 80055b0: af00 add r7, sp, #0 80055b2: 6078 str r0, [r7, #4] 80055b4: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter)); if (hi2c->State == HAL_I2C_STATE_READY) 80055b6: 687b ldr r3, [r7, #4] 80055b8: 2241 movs r2, #65 @ 0x41 80055ba: 5c9b ldrb r3, [r3, r2] 80055bc: b2db uxtb r3, r3 80055be: 2b20 cmp r3, #32 80055c0: d138 bne.n 8005634 { /* Process Locked */ __HAL_LOCK(hi2c); 80055c2: 687b ldr r3, [r7, #4] 80055c4: 2240 movs r2, #64 @ 0x40 80055c6: 5c9b ldrb r3, [r3, r2] 80055c8: 2b01 cmp r3, #1 80055ca: d101 bne.n 80055d0 80055cc: 2302 movs r3, #2 80055ce: e032 b.n 8005636 80055d0: 687b ldr r3, [r7, #4] 80055d2: 2240 movs r2, #64 @ 0x40 80055d4: 2101 movs r1, #1 80055d6: 5499 strb r1, [r3, r2] hi2c->State = HAL_I2C_STATE_BUSY; 80055d8: 687b ldr r3, [r7, #4] 80055da: 2241 movs r2, #65 @ 0x41 80055dc: 2124 movs r1, #36 @ 0x24 80055de: 5499 strb r1, [r3, r2] /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); 80055e0: 687b ldr r3, [r7, #4] 80055e2: 681b ldr r3, [r3, #0] 80055e4: 681a ldr r2, [r3, #0] 80055e6: 687b ldr r3, [r7, #4] 80055e8: 681b ldr r3, [r3, #0] 80055ea: 2101 movs r1, #1 80055ec: 438a bics r2, r1 80055ee: 601a str r2, [r3, #0] /* Reset I2Cx ANOFF bit */ hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); 80055f0: 687b ldr r3, [r7, #4] 80055f2: 681b ldr r3, [r3, #0] 80055f4: 681a ldr r2, [r3, #0] 80055f6: 687b ldr r3, [r7, #4] 80055f8: 681b ldr r3, [r3, #0] 80055fa: 4911 ldr r1, [pc, #68] @ (8005640 ) 80055fc: 400a ands r2, r1 80055fe: 601a str r2, [r3, #0] /* Set analog filter bit*/ hi2c->Instance->CR1 |= AnalogFilter; 8005600: 687b ldr r3, [r7, #4] 8005602: 681b ldr r3, [r3, #0] 8005604: 6819 ldr r1, [r3, #0] 8005606: 687b ldr r3, [r7, #4] 8005608: 681b ldr r3, [r3, #0] 800560a: 683a ldr r2, [r7, #0] 800560c: 430a orrs r2, r1 800560e: 601a str r2, [r3, #0] __HAL_I2C_ENABLE(hi2c); 8005610: 687b ldr r3, [r7, #4] 8005612: 681b ldr r3, [r3, #0] 8005614: 681a ldr r2, [r3, #0] 8005616: 687b ldr r3, [r7, #4] 8005618: 681b ldr r3, [r3, #0] 800561a: 2101 movs r1, #1 800561c: 430a orrs r2, r1 800561e: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; 8005620: 687b ldr r3, [r7, #4] 8005622: 2241 movs r2, #65 @ 0x41 8005624: 2120 movs r1, #32 8005626: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8005628: 687b ldr r3, [r7, #4] 800562a: 2240 movs r2, #64 @ 0x40 800562c: 2100 movs r1, #0 800562e: 5499 strb r1, [r3, r2] return HAL_OK; 8005630: 2300 movs r3, #0 8005632: e000 b.n 8005636 } else { return HAL_BUSY; 8005634: 2302 movs r3, #2 } } 8005636: 0018 movs r0, r3 8005638: 46bd mov sp, r7 800563a: b002 add sp, #8 800563c: bd80 pop {r7, pc} 800563e: 46c0 nop @ (mov r8, r8) 8005640: ffffefff .word 0xffffefff 08005644 : * the configuration information for the specified I2Cx peripheral. * @param DigitalFilter Coefficient of digital noise filter between Min_Data=0x00 and Max_Data=0x0F. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter) { 8005644: b580 push {r7, lr} 8005646: b084 sub sp, #16 8005648: af00 add r7, sp, #0 800564a: 6078 str r0, [r7, #4] 800564c: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter)); if (hi2c->State == HAL_I2C_STATE_READY) 800564e: 687b ldr r3, [r7, #4] 8005650: 2241 movs r2, #65 @ 0x41 8005652: 5c9b ldrb r3, [r3, r2] 8005654: b2db uxtb r3, r3 8005656: 2b20 cmp r3, #32 8005658: d139 bne.n 80056ce { /* Process Locked */ __HAL_LOCK(hi2c); 800565a: 687b ldr r3, [r7, #4] 800565c: 2240 movs r2, #64 @ 0x40 800565e: 5c9b ldrb r3, [r3, r2] 8005660: 2b01 cmp r3, #1 8005662: d101 bne.n 8005668 8005664: 2302 movs r3, #2 8005666: e033 b.n 80056d0 8005668: 687b ldr r3, [r7, #4] 800566a: 2240 movs r2, #64 @ 0x40 800566c: 2101 movs r1, #1 800566e: 5499 strb r1, [r3, r2] hi2c->State = HAL_I2C_STATE_BUSY; 8005670: 687b ldr r3, [r7, #4] 8005672: 2241 movs r2, #65 @ 0x41 8005674: 2124 movs r1, #36 @ 0x24 8005676: 5499 strb r1, [r3, r2] /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); 8005678: 687b ldr r3, [r7, #4] 800567a: 681b ldr r3, [r3, #0] 800567c: 681a ldr r2, [r3, #0] 800567e: 687b ldr r3, [r7, #4] 8005680: 681b ldr r3, [r3, #0] 8005682: 2101 movs r1, #1 8005684: 438a bics r2, r1 8005686: 601a str r2, [r3, #0] /* Get the old register value */ tmpreg = hi2c->Instance->CR1; 8005688: 687b ldr r3, [r7, #4] 800568a: 681b ldr r3, [r3, #0] 800568c: 681b ldr r3, [r3, #0] 800568e: 60fb str r3, [r7, #12] /* Reset I2Cx DNF bits [11:8] */ tmpreg &= ~(I2C_CR1_DNF); 8005690: 68fb ldr r3, [r7, #12] 8005692: 4a11 ldr r2, [pc, #68] @ (80056d8 ) 8005694: 4013 ands r3, r2 8005696: 60fb str r3, [r7, #12] /* Set I2Cx DNF coefficient */ tmpreg |= DigitalFilter << 8U; 8005698: 683b ldr r3, [r7, #0] 800569a: 021b lsls r3, r3, #8 800569c: 68fa ldr r2, [r7, #12] 800569e: 4313 orrs r3, r2 80056a0: 60fb str r3, [r7, #12] /* Store the new register value */ hi2c->Instance->CR1 = tmpreg; 80056a2: 687b ldr r3, [r7, #4] 80056a4: 681b ldr r3, [r3, #0] 80056a6: 68fa ldr r2, [r7, #12] 80056a8: 601a str r2, [r3, #0] __HAL_I2C_ENABLE(hi2c); 80056aa: 687b ldr r3, [r7, #4] 80056ac: 681b ldr r3, [r3, #0] 80056ae: 681a ldr r2, [r3, #0] 80056b0: 687b ldr r3, [r7, #4] 80056b2: 681b ldr r3, [r3, #0] 80056b4: 2101 movs r1, #1 80056b6: 430a orrs r2, r1 80056b8: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; 80056ba: 687b ldr r3, [r7, #4] 80056bc: 2241 movs r2, #65 @ 0x41 80056be: 2120 movs r1, #32 80056c0: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); 80056c2: 687b ldr r3, [r7, #4] 80056c4: 2240 movs r2, #64 @ 0x40 80056c6: 2100 movs r1, #0 80056c8: 5499 strb r1, [r3, r2] return HAL_OK; 80056ca: 2300 movs r3, #0 80056cc: e000 b.n 80056d0 } else { return HAL_BUSY; 80056ce: 2302 movs r3, #2 } } 80056d0: 0018 movs r0, r3 80056d2: 46bd mov sp, r7 80056d4: b004 add sp, #16 80056d6: bd80 pop {r7, pc} 80056d8: fffff0ff .word 0xfffff0ff 080056dc : * 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) { 80056dc: b580 push {r7, lr} 80056de: b088 sub sp, #32 80056e0: af00 add r7, sp, #0 80056e2: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; uint32_t pll_config2; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) 80056e4: 687b ldr r3, [r7, #4] 80056e6: 2b00 cmp r3, #0 80056e8: d102 bne.n 80056f0 { return HAL_ERROR; 80056ea: 2301 movs r3, #1 80056ec: f000 fb76 bl 8005ddc /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) 80056f0: 687b ldr r3, [r7, #4] 80056f2: 681b ldr r3, [r3, #0] 80056f4: 2201 movs r2, #1 80056f6: 4013 ands r3, r2 80056f8: d100 bne.n 80056fc 80056fa: e08e b.n 800581a { /* 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) 80056fc: 4bc5 ldr r3, [pc, #788] @ (8005a14 ) 80056fe: 685b ldr r3, [r3, #4] 8005700: 220c movs r2, #12 8005702: 4013 ands r3, r2 8005704: 2b04 cmp r3, #4 8005706: d00e beq.n 8005726 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) 8005708: 4bc2 ldr r3, [pc, #776] @ (8005a14 ) 800570a: 685b ldr r3, [r3, #4] 800570c: 220c movs r2, #12 800570e: 4013 ands r3, r2 8005710: 2b08 cmp r3, #8 8005712: d117 bne.n 8005744 8005714: 4bbf ldr r3, [pc, #764] @ (8005a14 ) 8005716: 685a ldr r2, [r3, #4] 8005718: 23c0 movs r3, #192 @ 0xc0 800571a: 025b lsls r3, r3, #9 800571c: 401a ands r2, r3 800571e: 2380 movs r3, #128 @ 0x80 8005720: 025b lsls r3, r3, #9 8005722: 429a cmp r2, r3 8005724: d10e bne.n 8005744 { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8005726: 4bbb ldr r3, [pc, #748] @ (8005a14 ) 8005728: 681a ldr r2, [r3, #0] 800572a: 2380 movs r3, #128 @ 0x80 800572c: 029b lsls r3, r3, #10 800572e: 4013 ands r3, r2 8005730: d100 bne.n 8005734 8005732: e071 b.n 8005818 8005734: 687b ldr r3, [r7, #4] 8005736: 685b ldr r3, [r3, #4] 8005738: 2b00 cmp r3, #0 800573a: d000 beq.n 800573e 800573c: e06c b.n 8005818 { return HAL_ERROR; 800573e: 2301 movs r3, #1 8005740: f000 fb4c bl 8005ddc } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); 8005744: 687b ldr r3, [r7, #4] 8005746: 685b ldr r3, [r3, #4] 8005748: 2b01 cmp r3, #1 800574a: d107 bne.n 800575c 800574c: 4bb1 ldr r3, [pc, #708] @ (8005a14 ) 800574e: 681a ldr r2, [r3, #0] 8005750: 4bb0 ldr r3, [pc, #704] @ (8005a14 ) 8005752: 2180 movs r1, #128 @ 0x80 8005754: 0249 lsls r1, r1, #9 8005756: 430a orrs r2, r1 8005758: 601a str r2, [r3, #0] 800575a: e02f b.n 80057bc 800575c: 687b ldr r3, [r7, #4] 800575e: 685b ldr r3, [r3, #4] 8005760: 2b00 cmp r3, #0 8005762: d10c bne.n 800577e 8005764: 4bab ldr r3, [pc, #684] @ (8005a14 ) 8005766: 681a ldr r2, [r3, #0] 8005768: 4baa ldr r3, [pc, #680] @ (8005a14 ) 800576a: 49ab ldr r1, [pc, #684] @ (8005a18 ) 800576c: 400a ands r2, r1 800576e: 601a str r2, [r3, #0] 8005770: 4ba8 ldr r3, [pc, #672] @ (8005a14 ) 8005772: 681a ldr r2, [r3, #0] 8005774: 4ba7 ldr r3, [pc, #668] @ (8005a14 ) 8005776: 49a9 ldr r1, [pc, #676] @ (8005a1c ) 8005778: 400a ands r2, r1 800577a: 601a str r2, [r3, #0] 800577c: e01e b.n 80057bc 800577e: 687b ldr r3, [r7, #4] 8005780: 685b ldr r3, [r3, #4] 8005782: 2b05 cmp r3, #5 8005784: d10e bne.n 80057a4 8005786: 4ba3 ldr r3, [pc, #652] @ (8005a14 ) 8005788: 681a ldr r2, [r3, #0] 800578a: 4ba2 ldr r3, [pc, #648] @ (8005a14 ) 800578c: 2180 movs r1, #128 @ 0x80 800578e: 02c9 lsls r1, r1, #11 8005790: 430a orrs r2, r1 8005792: 601a str r2, [r3, #0] 8005794: 4b9f ldr r3, [pc, #636] @ (8005a14 ) 8005796: 681a ldr r2, [r3, #0] 8005798: 4b9e ldr r3, [pc, #632] @ (8005a14 ) 800579a: 2180 movs r1, #128 @ 0x80 800579c: 0249 lsls r1, r1, #9 800579e: 430a orrs r2, r1 80057a0: 601a str r2, [r3, #0] 80057a2: e00b b.n 80057bc 80057a4: 4b9b ldr r3, [pc, #620] @ (8005a14 ) 80057a6: 681a ldr r2, [r3, #0] 80057a8: 4b9a ldr r3, [pc, #616] @ (8005a14 ) 80057aa: 499b ldr r1, [pc, #620] @ (8005a18 ) 80057ac: 400a ands r2, r1 80057ae: 601a str r2, [r3, #0] 80057b0: 4b98 ldr r3, [pc, #608] @ (8005a14 ) 80057b2: 681a ldr r2, [r3, #0] 80057b4: 4b97 ldr r3, [pc, #604] @ (8005a14 ) 80057b6: 4999 ldr r1, [pc, #612] @ (8005a1c ) 80057b8: 400a ands r2, r1 80057ba: 601a str r2, [r3, #0] /* Check the HSE State */ if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) 80057bc: 687b ldr r3, [r7, #4] 80057be: 685b ldr r3, [r3, #4] 80057c0: 2b00 cmp r3, #0 80057c2: d014 beq.n 80057ee { /* Get Start Tick */ tickstart = HAL_GetTick(); 80057c4: f7fe fb5e bl 8003e84 80057c8: 0003 movs r3, r0 80057ca: 61bb str r3, [r7, #24] /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 80057cc: e008 b.n 80057e0 { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) 80057ce: f7fe fb59 bl 8003e84 80057d2: 0002 movs r2, r0 80057d4: 69bb ldr r3, [r7, #24] 80057d6: 1ad3 subs r3, r2, r3 80057d8: 2b64 cmp r3, #100 @ 0x64 80057da: d901 bls.n 80057e0 { return HAL_TIMEOUT; 80057dc: 2303 movs r3, #3 80057de: e2fd b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 80057e0: 4b8c ldr r3, [pc, #560] @ (8005a14 ) 80057e2: 681a ldr r2, [r3, #0] 80057e4: 2380 movs r3, #128 @ 0x80 80057e6: 029b lsls r3, r3, #10 80057e8: 4013 ands r3, r2 80057ea: d0f0 beq.n 80057ce 80057ec: e015 b.n 800581a } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 80057ee: f7fe fb49 bl 8003e84 80057f2: 0003 movs r3, r0 80057f4: 61bb str r3, [r7, #24] /* Wait till HSE is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 80057f6: e008 b.n 800580a { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) 80057f8: f7fe fb44 bl 8003e84 80057fc: 0002 movs r2, r0 80057fe: 69bb ldr r3, [r7, #24] 8005800: 1ad3 subs r3, r2, r3 8005802: 2b64 cmp r3, #100 @ 0x64 8005804: d901 bls.n 800580a { return HAL_TIMEOUT; 8005806: 2303 movs r3, #3 8005808: e2e8 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 800580a: 4b82 ldr r3, [pc, #520] @ (8005a14 ) 800580c: 681a ldr r2, [r3, #0] 800580e: 2380 movs r3, #128 @ 0x80 8005810: 029b lsls r3, r3, #10 8005812: 4013 ands r3, r2 8005814: d1f0 bne.n 80057f8 8005816: e000 b.n 800581a if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8005818: 46c0 nop @ (mov r8, r8) } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) 800581a: 687b ldr r3, [r7, #4] 800581c: 681b ldr r3, [r3, #0] 800581e: 2202 movs r2, #2 8005820: 4013 ands r3, r2 8005822: d100 bne.n 8005826 8005824: e06c b.n 8005900 /* 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) 8005826: 4b7b ldr r3, [pc, #492] @ (8005a14 ) 8005828: 685b ldr r3, [r3, #4] 800582a: 220c movs r2, #12 800582c: 4013 ands r3, r2 800582e: d00e beq.n 800584e || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI))) 8005830: 4b78 ldr r3, [pc, #480] @ (8005a14 ) 8005832: 685b ldr r3, [r3, #4] 8005834: 220c movs r2, #12 8005836: 4013 ands r3, r2 8005838: 2b08 cmp r3, #8 800583a: d11f bne.n 800587c 800583c: 4b75 ldr r3, [pc, #468] @ (8005a14 ) 800583e: 685a ldr r2, [r3, #4] 8005840: 23c0 movs r3, #192 @ 0xc0 8005842: 025b lsls r3, r3, #9 8005844: 401a ands r2, r3 8005846: 2380 movs r3, #128 @ 0x80 8005848: 021b lsls r3, r3, #8 800584a: 429a cmp r2, r3 800584c: d116 bne.n 800587c { /* 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)) 800584e: 4b71 ldr r3, [pc, #452] @ (8005a14 ) 8005850: 681b ldr r3, [r3, #0] 8005852: 2202 movs r2, #2 8005854: 4013 ands r3, r2 8005856: d005 beq.n 8005864 8005858: 687b ldr r3, [r7, #4] 800585a: 68db ldr r3, [r3, #12] 800585c: 2b01 cmp r3, #1 800585e: d001 beq.n 8005864 { return HAL_ERROR; 8005860: 2301 movs r3, #1 8005862: e2bb b.n 8005ddc } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 8005864: 4b6b ldr r3, [pc, #428] @ (8005a14 ) 8005866: 681b ldr r3, [r3, #0] 8005868: 22f8 movs r2, #248 @ 0xf8 800586a: 4393 bics r3, r2 800586c: 0019 movs r1, r3 800586e: 687b ldr r3, [r7, #4] 8005870: 691b ldr r3, [r3, #16] 8005872: 00da lsls r2, r3, #3 8005874: 4b67 ldr r3, [pc, #412] @ (8005a14 ) 8005876: 430a orrs r2, r1 8005878: 601a str r2, [r3, #0] if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) 800587a: e041 b.n 8005900 } } else { /* Check the HSI State */ if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF) 800587c: 687b ldr r3, [r7, #4] 800587e: 68db ldr r3, [r3, #12] 8005880: 2b00 cmp r3, #0 8005882: d024 beq.n 80058ce { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); 8005884: 4b63 ldr r3, [pc, #396] @ (8005a14 ) 8005886: 681a ldr r2, [r3, #0] 8005888: 4b62 ldr r3, [pc, #392] @ (8005a14 ) 800588a: 2101 movs r1, #1 800588c: 430a orrs r2, r1 800588e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8005890: f7fe faf8 bl 8003e84 8005894: 0003 movs r3, r0 8005896: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8005898: e008 b.n 80058ac { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) 800589a: f7fe faf3 bl 8003e84 800589e: 0002 movs r2, r0 80058a0: 69bb ldr r3, [r7, #24] 80058a2: 1ad3 subs r3, r2, r3 80058a4: 2b02 cmp r3, #2 80058a6: d901 bls.n 80058ac { return HAL_TIMEOUT; 80058a8: 2303 movs r3, #3 80058aa: e297 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 80058ac: 4b59 ldr r3, [pc, #356] @ (8005a14 ) 80058ae: 681b ldr r3, [r3, #0] 80058b0: 2202 movs r2, #2 80058b2: 4013 ands r3, r2 80058b4: d0f1 beq.n 800589a } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 80058b6: 4b57 ldr r3, [pc, #348] @ (8005a14 ) 80058b8: 681b ldr r3, [r3, #0] 80058ba: 22f8 movs r2, #248 @ 0xf8 80058bc: 4393 bics r3, r2 80058be: 0019 movs r1, r3 80058c0: 687b ldr r3, [r7, #4] 80058c2: 691b ldr r3, [r3, #16] 80058c4: 00da lsls r2, r3, #3 80058c6: 4b53 ldr r3, [pc, #332] @ (8005a14 ) 80058c8: 430a orrs r2, r1 80058ca: 601a str r2, [r3, #0] 80058cc: e018 b.n 8005900 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); 80058ce: 4b51 ldr r3, [pc, #324] @ (8005a14 ) 80058d0: 681a ldr r2, [r3, #0] 80058d2: 4b50 ldr r3, [pc, #320] @ (8005a14 ) 80058d4: 2101 movs r1, #1 80058d6: 438a bics r2, r1 80058d8: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80058da: f7fe fad3 bl 8003e84 80058de: 0003 movs r3, r0 80058e0: 61bb str r3, [r7, #24] /* Wait till HSI is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 80058e2: e008 b.n 80058f6 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) 80058e4: f7fe face bl 8003e84 80058e8: 0002 movs r2, r0 80058ea: 69bb ldr r3, [r7, #24] 80058ec: 1ad3 subs r3, r2, r3 80058ee: 2b02 cmp r3, #2 80058f0: d901 bls.n 80058f6 { return HAL_TIMEOUT; 80058f2: 2303 movs r3, #3 80058f4: e272 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 80058f6: 4b47 ldr r3, [pc, #284] @ (8005a14 ) 80058f8: 681b ldr r3, [r3, #0] 80058fa: 2202 movs r2, #2 80058fc: 4013 ands r3, r2 80058fe: d1f1 bne.n 80058e4 } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) 8005900: 687b ldr r3, [r7, #4] 8005902: 681b ldr r3, [r3, #0] 8005904: 2208 movs r2, #8 8005906: 4013 ands r3, r2 8005908: d036 beq.n 8005978 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF) 800590a: 687b ldr r3, [r7, #4] 800590c: 69db ldr r3, [r3, #28] 800590e: 2b00 cmp r3, #0 8005910: d019 beq.n 8005946 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); 8005912: 4b40 ldr r3, [pc, #256] @ (8005a14 ) 8005914: 6a5a ldr r2, [r3, #36] @ 0x24 8005916: 4b3f ldr r3, [pc, #252] @ (8005a14 ) 8005918: 2101 movs r1, #1 800591a: 430a orrs r2, r1 800591c: 625a str r2, [r3, #36] @ 0x24 /* Get Start Tick */ tickstart = HAL_GetTick(); 800591e: f7fe fab1 bl 8003e84 8005922: 0003 movs r3, r0 8005924: 61bb str r3, [r7, #24] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8005926: e008 b.n 800593a { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) 8005928: f7fe faac bl 8003e84 800592c: 0002 movs r2, r0 800592e: 69bb ldr r3, [r7, #24] 8005930: 1ad3 subs r3, r2, r3 8005932: 2b02 cmp r3, #2 8005934: d901 bls.n 800593a { return HAL_TIMEOUT; 8005936: 2303 movs r3, #3 8005938: e250 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 800593a: 4b36 ldr r3, [pc, #216] @ (8005a14 ) 800593c: 6a5b ldr r3, [r3, #36] @ 0x24 800593e: 2202 movs r2, #2 8005940: 4013 ands r3, r2 8005942: d0f1 beq.n 8005928 8005944: e018 b.n 8005978 } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); 8005946: 4b33 ldr r3, [pc, #204] @ (8005a14 ) 8005948: 6a5a ldr r2, [r3, #36] @ 0x24 800594a: 4b32 ldr r3, [pc, #200] @ (8005a14 ) 800594c: 2101 movs r1, #1 800594e: 438a bics r2, r1 8005950: 625a str r2, [r3, #36] @ 0x24 /* Get Start Tick */ tickstart = HAL_GetTick(); 8005952: f7fe fa97 bl 8003e84 8005956: 0003 movs r3, r0 8005958: 61bb str r3, [r7, #24] /* Wait till LSI is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 800595a: e008 b.n 800596e { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) 800595c: f7fe fa92 bl 8003e84 8005960: 0002 movs r2, r0 8005962: 69bb ldr r3, [r7, #24] 8005964: 1ad3 subs r3, r2, r3 8005966: 2b02 cmp r3, #2 8005968: d901 bls.n 800596e { return HAL_TIMEOUT; 800596a: 2303 movs r3, #3 800596c: e236 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 800596e: 4b29 ldr r3, [pc, #164] @ (8005a14 ) 8005970: 6a5b ldr r3, [r3, #36] @ 0x24 8005972: 2202 movs r2, #2 8005974: 4013 ands r3, r2 8005976: d1f1 bne.n 800595c } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) 8005978: 687b ldr r3, [r7, #4] 800597a: 681b ldr r3, [r3, #0] 800597c: 2204 movs r2, #4 800597e: 4013 ands r3, r2 8005980: d100 bne.n 8005984 8005982: e0b5 b.n 8005af0 { FlagStatus pwrclkchanged = RESET; 8005984: 201f movs r0, #31 8005986: 183b adds r3, r7, r0 8005988: 2200 movs r2, #0 800598a: 701a strb r2, [r3, #0] /* 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()) 800598c: 4b21 ldr r3, [pc, #132] @ (8005a14 ) 800598e: 69da ldr r2, [r3, #28] 8005990: 2380 movs r3, #128 @ 0x80 8005992: 055b lsls r3, r3, #21 8005994: 4013 ands r3, r2 8005996: d110 bne.n 80059ba { __HAL_RCC_PWR_CLK_ENABLE(); 8005998: 4b1e ldr r3, [pc, #120] @ (8005a14 ) 800599a: 69da ldr r2, [r3, #28] 800599c: 4b1d ldr r3, [pc, #116] @ (8005a14 ) 800599e: 2180 movs r1, #128 @ 0x80 80059a0: 0549 lsls r1, r1, #21 80059a2: 430a orrs r2, r1 80059a4: 61da str r2, [r3, #28] 80059a6: 4b1b ldr r3, [pc, #108] @ (8005a14 ) 80059a8: 69da ldr r2, [r3, #28] 80059aa: 2380 movs r3, #128 @ 0x80 80059ac: 055b lsls r3, r3, #21 80059ae: 4013 ands r3, r2 80059b0: 60fb str r3, [r7, #12] 80059b2: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; 80059b4: 183b adds r3, r7, r0 80059b6: 2201 movs r2, #1 80059b8: 701a strb r2, [r3, #0] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80059ba: 4b19 ldr r3, [pc, #100] @ (8005a20 ) 80059bc: 681a ldr r2, [r3, #0] 80059be: 2380 movs r3, #128 @ 0x80 80059c0: 005b lsls r3, r3, #1 80059c2: 4013 ands r3, r2 80059c4: d11a bne.n 80059fc { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 80059c6: 4b16 ldr r3, [pc, #88] @ (8005a20 ) 80059c8: 681a ldr r2, [r3, #0] 80059ca: 4b15 ldr r3, [pc, #84] @ (8005a20 ) 80059cc: 2180 movs r1, #128 @ 0x80 80059ce: 0049 lsls r1, r1, #1 80059d0: 430a orrs r2, r1 80059d2: 601a str r2, [r3, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 80059d4: f7fe fa56 bl 8003e84 80059d8: 0003 movs r3, r0 80059da: 61bb str r3, [r7, #24] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80059dc: e008 b.n 80059f0 { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 80059de: f7fe fa51 bl 8003e84 80059e2: 0002 movs r2, r0 80059e4: 69bb ldr r3, [r7, #24] 80059e6: 1ad3 subs r3, r2, r3 80059e8: 2b64 cmp r3, #100 @ 0x64 80059ea: d901 bls.n 80059f0 { return HAL_TIMEOUT; 80059ec: 2303 movs r3, #3 80059ee: e1f5 b.n 8005ddc while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80059f0: 4b0b ldr r3, [pc, #44] @ (8005a20 ) 80059f2: 681a ldr r2, [r3, #0] 80059f4: 2380 movs r3, #128 @ 0x80 80059f6: 005b lsls r3, r3, #1 80059f8: 4013 ands r3, r2 80059fa: d0f0 beq.n 80059de } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); 80059fc: 687b ldr r3, [r7, #4] 80059fe: 689b ldr r3, [r3, #8] 8005a00: 2b01 cmp r3, #1 8005a02: d10f bne.n 8005a24 8005a04: 4b03 ldr r3, [pc, #12] @ (8005a14 ) 8005a06: 6a1a ldr r2, [r3, #32] 8005a08: 4b02 ldr r3, [pc, #8] @ (8005a14 ) 8005a0a: 2101 movs r1, #1 8005a0c: 430a orrs r2, r1 8005a0e: 621a str r2, [r3, #32] 8005a10: e036 b.n 8005a80 8005a12: 46c0 nop @ (mov r8, r8) 8005a14: 40021000 .word 0x40021000 8005a18: fffeffff .word 0xfffeffff 8005a1c: fffbffff .word 0xfffbffff 8005a20: 40007000 .word 0x40007000 8005a24: 687b ldr r3, [r7, #4] 8005a26: 689b ldr r3, [r3, #8] 8005a28: 2b00 cmp r3, #0 8005a2a: d10c bne.n 8005a46 8005a2c: 4bca ldr r3, [pc, #808] @ (8005d58 ) 8005a2e: 6a1a ldr r2, [r3, #32] 8005a30: 4bc9 ldr r3, [pc, #804] @ (8005d58 ) 8005a32: 2101 movs r1, #1 8005a34: 438a bics r2, r1 8005a36: 621a str r2, [r3, #32] 8005a38: 4bc7 ldr r3, [pc, #796] @ (8005d58 ) 8005a3a: 6a1a ldr r2, [r3, #32] 8005a3c: 4bc6 ldr r3, [pc, #792] @ (8005d58 ) 8005a3e: 2104 movs r1, #4 8005a40: 438a bics r2, r1 8005a42: 621a str r2, [r3, #32] 8005a44: e01c b.n 8005a80 8005a46: 687b ldr r3, [r7, #4] 8005a48: 689b ldr r3, [r3, #8] 8005a4a: 2b05 cmp r3, #5 8005a4c: d10c bne.n 8005a68 8005a4e: 4bc2 ldr r3, [pc, #776] @ (8005d58 ) 8005a50: 6a1a ldr r2, [r3, #32] 8005a52: 4bc1 ldr r3, [pc, #772] @ (8005d58 ) 8005a54: 2104 movs r1, #4 8005a56: 430a orrs r2, r1 8005a58: 621a str r2, [r3, #32] 8005a5a: 4bbf ldr r3, [pc, #764] @ (8005d58 ) 8005a5c: 6a1a ldr r2, [r3, #32] 8005a5e: 4bbe ldr r3, [pc, #760] @ (8005d58 ) 8005a60: 2101 movs r1, #1 8005a62: 430a orrs r2, r1 8005a64: 621a str r2, [r3, #32] 8005a66: e00b b.n 8005a80 8005a68: 4bbb ldr r3, [pc, #748] @ (8005d58 ) 8005a6a: 6a1a ldr r2, [r3, #32] 8005a6c: 4bba ldr r3, [pc, #744] @ (8005d58 ) 8005a6e: 2101 movs r1, #1 8005a70: 438a bics r2, r1 8005a72: 621a str r2, [r3, #32] 8005a74: 4bb8 ldr r3, [pc, #736] @ (8005d58 ) 8005a76: 6a1a ldr r2, [r3, #32] 8005a78: 4bb7 ldr r3, [pc, #732] @ (8005d58 ) 8005a7a: 2104 movs r1, #4 8005a7c: 438a bics r2, r1 8005a7e: 621a str r2, [r3, #32] /* Check the LSE State */ if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF) 8005a80: 687b ldr r3, [r7, #4] 8005a82: 689b ldr r3, [r3, #8] 8005a84: 2b00 cmp r3, #0 8005a86: d014 beq.n 8005ab2 { /* Get Start Tick */ tickstart = HAL_GetTick(); 8005a88: f7fe f9fc bl 8003e84 8005a8c: 0003 movs r3, r0 8005a8e: 61bb str r3, [r7, #24] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8005a90: e009 b.n 8005aa6 { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) 8005a92: f7fe f9f7 bl 8003e84 8005a96: 0002 movs r2, r0 8005a98: 69bb ldr r3, [r7, #24] 8005a9a: 1ad3 subs r3, r2, r3 8005a9c: 4aaf ldr r2, [pc, #700] @ (8005d5c ) 8005a9e: 4293 cmp r3, r2 8005aa0: d901 bls.n 8005aa6 { return HAL_TIMEOUT; 8005aa2: 2303 movs r3, #3 8005aa4: e19a b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8005aa6: 4bac ldr r3, [pc, #688] @ (8005d58 ) 8005aa8: 6a1b ldr r3, [r3, #32] 8005aaa: 2202 movs r2, #2 8005aac: 4013 ands r3, r2 8005aae: d0f0 beq.n 8005a92 8005ab0: e013 b.n 8005ada } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8005ab2: f7fe f9e7 bl 8003e84 8005ab6: 0003 movs r3, r0 8005ab8: 61bb str r3, [r7, #24] /* Wait till LSE is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8005aba: e009 b.n 8005ad0 { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) 8005abc: f7fe f9e2 bl 8003e84 8005ac0: 0002 movs r2, r0 8005ac2: 69bb ldr r3, [r7, #24] 8005ac4: 1ad3 subs r3, r2, r3 8005ac6: 4aa5 ldr r2, [pc, #660] @ (8005d5c ) 8005ac8: 4293 cmp r3, r2 8005aca: d901 bls.n 8005ad0 { return HAL_TIMEOUT; 8005acc: 2303 movs r3, #3 8005ace: e185 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8005ad0: 4ba1 ldr r3, [pc, #644] @ (8005d58 ) 8005ad2: 6a1b ldr r3, [r3, #32] 8005ad4: 2202 movs r2, #2 8005ad6: 4013 ands r3, r2 8005ad8: d1f0 bne.n 8005abc } } } /* Require to disable power clock if necessary */ if(pwrclkchanged == SET) 8005ada: 231f movs r3, #31 8005adc: 18fb adds r3, r7, r3 8005ade: 781b ldrb r3, [r3, #0] 8005ae0: 2b01 cmp r3, #1 8005ae2: d105 bne.n 8005af0 { __HAL_RCC_PWR_CLK_DISABLE(); 8005ae4: 4b9c ldr r3, [pc, #624] @ (8005d58 ) 8005ae6: 69da ldr r2, [r3, #28] 8005ae8: 4b9b ldr r3, [pc, #620] @ (8005d58 ) 8005aea: 499d ldr r1, [pc, #628] @ (8005d60 ) 8005aec: 400a ands r2, r1 8005aee: 61da str r2, [r3, #28] } } /*----------------------------- HSI14 Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI14) == RCC_OSCILLATORTYPE_HSI14) 8005af0: 687b ldr r3, [r7, #4] 8005af2: 681b ldr r3, [r3, #0] 8005af4: 2210 movs r2, #16 8005af6: 4013 ands r3, r2 8005af8: d063 beq.n 8005bc2 /* Check the parameters */ assert_param(IS_RCC_HSI14(RCC_OscInitStruct->HSI14State)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSI14CalibrationValue)); /* Check the HSI14 State */ if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ON) 8005afa: 687b ldr r3, [r7, #4] 8005afc: 695b ldr r3, [r3, #20] 8005afe: 2b01 cmp r3, #1 8005b00: d12a bne.n 8005b58 { /* Disable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_DISABLE(); 8005b02: 4b95 ldr r3, [pc, #596] @ (8005d58 ) 8005b04: 6b5a ldr r2, [r3, #52] @ 0x34 8005b06: 4b94 ldr r3, [pc, #592] @ (8005d58 ) 8005b08: 2104 movs r1, #4 8005b0a: 430a orrs r2, r1 8005b0c: 635a str r2, [r3, #52] @ 0x34 /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI14_ENABLE(); 8005b0e: 4b92 ldr r3, [pc, #584] @ (8005d58 ) 8005b10: 6b5a ldr r2, [r3, #52] @ 0x34 8005b12: 4b91 ldr r3, [pc, #580] @ (8005d58 ) 8005b14: 2101 movs r1, #1 8005b16: 430a orrs r2, r1 8005b18: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); 8005b1a: f7fe f9b3 bl 8003e84 8005b1e: 0003 movs r3, r0 8005b20: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) 8005b22: e008 b.n 8005b36 { if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) 8005b24: f7fe f9ae bl 8003e84 8005b28: 0002 movs r2, r0 8005b2a: 69bb ldr r3, [r7, #24] 8005b2c: 1ad3 subs r3, r2, r3 8005b2e: 2b02 cmp r3, #2 8005b30: d901 bls.n 8005b36 { return HAL_TIMEOUT; 8005b32: 2303 movs r3, #3 8005b34: e152 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) 8005b36: 4b88 ldr r3, [pc, #544] @ (8005d58 ) 8005b38: 6b5b ldr r3, [r3, #52] @ 0x34 8005b3a: 2202 movs r2, #2 8005b3c: 4013 ands r3, r2 8005b3e: d0f1 beq.n 8005b24 } } /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); 8005b40: 4b85 ldr r3, [pc, #532] @ (8005d58 ) 8005b42: 6b5b ldr r3, [r3, #52] @ 0x34 8005b44: 22f8 movs r2, #248 @ 0xf8 8005b46: 4393 bics r3, r2 8005b48: 0019 movs r1, r3 8005b4a: 687b ldr r3, [r7, #4] 8005b4c: 699b ldr r3, [r3, #24] 8005b4e: 00da lsls r2, r3, #3 8005b50: 4b81 ldr r3, [pc, #516] @ (8005d58 ) 8005b52: 430a orrs r2, r1 8005b54: 635a str r2, [r3, #52] @ 0x34 8005b56: e034 b.n 8005bc2 } else if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ADC_CONTROL) 8005b58: 687b ldr r3, [r7, #4] 8005b5a: 695b ldr r3, [r3, #20] 8005b5c: 3305 adds r3, #5 8005b5e: d111 bne.n 8005b84 { /* Enable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_ENABLE(); 8005b60: 4b7d ldr r3, [pc, #500] @ (8005d58 ) 8005b62: 6b5a ldr r2, [r3, #52] @ 0x34 8005b64: 4b7c ldr r3, [pc, #496] @ (8005d58 ) 8005b66: 2104 movs r1, #4 8005b68: 438a bics r2, r1 8005b6a: 635a str r2, [r3, #52] @ 0x34 /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); 8005b6c: 4b7a ldr r3, [pc, #488] @ (8005d58 ) 8005b6e: 6b5b ldr r3, [r3, #52] @ 0x34 8005b70: 22f8 movs r2, #248 @ 0xf8 8005b72: 4393 bics r3, r2 8005b74: 0019 movs r1, r3 8005b76: 687b ldr r3, [r7, #4] 8005b78: 699b ldr r3, [r3, #24] 8005b7a: 00da lsls r2, r3, #3 8005b7c: 4b76 ldr r3, [pc, #472] @ (8005d58 ) 8005b7e: 430a orrs r2, r1 8005b80: 635a str r2, [r3, #52] @ 0x34 8005b82: e01e b.n 8005bc2 } else { /* Disable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_DISABLE(); 8005b84: 4b74 ldr r3, [pc, #464] @ (8005d58 ) 8005b86: 6b5a ldr r2, [r3, #52] @ 0x34 8005b88: 4b73 ldr r3, [pc, #460] @ (8005d58 ) 8005b8a: 2104 movs r1, #4 8005b8c: 430a orrs r2, r1 8005b8e: 635a str r2, [r3, #52] @ 0x34 /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI14_DISABLE(); 8005b90: 4b71 ldr r3, [pc, #452] @ (8005d58 ) 8005b92: 6b5a ldr r2, [r3, #52] @ 0x34 8005b94: 4b70 ldr r3, [pc, #448] @ (8005d58 ) 8005b96: 2101 movs r1, #1 8005b98: 438a bics r2, r1 8005b9a: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); 8005b9c: f7fe f972 bl 8003e84 8005ba0: 0003 movs r3, r0 8005ba2: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) 8005ba4: e008 b.n 8005bb8 { if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) 8005ba6: f7fe f96d bl 8003e84 8005baa: 0002 movs r2, r0 8005bac: 69bb ldr r3, [r7, #24] 8005bae: 1ad3 subs r3, r2, r3 8005bb0: 2b02 cmp r3, #2 8005bb2: d901 bls.n 8005bb8 { return HAL_TIMEOUT; 8005bb4: 2303 movs r3, #3 8005bb6: e111 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) 8005bb8: 4b67 ldr r3, [pc, #412] @ (8005d58 ) 8005bba: 6b5b ldr r3, [r3, #52] @ 0x34 8005bbc: 2202 movs r2, #2 8005bbe: 4013 ands r3, r2 8005bc0: d1f1 bne.n 8005ba6 } } #if defined(RCC_HSI48_SUPPORT) /*----------------------------- HSI48 Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) 8005bc2: 687b ldr r3, [r7, #4] 8005bc4: 681b ldr r3, [r3, #0] 8005bc6: 2220 movs r2, #32 8005bc8: 4013 ands r3, r2 8005bca: d05c beq.n 8005c86 { /* Check the parameters */ assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); /* When the HSI48 is used as system clock it is not allowed to be disabled */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || 8005bcc: 4b62 ldr r3, [pc, #392] @ (8005d58 ) 8005bce: 685b ldr r3, [r3, #4] 8005bd0: 220c movs r2, #12 8005bd2: 4013 ands r3, r2 8005bd4: 2b0c cmp r3, #12 8005bd6: d00e beq.n 8005bf6 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI48))) 8005bd8: 4b5f ldr r3, [pc, #380] @ (8005d58 ) 8005bda: 685b ldr r3, [r3, #4] 8005bdc: 220c movs r2, #12 8005bde: 4013 ands r3, r2 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || 8005be0: 2b08 cmp r3, #8 8005be2: d114 bne.n 8005c0e ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI48))) 8005be4: 4b5c ldr r3, [pc, #368] @ (8005d58 ) 8005be6: 685a ldr r2, [r3, #4] 8005be8: 23c0 movs r3, #192 @ 0xc0 8005bea: 025b lsls r3, r3, #9 8005bec: 401a ands r2, r3 8005bee: 23c0 movs r3, #192 @ 0xc0 8005bf0: 025b lsls r3, r3, #9 8005bf2: 429a cmp r2, r3 8005bf4: d10b bne.n 8005c0e { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_HSI48_ON)) 8005bf6: 4b58 ldr r3, [pc, #352] @ (8005d58 ) 8005bf8: 6b5a ldr r2, [r3, #52] @ 0x34 8005bfa: 2380 movs r3, #128 @ 0x80 8005bfc: 029b lsls r3, r3, #10 8005bfe: 4013 ands r3, r2 8005c00: d040 beq.n 8005c84 8005c02: 687b ldr r3, [r7, #4] 8005c04: 6a1b ldr r3, [r3, #32] 8005c06: 2b01 cmp r3, #1 8005c08: d03c beq.n 8005c84 { return HAL_ERROR; 8005c0a: 2301 movs r3, #1 8005c0c: e0e6 b.n 8005ddc } } else { /* Check the HSI48 State */ if(RCC_OscInitStruct->HSI48State != RCC_HSI48_OFF) 8005c0e: 687b ldr r3, [r7, #4] 8005c10: 6a1b ldr r3, [r3, #32] 8005c12: 2b00 cmp r3, #0 8005c14: d01b beq.n 8005c4e { /* Enable the Internal High Speed oscillator (HSI48). */ __HAL_RCC_HSI48_ENABLE(); 8005c16: 4b50 ldr r3, [pc, #320] @ (8005d58 ) 8005c18: 6b5a ldr r2, [r3, #52] @ 0x34 8005c1a: 4b4f ldr r3, [pc, #316] @ (8005d58 ) 8005c1c: 2180 movs r1, #128 @ 0x80 8005c1e: 0249 lsls r1, r1, #9 8005c20: 430a orrs r2, r1 8005c22: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); 8005c24: f7fe f92e bl 8003e84 8005c28: 0003 movs r3, r0 8005c2a: 61bb str r3, [r7, #24] /* Wait till HSI48 is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) 8005c2c: e008 b.n 8005c40 { if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) 8005c2e: f7fe f929 bl 8003e84 8005c32: 0002 movs r2, r0 8005c34: 69bb ldr r3, [r7, #24] 8005c36: 1ad3 subs r3, r2, r3 8005c38: 2b02 cmp r3, #2 8005c3a: d901 bls.n 8005c40 { return HAL_TIMEOUT; 8005c3c: 2303 movs r3, #3 8005c3e: e0cd b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) 8005c40: 4b45 ldr r3, [pc, #276] @ (8005d58 ) 8005c42: 6b5a ldr r2, [r3, #52] @ 0x34 8005c44: 2380 movs r3, #128 @ 0x80 8005c46: 029b lsls r3, r3, #10 8005c48: 4013 ands r3, r2 8005c4a: d0f0 beq.n 8005c2e 8005c4c: e01b b.n 8005c86 } } else { /* Disable the Internal High Speed oscillator (HSI48). */ __HAL_RCC_HSI48_DISABLE(); 8005c4e: 4b42 ldr r3, [pc, #264] @ (8005d58 ) 8005c50: 6b5a ldr r2, [r3, #52] @ 0x34 8005c52: 4b41 ldr r3, [pc, #260] @ (8005d58 ) 8005c54: 4943 ldr r1, [pc, #268] @ (8005d64 ) 8005c56: 400a ands r2, r1 8005c58: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); 8005c5a: f7fe f913 bl 8003e84 8005c5e: 0003 movs r3, r0 8005c60: 61bb str r3, [r7, #24] /* Wait till HSI48 is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) 8005c62: e008 b.n 8005c76 { if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) 8005c64: f7fe f90e bl 8003e84 8005c68: 0002 movs r2, r0 8005c6a: 69bb ldr r3, [r7, #24] 8005c6c: 1ad3 subs r3, r2, r3 8005c6e: 2b02 cmp r3, #2 8005c70: d901 bls.n 8005c76 { return HAL_TIMEOUT; 8005c72: 2303 movs r3, #3 8005c74: e0b2 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) 8005c76: 4b38 ldr r3, [pc, #224] @ (8005d58 ) 8005c78: 6b5a ldr r2, [r3, #52] @ 0x34 8005c7a: 2380 movs r3, #128 @ 0x80 8005c7c: 029b lsls r3, r3, #10 8005c7e: 4013 ands r3, r2 8005c80: d1f0 bne.n 8005c64 8005c82: e000 b.n 8005c86 if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_HSI48_ON)) 8005c84: 46c0 nop @ (mov r8, r8) #endif /* RCC_HSI48_SUPPORT */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) 8005c86: 687b ldr r3, [r7, #4] 8005c88: 6a5b ldr r3, [r3, #36] @ 0x24 8005c8a: 2b00 cmp r3, #0 8005c8c: d100 bne.n 8005c90 8005c8e: e0a4 b.n 8005dda { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) 8005c90: 4b31 ldr r3, [pc, #196] @ (8005d58 ) 8005c92: 685b ldr r3, [r3, #4] 8005c94: 220c movs r2, #12 8005c96: 4013 ands r3, r2 8005c98: 2b08 cmp r3, #8 8005c9a: d100 bne.n 8005c9e 8005c9c: e078 b.n 8005d90 { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) 8005c9e: 687b ldr r3, [r7, #4] 8005ca0: 6a5b ldr r3, [r3, #36] @ 0x24 8005ca2: 2b02 cmp r3, #2 8005ca4: d14c bne.n 8005d40 assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); assert_param(IS_RCC_PREDIV(RCC_OscInitStruct->PLL.PREDIV)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 8005ca6: 4b2c ldr r3, [pc, #176] @ (8005d58 ) 8005ca8: 681a ldr r2, [r3, #0] 8005caa: 4b2b ldr r3, [pc, #172] @ (8005d58 ) 8005cac: 492e ldr r1, [pc, #184] @ (8005d68 ) 8005cae: 400a ands r2, r1 8005cb0: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8005cb2: f7fe f8e7 bl 8003e84 8005cb6: 0003 movs r3, r0 8005cb8: 61bb str r3, [r7, #24] /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8005cba: e008 b.n 8005cce { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) 8005cbc: f7fe f8e2 bl 8003e84 8005cc0: 0002 movs r2, r0 8005cc2: 69bb ldr r3, [r7, #24] 8005cc4: 1ad3 subs r3, r2, r3 8005cc6: 2b02 cmp r3, #2 8005cc8: d901 bls.n 8005cce { return HAL_TIMEOUT; 8005cca: 2303 movs r3, #3 8005ccc: e086 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8005cce: 4b22 ldr r3, [pc, #136] @ (8005d58 ) 8005cd0: 681a ldr r2, [r3, #0] 8005cd2: 2380 movs r3, #128 @ 0x80 8005cd4: 049b lsls r3, r3, #18 8005cd6: 4013 ands r3, r2 8005cd8: d1f0 bne.n 8005cbc } } /* Configure the main PLL clock source, predivider and multiplication factor. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, 8005cda: 4b1f ldr r3, [pc, #124] @ (8005d58 ) 8005cdc: 6adb ldr r3, [r3, #44] @ 0x2c 8005cde: 220f movs r2, #15 8005ce0: 4393 bics r3, r2 8005ce2: 0019 movs r1, r3 8005ce4: 687b ldr r3, [r7, #4] 8005ce6: 6b1a ldr r2, [r3, #48] @ 0x30 8005ce8: 4b1b ldr r3, [pc, #108] @ (8005d58 ) 8005cea: 430a orrs r2, r1 8005cec: 62da str r2, [r3, #44] @ 0x2c 8005cee: 4b1a ldr r3, [pc, #104] @ (8005d58 ) 8005cf0: 685b ldr r3, [r3, #4] 8005cf2: 4a1e ldr r2, [pc, #120] @ (8005d6c ) 8005cf4: 4013 ands r3, r2 8005cf6: 0019 movs r1, r3 8005cf8: 687b ldr r3, [r7, #4] 8005cfa: 6ada ldr r2, [r3, #44] @ 0x2c 8005cfc: 687b ldr r3, [r7, #4] 8005cfe: 6a9b ldr r3, [r3, #40] @ 0x28 8005d00: 431a orrs r2, r3 8005d02: 4b15 ldr r3, [pc, #84] @ (8005d58 ) 8005d04: 430a orrs r2, r1 8005d06: 605a str r2, [r3, #4] RCC_OscInitStruct->PLL.PREDIV, RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); 8005d08: 4b13 ldr r3, [pc, #76] @ (8005d58 ) 8005d0a: 681a ldr r2, [r3, #0] 8005d0c: 4b12 ldr r3, [pc, #72] @ (8005d58 ) 8005d0e: 2180 movs r1, #128 @ 0x80 8005d10: 0449 lsls r1, r1, #17 8005d12: 430a orrs r2, r1 8005d14: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8005d16: f7fe f8b5 bl 8003e84 8005d1a: 0003 movs r3, r0 8005d1c: 61bb str r3, [r7, #24] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 8005d1e: e008 b.n 8005d32 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) 8005d20: f7fe f8b0 bl 8003e84 8005d24: 0002 movs r2, r0 8005d26: 69bb ldr r3, [r7, #24] 8005d28: 1ad3 subs r3, r2, r3 8005d2a: 2b02 cmp r3, #2 8005d2c: d901 bls.n 8005d32 { return HAL_TIMEOUT; 8005d2e: 2303 movs r3, #3 8005d30: e054 b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 8005d32: 4b09 ldr r3, [pc, #36] @ (8005d58 ) 8005d34: 681a ldr r2, [r3, #0] 8005d36: 2380 movs r3, #128 @ 0x80 8005d38: 049b lsls r3, r3, #18 8005d3a: 4013 ands r3, r2 8005d3c: d0f0 beq.n 8005d20 8005d3e: e04c b.n 8005dda } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 8005d40: 4b05 ldr r3, [pc, #20] @ (8005d58 ) 8005d42: 681a ldr r2, [r3, #0] 8005d44: 4b04 ldr r3, [pc, #16] @ (8005d58 ) 8005d46: 4908 ldr r1, [pc, #32] @ (8005d68 ) 8005d48: 400a ands r2, r1 8005d4a: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8005d4c: f7fe f89a bl 8003e84 8005d50: 0003 movs r3, r0 8005d52: 61bb str r3, [r7, #24] /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8005d54: e015 b.n 8005d82 8005d56: 46c0 nop @ (mov r8, r8) 8005d58: 40021000 .word 0x40021000 8005d5c: 00001388 .word 0x00001388 8005d60: efffffff .word 0xefffffff 8005d64: fffeffff .word 0xfffeffff 8005d68: feffffff .word 0xfeffffff 8005d6c: ffc27fff .word 0xffc27fff { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) 8005d70: f7fe f888 bl 8003e84 8005d74: 0002 movs r2, r0 8005d76: 69bb ldr r3, [r7, #24] 8005d78: 1ad3 subs r3, r2, r3 8005d7a: 2b02 cmp r3, #2 8005d7c: d901 bls.n 8005d82 { return HAL_TIMEOUT; 8005d7e: 2303 movs r3, #3 8005d80: e02c b.n 8005ddc while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8005d82: 4b18 ldr r3, [pc, #96] @ (8005de4 ) 8005d84: 681a ldr r2, [r3, #0] 8005d86: 2380 movs r3, #128 @ 0x80 8005d88: 049b lsls r3, r3, #18 8005d8a: 4013 ands r3, r2 8005d8c: d1f0 bne.n 8005d70 8005d8e: e024 b.n 8005dda } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) 8005d90: 687b ldr r3, [r7, #4] 8005d92: 6a5b ldr r3, [r3, #36] @ 0x24 8005d94: 2b01 cmp r3, #1 8005d96: d101 bne.n 8005d9c { return HAL_ERROR; 8005d98: 2301 movs r3, #1 8005d9a: e01f b.n 8005ddc } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; 8005d9c: 4b11 ldr r3, [pc, #68] @ (8005de4 ) 8005d9e: 685b ldr r3, [r3, #4] 8005da0: 617b str r3, [r7, #20] pll_config2 = RCC->CFGR2; 8005da2: 4b10 ldr r3, [pc, #64] @ (8005de4 ) 8005da4: 6adb ldr r3, [r3, #44] @ 0x2c 8005da6: 613b str r3, [r7, #16] if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8005da8: 697a ldr r2, [r7, #20] 8005daa: 23c0 movs r3, #192 @ 0xc0 8005dac: 025b lsls r3, r3, #9 8005dae: 401a ands r2, r3 8005db0: 687b ldr r3, [r7, #4] 8005db2: 6a9b ldr r3, [r3, #40] @ 0x28 8005db4: 429a cmp r2, r3 8005db6: d10e bne.n 8005dd6 (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || 8005db8: 693b ldr r3, [r7, #16] 8005dba: 220f movs r2, #15 8005dbc: 401a ands r2, r3 8005dbe: 687b ldr r3, [r7, #4] 8005dc0: 6b1b ldr r3, [r3, #48] @ 0x30 if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8005dc2: 429a cmp r2, r3 8005dc4: d107 bne.n 8005dd6 (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL)) 8005dc6: 697a ldr r2, [r7, #20] 8005dc8: 23f0 movs r3, #240 @ 0xf0 8005dca: 039b lsls r3, r3, #14 8005dcc: 401a ands r2, r3 8005dce: 687b ldr r3, [r7, #4] 8005dd0: 6adb ldr r3, [r3, #44] @ 0x2c (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || 8005dd2: 429a cmp r2, r3 8005dd4: d001 beq.n 8005dda { return HAL_ERROR; 8005dd6: 2301 movs r3, #1 8005dd8: e000 b.n 8005ddc } } } } return HAL_OK; 8005dda: 2300 movs r3, #0 } 8005ddc: 0018 movs r0, r3 8005dde: 46bd mov sp, r7 8005de0: b008 add sp, #32 8005de2: bd80 pop {r7, pc} 8005de4: 40021000 .word 0x40021000 08005de8 : * 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) { 8005de8: b580 push {r7, lr} 8005dea: b084 sub sp, #16 8005dec: af00 add r7, sp, #0 8005dee: 6078 str r0, [r7, #4] 8005df0: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if(RCC_ClkInitStruct == NULL) 8005df2: 687b ldr r3, [r7, #4] 8005df4: 2b00 cmp r3, #0 8005df6: d101 bne.n 8005dfc { return HAL_ERROR; 8005df8: 2301 movs r3, #1 8005dfa: e0bf b.n 8005f7c /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if(FLatency > __HAL_FLASH_GET_LATENCY()) 8005dfc: 4b61 ldr r3, [pc, #388] @ (8005f84 ) 8005dfe: 681b ldr r3, [r3, #0] 8005e00: 2201 movs r2, #1 8005e02: 4013 ands r3, r2 8005e04: 683a ldr r2, [r7, #0] 8005e06: 429a cmp r2, r3 8005e08: d911 bls.n 8005e2e { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 8005e0a: 4b5e ldr r3, [pc, #376] @ (8005f84 ) 8005e0c: 681b ldr r3, [r3, #0] 8005e0e: 2201 movs r2, #1 8005e10: 4393 bics r3, r2 8005e12: 0019 movs r1, r3 8005e14: 4b5b ldr r3, [pc, #364] @ (8005f84 ) 8005e16: 683a ldr r2, [r7, #0] 8005e18: 430a orrs r2, r1 8005e1a: 601a str r2, [r3, #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) 8005e1c: 4b59 ldr r3, [pc, #356] @ (8005f84 ) 8005e1e: 681b ldr r3, [r3, #0] 8005e20: 2201 movs r2, #1 8005e22: 4013 ands r3, r2 8005e24: 683a ldr r2, [r7, #0] 8005e26: 429a cmp r2, r3 8005e28: d001 beq.n 8005e2e { return HAL_ERROR; 8005e2a: 2301 movs r3, #1 8005e2c: e0a6 b.n 8005f7c } } /*-------------------------- HCLK Configuration --------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) 8005e2e: 687b ldr r3, [r7, #4] 8005e30: 681b ldr r3, [r3, #0] 8005e32: 2202 movs r2, #2 8005e34: 4013 ands r3, r2 8005e36: d015 beq.n 8005e64 { /* Set the highest APB divider 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) 8005e38: 687b ldr r3, [r7, #4] 8005e3a: 681b ldr r3, [r3, #0] 8005e3c: 2204 movs r2, #4 8005e3e: 4013 ands r3, r2 8005e40: d006 beq.n 8005e50 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_HCLK_DIV16); 8005e42: 4b51 ldr r3, [pc, #324] @ (8005f88 ) 8005e44: 685a ldr r2, [r3, #4] 8005e46: 4b50 ldr r3, [pc, #320] @ (8005f88 ) 8005e48: 21e0 movs r1, #224 @ 0xe0 8005e4a: 00c9 lsls r1, r1, #3 8005e4c: 430a orrs r2, r1 8005e4e: 605a str r2, [r3, #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); 8005e50: 4b4d ldr r3, [pc, #308] @ (8005f88 ) 8005e52: 685b ldr r3, [r3, #4] 8005e54: 22f0 movs r2, #240 @ 0xf0 8005e56: 4393 bics r3, r2 8005e58: 0019 movs r1, r3 8005e5a: 687b ldr r3, [r7, #4] 8005e5c: 689a ldr r2, [r3, #8] 8005e5e: 4b4a ldr r3, [pc, #296] @ (8005f88 ) 8005e60: 430a orrs r2, r1 8005e62: 605a str r2, [r3, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) 8005e64: 687b ldr r3, [r7, #4] 8005e66: 681b ldr r3, [r3, #0] 8005e68: 2201 movs r2, #1 8005e6a: 4013 ands r3, r2 8005e6c: d04c beq.n 8005f08 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) 8005e6e: 687b ldr r3, [r7, #4] 8005e70: 685b ldr r3, [r3, #4] 8005e72: 2b01 cmp r3, #1 8005e74: d107 bne.n 8005e86 { /* Check the HSE ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8005e76: 4b44 ldr r3, [pc, #272] @ (8005f88 ) 8005e78: 681a ldr r2, [r3, #0] 8005e7a: 2380 movs r3, #128 @ 0x80 8005e7c: 029b lsls r3, r3, #10 8005e7e: 4013 ands r3, r2 8005e80: d120 bne.n 8005ec4 { return HAL_ERROR; 8005e82: 2301 movs r3, #1 8005e84: e07a b.n 8005f7c } } /* PLL is selected as System Clock Source */ else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) 8005e86: 687b ldr r3, [r7, #4] 8005e88: 685b ldr r3, [r3, #4] 8005e8a: 2b02 cmp r3, #2 8005e8c: d107 bne.n 8005e9e { /* Check the PLL ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 8005e8e: 4b3e ldr r3, [pc, #248] @ (8005f88 ) 8005e90: 681a ldr r2, [r3, #0] 8005e92: 2380 movs r3, #128 @ 0x80 8005e94: 049b lsls r3, r3, #18 8005e96: 4013 ands r3, r2 8005e98: d114 bne.n 8005ec4 { return HAL_ERROR; 8005e9a: 2301 movs r3, #1 8005e9c: e06e b.n 8005f7c } } #if defined(RCC_CFGR_SWS_HSI48) /* HSI48 is selected as System Clock Source */ else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI48) 8005e9e: 687b ldr r3, [r7, #4] 8005ea0: 685b ldr r3, [r3, #4] 8005ea2: 2b03 cmp r3, #3 8005ea4: d107 bne.n 8005eb6 { /* Check the HSI48 ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) 8005ea6: 4b38 ldr r3, [pc, #224] @ (8005f88 ) 8005ea8: 6b5a ldr r2, [r3, #52] @ 0x34 8005eaa: 2380 movs r3, #128 @ 0x80 8005eac: 029b lsls r3, r3, #10 8005eae: 4013 ands r3, r2 8005eb0: d108 bne.n 8005ec4 { return HAL_ERROR; 8005eb2: 2301 movs r3, #1 8005eb4: e062 b.n 8005f7c #endif /* RCC_CFGR_SWS_HSI48 */ /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8005eb6: 4b34 ldr r3, [pc, #208] @ (8005f88 ) 8005eb8: 681b ldr r3, [r3, #0] 8005eba: 2202 movs r2, #2 8005ebc: 4013 ands r3, r2 8005ebe: d101 bne.n 8005ec4 { return HAL_ERROR; 8005ec0: 2301 movs r3, #1 8005ec2: e05b b.n 8005f7c } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); 8005ec4: 4b30 ldr r3, [pc, #192] @ (8005f88 ) 8005ec6: 685b ldr r3, [r3, #4] 8005ec8: 2203 movs r2, #3 8005eca: 4393 bics r3, r2 8005ecc: 0019 movs r1, r3 8005ece: 687b ldr r3, [r7, #4] 8005ed0: 685a ldr r2, [r3, #4] 8005ed2: 4b2d ldr r3, [pc, #180] @ (8005f88 ) 8005ed4: 430a orrs r2, r1 8005ed6: 605a str r2, [r3, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 8005ed8: f7fd ffd4 bl 8003e84 8005edc: 0003 movs r3, r0 8005ede: 60fb str r3, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8005ee0: e009 b.n 8005ef6 { if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) 8005ee2: f7fd ffcf bl 8003e84 8005ee6: 0002 movs r2, r0 8005ee8: 68fb ldr r3, [r7, #12] 8005eea: 1ad3 subs r3, r2, r3 8005eec: 4a27 ldr r2, [pc, #156] @ (8005f8c ) 8005eee: 4293 cmp r3, r2 8005ef0: d901 bls.n 8005ef6 { return HAL_TIMEOUT; 8005ef2: 2303 movs r3, #3 8005ef4: e042 b.n 8005f7c while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8005ef6: 4b24 ldr r3, [pc, #144] @ (8005f88 ) 8005ef8: 685b ldr r3, [r3, #4] 8005efa: 220c movs r2, #12 8005efc: 401a ands r2, r3 8005efe: 687b ldr r3, [r7, #4] 8005f00: 685b ldr r3, [r3, #4] 8005f02: 009b lsls r3, r3, #2 8005f04: 429a cmp r2, r3 8005f06: d1ec bne.n 8005ee2 } } } /* Decreasing the number of wait states because of lower CPU frequency */ if(FLatency < __HAL_FLASH_GET_LATENCY()) 8005f08: 4b1e ldr r3, [pc, #120] @ (8005f84 ) 8005f0a: 681b ldr r3, [r3, #0] 8005f0c: 2201 movs r2, #1 8005f0e: 4013 ands r3, r2 8005f10: 683a ldr r2, [r7, #0] 8005f12: 429a cmp r2, r3 8005f14: d211 bcs.n 8005f3a { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 8005f16: 4b1b ldr r3, [pc, #108] @ (8005f84 ) 8005f18: 681b ldr r3, [r3, #0] 8005f1a: 2201 movs r2, #1 8005f1c: 4393 bics r3, r2 8005f1e: 0019 movs r1, r3 8005f20: 4b18 ldr r3, [pc, #96] @ (8005f84 ) 8005f22: 683a ldr r2, [r7, #0] 8005f24: 430a orrs r2, r1 8005f26: 601a str r2, [r3, #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) 8005f28: 4b16 ldr r3, [pc, #88] @ (8005f84 ) 8005f2a: 681b ldr r3, [r3, #0] 8005f2c: 2201 movs r2, #1 8005f2e: 4013 ands r3, r2 8005f30: 683a ldr r2, [r7, #0] 8005f32: 429a cmp r2, r3 8005f34: d001 beq.n 8005f3a { return HAL_ERROR; 8005f36: 2301 movs r3, #1 8005f38: e020 b.n 8005f7c } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) 8005f3a: 687b ldr r3, [r7, #4] 8005f3c: 681b ldr r3, [r3, #0] 8005f3e: 2204 movs r2, #4 8005f40: 4013 ands r3, r2 8005f42: d009 beq.n 8005f58 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider); 8005f44: 4b10 ldr r3, [pc, #64] @ (8005f88 ) 8005f46: 685b ldr r3, [r3, #4] 8005f48: 4a11 ldr r2, [pc, #68] @ (8005f90 ) 8005f4a: 4013 ands r3, r2 8005f4c: 0019 movs r1, r3 8005f4e: 687b ldr r3, [r7, #4] 8005f50: 68da ldr r2, [r3, #12] 8005f52: 4b0d ldr r3, [pc, #52] @ (8005f88 ) 8005f54: 430a orrs r2, r1 8005f56: 605a str r2, [r3, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_BITNUMBER]; 8005f58: f000 f820 bl 8005f9c 8005f5c: 0001 movs r1, r0 8005f5e: 4b0a ldr r3, [pc, #40] @ (8005f88 ) 8005f60: 685b ldr r3, [r3, #4] 8005f62: 091b lsrs r3, r3, #4 8005f64: 220f movs r2, #15 8005f66: 4013 ands r3, r2 8005f68: 4a0a ldr r2, [pc, #40] @ (8005f94 ) 8005f6a: 5cd3 ldrb r3, [r2, r3] 8005f6c: 000a movs r2, r1 8005f6e: 40da lsrs r2, r3 8005f70: 4b09 ldr r3, [pc, #36] @ (8005f98 ) 8005f72: 601a str r2, [r3, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick (TICK_INT_PRIORITY); 8005f74: 2003 movs r0, #3 8005f76: f7fd ff3f bl 8003df8 return HAL_OK; 8005f7a: 2300 movs r3, #0 } 8005f7c: 0018 movs r0, r3 8005f7e: 46bd mov sp, r7 8005f80: b004 add sp, #16 8005f82: bd80 pop {r7, pc} 8005f84: 40022000 .word 0x40022000 8005f88: 40021000 .word 0x40021000 8005f8c: 00001388 .word 0x00001388 8005f90: fffff8ff .word 0xfffff8ff 8005f94: 080079ac .word 0x080079ac 8005f98: 20000000 .word 0x20000000 08005f9c : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { 8005f9c: b580 push {r7, lr} 8005f9e: b086 sub sp, #24 8005fa0: af00 add r7, sp, #0 static const uint8_t aPLLMULFactorTable[16U] = { 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U, 10U, 11U, 12U, 13U, 14U, 15U, 16U, 16U}; static const uint8_t aPredivFactorTable[16U] = { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U,10U, 11U, 12U, 13U, 14U, 15U, 16U}; uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; 8005fa2: 2300 movs r3, #0 8005fa4: 60fb str r3, [r7, #12] 8005fa6: 2300 movs r3, #0 8005fa8: 60bb str r3, [r7, #8] 8005faa: 2300 movs r3, #0 8005fac: 617b str r3, [r7, #20] 8005fae: 2300 movs r3, #0 8005fb0: 607b str r3, [r7, #4] uint32_t sysclockfreq = 0U; 8005fb2: 2300 movs r3, #0 8005fb4: 613b str r3, [r7, #16] tmpreg = RCC->CFGR; 8005fb6: 4b2d ldr r3, [pc, #180] @ (800606c ) 8005fb8: 685b ldr r3, [r3, #4] 8005fba: 60fb str r3, [r7, #12] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) 8005fbc: 68fb ldr r3, [r7, #12] 8005fbe: 220c movs r2, #12 8005fc0: 4013 ands r3, r2 8005fc2: 2b0c cmp r3, #12 8005fc4: d046 beq.n 8006054 8005fc6: d848 bhi.n 800605a 8005fc8: 2b04 cmp r3, #4 8005fca: d002 beq.n 8005fd2 8005fcc: 2b08 cmp r3, #8 8005fce: d003 beq.n 8005fd8 8005fd0: e043 b.n 800605a { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; 8005fd2: 4b27 ldr r3, [pc, #156] @ (8006070 ) 8005fd4: 613b str r3, [r7, #16] break; 8005fd6: e043 b.n 8006060 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_BITNUMBER]; 8005fd8: 68fb ldr r3, [r7, #12] 8005fda: 0c9b lsrs r3, r3, #18 8005fdc: 220f movs r2, #15 8005fde: 4013 ands r3, r2 8005fe0: 4a24 ldr r2, [pc, #144] @ (8006074 ) 8005fe2: 5cd3 ldrb r3, [r2, r3] 8005fe4: 607b str r3, [r7, #4] prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BITNUMBER]; 8005fe6: 4b21 ldr r3, [pc, #132] @ (800606c ) 8005fe8: 6adb ldr r3, [r3, #44] @ 0x2c 8005fea: 220f movs r2, #15 8005fec: 4013 ands r3, r2 8005fee: 4a22 ldr r2, [pc, #136] @ (8006078 ) 8005ff0: 5cd3 ldrb r3, [r2, r3] 8005ff2: 60bb str r3, [r7, #8] if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE) 8005ff4: 68fa ldr r2, [r7, #12] 8005ff6: 23c0 movs r3, #192 @ 0xc0 8005ff8: 025b lsls r3, r3, #9 8005ffa: 401a ands r2, r3 8005ffc: 2380 movs r3, #128 @ 0x80 8005ffe: 025b lsls r3, r3, #9 8006000: 429a cmp r2, r3 8006002: d109 bne.n 8006018 { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSE_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); 8006004: 68b9 ldr r1, [r7, #8] 8006006: 481a ldr r0, [pc, #104] @ (8006070 ) 8006008: f7fa f87e bl 8000108 <__udivsi3> 800600c: 0003 movs r3, r0 800600e: 001a movs r2, r3 8006010: 687b ldr r3, [r7, #4] 8006012: 4353 muls r3, r2 8006014: 617b str r3, [r7, #20] 8006016: e01a b.n 800604e } #if defined(RCC_CFGR_PLLSRC_HSI48_PREDIV) else if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSI48) 8006018: 68fa ldr r2, [r7, #12] 800601a: 23c0 movs r3, #192 @ 0xc0 800601c: 025b lsls r3, r3, #9 800601e: 401a ands r2, r3 8006020: 23c0 movs r3, #192 @ 0xc0 8006022: 025b lsls r3, r3, #9 8006024: 429a cmp r2, r3 8006026: d109 bne.n 800603c { /* HSI48 used as PLL clock source : PLLCLK = HSI48/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSI48_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); 8006028: 68b9 ldr r1, [r7, #8] 800602a: 4814 ldr r0, [pc, #80] @ (800607c ) 800602c: f7fa f86c bl 8000108 <__udivsi3> 8006030: 0003 movs r3, r0 8006032: 001a movs r2, r3 8006034: 687b ldr r3, [r7, #4] 8006036: 4353 muls r3, r2 8006038: 617b str r3, [r7, #20] 800603a: e008 b.n 800604e #endif /* RCC_CFGR_PLLSRC_HSI48_PREDIV */ else { #if (defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC)) /* HSI used as PLL clock source : PLLCLK = HSI/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSI_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); 800603c: 68b9 ldr r1, [r7, #8] 800603e: 4810 ldr r0, [pc, #64] @ (8006080 ) 8006040: f7fa f862 bl 8000108 <__udivsi3> 8006044: 0003 movs r3, r0 8006046: 001a movs r2, r3 8006048: 687b ldr r3, [r7, #4] 800604a: 4353 muls r3, r2 800604c: 617b str r3, [r7, #20] #else /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((uint64_t) (HSI_VALUE >> 1U) * ((uint64_t) pllmul)); #endif } sysclockfreq = pllclk; 800604e: 697b ldr r3, [r7, #20] 8006050: 613b str r3, [r7, #16] break; 8006052: e005 b.n 8006060 } #if defined(RCC_CFGR_SWS_HSI48) case RCC_SYSCLKSOURCE_STATUS_HSI48: /* HSI48 used as system clock source */ { sysclockfreq = HSI48_VALUE; 8006054: 4b09 ldr r3, [pc, #36] @ (800607c ) 8006056: 613b str r3, [r7, #16] break; 8006058: e002 b.n 8006060 } #endif /* RCC_CFGR_SWS_HSI48 */ case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; 800605a: 4b09 ldr r3, [pc, #36] @ (8006080 ) 800605c: 613b str r3, [r7, #16] break; 800605e: 46c0 nop @ (mov r8, r8) } } return sysclockfreq; 8006060: 693b ldr r3, [r7, #16] } 8006062: 0018 movs r0, r3 8006064: 46bd mov sp, r7 8006066: b006 add sp, #24 8006068: bd80 pop {r7, pc} 800606a: 46c0 nop @ (mov r8, r8) 800606c: 40021000 .word 0x40021000 8006070: 00f42400 .word 0x00f42400 8006074: 080079bc .word 0x080079bc 8006078: 080079cc .word 0x080079cc 800607c: 02dc6c00 .word 0x02dc6c00 8006080: 007a1200 .word 0x007a1200 08006084 : * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { 8006084: b580 push {r7, lr} 8006086: b086 sub sp, #24 8006088: af00 add r7, sp, #0 800608a: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; 800608c: 2300 movs r3, #0 800608e: 613b str r3, [r7, #16] uint32_t temp_reg = 0U; 8006090: 2300 movs r3, #0 8006092: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*---------------------------- RTC configuration -------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) 8006094: 687b ldr r3, [r7, #4] 8006096: 681a ldr r2, [r3, #0] 8006098: 2380 movs r3, #128 @ 0x80 800609a: 025b lsls r3, r3, #9 800609c: 4013 ands r3, r2 800609e: d100 bne.n 80060a2 80060a0: e08e b.n 80061c0 { /* check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); FlagStatus pwrclkchanged = RESET; 80060a2: 2017 movs r0, #23 80060a4: 183b adds r3, r7, r0 80060a6: 2200 movs r2, #0 80060a8: 701a strb r2, [r3, #0] /* 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()) 80060aa: 4b67 ldr r3, [pc, #412] @ (8006248 ) 80060ac: 69da ldr r2, [r3, #28] 80060ae: 2380 movs r3, #128 @ 0x80 80060b0: 055b lsls r3, r3, #21 80060b2: 4013 ands r3, r2 80060b4: d110 bne.n 80060d8 { __HAL_RCC_PWR_CLK_ENABLE(); 80060b6: 4b64 ldr r3, [pc, #400] @ (8006248 ) 80060b8: 69da ldr r2, [r3, #28] 80060ba: 4b63 ldr r3, [pc, #396] @ (8006248 ) 80060bc: 2180 movs r1, #128 @ 0x80 80060be: 0549 lsls r1, r1, #21 80060c0: 430a orrs r2, r1 80060c2: 61da str r2, [r3, #28] 80060c4: 4b60 ldr r3, [pc, #384] @ (8006248 ) 80060c6: 69da ldr r2, [r3, #28] 80060c8: 2380 movs r3, #128 @ 0x80 80060ca: 055b lsls r3, r3, #21 80060cc: 4013 ands r3, r2 80060ce: 60bb str r3, [r7, #8] 80060d0: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; 80060d2: 183b adds r3, r7, r0 80060d4: 2201 movs r2, #1 80060d6: 701a strb r2, [r3, #0] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80060d8: 4b5c ldr r3, [pc, #368] @ (800624c ) 80060da: 681a ldr r2, [r3, #0] 80060dc: 2380 movs r3, #128 @ 0x80 80060de: 005b lsls r3, r3, #1 80060e0: 4013 ands r3, r2 80060e2: d11a bne.n 800611a { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 80060e4: 4b59 ldr r3, [pc, #356] @ (800624c ) 80060e6: 681a ldr r2, [r3, #0] 80060e8: 4b58 ldr r3, [pc, #352] @ (800624c ) 80060ea: 2180 movs r1, #128 @ 0x80 80060ec: 0049 lsls r1, r1, #1 80060ee: 430a orrs r2, r1 80060f0: 601a str r2, [r3, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 80060f2: f7fd fec7 bl 8003e84 80060f6: 0003 movs r3, r0 80060f8: 613b str r3, [r7, #16] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 80060fa: e008 b.n 800610e { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 80060fc: f7fd fec2 bl 8003e84 8006100: 0002 movs r2, r0 8006102: 693b ldr r3, [r7, #16] 8006104: 1ad3 subs r3, r2, r3 8006106: 2b64 cmp r3, #100 @ 0x64 8006108: d901 bls.n 800610e { return HAL_TIMEOUT; 800610a: 2303 movs r3, #3 800610c: e097 b.n 800623e while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 800610e: 4b4f ldr r3, [pc, #316] @ (800624c ) 8006110: 681a ldr r2, [r3, #0] 8006112: 2380 movs r3, #128 @ 0x80 8006114: 005b lsls r3, r3, #1 8006116: 4013 ands r3, r2 8006118: d0f0 beq.n 80060fc } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); 800611a: 4b4b ldr r3, [pc, #300] @ (8006248 ) 800611c: 6a1a ldr r2, [r3, #32] 800611e: 23c0 movs r3, #192 @ 0xc0 8006120: 009b lsls r3, r3, #2 8006122: 4013 ands r3, r2 8006124: 60fb str r3, [r7, #12] if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) 8006126: 68fb ldr r3, [r7, #12] 8006128: 2b00 cmp r3, #0 800612a: d034 beq.n 8006196 800612c: 687b ldr r3, [r7, #4] 800612e: 685a ldr r2, [r3, #4] 8006130: 23c0 movs r3, #192 @ 0xc0 8006132: 009b lsls r3, r3, #2 8006134: 4013 ands r3, r2 8006136: 68fa ldr r2, [r7, #12] 8006138: 429a cmp r2, r3 800613a: d02c beq.n 8006196 { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); 800613c: 4b42 ldr r3, [pc, #264] @ (8006248 ) 800613e: 6a1b ldr r3, [r3, #32] 8006140: 4a43 ldr r2, [pc, #268] @ (8006250 ) 8006142: 4013 ands r3, r2 8006144: 60fb str r3, [r7, #12] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); 8006146: 4b40 ldr r3, [pc, #256] @ (8006248 ) 8006148: 6a1a ldr r2, [r3, #32] 800614a: 4b3f ldr r3, [pc, #252] @ (8006248 ) 800614c: 2180 movs r1, #128 @ 0x80 800614e: 0249 lsls r1, r1, #9 8006150: 430a orrs r2, r1 8006152: 621a str r2, [r3, #32] __HAL_RCC_BACKUPRESET_RELEASE(); 8006154: 4b3c ldr r3, [pc, #240] @ (8006248 ) 8006156: 6a1a ldr r2, [r3, #32] 8006158: 4b3b ldr r3, [pc, #236] @ (8006248 ) 800615a: 493e ldr r1, [pc, #248] @ (8006254 ) 800615c: 400a ands r2, r1 800615e: 621a str r2, [r3, #32] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; 8006160: 4b39 ldr r3, [pc, #228] @ (8006248 ) 8006162: 68fa ldr r2, [r7, #12] 8006164: 621a str r2, [r3, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) 8006166: 68fb ldr r3, [r7, #12] 8006168: 2201 movs r2, #1 800616a: 4013 ands r3, r2 800616c: d013 beq.n 8006196 { /* Get Start Tick */ tickstart = HAL_GetTick(); 800616e: f7fd fe89 bl 8003e84 8006172: 0003 movs r3, r0 8006174: 613b str r3, [r7, #16] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 8006176: e009 b.n 800618c { if((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8006178: f7fd fe84 bl 8003e84 800617c: 0002 movs r2, r0 800617e: 693b ldr r3, [r7, #16] 8006180: 1ad3 subs r3, r2, r3 8006182: 4a35 ldr r2, [pc, #212] @ (8006258 ) 8006184: 4293 cmp r3, r2 8006186: d901 bls.n 800618c { return HAL_TIMEOUT; 8006188: 2303 movs r3, #3 800618a: e058 b.n 800623e while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 800618c: 4b2e ldr r3, [pc, #184] @ (8006248 ) 800618e: 6a1b ldr r3, [r3, #32] 8006190: 2202 movs r2, #2 8006192: 4013 ands r3, r2 8006194: d0f0 beq.n 8006178 } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); 8006196: 4b2c ldr r3, [pc, #176] @ (8006248 ) 8006198: 6a1b ldr r3, [r3, #32] 800619a: 4a2d ldr r2, [pc, #180] @ (8006250 ) 800619c: 4013 ands r3, r2 800619e: 0019 movs r1, r3 80061a0: 687b ldr r3, [r7, #4] 80061a2: 685a ldr r2, [r3, #4] 80061a4: 4b28 ldr r3, [pc, #160] @ (8006248 ) 80061a6: 430a orrs r2, r1 80061a8: 621a str r2, [r3, #32] /* Require to disable power clock if necessary */ if(pwrclkchanged == SET) 80061aa: 2317 movs r3, #23 80061ac: 18fb adds r3, r7, r3 80061ae: 781b ldrb r3, [r3, #0] 80061b0: 2b01 cmp r3, #1 80061b2: d105 bne.n 80061c0 { __HAL_RCC_PWR_CLK_DISABLE(); 80061b4: 4b24 ldr r3, [pc, #144] @ (8006248 ) 80061b6: 69da ldr r2, [r3, #28] 80061b8: 4b23 ldr r3, [pc, #140] @ (8006248 ) 80061ba: 4928 ldr r1, [pc, #160] @ (800625c ) 80061bc: 400a ands r2, r1 80061be: 61da str r2, [r3, #28] } } /*------------------------------- USART1 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) 80061c0: 687b ldr r3, [r7, #4] 80061c2: 681b ldr r3, [r3, #0] 80061c4: 2201 movs r2, #1 80061c6: 4013 ands r3, r2 80061c8: d009 beq.n 80061de { /* Check the parameters */ assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); /* Configure the USART1 clock source */ __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); 80061ca: 4b1f ldr r3, [pc, #124] @ (8006248 ) 80061cc: 6b1b ldr r3, [r3, #48] @ 0x30 80061ce: 2203 movs r2, #3 80061d0: 4393 bics r3, r2 80061d2: 0019 movs r1, r3 80061d4: 687b ldr r3, [r7, #4] 80061d6: 689a ldr r2, [r3, #8] 80061d8: 4b1b ldr r3, [pc, #108] @ (8006248 ) 80061da: 430a orrs r2, r1 80061dc: 631a str r2, [r3, #48] @ 0x30 __HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection); } #endif /* STM32F091xC || STM32F098xx */ /*------------------------------ I2C1 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) 80061de: 687b ldr r3, [r7, #4] 80061e0: 681b ldr r3, [r3, #0] 80061e2: 2220 movs r2, #32 80061e4: 4013 ands r3, r2 80061e6: d009 beq.n 80061fc { /* Check the parameters */ assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection)); /* Configure the I2C1 clock source */ __HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection); 80061e8: 4b17 ldr r3, [pc, #92] @ (8006248 ) 80061ea: 6b1b ldr r3, [r3, #48] @ 0x30 80061ec: 2210 movs r2, #16 80061ee: 4393 bics r3, r2 80061f0: 0019 movs r1, r3 80061f2: 687b ldr r3, [r7, #4] 80061f4: 68da ldr r2, [r3, #12] 80061f6: 4b14 ldr r3, [pc, #80] @ (8006248 ) 80061f8: 430a orrs r2, r1 80061fa: 631a str r2, [r3, #48] @ 0x30 } #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F070x6) /*------------------------------ USB Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) 80061fc: 687b ldr r3, [r7, #4] 80061fe: 681a ldr r2, [r3, #0] 8006200: 2380 movs r3, #128 @ 0x80 8006202: 029b lsls r3, r3, #10 8006204: 4013 ands r3, r2 8006206: d009 beq.n 800621c { /* Check the parameters */ assert_param(IS_RCC_USBCLKSOURCE(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); 8006208: 4b0f ldr r3, [pc, #60] @ (8006248 ) 800620a: 6b1b ldr r3, [r3, #48] @ 0x30 800620c: 2280 movs r2, #128 @ 0x80 800620e: 4393 bics r3, r2 8006210: 0019 movs r1, r3 8006212: 687b ldr r3, [r7, #4] 8006214: 695a ldr r2, [r3, #20] 8006216: 4b0c ldr r3, [pc, #48] @ (8006248 ) 8006218: 430a orrs r2, r1 800621a: 631a str r2, [r3, #48] @ 0x30 #if defined(STM32F042x6) || defined(STM32F048xx)\ || defined(STM32F051x8) || defined(STM32F058xx)\ || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)\ || defined(STM32F091xC) || defined(STM32F098xx) /*------------------------------ CEC clock Configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) 800621c: 687b ldr r3, [r7, #4] 800621e: 681a ldr r2, [r3, #0] 8006220: 2380 movs r3, #128 @ 0x80 8006222: 00db lsls r3, r3, #3 8006224: 4013 ands r3, r2 8006226: d009 beq.n 800623c { /* Check the parameters */ assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); /* Configure the CEC clock source */ __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); 8006228: 4b07 ldr r3, [pc, #28] @ (8006248 ) 800622a: 6b1b ldr r3, [r3, #48] @ 0x30 800622c: 2240 movs r2, #64 @ 0x40 800622e: 4393 bics r3, r2 8006230: 0019 movs r1, r3 8006232: 687b ldr r3, [r7, #4] 8006234: 691a ldr r2, [r3, #16] 8006236: 4b04 ldr r3, [pc, #16] @ (8006248 ) 8006238: 430a orrs r2, r1 800623a: 631a str r2, [r3, #48] @ 0x30 #endif /* STM32F042x6 || STM32F048xx || */ /* STM32F051x8 || STM32F058xx || */ /* STM32F071xB || STM32F072xB || STM32F078xx || */ /* STM32F091xC || STM32F098xx */ return HAL_OK; 800623c: 2300 movs r3, #0 } 800623e: 0018 movs r0, r3 8006240: 46bd mov sp, r7 8006242: b006 add sp, #24 8006244: bd80 pop {r7, pc} 8006246: 46c0 nop @ (mov r8, r8) 8006248: 40021000 .word 0x40021000 800624c: 40007000 .word 0x40007000 8006250: fffffcff .word 0xfffffcff 8006254: fffeffff .word 0xfffeffff 8006258: 00001388 .word 0x00001388 800625c: efffffff .word 0xefffffff 08006260 : 8006260: 0003 movs r3, r0 8006262: 1882 adds r2, r0, r2 8006264: 4293 cmp r3, r2 8006266: d100 bne.n 800626a 8006268: 4770 bx lr 800626a: 7019 strb r1, [r3, #0] 800626c: 3301 adds r3, #1 800626e: e7f9 b.n 8006264 08006270 <__libc_init_array>: 8006270: b570 push {r4, r5, r6, lr} 8006272: 2600 movs r6, #0 8006274: 4c0c ldr r4, [pc, #48] @ (80062a8 <__libc_init_array+0x38>) 8006276: 4d0d ldr r5, [pc, #52] @ (80062ac <__libc_init_array+0x3c>) 8006278: 1b64 subs r4, r4, r5 800627a: 10a4 asrs r4, r4, #2 800627c: 42a6 cmp r6, r4 800627e: d109 bne.n 8006294 <__libc_init_array+0x24> 8006280: 2600 movs r6, #0 8006282: f000 f819 bl 80062b8 <_init> 8006286: 4c0a ldr r4, [pc, #40] @ (80062b0 <__libc_init_array+0x40>) 8006288: 4d0a ldr r5, [pc, #40] @ (80062b4 <__libc_init_array+0x44>) 800628a: 1b64 subs r4, r4, r5 800628c: 10a4 asrs r4, r4, #2 800628e: 42a6 cmp r6, r4 8006290: d105 bne.n 800629e <__libc_init_array+0x2e> 8006292: bd70 pop {r4, r5, r6, pc} 8006294: 00b3 lsls r3, r6, #2 8006296: 58eb ldr r3, [r5, r3] 8006298: 4798 blx r3 800629a: 3601 adds r6, #1 800629c: e7ee b.n 800627c <__libc_init_array+0xc> 800629e: 00b3 lsls r3, r6, #2 80062a0: 58eb ldr r3, [r5, r3] 80062a2: 4798 blx r3 80062a4: 3601 adds r6, #1 80062a6: e7f2 b.n 800628e <__libc_init_array+0x1e> 80062a8: 080079e4 .word 0x080079e4 80062ac: 080079e4 .word 0x080079e4 80062b0: 080079e8 .word 0x080079e8 80062b4: 080079e4 .word 0x080079e4 080062b8 <_init>: 80062b8: b5f8 push {r3, r4, r5, r6, r7, lr} 80062ba: 46c0 nop @ (mov r8, r8) 80062bc: bcf8 pop {r3, r4, r5, r6, r7} 80062be: bc08 pop {r3} 80062c0: 469e mov lr, r3 80062c2: 4770 bx lr 080062c4 <_fini>: 80062c4: b5f8 push {r3, r4, r5, r6, r7, lr} 80062c6: 46c0 nop @ (mov r8, r8) 80062c8: bcf8 pop {r3, r4, r5, r6, r7} 80062ca: bc08 pop {r3} 80062cc: 469e mov lr, r3 80062ce: 4770 bx lr