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:
parent
d834ec875e
commit
205994b87b
6 changed files with 358 additions and 1 deletions
19
dts/bindings/serial/zephyr,nus-uart.yaml
Normal file
19
dts/bindings/serial/zephyr,nus-uart.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue