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
This commit is contained in:
parent
096eefc016
commit
c528813aae
|
@ -670,9 +670,6 @@ void adc_lld_start(ADCDriver *adcp) {
|
||||||
osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream");
|
osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream");
|
||||||
|
|
||||||
clkmask |= (1 << 1);
|
clkmask |= (1 << 1);
|
||||||
#if defined(STM32WBXX)
|
|
||||||
rccEnableADC1(true);
|
|
||||||
#endif
|
|
||||||
#if defined(STM32F3XX) || defined(STM32G4XX)
|
#if defined(STM32F3XX) || defined(STM32G4XX)
|
||||||
rccEnableADC12(true);
|
rccEnableADC12(true);
|
||||||
#endif
|
#endif
|
||||||
|
@ -698,9 +695,6 @@ void adc_lld_start(ADCDriver *adcp) {
|
||||||
osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream");
|
osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream");
|
||||||
|
|
||||||
clkmask |= (1 << 2);
|
clkmask |= (1 << 2);
|
||||||
#if defined(STM32WBXX)
|
|
||||||
rccEnableADC1(true);
|
|
||||||
#endif
|
|
||||||
#if defined(STM32F3XX)
|
#if defined(STM32F3XX)
|
||||||
rccEnableADC34(true);
|
rccEnableADC34(true);
|
||||||
#endif
|
#endif
|
||||||
|
@ -729,9 +723,6 @@ void adc_lld_start(ADCDriver *adcp) {
|
||||||
osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream");
|
osalDbgAssert(adcp->dmastp != NULL, "unable to allocate stream");
|
||||||
|
|
||||||
clkmask |= (1 << 3);
|
clkmask |= (1 << 3);
|
||||||
#if defined(STM32WBXX)
|
|
||||||
rccEnableADC1(true);
|
|
||||||
#endif
|
|
||||||
#if defined(STM32F3XX)
|
#if defined(STM32F3XX)
|
||||||
rccEnableADC34(true);
|
rccEnableADC34(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue