From: baohongde Date: Fri, 15 Feb 2019 09:27:24 +0000 (+0800) Subject: components/bt: Add precautions for esp_vhci_host_send_packet (backport 3.2) X-Git-Tag: v3.2-beta3~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5568ca28559f7b61e0e248ab036b1d861468c084;p=esp-idf components/bt: Add precautions for esp_vhci_host_send_packet (backport 3.2) --- diff --git a/components/bt/include/esp_bt.h b/components/bt/include/esp_bt.h index b1dbc64673..b098c133d9 100644 --- a/components/bt/include/esp_bt.h +++ b/components/bt/include/esp_bt.h @@ -326,8 +326,12 @@ bool esp_vhci_host_check_send_available(void); /** @brief esp_vhci_host_send_packet * host send packet to controller + * + * Should not call this function from within a critical section + * or when the scheduler is suspended. + * * @param data the packet point - *,@param len the packet length + * @param len the packet length */ void esp_vhci_host_send_packet(uint8_t *data, uint16_t len); @@ -453,11 +457,11 @@ void esp_bt_controller_wakeup_request(void); /** * @brief Manually clear scan duplicate list - * + * * Note that scan duplicate list will be automatically cleared when the maximum amount of device in the filter is reached * the amount of device in the filter can be configured in menuconfig. - * - * + * + * * @return * - ESP_OK : success * - other : failed