summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-03-17 01:02:01 +0000
committerQMK Bot <hello@qmk.fm>2020-03-17 01:02:01 +0000
commitece14278efe5168ef20298984bff4b1d5eb43e4b (patch)
tree6c89528762e06a1e7d34c7c16658d3abaa41a1d9 /drivers
parent567bfc97ac4f5066e8a2302c46e3b375efe59792 (diff)
format code according to conventions [skip ci]
Diffstat (limited to 'drivers')
-rw-r--r--drivers/arm/analog.c2
-rw-r--r--drivers/arm/analog.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/arm/analog.c b/drivers/arm/analog.c
index a7e6d25257..6f6db64010 100644
--- a/drivers/arm/analog.c
+++ b/drivers/arm/analog.c
@@ -119,7 +119,7 @@ static ADCConversionGroup adcConversionGroup = {
.smpr = ADC_SAMPLING_RATE,
#elif defined(USE_ADCV2)
# if !defined(STM32F1XX)
- .cr2 = ADC_CR2_SWSTART, // F103 seem very unhappy with, F401 seems very unhappy without...
+ .cr2 = ADC_CR2_SWSTART, // F103 seem very unhappy with, F401 seems very unhappy without...
# endif
.smpr2 = ADC_SMPR2_SMP_AN0(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN1(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN2(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN3(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN4(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN5(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN6(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN7(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN8(ADC_SAMPLING_RATE) | ADC_SMPR2_SMP_AN9(ADC_SAMPLING_RATE),
.smpr1 = ADC_SMPR1_SMP_AN10(ADC_SAMPLING_RATE) | ADC_SMPR1_SMP_AN11(ADC_SAMPLING_RATE) | ADC_SMPR1_SMP_AN12(ADC_SAMPLING_RATE) | ADC_SMPR1_SMP_AN13(ADC_SAMPLING_RATE) | ADC_SMPR1_SMP_AN14(ADC_SAMPLING_RATE) | ADC_SMPR1_SMP_AN15(ADC_SAMPLING_RATE),
diff --git a/drivers/arm/analog.h b/drivers/arm/analog.h
index 2818e9dcb1..e61c394265 100644
--- a/drivers/arm/analog.h
+++ b/drivers/arm/analog.h
@@ -25,7 +25,7 @@ extern "C" {
typedef struct {
uint16_t input;
- uint8_t adc;
+ uint8_t adc;
} adc_mux;
#define TO_MUX(i, a) \
(adc_mux) { i, a }