]> granicus.if.org Git - esp-idf/commitdiff
component/bt: Fix some misspell
authorbaohongde <baohongde@espressif.com>
Mon, 16 Jul 2018 12:56:45 +0000 (20:56 +0800)
committerbaohongde <baohongde@espressif.com>
Mon, 16 Jul 2018 12:56:45 +0000 (20:56 +0800)
Using CONFIG_BT_SSP_ENABLE instead if BT_SPP_INCLUDED

examples/bluetooth/a2dp_sink/main/main.c
examples/bluetooth/a2dp_source/main/main.c
examples/bluetooth/bt_spp_acceptor/main/example_spp_acceptor_demo.c
examples/bluetooth/bt_spp_initiator/main/example_spp_initiator_demo.c
examples/bluetooth/bt_spp_vfs_acceptor/main/example_spp_vfs_acceptor_demo.c
examples/bluetooth/bt_spp_vfs_initiator/main/example_spp_vfs_initiator_demo.c

index 1e634dfe7658831ed4077a54361a7a39f5e96271..e4881b34002a4b4e78ed108857380de274ff5114 100644 (file)
@@ -114,17 +114,17 @@ void app_main()
     /* Bluetooth device name, connection mode and profile set up */
     bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
 
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
     esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
     esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
 }
 
 void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
 {
     switch (event) {
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     case ESP_BT_GAP_AUTH_CMPL_EVT:{
         if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) {
             ESP_LOGI(BT_AV_TAG, "authentication success: %s", param->auth_cmpl.device_name);
@@ -144,7 +144,7 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
     case ESP_BT_GAP_KEY_REQ_EVT:
         ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
         break;
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
     default: {
         ESP_LOGI(BT_AV_TAG, "event: %d", event);
         break;
index 31de9b99887c73c1e20a1d32c9a45d918f21f6e0..602dc01d8ee771fd447f862ebf3a20b04cc7a625 100644 (file)
@@ -134,11 +134,11 @@ void app_main()
     /* Bluetooth device name, connection mode and profile set up */
     bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
 
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
     esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
     esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
 }
 
 static bool get_name_from_eir(uint8_t *eir, uint8_t *bdname, uint8_t *bdname_len)
@@ -251,7 +251,7 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
     case ESP_BT_GAP_RMT_SRVCS_EVT:
     case ESP_BT_GAP_RMT_SRVC_REC_EVT:
         break;
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     case ESP_BT_GAP_AUTH_CMPL_EVT:{
         if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) {
             ESP_LOGI(BT_AV_TAG, "authentication success: %s", param->auth_cmpl.device_name);
@@ -271,7 +271,7 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
     case ESP_BT_GAP_KEY_REQ_EVT:
         ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
         break;
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
     default: {
         ESP_LOGI(BT_AV_TAG, "event: %d", event);
         break;
index 53513f08ee48ef492206ff61b3f9446c2c4043bf..84a8ed48633342d8bad69647b0a8e4e950640a8c 100644 (file)
@@ -106,7 +106,7 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
 void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
 {
     switch (event) {
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     case ESP_BT_GAP_AUTH_CMPL_EVT:{
         if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) {
             ESP_LOGI(SPP_TAG, "authentication success: %s", param->auth_cmpl.device_name);
@@ -126,7 +126,7 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
     case ESP_BT_GAP_KEY_REQ_EVT:
         ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
         break;
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
     default: {
         ESP_LOGI(SPP_TAG, "event: %d", event);
         break;
@@ -181,10 +181,10 @@ void app_main()
         return;
     }
 
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
     esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
     esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
 }
 
index 19e8e72391b174e23f590144035397e9c637d0d8..d8b00ebec30c9c8305bc05bd472d18b61031a9ca 100644 (file)
@@ -190,7 +190,7 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
         case ESP_BT_GAP_RMT_SRVC_REC_EVT:
             ESP_LOGI(SPP_TAG, "ESP_BT_GAP_RMT_SRVC_REC_EVT");
             break;
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
         case ESP_BT_GAP_AUTH_CMPL_EVT:{
             if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) {
                 ESP_LOGI(SPP_TAG, "authentication success: %s", param->auth_cmpl.device_name);
@@ -210,7 +210,7 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
         case ESP_BT_GAP_KEY_REQ_EVT:
             ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
             break;
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
         default:
             break;
     }
@@ -266,10 +266,10 @@ void app_main()
         return;
     }
 
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
     esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
     esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
 }
 
index deb1cfee453c5edc5fed6a43c056284aab9764b2..72a354eb0e84a0fe855e3ba4f992e84d63bab5f9 100644 (file)
@@ -108,7 +108,7 @@ static void esp_spp_stack_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param
 void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
 {
     switch (event) {
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     case ESP_BT_GAP_AUTH_CMPL_EVT:{
         if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) {
             ESP_LOGI(SPP_TAG, "authentication success: %s", param->auth_cmpl.device_name);
@@ -128,7 +128,7 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
     case ESP_BT_GAP_KEY_REQ_EVT:
         ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
         break;
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
     default: {
         ESP_LOGI(SPP_TAG, "event: %d", event);
         break;
@@ -184,10 +184,10 @@ void app_main()
         return;
     }
 
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
     esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
     esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
 }
 
index dedb17f839da4433b8a1ddceb97e4bfebd38a018..218ff34373799afa37227b9c54e23d7d2b4a819a 100644 (file)
@@ -170,7 +170,7 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
         case ESP_BT_GAP_RMT_SRVC_REC_EVT:
             ESP_LOGI(SPP_TAG, "ESP_BT_GAP_RMT_SRVC_REC_EVT");
             break;
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
         case ESP_BT_GAP_AUTH_CMPL_EVT:{
             if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) {
                 ESP_LOGI(SPP_TAG, "authentication success: %s", param->auth_cmpl.device_name);
@@ -190,7 +190,7 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
         case ESP_BT_GAP_KEY_REQ_EVT:
             ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
             break;
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
         default:
             break;
     }
@@ -252,10 +252,10 @@ void app_main()
         return;
     }
 
-#if (BT_SPP_INCLUDED)
+#ifdef CONFIG_BT_SSP_ENABLE
     esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
     esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
     esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
-#endif ///BT_SPP_INCLUDED
+#endif ///CONFIG_BT_SSP_ENABLE
 }