You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/12/06 15:03:31 UTC
[incubator-nuttx] 12/18: arch/arm/src/stm32f0l0g0/stm32_adc.c:
Don't assume debug macro expansion
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 065d310cf290c353819f2c263be3649fd59ab168
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 13:16:46 2020 +0900
arch/arm/src/stm32f0l0g0/stm32_adc.c: Don't assume debug macro expansion
---
arch/arm/src/stm32f0l0g0/stm32_adc.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/arm/src/stm32f0l0g0/stm32_adc.c b/arch/arm/src/stm32f0l0g0/stm32_adc.c
index 2ebc8dd..f1ecc21 100644
--- a/arch/arm/src/stm32f0l0g0/stm32_adc.c
+++ b/arch/arm/src/stm32f0l0g0/stm32_adc.c
@@ -262,9 +262,7 @@ static void adc_modifyreg(FAR struct stm32_dev_s *priv, int offset,
static uint32_t adccmn_base_get(FAR struct stm32_dev_s *priv);
static void adccmn_modifyreg(FAR struct stm32_dev_s *priv, uint32_t offset,
uint32_t clrbits, uint32_t setbits);
-# ifdef CONFIG_DEBUG_ANALOG_INFO
static uint32_t adccmn_getreg(FAR struct stm32_dev_s *priv, uint32_t offset);
-# endif
#endif
#ifdef ADC_HAVE_TIMER
static uint16_t tim_getreg(FAR struct stm32_dev_s *priv, int offset);
@@ -575,7 +573,6 @@ static void adccmn_modifyreg(FAR struct stm32_dev_s *priv, uint32_t offset,
* Name: adccmn_getreg
****************************************************************************/
-# ifdef CONFIG_DEBUG_ANALOG_INFO
static uint32_t adccmn_getreg(FAR struct stm32_dev_s *priv, uint32_t offset)
{
uint32_t base = 0;
@@ -588,7 +585,6 @@ static uint32_t adccmn_getreg(FAR struct stm32_dev_s *priv, uint32_t offset)
return getreg32(base + offset);
}
-# endif
#endif /* HAVE_ADC_CMN_REGS */
/****************************************************************************