From a8693baa481e1c4d91379af08bbc9f459b1b4d56 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 10 Jan 2018 13:36:09 +0000 Subject: SPIv1 and SPIv2 circular mode added. Rework of RCC files and all dependencies inside STM32 drivers. Documentation fixes in some HAL modules. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11247 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/ADCv2/hal_adc_lld.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os/hal/ports/STM32/LLD/ADCv2') diff --git a/os/hal/ports/STM32/LLD/ADCv2/hal_adc_lld.c b/os/hal/ports/STM32/LLD/ADCv2/hal_adc_lld.c index b2e651eb2..7c4695522 100644 --- a/os/hal/ports/STM32/LLD/ADCv2/hal_adc_lld.c +++ b/os/hal/ports/STM32/LLD/ADCv2/hal_adc_lld.c @@ -243,7 +243,7 @@ void adc_lld_start(ADCDriver *adcp) { (void *)adcp); osalDbgAssert(!b, "stream already allocated"); dmaStreamSetPeripheral(adcp->dmastp, &ADC1->DR); - rccEnableADC1(FALSE); + rccEnableADC1(false); } #endif /* STM32_ADC_USE_ADC1 */ @@ -256,7 +256,7 @@ void adc_lld_start(ADCDriver *adcp) { (void *)adcp); osalDbgAssert(!b, "stream already allocated"); dmaStreamSetPeripheral(adcp->dmastp, &ADC2->DR); - rccEnableADC2(FALSE); + rccEnableADC2(false); } #endif /* STM32_ADC_USE_ADC2 */ @@ -269,7 +269,7 @@ void adc_lld_start(ADCDriver *adcp) { (void *)adcp); osalDbgAssert(!b, "stream already allocated"); dmaStreamSetPeripheral(adcp->dmastp, &ADC3->DR); - rccEnableADC3(FALSE); + rccEnableADC3(false); } #endif /* STM32_ADC_USE_ADC3 */ @@ -303,17 +303,17 @@ void adc_lld_stop(ADCDriver *adcp) { #if STM32_ADC_USE_ADC1 if (&ADCD1 == adcp) - rccDisableADC1(FALSE); + rccDisableADC1(); #endif #if STM32_ADC_USE_ADC2 if (&ADCD2 == adcp) - rccDisableADC2(FALSE); + rccDisableADC2(); #endif #if STM32_ADC_USE_ADC3 if (&ADCD3 == adcp) - rccDisableADC3(FALSE); + rccDisableADC3(); #endif } } -- cgit v1.2.3