Merge pull request #14849 from hugueslarrive/max_adc_speed

cpu/stm32/periph/adc: remove MAX_ADC_SPEED from implementations where it is not used
This commit is contained in:
Alexandre Abadie 2020-08-26 15:31:19 +02:00 committed by GitHub
commit 077a43948b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 16 deletions

View File

@ -23,11 +23,6 @@
#include "mutex.h" #include "mutex.h"
#include "periph/adc.h" #include "periph/adc.h"
/**
* @brief Maximum allowed ADC clock speed
*/
#define MAX_ADC_SPEED (12000000U)
/** /**
* @brief Load the ADC configuration * @brief Load the ADC configuration
*/ */
@ -61,7 +56,7 @@ int adc_init(adc_t line)
/* lock and power on the device */ /* lock and power on the device */
prep(); prep();
/*configure the pin */ /* configure the pin */
gpio_init_analog(adc_config[line].pin); gpio_init_analog(adc_config[line].pin);
/* reset configuration */ /* reset configuration */
ADC1->CFGR2 = 0; ADC1->CFGR2 = 0;

View File

@ -23,11 +23,6 @@
#include "mutex.h" #include "mutex.h"
#include "periph/adc.h" #include "periph/adc.h"
/**
* @brief Maximum allowed ADC clock speed
*/
#define MAX_ADC_SPEED (12000000U)
/** /**
* @brief Load the ADC configuration * @brief Load the ADC configuration
*/ */

View File

@ -25,11 +25,6 @@
#include "mutex.h" #include "mutex.h"
#include "periph/adc.h" #include "periph/adc.h"
/**
* @brief Maximum allowed ADC clock speed
*/
#define MAX_ADC_SPEED (12000000U)
/** /**
* @brief ADC clock settings * @brief ADC clock settings
* *