mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 04:43:36 +00:00
posix-h5/posix-h5-bcm: use even parity for UART
This commit is contained in:
parent
e76f5dd474
commit
eb9e0ff41a
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user