chip/stm32/adc-stm32f3.c: Format with clang-format
BRANCH=none
TEST=none
#define ADC_SINGLE_READ_TIMEOUT 3000 /* 3 ms */
-#define SMPR1_EXPAND(v) ((v) | ((v) << 3) | ((v) << 6) | ((v) << 9) | \
- ((v) << 12) | ((v) << 15) | ((v) << 18) | \
- ((v) << 21))
+#define SMPR1_EXPAND(v) \
+ ((v) | ((v) << 3) | ((v) << 6) | ((v) << 9) | ((v) << 12) | \
+ ((v) << 15) | ((v) << 18) | ((v) << 21))
#define SMPR2_EXPAND(v) (SMPR1_EXPAND(v) | ((v) << 24) | ((v) << 27))
/* Default ADC sample time = 13.5 cycles */
@@ -215,7 +215,8 @@ int adc_read_channel(enum adc_channel ch)
adc_enable_watchdog_no_lock();
mutex_unlock(&adc_lock);
- return (value == ADC_READ_ERROR) ? ADC_READ_ERROR :
+ return (value == ADC_READ_ERROR) ?
+ ADC_READ_ERROR :
value * adc->factor_mul / adc->factor_div + adc->shift;
}
