mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
wiced: use 2 mbps
This commit is contained in:
parent
c32291bdc9
commit
17c80681d0
@ -54,7 +54,7 @@ static btstack_packet_callback_registration_t hci_event_callback_registration;
|
|||||||
static const hci_transport_config_uart_t hci_transport_config_uart = {
|
static const hci_transport_config_uart_t hci_transport_config_uart = {
|
||||||
HCI_TRANSPORT_CONFIG_UART,
|
HCI_TRANSPORT_CONFIG_UART,
|
||||||
115200,
|
115200,
|
||||||
0,
|
2000000, // 300000+ didn't work reliably, the 48 MHz UART config might be needed for this
|
||||||
1,
|
1,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
@ -78,6 +78,23 @@ void application_start(void){
|
|||||||
|
|
||||||
printf("BTstack on WICED\n");
|
printf("BTstack on WICED\n");
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// init GPIOs D0-D5 for debugging - not used
|
||||||
|
wiced_gpio_init(D0, OUTPUT_PUSH_PULL);
|
||||||
|
wiced_gpio_init(D1, OUTPUT_PUSH_PULL);
|
||||||
|
wiced_gpio_init(D2, OUTPUT_PUSH_PULL);
|
||||||
|
wiced_gpio_init(D3, OUTPUT_PUSH_PULL);
|
||||||
|
wiced_gpio_init(D4, OUTPUT_PUSH_PULL);
|
||||||
|
wiced_gpio_init(D5, OUTPUT_PUSH_PULL);
|
||||||
|
|
||||||
|
wiced_gpio_output_low(D0);
|
||||||
|
wiced_gpio_output_low(D1);
|
||||||
|
wiced_gpio_output_low(D2);
|
||||||
|
wiced_gpio_output_low(D3);
|
||||||
|
wiced_gpio_output_low(D4);
|
||||||
|
wiced_gpio_output_low(D5);
|
||||||
|
#endif
|
||||||
|
|
||||||
// start with BTstack init - especially configure HCI Transport
|
// start with BTstack init - especially configure HCI Transport
|
||||||
btstack_memory_init();
|
btstack_memory_init();
|
||||||
btstack_run_loop_init(btstack_run_loop_wiced_get_instance());
|
btstack_run_loop_init(btstack_run_loop_wiced_get_instance());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user