L4: Fix analogRead() compilation

This commit is contained in:
Daniel Fekete 2017-09-26 12:30:58 +02:00
parent 272015130e
commit 0ee335cf3b
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@ void stm32_adc_init(ADC_HandleTypeDef *handle);
#error "Unknown clock"
#endif
#ifndef __HAL_RCC_ADC2_CLK_ENABLE
#define __HAL_RCC_ADC2_CLK_ENABLE __HAL_RCC_ADC_CLK_ENABLE
#endif
#ifndef __HAL_RCC_ADC3_CLK_ENABLE
#define __HAL_RCC_ADC3_CLK_ENABLE __HAL_RCC_ADC_CLK_ENABLE
#endif
static int readResolution = 10;
static ADC_HandleTypeDef handle[3];