/* Perform DAC activation procedure to make it ready to generate a voltage (DAC instance: DAC1).  */
void Activate_DAC(void)
/* Perform DAC activation procedure to make it ready to generate a voltage (DAC instance: DAC1).  */
void Activate_DAC(void)
{
  __IO uint32_t wait_loop_index = 0;
  LL_DAC_Enable(DAC1, LL_DAC_CHANNEL_1);
  wait_loop_index = ((LL_DAC_DELAY_STARTUP_VOLTAGE_SETTLING_US * (SystemCoreClock / (100000 * 2))) / 10);
  while(wait_loop_index != 0)
  {
    wait_loop_index--;
  }
  LL_DAC_EnableTrigger(DAC1, LL_DAC_CHANNEL_1);
}