; generated by Component: ARM Compiler 5.06 update 7 (build 960) Tool: ArmCC [4d365d]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\output\sc32f1xxx_op.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\sc32f1xxx_op.d --cpu=Cortex-M0+ --apcs=interwork -O0 --diag_suppress=9931 -I..\FWLib\SC32F1XXX_Lib\inc -I..\User\HeadFiles -I..\User -I..\Drivers -I..\Apps -I..\CMSIS -IF:\Users\SOC\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\Device\ARM\ARMCM0plus\Include -D__UVISION_VERSION=536 -DARMCM0P -DSC32f15xx --omf_browse=..\output\sc32f1xxx_op.crf ..\FWLib\SC32F1XXX_Lib\src\sc32f1xxx_op.c]
                          THUMB

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

                  OP_CMPTriggerCmd PROC
;;;814      */
;;;815    void OP_CMPTriggerCmd(OP_TypeDef* OPx, FunctionalState NewState)
000000  2900              CMP      r1,#0
;;;816    {
;;;817        /* Check the parameters */
;;;818        assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;819        assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;820    
;;;821        if(NewState != SC_DISABLE)
000002  d018              BEQ      |L1.54|
;;;822        {
;;;823    		   /* Enable the OP Function */
;;;824    			  if(OPx==OP_1)
000004  4a18              LDR      r2,|L1.104|
000006  4290              CMP      r0,r2
000008  d108              BNE      |L1.28|
;;;825    				{
;;;826    					OP->OP1_CON |= (uint32_t)OP_CON_MODE;
00000a  4a17              LDR      r2,|L1.104|
00000c  3a31              SUBS     r2,r2,#0x31
00000e  6b52              LDR      r2,[r2,#0x34]
000010  14c3              ASRS     r3,r0,#19
000012  431a              ORRS     r2,r2,r3
000014  4b14              LDR      r3,|L1.104|
000016  3b31              SUBS     r3,r3,#0x31
000018  635a              STR      r2,[r3,#0x34]
00001a  e024              B        |L1.102|
                  |L1.28|
;;;827    				}
;;;828    				else if(OPx==OP_2)
00001c  4a12              LDR      r2,|L1.104|
00001e  1c52              ADDS     r2,r2,#1
000020  4290              CMP      r0,r2
000022  d120              BNE      |L1.102|
;;;829    				{
;;;830    					 OP->OP2_CON |= (uint32_t)OP_CON_MODE;
000024  4a10              LDR      r2,|L1.104|
000026  3a31              SUBS     r2,r2,#0x31
000028  6bd2              LDR      r2,[r2,#0x3c]
00002a  14c3              ASRS     r3,r0,#19
00002c  431a              ORRS     r2,r2,r3
00002e  4b0e              LDR      r3,|L1.104|
000030  3b31              SUBS     r3,r3,#0x31
000032  63da              STR      r2,[r3,#0x3c]
000034  e017              B        |L1.102|
                  |L1.54|
;;;831    				}
;;;832    
;;;833    
;;;834        }
;;;835        else
;;;836        {
;;;837            /* Disable the OP Function */
;;;838    				if(OPx==OP_1)
000036  4a0c              LDR      r2,|L1.104|
000038  4290              CMP      r0,r2
00003a  d108              BNE      |L1.78|
;;;839    				{
;;;840    					OP->OP1_CON &= (uint32_t)~OP_CON_MODE;
00003c  4a0a              LDR      r2,|L1.104|
00003e  3a31              SUBS     r2,r2,#0x31
000040  6b52              LDR      r2,[r2,#0x34]
000042  14c3              ASRS     r3,r0,#19
000044  439a              BICS     r2,r2,r3
000046  4b08              LDR      r3,|L1.104|
000048  3b31              SUBS     r3,r3,#0x31
00004a  635a              STR      r2,[r3,#0x34]
00004c  e00b              B        |L1.102|
                  |L1.78|
;;;841    				}
;;;842    				else if(OPx==OP_2)
00004e  4a06              LDR      r2,|L1.104|
000050  1c52              ADDS     r2,r2,#1
000052  4290              CMP      r0,r2
000054  d107              BNE      |L1.102|
;;;843    				{
;;;844    					 OP->OP2_CON &= (uint32_t)~OP_CON_MODE;
000056  4a04              LDR      r2,|L1.104|
000058  3a31              SUBS     r2,r2,#0x31
00005a  6bd2              LDR      r2,[r2,#0x3c]
00005c  14c3              ASRS     r3,r0,#19
00005e  439a              BICS     r2,r2,r3
000060  4b01              LDR      r3,|L1.104|
000062  3b31              SUBS     r3,r3,#0x31
000064  63da              STR      r2,[r3,#0x3c]
                  |L1.102|
;;;845    				}
;;;846        }
;;;847    }
000066  4770              BX       lr
;;;848    
                          ENDP

                  |L1.104|
                          DCD      0x400221b1

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

                  OP_CMPTriggerConfig PROC
;;;860      */
;;;861    void OP_CMPTriggerConfig(OP_TypeDef* OPx, OP_TriggerMode_TypeDef TriggerMode)
000000  4a13              LDR      r2,|L2.80|
;;;862    {
;;;863        /* Check the parameters */
;;;864        assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;865        assert_param(IS_OP_TRIGGER(TriggerMode));
;;;866    
;;;867        /* Enable the OP Function */
;;;868    		if(OPx==OP_1)
000002  4290              CMP      r0,r2
000004  d10f              BNE      |L2.38|
;;;869    		{
;;;870    				OP->OPX_CFG &= (uint32_t)~OP_CFG_OPCMPIM1;
000006  4a12              LDR      r2,|L2.80|
000008  320f              ADDS     r2,r2,#0xf
00000a  6812              LDR      r2,[r2,#0]
00000c  230c              MOVS     r3,#0xc
00000e  439a              BICS     r2,r2,r3
000010  4b0f              LDR      r3,|L2.80|
000012  330f              ADDS     r3,r3,#0xf
000014  601a              STR      r2,[r3,#0]
;;;871    				OP->OPX_CFG |= (TriggerMode << OP_CFG_OPCMPIM1_Pos);
000016  461a              MOV      r2,r3
000018  6812              LDR      r2,[r2,#0]
00001a  008b              LSLS     r3,r1,#2
00001c  431a              ORRS     r2,r2,r3
00001e  4b0c              LDR      r3,|L2.80|
000020  330f              ADDS     r3,r3,#0xf
000022  601a              STR      r2,[r3,#0]
000024  e012              B        |L2.76|
                  |L2.38|
;;;872    		}
;;;873    		else if(OPx==OP_2)
000026  4a0a              LDR      r2,|L2.80|
000028  1c52              ADDS     r2,r2,#1
00002a  4290              CMP      r0,r2
00002c  d10e              BNE      |L2.76|
;;;874    		{
;;;875    				OP->OPX_CFG &= (uint32_t)~OP_CFG_OPCMPIM2;
00002e  4a08              LDR      r2,|L2.80|
000030  320f              ADDS     r2,r2,#0xf
000032  6812              LDR      r2,[r2,#0]
000034  2330              MOVS     r3,#0x30
000036  439a              BICS     r2,r2,r3
000038  4b05              LDR      r3,|L2.80|
00003a  330f              ADDS     r3,r3,#0xf
00003c  601a              STR      r2,[r3,#0]
;;;876    				OP->OPX_CFG |= (TriggerMode << OP_CFG_OPCMPIM2_Pos);
00003e  461a              MOV      r2,r3
000040  6812              LDR      r2,[r2,#0]
000042  010b              LSLS     r3,r1,#4
000044  431a              ORRS     r2,r2,r3
000046  4b02              LDR      r3,|L2.80|
000048  330f              ADDS     r3,r3,#0xf
00004a  601a              STR      r2,[r3,#0]
                  |L2.76|
;;;877    		}
;;;878    
;;;879    }
00004c  4770              BX       lr
;;;880    
                          ENDP

00004e  0000              DCW      0x0000
                  |L2.80|
                          DCD      0x400221b1

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

                  OP_ClearFlag PROC
;;;1142    */
;;;1143   void OP_ClearFlag(uint16_t OP_FLAG)
000000  4901              LDR      r1,|L3.8|
;;;1144   {
;;;1145       /* Clear the flags */
;;;1146       OP->OPX_STS = (uint16_t)OP_FLAG;
000002  6048              STR      r0,[r1,#4]
;;;1147   }
000004  4770              BX       lr
;;;1148   
                          ENDP

000006  0000              DCW      0x0000
                  |L3.8|
                          DCD      0x400221c0

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

                  OP_Cmd PROC
;;;311     */
;;;312    void OP_Cmd ( OP_TypeDef* OPx, FunctionalState NewState )
000000  2900              CMP      r1,#0
;;;313    {
;;;314    #if defined(SC32f12xx)
;;;315        /* Check the parameters */
;;;316        assert_param ( IS_OP_ALL_PERIPH ( OPx ) );
;;;317        assert_param ( IS_FUNCTIONAL_STATE ( NewState ) );
;;;318    
;;;319        if ( NewState != SC_DISABLE )
;;;320        {
;;;321            /* Enable the OP Function */
;;;322            OPx->OP_CON |= OP_CON_ENOP;
;;;323        }
;;;324        else
;;;325        {
;;;326            /* Disable the OP Function */
;;;327            OPx->OP_CON &= ( uint16_t ) ~OP_CON_ENOP;
;;;328        }
;;;329    #elif defined (SC32f15xx)
;;;330        /* Check the parameters */
;;;331        assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;332        assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;333    
;;;334        if(NewState != SC_DISABLE)
000002  d025              BEQ      |L4.80|
;;;335        {
;;;336    			/* Enable the OP Function */
;;;337    			if(OPx==OP_0)
000004  4a25              LDR      r2,|L4.156|
000006  4290              CMP      r0,r2
000008  d108              BNE      |L4.28|
;;;338    			{
;;;339    				 OP->OP0_CON |= (uint32_t)OP_CON_ENOP;
00000a  4a24              LDR      r2,|L4.156|
00000c  3a30              SUBS     r2,r2,#0x30
00000e  6b12              LDR      r2,[r2,#0x30]
000010  2380              MOVS     r3,#0x80
000012  431a              ORRS     r2,r2,r3
000014  4b21              LDR      r3,|L4.156|
000016  3b30              SUBS     r3,r3,#0x30
000018  631a              STR      r2,[r3,#0x30]
00001a  e03e              B        |L4.154|
                  |L4.28|
;;;340    			}
;;;341    			else if(OPx==OP_1)
00001c  4a1f              LDR      r2,|L4.156|
00001e  1c52              ADDS     r2,r2,#1
000020  4290              CMP      r0,r2
000022  d108              BNE      |L4.54|
;;;342    			{
;;;343    				 OP->OP1_CON |= (uint32_t)OP_CON_ENOP;
000024  4a1d              LDR      r2,|L4.156|
000026  3a30              SUBS     r2,r2,#0x30
000028  6b52              LDR      r2,[r2,#0x34]
00002a  2380              MOVS     r3,#0x80
00002c  431a              ORRS     r2,r2,r3
00002e  4b1b              LDR      r3,|L4.156|
000030  3b30              SUBS     r3,r3,#0x30
000032  635a              STR      r2,[r3,#0x34]
000034  e031              B        |L4.154|
                  |L4.54|
;;;344    			}
;;;345    			else if(OPx==OP_2)
000036  4a19              LDR      r2,|L4.156|
000038  1c92              ADDS     r2,r2,#2
00003a  4290              CMP      r0,r2
00003c  d12d              BNE      |L4.154|
;;;346    			{
;;;347    				 OP->OP2_CON |= (uint32_t)OP_CON_ENOP;
00003e  4a17              LDR      r2,|L4.156|
000040  3a30              SUBS     r2,r2,#0x30
000042  6bd2              LDR      r2,[r2,#0x3c]
000044  2380              MOVS     r3,#0x80
000046  431a              ORRS     r2,r2,r3
000048  4b14              LDR      r3,|L4.156|
00004a  3b30              SUBS     r3,r3,#0x30
00004c  63da              STR      r2,[r3,#0x3c]
00004e  e024              B        |L4.154|
                  |L4.80|
;;;348    			}
;;;349            
;;;350        }
;;;351        else
;;;352        {
;;;353            /* Disable the OP Function */
;;;354    			if(OPx==OP_0)
000050  4a12              LDR      r2,|L4.156|
000052  4290              CMP      r0,r2
000054  d108              BNE      |L4.104|
;;;355    			{
;;;356    				 OP->OP0_CON &= (uint32_t)~OP_CON_ENOP;
000056  4a11              LDR      r2,|L4.156|
000058  3a30              SUBS     r2,r2,#0x30
00005a  6b12              LDR      r2,[r2,#0x30]
00005c  2380              MOVS     r3,#0x80
00005e  439a              BICS     r2,r2,r3
000060  4b0e              LDR      r3,|L4.156|
000062  3b30              SUBS     r3,r3,#0x30
000064  631a              STR      r2,[r3,#0x30]
000066  e018              B        |L4.154|
                  |L4.104|
;;;357    			}
;;;358    			else if(OPx==OP_1)
000068  4a0c              LDR      r2,|L4.156|
00006a  1c52              ADDS     r2,r2,#1
00006c  4290              CMP      r0,r2
00006e  d108              BNE      |L4.130|
;;;359    			{
;;;360    				 OP->OP1_CON &= (uint32_t)~OP_CON_ENOP;
000070  4a0a              LDR      r2,|L4.156|
000072  3a30              SUBS     r2,r2,#0x30
000074  6b52              LDR      r2,[r2,#0x34]
000076  2380              MOVS     r3,#0x80
000078  439a              BICS     r2,r2,r3
00007a  4b08              LDR      r3,|L4.156|
00007c  3b30              SUBS     r3,r3,#0x30
00007e  635a              STR      r2,[r3,#0x34]
000080  e00b              B        |L4.154|
                  |L4.130|
;;;361    			}
;;;362    			else if(OPx==OP_2)
000082  4a06              LDR      r2,|L4.156|
000084  1c92              ADDS     r2,r2,#2
000086  4290              CMP      r0,r2
000088  d107              BNE      |L4.154|
;;;363    			{
;;;364    				 OP->OP2_CON &= (uint32_t)~OP_CON_ENOP;
00008a  4a04              LDR      r2,|L4.156|
00008c  3a30              SUBS     r2,r2,#0x30
00008e  6bd2              LDR      r2,[r2,#0x3c]
000090  2380              MOVS     r3,#0x80
000092  439a              BICS     r2,r2,r3
000094  4b01              LDR      r3,|L4.156|
000096  3b30              SUBS     r3,r3,#0x30
000098  63da              STR      r2,[r3,#0x3c]
                  |L4.154|
;;;365    			}
;;;366        }
;;;367    #endif
;;;368    }
00009a  4770              BX       lr
;;;369    
                          ENDP

                  |L4.156|
                          DCD      0x400221b0

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

                  OP_DeInit PROC
;;;49      */
;;;50     void OP_DeInit ( OP_TypeDef* OPx )
000000  4910              LDR      r1,|L5.68|
;;;51     {
;;;52     #if defined(SC32f12xx)
;;;53         uint32_t tmpreg = 0;
;;;54         /* Check the parameters */
;;;55         assert_param ( IS_OP_ALL_PERIPH ( OPx ) );
;;;56     
;;;57         if ( OPx == OP )
;;;58         {
;;;59             /* Get the OPx OP_CON value */
;;;60             tmpreg = OPx->OP_CON;
;;;61     
;;;62             /* Set OPFS bit to OP_FreqSelect value */
;;;63             tmpreg &= 0x00000000;
;;;64     
;;;65             /* Write to OPx OP_CON */
;;;66             OPx->OP_CON = ( uint32_t ) tmpreg;
;;;67         }
;;;68     #elif defined (SC32f15xx)
;;;69     			/* Check the parameters */
;;;70     		assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;71     
;;;72     		if (OPx==OP_0)
000002  4288              CMP      r0,r1
000004  d104              BNE      |L5.16|
;;;73     		{
;;;74     		 OP->OP0_CON = (uint32_t)0x00;
000006  2100              MOVS     r1,#0
000008  4a0e              LDR      r2,|L5.68|
00000a  3a30              SUBS     r2,r2,#0x30
00000c  6311              STR      r1,[r2,#0x30]
00000e  e010              B        |L5.50|
                  |L5.16|
;;;75     		}       
;;;76     		else if (OPx==OP_1)
000010  490c              LDR      r1,|L5.68|
000012  1c49              ADDS     r1,r1,#1
000014  4288              CMP      r0,r1
000016  d104              BNE      |L5.34|
;;;77     		{
;;;78     		 OP->OP1_CON = (uint32_t)0x00;
000018  2100              MOVS     r1,#0
00001a  4a0a              LDR      r2,|L5.68|
00001c  3a30              SUBS     r2,r2,#0x30
00001e  6351              STR      r1,[r2,#0x34]
000020  e007              B        |L5.50|
                  |L5.34|
;;;79     		}
;;;80     		else if (OPx==OP_2)
000022  4908              LDR      r1,|L5.68|
000024  1c89              ADDS     r1,r1,#2
000026  4288              CMP      r0,r1
000028  d103              BNE      |L5.50|
;;;81     		{
;;;82     		 OP->OP2_CON = (uint32_t)0x00;
00002a  2100              MOVS     r1,#0
00002c  4a05              LDR      r2,|L5.68|
00002e  3a30              SUBS     r2,r2,#0x30
000030  63d1              STR      r1,[r2,#0x3c]
                  |L5.50|
;;;83     		}
;;;84     
;;;85     			OP->OPX_CFG = (uint32_t)0x00;
000032  2100              MOVS     r1,#0
000034  4a03              LDR      r2,|L5.68|
000036  3210              ADDS     r2,r2,#0x10
000038  6011              STR      r1,[r2,#0]
;;;86     			OP->OPX_IDE = (uint32_t)0x00;
00003a  6091              STR      r1,[r2,#8]
;;;87     			OP->OPX_STS = (uint32_t)0x06;
00003c  2106              MOVS     r1,#6
00003e  6051              STR      r1,[r2,#4]
;;;88     #endif
;;;89     }
000040  4770              BX       lr
;;;90     
                          ENDP

000042  0000              DCW      0x0000
                  |L5.68|
                          DCD      0x400221b0

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

                  OP_FDBRSelection PROC
;;;766      */
;;;767    void OP_FDBRSelection(OP_TypeDef* OPx, OP_FDBR_Typedef OP_FDBR)
000000  4a19              LDR      r2,|L6.104|
;;;768    {
;;;769      /* Check the parameters */
;;;770      assert_param(IS_OP_ALL_PERIPH(OPx));
;;;771      assert_param(IS_OP_FDBR(OP_FDBR));
;;;772    
;;;773      if(OPx==OP_0)
000002  4290              CMP      r0,r2
000004  d10d              BNE      |L6.34|
;;;774    	{
;;;775    		OP->OP0_CON &= ~OP_CON_FDBRSEL;
000006  4a18              LDR      r2,|L6.104|
000008  3a30              SUBS     r2,r2,#0x30
00000a  6b12              LDR      r2,[r2,#0x30]
00000c  2301              MOVS     r3,#1
00000e  079b              LSLS     r3,r3,#30
000010  439a              BICS     r2,r2,r3
000012  4b15              LDR      r3,|L6.104|
000014  3b30              SUBS     r3,r3,#0x30
000016  631a              STR      r2,[r3,#0x30]
;;;776    		OP->OP0_CON |= OP_FDBR;
000018  461a              MOV      r2,r3
00001a  6b12              LDR      r2,[r2,#0x30]
00001c  430a              ORRS     r2,r2,r1
00001e  631a              STR      r2,[r3,#0x30]
000020  e020              B        |L6.100|
                  |L6.34|
;;;777    	}
;;;778    	else if(OPx==OP_1)
000022  4a11              LDR      r2,|L6.104|
000024  1c52              ADDS     r2,r2,#1
000026  4290              CMP      r0,r2
000028  d10c              BNE      |L6.68|
;;;779    	{
;;;780    		OP->OP1_CON &= ~OP_CON_FDBRSEL;
00002a  4a0f              LDR      r2,|L6.104|
00002c  3a30              SUBS     r2,r2,#0x30
00002e  6b52              LDR      r2,[r2,#0x34]
000030  0783              LSLS     r3,r0,#30
000032  439a              BICS     r2,r2,r3
000034  4b0c              LDR      r3,|L6.104|
000036  3b30              SUBS     r3,r3,#0x30
000038  635a              STR      r2,[r3,#0x34]
;;;781    		OP->OP1_CON |= OP_FDBR;
00003a  461a              MOV      r2,r3
00003c  6b52              LDR      r2,[r2,#0x34]
00003e  430a              ORRS     r2,r2,r1
000040  635a              STR      r2,[r3,#0x34]
000042  e00f              B        |L6.100|
                  |L6.68|
;;;782    	}
;;;783    	else if(OPx==OP_2)
000044  4a08              LDR      r2,|L6.104|
000046  1c92              ADDS     r2,r2,#2
000048  4290              CMP      r0,r2
00004a  d10b              BNE      |L6.100|
;;;784    	{
;;;785    		OP->OP2_CON &= ~OP_CON_FDBRSEL;
00004c  4a06              LDR      r2,|L6.104|
00004e  3a30              SUBS     r2,r2,#0x30
000050  6bd2              LDR      r2,[r2,#0x3c]
000052  0743              LSLS     r3,r0,#29
000054  439a              BICS     r2,r2,r3
000056  4b04              LDR      r3,|L6.104|
000058  3b30              SUBS     r3,r3,#0x30
00005a  63da              STR      r2,[r3,#0x3c]
;;;786    		OP->OP2_CON |= OP_FDBR;
00005c  461a              MOV      r2,r3
00005e  6bd2              LDR      r2,[r2,#0x3c]
000060  430a              ORRS     r2,r2,r1
000062  63da              STR      r2,[r3,#0x3c]
                  |L6.100|
;;;787    	}
;;;788    }
000064  4770              BX       lr
;;;789    /**
                          ENDP

000066  0000              DCW      0x0000
                  |L6.104|
                          DCD      0x400221b0

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

                  OP_GainSelection PROC
;;;470      */
;;;471    void OP_GainSelection ( OP_TypeDef* OPx, OP_PGAGain_TypeDef PGAGain )
000000  4a1a              LDR      r2,|L7.108|
;;;472    {
;;;473    #if defined(SC32f12xx)
;;;474        /* Check the parameters */
;;;475        assert_param ( IS_OP_ALL_PERIPH ( OPx ) );
;;;476        assert_param ( IS_OP_PGAGain ( PGAGain ) );
;;;477    
;;;478    
;;;479        OPx->OP_CON &= ~ ( OP_CON_PGAGAIN );
;;;480        OPx->OP_CON |= PGAGain;
;;;481    #elif defined (SC32f15xx)
;;;482      /* Check the parameters */
;;;483      assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;484      assert_param( IS_OP_GAN(PGAGain) );
;;;485    
;;;486      if(OPx==OP_0)
000002  4290              CMP      r0,r2
000004  d10d              BNE      |L7.34|
;;;487    	{
;;;488    			OP->OP0_CON &= ~OP_CON_PGAGAIN;
000006  4a19              LDR      r2,|L7.108|
000008  3a30              SUBS     r2,r2,#0x30
00000a  6b12              LDR      r2,[r2,#0x30]
00000c  2303              MOVS     r3,#3
00000e  021b              LSLS     r3,r3,#8
000010  439a              BICS     r2,r2,r3
000012  4b16              LDR      r3,|L7.108|
000014  3b30              SUBS     r3,r3,#0x30
000016  631a              STR      r2,[r3,#0x30]
;;;489    			OP->OP0_CON |= PGAGain;
000018  461a              MOV      r2,r3
00001a  6b12              LDR      r2,[r2,#0x30]
00001c  430a              ORRS     r2,r2,r1
00001e  631a              STR      r2,[r3,#0x30]
000020  e022              B        |L7.104|
                  |L7.34|
;;;490    	}
;;;491    	else if(OPx==OP_1)
000022  4a12              LDR      r2,|L7.108|
000024  1c52              ADDS     r2,r2,#1
000026  4290              CMP      r0,r2
000028  d10d              BNE      |L7.70|
;;;492    	{
;;;493    			OP->OP1_CON &= ~OP_CON_PGAGAIN;
00002a  4a10              LDR      r2,|L7.108|
00002c  3a30              SUBS     r2,r2,#0x30
00002e  6b52              LDR      r2,[r2,#0x34]
000030  2303              MOVS     r3,#3
000032  021b              LSLS     r3,r3,#8
000034  439a              BICS     r2,r2,r3
000036  4b0d              LDR      r3,|L7.108|
000038  3b30              SUBS     r3,r3,#0x30
00003a  635a              STR      r2,[r3,#0x34]
;;;494    			OP->OP1_CON |=  PGAGain;
00003c  461a              MOV      r2,r3
00003e  6b52              LDR      r2,[r2,#0x34]
000040  430a              ORRS     r2,r2,r1
000042  635a              STR      r2,[r3,#0x34]
000044  e010              B        |L7.104|
                  |L7.70|
;;;495    	}
;;;496    	else if(OPx==OP_2)
000046  4a09              LDR      r2,|L7.108|
000048  1c92              ADDS     r2,r2,#2
00004a  4290              CMP      r0,r2
00004c  d10c              BNE      |L7.104|
;;;497    	{
;;;498    			OP->OP2_CON &= ~OP_CON_PGAGAIN;
00004e  4a07              LDR      r2,|L7.108|
000050  3a30              SUBS     r2,r2,#0x30
000052  6bd2              LDR      r2,[r2,#0x3c]
000054  2303              MOVS     r3,#3
000056  021b              LSLS     r3,r3,#8
000058  439a              BICS     r2,r2,r3
00005a  4b04              LDR      r3,|L7.108|
00005c  3b30              SUBS     r3,r3,#0x30
00005e  63da              STR      r2,[r3,#0x3c]
;;;499    			OP->OP2_CON |= PGAGain;
000060  461a              MOV      r2,r3
000062  6bd2              LDR      r2,[r2,#0x3c]
000064  430a              ORRS     r2,r2,r1
000066  63da              STR      r2,[r3,#0x3c]
                  |L7.104|
;;;500    	}
;;;501    #endif
;;;502    
;;;503    }
000068  4770              BX       lr
;;;504    
                          ENDP

00006a  0000              DCW      0x0000
                  |L7.108|
                          DCD      0x400221b0

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

                  OP_GetCMPSTA PROC
;;;1044    */
;;;1045   OP_CMPSTA_TypeDef OP_GetCMPSTA(OP_TypeDef* OPx)
000000  4601              MOV      r1,r0
;;;1046   {
;;;1047       OP_CMPSTA_TypeDef OP_CMPSTA = OP_CMPSTA_Low;
000002  2000              MOVS     r0,#0
;;;1048       /* Check the parameters */
;;;1049       assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;1050   
;;;1051       /* Enable the OP Function */
;;;1052   		if(OPx==OP_1)
000004  4a0e              LDR      r2,|L8.64|
000006  4291              CMP      r1,r2
000008  d10a              BNE      |L8.32|
;;;1053   		{
;;;1054   			if((OP->OPX_STS & OP_STS_OPCMP1STA) != 0)
00000a  4a0d              LDR      r2,|L8.64|
00000c  320f              ADDS     r2,r2,#0xf
00000e  6852              LDR      r2,[r2,#4]
000010  2310              MOVS     r3,#0x10
000012  401a              ANDS     r2,r2,r3
000014  2a00              CMP      r2,#0
000016  d001              BEQ      |L8.28|
;;;1055   			{
;;;1056   					OP_CMPSTA = OP_CMPSTA_High;
000018  2001              MOVS     r0,#1
00001a  e00f              B        |L8.60|
                  |L8.28|
;;;1057   			}
;;;1058   			else
;;;1059   			{
;;;1060   					OP_CMPSTA = OP_CMPSTA_Low;
00001c  2000              MOVS     r0,#0
00001e  e00d              B        |L8.60|
                  |L8.32|
;;;1061   			}
;;;1062   		}
;;;1063   		else if(OPx==OP_2)
000020  4a07              LDR      r2,|L8.64|
000022  1c52              ADDS     r2,r2,#1
000024  4291              CMP      r1,r2
000026  d109              BNE      |L8.60|
;;;1064   		{
;;;1065   			if((OP->OPX_STS & OP_STS_OPCMP2STA) != 0)
000028  4a05              LDR      r2,|L8.64|
00002a  320f              ADDS     r2,r2,#0xf
00002c  6852              LDR      r2,[r2,#4]
00002e  2320              MOVS     r3,#0x20
000030  401a              ANDS     r2,r2,r3
000032  2a00              CMP      r2,#0
000034  d001              BEQ      |L8.58|
;;;1066   			{
;;;1067   					OP_CMPSTA = OP_CMPSTA_High;
000036  2001              MOVS     r0,#1
000038  e000              B        |L8.60|
                  |L8.58|
;;;1068   			}
;;;1069   			else
;;;1070   			{
;;;1071   					OP_CMPSTA = OP_CMPSTA_Low;
00003a  2000              MOVS     r0,#0
                  |L8.60|
;;;1072   			}
;;;1073   		}
;;;1074   
;;;1075       return OP_CMPSTA;
;;;1076   }
00003c  4770              BX       lr
;;;1077   
                          ENDP

00003e  0000              DCW      0x0000
                  |L8.64|
                          DCD      0x400221b1

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

                  OP_GetFlagStatus PROC
;;;1117    */
;;;1118   FlagStatus OP_GetFlagStatus(OP_FLAG_TypeDef OP_FLAG)
000000  4601              MOV      r1,r0
;;;1119   {
;;;1120       ITStatus bitstatus = SC_RESET;
000002  2000              MOVS     r0,#0
;;;1121       /* Check the parameters */
;;;1122       
;;;1123       assert_param(IS_OP_FLAG(OP_FLAG)); 
;;;1124   
;;;1125       if((OP->OPX_STS & OP_FLAG) != (uint16_t)SC_RESET)
000004  4a04              LDR      r2,|L9.24|
000006  6852              LDR      r2,[r2,#4]
000008  400a              ANDS     r2,r2,r1
00000a  2a00              CMP      r2,#0
00000c  d001              BEQ      |L9.18|
;;;1126       {
;;;1127           bitstatus = SC_SET;
00000e  2001              MOVS     r0,#1
000010  e000              B        |L9.20|
                  |L9.18|
;;;1128       }
;;;1129       else
;;;1130       {
;;;1131           bitstatus = SC_RESET;
000012  2000              MOVS     r0,#0
                  |L9.20|
;;;1132       }
;;;1133       return bitstatus;
;;;1134   }
000014  4770              BX       lr
;;;1135   
                          ENDP

000016  0000              DCW      0x0000
                  |L9.24|
                          DCD      0x400221c0

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

                  OP_ITConfig PROC
;;;1088    */
;;;1089   void OP_ITConfig(uint16_t OP_IT, FunctionalState NewState)
000000  2900              CMP      r1,#0
;;;1090   {
;;;1091       /* Check the parameters */
;;;1092     
;;;1093       assert_param(IS_OP_IT(OP_IT)); 
;;;1094       assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;1095   
;;;1096   
;;;1097       if(NewState != SC_DISABLE)
000002  d005              BEQ      |L10.16|
;;;1098       {
;;;1099           /* Enable the Interrupt sources */
;;;1100           OP->OPX_IDE |= OP_IT;
000004  4a06              LDR      r2,|L10.32|
000006  6892              LDR      r2,[r2,#8]
000008  4302              ORRS     r2,r2,r0
00000a  4b05              LDR      r3,|L10.32|
00000c  609a              STR      r2,[r3,#8]
00000e  e006              B        |L10.30|
                  |L10.16|
;;;1101       }
;;;1102       else
;;;1103       {
;;;1104           /* Disable the Interrupt sources */
;;;1105           OP->OPX_IDE &= (uint16_t)~OP_IT;
000010  4a03              LDR      r2,|L10.32|
000012  6892              LDR      r2,[r2,#8]
000014  43c3              MVNS     r3,r0
000016  b29b              UXTH     r3,r3
000018  401a              ANDS     r2,r2,r3
00001a  4b01              LDR      r3,|L10.32|
00001c  609a              STR      r2,[r3,#8]
                  |L10.30|
;;;1106       }
;;;1107   }
00001e  4770              BX       lr
;;;1108   
                          ENDP

                  |L10.32|
                          DCD      0x400221c0

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

                  OP_Init PROC
;;;103     */
;;;104    void OP_Init ( OP_TypeDef* OPx, OP_InitTypeDef* OP_InitStruct )
000000  b510              PUSH     {r4,lr}
;;;105    {
;;;106    #if defined(SC32f12xx)
;;;107        uint32_t tmpreg = 0;
;;;108        /* Check the parameters */
;;;109        assert_param ( IS_OP_ALL_PERIPH ( OPx ) );
;;;110        assert_param ( IS_OP_Output ( Output ) );
;;;111        assert_param ( IS_OP_Negative ( Negative ) );
;;;112        assert_param ( IS_OP_Posittive ( Posittive ) );
;;;113        assert_param ( IS_OP_PGAGain ( PGAGain ) );
;;;114        assert_param ( IS_OP_FDBResisrance ( FDBResisrance ) );
;;;115        assert_param ( IS_OP_ShortCircuit ( ShortCircuit ) );
;;;116    
;;;117        /*---------------------------- OPx OP_CON Configuration ------------------------*/
;;;118        /* Get the OPx OP_CON value */
;;;119        tmpreg = OPx->OP_CON;
;;;120    
;;;121        /* Clear OPFS bits */
;;;122        tmpreg &= ( uint32_t ) ~ ( OP_CON_OPOSEL | OP_CON_OPNSEL | OP_CON_OPPSEL
;;;123                                   | OP_CON_PGAGAIN | OP_CON_FDBRSEL | OP_CON_PGAOFC );
;;;124        /* Set OPFS bit to OP_FreqSelect value */
;;;125        tmpreg |= ( uint32_t ) ( OP_InitStruct->OP_FDBResisrance | OP_InitStruct->OP_Negative | OP_InitStruct->OP_Output |
;;;126                                 OP_InitStruct->OP_PGAGain | OP_InitStruct->OP_Posittive | OP_InitStruct->OP_ShortCircuit );
;;;127    
;;;128        /* Write to OPx OP_CON */
;;;129        OPx->OP_CON = tmpreg;
;;;130    #elif defined (SC32f15xx)
;;;131        uint32_t tmpreg = 0x00;
000002  2200              MOVS     r2,#0
;;;132       
;;;133        /* Check the parameters */
;;;134        assert_param(IS_OP_ALL_PERIPH(OPx));
;;;135        assert_param(IS_OP_INVERTINPUT(OP_InitStruct->OP_NonInvertInput));
;;;136        assert_param(IS_OP_GAN(OP_InitStruct->OP_PGAGain));
;;;137    
;;;138        /*---------------------------- OPx_CON Configuration ------------------------*/
;;;139        /* Get the OPx OP_CON value */
;;;140        if(OPx==OP_0)  tmpreg =  OP->OP0_CON ;
000004  4b4a              LDR      r3,|L11.304|
000006  4298              CMP      r0,r3
000008  d103              BNE      |L11.18|
00000a  4b49              LDR      r3,|L11.304|
00000c  3b30              SUBS     r3,r3,#0x30
00000e  6b1a              LDR      r2,[r3,#0x30]
000010  e00e              B        |L11.48|
                  |L11.18|
;;;141    	  else if(OPx==OP_1)  tmpreg =  OP->OP1_CON ;
000012  4b47              LDR      r3,|L11.304|
000014  1c5b              ADDS     r3,r3,#1
000016  4298              CMP      r0,r3
000018  d103              BNE      |L11.34|
00001a  4b45              LDR      r3,|L11.304|
00001c  3b30              SUBS     r3,r3,#0x30
00001e  6b5a              LDR      r2,[r3,#0x34]
000020  e006              B        |L11.48|
                  |L11.34|
;;;142        else if(OPx==OP_2)  tmpreg =  OP->OP2_CON ;
000022  4b43              LDR      r3,|L11.304|
000024  1c9b              ADDS     r3,r3,#2
000026  4298              CMP      r0,r3
000028  d102              BNE      |L11.48|
00002a  4b41              LDR      r3,|L11.304|
00002c  3b30              SUBS     r3,r3,#0x30
00002e  6bda              LDR      r2,[r3,#0x3c]
                  |L11.48|
;;;143        
;;;144        tmpreg &= (uint32_t)~(OP_CON_OPOSEL | OP_CON_OPNSEL | OP_CON_OPPSEL |
000030  4b40              LDR      r3,|L11.308|
000032  401a              ANDS     r2,r2,r3
;;;145                              OP_CON_PGAGAIN | OP_CON_OPRF | OP_CON_FDBRSEL);
;;;146    
;;;147        tmpreg |= (uint32_t)(OP_InitStruct->OP_OutputPin | OP_InitStruct->OP_InvertInput |
000034  78cb              LDRB     r3,[r1,#3]
000036  790c              LDRB     r4,[r1,#4]
000038  4323              ORRS     r3,r3,r4
00003a  794c              LDRB     r4,[r1,#5]
00003c  4323              ORRS     r3,r3,r4
00003e  88cc              LDRH     r4,[r1,#6]
000040  4323              ORRS     r3,r3,r4
000042  688c              LDR      r4,[r1,#8]
000044  4323              ORRS     r3,r3,r4
000046  68cc              LDR      r4,[r1,#0xc]
000048  4323              ORRS     r3,r3,r4
00004a  431a              ORRS     r2,r2,r3
;;;148                             OP_InitStruct->OP_NonInvertInput | OP_InitStruct->OP_PGAGain |
;;;149                             OP_InitStruct->OP_OPRF | OP_InitStruct->OP_FDBR);
;;;150    			
;;;151    	  if(OPx==OP_0)
00004c  4b38              LDR      r3,|L11.304|
00004e  4298              CMP      r0,r3
000050  d114              BNE      |L11.124|
;;;152    		{
;;;153          if(OP_InitStruct->OP_InvertInput == OP_InvertInput_Res )
000052  790b              LDRB     r3,[r1,#4]
000054  2b0c              CMP      r3,#0xc
000056  d10d              BNE      |L11.116|
;;;154    		  {
;;;155    				    GPIOB->PXCON &= (uint32_t)(~0x0002);
000058  4b37              LDR      r3,|L11.312|
00005a  6a1b              LDR      r3,[r3,#0x20]
00005c  2402              MOVS     r4,#2
00005e  43a3              BICS     r3,r3,r4
000060  4c35              LDR      r4,|L11.312|
000062  6223              STR      r3,[r4,#0x20]
;;;156    	        	GPIOB->PXPH &= (uint32_t)(~0x0002);	
000064  4b34              LDR      r3,|L11.312|
000066  3340              ADDS     r3,r3,#0x40
000068  681b              LDR      r3,[r3,#0]
00006a  2402              MOVS     r4,#2
00006c  43a3              BICS     r3,r3,r4
00006e  4c32              LDR      r4,|L11.312|
000070  3440              ADDS     r4,r4,#0x40
000072  6023              STR      r3,[r4,#0]
                  |L11.116|
;;;157    		  }
;;;158    			 OP->OP0_CON = tmpreg ;
000074  4b2e              LDR      r3,|L11.304|
000076  3b30              SUBS     r3,r3,#0x30
000078  631a              STR      r2,[r3,#0x30]
00007a  e058              B        |L11.302|
                  |L11.124|
;;;159    
;;;160    		}
;;;161    	  else if(OPx==OP_1)
00007c  4b2c              LDR      r3,|L11.304|
00007e  1c5b              ADDS     r3,r3,#1
000080  4298              CMP      r0,r3
000082  d128              BNE      |L11.214|
;;;162    		{
;;;163    			if(OP_InitStruct->OP_InvertInput == OP_InvertInput_Res )
000084  790b              LDRB     r3,[r1,#4]
000086  2b0c              CMP      r3,#0xc
000088  d10d              BNE      |L11.166|
;;;164    		  {
;;;165    				    GPIOB->PXCON &= (uint32_t)(~0x0010);
00008a  4b2b              LDR      r3,|L11.312|
00008c  6a1b              LDR      r3,[r3,#0x20]
00008e  2410              MOVS     r4,#0x10
000090  43a3              BICS     r3,r3,r4
000092  4c29              LDR      r4,|L11.312|
000094  6223              STR      r3,[r4,#0x20]
;;;166    	        	GPIOB->PXPH &= (uint32_t)(~0x0010);	
000096  4b28              LDR      r3,|L11.312|
000098  3340              ADDS     r3,r3,#0x40
00009a  681b              LDR      r3,[r3,#0]
00009c  2410              MOVS     r4,#0x10
00009e  43a3              BICS     r3,r3,r4
0000a0  4c25              LDR      r4,|L11.312|
0000a2  3440              ADDS     r4,r4,#0x40
0000a4  6023              STR      r3,[r4,#0]
                  |L11.166|
;;;167    		  }
;;;168    			 OP->OP1_CON = tmpreg;
0000a6  4b22              LDR      r3,|L11.304|
0000a8  3b30              SUBS     r3,r3,#0x30
0000aa  635a              STR      r2,[r3,#0x34]
;;;169    			 OP->OPX_CFG &= (uint32_t)~OP_CFG_OPCMPIM1;
0000ac  4b20              LDR      r3,|L11.304|
0000ae  3310              ADDS     r3,r3,#0x10
0000b0  681b              LDR      r3,[r3,#0]
0000b2  240c              MOVS     r4,#0xc
0000b4  43a3              BICS     r3,r3,r4
0000b6  4c1e              LDR      r4,|L11.304|
0000b8  3410              ADDS     r4,r4,#0x10
0000ba  6023              STR      r3,[r4,#0]
;;;170           OP->OPX_CFG |= (uint32_t)(OP_InitStruct->OP_CMPIM1 << OP_CFG_OPCMPIM1_Pos)|(uint32_t)(OP_InitStruct->OP_REFSEL << OP_CFG_REFSEL_Pos);
0000bc  788b              LDRB     r3,[r1,#2]
0000be  009b              LSLS     r3,r3,#2
0000c0  780c              LDRB     r4,[r1,#0]
0000c2  01e4              LSLS     r4,r4,#7
0000c4  4323              ORRS     r3,r3,r4
0000c6  4c1a              LDR      r4,|L11.304|
0000c8  3410              ADDS     r4,r4,#0x10
0000ca  6824              LDR      r4,[r4,#0]
0000cc  4323              ORRS     r3,r3,r4
0000ce  4c18              LDR      r4,|L11.304|
0000d0  3410              ADDS     r4,r4,#0x10
0000d2  6023              STR      r3,[r4,#0]
0000d4  e02b              B        |L11.302|
                  |L11.214|
;;;171    		
;;;172    		}
;;;173        else if(OPx==OP_2)
0000d6  4b16              LDR      r3,|L11.304|
0000d8  1c9b              ADDS     r3,r3,#2
0000da  4298              CMP      r0,r3
0000dc  d127              BNE      |L11.302|
;;;174    		{
;;;175    			if(OP_InitStruct->OP_InvertInput == OP_InvertInput_Res )
0000de  790b              LDRB     r3,[r1,#4]
0000e0  2b0c              CMP      r3,#0xc
0000e2  d10d              BNE      |L11.256|
;;;176    		  {
;;;177    				    GPIOB->PXCON &= (uint32_t)(~0x0800);
0000e4  4b14              LDR      r3,|L11.312|
0000e6  6a1b              LDR      r3,[r3,#0x20]
0000e8  14c4              ASRS     r4,r0,#19
0000ea  43a3              BICS     r3,r3,r4
0000ec  4c12              LDR      r4,|L11.312|
0000ee  6223              STR      r3,[r4,#0x20]
;;;178    	        	GPIOB->PXPH &= (uint32_t)(~0x0800);	
0000f0  4b11              LDR      r3,|L11.312|
0000f2  3340              ADDS     r3,r3,#0x40
0000f4  681b              LDR      r3,[r3,#0]
0000f6  14c4              ASRS     r4,r0,#19
0000f8  43a3              BICS     r3,r3,r4
0000fa  4c0f              LDR      r4,|L11.312|
0000fc  3440              ADDS     r4,r4,#0x40
0000fe  6023              STR      r3,[r4,#0]
                  |L11.256|
;;;179    		  }
;;;180    			 OP->OP2_CON = tmpreg;
000100  4b0b              LDR      r3,|L11.304|
000102  3b30              SUBS     r3,r3,#0x30
000104  63da              STR      r2,[r3,#0x3c]
;;;181    			 OP->OPX_CFG &= (uint32_t)~OP_CFG_OPCMPIM2;
000106  4b0a              LDR      r3,|L11.304|
000108  3310              ADDS     r3,r3,#0x10
00010a  681b              LDR      r3,[r3,#0]
00010c  2430              MOVS     r4,#0x30
00010e  43a3              BICS     r3,r3,r4
000110  4c07              LDR      r4,|L11.304|
000112  3410              ADDS     r4,r4,#0x10
000114  6023              STR      r3,[r4,#0]
;;;182           OP->OPX_CFG |= (uint32_t)(OP_InitStruct->OP_CMPIM2 << OP_CFG_OPCMPIM2_Pos)|(uint32_t)(OP_InitStruct->OP_REFSEL << OP_CFG_REFSEL_Pos);
000116  784b              LDRB     r3,[r1,#1]
000118  011b              LSLS     r3,r3,#4
00011a  780c              LDRB     r4,[r1,#0]
00011c  01e4              LSLS     r4,r4,#7
00011e  4323              ORRS     r3,r3,r4
000120  4c03              LDR      r4,|L11.304|
000122  3410              ADDS     r4,r4,#0x10
000124  6824              LDR      r4,[r4,#0]
000126  4323              ORRS     r3,r3,r4
000128  4c01              LDR      r4,|L11.304|
00012a  3410              ADDS     r4,r4,#0x10
00012c  6023              STR      r3,[r4,#0]
                  |L11.302|
;;;183    		}
;;;184    #endif
;;;185    }
00012e  bd10              POP      {r4,pc}
;;;186    
                          ENDP

                  |L11.304|
                          DCD      0x400221b0
                  |L11.308|
                          DCD      0xbfff0cc2
                  |L11.312|
                          DCD      0x40011100

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

                  OP_InputSelection PROC
;;;688     */
;;;689    void OP_InputSelection(OP_TypeDef* OPx,OP_InvertInput_TypeDef OPInvertInput)
000000  4a32              LDR      r2,|L12.204|
;;;690    {
;;;691    
;;;692      /* Check the parameters */
;;;693        assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;694    		if(OPx==OP_0)
000002  4290              CMP      r0,r2
000004  d120              BNE      |L12.72|
;;;695    		{
;;;696    			if(OPInvertInput==OP_InvertInput_OPxN ||OPInvertInput==OP_InvertInput_Res )
000006  2900              CMP      r1,#0
000008  d001              BEQ      |L12.14|
00000a  290c              CMP      r1,#0xc
00000c  d15d              BNE      |L12.202|
                  |L12.14|
;;;697    			{
;;;698    				if(OPInvertInput==OP_InvertInput_Res )
00000e  290c              CMP      r1,#0xc
000010  d10d              BNE      |L12.46|
;;;699    				{
;;;700    						GPIOB->PXCON &= (uint32_t)(~0x0002);
000012  4a2f              LDR      r2,|L12.208|
000014  6a12              LDR      r2,[r2,#0x20]
000016  2302              MOVS     r3,#2
000018  439a              BICS     r2,r2,r3
00001a  4b2d              LDR      r3,|L12.208|
00001c  621a              STR      r2,[r3,#0x20]
;;;701    						GPIOB->PXPH &= (uint32_t)(~0x0002);	
00001e  4a2c              LDR      r2,|L12.208|
000020  3240              ADDS     r2,r2,#0x40
000022  6812              LDR      r2,[r2,#0]
000024  2302              MOVS     r3,#2
000026  439a              BICS     r2,r2,r3
000028  4b29              LDR      r3,|L12.208|
00002a  3340              ADDS     r3,r3,#0x40
00002c  601a              STR      r2,[r3,#0]
                  |L12.46|
;;;702    				}				
;;;703    				OP->OP0_CON &= ~OP_CON_OPNSEL;
00002e  4a27              LDR      r2,|L12.204|
000030  3a30              SUBS     r2,r2,#0x30
000032  6b12              LDR      r2,[r2,#0x30]
000034  230c              MOVS     r3,#0xc
000036  439a              BICS     r2,r2,r3
000038  4b24              LDR      r3,|L12.204|
00003a  3b30              SUBS     r3,r3,#0x30
00003c  631a              STR      r2,[r3,#0x30]
;;;704    				OP->OP0_CON |= OPInvertInput;
00003e  461a              MOV      r2,r3
000040  6b12              LDR      r2,[r2,#0x30]
000042  430a              ORRS     r2,r2,r1
000044  631a              STR      r2,[r3,#0x30]
000046  e040              B        |L12.202|
                  |L12.72|
;;;705    			}
;;;706    		}
;;;707    		else if(OPx==OP_1)
000048  4a20              LDR      r2,|L12.204|
00004a  1c52              ADDS     r2,r2,#1
00004c  4290              CMP      r0,r2
00004e  d11c              BNE      |L12.138|
;;;708    		{
;;;709    		    if(OPInvertInput==OP_InvertInput_Res )
000050  290c              CMP      r1,#0xc
000052  d10d              BNE      |L12.112|
;;;710    				{
;;;711    				    GPIOB->PXCON &= (uint32_t)(~0x0010);
000054  4a1e              LDR      r2,|L12.208|
000056  6a12              LDR      r2,[r2,#0x20]
000058  2310              MOVS     r3,#0x10
00005a  439a              BICS     r2,r2,r3
00005c  4b1c              LDR      r3,|L12.208|
00005e  621a              STR      r2,[r3,#0x20]
;;;712    	        	GPIOB->PXPH &= (uint32_t)(~0x0010);	
000060  4a1b              LDR      r2,|L12.208|
000062  3240              ADDS     r2,r2,#0x40
000064  6812              LDR      r2,[r2,#0]
000066  2310              MOVS     r3,#0x10
000068  439a              BICS     r2,r2,r3
00006a  4b19              LDR      r3,|L12.208|
00006c  3340              ADDS     r3,r3,#0x40
00006e  601a              STR      r2,[r3,#0]
                  |L12.112|
;;;713    				}	
;;;714    				OP->OP1_CON &= ~OP_CON_OPNSEL;
000070  4a16              LDR      r2,|L12.204|
000072  3a30              SUBS     r2,r2,#0x30
000074  6b52              LDR      r2,[r2,#0x34]
000076  230c              MOVS     r3,#0xc
000078  439a              BICS     r2,r2,r3
00007a  4b14              LDR      r3,|L12.204|
00007c  3b30              SUBS     r3,r3,#0x30
00007e  635a              STR      r2,[r3,#0x34]
;;;715    				OP->OP1_CON |=  OPInvertInput;
000080  461a              MOV      r2,r3
000082  6b52              LDR      r2,[r2,#0x34]
000084  430a              ORRS     r2,r2,r1
000086  635a              STR      r2,[r3,#0x34]
000088  e01f              B        |L12.202|
                  |L12.138|
;;;716    		}
;;;717    		else if(OPx==OP_2)
00008a  4a10              LDR      r2,|L12.204|
00008c  1c92              ADDS     r2,r2,#2
00008e  4290              CMP      r0,r2
000090  d11b              BNE      |L12.202|
;;;718    		{
;;;719    				if(OPInvertInput==OP_InvertInput_Res )
000092  290c              CMP      r1,#0xc
000094  d10d              BNE      |L12.178|
;;;720    				{
;;;721    					  GPIOB->PXCON &= (uint32_t)(~0x0800);
000096  4a0e              LDR      r2,|L12.208|
000098  6a12              LDR      r2,[r2,#0x20]
00009a  14c3              ASRS     r3,r0,#19
00009c  439a              BICS     r2,r2,r3
00009e  4b0c              LDR      r3,|L12.208|
0000a0  621a              STR      r2,[r3,#0x20]
;;;722    	        	GPIOB->PXPH &= (uint32_t)(~0x0800);	
0000a2  4a0b              LDR      r2,|L12.208|
0000a4  3240              ADDS     r2,r2,#0x40
0000a6  6812              LDR      r2,[r2,#0]
0000a8  14c3              ASRS     r3,r0,#19
0000aa  439a              BICS     r2,r2,r3
0000ac  4b08              LDR      r3,|L12.208|
0000ae  3340              ADDS     r3,r3,#0x40
0000b0  601a              STR      r2,[r3,#0]
                  |L12.178|
;;;723    				}	
;;;724    				OP->OP2_CON &= ~OP_CON_OPNSEL;
0000b2  4a06              LDR      r2,|L12.204|
0000b4  3a30              SUBS     r2,r2,#0x30
0000b6  6bd2              LDR      r2,[r2,#0x3c]
0000b8  230c              MOVS     r3,#0xc
0000ba  439a              BICS     r2,r2,r3
0000bc  4b03              LDR      r3,|L12.204|
0000be  3b30              SUBS     r3,r3,#0x30
0000c0  63da              STR      r2,[r3,#0x3c]
;;;725    				OP->OP2_CON |= OPInvertInput;
0000c2  461a              MOV      r2,r3
0000c4  6bd2              LDR      r2,[r2,#0x3c]
0000c6  430a              ORRS     r2,r2,r1
0000c8  63da              STR      r2,[r3,#0x3c]
                  |L12.202|
;;;726    		}
;;;727     
;;;728    }
0000ca  4770              BX       lr
;;;729    /**
                          ENDP

                  |L12.204|
                          DCD      0x400221b0
                  |L12.208|
                          DCD      0x40011100

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

                  OP_InverInputVoltage PROC
;;;651      */
;;;652    void OP_InverInputVoltage(OP_TypeDef* OPx, OP_OPRF_TypeDef OP_OPRF)
000000  4a1a              LDR      r2,|L13.108|
;;;653    {
;;;654      /* Check the parameters */
;;;655      assert_param(IS_OP_ALL_PERIPH(OPx));  
;;;656      assert_param(IS_OP_FAILINGCAP(OP_OPRF));
;;;657    
;;;658       if(OPx==OP_0)
000002  4290              CMP      r0,r2
000004  d10d              BNE      |L13.34|
;;;659    	{
;;;660    		OP->OP0_CON &= ~OP_CON_OPRF;
000006  4a19              LDR      r2,|L13.108|
000008  3a30              SUBS     r2,r2,#0x30
00000a  6b12              LDR      r2,[r2,#0x30]
00000c  230f              MOVS     r3,#0xf
00000e  031b              LSLS     r3,r3,#12
000010  439a              BICS     r2,r2,r3
000012  4b16              LDR      r3,|L13.108|
000014  3b30              SUBS     r3,r3,#0x30
000016  631a              STR      r2,[r3,#0x30]
;;;661    		OP->OP0_CON |= OP_OPRF;
000018  461a              MOV      r2,r3
00001a  6b12              LDR      r2,[r2,#0x30]
00001c  430a              ORRS     r2,r2,r1
00001e  631a              STR      r2,[r3,#0x30]
000020  e022              B        |L13.104|
                  |L13.34|
;;;662    	}
;;;663    	else if(OPx==OP_1)
000022  4a12              LDR      r2,|L13.108|
000024  1c52              ADDS     r2,r2,#1
000026  4290              CMP      r0,r2
000028  d10d              BNE      |L13.70|
;;;664    	{
;;;665    		OP->OP1_CON &= ~OP_CON_OPRF;
00002a  4a10              LDR      r2,|L13.108|
00002c  3a30              SUBS     r2,r2,#0x30
00002e  6b52              LDR      r2,[r2,#0x34]
000030  230f              MOVS     r3,#0xf
000032  031b              LSLS     r3,r3,#12
000034  439a              BICS     r2,r2,r3
000036  4b0d              LDR      r3,|L13.108|
000038  3b30              SUBS     r3,r3,#0x30
00003a  635a              STR      r2,[r3,#0x34]
;;;666    		OP->OP1_CON |=  OP_OPRF;
00003c  461a              MOV      r2,r3
00003e  6b52              LDR      r2,[r2,#0x34]
000040  430a              ORRS     r2,r2,r1
000042  635a              STR      r2,[r3,#0x34]
000044  e010              B        |L13.104|
                  |L13.70|
;;;667    	}
;;;668    	else if(OPx==OP_2)
000046  4a09              LDR      r2,|L13.108|
000048  1c92              ADDS     r2,r2,#2
00004a  4290              CMP      r0,r2
00004c  d10c              BNE      |L13.104|
;;;669    	{
;;;670    		OP->OP2_CON &= ~OP_CON_OPRF;
00004e  4a07              LDR      r2,|L13.108|
000050  3a30              SUBS     r2,r2,#0x30
000052  6bd2              LDR      r2,[r2,#0x3c]
000054  230f              MOVS     r3,#0xf
000056  031b              LSLS     r3,r3,#12
000058  439a              BICS     r2,r2,r3
00005a  4b04              LDR      r3,|L13.108|
00005c  3b30              SUBS     r3,r3,#0x30
00005e  63da              STR      r2,[r3,#0x3c]
;;;671    		OP->OP2_CON |= OP_OPRF;
000060  461a              MOV      r2,r3
000062  6bd2              LDR      r2,[r2,#0x3c]
000064  430a              ORRS     r2,r2,r1
000066  63da              STR      r2,[r3,#0x3c]
                  |L13.104|
;;;672    	}  
;;;673    
;;;674    }
000068  4770              BX       lr
;;;675    
                          ENDP

00006a  0000              DCW      0x0000
                  |L13.108|
                          DCD      0x400221b0

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

                  OP_NonInvertInputSelection PROC
;;;604      */
;;;605    void OP_NonInvertInputSelection(OP_TypeDef* OPx, OP_NonInvertInput_TypeDef OPNonInvertInput)
000000  4a18              LDR      r2,|L14.100|
;;;606    {
;;;607      /* Check the parameters */
;;;608      assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;609      assert_param(IS_OP_NonInvertInput(OPNonInvertInput));
;;;610    
;;;611      if(OPx==OP_0)
000002  4290              CMP      r0,r2
000004  d10c              BNE      |L14.32|
;;;612    	{
;;;613    		OP->OP0_CON &= ~OP_CON_OPPSEL;
000006  4a17              LDR      r2,|L14.100|
000008  3a30              SUBS     r2,r2,#0x30
00000a  6b12              LDR      r2,[r2,#0x30]
00000c  2330              MOVS     r3,#0x30
00000e  439a              BICS     r2,r2,r3
000010  4b14              LDR      r3,|L14.100|
000012  3b30              SUBS     r3,r3,#0x30
000014  631a              STR      r2,[r3,#0x30]
;;;614    		OP->OP0_CON |= OPNonInvertInput;
000016  461a              MOV      r2,r3
000018  6b12              LDR      r2,[r2,#0x30]
00001a  430a              ORRS     r2,r2,r1
00001c  631a              STR      r2,[r3,#0x30]
00001e  e020              B        |L14.98|
                  |L14.32|
;;;615    	}
;;;616    	else if(OPx==OP_1)
000020  4a10              LDR      r2,|L14.100|
000022  1c52              ADDS     r2,r2,#1
000024  4290              CMP      r0,r2
000026  d10c              BNE      |L14.66|
;;;617    	{
;;;618    		OP->OP1_CON &= ~OP_CON_OPPSEL;
000028  4a0e              LDR      r2,|L14.100|
00002a  3a30              SUBS     r2,r2,#0x30
00002c  6b52              LDR      r2,[r2,#0x34]
00002e  2330              MOVS     r3,#0x30
000030  439a              BICS     r2,r2,r3
000032  4b0c              LDR      r3,|L14.100|
000034  3b30              SUBS     r3,r3,#0x30
000036  635a              STR      r2,[r3,#0x34]
;;;619    		OP->OP1_CON |=  OPNonInvertInput;
000038  461a              MOV      r2,r3
00003a  6b52              LDR      r2,[r2,#0x34]
00003c  430a              ORRS     r2,r2,r1
00003e  635a              STR      r2,[r3,#0x34]
000040  e00f              B        |L14.98|
                  |L14.66|
;;;620    	}
;;;621    	else if(OPx==OP_2)
000042  4a08              LDR      r2,|L14.100|
000044  1c92              ADDS     r2,r2,#2
000046  4290              CMP      r0,r2
000048  d10b              BNE      |L14.98|
;;;622    	{
;;;623    	  OP->OP2_CON &= ~OP_CON_OPPSEL;
00004a  4a06              LDR      r2,|L14.100|
00004c  3a30              SUBS     r2,r2,#0x30
00004e  6bd2              LDR      r2,[r2,#0x3c]
000050  2330              MOVS     r3,#0x30
000052  439a              BICS     r2,r2,r3
000054  4b03              LDR      r3,|L14.100|
000056  3b30              SUBS     r3,r3,#0x30
000058  63da              STR      r2,[r3,#0x3c]
;;;624    		OP->OP2_CON |= OPNonInvertInput;
00005a  461a              MOV      r2,r3
00005c  6bd2              LDR      r2,[r2,#0x3c]
00005e  430a              ORRS     r2,r2,r1
000060  63da              STR      r2,[r3,#0x3c]
                  |L14.98|
;;;625    	}  
;;;626    
;;;627    }
000062  4770              BX       lr
;;;628    /**
                          ENDP

                  |L14.100|
                          DCD      0x400221b0

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

                  OP_OffsetTrimConfig PROC
;;;382      */
;;;383    void OP_OffsetTrimConfig ( OP_TypeDef* OPx,  uint32_t OP_TrimValueH, uint32_t OP_TrimValueL )
000000  b530              PUSH     {r4,r5,lr}
;;;384    {
000002  4603              MOV      r3,r0
;;;385    #if defined(SC32f12xx)
;;;386        uint32_t tmpreg = 0;
;;;387    
;;;388        /* Check the parameters */
;;;389        assert_param ( IS_OP_ALL_PERIPH ( OPx ) );
;;;390    
;;;391    
;;;392        /*!< Get the OPAMPx_CSR register value */
;;;393        tmpreg = OPx->OP_CON;
;;;394    
;;;395        /*!< Clear the trimming bits */
;;;396        tmpreg &= ( uint32_t ) ~ ( ( OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN ) );
;;;397    
;;;398        /*!< Configure the new trimming value */
;;;399        tmpreg |= ( uint32_t ) ( ( OP_TrimValueL << OP_CON_TRIMOFFSETP_Pos ) | ( OP_TrimValueH << OP_CON_TRIMOFFSETN_Pos ) );
;;;400    
;;;401        /*!< Write to OPAMPx_CSR register */
;;;402        OPx->OP_CON = tmpreg;
;;;403    #elif defined (SC32f15xx)
;;;404      uint32_t tmpreg = 0;
000004  2000              MOVS     r0,#0
;;;405    
;;;406      /* Check the parameters */
;;;407      assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;408    	if(OPx==OP_0)
000006  4c19              LDR      r4,|L15.108|
000008  42a3              CMP      r3,r4
00000a  d10c              BNE      |L15.38|
;;;409    	{
;;;410      tmpreg = OP->OP0_CON;
00000c  4c17              LDR      r4,|L15.108|
00000e  3c30              SUBS     r4,r4,#0x30
000010  6b20              LDR      r0,[r4,#0x30]
;;;411    
;;;412      /*!< Clear the trimming bits */
;;;413      tmpreg &= (uint32_t)~((OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN));
000012  4c17              LDR      r4,|L15.112|
000014  4020              ANDS     r0,r0,r4
;;;414    
;;;415      /*!< Configure the new trimming value */
;;;416      tmpreg |= (uint32_t)((OP_TrimValueL<<OP_CON_TRIMOFFSETP_Pos)|(OP_TrimValueH<<OP_CON_TRIMOFFSETN_Pos));
000016  0414              LSLS     r4,r2,#16
000018  060d              LSLS     r5,r1,#24
00001a  432c              ORRS     r4,r4,r5
00001c  4320              ORRS     r0,r0,r4
;;;417    
;;;418      /*!< Write to OPAMPx_CSR register */
;;;419      OP->OP0_CON = tmpreg;
00001e  4c13              LDR      r4,|L15.108|
000020  3c30              SUBS     r4,r4,#0x30
000022  6320              STR      r0,[r4,#0x30]
000024  e020              B        |L15.104|
                  |L15.38|
;;;420    	}
;;;421    	else if(OPx==OP_1)
000026  4c11              LDR      r4,|L15.108|
000028  1c64              ADDS     r4,r4,#1
00002a  42a3              CMP      r3,r4
00002c  d10c              BNE      |L15.72|
;;;422    	{
;;;423      tmpreg = OP->OP1_CON;
00002e  4c0f              LDR      r4,|L15.108|
000030  3c30              SUBS     r4,r4,#0x30
000032  6b60              LDR      r0,[r4,#0x34]
;;;424    
;;;425      /*!< Clear the trimming bits */
;;;426      tmpreg &= (uint32_t)~((OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN));
000034  4c0e              LDR      r4,|L15.112|
000036  4020              ANDS     r0,r0,r4
;;;427    
;;;428      /*!< Configure the new trimming value */
;;;429      tmpreg |= (uint32_t)((OP_TrimValueL<<OP_CON_TRIMOFFSETP_Pos)|(OP_TrimValueH<<OP_CON_TRIMOFFSETN_Pos));
000038  0414              LSLS     r4,r2,#16
00003a  060d              LSLS     r5,r1,#24
00003c  432c              ORRS     r4,r4,r5
00003e  4320              ORRS     r0,r0,r4
;;;430    
;;;431      /*!< Write to OPAMPx_CSR register */
;;;432      OP->OP1_CON = tmpreg;
000040  4c0a              LDR      r4,|L15.108|
000042  3c30              SUBS     r4,r4,#0x30
000044  6360              STR      r0,[r4,#0x34]
000046  e00f              B        |L15.104|
                  |L15.72|
;;;433    	}
;;;434    	else if(OPx==OP_2)
000048  4c08              LDR      r4,|L15.108|
00004a  1ca4              ADDS     r4,r4,#2
00004c  42a3              CMP      r3,r4
00004e  d10b              BNE      |L15.104|
;;;435    	{
;;;436      tmpreg = OP->OP2_CON;
000050  4c06              LDR      r4,|L15.108|
000052  3c30              SUBS     r4,r4,#0x30
000054  6be0              LDR      r0,[r4,#0x3c]
;;;437    
;;;438      /*!< Clear the trimming bits */
;;;439      tmpreg &= (uint32_t)~((OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN));
000056  4c06              LDR      r4,|L15.112|
000058  4020              ANDS     r0,r0,r4
;;;440    
;;;441      /*!< Configure the new trimming value */
;;;442      tmpreg |= (uint32_t)((OP_TrimValueL<<OP_CON_TRIMOFFSETP_Pos)|(OP_TrimValueH<<OP_CON_TRIMOFFSETN_Pos));
00005a  0414              LSLS     r4,r2,#16
00005c  060d              LSLS     r5,r1,#24
00005e  432c              ORRS     r4,r4,r5
000060  4320              ORRS     r0,r0,r4
;;;443    
;;;444      /*!< Write to OPAMPx_CSR register */
;;;445      OP->OP2_CON = tmpreg;
000062  4c02              LDR      r4,|L15.108|
000064  3c30              SUBS     r4,r4,#0x30
000066  63e0              STR      r0,[r4,#0x3c]
                  |L15.104|
;;;446    	}
;;;447    
;;;448      /*!< Get the OPAMPx_CSR register value */
;;;449    #endif
;;;450    }
000068  bd30              POP      {r4,r5,pc}
;;;451    
                          ENDP

00006a  0000              DCW      0x0000
                  |L15.108|
                          DCD      0x400221b0
                  |L15.112|
                          DCD      0xe0e0ffff

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

                  OP_OffsetZero PROC
;;;940     */
;;;941    void OP_OffsetZero(OP_TypeDef* OPx)
000000  b5fc              PUSH     {r2-r7,lr}
;;;942    {
000002  4601              MOV      r1,r0
;;;943        uint8_t OP_Pmos_offset = 0, OP_Nmos_offset = 0, OPx_Readoffset0 = 0, OPx_Readoffset2 = 0;
000004  2200              MOVS     r2,#0
000006  2300              MOVS     r3,#0
000008  2400              MOVS     r4,#0
00000a  2600              MOVS     r6,#0
00000c  9601              STR      r6,[sp,#4]
;;;944        uint32_t tmpreg = 0;
00000e  2000              MOVS     r0,#0
;;;945        uint16_t OPx_offsetchecksum0 = 0, OPx_offsetchecksum1 = 0;
000010  2500              MOVS     r5,#0
000012  9600              STR      r6,[sp,#0]
;;;946    
;;;947        if(OPx == OP_0)
000014  4e48              LDR      r6,|L16.312|
000016  42b1              CMP      r1,r6
000018  d12c              BNE      |L16.116|
;;;948        {
;;;949            OP_Pmos_offset = *((uint8_t*)0X08C00000 + 0x491);
00001a  4e48              LDR      r6,|L16.316|
00001c  7c72              LDRB     r2,[r6,#0x11]
;;;950            OP_Nmos_offset = *((uint8_t*)0X08C00000 + 0x493);
00001e  7cf3              LDRB     r3,[r6,#0x13]
;;;951    				
;;;952    				OPx_Readoffset0 = *((uint8_t*)0X08C00000 + 0x490);
000020  7c34              LDRB     r4,[r6,#0x10]
;;;953    				OPx_Readoffset2 = *((uint8_t*)0X08C00000 + 0x492);
000022  7cb6              LDRB     r6,[r6,#0x12]
000024  9601              STR      r6,[sp,#4]
;;;954    				OPx_offsetchecksum0 = (*((uint8_t *)0X08C00000+0x490))+(*((uint8_t *)0X08C00000+0x491))+(*((uint8_t *)0X08C00000+0x492))+(*((uint8_t *)0X08C00000+0x493));
000026  4e45              LDR      r6,|L16.316|
000028  7c36              LDRB     r6,[r6,#0x10]
00002a  4f44              LDR      r7,|L16.316|
00002c  7c7f              LDRB     r7,[r7,#0x11]
00002e  19f6              ADDS     r6,r6,r7
000030  4f42              LDR      r7,|L16.316|
000032  7cbf              LDRB     r7,[r7,#0x12]
000034  19f6              ADDS     r6,r6,r7
000036  4f41              LDR      r7,|L16.316|
000038  7cff              LDRB     r7,[r7,#0x13]
00003a  19f5              ADDS     r5,r6,r7
;;;955    				OPx_offsetchecksum1 = (uint16_t)((*((uint8_t *)0X08C00000+0x49E))<<8)|(*((uint8_t *)0X08C00000+0x49F));
00003c  4e3f              LDR      r6,|L16.316|
00003e  7fb6              LDRB     r6,[r6,#0x1e]
000040  0236              LSLS     r6,r6,#8
000042  4f3e              LDR      r7,|L16.316|
000044  7fff              LDRB     r7,[r7,#0x1f]
000046  433e              ORRS     r6,r6,r7
000048  9600              STR      r6,[sp,#0]
;;;956    				if((OPx_Readoffset0 == 0x50) && (OPx_Readoffset2 == 0x51) && (OPx_offsetchecksum0 == OPx_offsetchecksum1))
00004a  2c50              CMP      r4,#0x50
00004c  d173              BNE      |L16.310|
00004e  9e01              LDR      r6,[sp,#4]
000050  2e51              CMP      r6,#0x51
000052  d170              BNE      |L16.310|
000054  9e00              LDR      r6,[sp,#0]
000056  42b5              CMP      r5,r6
000058  d16d              BNE      |L16.310|
;;;957    				{
;;;958    
;;;959    						tmpreg = OP->OP0_CON;
00005a  4e37              LDR      r6,|L16.312|
00005c  3e30              SUBS     r6,r6,#0x30
00005e  6b30              LDR      r0,[r6,#0x30]
;;;960    
;;;961    						/*!< Clear the trimming bits */
;;;962    						tmpreg &= (uint32_t)~((OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN));
000060  4e37              LDR      r6,|L16.320|
000062  4030              ANDS     r0,r0,r6
;;;963    
;;;964    						/*!< Configure the new trimming value */
;;;965    						tmpreg |= (uint32_t)((OP_Nmos_offset << OP_CON_TRIMOFFSETN_Pos) | (OP_Pmos_offset <<OP_CON_TRIMOFFSETP_Pos ));
000064  061e              LSLS     r6,r3,#24
000066  0417              LSLS     r7,r2,#16
000068  433e              ORRS     r6,r6,r7
00006a  4330              ORRS     r0,r0,r6
;;;966    
;;;967    						/*!< Write to OPAMPx_CSR register */
;;;968    						OP->OP0_CON = tmpreg;
00006c  4e32              LDR      r6,|L16.312|
00006e  3e30              SUBS     r6,r6,#0x30
000070  6330              STR      r0,[r6,#0x30]
000072  e060              B        |L16.310|
                  |L16.116|
;;;969    				}
;;;970        }
;;;971        else if(OPx == OP_1)
000074  4e30              LDR      r6,|L16.312|
000076  1c76              ADDS     r6,r6,#1
000078  42b1              CMP      r1,r6
00007a  d12c              BNE      |L16.214|
;;;972        {
;;;973            OP_Pmos_offset = *((uint8_t*)0X08C00000 + 0x495);
00007c  4e2f              LDR      r6,|L16.316|
00007e  7d72              LDRB     r2,[r6,#0x15]
;;;974            OP_Nmos_offset = *((uint8_t*)0X08C00000 + 0x497);
000080  7df3              LDRB     r3,[r6,#0x17]
;;;975    				
;;;976    				OPx_Readoffset0 = *((uint8_t*)0X08C00000 + 0x494);
000082  7d34              LDRB     r4,[r6,#0x14]
;;;977    				OPx_Readoffset2 = *((uint8_t*)0X08C00000 + 0x496);
000084  7db6              LDRB     r6,[r6,#0x16]
000086  9601              STR      r6,[sp,#4]
;;;978    				OPx_offsetchecksum0 = (*((uint8_t *)0X08C00000+0x494))+(*((uint8_t *)0X08C00000+0x495))+(*((uint8_t *)0X08C00000+0x496))+(*((uint8_t *)0X08C00000+0x497));
000088  4e2c              LDR      r6,|L16.316|
00008a  7d36              LDRB     r6,[r6,#0x14]
00008c  4f2b              LDR      r7,|L16.316|
00008e  7d7f              LDRB     r7,[r7,#0x15]
000090  19f6              ADDS     r6,r6,r7
000092  4f2a              LDR      r7,|L16.316|
000094  7dbf              LDRB     r7,[r7,#0x16]
000096  19f6              ADDS     r6,r6,r7
000098  4f28              LDR      r7,|L16.316|
00009a  7dff              LDRB     r7,[r7,#0x17]
00009c  19f5              ADDS     r5,r6,r7
;;;979    				OPx_offsetchecksum1 = (uint16_t)((*((uint8_t *)0X08C00000+0x49E))<<8)|(*((uint8_t *)0X08C00000+0x49F));
00009e  4e27              LDR      r6,|L16.316|
0000a0  7fb6              LDRB     r6,[r6,#0x1e]
0000a2  0236              LSLS     r6,r6,#8
0000a4  4f25              LDR      r7,|L16.316|
0000a6  7fff              LDRB     r7,[r7,#0x1f]
0000a8  433e              ORRS     r6,r6,r7
0000aa  9600              STR      r6,[sp,#0]
;;;980    				if((OPx_Readoffset0 == 0x52) && (OPx_Readoffset2 == 0x53) && (OPx_offsetchecksum0 == OPx_offsetchecksum1))
0000ac  2c52              CMP      r4,#0x52
0000ae  d142              BNE      |L16.310|
0000b0  9e01              LDR      r6,[sp,#4]
0000b2  2e53              CMP      r6,#0x53
0000b4  d13f              BNE      |L16.310|
0000b6  9e00              LDR      r6,[sp,#0]
0000b8  42b5              CMP      r5,r6
0000ba  d13c              BNE      |L16.310|
;;;981    				{
;;;982    
;;;983    						tmpreg = OP->OP1_CON;
0000bc  4e1e              LDR      r6,|L16.312|
0000be  3e30              SUBS     r6,r6,#0x30
0000c0  6b70              LDR      r0,[r6,#0x34]
;;;984    
;;;985    						/*!< Clear the trimming bits */
;;;986    						tmpreg &= (uint32_t)~((OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN));
0000c2  4e1f              LDR      r6,|L16.320|
0000c4  4030              ANDS     r0,r0,r6
;;;987    
;;;988    						/*!< Configure the new trimming value */
;;;989    						tmpreg |= (uint32_t)((OP_Nmos_offset <<OP_CON_TRIMOFFSETN_Pos ) | (OP_Pmos_offset << OP_CON_TRIMOFFSETP_Pos));
0000c6  061e              LSLS     r6,r3,#24
0000c8  0417              LSLS     r7,r2,#16
0000ca  433e              ORRS     r6,r6,r7
0000cc  4330              ORRS     r0,r0,r6
;;;990    
;;;991    						/*!< Write to OPAMPx_CSR register */
;;;992    						OP->OP1_CON = tmpreg;
0000ce  4e1a              LDR      r6,|L16.312|
0000d0  3e30              SUBS     r6,r6,#0x30
0000d2  6370              STR      r0,[r6,#0x34]
0000d4  e02f              B        |L16.310|
                  |L16.214|
;;;993    				}
;;;994        }
;;;995        else if(OPx == OP_2)
0000d6  4e18              LDR      r6,|L16.312|
0000d8  1cb6              ADDS     r6,r6,#2
0000da  42b1              CMP      r1,r6
0000dc  d12b              BNE      |L16.310|
;;;996        {
;;;997            OP_Pmos_offset = *((uint8_t*)0X08C00000 + 0x499);
0000de  4e17              LDR      r6,|L16.316|
0000e0  7e72              LDRB     r2,[r6,#0x19]
;;;998            OP_Nmos_offset = *((uint8_t*)0X08C00000 + 0x49B);
0000e2  7ef3              LDRB     r3,[r6,#0x1b]
;;;999    				
;;;1000   				OPx_Readoffset0 = *((uint8_t*)0X08C00000 + 0x498);
0000e4  7e34              LDRB     r4,[r6,#0x18]
;;;1001   				OPx_Readoffset2 = *((uint8_t*)0X08C00000 + 0x49A);
0000e6  7eb6              LDRB     r6,[r6,#0x1a]
0000e8  9601              STR      r6,[sp,#4]
;;;1002   				OPx_offsetchecksum0 = (*((uint8_t *)0X08C00000+0x498))+(*((uint8_t *)0X08C00000+0x499))+(*((uint8_t *)0X08C00000+0x49A))+(*((uint8_t *)0X08C00000+0x49B));
0000ea  4e14              LDR      r6,|L16.316|
0000ec  7e36              LDRB     r6,[r6,#0x18]
0000ee  4f13              LDR      r7,|L16.316|
0000f0  7e7f              LDRB     r7,[r7,#0x19]
0000f2  19f6              ADDS     r6,r6,r7
0000f4  4f11              LDR      r7,|L16.316|
0000f6  7ebf              LDRB     r7,[r7,#0x1a]
0000f8  19f6              ADDS     r6,r6,r7
0000fa  4f10              LDR      r7,|L16.316|
0000fc  7eff              LDRB     r7,[r7,#0x1b]
0000fe  19f5              ADDS     r5,r6,r7
;;;1003   				OPx_offsetchecksum1 = (uint16_t)((*((uint8_t *)0X08C00000+0x49E))<<8)|(*((uint8_t *)0X08C00000+0x49F));
000100  4e0e              LDR      r6,|L16.316|
000102  7fb6              LDRB     r6,[r6,#0x1e]
000104  0236              LSLS     r6,r6,#8
000106  4f0d              LDR      r7,|L16.316|
000108  7fff              LDRB     r7,[r7,#0x1f]
00010a  433e              ORRS     r6,r6,r7
00010c  9600              STR      r6,[sp,#0]
;;;1004   				if((OPx_Readoffset0 == 0x54) && (OPx_Readoffset2 == 0x55) && (OPx_offsetchecksum0 == OPx_offsetchecksum1))
00010e  2c54              CMP      r4,#0x54
000110  d111              BNE      |L16.310|
000112  9e01              LDR      r6,[sp,#4]
000114  2e55              CMP      r6,#0x55
000116  d10e              BNE      |L16.310|
000118  9e00              LDR      r6,[sp,#0]
00011a  42b5              CMP      r5,r6
00011c  d10b              BNE      |L16.310|
;;;1005   				{
;;;1006   
;;;1007   						tmpreg = OP->OP2_CON;
00011e  4e06              LDR      r6,|L16.312|
000120  3e30              SUBS     r6,r6,#0x30
000122  6bf0              LDR      r0,[r6,#0x3c]
;;;1008   
;;;1009   						/*!< Clear the trimming bits */
;;;1010   						tmpreg &= (uint32_t)~((OP_CON_TRIMOFFSETP | OP_CON_TRIMOFFSETN));
000124  4e06              LDR      r6,|L16.320|
000126  4030              ANDS     r0,r0,r6
;;;1011   
;;;1012   						/*!< Configure the new trimming value */
;;;1013   						tmpreg |= (uint32_t)((OP_Nmos_offset <<OP_CON_TRIMOFFSETN_Pos ) | (OP_Pmos_offset << OP_CON_TRIMOFFSETP_Pos));
000128  061e              LSLS     r6,r3,#24
00012a  0417              LSLS     r7,r2,#16
00012c  433e              ORRS     r6,r6,r7
00012e  4330              ORRS     r0,r0,r6
;;;1014   
;;;1015   						/*!< Write to OPAMPx_CSR register */
;;;1016   						OP->OP2_CON = tmpreg;
000130  4e01              LDR      r6,|L16.312|
000132  3e30              SUBS     r6,r6,#0x30
000134  63f0              STR      r0,[r6,#0x3c]
                  |L16.310|
;;;1017   				}
;;;1018       }
;;;1019   }
000136  bdfc              POP      {r2-r7,pc}
;;;1020   
                          ENDP

                  |L16.312|
                          DCD      0x400221b0
                  |L16.316|
                          DCD      0x08c00480
                  |L16.320|
                          DCD      0xe0e0ffff

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

                  OP_OutputSelection PROC
;;;521      */
;;;522    void OP_OutputSelection ( OP_TypeDef* OPx, OP_Output_TypeDef OPOutput )
000000  4a18              LDR      r2,|L17.100|
;;;523    {
;;;524    #if defined(SC32f12xx)
;;;525        /* Check the parameters */
;;;526        assert_param ( IS_OP_ALL_PERIPH ( OPx ) );
;;;527        assert_param ( IS_OP_Output ( OPOutput ) );
;;;528    
;;;529    
;;;530        OPx->OP_CON &= ~ ( OP_CON_OPOSEL );
;;;531        OPx->OP_CON |= OPOutput;
;;;532    #elif defined (SC32f15xx)
;;;533      /* Check the parameters */
;;;534      assert_param(IS_OP_ALL_PERIPH(OPx));
;;;535      assert_param( IS_OP_OUTPUTPIN(OPOutput) );
;;;536    
;;;537      if(OPx==OP_0)
000002  4290              CMP      r0,r2
000004  d10c              BNE      |L17.32|
;;;538    	{
;;;539    		OP->OP0_CON &= ~OP_CON_OPOSEL;
000006  4a17              LDR      r2,|L17.100|
000008  3a30              SUBS     r2,r2,#0x30
00000a  6b12              LDR      r2,[r2,#0x30]
00000c  0852              LSRS     r2,r2,#1
00000e  0052              LSLS     r2,r2,#1
000010  4b14              LDR      r3,|L17.100|
000012  3b30              SUBS     r3,r3,#0x30
000014  631a              STR      r2,[r3,#0x30]
;;;540    		OP->OP0_CON |= OPOutput;
000016  461a              MOV      r2,r3
000018  6b12              LDR      r2,[r2,#0x30]
00001a  430a              ORRS     r2,r2,r1
00001c  631a              STR      r2,[r3,#0x30]
00001e  e020              B        |L17.98|
                  |L17.32|
;;;541    	}
;;;542    	else if(OPx==OP_1)
000020  4a10              LDR      r2,|L17.100|
000022  1c52              ADDS     r2,r2,#1
000024  4290              CMP      r0,r2
000026  d10c              BNE      |L17.66|
;;;543    	{
;;;544    		OP->OP1_CON &= ~OP_CON_OPOSEL;
000028  4a0e              LDR      r2,|L17.100|
00002a  3a30              SUBS     r2,r2,#0x30
00002c  6b52              LDR      r2,[r2,#0x34]
00002e  0852              LSRS     r2,r2,#1
000030  0052              LSLS     r2,r2,#1
000032  4b0c              LDR      r3,|L17.100|
000034  3b30              SUBS     r3,r3,#0x30
000036  635a              STR      r2,[r3,#0x34]
;;;545    		OP->OP1_CON |=  OPOutput;
000038  461a              MOV      r2,r3
00003a  6b52              LDR      r2,[r2,#0x34]
00003c  430a              ORRS     r2,r2,r1
00003e  635a              STR      r2,[r3,#0x34]
000040  e00f              B        |L17.98|
                  |L17.66|
;;;546    	}
;;;547    	else if(OPx==OP_2)
000042  4a08              LDR      r2,|L17.100|
000044  1c92              ADDS     r2,r2,#2
000046  4290              CMP      r0,r2
000048  d10b              BNE      |L17.98|
;;;548    	{
;;;549    		OP->OP2_CON &= ~OP_CON_OPOSEL;
00004a  4a06              LDR      r2,|L17.100|
00004c  3a30              SUBS     r2,r2,#0x30
00004e  6bd2              LDR      r2,[r2,#0x3c]
000050  0852              LSRS     r2,r2,#1
000052  0052              LSLS     r2,r2,#1
000054  4b03              LDR      r3,|L17.100|
000056  3b30              SUBS     r3,r3,#0x30
000058  63da              STR      r2,[r3,#0x3c]
;;;550    		OP->OP2_CON |= OPOutput;
00005a  461a              MOV      r2,r3
00005c  6bd2              LDR      r2,[r2,#0x3c]
00005e  430a              ORRS     r2,r2,r1
000060  63da              STR      r2,[r3,#0x3c]
                  |L17.98|
;;;551    	}
;;;552    #endif
;;;553    }
000062  4770              BX       lr
;;;554    #if defined(SC32f12xx)
                          ENDP

                  |L17.100|
                          DCD      0x400221b0

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

                  OP_ReadOffset PROC
;;;905     */
;;;906    uint8_t OP_ReadOffset(OP_PNMos_TypeDef OPx_Readmos)
000000  4601              MOV      r1,r0
;;;907    {
;;;908    	uint8_t OPx_Readoffset = 0x00;
000002  2000              MOVS     r0,#0
;;;909    	if(OPx_Readmos == OP0_Pmos)
000004  2900              CMP      r1,#0
000006  d102              BNE      |L18.14|
;;;910    	{
;;;911    		OPx_Readoffset =  *((uint8_t *)0X08C00000+0x491);
000008  4a0d              LDR      r2,|L18.64|
00000a  7c50              LDRB     r0,[r2,#0x11]
00000c  e017              B        |L18.62|
                  |L18.14|
;;;912    	}
;;;913    	else if(OPx_Readmos == OP0_Nmos)
00000e  2901              CMP      r1,#1
000010  d102              BNE      |L18.24|
;;;914    	{
;;;915    		OPx_Readoffset = *((uint8_t *)0X08C00000+0x493);
000012  4a0b              LDR      r2,|L18.64|
000014  7cd0              LDRB     r0,[r2,#0x13]
000016  e012              B        |L18.62|
                  |L18.24|
;;;916    	}
;;;917    	else if(OPx_Readmos == OP1_Pmos)
000018  2902              CMP      r1,#2
00001a  d102              BNE      |L18.34|
;;;918    	{
;;;919    		OPx_Readoffset = *((uint8_t *)0X08C00000+0x495);
00001c  4a08              LDR      r2,|L18.64|
00001e  7d50              LDRB     r0,[r2,#0x15]
000020  e00d              B        |L18.62|
                  |L18.34|
;;;920    	}
;;;921    	else if(OPx_Readmos == OP1_Nmos)
000022  2903              CMP      r1,#3
000024  d102              BNE      |L18.44|
;;;922    	{
;;;923    		OPx_Readoffset = *((uint8_t *)0X08C00000+0x497);
000026  4a06              LDR      r2,|L18.64|
000028  7dd0              LDRB     r0,[r2,#0x17]
00002a  e008              B        |L18.62|
                  |L18.44|
;;;924    	}
;;;925    	else if(OPx_Readmos == OP2_Pmos)
00002c  2904              CMP      r1,#4
00002e  d102              BNE      |L18.54|
;;;926    	{
;;;927    		OPx_Readoffset = *((uint8_t *)0X08C00000+0x499);
000030  4a03              LDR      r2,|L18.64|
000032  7e50              LDRB     r0,[r2,#0x19]
000034  e003              B        |L18.62|
                  |L18.54|
;;;928    	}
;;;929      else if(OPx_Readmos == OP2_Nmos)
000036  2905              CMP      r1,#5
000038  d101              BNE      |L18.62|
;;;930    	{
;;;931    		OPx_Readoffset = *((uint8_t *)0X08C00000+0x49B);
00003a  4a01              LDR      r2,|L18.64|
00003c  7ed0              LDRB     r0,[r2,#0x1b]
                  |L18.62|
;;;932    	}
;;;933    
;;;934    	return OPx_Readoffset;
;;;935    }
00003e  4770              BX       lr
;;;936    /**
                          ENDP

                  |L18.64|
                          DCD      0x08c00480

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

                  OP_ReferenceVref PROC
;;;738     */
;;;739    void OP_ReferenceVref(OP_TypeDef* OPx,OP_VREF_TypeDef OPVREF)
000000  4a10              LDR      r2,|L19.68|
;;;740    {
;;;741    
;;;742       /* Check the parameters */
;;;743       assert_param(IS_OP_ALL_PERIPH(OPx)); 
;;;744       if(OPx==OP_1)
000002  4290              CMP      r0,r2
000004  d10c              BNE      |L19.32|
;;;745    		{
;;;746    			OP->OPX_CFG &= ~OP_CFG_REFSEL;
000006  4a0f              LDR      r2,|L19.68|
000008  320f              ADDS     r2,r2,#0xf
00000a  6812              LDR      r2,[r2,#0]
00000c  2380              MOVS     r3,#0x80
00000e  439a              BICS     r2,r2,r3
000010  4b0c              LDR      r3,|L19.68|
000012  330f              ADDS     r3,r3,#0xf
000014  601a              STR      r2,[r3,#0]
;;;747    			OP->OPX_CFG |=  OPVREF;
000016  461a              MOV      r2,r3
000018  6812              LDR      r2,[r2,#0]
00001a  430a              ORRS     r2,r2,r1
00001c  601a              STR      r2,[r3,#0]
00001e  e00f              B        |L19.64|
                  |L19.32|
;;;748    		}
;;;749    		else if(OPx==OP_2)
000020  4a08              LDR      r2,|L19.68|
000022  1c52              ADDS     r2,r2,#1
000024  4290              CMP      r0,r2
000026  d10b              BNE      |L19.64|
;;;750    		{
;;;751    			OP->OPX_CFG &= ~OP_CFG_REFSEL;
000028  4a06              LDR      r2,|L19.68|
00002a  320f              ADDS     r2,r2,#0xf
00002c  6812              LDR      r2,[r2,#0]
00002e  2380              MOVS     r3,#0x80
000030  439a              BICS     r2,r2,r3
000032  4b04              LDR      r3,|L19.68|
000034  330f              ADDS     r3,r3,#0xf
000036  601a              STR      r2,[r3,#0]
;;;752    			OP->OPX_CFG |= OPVREF;
000038  461a              MOV      r2,r3
00003a  6812              LDR      r2,[r2,#0]
00003c  430a              ORRS     r2,r2,r1
00003e  601a              STR      r2,[r3,#0]
                  |L19.64|
;;;753    		}
;;;754    }
000040  4770              BX       lr
;;;755    
                          ENDP

000042  0000              DCW      0x0000
                  |L19.68|
                          DCD      0x400221b1

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

                  OP_StructInit PROC
;;;192      */
;;;193    void OP_StructInit(OP_InitTypeDef* OP_InitStruct)
000000  2100              MOVS     r1,#0
;;;194    {
;;;195    	  /* Set the default configuratiom */
;;;196    #if defined(SC32f12xx)
;;;197    		OP_InitStruct->OP_ShortCircuit = OP_ShortCircuit_OFF;     
;;;198    		OP_InitStruct->OP_FDBResisrance = OP_FDBResisrance_VSS;   
;;;199    		OP_InitStruct->OP_PGAGain = OP_PGAGain_NonInvert8_Invert7;
;;;200    		OP_InitStruct->OP_Posittive = 0x00;           
;;;201    		OP_InitStruct->OP_Negative = OP_Negative_OPN;             
;;;202    		OP_InitStruct->OP_Output = OP_Output_OFF;                 
;;;203    #elif defined (SC32f15xx)
;;;204    		OP_InitStruct->OP_REFSEL=OP_RefSource_VDD;
000002  7001              STRB     r1,[r0,#0]
;;;205    		OP_InitStruct->OP_CMPIM2=OP_TriggerMode_Disable;
000004  7041              STRB     r1,[r0,#1]
;;;206    		OP_InitStruct->OP_CMPIM1 = OP_TriggerMode_Disable;
000006  7081              STRB     r1,[r0,#2]
;;;207    		OP_InitStruct->OP_OutputPin = OP_OutputPin_Disable;
000008  70c1              STRB     r1,[r0,#3]
;;;208    		OP_InitStruct->OP_InvertInput =OP_InvertInput_OPxN;
00000a  7101              STRB     r1,[r0,#4]
;;;209    		OP_InitStruct->OP_NonInvertInput =OP_NonInvertInput_VSS;
00000c  7141              STRB     r1,[r0,#5]
;;;210    		OP_InitStruct->OP_PGAGain=OP_PGAGain_NonInvert4_Invert3;
00000e  80c1              STRH     r1,[r0,#6]
;;;211    		OP_InitStruct->OP_OPRF =OP_OPRF_1D16OP_VREF;
000010  2101              MOVS     r1,#1
000012  0309              LSLS     r1,r1,#12
000014  6081              STR      r1,[r0,#8]
;;;212    		OP_InitStruct->OP_FDBR =OP_FDBR_VSS;
000016  2100              MOVS     r1,#0
000018  60c1              STR      r1,[r0,#0xc]
;;;213    #endif
;;;214    }
00001a  4770              BX       lr
;;;215    
                          ENDP


;*** Start embedded assembler ***

#line 1 "..\\FWLib\\SC32F1XXX_Lib\\src\\sc32f1xxx_op.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___14_sc32f1xxx_op_c_e58096f1____REV16|
#line 463 "..\\CMSIS\\cmsis_armcc.h"
|__asm___14_sc32f1xxx_op_c_e58096f1____REV16| PROC
#line 464

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___14_sc32f1xxx_op_c_e58096f1____REVSH|
#line 478
|__asm___14_sc32f1xxx_op_c_e58096f1____REVSH| PROC
#line 479

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
