From e76f5dd4744ba7c481c5ac80296735e028142d35 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 2 Mar 2021 18:54:12 +0100 Subject: [PATCH] hci_transport: add parity to hci_transport_config_uart_t --- src/hci_transport.h | 1 + src/hci_transport_h4.c | 1 + src/hci_transport_h5.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/hci_transport.h b/src/hci_transport.h index 7c0989c88..70b13a16f 100644 --- a/src/hci_transport.h +++ b/src/hci_transport.h @@ -128,6 +128,7 @@ typedef struct { uint32_t baudrate_main; // = 0: same as initial baudrate int flowcontrol; // const char *device_name; + int parity; // see btstack_uart.h BTSTACK_UART_PARITY } hci_transport_config_uart_t; diff --git a/src/hci_transport_h4.c b/src/hci_transport_h4.c index 66229897e..f606aa075 100644 --- a/src/hci_transport_h4.c +++ b/src/hci_transport_h4.c @@ -410,6 +410,7 @@ static void hci_transport_h4_init(const void * transport_config){ hci_transport_config_uart_t * hci_transport_config_uart = (hci_transport_config_uart_t*) transport_config; uart_config.baudrate = hci_transport_config_uart->baudrate_init; uart_config.flowcontrol = hci_transport_config_uart->flowcontrol; + uart_config.parity = hci_transport_config_uart->parity; uart_config.device_name = hci_transport_config_uart->device_name; // set state to off diff --git a/src/hci_transport_h5.c b/src/hci_transport_h5.c index 601fce37c..bced9edc2 100644 --- a/src/hci_transport_h5.c +++ b/src/hci_transport_h5.c @@ -755,6 +755,7 @@ static void hci_transport_h5_init(const void * transport_config){ hci_transport_config_uart_t * hci_transport_config_uart = (hci_transport_config_uart_t*) transport_config; uart_config.baudrate = hci_transport_config_uart->baudrate_init; uart_config.flowcontrol = hci_transport_config_uart->flowcontrol; + uart_config.parity = hci_transport_config_uart->parity; uart_config.device_name = hci_transport_config_uart->device_name; // setup UART driver