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:
commit
077a43948b
@ -23,11 +23,6 @@
|
||||
#include "mutex.h"
|
||||
#include "periph/adc.h"
|
||||
|
||||
/**
|
||||
* @brief Maximum allowed ADC clock speed
|
||||
*/
|
||||
#define MAX_ADC_SPEED (12000000U)
|
||||
|
||||
/**
|
||||
* @brief Load the ADC configuration
|
||||
*/
|
||||
@ -61,7 +56,7 @@ int adc_init(adc_t line)
|
||||
|
||||
/* lock and power on the device */
|
||||
prep();
|
||||
/*configure the pin */
|
||||
/* configure the pin */
|
||||
gpio_init_analog(adc_config[line].pin);
|
||||
/* reset configuration */
|
||||
ADC1->CFGR2 = 0;
|
||||
|
||||
@ -23,11 +23,6 @@
|
||||
#include "mutex.h"
|
||||
#include "periph/adc.h"
|
||||
|
||||
/**
|
||||
* @brief Maximum allowed ADC clock speed
|
||||
*/
|
||||
#define MAX_ADC_SPEED (12000000U)
|
||||
|
||||
/**
|
||||
* @brief Load the ADC configuration
|
||||
*/
|
||||
|
||||
@ -25,11 +25,6 @@
|
||||
#include "mutex.h"
|
||||
#include "periph/adc.h"
|
||||
|
||||
/**
|
||||
* @brief Maximum allowed ADC clock speed
|
||||
*/
|
||||
#define MAX_ADC_SPEED (12000000U)
|
||||
|
||||
/**
|
||||
* @brief ADC clock settings
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user