Src/stm32f2xx_it.c
/**
  * @brief This function handles TIM2 global interrupt.
  */
@brief This function handles TIM2 global interrupt.
@brief This function handles TIM2 global interrupt .
void TIM2_IRQHandler(void)
{
	static uint16_t cnt = 0;
	LL_TIM_ClearFlag_UPDATE( TIM2 );   
	dacBuf[cnt%DAC_BUF_SIZE] = LL_RNG_ReadRandData32( RNG );
	cnt++;
}
void TIM2_IRQHandler ( void ) { static uint16_t cnt = 0 ; LL_TIM_ClearFlag_UPDATE ( TIM2 ) ; dacBuf [ cnt % DAC_BUF_SIZE ] = LL_RNG_ReadRandData32 ( RNG ) ; cnt ++ ; }
@brief This function handles TIM2 global interrupt.
@brief This function handles TIM2 global interrupt .
/* USER CODE BEGIN TIM2_IRQn 0 */ /* USER CODE END TIM2_IRQn 0 */ /* USER CODE BEGIN TIM2_IRQn 1 */ //	dacBuf[cnt%DAC_BUF_SIZE] = cnt<<8;
 //	dacBuf[cnt%DAC_BUF_SIZE] = ((float)0x7FFF) * ( 1.0 - sin( 0.1 * (float)cnt ) );
 /* USER CODE END TIM2_IRQn 1 */