src/arch/socs/stm32f439/C/soc-exti.c
static uint8_t soc_exti_get_pos(uint8_t pin)
{
  switch (pin) {
      case 0:
      case 4:
      case 8:
      case 12:
          return 0;
          break;
      case 1:
      case 5:
      case 9:
      case 13:
          return 4;
          break;
      case 2:
      case 6:
      case 10:
      case 14:
          return 8;
          break;
      case 3:
      case 7:
      case 11:
      case 15:
          return 12;
          break;
      default:
          return 0;
  }
}
/*
 * EXTI allows one and only one EXTI line per pin, whatever the port is.
 * There is 16 EXTI lines for 16 pin (0 => 15).
 *
 * SYSCFG_CR1 manages config for pin  0 => 3
 * SYSCFG_CR2 manages config for pin  4 => 7
 * SYSCFG_CR3 manages config for pin  8 => 11
 * SYSCFG_CR4 manages config for pin 12 => 15
 *
 * This function return the register field position
 */
EXTI allows one and only one EXTI line per pin, whatever the port is.

SYSCFG_CR1 manages config for pin  0 => 3
SYSCFG_CR2 manages config for pin  4 => 7
SYSCFG_CR3 manages config for pin  8 => 11
SYSCFG_CR4 manages config for pin 12 => 15

This function return the register field position
EXTI allows one and only one EXTI line per pin whatever the port is . SYSCFG_CR1 manages config for pin 0 = > 3 SYSCFG_CR2 manages config for pin 4 = > 7 SYSCFG_CR3 manages config for pin 8 = > 11 SYSCFG_CR4 manages config for pin 12 = > 15 This function return the register field position
static uint8_t soc_exti_get_pos(uint8_t pin)
{
  switch (pin) {
      case 0:
      case 4:
      case 8:
      case 12:
          return 0;
          break;
      case 1:
      case 5:
      case 9:
      case 13:
          return 4;
          break;
      case 2:
      case 6:
      case 10:
      case 14:
          return 8;
          break;
      case 3:
      case 7:
      case 11:
      case 15:
          return 12;
          break;
      default:
          return 0;
  }
}
static uint8_t soc_exti_get_pos ( uint8_t pin ) { switch ( pin ) { case 0 : case 4 : case 8 : case 12 : return 0 ; break ; case 1 : case 5 : case 9 : case 13 : return 4 ; break ; case 2 : case 6 : case 10 : case 14 : return 8 ; break ; case 3 : case 7 : case 11 : case 15 : return 12 ; break ; default : return 0 ; } }
EXTI allows one and only one EXTI line per pin, whatever the port is.
EXTI allows one and only one EXTI line per pin whatever the port is .