hci_transport: add parity to hci_transport_config_uart_t

This commit is contained in:
Matthias Ringwald 2021-03-02 18:54:12 +01:00
parent 0894b823ac
commit e76f5dd474
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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

View File

@ -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