diff --git a/src/stm32f1/adc.c b/src/stm32f1/adc.c index 2fe4977e..8eda4f8f 100644 --- a/src/stm32f1/adc.c +++ b/src/stm32f1/adc.c @@ -75,7 +75,8 @@ gpio_adc_sample(struct gpio_adc g) /* ADC not busy, start conversion */ if (!readb(&adc_busy)) { LL_ADC_REG_SetSequencerRanks(ADC1, LL_ADC_REG_RANK_1, g.bit); - LL_ADC_SetChannelSamplingTime(ADC1, g.bit, LL_ADC_SAMPLINGTIME_239CYCLES_5); + LL_ADC_SetChannelSamplingTime(ADC1, g.bit + , LL_ADC_SAMPLINGTIME_239CYCLES_5); LL_ADC_REG_StartConversionSWStart(ADC1); adc_busy = true; adc_current_channel = g.bit; diff --git a/src/stm32f1/serial.c b/src/stm32f1/serial.c index cfc5d04d..e1699334 100644 --- a/src/stm32f1/serial.c +++ b/src/stm32f1/serial.c @@ -17,7 +17,8 @@ void serial_init(void) { - const uint32_t pclk = __LL_RCC_CALC_PCLK2_FREQ(SystemCoreClock, LL_RCC_GetAPB2Prescaler()); + const uint32_t pclk = __LL_RCC_CALC_PCLK2_FREQ(SystemCoreClock + , LL_RCC_GetAPB2Prescaler()); LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_USART1); LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_USART1); diff --git a/src/stm32f1/spi.c b/src/stm32f1/spi.c index 5ce81fb9..5b9ffda2 100644 --- a/src/stm32f1/spi.c +++ b/src/stm32f1/spi.c @@ -35,7 +35,8 @@ static void spi_set_mode(SPI_TypeDef *spi, uint8_t mode) static void spi_set_baudrate(SPI_TypeDef *spi, uint32_t rate) { - const uint32_t pclk = __LL_RCC_CALC_PCLK1_FREQ(SystemCoreClock, LL_RCC_GetAPB1Prescaler()); + const uint32_t pclk = __LL_RCC_CALC_PCLK1_FREQ(SystemCoreClock + , LL_RCC_GetAPB1Prescaler()); const uint32_t prescaler = pclk / rate; uint32_t setting = LL_SPI_BAUDRATEPRESCALER_DIV256;