Add Asynchronous UART implementation, which does not drop data when automatic hardware-flow-control is set in the device tree. With automatic hardware flow control, the CTS pin will be automatically deactivated when there are no more asynchronous UART RX buffers available. After buffer space becomes available, and UART RX is restarted, the CTS pin will be activated. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
26 lines
539 B
C
26 lines
539 B
C
/*
|
|
* Copyright (c) 2023 Trackunit Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/modem/backend/uart.h>
|
|
|
|
#ifndef ZEPHYR_MODEM_BACKEND_UART_ASYNC_
|
|
#define ZEPHYR_MODEM_BACKEND_UART_ASYNC_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
bool modem_backend_uart_async_is_supported(struct modem_backend_uart *backend);
|
|
|
|
int modem_backend_uart_async_init(struct modem_backend_uart *backend,
|
|
const struct modem_backend_uart_config *config);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_MODEM_BACKEND_UART_ASYNC_ */
|