; generated by ARM C/C++ Compiler, 5.03 [Build 76]
; commandline ArmCC [--list --split_sections --debug -c --asm --interleave -o.\flash\obj\system_stm32f10x.o --asm_dir=.\CpuRAM\ --list_dir=.\CpuRAM\ --depend=.\flash\obj\system_stm32f10x.d --cpu=Cortex-M3 --apcs=interwork -O0 --diag_suppress=870 -I..\..\Libraries\CMSIS\CM3\CoreSupport -I..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -I..\..\Libraries\STM32F10x_StdPeriph_Driver\inc -I..\..\User -I..\..\User\bsp -IC:\Keil\ARM\RV31\INC -IC:\Keil\ARM\CMSIS\Include -IC:\Keil\ARM\Inc\ST\STM32F10x -D__MICROLIB -DUSE_STDPERIPH_DRIVER -DSTM32F10X_CL --omf_browse=.\flash\obj\system_stm32f10x.crf ..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c]
                          THUMB

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

                  SetSysClock PROC
;;;418      */
;;;419    static void SetSysClock(void)
000000  b510              PUSH     {r4,lr}
;;;420    {
;;;421    #ifdef SYSCLK_FREQ_HSE
;;;422      SetSysClockToHSE();
;;;423    #elif defined SYSCLK_FREQ_24MHz
;;;424      SetSysClockTo24();
;;;425    #elif defined SYSCLK_FREQ_36MHz
;;;426      SetSysClockTo36();
;;;427    #elif defined SYSCLK_FREQ_48MHz
;;;428      SetSysClockTo48();
;;;429    #elif defined SYSCLK_FREQ_56MHz
;;;430      SetSysClockTo56();  
;;;431    #elif defined SYSCLK_FREQ_72MHz
;;;432      SetSysClockTo72();
000002  f7fffffe          BL       SetSysClockTo72
;;;433    #endif
;;;434     
;;;435     /* If none of the define above is enabled, the HSI is used as System clock
;;;436        source (default after reset) */ 
;;;437    }
000006  bd10              POP      {r4,pc}
;;;438    
                          ENDP


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

                  SetSysClockTo72 PROC
;;;986      */
;;;987    static void SetSysClockTo72(void)
000000  b50c              PUSH     {r2,r3,lr}
;;;988    {
;;;989      __IO uint32_t StartUpCounter = 0, HSEStatus = 0;
000002  2000              MOVS     r0,#0
000004  9001              STR      r0,[sp,#4]
000006  9000              STR      r0,[sp,#0]
;;;990      
;;;991      /* SYSCLK, HCLK, PCLK2 and PCLK1 configuration ---------------------------*/    
;;;992      /* Enable HSE */    
;;;993      RCC->CR |= ((uint32_t)RCC_CR_HSEON);
000008  483e              LDR      r0,|L2.260|
00000a  6800              LDR      r0,[r0,#0]
00000c  f4403080          ORR      r0,r0,#0x10000
000010  493c              LDR      r1,|L2.260|
000012  6008              STR      r0,[r1,#0]
;;;994     
;;;995      /* Wait till HSE is ready and if Time out is reached exit */
;;;996      do
000014  bf00              NOP      
                  |L2.22|
;;;997      {
;;;998        HSEStatus = RCC->CR & RCC_CR_HSERDY;
000016  483b              LDR      r0,|L2.260|
000018  6800              LDR      r0,[r0,#0]
00001a  f4003000          AND      r0,r0,#0x20000
00001e  9000              STR      r0,[sp,#0]
;;;999        StartUpCounter++;  
000020  9801              LDR      r0,[sp,#4]
000022  1c40              ADDS     r0,r0,#1
000024  9001              STR      r0,[sp,#4]
;;;1000     } while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
000026  9800              LDR      r0,[sp,#0]
000028  b918              CBNZ     r0,|L2.50|
00002a  9801              LDR      r0,[sp,#4]
00002c  f5b06fa0          CMP      r0,#0x500
000030  d1f1              BNE      |L2.22|
                  |L2.50|
;;;1001   
;;;1002     if ((RCC->CR & RCC_CR_HSERDY) != RESET)
000032  4834              LDR      r0,|L2.260|
000034  6800              LDR      r0,[r0,#0]
000036  f4103f00          TST      r0,#0x20000
00003a  d002              BEQ      |L2.66|
;;;1003     {
;;;1004       HSEStatus = (uint32_t)0x01;
00003c  2001              MOVS     r0,#1
00003e  9000              STR      r0,[sp,#0]
000040  e001              B        |L2.70|
                  |L2.66|
;;;1005     }
;;;1006     else
;;;1007     {
;;;1008       HSEStatus = (uint32_t)0x00;
000042  2000              MOVS     r0,#0
000044  9000              STR      r0,[sp,#0]
                  |L2.70|
;;;1009     }  
;;;1010   
;;;1011     if (HSEStatus == (uint32_t)0x01)
000046  9800              LDR      r0,[sp,#0]
000048  2801              CMP      r0,#1
00004a  d15a              BNE      |L2.258|
;;;1012     {
;;;1013       /* Enable Prefetch Buffer */
;;;1014       FLASH->ACR |= FLASH_ACR_PRFTBE;
00004c  482e              LDR      r0,|L2.264|
00004e  6800              LDR      r0,[r0,#0]
000050  f0400010          ORR      r0,r0,#0x10
000054  492c              LDR      r1,|L2.264|
000056  6008              STR      r0,[r1,#0]
;;;1015   
;;;1016       /* Flash 2 wait state */
;;;1017       FLASH->ACR &= (uint32_t)((uint32_t)~FLASH_ACR_LATENCY);
000058  4608              MOV      r0,r1
00005a  6800              LDR      r0,[r0,#0]
00005c  f0200003          BIC      r0,r0,#3
000060  6008              STR      r0,[r1,#0]
;;;1018       FLASH->ACR |= (uint32_t)FLASH_ACR_LATENCY_2;    
000062  4608              MOV      r0,r1
000064  6800              LDR      r0,[r0,#0]
000066  f0400002          ORR      r0,r0,#2
00006a  6008              STR      r0,[r1,#0]
;;;1019   
;;;1020    
;;;1021       /* HCLK = SYSCLK */
;;;1022       RCC->CFGR |= (uint32_t)RCC_CFGR_HPRE_DIV1;
00006c  4825              LDR      r0,|L2.260|
00006e  6840              LDR      r0,[r0,#4]
000070  4924              LDR      r1,|L2.260|
000072  6048              STR      r0,[r1,#4]
;;;1023         
;;;1024       /* PCLK2 = HCLK */
;;;1025       RCC->CFGR |= (uint32_t)RCC_CFGR_PPRE2_DIV1;
000074  4608              MOV      r0,r1
000076  6840              LDR      r0,[r0,#4]
000078  6048              STR      r0,[r1,#4]
;;;1026       
;;;1027       /* PCLK1 = HCLK */
;;;1028       RCC->CFGR |= (uint32_t)RCC_CFGR_PPRE1_DIV2;
00007a  4608              MOV      r0,r1
00007c  6840              LDR      r0,[r0,#4]
00007e  f4406080          ORR      r0,r0,#0x400
000082  6048              STR      r0,[r1,#4]
;;;1029   
;;;1030   #ifdef STM32F10X_CL
;;;1031       /* Configure PLLs ------------------------------------------------------*/
;;;1032       /* PLL2 configuration: PLL2CLK = (HSE / 5) * 8 = 40 MHz */
;;;1033       /* PREDIV1 configuration: PREDIV1CLK = PLL2 / 5 = 8 MHz */
;;;1034           
;;;1035       RCC->CFGR2 &= (uint32_t)~(RCC_CFGR2_PREDIV2 | RCC_CFGR2_PLL2MUL |
000084  4608              MOV      r0,r1
000086  6ac0              LDR      r0,[r0,#0x2c]
000088  4920              LDR      r1,|L2.268|
00008a  4008              ANDS     r0,r0,r1
00008c  491d              LDR      r1,|L2.260|
00008e  62c8              STR      r0,[r1,#0x2c]
;;;1036                                 RCC_CFGR2_PREDIV1 | RCC_CFGR2_PREDIV1SRC);
;;;1037       RCC->CFGR2 |= (uint32_t)(RCC_CFGR2_PREDIV2_DIV5 | RCC_CFGR2_PLL2MUL8 |
000090  4608              MOV      r0,r1
000092  6ac0              LDR      r0,[r0,#0x2c]
000094  491e              LDR      r1,|L2.272|
000096  4308              ORRS     r0,r0,r1
000098  491a              LDR      r1,|L2.260|
00009a  62c8              STR      r0,[r1,#0x2c]
;;;1038                                RCC_CFGR2_PREDIV1SRC_PLL2 | RCC_CFGR2_PREDIV1_DIV5);
;;;1039     
;;;1040       /* Enable PLL2 */
;;;1041       RCC->CR |= RCC_CR_PLL2ON;
00009c  4608              MOV      r0,r1
00009e  6800              LDR      r0,[r0,#0]
0000a0  f0406080          ORR      r0,r0,#0x4000000
0000a4  6008              STR      r0,[r1,#0]
;;;1042       /* Wait till PLL2 is ready */
;;;1043       while((RCC->CR & RCC_CR_PLL2RDY) == 0)
0000a6  bf00              NOP      
                  |L2.168|
0000a8  4816              LDR      r0,|L2.260|
0000aa  6800              LDR      r0,[r0,#0]
0000ac  f0106f00          TST      r0,#0x8000000
0000b0  d0fa              BEQ      |L2.168|
;;;1044       {
;;;1045       }
;;;1046       
;;;1047      
;;;1048       /* PLL configuration: PLLCLK = PREDIV1 * 9 = 72 MHz */ 
;;;1049       RCC->CFGR &= (uint32_t)~(RCC_CFGR_PLLXTPRE | RCC_CFGR_PLLSRC | RCC_CFGR_PLLMULL);
0000b2  4814              LDR      r0,|L2.260|
0000b4  6840              LDR      r0,[r0,#4]
0000b6  f420107c          BIC      r0,r0,#0x3f0000
0000ba  4912              LDR      r1,|L2.260|
0000bc  6048              STR      r0,[r1,#4]
;;;1050       RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLXTPRE_PREDIV1 | RCC_CFGR_PLLSRC_PREDIV1 | 
0000be  4608              MOV      r0,r1
0000c0  6840              LDR      r0,[r0,#4]
0000c2  f44010e8          ORR      r0,r0,#0x1d0000
0000c6  6048              STR      r0,[r1,#4]
;;;1051                               RCC_CFGR_PLLMULL9); 
;;;1052   #else    
;;;1053       /*  PLL configuration: PLLCLK = HSE * 9 = 72 MHz */
;;;1054       RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_PLLSRC | RCC_CFGR_PLLXTPRE |
;;;1055                                           RCC_CFGR_PLLMULL));
;;;1056       RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLMULL9);
;;;1057   #endif /* STM32F10X_CL */
;;;1058   
;;;1059       /* Enable PLL */
;;;1060       RCC->CR |= RCC_CR_PLLON;
0000c8  4608              MOV      r0,r1
0000ca  6800              LDR      r0,[r0,#0]
0000cc  f0407080          ORR      r0,r0,#0x1000000
0000d0  6008              STR      r0,[r1,#0]
;;;1061   
;;;1062       /* Wait till PLL is ready */
;;;1063       while((RCC->CR & RCC_CR_PLLRDY) == 0)
0000d2  bf00              NOP      
                  |L2.212|
0000d4  480b              LDR      r0,|L2.260|
0000d6  6800              LDR      r0,[r0,#0]
0000d8  f0107f00          TST      r0,#0x2000000
0000dc  d0fa              BEQ      |L2.212|
;;;1064       {
;;;1065       }
;;;1066       
;;;1067       /* Select PLL as system clock source */
;;;1068       RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_SW));
0000de  4809              LDR      r0,|L2.260|
0000e0  6840              LDR      r0,[r0,#4]
0000e2  f0200003          BIC      r0,r0,#3
0000e6  4907              LDR      r1,|L2.260|
0000e8  6048              STR      r0,[r1,#4]
;;;1069       RCC->CFGR |= (uint32_t)RCC_CFGR_SW_PLL;    
0000ea  4608              MOV      r0,r1
0000ec  6840              LDR      r0,[r0,#4]
0000ee  f0400002          ORR      r0,r0,#2
0000f2  6048              STR      r0,[r1,#4]
;;;1070   
;;;1071       /* Wait till PLL is used as system clock source */
;;;1072       while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS) != (uint32_t)0x08)
0000f4  bf00              NOP      
                  |L2.246|
0000f6  4803              LDR      r0,|L2.260|
0000f8  6840              LDR      r0,[r0,#4]
0000fa  f000000c          AND      r0,r0,#0xc
0000fe  2808              CMP      r0,#8
000100  d1f9              BNE      |L2.246|
                  |L2.258|
;;;1073       {
;;;1074       }
;;;1075     }
;;;1076     else
;;;1077     { /* If HSE fails to start-up, the application will have wrong clock 
;;;1078            configuration. User can add here some code to deal with this error */
;;;1079     }
;;;1080   }
000102  bd0c              POP      {r2,r3,pc}
;;;1081   #endif
                          ENDP

                  |L2.260|
                          DCD      0x40021000
                  |L2.264|
                          DCD      0x40022000
                  |L2.268|
                          DCD      0xfffef000
                  |L2.272|
                          DCD      0x00010644

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

                  SystemCoreClockUpdate PROC
;;;305      */
;;;306    void SystemCoreClockUpdate (void)
000000  b5f0              PUSH     {r4-r7,lr}
;;;307    {
;;;308      uint32_t tmp = 0, pllmull = 0, pllsource = 0;
000002  2100              MOVS     r1,#0
000004  2000              MOVS     r0,#0
000006  2300              MOVS     r3,#0
;;;309    
;;;310    #ifdef  STM32F10X_CL
;;;311      uint32_t prediv1source = 0, prediv1factor = 0, prediv2factor = 0, pll2mull = 0;
000008  2400              MOVS     r4,#0
00000a  2200              MOVS     r2,#0
00000c  2500              MOVS     r5,#0
00000e  2600              MOVS     r6,#0
;;;312    #endif /* STM32F10X_CL */
;;;313    
;;;314    #if defined (STM32F10X_LD_VL) || defined (STM32F10X_MD_VL) || (defined STM32F10X_HD_VL)
;;;315      uint32_t prediv1factor = 0;
;;;316    #endif /* STM32F10X_LD_VL or STM32F10X_MD_VL or STM32F10X_HD_VL */
;;;317        
;;;318      /* Get SYSCLK source -------------------------------------------------------*/
;;;319      tmp = RCC->CFGR & RCC_CFGR_SWS;
000010  4f35              LDR      r7,|L3.232|
000012  687f              LDR      r7,[r7,#4]
000014  f007010c          AND      r1,r7,#0xc
;;;320      
;;;321      switch (tmp)
000018  b121              CBZ      r1,|L3.36|
00001a  2904              CMP      r1,#4
00001c  d008              BEQ      |L3.48|
00001e  2908              CMP      r1,#8
000020  d14b              BNE      |L3.186|
000022  e00b              B        |L3.60|
                  |L3.36|
;;;322      {
;;;323        case 0x00:  /* HSI used as system clock */
;;;324          SystemCoreClock = HSI_VALUE;
000024  4f31              LDR      r7,|L3.236|
000026  f8dfc0c8          LDR      r12,|L3.240|
00002a  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
;;;325          break;
00002e  e04a              B        |L3.198|
                  |L3.48|
;;;326        case 0x04:  /* HSE used as system clock */
;;;327          SystemCoreClock = HSE_VALUE;
000030  4f30              LDR      r7,|L3.244|
000032  f8dfc0bc          LDR      r12,|L3.240|
000036  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
;;;328          break;
00003a  e044              B        |L3.198|
                  |L3.60|
;;;329        case 0x08:  /* PLL used as system clock */
;;;330    
;;;331          /* Get PLL clock source and multiplication factor ----------------------*/
;;;332          pllmull = RCC->CFGR & RCC_CFGR_PLLMULL;
00003c  4f2a              LDR      r7,|L3.232|
00003e  687f              LDR      r7,[r7,#4]
000040  f4071070          AND      r0,r7,#0x3c0000
;;;333          pllsource = RCC->CFGR & RCC_CFGR_PLLSRC;
000044  4f28              LDR      r7,|L3.232|
000046  687f              LDR      r7,[r7,#4]
000048  f4073380          AND      r3,r7,#0x10000
;;;334          
;;;335    #ifndef STM32F10X_CL      
;;;336          pllmull = ( pllmull >> 18) + 2;
;;;337          
;;;338          if (pllsource == 0x00)
;;;339          {
;;;340            /* HSI oscillator clock divided by 2 selected as PLL clock entry */
;;;341            SystemCoreClock = (HSI_VALUE >> 1) * pllmull;
;;;342          }
;;;343          else
;;;344          {
;;;345     #if defined (STM32F10X_LD_VL) || defined (STM32F10X_MD_VL) || (defined STM32F10X_HD_VL)
;;;346           prediv1factor = (RCC->CFGR2 & RCC_CFGR2_PREDIV1) + 1;
;;;347           /* HSE oscillator clock selected as PREDIV1 clock entry */
;;;348           SystemCoreClock = (HSE_VALUE / prediv1factor) * pllmull; 
;;;349     #else
;;;350            /* HSE selected as PLL clock entry */
;;;351            if ((RCC->CFGR & RCC_CFGR_PLLXTPRE) != (uint32_t)RESET)
;;;352            {/* HSE oscillator clock divided by 2 */
;;;353              SystemCoreClock = (HSE_VALUE >> 1) * pllmull;
;;;354            }
;;;355            else
;;;356            {
;;;357              SystemCoreClock = HSE_VALUE * pllmull;
;;;358            }
;;;359     #endif
;;;360          }
;;;361    #else
;;;362          pllmull = pllmull >> 18;
00004c  0c80              LSRS     r0,r0,#18
;;;363          
;;;364          if (pllmull != 0x0D)
00004e  280d              CMP      r0,#0xd
000050  d001              BEQ      |L3.86|
;;;365          {
;;;366             pllmull += 2;
000052  1c80              ADDS     r0,r0,#2
000054  e000              B        |L3.88|
                  |L3.86|
;;;367          }
;;;368          else
;;;369          { /* PLL multiplication factor = PLL input clock * 6.5 */
;;;370            pllmull = 13 / 2; 
000056  2006              MOVS     r0,#6
                  |L3.88|
;;;371          }
;;;372                
;;;373          if (pllsource == 0x00)
000058  b933              CBNZ     r3,|L3.104|
;;;374          {
;;;375            /* HSI oscillator clock divided by 2 selected as PLL clock entry */
;;;376            SystemCoreClock = (HSI_VALUE >> 1) * pllmull;
00005a  4f27              LDR      r7,|L3.248|
00005c  4347              MULS     r7,r0,r7
00005e  f8dfc090          LDR      r12,|L3.240|
000062  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
000066  e027              B        |L3.184|
                  |L3.104|
;;;377          }
;;;378          else
;;;379          {/* PREDIV1 selected as PLL clock entry */
;;;380            
;;;381            /* Get PREDIV1 clock source and division factor */
;;;382            prediv1source = RCC->CFGR2 & RCC_CFGR2_PREDIV1SRC;
000068  4f1f              LDR      r7,|L3.232|
00006a  6aff              LDR      r7,[r7,#0x2c]
00006c  f4073480          AND      r4,r7,#0x10000
;;;383            prediv1factor = (RCC->CFGR2 & RCC_CFGR2_PREDIV1) + 1;
000070  4f1d              LDR      r7,|L3.232|
000072  6aff              LDR      r7,[r7,#0x2c]
000074  f007070f          AND      r7,r7,#0xf
000078  1c7a              ADDS     r2,r7,#1
;;;384            
;;;385            if (prediv1source == 0)
00007a  b944              CBNZ     r4,|L3.142|
;;;386            { 
;;;387              /* HSE oscillator clock selected as PREDIV1 clock entry */
;;;388              SystemCoreClock = (HSE_VALUE / prediv1factor) * pllmull;          
00007c  4f1d              LDR      r7,|L3.244|
00007e  fbb7f7f2          UDIV     r7,r7,r2
000082  4347              MULS     r7,r0,r7
000084  f8dfc068          LDR      r12,|L3.240|
000088  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
00008c  e014              B        |L3.184|
                  |L3.142|
;;;389            }
;;;390            else
;;;391            {/* PLL2 clock selected as PREDIV1 clock entry */
;;;392              
;;;393              /* Get PREDIV2 division factor and PLL2 multiplication factor */
;;;394              prediv2factor = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> 4) + 1;
00008e  4f16              LDR      r7,|L3.232|
000090  6aff              LDR      r7,[r7,#0x2c]
000092  f3c71703          UBFX     r7,r7,#4,#4
000096  1c7d              ADDS     r5,r7,#1
;;;395              pll2mull = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> 8 ) + 2; 
000098  4f13              LDR      r7,|L3.232|
00009a  6aff              LDR      r7,[r7,#0x2c]
00009c  f3c72703          UBFX     r7,r7,#8,#4
0000a0  1cbe              ADDS     r6,r7,#2
;;;396              SystemCoreClock = (((HSE_VALUE / prediv2factor) * pll2mull) / prediv1factor) * pllmull;                         
0000a2  4f14              LDR      r7,|L3.244|
0000a4  fbb7f7f5          UDIV     r7,r7,r5
0000a8  4377              MULS     r7,r6,r7
0000aa  fbb7f7f2          UDIV     r7,r7,r2
0000ae  4347              MULS     r7,r0,r7
0000b0  f8dfc03c          LDR      r12,|L3.240|
0000b4  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
                  |L3.184|
;;;397            }
;;;398          }
;;;399    #endif /* STM32F10X_CL */ 
;;;400          break;
0000b8  e005              B        |L3.198|
                  |L3.186|
;;;401    
;;;402        default:
;;;403          SystemCoreClock = HSI_VALUE;
0000ba  4f0c              LDR      r7,|L3.236|
0000bc  f8dfc030          LDR      r12,|L3.240|
0000c0  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
;;;404          break;
0000c4  bf00              NOP      
                  |L3.198|
0000c6  bf00              NOP                            ;325
;;;405      }
;;;406      
;;;407      /* Compute HCLK clock frequency ----------------*/
;;;408      /* Get HCLK prescaler */
;;;409      tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)];
0000c8  4f07              LDR      r7,|L3.232|
0000ca  687f              LDR      r7,[r7,#4]
0000cc  f3c71703          UBFX     r7,r7,#4,#4
0000d0  f8dfc028          LDR      r12,|L3.252|
0000d4  f81c1007          LDRB     r1,[r12,r7]
;;;410      /* HCLK clock frequency */
;;;411      SystemCoreClock >>= tmp;  
0000d8  4f05              LDR      r7,|L3.240|
0000da  683f              LDR      r7,[r7,#0]  ; SystemCoreClock
0000dc  40cf              LSRS     r7,r7,r1
0000de  f8dfc010          LDR      r12,|L3.240|
0000e2  f8cc7000          STR      r7,[r12,#0]  ; SystemCoreClock
;;;412    }
0000e6  bdf0              POP      {r4-r7,pc}
;;;413    
                          ENDP

                  |L3.232|
                          DCD      0x40021000
                  |L3.236|
                          DCD      0x007a1200
                  |L3.240|
                          DCD      SystemCoreClock
                  |L3.244|
                          DCD      0x017d7840
                  |L3.248|
                          DCD      0x003d0900
                  |L3.252|
                          DCD      AHBPrescTable

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

                  SystemInit PROC
;;;211      */
;;;212    void SystemInit (void)
000000  b510              PUSH     {r4,lr}
;;;213    {
;;;214      /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
;;;215      /* Set HSION bit */
;;;216      RCC->CR |= (uint32_t)0x00000001;
000002  4816              LDR      r0,|L4.92|
000004  6800              LDR      r0,[r0,#0]
000006  f0400001          ORR      r0,r0,#1
00000a  4914              LDR      r1,|L4.92|
00000c  6008              STR      r0,[r1,#0]
;;;217    
;;;218      /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */
;;;219    #ifndef STM32F10X_CL
;;;220      RCC->CFGR &= (uint32_t)0xF8FF0000;
;;;221    #else
;;;222      RCC->CFGR &= (uint32_t)0xF0FF0000;
00000e  4608              MOV      r0,r1
000010  6840              LDR      r0,[r0,#4]
000012  4913              LDR      r1,|L4.96|
000014  4008              ANDS     r0,r0,r1
000016  4911              LDR      r1,|L4.92|
000018  6048              STR      r0,[r1,#4]
;;;223    #endif /* STM32F10X_CL */   
;;;224      
;;;225      /* Reset HSEON, CSSON and PLLON bits */
;;;226      RCC->CR &= (uint32_t)0xFEF6FFFF;
00001a  4608              MOV      r0,r1
00001c  6800              LDR      r0,[r0,#0]
00001e  4911              LDR      r1,|L4.100|
000020  4008              ANDS     r0,r0,r1
000022  490e              LDR      r1,|L4.92|
000024  6008              STR      r0,[r1,#0]
;;;227    
;;;228      /* Reset HSEBYP bit */
;;;229      RCC->CR &= (uint32_t)0xFFFBFFFF;
000026  4608              MOV      r0,r1
000028  6800              LDR      r0,[r0,#0]
00002a  f4202080          BIC      r0,r0,#0x40000
00002e  6008              STR      r0,[r1,#0]
;;;230    
;;;231      /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */
;;;232      RCC->CFGR &= (uint32_t)0xFF80FFFF;
000030  4608              MOV      r0,r1
000032  6840              LDR      r0,[r0,#4]
000034  f42000fe          BIC      r0,r0,#0x7f0000
000038  6048              STR      r0,[r1,#4]
;;;233    
;;;234    #ifdef STM32F10X_CL
;;;235      /* Reset PLL2ON and PLL3ON bits */
;;;236      RCC->CR &= (uint32_t)0xEBFFFFFF;
00003a  4608              MOV      r0,r1
00003c  6800              LDR      r0,[r0,#0]
00003e  f02050a0          BIC      r0,r0,#0x14000000
000042  6008              STR      r0,[r1,#0]
;;;237    
;;;238      /* Disable all interrupts and clear pending bits  */
;;;239      RCC->CIR = 0x00FF0000;
000044  f44f007f          MOV      r0,#0xff0000
000048  6088              STR      r0,[r1,#8]
;;;240    
;;;241      /* Reset CFGR2 register */
;;;242      RCC->CFGR2 = 0x00000000;
00004a  2000              MOVS     r0,#0
00004c  62c8              STR      r0,[r1,#0x2c]
;;;243    #elif defined (STM32F10X_LD_VL) || defined (STM32F10X_MD_VL) || (defined STM32F10X_HD_VL)
;;;244      /* Disable all interrupts and clear pending bits  */
;;;245      RCC->CIR = 0x009F0000;
;;;246    
;;;247      /* Reset CFGR2 register */
;;;248      RCC->CFGR2 = 0x00000000;      
;;;249    #else
;;;250      /* Disable all interrupts and clear pending bits  */
;;;251      RCC->CIR = 0x009F0000;
;;;252    #endif /* STM32F10X_CL */
;;;253        
;;;254    #if defined (STM32F10X_HD) || (defined STM32F10X_XL) || (defined STM32F10X_HD_VL)
;;;255      #ifdef DATA_IN_ExtSRAM
;;;256        SystemInit_ExtMemCtl(); 
;;;257      #endif /* DATA_IN_ExtSRAM */
;;;258    #endif 
;;;259    
;;;260      /* Configure the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers */
;;;261      /* Configure the Flash Latency cycles and enable prefetch buffer */
;;;262      SetSysClock();
00004e  f7fffffe          BL       SetSysClock
;;;263    
;;;264    #ifdef VECT_TAB_SRAM
;;;265      SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
;;;266    #else
;;;267      SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
000052  f04f6000          MOV      r0,#0x8000000
000056  4904              LDR      r1,|L4.104|
000058  6008              STR      r0,[r1,#0]
;;;268    #endif 
;;;269    }
00005a  bd10              POP      {r4,pc}
;;;270    
                          ENDP

                  |L4.92|
                          DCD      0x40021000
                  |L4.96|
                          DCD      0xf0ff0000
                  |L4.100|
                          DCD      0xfef6ffff
                  |L4.104|
                          DCD      0xe000ed08

                          AREA ||.data||, DATA, ALIGN=2

                  SystemCoreClock
                          DCD      0x044aa200
                  AHBPrescTable
000004  00000000          DCB      0x00,0x00,0x00,0x00
000008  00000000          DCB      0x00,0x00,0x00,0x00
00000c  01020304          DCB      0x01,0x02,0x03,0x04
000010  06070809          DCB      0x06,0x07,0x08,0x09
