/* Set LED2 to Blinking mode for an infinite loop (toggle period based on value provided as input parameter). Exit of this function when a press button is detected.  */
void LED_Blinking(uint32_t Period)
/* Set LED2 to Blinking mode for an infinite loop (toggle period based on value provided as input parameter). Exit of this function when a press button is detected.  */
void LED_Blinking(uint32_t Period)
{
  if (Period != LED_BLINK_ERROR)
  {
    while (bButtonPress != 1)
    {
      LL_GPIO_TogglePin(LED2_GPIO_PORT, LED2_PIN);  
      LL_mDelay(Period);
    }
  }
  else
  {
    while (1)
    {
      LL_GPIO_TogglePin(LED2_GPIO_PORT, LED2_PIN);  
      LL_mDelay(Period);
    }
  }
}