]> granicus.if.org Git - esp-idf/commitdiff
components/bt: Add precautions for esp_vhci_host_send_packet
authorbaohongde <baohongde@espressif.com>
Wed, 23 Jan 2019 10:04:01 +0000 (18:04 +0800)
committerbaohongde <baohongde@espressif.com>
Thu, 31 Jan 2019 03:47:58 +0000 (11:47 +0800)
components/bt/include/esp_bt.h

index b1dbc6467388152cc149150d7902da9bdb079871..b098c133d997ab92aa3259c4128dc1013d82ba10 100644 (file)
@@ -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