Merge branch 'master' into WiFiClient_fix
This commit is contained in:
commit
1a5b367d42
3 changed files with 22 additions and 3 deletions
|
|
@ -173,9 +173,18 @@ void HWCDC::begin(unsigned long baud)
|
||||||
if(tx_lock == NULL) {
|
if(tx_lock == NULL) {
|
||||||
tx_lock = xSemaphoreCreateMutex();
|
tx_lock = xSemaphoreCreateMutex();
|
||||||
}
|
}
|
||||||
setRxBufferSize(256);//default if not preset
|
//RX Buffer default has 256 bytes if not preset
|
||||||
setTxBufferSize(256);//default if not preset
|
if(rx_queue == NULL) {
|
||||||
|
if (!setRxBufferSize(256)) {
|
||||||
|
log_e("HW CDC RX Buffer error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//TX Buffer default has 256 bytes if not preset
|
||||||
|
if (tx_ring_buf == NULL) {
|
||||||
|
if (!setTxBufferSize(256)) {
|
||||||
|
log_e("HW CDC TX Buffer error");
|
||||||
|
}
|
||||||
|
}
|
||||||
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
|
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
|
||||||
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
|
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
|
||||||
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY | USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT | USB_SERIAL_JTAG_INTR_BUS_RESET);
|
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY | USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT | USB_SERIAL_JTAG_INTR_BUS_RESET);
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,12 @@
|
||||||
|
|
||||||
#ifdef CONFIG_BT_ENABLED
|
#ifdef CONFIG_BT_ENABLED
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
bool btInUse(){ return true; }
|
||||||
|
#else
|
||||||
// user may want to change it to free resources
|
// user may want to change it to free resources
|
||||||
__attribute__((weak)) bool btInUse(){ return true; }
|
__attribute__((weak)) bool btInUse(){ return true; }
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "esp_bt.h"
|
#include "esp_bt.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,9 +209,15 @@ bool verifyRollbackLater() { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BT_ENABLED
|
#ifdef CONFIG_BT_ENABLED
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
//overwritten in esp32-hal-bt.c
|
||||||
|
bool btInUse() __attribute__((weak));
|
||||||
|
bool btInUse(){ return false; }
|
||||||
|
#else
|
||||||
//from esp32-hal-bt.c
|
//from esp32-hal-bt.c
|
||||||
extern bool btInUse();
|
extern bool btInUse();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void initArduino()
|
void initArduino()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue