From 4c1f7e779446f3ead4390f2eaf0106ca61fdbc78 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 6 May 2023 17:14:10 +0200 Subject: [PATCH] posix-h4-nxp: configure iw612 evk --- port/posix-h4-nxp/btstack_config.h | 3 ++- port/posix-h4-nxp/main.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/port/posix-h4-nxp/btstack_config.h b/port/posix-h4-nxp/btstack_config.h index 77d9f6afb..432cd45b1 100644 --- a/port/posix-h4-nxp/btstack_config.h +++ b/port/posix-h4-nxp/btstack_config.h @@ -34,7 +34,8 @@ #define ENABLE_LOG_INFO #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS #define ENABLE_PRINTF_HEXDUMP -#define ENABLE_SCO_OVER_HCI +#define ENABLE_SCO_OVER_PCM +#define ENABLE_NXP_PCM_WBS #define ENABLE_SDP_DES_DUMP #define ENABLE_SOFTWARE_AES128 diff --git a/port/posix-h4-nxp/main.c b/port/posix-h4-nxp/main.c index 491e1b1af..df8474e42 100644 --- a/port/posix-h4-nxp/main.c +++ b/port/posix-h4-nxp/main.c @@ -90,7 +90,7 @@ static void local_version_information_handler(uint8_t * packet); static hci_transport_config_uart_t transport_config = { HCI_TRANSPORT_CONFIG_UART, - 115200, + 3000000, 0, // main baudrate 1, // flow control NULL, @@ -161,7 +161,7 @@ static void nxp_phase2(uint8_t status){ usleep(100000); // re-configure UART: enable flow control, set initial baudrate - transport_config.baudrate_init = btstack_chipset_nxp_get_initial_baudrate(); + // transport_config.baudrate_init = btstack_chipset_nxp_get_initial_baudrate(); uart_driver->set_flowcontrol(transport_config.flowcontrol); // init HCI @@ -194,7 +194,7 @@ int main(int argc, const char * argv[]){ printf("Packet Log: %s\n", pklg_path); // pick serial port - transport_config.device_name = "/dev/tty.usbserial-A506WORJ"; // DVK-ST60-2230C / 88W8997 + transport_config.device_name = "/dev/tty.usbserial-DP04LFYN"; // DVK-ST60-2230C / 88W8997 // transport_config.device_name = "/dev/tty.usbserial-FT1XBGIM"; // murata m.2 adapter // accept path from command line @@ -208,7 +208,7 @@ int main(int argc, const char * argv[]){ uart_driver = btstack_uart_posix_instance(); // extract UART config from transport config - uart_config.baudrate = transport_config.baudrate_init; + uart_config.baudrate = 115200; uart_config.flowcontrol = 0; uart_config.device_name = transport_config.device_name; uart_driver->init(&uart_config);