AnsweredAssumed Answered

How to specify external interrupt rather than event

Question asked by Burton.Mark on Jun 15, 2015
Latest reply on Jun 15, 2015 by Burton.Mark

Hi,

Using the cube 4.8.0 I configured PA2 to be GPIO_EXTI2 because I want an interrupt generated
when the signal connected to that pin goes low but the code that gets generated for me looks
like this:

  /*Configure GPIO pin : PA2 */
  GPIO_InitStruct.Pin = GPIO_PIN_2;
  GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

I want the mode to be GPIO_MODE_IT_FALLING but I can't find any way of telling the cube that. Is the GUI
missing something, or am I just thick?

Cheers,

Mark

Outcomes