aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c')
-rw-r--r--os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c b/os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c
index 2f3f7cfa8..8bd671d58 100644
--- a/os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c
+++ b/os/hal/ports/STM32/STM32F1xx/hal_adc_lld.c
@@ -99,7 +99,7 @@ void adc_lld_init(void) {
STM32_DMA_CR_TEIE;
/* Temporary activation.*/
- rccEnableADC1(FALSE);
+ rccEnableADC1(false);
ADC1->CR1 = 0;
ADC1->CR2 = ADC_CR2_ADON;
@@ -115,7 +115,7 @@ void adc_lld_init(void) {
/* Return the ADC in low power mode.*/
ADC1->CR2 = 0;
- rccDisableADC1(FALSE);
+ rccDisableADC1();
#endif
}
@@ -139,7 +139,7 @@ void adc_lld_start(ADCDriver *adcp) {
(void *)adcp);
osalDbgAssert(!b, "stream already allocated");
dmaStreamSetPeripheral(adcp->dmastp, &ADC1->DR);
- rccEnableADC1(FALSE);
+ rccEnableADC1(false);
}
#endif
@@ -166,7 +166,7 @@ void adc_lld_stop(ADCDriver *adcp) {
ADC1->CR1 = 0;
ADC1->CR2 = 0;
dmaStreamRelease(adcp->dmastp);
- rccDisableADC1(FALSE);
+ rccDisableADC1();
}
#endif
}