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:
parent
a6e35c6ab0
commit
060e39e75a
7 changed files with 13 additions and 8 deletions
|
@ -36,7 +36,7 @@
|
|||
#include <stm32_ll_lpuart.h>
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(uart_stm32);
|
||||
LOG_MODULE_REGISTER(uart_stm32, CONFIG_UART_LOG_LEVEL);
|
||||
|
||||
#define HAS_LPUART_1 (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(lpuart1), \
|
||||
st_stm32_lpuart, okay))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue