drivers/sensors: Fix more naming of configurations to be compliant for two more drivers. Still a few more to go.
This commit is contained in:
parent
1f023fa31a
commit
dc8f3778a9
@ -249,7 +249,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CHIP_CSRCS += stm32_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CHIP_CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
||||
#include "stm32_tim.h"
|
||||
#include "stm32_qencoder.h"
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -1219,4 +1219,4 @@ int stm32_qeinitialize(FAR const char *devpath, int tim)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_QENCODER */
|
||||
#endif /* CONFIG_SENSORS_QENCODER */
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
#include "chip.h"
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/************************************************************************************
|
||||
* Included Files
|
||||
@ -137,6 +137,6 @@
|
||||
|
||||
int stm32_qeinitialize(FAR const char *devpath, int tim);
|
||||
|
||||
#endif /* CONFIG_QENCODER */
|
||||
#endif /* CONFIG_SENSORS_QENCODER */
|
||||
#endif /* __ARCH_ARM_SRC_STM32_STM32_QENCODER_H */
|
||||
|
||||
|
@ -208,7 +208,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CHIP_CSRCS += stm32l4_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CHIP_CSRCS += stm32l4_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
||||
#include "stm32l4_tim.h"
|
||||
#include "stm32l4_qencoder.h"
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -1154,4 +1154,4 @@ int stm32l4_qeinitialize(FAR const char *devpath, int tim)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_QENCODER */
|
||||
#endif /* CONFIG_SENSORS_QENCODER */
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
#include "chip.h"
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/************************************************************************************
|
||||
* Included Files
|
||||
@ -136,6 +136,6 @@
|
||||
|
||||
int stm32l4_qeinitialize(FAR const char *devpath, int tim);
|
||||
|
||||
#endif /* CONFIG_QENCODER */
|
||||
#endif /* CONFIG_SENSORS_QENCODER */
|
||||
#endif /* __ARCH_ARM_SRC_STM32L4_STM32L4_QENCODER_H */
|
||||
|
||||
|
@ -74,7 +74,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += kl_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += kl_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -54,7 +54,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += stm32_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -260,7 +260,7 @@ int stm32_pwm_setup(void);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
|
@ -373,7 +373,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
ret = stm32_qencoder_initialize("/dev/qe0", CONFIG_MIKROE_QETIMER);
|
||||
|
@ -62,7 +62,7 @@ CSRCS += stm32_ajoystick.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -328,7 +328,7 @@ int stm32_adc_setup(void);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
|
@ -143,7 +143,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
ret = stm32_qencoder_initialize("/dev/qe0", CONFIG_NUCLEO_F401RE_QETIMER);
|
||||
|
@ -52,7 +52,7 @@ ifeq ($(CONFIG_ADC),y)
|
||||
CSRCS += stm32_adc.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -182,7 +182,7 @@ int board_timer_driver_initialize(FAR const char *devpath, int timer);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32l4_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
|
@ -112,7 +112,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
#ifdef HAVE_RTC_DRIVER
|
||||
FAR struct rtc_lowerhalf_s *rtclower;
|
||||
#endif
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int index;
|
||||
char buf[9];
|
||||
#endif
|
||||
@ -223,7 +223,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
|
@ -62,7 +62,7 @@ CSRCS += stm32_ajoystick.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -383,7 +383,7 @@ int board_timer_driver_initialize(FAR const char *devpath, int timer);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32l4_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
|
@ -112,7 +112,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
#ifdef HAVE_RTC_DRIVER
|
||||
FAR struct rtc_lowerhalf_s *rtclower;
|
||||
#endif
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int index;
|
||||
char buf[9];
|
||||
#endif
|
||||
@ -236,7 +236,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
|
@ -54,7 +54,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += nuc_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += nuc_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -81,7 +81,7 @@ ifeq ($(CONFIG_INPUT_STMPE811),y)
|
||||
CSRCS += stm32_stmpe811.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -57,7 +57,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += stm32_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -255,7 +255,7 @@ Quadrature Encoder:
|
||||
- These setting enable support for the common QEncode upper half driver:
|
||||
|
||||
CONFIG_SENSORS=y
|
||||
CONFIG_QENCODER=y
|
||||
CONFIG_SENSORS_QENCODER=y
|
||||
|
||||
- This is a board setting that selected timer 4 for use with the
|
||||
quadrature encode:
|
||||
|
@ -97,11 +97,11 @@ ifeq ($(CONFIG_LCD_PCD8544),y)
|
||||
CSRCS += stm32_pcd8544.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_VEML6070),y)
|
||||
ifeq ($(CONFIG_SENSORS_VEML6070),y)
|
||||
CSRCS += stm32_veml6070.c
|
||||
endif
|
||||
|
||||
|
@ -250,7 +250,7 @@ int stm32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
ret = stm32_qencoder_initialize("/dev/qe0", CONFIG_STM32F103MINIMUM_QETIMER);
|
||||
@ -272,7 +272,7 @@ int stm32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_VEML6070
|
||||
#ifdef CONFIG_SENSORS_VEML6070
|
||||
/* Register the UV-A light sensor */
|
||||
|
||||
ret = stm32_veml6070initialize("/dev/uvlight0");
|
||||
|
@ -49,7 +49,7 @@
|
||||
#include "stm32_i2c.h"
|
||||
#include "stm32f103_minimum.h"
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_VEML6070)
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_VEML6070)
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -102,4 +102,4 @@ int stm32_veml6070initialize(FAR const char *devpath)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2C && CONFIG_VEML6070 && CONFIG_STM32_I2C1 */
|
||||
#endif /* CONFIG_I2C && CONFIG_SENSORS_VEML6070 && CONFIG_STM32_I2C1 */
|
||||
|
@ -225,7 +225,7 @@ int stm32_w25initialize(int minor);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
@ -334,7 +334,7 @@ int stm32_tone_setup(void);
|
||||
*
|
||||
***********************************************************************************/
|
||||
|
||||
#ifdef CONFIG_VEML6070
|
||||
#ifdef CONFIG_SENSORS_VEML6070
|
||||
int stm32_veml6070initialize(FAR const char *devpath);
|
||||
#endif
|
||||
|
||||
|
@ -53,5 +53,5 @@ CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||
CONFIG_TASK_NAME_SIZE=0
|
||||
CONFIG_USART1_SERIAL_CONSOLE=y
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
CONFIG_VEML6070=y
|
||||
CONFIG_SENSORS_VEML6070=y
|
||||
CONFIG_WDOG_INTRESERVE=0
|
||||
|
@ -56,7 +56,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += stm32_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -137,7 +137,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
ret = stm32_qencoder_initialize("/dev/qe0", CONFIG_STM32F3DISCO_QETIMER);
|
||||
|
@ -181,7 +181,7 @@ int stm32_pwm_setup(void);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
|
@ -726,7 +726,7 @@ Where <subdir> is one of the following:
|
||||
|
||||
CONFIG_EXAMPLES_QENCODER=y : Enable the apps/examples/qencoder
|
||||
CONFIG_SENSORS=y : Enable support for sensors
|
||||
CONFIG_QENCODER=y : Enable the generic Quadrature Encoder infrastructure
|
||||
CONFIG_SENSORS_QENCODER=y : Enable the generic Quadrature Encoder infrastructure
|
||||
CONFIG_STM32_TIM8=y : Enable TIM8
|
||||
CONFIG_STM32_TIM2=n : (Or optionally TIM2)
|
||||
CONFIG_STM32_TIM8_QE=y : Use TIM8 as the quadrature encoder
|
||||
|
@ -458,7 +458,7 @@ Quadrature Encoder:
|
||||
CONFIG_BOARD_INITIALIZE=y
|
||||
|
||||
CONFIG_SENSORS=y
|
||||
CONFIG_QENCODER=y
|
||||
CONFIG_SENSORS_QENCODER=y
|
||||
|
||||
- The timer 2 needs to be enabled:
|
||||
|
||||
@ -1691,7 +1691,7 @@ Where <subdir> is one of the following:
|
||||
|
||||
CONFIG_EXAMPLES_QENCODER=y : Enable the apps/examples/qencoder
|
||||
CONFIG_SENSORS=y : Enable support for sensors
|
||||
CONFIG_QENCODER=y : Enable the generic Quadrature Encoder infrastructure
|
||||
CONFIG_SENSORS_QENCODER=y : Enable the generic Quadrature Encoder infrastructure
|
||||
CONFIG_STM32_TIM8=y : Enable TIM8
|
||||
CONFIG_STM32_TIM2=n : (Or optionally TIM2)
|
||||
CONFIG_STM32_TIM8_QE=y : Use TIM8 as the quadrature encoder
|
||||
|
@ -96,11 +96,11 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += stm32_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_XEN1210),y)
|
||||
ifeq ($(CONFIG_SENSORS_XEN1210),y)
|
||||
CSRCS += stm32_xen1210.c
|
||||
endif
|
||||
|
||||
@ -116,7 +116,7 @@ ifeq ($(CONFIG_PM_BUTTONS),y)
|
||||
CSRCS += stm32_pmbuttons.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ZEROCROSS),y)
|
||||
ifeq ($(CONFIG_SENSORS_ZEROCROSS),y)
|
||||
CSRCS += stm32_zerocross.c
|
||||
endif
|
||||
|
||||
|
@ -110,7 +110,7 @@ int stm32_bringup(void)
|
||||
stm32_bh1750initialize("/dev/light0");
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ZEROCROSS
|
||||
#ifdef CONFIG_SENSORS_ZEROCROSS
|
||||
/* Configure the zero-crossing driver */
|
||||
|
||||
stm32_zerocross_initialize();
|
||||
@ -197,7 +197,7 @@ int stm32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
ret = stm32_qencoder_initialize("/dev/qe0", CONFIG_STM32F4DISCO_QETIMER);
|
||||
@ -283,7 +283,7 @@ int stm32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XEN1210
|
||||
#ifdef CONFIG_SENSORS_XEN1210
|
||||
ret = xen1210_archinitialize(0);
|
||||
#endif
|
||||
|
||||
|
@ -65,15 +65,15 @@
|
||||
****************************************************************************/
|
||||
/* Configuration ************************************************************/
|
||||
|
||||
#ifdef CONFIG_XEN1210
|
||||
#ifdef CONFIG_SENSORS_XEN1210
|
||||
#ifndef CONFIG_STM32_SPI1
|
||||
# error "XEN1210 support requires CONFIG_STM32_SPI1"
|
||||
#endif
|
||||
|
||||
#define CONFIG_XEN1210_SPIDEV 1
|
||||
#define BOARD_XEN1210_SPIDEV 1
|
||||
|
||||
#ifndef CONFIG_XEN1210_DEVMINOR
|
||||
# define CONFIG_XEN1210_DEVMINOR 0
|
||||
#ifndef BOARD_XEN1210_DEVMINOR
|
||||
# define BOARD_XEN1210_DEVMINOR 0
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_STM32_TIM1
|
||||
@ -323,10 +323,10 @@ int xen1210_archinitialize(int minor)
|
||||
|
||||
/* Get an instance of the I2C interface */
|
||||
|
||||
dev = stm32_spibus_initialize(CONFIG_XEN1210_SPIDEV);
|
||||
dev = stm32_spibus_initialize(BOARD_XEN1210_SPIDEV);
|
||||
if (!dev)
|
||||
{
|
||||
snerr("ERROR: Failed to initialize SPI bus %d\n", CONFIG_XEN1210_SPIDEV);
|
||||
snerr("ERROR: Failed to initialize SPI bus %d\n", BOARD_XEN1210_SPIDEV);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@ -342,7 +342,7 @@ int xen1210_archinitialize(int minor)
|
||||
|
||||
/* Initialize and register the XEN1210 driver */
|
||||
|
||||
ret = xen1210_register(g_xen1210config.handle, CONFIG_XEN1210_DEVMINOR);
|
||||
ret = xen1210_register(g_xen1210config.handle, BOARD_XEN1210_DEVMINOR);
|
||||
if (ret < 0)
|
||||
{
|
||||
snerr("ERROR: Failed to register XEN1210 driver: %d\n", ret);
|
||||
|
@ -49,7 +49,7 @@
|
||||
#include "stm32_gpio.h"
|
||||
#include "stm32f4discovery.h"
|
||||
|
||||
#ifdef CONFIG_ZEROCROSS
|
||||
#ifdef CONFIG_SENSORS_ZEROCROSS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -202,4 +202,4 @@ int stm32_zerocross_initialize(void)
|
||||
return zc_register("/dev/zc0", &g_zcrosslower);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ZEROCROSS */
|
||||
#endif /* CONFIG_SENSORS_ZEROCROSS */
|
||||
|
@ -614,7 +614,7 @@ void weak_function stm32_netinitialize(void);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
@ -626,7 +626,7 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ZEROCROSS
|
||||
#ifdef CONFIG_SENSORS_ZEROCROSS
|
||||
int stm32_zerocross_initialize(void);
|
||||
#endif
|
||||
|
||||
@ -740,7 +740,7 @@ int stm32_timer_driver_setup(FAR const char *devpath, int timer);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_XEN1210
|
||||
#ifdef CONFIG_SENSORS_XEN1210
|
||||
int xen1210_archinitialize(int minor);
|
||||
#endif
|
||||
|
||||
|
@ -55,4 +55,4 @@ CONFIG_USART2_RXBUFSIZE=128
|
||||
CONFIG_USART2_SERIAL_CONSOLE=y
|
||||
CONFIG_USART2_TXBUFSIZE=128
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
CONFIG_XEN1210=y
|
||||
CONFIG_SENSORS_XEN1210=y
|
||||
|
@ -56,7 +56,7 @@ ifeq ($(CONFIG_PWM),y)
|
||||
CSRCS += stm32_pwm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += stm32_qencoder.c
|
||||
endif
|
||||
|
||||
|
@ -101,7 +101,7 @@ int board_app_initialize(uintptr_t arg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
/* Initialize and register the qencoder driver */
|
||||
|
||||
ret = stm32_qencoder_initialize("/dev/qe0", CONFIG_STM32LDISCO_QETIMER);
|
||||
|
@ -263,7 +263,7 @@ int stm32_pwm_setup(void);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
int stm32_qencoder_initialize(FAR const char *devpath, int timer);
|
||||
#endif
|
||||
|
||||
|
@ -343,7 +343,7 @@ config LM75_I2C_FREQUENCY
|
||||
range 1 100000
|
||||
depends on LM75_I2C
|
||||
|
||||
config LM92
|
||||
config SENSORS_LM92
|
||||
bool "TI LM92 Temperature Sensor support"
|
||||
default n
|
||||
select I2C
|
||||
@ -356,24 +356,35 @@ config LM92_I2C_FREQUENCY
|
||||
range 1 400000
|
||||
depends on LM92
|
||||
|
||||
config QENCODER
|
||||
config SENSORS_QENCODER
|
||||
bool "Qencoder"
|
||||
default n
|
||||
|
||||
config VEML6070
|
||||
config SENSORS_VEML6070
|
||||
bool "Vishay VEML6070 UV-A Light Sensor support"
|
||||
default n
|
||||
select I2C
|
||||
---help---
|
||||
Enable driver support for the Vishay VEML6070 UV-A light sensor.
|
||||
|
||||
config XEN1210
|
||||
config VEML6070_I2C_FREQUENCY
|
||||
int "VEML6070 I2C frequency"
|
||||
default 100000
|
||||
depends on SENSORS_VEML6070
|
||||
|
||||
config SENSORS_XEN1210
|
||||
bool "Sensixs XEN1210 Magnetometer"
|
||||
default n
|
||||
select SPI
|
||||
---help---
|
||||
Enable driver support for the Sensixs XEN1210 Magnetometer.
|
||||
|
||||
config ZEROCROSS
|
||||
config XEN1210_REGDBUG
|
||||
bool "Debug support for the XEN1210"
|
||||
default n
|
||||
---help---
|
||||
Enables register level debug features for the XEN1210
|
||||
|
||||
config SENSORS_ZEROCROSS
|
||||
bool "Zero Cross Sensor"
|
||||
default n
|
||||
|
@ -158,25 +158,25 @@ endif # CONFIG_SPI
|
||||
|
||||
# Quadrature encoder upper half
|
||||
|
||||
ifeq ($(CONFIG_QENCODER),y)
|
||||
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
||||
CSRCS += qencoder.c
|
||||
endif
|
||||
|
||||
# Vishay VEML6070
|
||||
|
||||
ifeq ($(CONFIG_VEML6070),y)
|
||||
ifeq ($(CONFIG_SENSORS_VEML6070),y)
|
||||
CSRCS += veml6070.c
|
||||
endif
|
||||
|
||||
# Sensixs XEN1210
|
||||
|
||||
ifeq ($(CONFIG_XEN1210),y)
|
||||
ifeq ($(CONFIG_SENSORS_XEN1210),y)
|
||||
CSRCS += xen1210.c
|
||||
endif
|
||||
|
||||
# Zero Cross upper half
|
||||
|
||||
ifeq ($(CONFIG_ZEROCROSS),y)
|
||||
ifeq ($(CONFIG_SENSORS_ZEROCROSS),y)
|
||||
CSRCS += zerocross.c
|
||||
endif
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include <nuttx/i2c/i2c_master.h>
|
||||
#include <nuttx/sensors/as5048b.h>
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_QENCODER) && defined(CONFIG_SENSORS_AS5048B)
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_QENCODER) && defined(CONFIG_SENSORS_AS5048B)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
@ -619,4 +619,4 @@ FAR struct qe_lowerhalf_s *as5048b_initialize(FAR struct i2c_master_s *i2c,
|
||||
return &priv->lower;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2C && CONFIG_QENCODER && CONFIG_SENSORS_AS5048B */
|
||||
#endif /* CONFIG_I2C && CONFIG_SENSORS_QENCODER && CONFIG_SENSORS_AS5048B */
|
||||
|
@ -58,7 +58,7 @@
|
||||
|
||||
#include <arch/irq.h>
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -385,4 +385,4 @@ int qe_register(FAR const char *devpath, FAR struct qe_lowerhalf_s *lower)
|
||||
return register_driver(devpath, &g_qeops, 0666, upper);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_QENCODER */
|
||||
#endif /* CONFIG_SENSORS_QENCODER */
|
||||
|
@ -50,7 +50,7 @@
|
||||
#include <nuttx/sensors/veml6070.h>
|
||||
#include <nuttx/random.h>
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_VEML6070)
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_VEML6070)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-process Definitions
|
||||
@ -354,4 +354,4 @@ int veml6070_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2C && CONFIG_VEML6070 */
|
||||
#endif /* CONFIG_I2C && CONFIG_SENSORS_VEML6070 */
|
||||
|
@ -53,7 +53,7 @@
|
||||
|
||||
#include "xen1210.h"
|
||||
|
||||
#if defined(CONFIG_XEN1210)
|
||||
#if defined(CONFIG_SENSORS_XEN1210)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
|
@ -49,7 +49,7 @@
|
||||
#include <nuttx/wqueue.h>
|
||||
#include <nuttx/sensors/xen1210.h>
|
||||
|
||||
#if defined(CONFIG_XEN1210)
|
||||
#if defined(CONFIG_SENSORS_XEN1210)
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
@ -58,7 +58,7 @@
|
||||
|
||||
#include <nuttx/irq.h>
|
||||
|
||||
#ifdef CONFIG_ZEROCROSS
|
||||
#ifdef CONFIG_SENSORS_ZEROCROSS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -541,4 +541,4 @@ int zc_register(FAR const char *devname, FAR struct zc_lowerhalf_s *lower)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ZEROCROSS */
|
||||
#endif /* CONFIG_SENSORS_ZEROCROSS */
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/sensors/qencoder.h>
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_QENCODER) && defined(CONFIG_SENSORS_AS5048B)
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_QENCODER) && defined(CONFIG_SENSORS_AS5048B)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -137,5 +137,5 @@ FAR struct qe_lowerhalf_s *as5048b_initialize(FAR struct i2c_master_s *i2c,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_I2C && CONFIG_QENCODER && CONFIG_SENSORS_AS5048B */
|
||||
#endif /* CONFIG_I2C && CONFIG_SENSORS_QENCODER && CONFIG_SENSORS_AS5048B */
|
||||
#endif /* __INCLUDE_NUTTX_SENSORS_AS5048B */
|
||||
|
@ -43,13 +43,13 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
#ifdef CONFIG_QENCODER
|
||||
#ifdef CONFIG_SENSORS_QENCODER
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* Configuration ************************************************************
|
||||
* CONFIG_QENCODER - Enables support for the quadrature encoder upper half
|
||||
* CONFIG_SENSORS_QENCODER - Enables support for the quadrature encoder upper half
|
||||
*/
|
||||
|
||||
/* IOCTL Commands ***********************************************************/
|
||||
@ -187,5 +187,5 @@ int qe_register(FAR const char *devpath, FAR struct qe_lowerhalf_s *lower);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_QENCODER */
|
||||
#endif /* CONFIG_SENSORS_QENCODER */
|
||||
#endif /* __INCLUDE_NUTTX_SENSORS_QENCODER_H */
|
||||
|
@ -45,7 +45,7 @@
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/sensors/ioctl.h>
|
||||
|
||||
#if defined(CONFIG_VEML6070)
|
||||
#if defined(CONFIG_SENSORS_VEML6070)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -118,5 +118,5 @@ int veml6070_register(FAR const char *devpath, FAR struct i2c_master_s *i2c,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_VEML6070 */
|
||||
#endif /* CONFIG_SENSORS_VEML6070 */
|
||||
#endif /* __INCLUDE_NUTTX_SENSORS_VEML6070_H */
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/irq.h>
|
||||
|
||||
#if defined(CONFIG_XEN1210)
|
||||
#if defined(CONFIG_SENSORS_XEN1210)
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -56,7 +56,7 @@
|
||||
*
|
||||
* Settings that effect the driver: CONFIG_DISABLE_POLL
|
||||
*
|
||||
* CONFIG_XEN1210
|
||||
* CONFIG_SENSORS_XEN1210
|
||||
* Enables support for the XEN1210 driver
|
||||
*/
|
||||
|
||||
|
@ -43,13 +43,13 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
#ifdef CONFIG_ZEROCROSS
|
||||
#ifdef CONFIG_SENSORS_ZEROCROSS
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* Configuration ************************************************************
|
||||
* CONFIG_ZEROCROSS - Enables support for the zero cross AC detection upper
|
||||
* CONFIG_SENSORS_ZEROCROSS - Enables support for the zero cross AC detection upper
|
||||
* half
|
||||
*/
|
||||
|
||||
@ -147,5 +147,5 @@ int zc_register(FAR const char *devpath, FAR struct zc_lowerhalf_s *lower);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_ZEROCROSS */
|
||||
#endif /* CONFIG_SENSORS_ZEROCROSS */
|
||||
#endif /* __INCLUDE_NUTTX_SENSORS_ZEROCROSS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user