Fixed ADC struct values not being init'd correctly

This commit is contained in:
Logan G 2023-08-10 22:09:00 -06:00
parent 8c8b132fd6
commit e5dc9abf1c
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -185,6 +185,8 @@ void ADC_StructInit(ADC_InitTypeDef *ADC_InitStruct)
ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1;
ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right;
ADC_InitStruct->ADC_NbrOfChannel = 1;
ADC_InitStruct->ADC_OutputBuffer = DISABLE;
ADC_InitStruct->ADC_Pga = ADC_Pga_1;
}
/*********************************************************************