/* Configure GPIO pin used as EINT Line */
//*(volatile uint32_t *)AFIO_EXTISS0 = 0x0011;
//*(volatile uint32_t *)AFIO_EXTISS1 = 0x1021;
//*(volatile uint32_t *)AFIO_EXTISS2 = 0xFFF1;
//*(volatile uint32_t *)AFIO_EXTISS3 = 0xFF11;
exti_init(EXTI_0,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI0_IRQn, 1, 1);
exti_init(EXTI_1,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI1_IRQn, 1, 1);
exti_init(EXTI_2,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI2_IRQn, 1, 1);
exti_init(EXTI_3,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI3_IRQn, 1, 1);
exti_init(EXTI_4,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI4_IRQn, 1, 1);
exti_init(EXTI_5,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI5_9_IRQn, 1, 1);
exti_init(EXTI_6,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI5_9_IRQn, 1, 1);
exti_init(EXTI_7,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI5_9_IRQn, 1, 1);
exti_init(EXTI_8,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI5_9_IRQn, 1, 1);
exti_init(EXTI_12,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI10_15_IRQn, 1, 1);
exti_init(EXTI_13,EXTI_INTERRUPT,EXTI_TRIG_FALLING);
nvic_irq_enable(EXTI10_15_IRQn, 1, 1);