#ifndef _COM_UART_H_
#define _COM_UART_H_

#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>

#include <zephyr/drivers/uart.h>

#ifdef __cplusplus
extern "C" {
#endif

extern bool flag_message_received;
extern struct ring_buf ring_buf_rx;
extern uint8_t buf_rx[1500];

void com_uart1_send_data(char *message, size_t len);
int com_uart1_init(void);

#ifdef __cplusplus
}
#endif

/**
 * @}
 */

#endif /* _COM_UART_H_ */