; generated by Component: ARM Compiler 5.05 update 2 (build 169) Tool: ArmCC [4d0f38]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\checksumutils.o --asm_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\checksumutils.d --cpu=Cortex-M4.fp --apcs=interwork --diag_suppress=9931,1,1293 -I..\..\..\..\Bootloader -I..\..\..\..\Board\fire_F429 -I..\..\..\..\include -I..\..\..\..\libraries\utilities -I..\..\..\..\libraries\utilities\json_c -I..\..\..\..\MICO\core -I..\..\..\..\MICO\security -I..\..\..\..\MICO\system -I..\..\..\..\MICO\system\command_console -I..\..\..\..\Platform\include -I..\..\..\..\Platform\Cortex-M4 -I..\..\..\..\Platform\Cortex-M4\CMSIS -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries -I..\..\..\..\Platform\MCU\STM32F4xx\wlan_bus_driver -I..\..\..\..\Platform\Drivers\spi_flash -I..\..\..\..\Platform\Drivers -IG:\GIT_OSC\F429_OV2640_MICO_SDRAM\Projects\STM32F429\bootloader\RVMDK\RTE -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -ID:\work\keil5\ARM\CMSIS\Include -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__MICROLIB -D__UVISION_VERSION=516 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DBOOTLOADER -DNO_MICO_RTOS -DHSE_VALUE=25000000 --omf_browse=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\checksumutils.crf ..\..\..\..\libraries\utilities\CheckSumUtils.c]
                          THUMB

                          AREA ||i.CRC16_Final||, CODE, READONLY, ALIGN=1

                  CRC16_Final PROC
;;;91     
;;;92     void CRC16_Final( CRC16_Context *inContext, uint16_t *outResult )
000000  b530              PUSH     {r4,r5,lr}
;;;93     {
000002  460d              MOV      r5,r1
000004  4604              MOV      r4,r0
;;;94       inContext->crc = UpdateCRC16(inContext->crc, 0);
000006  8800              LDRH     r0,[r0,#0]
000008  2100              MOVS     r1,#0
00000a  f7fffffe          BL       UpdateCRC16
00000e  8020              STRH     r0,[r4,#0]
;;;95       inContext->crc = UpdateCRC16(inContext->crc, 0);
000010  2100              MOVS     r1,#0
000012  f7fffffe          BL       UpdateCRC16
000016  8020              STRH     r0,[r4,#0]
;;;96     
;;;97       *outResult = inContext->crc&0xffffu;
000018  8028              STRH     r0,[r5,#0]
;;;98     }
00001a  bd30              POP      {r4,r5,pc}
                          ENDP


                          AREA ||i.CRC16_Init||, CODE, READONLY, ALIGN=1

                  CRC16_Init PROC
;;;78     
;;;79     void CRC16_Init( CRC16_Context *inContext )
000000  2100              MOVS     r1,#0
;;;80     {
;;;81       inContext->crc = 0;
000002  8001              STRH     r1,[r0,#0]
;;;82     }
000004  4770              BX       lr
;;;83     
                          ENDP


                          AREA ||i.CRC16_Update||, CODE, READONLY, ALIGN=1

                  CRC16_Update PROC
;;;83     
;;;84     void CRC16_Update( CRC16_Context *inContext, const void *inSrc, size_t inLen )
000000  b570              PUSH     {r4-r6,lr}
;;;85     {
000002  460c              MOV      r4,r1
000004  4605              MOV      r5,r0
;;;86       const uint8_t * src = (const uint8_t *) inSrc;
;;;87       const uint8_t* srcEnd = src + inLen;
000006  188e              ADDS     r6,r1,r2
000008  e005              B        |L3.22|
                  |L3.10|
;;;88       while( src < srcEnd )
;;;89         inContext->crc = UpdateCRC16(inContext->crc, *src++);
00000a  f8141b01          LDRB     r1,[r4],#1
00000e  8828              LDRH     r0,[r5,#0]
000010  f7fffffe          BL       UpdateCRC16
000014  8028              STRH     r0,[r5,#0]
                  |L3.22|
000016  42b4              CMP      r4,r6                 ;88
000018  d3f7              BCC      |L3.10|
;;;90     }
00001a  bd70              POP      {r4-r6,pc}
;;;91     
                          ENDP


                          AREA ||i.UpdateCRC16||, CODE, READONLY, ALIGN=1

                  UpdateCRC16 PROC
;;;58       */
;;;59     uint16_t UpdateCRC16(uint16_t crcIn, uint8_t byte)
000000  f4417180          ORR      r1,r1,#0x100
;;;60     {
;;;61       uint32_t crc = crcIn;
;;;62       uint32_t in = byte | 0x100;
;;;63     
;;;64       do
;;;65       {
;;;66         crc <<= 1;
;;;67         in <<= 1;
;;;68         if(in & 0x100)
;;;69           ++crc;
;;;70         if(crc & 0x10000)
;;;71           crc ^= 0x1021;
000004  f2410221          MOV      r2,#0x1021
                  |L4.8|
000008  0040              LSLS     r0,r0,#1              ;66
00000a  0049              LSLS     r1,r1,#1              ;67
00000c  05cb              LSLS     r3,r1,#23             ;68
00000e  d500              BPL      |L4.18|
000010  1c40              ADDS     r0,r0,#1              ;68
                  |L4.18|
000012  03c3              LSLS     r3,r0,#15             ;70
000014  d500              BPL      |L4.24|
000016  4050              EORS     r0,r0,r2
                  |L4.24|
;;;72       }
;;;73       
;;;74       while(!(in & 0x10000));
000018  03cb              LSLS     r3,r1,#15
00001a  d5f5              BPL      |L4.8|
;;;75     
;;;76       return crc & 0xffffu;
00001c  b280              UXTH     r0,r0
;;;77     }
00001e  4770              BX       lr
;;;78     
                          ENDP


                          AREA ||i.mico_CRC8_Table||, CODE, READONLY, ALIGN=2

                  mico_CRC8_Table PROC
;;;42     
;;;43     uint8_t mico_CRC8_Table(uint8_t crc8_ori, uint8_t *p, uint32_t counter)
000000  b510              PUSH     {r4,lr}
;;;44     {
000002  2a00              CMP      r2,#0
000004  d006              BEQ      |L5.20|
;;;45       uint8_t crc8 = crc8_ori;
;;;46       for( ; counter > 0; counter--){
;;;47         crc8 = mico_CRC8Table[crc8^*p];
000006  4c04              LDR      r4,|L5.24|
                  |L5.8|
000008  f8113b01          LDRB     r3,[r1],#1
00000c  4043              EORS     r3,r3,r0
00000e  1e52              SUBS     r2,r2,#1
000010  5ce0              LDRB     r0,[r4,r3]
000012  d1f9              BNE      |L5.8|
                  |L5.20|
;;;48         p++;
;;;49       }
;;;50       return(crc8);
;;;51     }
000014  bd10              POP      {r4,pc}
;;;52     
                          ENDP

000016  0000              DCW      0x0000
                  |L5.24|
                          DCD      ||.constdata||

                          AREA ||.constdata||, DATA, READONLY, ALIGN=0

                  mico_CRC8Table
000000  005ebce2          DCB      0x00,0x5e,0xbc,0xe2
000004  613fdd83          DCB      0x61,0x3f,0xdd,0x83
000008  c29c7e20          DCB      0xc2,0x9c,0x7e,0x20
00000c  a3fd1f41          DCB      0xa3,0xfd,0x1f,0x41
000010  9dc3217f          DCB      0x9d,0xc3,0x21,0x7f
000014  fca2401e          DCB      0xfc,0xa2,0x40,0x1e
000018  5f01e3bd          DCB      0x5f,0x01,0xe3,0xbd
00001c  3e6082dc          DCB      0x3e,0x60,0x82,0xdc
000020  237d9fc1          DCB      0x23,0x7d,0x9f,0xc1
000024  421cfea0          DCB      0x42,0x1c,0xfe,0xa0
000028  e1bf5d03          DCB      0xe1,0xbf,0x5d,0x03
00002c  80de3c62          DCB      0x80,0xde,0x3c,0x62
000030  bee0025c          DCB      0xbe,0xe0,0x02,0x5c
000034  df81633d          DCB      0xdf,0x81,0x63,0x3d
000038  7c22c09e          DCB      0x7c,0x22,0xc0,0x9e
00003c  1d43a1ff          DCB      0x1d,0x43,0xa1,0xff
000040  4618faa4          DCB      0x46,0x18,0xfa,0xa4
000044  27799bc5          DCB      0x27,0x79,0x9b,0xc5
000048  84da3866          DCB      0x84,0xda,0x38,0x66
00004c  e5bb5907          DCB      0xe5,0xbb,0x59,0x07
000050  db856739          DCB      0xdb,0x85,0x67,0x39
000054  bae40658          DCB      0xba,0xe4,0x06,0x58
000058  1947a5fb          DCB      0x19,0x47,0xa5,0xfb
00005c  7826c49a          DCB      0x78,0x26,0xc4,0x9a
000060  653bd987          DCB      0x65,0x3b,0xd9,0x87
000064  045ab8e6          DCB      0x04,0x5a,0xb8,0xe6
000068  a7f91b45          DCB      0xa7,0xf9,0x1b,0x45
00006c  c6987a24          DCB      0xc6,0x98,0x7a,0x24
000070  f8a6441a          DCB      0xf8,0xa6,0x44,0x1a
000074  99c7257b          DCB      0x99,0xc7,0x25,0x7b
000078  3a6486d8          DCB      0x3a,0x64,0x86,0xd8
00007c  5b05e7b9          DCB      0x5b,0x05,0xe7,0xb9
000080  8cd2306e          DCB      0x8c,0xd2,0x30,0x6e
000084  edb3510f          DCB      0xed,0xb3,0x51,0x0f
000088  4e10f2ac          DCB      0x4e,0x10,0xf2,0xac
00008c  2f7193cd          DCB      0x2f,0x71,0x93,0xcd
000090  114fadf3          DCB      0x11,0x4f,0xad,0xf3
000094  702ecc92          DCB      0x70,0x2e,0xcc,0x92
000098  d38d6f31          DCB      0xd3,0x8d,0x6f,0x31
00009c  b2ec0e50          DCB      0xb2,0xec,0x0e,0x50
0000a0  aff1134d          DCB      0xaf,0xf1,0x13,0x4d
0000a4  ce90722c          DCB      0xce,0x90,0x72,0x2c
0000a8  6d33d18f          DCB      0x6d,0x33,0xd1,0x8f
0000ac  0c52b0ee          DCB      0x0c,0x52,0xb0,0xee
0000b0  326c8ed0          DCB      0x32,0x6c,0x8e,0xd0
0000b4  530defb1          DCB      0x53,0x0d,0xef,0xb1
0000b8  f0ae4c12          DCB      0xf0,0xae,0x4c,0x12
0000bc  91cf2d73          DCB      0x91,0xcf,0x2d,0x73
0000c0  ca947628          DCB      0xca,0x94,0x76,0x28
0000c4  abf51749          DCB      0xab,0xf5,0x17,0x49
0000c8  0856b4ea          DCB      0x08,0x56,0xb4,0xea
0000cc  6937d58b          DCB      0x69,0x37,0xd5,0x8b
0000d0  5709ebb5          DCB      0x57,0x09,0xeb,0xb5
0000d4  36688ad4          DCB      0x36,0x68,0x8a,0xd4
0000d8  95cb2977          DCB      0x95,0xcb,0x29,0x77
0000dc  f4aa4816          DCB      0xf4,0xaa,0x48,0x16
0000e0  e9b7550b          DCB      0xe9,0xb7,0x55,0x0b
0000e4  88d6346a          DCB      0x88,0xd6,0x34,0x6a
0000e8  2b7597c9          DCB      0x2b,0x75,0x97,0xc9
0000ec  4a14f6a8          DCB      0x4a,0x14,0xf6,0xa8
0000f0  742ac896          DCB      0x74,0x2a,0xc8,0x96
0000f4  154ba9f7          DCB      0x15,0x4b,0xa9,0xf7
0000f8  b6e80a54          DCB      0xb6,0xe8,0x0a,0x54
0000fc  d7896b35          DCB      0xd7,0x89,0x6b,0x35
