From c528813aaecbacad54a7a4aac1f14208d23e1d13 Mon Sep 17 00:00:00 2001 From: akscram Date: Tue, 10 Aug 2021 22:19:57 +0000 Subject: [PATCH] STM32/ADCv3: remove unreachable code for STM32WB git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14633 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c b/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c index af67b5d7a..7b2747cc5 100644 --- a/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c +++ b/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c @@ -670,9 +670,6 @@ void adc_lld_start(ADCDriver *adcp) { osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream"); clkmask |= (1 << 1); -#if defined(STM32WBXX) - rccEnableADC1(true); -#endif #if defined(STM32F3XX) || defined(STM32G4XX) rccEnableADC12(true); #endif @@ -698,9 +695,6 @@ void adc_lld_start(ADCDriver *adcp) { osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream"); clkmask |= (1 << 2); -#if defined(STM32WBXX) - rccEnableADC1(true); -#endif #if defined(STM32F3XX) rccEnableADC34(true); #endif @@ -729,9 +723,6 @@ void adc_lld_start(ADCDriver *adcp) { osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream"); clkmask |= (1 << 3); -#if defined(STM32WBXX) - rccEnableADC1(true); -#endif #if defined(STM32F3XX) rccEnableADC34(true); #endif