Merge branch 'master' of bitbucket.org:nuttx/nuttx
This commit is contained in:
commit
92da8068ed
@ -1450,7 +1450,7 @@ config STM32_STM32F33XX
|
||||
select STM32_HAVE_COMP2
|
||||
select STM32_HAVE_COMP4
|
||||
select STM32_HAVE_COMP6
|
||||
select STM32_HAVE_OPAMP
|
||||
select STM32_HAVE_OPAMP2
|
||||
select STM32_HAVE_CCM
|
||||
select STM32_HAVE_TIM1
|
||||
select STM32_HAVE_TIM15
|
||||
@ -1907,18 +1907,34 @@ config STM32_HAVE_CAN2
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP1
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP2
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP3
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP4
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP5
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP6
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_COMP7
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_DAC1
|
||||
bool
|
||||
default n
|
||||
@ -1971,7 +1987,19 @@ config STM32_HAVE_I2SPLL
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_OPAMP
|
||||
config STM32_HAVE_OPAMP1
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_OPAMP2
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_OPAMP3
|
||||
bool
|
||||
default n
|
||||
|
||||
config STM32_HAVE_OPAMP4
|
||||
bool
|
||||
default n
|
||||
|
||||
@ -2032,21 +2060,41 @@ config STM32_COMP
|
||||
default n
|
||||
depends on STM32_STM32L15XX
|
||||
|
||||
config STM32_COMP1
|
||||
bool "COMP1"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP1
|
||||
|
||||
config STM32_COMP2
|
||||
bool "COMP2"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP2
|
||||
|
||||
config STM32_COMP3
|
||||
bool "COMP3"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP3
|
||||
|
||||
config STM32_COMP4
|
||||
bool "COMP4"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP4
|
||||
|
||||
config STM32_COMP5
|
||||
bool "COMP5"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP5
|
||||
|
||||
config STM32_COMP6
|
||||
bool "COMP6"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP6
|
||||
|
||||
config STM32_COMP7
|
||||
bool "COMP7"
|
||||
default n
|
||||
depends on STM32_HAVE_COMP6
|
||||
|
||||
config STM32_BKP
|
||||
bool "BKP"
|
||||
default n
|
||||
@ -2185,7 +2233,26 @@ config STM32_DMA2D
|
||||
config STM32_OPAMP
|
||||
bool "OPAMP"
|
||||
default n
|
||||
depends on STM32_HAVE_OPAMP
|
||||
|
||||
config STM32_OPAMP1
|
||||
bool "OPAMP1"
|
||||
default n
|
||||
depends on STM32_HAVE_OPAMP1
|
||||
|
||||
config STM32_OPAMP2
|
||||
bool "OPAMP2"
|
||||
default n
|
||||
depends on STM32_HAVE_OPAMP2
|
||||
|
||||
config STM32_OPAMP3
|
||||
bool "OPAMP3"
|
||||
default n
|
||||
depends on STM32_HAVE_OPAMP3
|
||||
|
||||
config STM32_OPAMP4
|
||||
bool "OPAMP4"
|
||||
default n
|
||||
depends on STM32_HAVE_OPAMP4
|
||||
|
||||
config STM32_OTGFS
|
||||
bool "OTG FS"
|
||||
|
@ -52,10 +52,8 @@
|
||||
#include "stm32_gpio.h"
|
||||
#include "stm32_comp.h"
|
||||
|
||||
#ifdef CONFIG_STM32_COMP
|
||||
|
||||
/* Some COMP peripheral must be enabled */
|
||||
/* Up to 7 comparators in STM32F2 Series */
|
||||
/* Up to 7 comparators in STM32F3 Series */
|
||||
|
||||
#if defined(CONFIG_STM32_COMP1) || defined(CONFIG_STM32_COMP2) || \
|
||||
defined(CONFIG_STM32_COMP3) || defined(CONFIG_STM32_COMP4) || \
|
||||
@ -196,7 +194,7 @@ static int stm32_compconfig(FAR struct stm32_comp_s *priv);
|
||||
static int stm32_compenable(FAR struct stm32_comp_s *priv, bool enable);
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static const struct comp_ops_s g_compops =
|
||||
@ -1037,5 +1035,3 @@ FAR struct comp_dev_s* stm32_compinitialize(int intf)
|
||||
|
||||
#endif /* CONFIG_STM32_COMP2 || CONFIG_STM32_COMP4 ||
|
||||
* CONFIG_STM32_COMP6 */
|
||||
|
||||
#endif /* CONFIG_STM32_COMP */
|
||||
|
Loading…
Reference in New Issue
Block a user