Merge branch 'bugfix/btdm_hci_mode_periph_clk' into 'master'

fix example of controller_hci_uart peripheral clk init

See merge request !1295
pull/1029/merge
Jiang Jiang Jian 2017-09-30 15:57:10 +08:00
commit a3731902f5
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -23,7 +23,14 @@ static const char *tag = "CONTROLLER_UART_HCI";
static void uart_gpio_reset(void)
{
#if CONFIG_BT_HCI_UART_NO
#if CONFIG_BT_HCI_UART_NO == 1
periph_module_enable(PERIPH_UART1_MODULE);
#elif CONFIG_BT_HCI_UART_NO == 2
periph_module_enable(PERIPH_UART2_MODULE);
#endif
periph_module_enable(PERIPH_UHCI0_MODULE);
#ifdef CONFIG_BT_HCI_UART_NO
ESP_LOGI(tag, "HCI UART%d Pin select: TX 5, RX, 18, CTS 23, RTS 19", CONFIG_BT_HCI_UART_NO);
uart_set_pin(CONFIG_BT_HCI_UART_NO, 5, 18, 19, 23);