We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d28b8 commit 31fa24bCopy full SHA for 31fa24b
STM32F1/libraries/STM32ADC/src/utility/util_adc.c
@@ -137,8 +137,8 @@ void adc_dma_enable(adc_dev * dev) {
137
bb_peri_set_bit(&dev->regs->CR2, ADC_CR2_DMA_BIT, 1);
138
}
139
140
-uint8 poll_adc_convert(adc_dev *dev) {
141
- return bb_peri_get_bit(dev->regs->SR, ADC_SR_EOC_BIT);
+uint8 poll_adc_convert(adc_dev * dev) {
+ return bb_peri_get_bit(&dev->regs->SR, ADC_SR_EOC_BIT);
142
143
144
0 commit comments