STM32F3 Discovery - Implement GPIO-Interrupt
<p>I want to implement a GPIO-Interrupt, but I dont know how, I also found no real sample or explaination for it.</p>

<p>I already know how to write to Pins, but not much more, please consider that I dont really have any knowlegde about c or programming microcontrollers.</p>

<p>A simple example or explaination would help me alot. The following code is what I already have, but I am not sure if this is correct.</p>

<pre><code>GPIO_InitTypeDef   GPIO_InitStructure;
GPIO_InitStructure.Pin = GPIO_PIN_2;
GPIO_InitStructure.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStructure.Pull = GPIO_PULLUP;
GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;

HAL_GPIO_Init(GPIOA, &amp;GPIO_InitStructure);

HAL_GPIO_WritePin(GPIOA, GPIO_PIN_2, GPIO_PIN_SET);
</code></pre>