component/bt: add conditional compilation direvatives to control the source code building of classic bluetooth

This commit is contained in:
wangmengyang
2017-03-17 15:08:47 +08:00
parent b2f52dd22e
commit fda2e89a1e
46 changed files with 188 additions and 277 deletions

View File

@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "bt_target.h"
#include <string.h>
#include "esp_bt_main.h"
#include "esp_gap_bt_api.h"
@@ -19,6 +20,8 @@
#include "btc_manage.h"
#include "btc_gap_bt.h"
#if BTC_GAP_BT_INCLUDED
esp_err_t esp_bt_gap_set_scan_mode(esp_bt_scan_mode_t mode)
{
btc_msg_t msg;
@@ -63,3 +66,5 @@ esp_err_t esp_bt_gap_set_device_name(const char *name)
return (btc_transfer_context(&msg, &arg, sizeof(btc_gap_bt_args_t), NULL) == BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL);
}
#endif /* #if BTC_GAP_BT_INCLUDED */