User Activity

if (HAL_GPIO_ReadPin(button_GPIO_Port,button_Pin)==1) //mypushbutton==1 {   /* If Key is pressed */  /* Execute the IAP driver in order to re-program the Flash */  printf("\r\n\r\n");  Main_Menu(); }// /* Keep the user application running */ else { ...