src/arch/socs/stm32f439/C/soc-exti.c
uint8_t soc_exti_get_syscfg_exticr_port(uint8_t pin)
{
    uint32_t   *regaddr = NULL;
    uint8_t     pos = 0;

    regaddr = soc_exti_get_SYSCFG_EXTICR(pin);
    pos = soc_exti_get_pos(pin);

    if (regaddr) {
      return get_reg_value(regaddr, 0xf << pos, pos);
    }
    return 0xF;
}
/*
 * From the pin number, return the corresponding EXTI line configured GPIO
 * port.
 * CAUTION: this function doesn't check that the EXTI line has been previously
 * configured
 */
From the pin number, return the corresponding EXTI line configured GPIO
port.
CAUTION: this function doesn't check that the EXTI line has been previously
configured
From the pin number return the corresponding EXTI line configured GPIO port . CAUTION : this function doesn ' t check that the EXTI line has been previously configured
uint8_t soc_exti_get_syscfg_exticr_port(uint8_t pin)
{
    uint32_t   *regaddr = NULL;
    uint8_t     pos = 0;
    regaddr = soc_exti_get_SYSCFG_EXTICR(pin);
    pos = soc_exti_get_pos(pin);
    if (regaddr) {
      return get_reg_value(regaddr, 0xf << pos, pos);
    }
    return 0xF;
}
uint8_t soc_exti_get_syscfg_exticr_port ( uint8_t pin ) { uint32_t * regaddr = NULL ; uint8_t pos = 0 ; regaddr = soc_exti_get_SYSCFG_EXTICR ( pin ) ; pos = soc_exti_get_pos ( pin ) ; if ( regaddr ) { return get_reg_value ( regaddr , 0xf << pos , pos ) ; } return 0xF ; }
From the pin number, return the corresponding EXTI line configured GPIO
 port.
From the pin number return the corresponding EXTI line configured GPIO port .