/* Selects the GPIO pin used as EXTI Line.  */
void GPIO_ConfigEXTILine(uint8_t PortSource, uint8_t PinSource)
/* Selects the GPIO pin used as EXTI Line.  */
void GPIO_ConfigEXTILine(uint8_t PortSource, uint8_t PinSource)
{
	uint32_t port = (uint32_t)PortSource;
    assert_param(IS_GPIO_EXTI_PORT_SOURCE(PortSource));
    assert_param(IS_GPIO_PIN_SOURCE(PinSource));
    AFIO->EXTI_CFG[(PinSource >> 0x02)] &= ~(((uint32_t)0x03) << ((PinSource & (uint8_t)0x03)*4u));
    AFIO->EXTI_CFG[(PinSource >> 0x02)] |=  (port << ((PinSource & (uint8_t)0x03) *4u));
}