diff --git a/components/bt/host/nimble/port/src/esp_nimble_main.c b/components/bt/host/nimble/port/src/esp_nimble_main.c index 1e3e75f8d3..1b596438c9 100644 --- a/components/bt/host/nimble/port/src/esp_nimble_main.c +++ b/components/bt/host/nimble/port/src/esp_nimble_main.c @@ -19,7 +19,7 @@ static struct ble_npl_eventq g_eventq_dflt; static struct ble_npl_sem ble_hs_stop_sem; static struct ble_npl_event ble_hs_ev_stop; -esp_err_t esp_nimble_init() +esp_err_t esp_nimble_init(void) { #if !SOC_ESP_NIMBLE_CONTROLLER /* Initialize the function pointers for OS porting */ @@ -57,7 +57,7 @@ esp_err_t esp_nimble_enable(void *host_task) } -esp_err_t esp_nimble_disable() +esp_err_t esp_nimble_disable(void) { esp_err_t err = ESP_OK; ble_npl_sem_init(&ble_hs_stop_sem, 0); @@ -86,7 +86,7 @@ esp_err_t esp_nimble_disable() } -esp_err_t esp_nimble_deinit() +esp_err_t esp_nimble_deinit(void) { #if !(SOC_ESP_NIMBLE_CONTROLLER && CONFIG_BT_CONTROLLER_ENABLED) ble_npl_eventq_deinit(&g_eventq_dflt); diff --git a/components/bt/porting/nimble/include/nimble/nimble_port.h b/components/bt/porting/nimble/include/nimble/nimble_port.h index 3da976fc8a..4746633965 100644 --- a/components/bt/porting/nimble/include/nimble/nimble_port.h +++ b/components/bt/porting/nimble/include/nimble/nimble_port.h @@ -43,11 +43,11 @@ int nimble_port_stop(void); struct ble_npl_eventq *nimble_port_get_dflt_eventq(void); -esp_err_t esp_nimble_init(); +esp_err_t esp_nimble_init(void); esp_err_t esp_nimble_enable(void *host_task); -esp_err_t esp_nimble_disable(); -esp_err_t esp_nimble_deinit(); +esp_err_t esp_nimble_disable(void); +esp_err_t esp_nimble_deinit(void); #ifdef __cplusplus diff --git a/components/bt/porting/transport/uart/hci_uart.c b/components/bt/porting/transport/uart/hci_uart.c index 818c8d6c02..16d5076ee1 100644 --- a/components/bt/porting/transport/uart/hci_uart.c +++ b/components/bt/porting/transport/uart/hci_uart.c @@ -130,7 +130,7 @@ int hci_uart_config(int port_num, int32_t baud_rate, uint8_t data_bits, uint8_t intr_alloc_flags = ESP_INTR_FLAG_IRAM; printf("set uart pin tx:%d, rx:%d.\n", HCI_UART_TX_PIN, HCI_UART_RX_PIN); - printf("set rts:%d, cts:%d.\n", HCI_UART_RTS_PIN, HCI_UART_RTS_PIN); + printf("set rts:%d, cts:%d.\n", HCI_UART_RTS_PIN, HCI_UART_CTS_PIN); printf("set baud_rate:%d.\n", baud_rate); ESP_ERROR_CHECK(uart_driver_delete(port_num));