sensors: use one single sys log config for sensors

Change-Id: I27aadd15ad0ebbaf6373591d52e63fe3f4560378
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-10-05 12:49:41 -04:00 committed by Anas Nashif
commit 16c5416d70
46 changed files with 41 additions and 459 deletions

View file

@ -23,6 +23,25 @@ menuconfig SENSOR
help help
Include sensor drivers in system config Include sensor drivers in system config
config SYS_LOG_SENSOR_LEVEL
int "Sensor Log level"
depends on SYS_LOG && SENSOR
default 0
range 0 4
help
Sets log level for sensor driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config SENSOR_INIT_PRIORITY config SENSOR_INIT_PRIORITY
int int
prompt "Sensor init priority" prompt "Sensor init priority"

View file

@ -24,25 +24,6 @@ menuconfig AK8975
help help
Enable driver for AK8975 magnetometer. Enable driver for AK8975 magnetometer.
config AK8975_SYS_LOG_LEVEL
int "AK8975 Log level"
depends on SYS_LOG && AK8975
default 0
range 0 4
help
Sets log level for AK8975 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config AK8975_NAME config AK8975_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -25,25 +25,6 @@ menuconfig BMA280
Enable driver for BMA280 I2C-based triaxial accelerometer sensor Enable driver for BMA280 I2C-based triaxial accelerometer sensor
family. family.
config BMA280_SYS_LOG_LEVEL
int "BMA280 Gyro Log level"
depends on SYS_LOG && BMA280
default 0
range 0 4
help
Sets log level for BMA280 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
choice choice
prompt "Chip type" prompt "Chip type"
depends on BMA280 depends on BMA280

View file

@ -23,25 +23,6 @@ menuconfig BMC150_MAGN
help help
Enable driver for BMC150 I2C-based magnetometer sensor. Enable driver for BMC150 I2C-based magnetometer sensor.
config BMC150_MAGN_SYS_LOG_LEVEL
int "BMC150 Magnetometer Log level"
depends on SYS_LOG && BMC150_MAGN
default 0
range 0 4
help
Sets log level for BMC150 Magnetometer driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config BMC150_MAGN_DEV_NAME config BMC150_MAGN_DEV_NAME
string "BMC150_MAGN device name" string "BMC150_MAGN device name"
depends on BMC150_MAGN depends on BMC150_MAGN

View file

@ -22,25 +22,6 @@ menuconfig BME280
help help
Enable driver for BME280 I2C-based temperature and pressure sensor. Enable driver for BME280 I2C-based temperature and pressure sensor.
config BME280_SYS_LOG_LEVEL
int "BME280 Log level"
depends on SYS_LOG && BME280
default 0
range 0 4
help
Sets log level for BMP280 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config BME280_DEV_NAME config BME280_DEV_NAME
string "BME280 device name" string "BME280 device name"
depends on BME280 depends on BME280

View file

@ -6,25 +6,6 @@ menuconfig BMG160
help help
Enable Bosch BMG160 gyroscope support. Enable Bosch BMG160 gyroscope support.
config BMG160_SYS_LOG_LEVEL
int "BMG160 Log level"
depends on SYS_LOG && BMG160
default 0
range 0 4
help
Sets log level for BMG160 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config BMG160_DRV_NAME config BMG160_DRV_NAME
string "Driver's name" string "Driver's name"
depends on BMG160 depends on BMG160

View file

@ -7,25 +7,6 @@ menuconfig BMI160
Enable Bosch BMI160 inertial measurement unit that provides acceleration Enable Bosch BMI160 inertial measurement unit that provides acceleration
and angular rate measurements. and angular rate measurements.
config BMI160_SYS_LOG_LEVEL
int "BMI160 Log level"
depends on SYS_LOG && BMI160
default 0
range 0 4
help
Sets log level for BMI160 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config BMI160_INIT_PRIORITY config BMI160_INIT_PRIORITY
int int
prompt "BMI160 Init priority" prompt "BMI160 Init priority"

View file

@ -24,25 +24,6 @@ menuconfig DHT
help help
Enable driver for the DHT temperature and humidity sensor family. Enable driver for the DHT temperature and humidity sensor family.
config DHT_SYS_LOG_LEVEL
int "DHT Log level"
depends on SYS_LOG && DHT
default 0
range 0 4
help
Sets log level for DHT driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
choice choice
prompt "Chip type" prompt "Chip type"
depends on DHT depends on DHT

View file

@ -24,25 +24,6 @@ menuconfig HDC1008
help help
Enable driver for HDC1008 temperature and humidity sensors. Enable driver for HDC1008 temperature and humidity sensors.
config HDC1008_SYS_LOG_LEVEL
int "HDC1008 Log level"
depends on SYS_LOG && HDC1008
default 0
range 0 4
help
Sets log level for HDC1008 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config HDC1008_NAME config HDC1008_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -22,25 +22,6 @@ menuconfig HMC5883L
help help
Enable driver for HMC5883L I2C-based magnetometer. Enable driver for HMC5883L I2C-based magnetometer.
config HMC5883L_SYS_LOG_LEVEL
int "HMC5883L Log level"
depends on SYS_LOG && HMC5883L
default 0
range 0 4
help
Sets log level for HMC5883L driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config HMC5883L_NAME config HMC5883L_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -23,25 +23,6 @@ menuconfig HP206C
help help
Enable HopeRF HP206C barometer and altimeter support. Enable HopeRF HP206C barometer and altimeter support.
config HP206C_SYS_LOG_LEVEL
int "HP206C Log level"
depends on SYS_LOG && HP206C
default 0
range 0 4
help
Sets log level for HP206C driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in adition to previous level
- 3 INFO: write SYS_LOG_INF in adition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in adition to previous levels
config HP206C_DRV_NAME config HP206C_DRV_NAME
string "Driver's name" string "Driver's name"
depends on HP206C depends on HP206C

View file

@ -22,25 +22,6 @@ menuconfig HTS221
help help
Enable driver for HTS221 I2C-based temperature and humidity sensor. Enable driver for HTS221 I2C-based temperature and humidity sensor.
config HTS221_SYS_LOG_LEVEL
int "HTS221 Log level"
depends on SYS_LOG && HTS221
default 0
range 0 4
help
Sets log level for HTS221 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config HTS221_NAME config HTS221_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -24,25 +24,6 @@ menuconfig ISL29035
help help
Enable driver for the ISL29035 light sensor. Enable driver for the ISL29035 light sensor.
config ISL29035_SYS_LOG_LEVEL
int "ISL29035 Log level"
depends on SYS_LOG && ISL29035
default 0
range 0 4
help
Sets log level for ISL29035 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config ISL29035_NAME config ISL29035_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -24,25 +24,6 @@ menuconfig LIS3DH
help help
Enable driver for LIS3DH I2C-based triaxial accelerometer sensor. Enable driver for LIS3DH I2C-based triaxial accelerometer sensor.
config LIS3DH_SYS_LOG_LEVEL
int "LIS3DH Log level"
depends on SYS_LOG && LIS3DH
default 0
range 0 4
help
Sets log level for LIS3DH driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config LIS3DH_NAME config LIS3DH_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -22,25 +22,6 @@ menuconfig LIS3MDL
help help
Enable driver for LIS3MDL I2C-based magnetometer. Enable driver for LIS3MDL I2C-based magnetometer.
config LIS3MDL_SYS_LOG_LEVEL
int "LIS3MDL Log level"
depends on SYS_LOG && LIS3MDL
default 0
range 0 4
help
Sets log level for LIS3MDL driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config LIS3MDL_NAME config LIS3MDL_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -23,25 +23,6 @@ menuconfig LSM9DS0_GYRO
help help
Enable driver for LSM9DS0 I2C-based gyroscope sensor. Enable driver for LSM9DS0 I2C-based gyroscope sensor.
config LSM9DS0_GYRO_SYS_LOG_LEVEL
int "LSM9DS0 Gyro Log level"
depends on SYS_LOG && LSM9DS0_GYRO
default 0
range 0 4
help
Sets log level for LSM9DS0 Gyro driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config LSM9DS0_GYRO_DEV_NAME config LSM9DS0_GYRO_DEV_NAME
string "LSM9DS0_GYRO device name" string "LSM9DS0_GYRO device name"
depends on LSM9DS0_GYRO depends on LSM9DS0_GYRO

View file

@ -24,25 +24,6 @@ menuconfig LSM9DS0_MFD
help help
Enable driver for LSM9DS0 I2C-based MFD sensor. Enable driver for LSM9DS0 I2C-based MFD sensor.
config LSM9DS0_MFD_SYS_LOG_LEVEL
int "LSM9DS0 MFD Log level"
depends on SYS_LOG && LSM9DS0_MFD
default 0
range 0 4
help
Sets log level for LSM9DS0 MFD driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config LSM9DS0_MFD_DEV_NAME config LSM9DS0_MFD_DEV_NAME
string "LSM9DS0_MFD device name" string "LSM9DS0_MFD device name"
depends on LSM9DS0_MFD depends on LSM9DS0_MFD

View file

@ -24,25 +24,6 @@ menuconfig MAX44009
help help
Enable driver for MAX44009 light sensors. Enable driver for MAX44009 light sensors.
config MAX44009_SYS_LOG_LEVEL
int "MAX44009 Log level"
depends on SYS_LOG && MAX44009
default 0
range 0 4
help
Sets log level for MAX44009 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config MAX44009_DRV_NAME config MAX44009_DRV_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -23,25 +23,6 @@ menuconfig MCP9808
help help
Enable driver for MCP9808 temperature sensor. Enable driver for MCP9808 temperature sensor.
config MCP9808_SYS_LOG_LEVEL
int "MCP9808 Log level"
depends on SYS_LOG && MCP9808
default 0
range 0 4
help
Sets log level for MCP9808 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config MCP9808_DEV_NAME config MCP9808_DEV_NAME
string "MCP9808 device name" string "MCP9808 device name"
depends on MCP9808 depends on MCP9808

View file

@ -24,25 +24,6 @@ menuconfig MPU6050
help help
Enable driver for MPU6050 I2C-based six-axis motion tracking device. Enable driver for MPU6050 I2C-based six-axis motion tracking device.
config MPU6050_SYS_LOG_LEVEL
int "MPU6050 Log level"
depends on SYS_LOG && MPU6050
default 0
range 0 4
help
Sets log level for MPU6050 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config MPU6050_NAME config MPU6050_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -24,25 +24,6 @@ menuconfig SHT3XD
help help
Enable driver for SHT3xD temperature and humidity sensors. Enable driver for SHT3xD temperature and humidity sensors.
config SHT3XD_SYS_LOG_LEVEL
int "SHT3XD Log level"
depends on SYS_LOG && SHT3XD
default 0
range 0 4
help
Sets log level for SHT3XD driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config SHT3XD_NAME config SHT3XD_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -23,25 +23,6 @@ menuconfig SX9500
help help
Enable driver for SX9500 I2C-based SAR proximity sensor. Enable driver for SX9500 I2C-based SAR proximity sensor.
config SX9500_SYS_LOG_LEVEL
int "SX9500 Log level"
depends on SYS_LOG && SX9500
default 0
range 0 4
help
Sets log level for SX9500 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config SX9500_DEV_NAME config SX9500_DEV_NAME
string "SX9500 device name" string "SX9500 device name"
depends on SX9500 depends on SX9500

View file

@ -24,25 +24,6 @@ menuconfig TMP007
help help
Enable driver for TMP007 infrared thermopile sensors. Enable driver for TMP007 infrared thermopile sensors.
config TMP007_SYS_LOG_LEVEL
int "TMP007 Log level"
depends on SYS_LOG && TMP007
default 0
range 0 4
help
Sets log level for TMP007 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config TMP007_NAME config TMP007_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -24,25 +24,6 @@ menuconfig TMP112
help help
Enable driver for TMP112 infrared thermopile sensors. Enable driver for TMP112 infrared thermopile sensors.
config TMP112_SYS_LOG_LEVEL
int "TMP112 Log level"
depends on SYS_LOG && TMP112
default 0
range 0 4
help
Sets log level for TMP112 driver.
Levels are:
- 0 OFF: do not write
- 1 ERROR: only write SYS_LOG_ERR
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
- 3 INFO: write SYS_LOG_INF in addition to previous levels
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
config TMP112_NAME config TMP112_NAME
string string
prompt "Driver name" prompt "Driver name"

View file

@ -20,7 +20,7 @@
#include <device.h> #include <device.h>
#define SYS_LOG_DOMAIN "AK8975" #define SYS_LOG_DOMAIN "AK8975"
#define SYS_LOG_LEVEL CONFIG_AK8975_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define AK8975_REG_CHIP_ID 0x00 #define AK8975_REG_CHIP_ID 0x00

View file

@ -166,6 +166,6 @@ int bma280_init_interrupt(struct device *dev);
#endif #endif
#define SYS_LOG_DOMAIN "BMA280" #define SYS_LOG_DOMAIN "BMA280"
#define SYS_LOG_LEVEL CONFIG_BMA280_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_BMA280_H__ */ #endif /* __SENSOR_BMA280_H__ */

View file

@ -147,6 +147,6 @@ struct bme280_data {
}; };
#define SYS_LOG_DOMAIN "BME280" #define SYS_LOG_DOMAIN "BME280"
#define SYS_LOG_LEVEL CONFIG_BME280_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_BME280_H__ */ #endif /* __SENSOR_BME280_H__ */

View file

@ -239,6 +239,6 @@ int bmg160_slope_config(struct device *dev, enum sensor_attribute attr,
const struct sensor_value *val); const struct sensor_value *val);
#define SYS_LOG_DOMAIN "BMG160" #define SYS_LOG_DOMAIN "BMG160"
#define SYS_LOG_LEVEL CONFIG_BMG160_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* _BMG160_H_ */ #endif /* _BMG160_H_ */

View file

@ -496,6 +496,6 @@ int32_t bmi160_acc_reg_val_to_range(uint8_t reg_val);
int32_t bmi160_gyr_reg_val_to_range(uint8_t reg_val); int32_t bmi160_gyr_reg_val_to_range(uint8_t reg_val);
#define SYS_LOG_DOMAIN "BMI160" #define SYS_LOG_DOMAIN "BMI160"
#define SYS_LOG_LEVEL CONFIG_BMI160_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* _BMI160_H_ */ #endif /* _BMI160_H_ */

View file

@ -20,7 +20,7 @@
#include <device.h> #include <device.h>
#define SYS_LOG_DOMAIN "DHT" #define SYS_LOG_DOMAIN "DHT"
#define SYS_LOG_LEVEL CONFIG_DHT_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define DHT_START_SIGNAL_DURATION 18000 #define DHT_START_SIGNAL_DURATION 18000

View file

@ -36,6 +36,6 @@ struct hdc1008_data {
}; };
#define SYS_LOG_DOMAIN "HDC1008" #define SYS_LOG_DOMAIN "HDC1008"
#define SYS_LOG_LEVEL CONFIG_HDC1008_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif #endif

View file

@ -24,7 +24,7 @@
#include <misc/nano_work.h> #include <misc/nano_work.h>
#define SYS_LOG_DOMAIN "HMC5883L" #define SYS_LOG_DOMAIN "HMC5883L"
#define SYS_LOG_LEVEL CONFIG_HMC5883L_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define HMC5883L_I2C_ADDR 0x1E #define HMC5883L_I2C_ADDR 0x1E

View file

@ -94,6 +94,6 @@ struct hp206c_device_data {
}; };
#define SYS_LOG_DOMAIN "HP206C" #define SYS_LOG_DOMAIN "HP206C"
#define SYS_LOG_LEVEL CONFIG_HP206C_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* _SENSOR_HP206C_H_ */ #endif /* _SENSOR_HP206C_H_ */

View file

@ -24,7 +24,7 @@
#include <misc/nano_work.h> #include <misc/nano_work.h>
#define SYS_LOG_DOMAIN "HTS221" #define SYS_LOG_DOMAIN "HTS221"
#define SYS_LOG_LEVEL CONFIG_HTS221_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define HTS221_I2C_ADDR 0x5F #define HTS221_I2C_ADDR 0x5F

View file

@ -157,6 +157,6 @@ int isl29035_init_interrupt(struct device *dev);
#endif #endif
#define SYS_LOG_DOMAIN "ISL29035" #define SYS_LOG_DOMAIN "ISL29035"
#define SYS_LOG_LEVEL CONFIG_ISL29035_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* _SENSOR_ISL29035_H_ */ #endif /* _SENSOR_ISL29035_H_ */

View file

@ -125,6 +125,6 @@ int lis3dh_init_interrupt(struct device *dev);
#endif #endif
#define SYS_LOG_DOMAIN "LIS3DH" #define SYS_LOG_DOMAIN "LIS3DH"
#define SYS_LOG_LEVEL CONFIG_LIS3DH_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_LIS3DH__ */ #endif /* __SENSOR_LIS3DH__ */

View file

@ -24,7 +24,7 @@
#include <misc/nano_work.h> #include <misc/nano_work.h>
#define SYS_LOG_DOMAIN "LIS3MDL" #define SYS_LOG_DOMAIN "LIS3MDL"
#define SYS_LOG_LEVEL CONFIG_LIS3MDL_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define LIS3MDL_I2C_ADDR_BASE 0x1C #define LIS3MDL_I2C_ADDR_BASE 0x1C

View file

@ -169,6 +169,6 @@ struct lps25hb_data {
}; };
#define SYS_LOG_DOMAIN "LPS25HB" #define SYS_LOG_DOMAIN "LPS25HB"
#define SYS_LOG_LEVEL CONFIG_LPS25HB_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_LPS25HB_H__ */ #endif /* __SENSOR_LPS25HB_H__ */

View file

@ -503,6 +503,6 @@ struct lsm6ds0_data {
}; };
#define SYS_LOG_DOMAIN "LSM6DS0" #define SYS_LOG_DOMAIN "LSM6DS0"
#define SYS_LOG_LEVEL CONFIG_LSM6DS0_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_LSM6DS0_H__ */ #endif /* __SENSOR_LSM6DS0_H__ */

View file

@ -20,7 +20,7 @@
#include <misc/util.h> #include <misc/util.h>
#define SYS_LOG_DOMAIN "MAX44009" #define SYS_LOG_DOMAIN "MAX44009"
#define SYS_LOG_LEVEL CONFIG_MAX44009_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define MAX44009_I2C_ADDRESS CONFIG_MAX44009_I2C_ADDR #define MAX44009_I2C_ADDRESS CONFIG_MAX44009_I2C_ADDR

View file

@ -98,6 +98,6 @@ static void mcp9808_setup_interrupt(struct device *dev)
#endif /* CONFIG_MCP9808_TRIGGER */ #endif /* CONFIG_MCP9808_TRIGGER */
#define SYS_LOG_DOMAIN "MCP9808" #define SYS_LOG_DOMAIN "MCP9808"
#define SYS_LOG_LEVEL CONFIG_MCP9808_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_MCP9808_H__ */ #endif /* __SENSOR_MCP9808_H__ */

View file

@ -24,7 +24,7 @@
#include <stdint.h> #include <stdint.h>
#define SYS_LOG_DOMAIN "MPU6050" #define SYS_LOG_DOMAIN "MPU6050"
#define SYS_LOG_LEVEL CONFIG_MPU6050_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define MPU6050_REG_CHIP_ID 0x75 #define MPU6050_REG_CHIP_ID 0x75

View file

@ -115,6 +115,6 @@ int sht3xd_init_interrupt(struct device *dev);
#endif #endif
#define SYS_LOG_DOMAIN "SHT3XD" #define SYS_LOG_DOMAIN "SHT3XD"
#define SYS_LOG_LEVEL CONFIG_SHT3XD_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* _SENSOR_SHT3XD_ */ #endif /* _SENSOR_SHT3XD_ */

View file

@ -73,6 +73,6 @@ static inline int sx9500_setup_interrupt(struct device *dev)
#endif #endif
#define SYS_LOG_DOMAIN "SX9500" #define SYS_LOG_DOMAIN "SX9500"
#define SYS_LOG_LEVEL CONFIG_SX9500_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* __SENSOR_SX9500_H__ */ #endif /* __SENSOR_SX9500_H__ */

View file

@ -89,6 +89,6 @@ int tmp007_init_interrupt(struct device *dev);
#endif #endif
#define SYS_LOG_DOMAIN "TMP007" #define SYS_LOG_DOMAIN "TMP007"
#define SYS_LOG_LEVEL CONFIG_TMP007_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#endif /* _SENSOR_TMP007_ */ #endif /* _SENSOR_TMP007_ */

View file

@ -23,7 +23,7 @@
#include <misc/__assert.h> #include <misc/__assert.h>
#define SYS_LOG_DOMAIN "TMP112" #define SYS_LOG_DOMAIN "TMP112"
#define SYS_LOG_LEVEL CONFIG_TMP112_SYS_LOG_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <misc/sys_log.h> #include <misc/sys_log.h>
#define TMP112_I2C_ADDRESS CONFIG_TMP112_I2C_ADDR #define TMP112_I2C_ADDRESS CONFIG_TMP112_I2C_ADDR