; generated by Component: ARM Compiler 5.05 update 1 (build 106) Tool: ArmCC [4d0efa]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\output\int_interrupt.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\int_interrupt.d --cpu=Cortex-M0+ --apcs=interwork --diag_suppress=9931 -I..\FWLib\SC32F1XXX_Lib\inc -I..\User\HeadFiles -I..\User -I..\Drivers -I..\Apps -I..\CMSIS -ID:\Keil5\ARM\Pack\Keil\SC32F10xx_DFP\1.0.0\Device\SC32F10xx\FWLib\SC32_Lib\inc -ID:\Keil5\ARM\Pack\Keil\SC32F10xx_DFP\1.0.0\Device\SH32F2xx\Include -D__UVISION_VERSION=538 -DSC32F10xx --omf_browse=..\output\int_interrupt.crf ..\Apps\INT_Interrupt.c]
                          THUMB

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

                  INT_Example_Function PROC
;;;11     
;;;12     void INT_Example_Function(void)
000000  b51f              PUSH     {r0-r4,lr}
;;;13     {
;;;14       volatile uint16_t CMP_Value;
;;;15       INT_InitTypeDef INT_InitStruct; //INTʼṹ
;;;16       GPIO_InitTypeDef GPIO_InitStruct; //GPIOʼṹ
;;;17     	/*PA0ܽ*/
;;;18     	GPIO_InitStruct.GPIO_Pin = GPIO_Pin_0 ;
000002  2401              MOVS     r4,#1
000004  4668              MOV      r0,sp
000006  8104              STRH     r4,[r0,#8]
;;;19       GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN_PU;
000008  8144              STRH     r4,[r0,#0xa]
;;;20       GPIO_Init(GPIOA, &GPIO_InitStruct);
00000a  a902              ADD      r1,sp,#8
00000c  481f              LDR      r0,|L1.140|
00000e  f7fffffe          BL       GPIO_Init
;;;21       //PA0Ϊж
;;;22       INT_InitStruct.INT_Channel = INT_Channel_0;
000012  4668              MOV      r0,sp
000014  8004              STRH     r4,[r0,#0]
;;;23       INT_InitStruct.INT_INTSEL = INT_INTSEL_PA;
000016  2100              MOVS     r1,#0
000018  8081              STRH     r1,[r0,#4]
;;;24       INT_InitStruct.INT_Trigger = INT_Trigger_Rising;
00001a  8044              STRH     r4,[r0,#2]
;;;25       INT_Init(&INT_InitStruct);
00001c  f7fffffe          BL       INT_Init
;;;26       /*PB1ܽ*/
;;;27     	GPIO_InitStruct.GPIO_Pin = GPIO_Pin_1 ;
000020  2502              MOVS     r5,#2
000022  4668              MOV      r0,sp
000024  8105              STRH     r5,[r0,#8]
;;;28       GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN_PU;
000026  8144              STRH     r4,[r0,#0xa]
;;;29       GPIO_Init(GPIOB, &GPIO_InitStruct);
000028  a902              ADD      r1,sp,#8
00002a  4819              LDR      r0,|L1.144|
00002c  f7fffffe          BL       GPIO_Init
;;;30       //PB1Ϊ½ж
;;;31       INT_InitStruct.INT_Channel = INT_Channel_1;
000030  4668              MOV      r0,sp
000032  8005              STRH     r5,[r0,#0]
;;;32       INT_InitStruct.INT_INTSEL = INT_INTSEL_PB;
000034  8084              STRH     r4,[r0,#4]
;;;33       INT_InitStruct.INT_Trigger = INT_Trigger_Falling;
000036  8045              STRH     r5,[r0,#2]
;;;34       INT_Init(&INT_InitStruct);
000038  f7fffffe          BL       INT_Init
;;;35       /*PC8ܽ*/
;;;36     	GPIO_InitStruct.GPIO_Pin = GPIO_Pin_8 ;
00003c  0226              LSLS     r6,r4,#8
00003e  4668              MOV      r0,sp
000040  8106              STRH     r6,[r0,#8]
;;;37       GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN_PU;
000042  8144              STRH     r4,[r0,#0xa]
;;;38       GPIO_Init(GPIOC, &GPIO_InitStruct);
000044  a902              ADD      r1,sp,#8
000046  4813              LDR      r0,|L1.148|
000048  f7fffffe          BL       GPIO_Init
;;;39       //PC8Ϊغ½ж
;;;40       INT_InitStruct.INT_Channel = INT_Channel_8;
00004c  4668              MOV      r0,sp
00004e  8006              STRH     r6,[r0,#0]
;;;41       INT_InitStruct.INT_INTSEL = INT_INTSEL_PC;
000050  8085              STRH     r5,[r0,#4]
;;;42       INT_InitStruct.INT_Trigger = INT_Trigger_Rising_Falling;
000052  2103              MOVS     r1,#3
000054  8041              STRH     r1,[r0,#2]
;;;43       INT_Init(&INT_InitStruct);
000056  f7fffffe          BL       INT_Init
;;;44     
;;;45       /* Ӧж */
;;;46       INT_ITConfig(INT_Channel_0, INT_IT_Rising, ENABLE);
00005a  2201              MOVS     r2,#1
00005c  4611              MOV      r1,r2
00005e  4610              MOV      r0,r2
000060  f7fffffe          BL       INT_ITConfig
;;;47       NVIC_EnableIRQ(INT0_IRQn);
000064  2000              MOVS     r0,#0
000066  f7fffffe          BL       __NVIC_EnableIRQ
;;;48     
;;;49       INT_ITConfig(INT_Channel_1, INT_Trigger_Falling, ENABLE);
00006a  2102              MOVS     r1,#2
00006c  2201              MOVS     r2,#1
00006e  4608              MOV      r0,r1
000070  f7fffffe          BL       INT_ITConfig
;;;50       NVIC_EnableIRQ(INT1_7_IRQn);
000074  2001              MOVS     r0,#1
000076  f7fffffe          BL       __NVIC_EnableIRQ
;;;51     
;;;52       INT_ITConfig(INT_Channel_8, INT_Trigger_Rising_Falling, ENABLE);
00007a  2201              MOVS     r2,#1
00007c  2103              MOVS     r1,#3
00007e  4630              MOV      r0,r6
000080  f7fffffe          BL       INT_ITConfig
;;;53       NVIC_EnableIRQ(INT8_11_IRQn);
000084  2002              MOVS     r0,#2
000086  f7fffffe          BL       __NVIC_EnableIRQ
                  |L1.138|
;;;54     
;;;55       while(1);
00008a  e7fe              B        |L1.138|
;;;56     }
;;;57     
                          ENDP

                  |L1.140|
                          DCD      0x40011000
                  |L1.144|
                          DCD      0x40011100
                  |L1.148|
                          DCD      0x40011200

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

                  INT_Example_INT0Handler PROC
;;;57     
;;;58     void INT_Example_INT0Handler(void)
000000  b510              PUSH     {r4,lr}
;;;59     {
;;;60       if(INT_GetFlagStatus(INT_Channel_0, INT_Flag_Rising)) //жINT0ر־λ
000002  2101              MOVS     r1,#1
000004  4608              MOV      r0,r1
000006  f7fffffe          BL       INT_GetFlagStatus
00000a  2800              CMP      r0,#0
00000c  d005              BEQ      |L2.26|
;;;61       {
;;;62         RT_BIT(0)=0; //INT0жϱ־
00000e  4903              LDR      r1,|L2.28|
000010  2000              MOVS     r0,#0
000012  7008              STRB     r0,[r1,#0]
;;;63     		printf("INT0жѴ\r\n");
000014  a002              ADR      r0,|L2.32|
000016  f7fffffe          BL       __2printf
                  |L2.26|
;;;64       }
;;;65     }
00001a  bd10              POP      {r4,pc}
;;;66     
                          ENDP

                  |L2.28|
                          DCD      0x400113e0
                  |L2.32|
000020  494e5430          DCB      "INT0",201,207,201,253,209,216,214,208,182,207,210,209,180
000024  c9cfc9fd
000028  d1d8d6d0
00002c  b6cfd2d1
000030  b4      
000031  a5b7a2a3          DCB      165,183,162,163,161,"\r\n",0
000035  a10d0a00
000039  00                DCB      0
00003a  00                DCB      0
00003b  00                DCB      0

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

                  INT_Example_INT1_7Handler PROC
;;;66     
;;;67     void INT_Example_INT1_7Handler(void)
000000  b510              PUSH     {r4,lr}
;;;68     {
;;;69       if(INT_GetFlagStatus(INT_Channel_1, INT_Flag_Falling)) //жINT1½ر־λ
000002  2102              MOVS     r1,#2
000004  4608              MOV      r0,r1
000006  f7fffffe          BL       INT_GetFlagStatus
00000a  2800              CMP      r0,#0
00000c  d005              BEQ      |L3.26|
;;;70       {
;;;71         FT_BIT(1)=0; //INT1½жϱ־
00000e  4903              LDR      r1,|L3.28|
000010  2000              MOVS     r0,#0
000012  7048              STRB     r0,[r1,#1]
;;;72     		printf("INT1½жѴ\r\n");
000014  a002              ADR      r0,|L3.32|
000016  f7fffffe          BL       __2printf
                  |L3.26|
;;;73       }
;;;74     }
00001a  bd10              POP      {r4,pc}
;;;75     
                          ENDP

                  |L3.28|
                          DCD      0x400113c0
                  |L3.32|
000020  494e5431          DCB      "INT1",207,194,189,181,209,216,214,208,182,207,210,209,180
000024  cfc2bdb5
000028  d1d8d6d0
00002c  b6cfd2d1
000030  b4      
000031  a5b7a2a3          DCB      165,183,162,163,161,"\r\n",0
000035  a10d0a00
000039  00                DCB      0
00003a  00                DCB      0
00003b  00                DCB      0

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

                  INT_Example_INT8_11_Handler PROC
;;;75     
;;;76     void INT_Example_INT8_11_Handler(void)
000000  b570              PUSH     {r4-r6,lr}
;;;77     {
;;;78       if(INT_GetFlagStatus(INT_Channel_8, INT_Flag_Rising)) //жINT8ر־λ
000002  2101              MOVS     r1,#1
000004  020d              LSLS     r5,r1,#8
000006  4628              MOV      r0,r5
000008  f7fffffe          BL       INT_GetFlagStatus
00000c  2400              MOVS     r4,#0
00000e  2800              CMP      r0,#0
000010  d004              BEQ      |L4.28|
;;;79       {
;;;80         RT_BIT(8)=0; //INT8жϱ־
000012  4809              LDR      r0,|L4.56|
000014  7204              STRB     r4,[r0,#8]
;;;81     		printf("INT8жѴ\r\n");
000016  a009              ADR      r0,|L4.60|
000018  f7fffffe          BL       __2printf
                  |L4.28|
;;;82       }
;;;83       if(INT_GetFlagStatus(INT_Channel_8, INT_Flag_Falling)) //жINT8½ر־λ
00001c  2102              MOVS     r1,#2
00001e  4628              MOV      r0,r5
000020  f7fffffe          BL       INT_GetFlagStatus
000024  2800              CMP      r0,#0
000026  d005              BEQ      |L4.52|
;;;84       {
;;;85         FT_BIT(8)=0; //INT8½жϱ־
000028  4803              LDR      r0,|L4.56|
00002a  3820              SUBS     r0,r0,#0x20
00002c  7204              STRB     r4,[r0,#8]
;;;86     		printf("INT8½жѴ\r\n");
00002e  a00a              ADR      r0,|L4.88|
000030  f7fffffe          BL       __2printf
                  |L4.52|
;;;87       }
;;;88     }
000034  bd70              POP      {r4-r6,pc}
                          ENDP

000036  0000              DCW      0x0000
                  |L4.56|
                          DCD      0x400113e0
                  |L4.60|
00003c  494e5438          DCB      "INT8",201,207,201,253,209,216,214,208,182,207,210,209,180
000040  c9cfc9fd
000044  d1d8d6d0
000048  b6cfd2d1
00004c  b4      
00004d  a5b7a2a3          DCB      165,183,162,163,161,"\r\n",0
000051  a10d0a00
000055  00                DCB      0
000056  00                DCB      0
000057  00                DCB      0
                  |L4.88|
000058  494e5438          DCB      "INT8",207,194,189,181,209,216,214,208,182,207,210,209,180
00005c  cfc2bdb5
000060  d1d8d6d0
000064  b6cfd2d1
000068  b4      
000069  a5b7a2a3          DCB      165,183,162,163,161,"\r\n",0
00006d  a10d0a00
000071  00                DCB      0
000072  00                DCB      0
000073  00                DCB      0

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

                  __NVIC_EnableIRQ PROC
;;;740     */
;;;741    __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
000000  2800              CMP      r0,#0
;;;742    {
000002  db05              BLT      |L5.16|
;;;743      if ((int32_t)(IRQn) >= 0)
;;;744      {
;;;745        NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
000004  06c1              LSLS     r1,r0,#27
000006  0ec9              LSRS     r1,r1,#27
000008  2001              MOVS     r0,#1
00000a  4088              LSLS     r0,r0,r1
00000c  4901              LDR      r1,|L5.20|
00000e  6008              STR      r0,[r1,#0]
                  |L5.16|
;;;746      }
;;;747    }
000010  4770              BX       lr
;;;748    
                          ENDP

000012  0000              DCW      0x0000
                  |L5.20|
                          DCD      0xe000e100

;*** Start embedded assembler ***

#line 1 "..\\Apps\\INT_Interrupt.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___15_INT_Interrupt_c_7f539ed1____REV16|
#line 463 "..\\CMSIS\\cmsis_armcc.h"
|__asm___15_INT_Interrupt_c_7f539ed1____REV16| PROC
#line 464

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
