Fixed ADC struct values not being init'd correctly
This commit is contained in:
parent
8c8b132fd6
commit
e5dc9abf1c
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ void ADC_StructInit(ADC_InitTypeDef *ADC_InitStruct)
|
||||||
ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1;
|
ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1;
|
||||||
ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right;
|
ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right;
|
||||||
ADC_InitStruct->ADC_NbrOfChannel = 1;
|
ADC_InitStruct->ADC_NbrOfChannel = 1;
|
||||||
|
ADC_InitStruct->ADC_OutputBuffer = DISABLE;
|
||||||
|
ADC_InitStruct->ADC_Pga = ADC_Pga_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|
Loading…
Reference in a new issue