From eb9e0ff41aee1b8e95ce691e2cef7d66ff1f0c23 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 3 Mar 2021 09:57:34 +0100 Subject: [PATCH] posix-h5/posix-h5-bcm: use even parity for UART --- port/posix-h5-bcm/main.c | 1 + port/posix-h5/main.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/port/posix-h5-bcm/main.c b/port/posix-h5-bcm/main.c index c54dce284..6adeed645 100644 --- a/port/posix-h5-bcm/main.c +++ b/port/posix-h5-bcm/main.c @@ -82,6 +82,7 @@ static hci_transport_config_uart_t transport_config = { 921600, // main baudrate 0, // flow control NULL, + BTSTACK_UART_PARITY_EVEN, // parity }; static btstack_uart_config_t uart_config; diff --git a/port/posix-h5/main.c b/port/posix-h5/main.c index 360e2e982..642ffd844 100644 --- a/port/posix-h5/main.c +++ b/port/posix-h5/main.c @@ -85,6 +85,7 @@ static hci_transport_config_uart_t config = { 0, // main baudrate 1, // flow control NULL, + BTSTACK_UART_PARITY_EVEN, // parity }; static btstack_packet_callback_registration_t hci_event_callback_registration; @@ -225,9 +226,6 @@ int main(int argc, const char * argv[]){ const hci_transport_t * transport = hci_transport_h5_instance(uart_driver); hci_init(transport, (void*) &config); - // enable BCSP mode for CSR chipsets - auto detect might not work - // hci_transport_h5_enable_bcsp_mode(); - // set BD_ADDR for CSR without Flash/unique address // bd_addr_t own_address = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66}; // btstack_chipset_csr_set_bd_addr(own_address);