drivers: serial: bt: Add UART over NUS Bluetooth driver

Enables usage Bluetooth LE GATT as a serial endpoint to exchange data
using UART APIs. This implementation is compatible with UART Interrupt
Driven APIs and uses the nus-uart device-tree node properties to
configure FIFO buffers for transmitting and receiving. Defining
multiple instances of the driver is possible and it allows implementing
multiple GATT NUS service instances to exchange data as separate serial
endpoints.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
Luis Ubieda 2024-03-06 13:12:51 -05:00 committed by Carles Cufí
commit 205994b87b
6 changed files with 358 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# Copyright (c) 2024 Croxel, Inc.
# SPDX-License-Identifier: Apache-2.0
description: UART over NUS (Bluetooth LE)
compatible: "zephyr,nus-uart"
properties:
tx-fifo-size:
type: int
default: 1024
description: |
Size of the virtual UART TX FIFO
rx-fifo-size:
type: int
default: 1024
description: |
Size of the virtual UART RX FIFO