uart: logging: Add configurable log level to UART drivers

This change adds compile-time selection of log level for
the UART drivers.

Signed-off-by: Pete Dietl <petedietl@gmail.com>
This commit is contained in:
Pete Dietl 2022-03-04 12:56:05 -08:00 committed by Anas Nashif
commit 060e39e75a
7 changed files with 13 additions and 8 deletions

View file

@ -15,9 +15,10 @@
#include <sys/util.h>
#include <kernel.h>
#include <soc.h>
#include <logging/log.h>
#include <helpers/nrfx_gppi.h>
LOG_MODULE_REGISTER(uart_nrfx_uarte, LOG_LEVEL_ERR);
#include <logging/log.h>
LOG_MODULE_REGISTER(uart_nrfx_uarte, CONFIG_UART_LOG_LEVEL);
#ifdef CONFIG_PINCTRL
#include <drivers/pinctrl.h>