cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Interrupt Generation difference

SRedd.5
Senior III

I am bit confused with ADC interrupt code generated for my project compared with the code generated from the motor control SDK for the evaluation board B-G431-ESC1.

For my generated code

void ADC1_2_IRQHandler(void)

{

 /* USER CODE BEGIN ADC1_2_IRQn 0 */

 /* USER CODE END ADC1_2_IRQn 0 */

 HAL_ADC_IRQHandler(&hadc1);

 HAL_ADC_IRQHandler(&hadc2);

 /* USER CODE BEGIN ADC1_2_IRQn 1 */

 /* USER CODE END ADC1_2_IRQn 1 */

}

The

 HAL_ADC_IRQHandler(&hadc1);

 HAL_ADC_IRQHandler(&hadc2);

are generated,

but for the motor control SDK i find it

void ADC1_2_IRQHandler(void)

{

 /* USER CODE BEGIN ADC1_2_IRQn 0 */

 /* USER CODE END ADC1_2_IRQn 0 */

 // Clear Flags M1

 LL_ADC_ClearFlag_JEOS( ADC1 );

 (void)TSK_HighFrequencyTask();

 /* USER CODE BEGIN HighFreq */

 /* USER CODE END HighFreq */

 /* USER CODE BEGIN ADC1_2_IRQn 1 */

 /* USER CODE END ADC1_2_IRQn 1 */

}

I understand the  (void)TSK_HighFrequencyTask(); is a user code but how  

// Clear Flags M1

 LL_ADC_ClearFlag_JEOS( ADC1 ); is generated? Is there any selection? Please help.

.

0 REPLIES 0