Question
STM32 F7 - Discovery gpio interrupts do not return to main
Posted on August 28, 2015 at 22:56
HI guys
I can simply not see why this is not workingvolatile _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