drivers: display: define DISPLAY log level
Use a common log level for display drivers. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f4fb215148
commit
68958b35a1
4 changed files with 7 additions and 17 deletions
|
@ -13,6 +13,10 @@ menuconfig DISPLAY
|
|||
|
||||
if DISPLAY
|
||||
|
||||
module = DISPLAY
|
||||
module-str = display
|
||||
source "subsys/logging/Kconfig.template.log_config"
|
||||
|
||||
source "drivers/display/Kconfig.microbit"
|
||||
|
||||
source "drivers/display/Kconfig.ili9340"
|
||||
|
|
|
@ -38,20 +38,6 @@ config ILI9340_SPI_FREQ
|
|||
help
|
||||
Frequency to be used to communicate with the ILI9340.
|
||||
|
||||
config LOG_ILI9340_LEVEL
|
||||
int "ILI9340 Log level"
|
||||
depends on LOG
|
||||
default 0
|
||||
range 0 4
|
||||
help
|
||||
Sets log level for ILI9340 display driver.
|
||||
Levels are:
|
||||
- 0 OFF: do not write
|
||||
- 1 ERROR: only write LOG_ERR
|
||||
- 2 WARNING: write LOG_WRN in addition to previous level
|
||||
- 3 INFO: write LOG_INF in addition to previous levels
|
||||
- 4 DEBUG: write LOG_DBG in addition to previous levels
|
||||
|
||||
config ILI9340_RESET_GPIO_PORT_NAME
|
||||
string "Reset GPIO controller port name"
|
||||
default "GPIO_0"
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
#include "display_ili9340.h"
|
||||
#include <display.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_LOG_ILI9340_LEVEL
|
||||
#define LOG_LEVEL CONFIG_DISPLAY_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(display);
|
||||
LOG_MODULE_REGISTER(display_ili9340);
|
||||
|
||||
#include <gpio.h>
|
||||
#include <misc/byteorder.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue