esp32: enable SCO over HCI

This commit is contained in:
Matthias Ringwald 2018-06-16 22:50:56 +02:00
parent 8701c8427c
commit d72415a4a7
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#define ENABLE_LE_SECURE_CONNECTIONS
// ESP32 supports ECDH HCI Commands, but micro-ecc lib is already provided anyway
#define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
#define ENABLE_SCO_OVER_HCI
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
// #define ENABLE_LOG_DEBUG

View File

@ -245,6 +245,11 @@ static int transport_open(void){
return -1;
}
#ifdef ENABLE_SCO_OVER_HCI
ret = esp_bredr_sco_datapath_set(ESP_SCO_DATA_PATH_HCI);
log_info("transport: configure SCO over HCI, result 0x%04x", ret);
#endif
return 0;
}