diff options
author | Genaro Saucedo Tejada <genaro.saucedo.tejada@intel.com> | 2016-03-04 17:17:45 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@zephyrproject.org> | 2016-03-18 00:01:21 +0000 |
commit | d1e9181fd42d6232155b90d6d5f3facb211c1757 (patch) | |
tree | 09b205cb2fa7caef99fd053429762807f0d0dea2 /drivers/grove/Kconfig | |
parent | 34d497118a7a7220228c1c0cc889c908d459d3f9 (diff) |
sys_log: Grove driver update to new logging API
Replaces old DBG calls by new SYS_LOG_... ones, likewise updates the
grove/Kconfig file to include new per-level logging control.
Change-Id: I638ffa915a760b4f188c1bfa2dc68e63cbf7e624
Signed-off-by: Genaro Saucedo Tejada <genaro.saucedo.tejada@intel.com>
Diffstat (limited to 'drivers/grove/Kconfig')
-rw-r--r-- | drivers/grove/Kconfig | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/drivers/grove/Kconfig b/drivers/grove/Kconfig index 5cfa9ed2b..a6477b514 100644 --- a/drivers/grove/Kconfig +++ b/drivers/grove/Kconfig @@ -22,13 +22,23 @@ menuconfig GROVE prompt "Grove Device Drivers" default n help - Check this box to enable the Seeed Grove device drivers + Check this box to enable the Seeed Grove device drivers -config GROVE_DEBUG - bool - prompt "Enable Grove debug messagings" - default n - depends on GROVE + +config SYS_LOG_GROVE_LEVEL + int + prompt "Grove Log level" + depends on SYS_LOG && GROVE + default 0 + range 0 4 + help + Sets log level for Grove Device Drivers. + 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 GROVE_LCD_RGB bool |