component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller)

This commit is contained in:
wangmengyang
2017-04-10 16:12:21 +08:00
50 changed files with 1349 additions and 238 deletions

View File

@@ -61,7 +61,10 @@ void _esp_error_check_failed(esp_err_t rc, const char *file, int line, const cha
* Disabled if assertions are disabled.
*/
#ifdef NDEBUG
#define ESP_ERROR_CHECK(x) do { (x); } while (0)
#define ESP_ERROR_CHECK(x) do { \
esp_err_t rc = (x); \
(void) sizeof(rc); \
} while(0);
#else
#define ESP_ERROR_CHECK(x) do { \
esp_err_t rc = (x); \