1
0
forked from me/IronOS

Fixing up ADC config

This commit is contained in:
Ben V. Brown
2021-04-27 20:53:35 +10:00
parent d4ea53cdcd
commit 68316f0735
4 changed files with 8 additions and 9 deletions

View File

@@ -177,8 +177,8 @@ static void MX_ADC2_Init(void) {
sConfig.Rank = ADC_REGULAR_RANK_2;
HAL_ADC_ConfigChannel(&hadc2, &sConfig);
sConfig.Channel = TIP_TEMP_ADC1_CHANNEL;
sConfig.Rank = ADC_REGULAR_RANK_2;
HAL_ADC_ConfigChannel(&hadc1, &sConfig);
sConfig.Rank = ADC_REGULAR_RANK_3;
HAL_ADC_ConfigChannel(&hadc2, &sConfig);
// Run ADC internal calibration
while (HAL_ADCEx_Calibration_Start(&hadc2) != HAL_OK)