AnsweredAssumed Answered

STM32 F7 - Discovery gpio interrupts do not return to main

Question asked by skovholm_hansen.hjal on Aug 28, 2015
Latest reply on Aug 31, 2015 by karpavicius.linas
HI guys

I can simply not see why this is not working

volatile _Bool DitOn = 0;
volatile _Bool DahOn = 0;


void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
     BSP_LED_Toggle(LED1);
     if(HAL_GPIO_ReadPin(GPIOI,GPIO_PIN_2) == GPIO_PIN_RESET)
          {
           //DitOn = 1;
          }
          else
          {
           //DitOn = 0;
          }
}

This is working perfect....the interrupt callback retur to the main function and continue..BUT if i do remove my // so it have to set the to volatile vars it seams like IT DO NOT return to the main ???

Is there anything wrong here ?

Hjalmar

Outcomes