uart: ns16550: move command macro to public header

This moves the CMD_SET_DLF command macro to public header
so application can use it without weird include path to
include the "private" header file under drivers/serial.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2022-11-09 12:49:28 -08:00 committed by Anas Nashif
commit bbb2f8277a
3 changed files with 27 additions and 2 deletions

View file

@ -34,7 +34,7 @@
#include <zephyr/spinlock.h>
#include <zephyr/irq.h>
#include "uart_ns16550.h"
#include <zephyr/drivers/serial/uart_ns16550.h>
#define INST_HAS_PCP_HELPER(inst) DT_INST_NODE_HAS_PROP(inst, pcp) ||
#define INST_HAS_DLF_HELPER(inst) DT_INST_NODE_HAS_PROP(inst, dlf) ||