From 69d341f7f0610dd3513fa18cda3308cb02f17da4 Mon Sep 17 00:00:00 2001 From: Geng Yu Chao Date: Thu, 12 Dec 2019 15:55:42 +0800 Subject: [PATCH] Fix some typo in idf --- .../include/esp_ble_mesh_generic_model_api.h | 8 +-- .../bt/host/bluedroid/bta/dm/bta_dm_api.c | 10 +-- .../host/bluedroid/bta/gatt/bta_gattc_api.c | 2 +- .../host/bluedroid/bta/gatt/bta_gatts_api.c | 4 +- .../bt/host/bluedroid/bta/hh/bta_hh_le.c | 4 +- .../host/bluedroid/bta/include/bta/bta_api.h | 10 +-- .../bluedroid/bta/include/bta/bta_gatt_api.h | 8 +-- .../host/bluedroid/btc/core/btc_ble_storage.c | 4 +- .../bt/host/bluedroid/stack/avdt/avdt_l2c.c | 2 +- .../bluedroid/stack/btm/btm_ble_adv_filter.c | 4 +- .../bluedroid/stack/btm/include/btm_int.h | 2 +- .../host/bluedroid/stack/gatt/att_protocol.c | 4 +- .../bt/host/bluedroid/stack/gatt/gatt_api.c | 34 +++++----- .../bt/host/bluedroid/stack/gatt/gatt_main.c | 2 +- .../bt/host/bluedroid/stack/gatt/gatt_sr.c | 4 +- .../bt/host/bluedroid/stack/gatt/gatt_utils.c | 6 +- .../bluedroid/stack/include/stack/btm_api.h | 2 +- .../stack/include/stack/btm_ble_api.h | 12 ++-- .../bluedroid/stack/include/stack/gatt_api.h | 64 +++++++++---------- .../bluedroid/stack/l2cap/include/l2c_int.h | 4 +- .../bt/host/bluedroid/stack/l2cap/l2c_link.c | 2 +- components/esp_event/include/esp_event.h | 2 +- .../api-reference/peripherals/sdio_slave.rst | 2 +- .../provisioning/wifi_provisioning.rst | 2 +- .../uart/nmea0183_parser/README.md | 10 +-- .../main/nmea_parser_example_main.c | 2 +- 26 files changed, 105 insertions(+), 105 deletions(-) diff --git a/components/bt/esp_ble_mesh/api/models/include/esp_ble_mesh_generic_model_api.h b/components/bt/esp_ble_mesh/api/models/include/esp_ble_mesh_generic_model_api.h index fcee7ce53..42c90714c 100644 --- a/components/bt/esp_ble_mesh/api/models/include/esp_ble_mesh_generic_model_api.h +++ b/components/bt/esp_ble_mesh/api/models/include/esp_ble_mesh_generic_model_api.h @@ -891,7 +891,7 @@ typedef struct { /** Parameters of Generic Location state */ typedef struct { int32_t global_latitude; /*!< The value of the Global Latitude field */ - int32_t global_longitude; /*!< The value of the Global Longtitude field */ + int32_t global_longitude; /*!< The value of the Global Longitude field */ int16_t global_altitude; /*!< The value of the Global Altitude field */ int16_t local_north; /*!< The value of the Local North field */ int16_t local_east; /*!< The value of the Local East field */ @@ -914,7 +914,7 @@ typedef struct { esp_ble_mesh_gen_location_state_t *state; /*!< Parameters of the Generic Location state */ } esp_ble_mesh_gen_location_setup_srv_t; -/** This enum value is the access vlue of Generic User Property */ +/** This enum value is the access value of Generic User Property */ typedef enum { ESP_BLE_MESH_GEN_USER_ACCESS_PROHIBIT, ESP_BLE_MESH_GEN_USER_ACCESS_READ, @@ -1078,7 +1078,7 @@ typedef union { esp_ble_mesh_state_change_gen_loc_local_set_t loc_local_set; /*!< Generic Location Local Set */ esp_ble_mesh_state_change_gen_user_property_set_t user_property_set; /*!< Generic User Property Set */ esp_ble_mesh_state_change_gen_admin_property_set_t admin_property_set; /*!< Generic Admin Property Set */ - esp_ble_mesh_state_change_gen_manu_property_set_t manu_property_set; /*!< Generic Manufactuer Property Set */ + esp_ble_mesh_state_change_gen_manu_property_set_t manu_property_set; /*!< Generic Manufacturer Property Set */ } esp_ble_mesh_generic_server_state_change_t; /** Context of the received Generic User Property Get message */ @@ -1202,7 +1202,7 @@ typedef struct { /** Context of the received Generic Admin Property Set message */ typedef struct { uint16_t property_id; /*!< Property ID identifying a Generic Admin Property */ - uint8_t user_access; /*!< Enumeration indicating user accessn */ + uint8_t user_access; /*!< Enumeration indicating user access */ struct net_buf_simple *property_value; /*!< Raw value for the Admin Property */ } esp_ble_mesh_server_recv_gen_admin_property_set_t; diff --git a/components/bt/host/bluedroid/bta/dm/bta_dm_api.c b/components/bt/host/bluedroid/bta/dm/bta_dm_api.c index 141d9ce2d..07ecd8405 100644 --- a/components/bt/host/bluedroid/bta/dm/bta_dm_api.c +++ b/components/bt/host/bluedroid/bta/dm/bta_dm_api.c @@ -784,7 +784,7 @@ UINT16 BTA_DmGetConnectionState( BD_ADDR bd_addr ) ** ** Description This function adds a DI record to the local SDP database. ** -** Returns BTA_SUCCESS if record set sucessfully, otherwise error code. +** Returns BTA_SUCCESS if record set successfully, otherwise error code. ** *******************************************************************************/ tBTA_STATUS BTA_DmSetLocalDiRecord( tBTA_DI_RECORD *p_device_info, @@ -1867,7 +1867,7 @@ void BTA_DmBleConfigLocalIcon(uint16_t icon) ** p_cback: callback function associated to this adv instance. ** p_ref: reference data pointer to this adv instance. ** -** Returns BTA_SUCCESS if command started sucessfully; otherwise failure. +** Returns BTA_SUCCESS if command started successfully; otherwise failure. ** *******************************************************************************/ void BTA_BleEnableAdvInstance (tBTA_BLE_ADV_PARAMS *p_params, @@ -1905,7 +1905,7 @@ void BTA_BleEnableAdvInstance (tBTA_BLE_ADV_PARAMS *p_params, ** Parameters inst_id: Adv instance to update the parameter. ** p_params: pointer to the adv parameter structure. ** -** Returns BTA_SUCCESS if command started sucessfully; otherwise failure. +** Returns BTA_SUCCESS if command started successfully; otherwise failure. ** *******************************************************************************/ void BTA_BleUpdateAdvInstParam (UINT8 inst_id, tBTA_BLE_ADV_PARAMS *p_params) @@ -1940,7 +1940,7 @@ void BTA_BleUpdateAdvInstParam (UINT8 inst_id, tBTA_BLE_ADV_PARAMS *p_params) ** memory space can not be freed until BTA_BLE_MULTI_ADV_DATA_EVT ** is sent to application. ** -** Returns BTA_SUCCESS if command started sucessfully; otherwise failure. +** Returns BTA_SUCCESS if command started successfully; otherwise failure. ** *******************************************************************************/ void BTA_BleCfgAdvInstData (UINT8 inst_id, BOOLEAN is_scan_rsp, @@ -1973,7 +1973,7 @@ void BTA_BleCfgAdvInstData (UINT8 inst_id, BOOLEAN is_scan_rsp, ** ** Parameter inst_id: instance ID to disable. ** -** Returns BTA_SUCCESS if command started sucessfully; otherwise failure. +** Returns BTA_SUCCESS if command started successfully; otherwise failure. ** *******************************************************************************/ void BTA_BleDisableAdvInstance (UINT8 inst_id) //this function just used for vendor debug diff --git a/components/bt/host/bluedroid/bta/gatt/bta_gattc_api.c b/components/bt/host/bluedroid/bta/gatt/bta_gattc_api.c index 7a39d2952..903bc82a8 100644 --- a/components/bt/host/bluedroid/bta/gatt/bta_gattc_api.c +++ b/components/bt/host/bluedroid/bta/gatt/bta_gattc_api.c @@ -76,7 +76,7 @@ void BTA_GATTC_Disable(void) ** Description This function is called to register application callbacks ** with BTA GATTC module. ** -** Parameters p_app_uuid - applicaiton UUID +** Parameters p_app_uuid - application UUID ** p_client_cb - pointer to the application callback function. ** ** Returns None diff --git a/components/bt/host/bluedroid/bta/gatt/bta_gatts_api.c b/components/bt/host/bluedroid/bta/gatt/bta_gatts_api.c index aefe62d65..5397c6487 100644 --- a/components/bt/host/bluedroid/bta/gatt/bta_gatts_api.c +++ b/components/bt/host/bluedroid/bta/gatt/bta_gatts_api.c @@ -76,7 +76,7 @@ void BTA_GATTS_Disable(void) ** Description This function is called to register application callbacks ** with BTA GATTS module. ** -** Parameters p_app_uuid - applicaiton UUID +** Parameters p_app_uuid - application UUID ** p_cback - pointer to the application callback function. ** ** Returns None @@ -347,7 +347,7 @@ void BTA_GATTS_DeleteService(UINT16 service_id) ** Description This function is called to start a service. ** ** Parameters service_id: the service ID to be started. -** sup_transport: supported trasnport. +** sup_transport: supported transport. ** ** Returns None. ** diff --git a/components/bt/host/bluedroid/bta/hh/bta_hh_le.c b/components/bt/host/bluedroid/bta/hh/bta_hh_le.c index c049275e4..6c86cb9be 100644 --- a/components/bt/host/bluedroid/bta/hh/bta_hh_le.c +++ b/components/bt/host/bluedroid/bta/hh/bta_hh_le.c @@ -850,7 +850,7 @@ void bta_hh_le_register_input_notif(tBTA_HH_DEV_CB *p_dev_cb, UINT8 srvc_inst, ** ** Function bta_hh_le_open_cmpl ** -** Description HID over GATT connection sucessfully opened +** Description HID over GATT connection successfully opened ** *******************************************************************************/ void bta_hh_le_open_cmpl(tBTA_HH_DEV_CB *p_cb) @@ -1556,7 +1556,7 @@ void bta_hh_le_srvc_search_cmpl(tBTA_GATTC_SEARCH_CMPL *p_data) /* close the connection and report service discovery complete with error */ bta_hh_le_api_disc_act(p_dev_cb); } - /* GATT service discovery sucessfully finished */ + /* GATT service discovery successfully finished */ else { if (p_dev_cb->disc_active & BTA_HH_LE_DISC_SCPS) { p_dev_cb->disc_active &= ~BTA_HH_LE_DISC_SCPS; diff --git a/components/bt/host/bluedroid/bta/include/bta/bta_api.h b/components/bt/host/bluedroid/bta/include/bta/bta_api.h index c9349e80e..3a67d07a8 100644 --- a/components/bt/host/bluedroid/bta/include/bta/bta_api.h +++ b/components/bt/host/bluedroid/bta/include/bta/bta_api.h @@ -600,10 +600,10 @@ typedef struct { typedef union { tBLE_BD_ADDR target_addr; - tBTA_DM_BLE_PF_LOCAL_NAME_COND local_name; /* lcoal name filtering */ - tBTA_DM_BLE_PF_MANU_COND manu_data; /* manufactuer data filtering */ + tBTA_DM_BLE_PF_LOCAL_NAME_COND local_name; /* local name filtering */ + tBTA_DM_BLE_PF_MANU_COND manu_data; /* manufacturer data filtering */ tBTA_DM_BLE_PF_UUID_COND srvc_uuid; /* service UUID filtering */ - tBTA_DM_BLE_PF_UUID_COND solicitate_uuid; /* solicitated service UUID filtering */ + tBTA_DM_BLE_PF_UUID_COND solicitate_uuid; /* solicited service UUID filtering */ tBTA_DM_BLE_PF_SRVC_PATTERN_COND srvc_data; /* service data pattern */ } tBTA_DM_BLE_PF_COND_PARAM; @@ -1215,7 +1215,7 @@ typedef UINT16 tBTA_DM_LP_MASK; #define BTA_DM_PM_ACTIVE 0x40 /* prefers active mode */ #define BTA_DM_PM_RETRY 0x80 /* retry power mode based on current settings */ #define BTA_DM_PM_SUSPEND 0x04 /* prefers suspend mode */ -#define BTA_DM_PM_NO_PREF 0x01 /* service has no prefernce on power mode setting. eg. connection to service got closed */ +#define BTA_DM_PM_NO_PREF 0x01 /* service has no preference on power mode setting. eg. connection to service got closed */ typedef UINT8 tBTA_DM_PM_ACTION; @@ -1757,7 +1757,7 @@ extern UINT16 BTA_DmGetConnectionState( BD_ADDR bd_addr ); ** ** Description This function adds a DI record to the local SDP database. ** -** Returns BTA_SUCCESS if record set sucessfully, otherwise error code. +** Returns BTA_SUCCESS if record set successfully, otherwise error code. ** *******************************************************************************/ extern tBTA_STATUS BTA_DmSetLocalDiRecord( tBTA_DI_RECORD *p_device_info, diff --git a/components/bt/host/bluedroid/bta/include/bta/bta_gatt_api.h b/components/bt/host/bluedroid/bta/include/bta/bta_gatt_api.h index 664536ddd..b5f58e0fc 100644 --- a/components/bt/host/bluedroid/bta/include/bta/bta_gatt_api.h +++ b/components/bt/host/bluedroid/bta/include/bta/bta_gatt_api.h @@ -151,7 +151,7 @@ typedef UINT8 tBTA_GATT_STATUS; #define BTA_GATTC_CLOSE_EVT 5 /* GATTC close request status event */ #define BTA_GATTC_SEARCH_CMPL_EVT 6 /* GATT discovery complete event */ #define BTA_GATTC_SEARCH_RES_EVT 7 /* GATT discovery result event */ -#define BTA_GATTC_READ_DESCR_EVT 8 /* GATT read characterisitc descriptor event */ +#define BTA_GATTC_READ_DESCR_EVT 8 /* GATT read characteristic descriptor event */ #define BTA_GATTC_WRITE_DESCR_EVT 9 /* GATT write characteristic descriptor event */ #define BTA_GATTC_NOTIF_EVT 10 /* GATT attribute notification event */ #define BTA_GATTC_PREP_WRITE_EVT 11 /* GATT prepare write event */ @@ -752,7 +752,7 @@ extern void BTA_GATTC_Disable(void); ** Description This function is called to register application callbacks ** with BTA GATTC module. ** -** Parameters p_app_uuid - applicaiton UUID +** Parameters p_app_uuid - application UUID ** p_client_cb - pointer to the application callback function. ** ** Returns None @@ -1227,7 +1227,7 @@ extern void BTA_GATTS_Disable(void); ** Description This function is called to register application callbacks ** with BTA GATTS module. ** -** Parameters p_app_uuid - applicaiton UUID +** Parameters p_app_uuid - application UUID ** p_cback - pointer to the application callback function. ** ** Returns None @@ -1350,7 +1350,7 @@ extern void BTA_GATTS_DeleteService(UINT16 service_id); ** Description This function is called to start a service. ** ** Parameters service_id: the service ID to be started. -** sup_transport: supported trasnport. +** sup_transport: supported transport. ** ** Returns None. ** diff --git a/components/bt/host/bluedroid/btc/core/btc_ble_storage.c b/components/bt/host/bluedroid/btc/core/btc_ble_storage.c index 7d975a54b..bab534642 100644 --- a/components/bt/host/bluedroid/btc/core/btc_ble_storage.c +++ b/components/bt/host/bluedroid/btc/core/btc_ble_storage.c @@ -80,7 +80,7 @@ static void _btc_storage_save(void) //delete device info string_to_bdaddr(need_remove_section, &bd_addr); BTM_SecDeleteDevice(bd_addr.address, BT_TRANSPORT_LE); - //delet config info + //delete config info if(btc_config_remove_section(need_remove_section)) { BTIF_TRACE_WARNING("exceeded the maximum nubmer of bonded devices, delete the last device info : %s", need_remove_section); } @@ -901,7 +901,7 @@ bt_status_t btc_storage_get_bonded_ble_devices_list(esp_ble_bond_dev_t *bond_dev bond_dev->bond_key.pid_key.addr_type = pid_key->addr_type; memcpy(&bond_dev->bond_key.pid_key.static_addr, pid_key->static_addr, ESP_BD_ADDR_LEN); } - //serch for the next bond device + //search for the next bond device bond_dev++; } btc_config_unlock(); diff --git a/components/bt/host/bluedroid/stack/avdt/avdt_l2c.c b/components/bt/host/bluedroid/stack/avdt/avdt_l2c.c index 3227fa69b..c7c1e58ac 100644 --- a/components/bt/host/bluedroid/stack/avdt/avdt_l2c.c +++ b/components/bt/host/bluedroid/stack/avdt/avdt_l2c.c @@ -127,7 +127,7 @@ static void avdt_sec_check_complete_term (BD_ADDR bd_addr, tBT_TRANSPORT transpo ** Returns void ** *******************************************************************************/ -static void avdt_sec_check_complete_orig (BD_ADDR bd_addr, tBT_TRANSPORT trasnport, +static void avdt_sec_check_complete_orig (BD_ADDR bd_addr, tBT_TRANSPORT transport, void *p_ref_data, UINT8 res) { tAVDT_CCB *p_ccb = NULL; diff --git a/components/bt/host/bluedroid/stack/btm/btm_ble_adv_filter.c b/components/bt/host/bluedroid/stack/btm/btm_ble_adv_filter.c index 438485359..e32d1034d 100644 --- a/components/bt/host/bluedroid/stack/btm/btm_ble_adv_filter.c +++ b/components/bt/host/bluedroid/stack/btm/btm_ble_adv_filter.c @@ -921,7 +921,7 @@ tBTM_STATUS btm_ble_clear_scan_pf_filter(tBTM_BLE_SCAN_COND_OP action, /* clear the general filter entry */ if (NULL == p_target) { - /* clear manufactuer data filter */ + /* clear manufacturer data filter */ st = btm_ble_update_pf_manu_data(BTM_BLE_SCAN_COND_CLEAR, filt_index, NULL, BTM_BLE_PF_MANU_DATA, cb_evt, ref_value); if (BTM_CMD_STARTED == st) { @@ -1213,7 +1213,7 @@ tBTM_STATUS BTM_BleCfgFilterCondition(tBTM_BLE_SCAN_COND_OP action, st = btm_ble_update_addr_filter(action, filt_index, p_cond); break; - /* filter on service/solicitated UUID */ + /* filter on service/solicited UUID */ case BTM_BLE_PF_SRVC_UUID: case BTM_BLE_PF_SRVC_SOL_UUID: st = btm_ble_update_uuid_filter(action, filt_index, cond_type, p_cond, 0, ref_value); diff --git a/components/bt/host/bluedroid/stack/btm/include/btm_int.h b/components/bt/host/bluedroid/stack/btm/include/btm_int.h index 4ef728508..b30e0f0ae 100644 --- a/components/bt/host/bluedroid/stack/btm/include/btm_int.h +++ b/components/bt/host/bluedroid/stack/btm/include/btm_int.h @@ -1116,7 +1116,7 @@ void btm_sec_link_key_notification (UINT8 *p_bda, UINT8 *p_link_key, UINT8 key_ void btm_sec_link_key_request (UINT8 *p_bda); void btm_sec_pin_code_request (UINT8 *p_bda); void btm_sec_update_clock_offset (UINT16 handle, UINT16 clock_offset); -void btm_sec_dev_rec_cback_event (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 res, BOOLEAN is_le_trasnport); +void btm_sec_dev_rec_cback_event (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 res, BOOLEAN is_le_transport); void btm_sec_set_peer_sec_caps (tACL_CONN *p_acl_cb, tBTM_SEC_DEV_REC *p_dev_rec); #if BLE_INCLUDED == TRUE diff --git a/components/bt/host/bluedroid/stack/gatt/att_protocol.c b/components/bt/host/bluedroid/stack/gatt/att_protocol.c index adbedab52..15ca89f91 100644 --- a/components/bt/host/bluedroid/stack/gatt/att_protocol.c +++ b/components/bt/host/bluedroid/stack/gatt/att_protocol.c @@ -455,7 +455,7 @@ BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg) ** Parameter p_tcb: pointer to the connecton control block. ** p_msg: pointer to message parameters structure. ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** ** *******************************************************************************/ @@ -526,7 +526,7 @@ tGATT_STATUS attp_cl_send_cmd(tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 cmd_code, ** op_code: message op code. ** p_msg: pointer to message parameters structure. ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** ** *******************************************************************************/ diff --git a/components/bt/host/bluedroid/stack/gatt/gatt_api.c b/components/bt/host/bluedroid/stack/gatt/gatt_api.c index a946c1eff..473250a59 100644 --- a/components/bt/host/bluedroid/stack/gatt/gatt_api.c +++ b/components/bt/host/bluedroid/stack/gatt/gatt_api.c @@ -80,7 +80,7 @@ UINT8 GATT_SetTraceLevel (UINT8 new_level) ** ** Parameter p_hndl_range: pointer to allocated handles information ** -** Returns TRUE if handle range is added sucessfully; otherwise FALSE. +** Returns TRUE if handle range is added successfully; otherwise FALSE. ** *******************************************************************************/ @@ -382,7 +382,7 @@ BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_ GATT_TRACE_DEBUG ("GATTS_DeleteService"); if (p_reg == NULL) { - GATT_TRACE_ERROR ("Applicaiton not foud"); + GATT_TRACE_ERROR ("Application not foud"); return (FALSE); } p_app_uuid128 = &p_reg->app_uuid128; @@ -434,7 +434,7 @@ BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_ ** p_cback : application service callback functions. ** sup_transport : supported transport(s) for this primary service ** -** return GATT_SUCCESS if sucessfully started; otherwise error code. +** return GATT_SUCCESS if successfully started; otherwise error code. ** *******************************************************************************/ tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, @@ -454,7 +454,7 @@ tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, if (p_reg == NULL) { /* Not found */ - GATT_TRACE_ERROR ("Applicaiton not found "); + GATT_TRACE_ERROR ("Application not found "); return GATT_NOT_FOUND; } @@ -562,7 +562,7 @@ void GATTS_StopService (UINT16 service_handle) ** val_len: Length of the indicated attribute value. ** p_val: Pointer to the indicated attribute value data. ** -** Returns GATT_SUCCESS if sucessfully sent or queued; otherwise error code. +** Returns GATT_SUCCESS if successfully sent or queued; otherwise error code. ** *******************************************************************************/ tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_handle, UINT16 val_len, UINT8 *p_val) @@ -629,7 +629,7 @@ tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_handle, U ** val_len: Length of the indicated attribute value. ** p_val: Pointer to the indicated attribute value data. ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** *******************************************************************************/ tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle, @@ -677,7 +677,7 @@ tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle, ** status: response status ** p_msg: pointer to message parameters structure. ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** *******************************************************************************/ tGATT_STATUS GATTS_SendRsp (UINT16 conn_id, UINT32 trans_id, @@ -1054,7 +1054,7 @@ tGATT_STATUS GATTC_Write (UINT16 conn_id, tGATT_WRITE_TYPE type, tGATT_VALUE *p_ ** the server. ** ** Parameters conn_id: connection identifier. -** is_execute - to execute or cancel the prepare write requet(s) +** is_execute - to execute or cancel the prepare write request(s) ** ** Returns GATT_SUCCESS if command started successfully. ** @@ -1232,7 +1232,7 @@ tGATT_IF GATT_Register (tBT_UUID *p_app_uuid128, const tGATT_CBACK *p_cb_info) ** ** Description This function deregistered the application from GATT. ** -** Parameters gatt_if: applicaiton interface. +** Parameters gatt_if: application interface. ** ** Returns None. ** @@ -1309,7 +1309,7 @@ void GATT_Deregister (tGATT_IF gatt_if) ** callbacks for registered interface. Function may call back ** with connection status and queued notifications ** -** Parameter gatt_if: applicaiton interface. +** Parameter gatt_if: application interface. ** ** Returns None. ** @@ -1342,13 +1342,13 @@ void GATT_StartIf (tGATT_IF gatt_if) ** ** Function GATT_Connect ** -** Description This function initiate a connecttion to a remote device on GATT +** Description This function initiate a connection to a remote device on GATT ** channel. ** -** Parameters gatt_if: applicaiton interface +** Parameters gatt_if: application interface ** bd_addr: peer device address. ** bd_addr_type: peer device address type. -** is_direct: is a direct conenection or a background auto connection +** is_direct: is a direct connection or a background auto connection ** ** Returns TRUE if connection started; FALSE if connection start failure. ** @@ -1532,10 +1532,10 @@ tGATT_STATUS GATT_SendServiceChangeIndication (BD_ADDR bd_addr) ** interface ** ** Parameters conn_id: connection id (input) -** p_gatt_if: applicaiton interface (output) +** p_gatt_if: application interface (output) ** bd_addr: peer device address. (output) ** -** Returns TRUE the ligical link information is found for conn_id +** Returns TRUE the logical link information is found for conn_id ** *******************************************************************************/ BOOLEAN GATT_GetConnectionInfor(UINT16 conn_id, tGATT_IF *p_gatt_if, BD_ADDR bd_addr, @@ -1567,7 +1567,7 @@ BOOLEAN GATT_GetConnectionInfor(UINT16 conn_id, tGATT_IF *p_gatt_if, BD_ADDR bd_ ** Description This function find the conn_id if the logical link for BD address ** and applciation interface is connected ** -** Parameters gatt_if: applicaiton interface (input) +** Parameters gatt_if: application interface (input) ** bd_addr: peer device address. (input) ** p_conn_id: connection id (output) ** transport: transport option @@ -1599,7 +1599,7 @@ BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr, UINT16 *p_c ** Description This function start or stop LE advertisement and listen for ** connection. ** -** Parameters gatt_if: applicaiton interface +** Parameters gatt_if: application interface ** p_bd_addr: listen for specific address connection, or NULL for ** listen to all device connection. ** start: start or stop listening. diff --git a/components/bt/host/bluedroid/stack/gatt/gatt_main.c b/components/bt/host/bluedroid/stack/gatt/gatt_main.c index c4138ad21..fd300b381 100644 --- a/components/bt/host/bluedroid/stack/gatt/gatt_main.c +++ b/components/bt/host/bluedroid/stack/gatt/gatt_main.c @@ -1028,7 +1028,7 @@ void gatt_add_a_bonded_dev_for_srv_chg (BD_ADDR bda) ** Description This function is called to send a service changed indication to ** the specified bd address ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code +** Returns GATT_SUCCESS if successfully sent; otherwise error code ** *******************************************************************************/ #if (GATTS_INCLUDED == TRUE) diff --git a/components/bt/host/bluedroid/stack/gatt/gatt_sr.c b/components/bt/host/bluedroid/stack/gatt/gatt_sr.c index 6bad33b5c..956eec71f 100644 --- a/components/bt/host/bluedroid/stack/gatt/gatt_sr.c +++ b/components/bt/host/bluedroid/stack/gatt/gatt_sr.c @@ -669,7 +669,7 @@ static tGATT_STATUS gatt_build_primary_service_rsp (BT_HDR *p_msg, tGATT_TCB *p_ ** Description fill the find information response information in the given ** buffer. ** -** Returns TRUE: if data filled sucessfully. +** Returns TRUE: if data filled successfully. ** FALSE: packet full, or format mismatch. ** *******************************************************************************/ @@ -962,7 +962,7 @@ static void gatts_process_mtu_req (tGATT_TCB *p_tcb, UINT16 len, UINT8 *p_data) if ((p_buf = attp_build_sr_msg(p_tcb, GATT_RSP_MTU, (tGATT_SR_MSG *) &p_tcb->payload_size)) != NULL) { attp_send_sr_msg (p_tcb, p_buf); - /* Notify all registered applicaiton with new MTU size. Us a transaction ID */ + /* Notify all registered application with new MTU size. Us a transaction ID */ /* of 0, as no response is allowed from applcations */ for (i = 0; i < GATT_MAX_APPS; i ++) { diff --git a/components/bt/host/bluedroid/stack/gatt/gatt_utils.c b/components/bt/host/bluedroid/stack/gatt/gatt_utils.c index 1e97549c2..611f5bed2 100644 --- a/components/bt/host/bluedroid/stack/gatt/gatt_utils.c +++ b/components/bt/host/bluedroid/stack/gatt/gatt_utils.c @@ -1887,7 +1887,7 @@ void gatt_sr_reset_prep_cnt(tGATT_TCB *p_tcb ) ** ** Function gatt_sr_update_cback_cnt ** -** Description Update the teh applicaiton callback count +** Description Update the teh application callback count ** ** Returns None ** @@ -1977,7 +1977,7 @@ BOOLEAN gatt_cancel_open(tGATT_IF gatt_if, BD_ADDR bda) ** ** Function gatt_find_app_hold_link ** -** Description find the applicaiton that is holding the specified link +** Description find the application that is holding the specified link ** ** Returns Boolean ** @@ -2002,7 +2002,7 @@ BOOLEAN gatt_find_app_hold_link(tGATT_TCB *p_tcb, UINT8 start_idx, UINT8 *p_foun ** ** Function gatt_find_specific_app_in_hold_link ** -** Description find the specific applicaiton that is holding the specified link +** Description find the specific application that is holding the specified link ** ** Returns Boolean ** diff --git a/components/bt/host/bluedroid/stack/include/stack/btm_api.h b/components/bt/host/bluedroid/stack/include/stack/btm_api.h index 641dd93f5..29e6c8ecd 100644 --- a/components/bt/host/bluedroid/stack/include/stack/btm_api.h +++ b/components/bt/host/bluedroid/stack/include/stack/btm_api.h @@ -1562,7 +1562,7 @@ typedef void (tBTM_MKEY_CALLBACK) (BD_ADDR bd_addr, UINT8 status, UINT8 key_flag ** optional data passed in by BTM_SetEncryption ** tBTM_STATUS - result of the operation */ -typedef void (tBTM_SEC_CBACK) (BD_ADDR bd_addr, tBT_TRANSPORT trasnport, +typedef void (tBTM_SEC_CBACK) (BD_ADDR bd_addr, tBT_TRANSPORT transport, void *p_ref_data, tBTM_STATUS result); /* Bond Cancel complete. Parameters are diff --git a/components/bt/host/bluedroid/stack/include/stack/btm_ble_api.h b/components/bt/host/bluedroid/stack/include/stack/btm_ble_api.h index 2ac01ea2e..7446aefe5 100644 --- a/components/bt/host/bluedroid/stack/include/stack/btm_ble_api.h +++ b/components/bt/host/bluedroid/stack/include/stack/btm_ble_api.h @@ -448,7 +448,7 @@ typedef struct { typedef struct { tBTM_BLE_INT_RANGE int_range; /* slave prefered conn interval range */ - tBTM_BLE_MANU *p_manu; /* manufactuer data */ + tBTM_BLE_MANU *p_manu; /* manufacturer data */ tBTM_BLE_SERVICE *p_services; /* services */ tBTM_BLE_128SERVICE *p_services_128b; /* 128 bits service */ tBTM_BLE_32SERVICE *p_service_32b; /* 32 bits Service UUID */ @@ -732,10 +732,10 @@ typedef struct { typedef union { tBLE_BD_ADDR target_addr; - tBTM_BLE_PF_LOCAL_NAME_COND local_name; /* lcoal name filtering */ - tBTM_BLE_PF_MANU_COND manu_data; /* manufactuer data filtering */ + tBTM_BLE_PF_LOCAL_NAME_COND local_name; /* local name filtering */ + tBTM_BLE_PF_MANU_COND manu_data; /* manufacturer data filtering */ tBTM_BLE_PF_UUID_COND srvc_uuid; /* service UUID filtering */ - tBTM_BLE_PF_UUID_COND solicitate_uuid; /* solicitated service UUID filtering */ + tBTM_BLE_PF_UUID_COND solicitate_uuid; /* solicited service UUID filtering */ tBTM_BLE_PF_SRVC_PATTERN_COND srvc_data; /* service data pattern */ } tBTM_BLE_PF_COND_PARAM; @@ -1052,9 +1052,9 @@ void BTM_BleReadAdvParams (UINT16 *adv_int_min, UINT16 *adv_int_max, ** ** Function BTM_BleObtainVendorCapabilities ** -** Description This function is called to obatin vendor capabilties +** Description This function is called to obtain vendor capabilities ** -** Parameters p_cmn_vsc_cb - Returns the vednor capabilities +** Parameters p_cmn_vsc_cb - Returns the vendor capabilities ** ** Returns void ** diff --git a/components/bt/host/bluedroid/stack/include/stack/gatt_api.h b/components/bt/host/bluedroid/stack/include/stack/gatt_api.h index c250f9a3c..56b68e1d6 100644 --- a/components/bt/host/bluedroid/stack/include/stack/gatt_api.h +++ b/components/bt/host/bluedroid/stack/include/stack/gatt_api.h @@ -111,7 +111,7 @@ typedef UINT8 tGATT_STATUS; #define GATT_SIGN_CMD_WRITE 0xD2 /* changed in V4.0 1101-0010 (signed write) see write cmd above*/ #define GATT_OP_CODE_MAX GATT_HANDLE_VALUE_CONF + 1 /* 0x1E = 30 + 1 = 31*/ -#define GATT_COMMAND_FLAG 0x40 /* Command Flag: set to one means commond */ +#define GATT_COMMAND_FLAG 0x40 /* Command Flag: set to one means command */ #define GATT_HANDLE_IS_VALID(x) ((x) != 0) @@ -131,7 +131,7 @@ typedef UINT16 tGATT_DISCONN_REASON; #define GATT_MAX_MTU_SIZE 517 #endif -/* max legth of an attribute value +/* max length of an attribute value */ #ifndef GATT_MAX_ATTR_LEN #define GATT_MAX_ATTR_LEN 600 @@ -247,7 +247,7 @@ typedef UINT8 tGATT_FORMAT; /* Characteristic Presentation Format Descriptor value */ typedef struct { - UINT16 unit; /* as UUIUD defined by SIG */ + UINT16 unit; /* as UUID defined by SIG */ UINT16 descr; /* as UUID as defined by SIG */ tGATT_FORMAT format; INT8 exp; @@ -317,7 +317,7 @@ typedef UINT8 tGATT_AUTH_REQ; typedef struct { UINT16 conn_id; UINT16 handle; /* attribute handle */ - UINT16 offset; /* attribute value offset, if no offfset is needed for the command, ignore it */ + UINT16 offset; /* attribute value offset, if no offset is needed for the command, ignore it */ UINT16 len; /* length of attribute value */ tGATT_AUTH_REQ auth_req; /* authentication request */ UINT8 value[GATT_MAX_ATTR_LEN]; /* the actual attribute value */ @@ -368,7 +368,7 @@ typedef struct { /* write request data */ typedef struct { UINT16 handle; /* attribute handle */ - UINT16 offset; /* attribute value offset, if no offfset is needed for the command, ignore it */ + UINT16 offset; /* attribute value offset, if no offset is needed for the command, ignore it */ UINT16 len; /* length of attribute value */ UINT8 value[GATT_MAX_ATTR_LEN]; /* the actual attribute value */ BOOLEAN need_rsp; /* need write response */ @@ -468,7 +468,7 @@ typedef struct { */ typedef union { tGATT_READ_BY_TYPE service; - tGATT_READ_BY_TYPE char_type; /* characterisitc type */ + tGATT_READ_BY_TYPE char_type; /* characteristic type */ tGATT_READ_MULTI read_multiple; tGATT_READ_BY_HANDLE by_handle; tGATT_READ_PARTIAL partial; @@ -505,7 +505,7 @@ typedef UINT8 tGATTC_OPTYPE; /* characteristic declaration */ typedef struct { - tGATT_CHAR_PROP char_prop; /* characterisitc properties */ + tGATT_CHAR_PROP char_prop; /* characteristic properties */ UINT16 val_handle; /* characteristic value attribute handle */ tBT_UUID char_uuid; /* characteristic UUID type */ } tGATT_CHAR_DCLR_VAL; @@ -639,7 +639,7 @@ typedef struct { tGATTS_HNDL_RANGE *p_new_srv_start; } tGATTS_PENDING_NEW_SRV_START; -/* Attibute server handle ranges NV storage callback functions +/* Attribute server handle ranges NV storage callback functions */ typedef void (tGATTS_NV_SAVE_CBACK)(BOOLEAN is_saved, tGATTS_HNDL_RANGE *p_hndl_range); typedef BOOLEAN (tGATTS_NV_SRV_CHG_CBACK)(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req, @@ -688,7 +688,7 @@ extern UINT8 GATT_SetTraceLevel (UINT8 new_level); ** ** Parameter p_hndl_range: pointer to allocated handles information ** -** Returns TRUE if handle range is added sucessfully; otherwise FALSE. +** Returns TRUE if handle range is added successfully; otherwise FALSE. ** *******************************************************************************/ @@ -724,7 +724,7 @@ extern BOOLEAN GATTS_NVRegister (const tGATT_APPL_INFO *p_cb_info); ** num_handles : number of handles needed by the service. ** is_pri : is a primary service or not. ** -** Returns service handle if sucessful, otherwise 0. +** Returns service handle if successful, otherwise 0. ** *******************************************************************************/ extern UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, @@ -819,7 +819,7 @@ extern BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, ** p_cback : application service callback functions. ** sup_transport : supported transport(s) for this primary service ** -** return GATT_SUCCESS if sucessfully started; otherwise error code. +** return GATT_SUCCESS if successfully started; otherwise error code. ** *******************************************************************************/ extern tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, @@ -851,7 +851,7 @@ extern void GATTS_StopService (UINT16 service_handle); ** val_len: Length of the indicated attribute value. ** p_val: Pointer to the indicated attribute value data. ** -** Returns GATT_SUCCESS if sucessfully sent or queued; otherwise error code. +** Returns GATT_SUCCESS if successfully sent or queued; otherwise error code. ** *******************************************************************************/ extern tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, @@ -869,7 +869,7 @@ extern tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, ** val_len: Length of the indicated attribute value. ** p_val: Pointer to the indicated attribute value data. ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** *******************************************************************************/ extern tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle, @@ -887,7 +887,7 @@ extern tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_ ** status: response status ** p_msg: pointer to message parameters structure. ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** *******************************************************************************/ extern tGATT_STATUS GATTS_SendRsp (UINT16 conn_id, UINT32 trans_id, @@ -904,7 +904,7 @@ extern tGATT_STATUS GATTS_SendRsp (UINT16 conn_id, UINT32 trans_id, ** length: the attribute length ** value: the value to be set to the attribute in the database ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** *******************************************************************************/ tGATT_STATUS GATTS_SetAttributeValue(UINT16 attr_handle, UINT16 length, UINT8 *value); @@ -920,7 +920,7 @@ tGATT_STATUS GATTS_SetAttributeValue(UINT16 attr_handle, UINT16 length, UINT8 *v ** length:the attribute value length in the database ** value: the attribute value out put ** -** Returns GATT_SUCCESS if sucessfully sent; otherwise error code. +** Returns GATT_SUCCESS if successfully sent; otherwise error code. ** *******************************************************************************/ tGATT_STATUS GATTS_GetAttributeValue(UINT16 attr_handle, UINT16 *length, UINT8 **value); @@ -1005,7 +1005,7 @@ extern tGATT_STATUS GATTC_Write (UINT16 conn_id, tGATT_WRITE_TYPE type, ** the server. ** ** Parameters conn_id: connection identifier. -** is_execute - to execute or cancel the prepare write requet(s) +** is_execute - to execute or cancel the prepare write request(s) ** ** Returns GATT_SUCCESS if command started successfully. ** @@ -1037,7 +1037,7 @@ extern tGATT_STATUS GATTC_SendHandleValueConfirm (UINT16 conn_id, UINT16 handle) ** ** Parameter bd_addr: target device bd address. ** idle_tout: timeout value in seconds. -** transport: trasnport option. +** transport: transport option. ** ** Returns void ** @@ -1067,7 +1067,7 @@ extern tGATT_IF GATT_Register (tBT_UUID *p_app_uuid128, const tGATT_CBACK *p_cb ** ** Description This function deregistered the application from GATT. ** -** Parameters gatt_if: applicaiton interface. +** Parameters gatt_if: application interface. ** ** Returns None. ** @@ -1082,7 +1082,7 @@ extern void GATT_Deregister (tGATT_IF gatt_if); ** callbacks for registered interface. Function may call back ** with connection status and queued notifications ** -** Parameter gatt_if: applicaiton interface. +** Parameter gatt_if: application interface. ** ** Returns None ** @@ -1093,13 +1093,13 @@ extern void GATT_StartIf (tGATT_IF gatt_if); ** ** Function GATT_Connect ** -** Description This function initiate a connecttion to a remote device on GATT +** Description This function initiate a connection to a remote device on GATT ** channel. ** -** Parameters gatt_if: applicaiton interface +** Parameters gatt_if: application interface ** bd_addr: peer device address. ** bd_addr_type: peer device address type. -** is_direct: is a direct conenection or a background auto connection +** is_direct: is a direct connection or a background auto connection ** transport : Physical transport for GATT connection (BR/EDR or LE) ** ** Returns TRUE if connection started; FALSE if connection start failure. @@ -1119,7 +1119,7 @@ extern BOOLEAN GATT_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr, tBLE_ADDR_TYPE b ** Parameters gatt_if: client interface. If 0 used as unconditionally disconnect, ** typically used for direct connection cancellation. ** bd_addr: peer device address. -** is_direct: is a direct conenection or a background auto connection +** is_direct: is a direct connection or a background auto connection ** ** Returns TRUE if connection started; FALSE if connection start failure. ** @@ -1158,15 +1158,15 @@ extern tGATT_STATUS GATT_SendServiceChangeIndication (BD_ADDR bd_addr); ** ** Function GATT_GetConnectionInfor ** -** Description This function use conn_id to find its associated BD address and applciation +** Description This function use conn_id to find its associated BD address and application ** interface ** ** Parameters conn_id: connection id (input) -** p_gatt_if: applicaiton interface (output) +** p_gatt_if: application interface (output) ** bd_addr: peer device address. (output) ** transport : physical transport of the GATT connection (BR/EDR or LE) ** -** Returns TRUE the ligical link information is found for conn_id +** Returns TRUE the logical link information is found for conn_id ** *******************************************************************************/ extern BOOLEAN GATT_GetConnectionInfor(UINT16 conn_id, tGATT_IF *p_gatt_if, @@ -1178,14 +1178,14 @@ extern BOOLEAN GATT_GetConnectionInfor(UINT16 conn_id, tGATT_IF *p_gatt_if, ** Function GATT_GetConnIdIfConnected ** ** Description This function find the conn_id if the logical link for BD address -** and applciation interface is connected +** and application interface is connected ** -** Parameters gatt_if: applicaiton interface (input) +** Parameters gatt_if: application interface (input) ** bd_addr: peer device address. (input) ** p_conn_id: connection id (output) ** transport : physical transport of the GATT connection (BR/EDR or LE) ** -** Returns TRUE the ligical link is connected +** Returns TRUE the logical link is connected ** *******************************************************************************/ extern BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr, @@ -1199,10 +1199,10 @@ extern BOOLEAN GATT_GetConnIdIfConnected(tGATT_IF gatt_if, BD_ADDR bd_addr, ** Description This function start or stop LE advertisement and listen for ** connection. ** -** Parameters gatt_if: applicaiton interface +** Parameters gatt_if: application interface ** p_bd_addr: listen for specific address connection, or NULL for ** listen to all device connection. -** start: is a direct conenection or a background auto connection +** start: is a direct connection or a background auto connection ** ** Returns TRUE if advertisement is started; FALSE if adv start failure. ** diff --git a/components/bt/host/bluedroid/stack/l2cap/include/l2c_int.h b/components/bt/host/bluedroid/stack/l2cap/include/l2c_int.h index e4cd48749..c609426ab 100644 --- a/components/bt/host/bluedroid/stack/l2cap/include/l2c_int.h +++ b/components/bt/host/bluedroid/stack/l2cap/include/l2c_int.h @@ -251,7 +251,7 @@ typedef struct { tL2CAP_APPL_INFO api; } tL2C_RCB; -typedef void (tL2CAP_SEC_CBACK) (BD_ADDR bd_addr, tBT_TRANSPORT trasnport, +typedef void (tL2CAP_SEC_CBACK) (BD_ADDR bd_addr, tBT_TRANSPORT transport, void *p_ref_data, tBTM_STATUS result); typedef struct @@ -723,7 +723,7 @@ extern void l2c_link_process_num_completed_blocks (UINT8 controller_id, UINT extern void l2c_link_processs_num_bufs (UINT16 num_lm_acl_bufs); extern UINT8 l2c_link_pkts_rcvd (UINT16 *num_pkts, UINT16 *handles); extern void l2c_link_role_changed (BD_ADDR bd_addr, UINT8 new_role, UINT8 hci_status); -extern void l2c_link_sec_comp (BD_ADDR p_bda, tBT_TRANSPORT trasnport, void *p_ref_data, UINT8 status); +extern void l2c_link_sec_comp (BD_ADDR p_bda, tBT_TRANSPORT transport, void *p_ref_data, UINT8 status); extern void l2c_link_segments_xmitted (BT_HDR *p_msg); extern void l2c_pin_code_request (BD_ADDR bd_addr); extern void l2c_link_adjust_chnl_allocation (void); diff --git a/components/bt/host/bluedroid/stack/l2cap/l2c_link.c b/components/bt/host/bluedroid/stack/l2cap/l2c_link.c index 1117a0aba..22360ac84 100644 --- a/components/bt/host/bluedroid/stack/l2cap/l2c_link.c +++ b/components/bt/host/bluedroid/stack/l2cap/l2c_link.c @@ -250,7 +250,7 @@ BOOLEAN l2c_link_hci_conn_comp (UINT8 status, UINT16 handle, BD_ADDR p_bda) l2cu_release_lcb (p_lcb); } else { /* there are any CCBs remaining */ if (ci.status == HCI_ERR_CONNECTION_EXISTS) { - /* we are in collision situation, wait for connecttion request from controller */ + /* we are in collision situation, wait for connection request from controller */ p_lcb->link_state = LST_CONNECTING; } else { l2cu_create_conn(p_lcb, BT_TRANSPORT_BR_EDR); diff --git a/components/esp_event/include/esp_event.h b/components/esp_event/include/esp_event.h index c78636415..7b4842014 100644 --- a/components/esp_event/include/esp_event.h +++ b/components/esp_event/include/esp_event.h @@ -352,7 +352,7 @@ esp_err_t esp_event_isr_post_to(esp_event_loop_handle_t event_loop, address - memory address of the event loop name - name of the event loop, 'none' if no dedicated task total_recieved - number of successfully posted events - total_dropped - number of events unsucessfully posted due to queue being full + total_dropped - number of events unsuccessfully posted due to queue being full handler format: address ev:base,id inv:total_invoked run:total_runtime diff --git a/docs/en/api-reference/peripherals/sdio_slave.rst b/docs/en/api-reference/peripherals/sdio_slave.rst index 163cf1168..3c3031ed7 100644 --- a/docs/en/api-reference/peripherals/sdio_slave.rst +++ b/docs/en/api-reference/peripherals/sdio_slave.rst @@ -181,7 +181,7 @@ set in the ``send_queue_size``. All the buffers are restricted to be no larger t mode several buffers can be sent in one transfer, each buffer is still counted as one in the queue. The application can call ``sdio_slave_transmit`` to send packets. In this case the function returns when the transfer -is sucessfully done, so the queue is not fully used. When higher effeciency is required, the application can use the +is successfully done, so the queue is not fully used. When higher effeciency is required, the application can use the following functions instead: 1. Pass buffer information (address, length, as well as an ``arg`` indicating the buffer) to ``sdio_slave_send_queue``. diff --git a/docs/en/api-reference/provisioning/wifi_provisioning.rst b/docs/en/api-reference/provisioning/wifi_provisioning.rst index 0cf035aee..bbd834ee2 100644 --- a/docs/en/api-reference/provisioning/wifi_provisioning.rst +++ b/docs/en/api-reference/provisioning/wifi_provisioning.rst @@ -269,7 +269,7 @@ On the other hand, if device was not able to connect using the provided Wi-Fi cr If this default behavior is not desired, it can be disabled by calling :cpp:func:`wifi_prov_mgr_disable_auto_stop()`. Now the provisioning service will only be stopped after an explicit call to :cpp:func:`wifi_prov_mgr_stop_provisioning()`, which returns immediately after scheduling a task for stopping the service. The service stops after a certain delay and WIFI_PROV_END event gets emitted. This delay is specified by the argument to :cpp:func:`wifi_prov_mgr_disable_auto_stop()`. -The customized behavior is useful for applications which want the provisioning service to be stopped some time after the Wi-Fi connection is successfully established. For example, if the application requires the device to connect to some cloud service and obtain another set of credentials, and exchange this credentials over a custom protocomm endpoint, then after sucessfully doing so stop the provisioning service by calling :cpp:func:`wifi_prov_mgr_stop_provisioning()` inside the protocomm handler itself. The right amount of delay ensures that the transport resources are freed only after the response from the protocomm handler reaches the client side application. +The customized behavior is useful for applications which want the provisioning service to be stopped some time after the Wi-Fi connection is successfully established. For example, if the application requires the device to connect to some cloud service and obtain another set of credentials, and exchange this credentials over a custom protocomm endpoint, then after successfully doing so stop the provisioning service by calling :cpp:func:`wifi_prov_mgr_stop_provisioning()` inside the protocomm handler itself. The right amount of delay ensures that the transport resources are freed only after the response from the protocomm handler reaches the client side application. Application Examples -------------------- diff --git a/examples/peripherals/uart/nmea0183_parser/README.md b/examples/peripherals/uart/nmea0183_parser/README.md index 105c6a626..f27a69f55 100644 --- a/examples/peripherals/uart/nmea0183_parser/README.md +++ b/examples/peripherals/uart/nmea0183_parser/README.md @@ -62,31 +62,31 @@ I (317) uart: queue free spaces: 16 I (317) nmea_parser: NMEA Parser init OK I (1067) gps_demo: 2018/12/4 13:59:34 => latitude = 31.20177°N - longtitude = 121.57933°E + longitude = 121.57933°E altitude = 17.30m speed = 0.370400m/s W (1177) gps_demo: Unknown statement:$GPTXT,01,01,01,ANTENNA OK*35 I (2067) gps_demo: 2018/12/4 13:59:35 => latitude = 31.20177°N - longtitude = 121.57933°E + longitude = 121.57933°E altitude = 17.30m speed = 0.000000m/s W (2177) gps_demo: Unknown statement:$GPTXT,01,01,01,ANTENNA OK*35 I (3067) gps_demo: 2018/12/4 13:59:36 => latitude = 31.20178°N - longtitude = 121.57933°E + longitude = 121.57933°E altitude = 17.30m speed = 0.000000m/s W (3177) gps_demo: Unknown statement:$GPTXT,01,01,01,ANTENNA OK*35 I (4067) gps_demo: 2018/12/4 13:59:37 => latitude = 31.20178°N - longtitude = 121.57933°E + longitude = 121.57933°E altitude = 17.30m speed = 0.000000m/s W (4177) gps_demo: Unknown statement:$GPTXT,01,01,01,ANTENNA OK*35 I (5067) gps_demo: 2018/12/4 13:59:38 => latitude = 31.20178°N - longtitude = 121.57933°E + longitude = 121.57933°E altitude = 17.30m speed = 0.685240m/s W (5177) gps_demo: Unknown statement:$GPTXT,01,01,01,ANTENNA OK*35 diff --git a/examples/peripherals/uart/nmea0183_parser/main/nmea_parser_example_main.c b/examples/peripherals/uart/nmea0183_parser/main/nmea_parser_example_main.c index 3b7c98705..1e03bce8e 100644 --- a/examples/peripherals/uart/nmea0183_parser/main/nmea_parser_example_main.c +++ b/examples/peripherals/uart/nmea0183_parser/main/nmea_parser_example_main.c @@ -36,7 +36,7 @@ static void gps_event_handler(void *event_handler_arg, esp_event_base_t event_ba /* print information parsed from GPS statements */ ESP_LOGI(TAG, "%d/%d/%d %d:%d:%d => \r\n" "\t\t\t\t\t\tlatitude = %.05f°N\r\n" - "\t\t\t\t\t\tlongtitude = %.05f°E\r\n" + "\t\t\t\t\t\tlongitude = %.05f°E\r\n" "\t\t\t\t\t\taltitude = %.02fm\r\n" "\t\t\t\t\t\tspeed = %fm/s", gps->date.year + YEAR_BASE, gps->date.month, gps->date.day,