mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Component/bt: add makefile for coex demo
This commit is contained in:
parent
1b1a179f20
commit
26db749257
9
examples/bluetooth/a2dp_gatts_coex/Makefile
Normal file
9
examples/bluetooth/a2dp_gatts_coex/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
#
|
||||
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
||||
# project subdirectory.
|
||||
#
|
||||
|
||||
PROJECT_NAME := bt_ble_coex
|
||||
|
||||
include $(IDF_PATH)/make/project.mk
|
||||
|
@ -53,7 +53,8 @@ void bt_app_a2d_cb(esp_a2d_cb_event_t event, esp_a2d_cb_param_t *param)
|
||||
|
||||
void bt_app_a2d_data_cb(const uint8_t *data, uint32_t len)
|
||||
{
|
||||
i2s_write_bytes(0, (const char *)data, len, portMAX_DELAY);
|
||||
size_t bytes_written;
|
||||
i2s_write(0, data, len, &bytes_written, portMAX_DELAY);
|
||||
if (++m_pkt_cnt % 100 == 0) {
|
||||
ESP_LOGI(BT_AV_TAG, "Audio packet count %u", m_pkt_cnt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user