summaryrefslogtreecommitdiff
path: root/ports/nrf/bluetooth
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-05-30 10:44:13 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2020-06-03 10:56:35 +0100
commitdd5d7c86d22807c021dd1711eb7dd3daebc5cfcf (patch)
treedde417af2cae8cb1797582d6489eab9cb9caeddf /ports/nrf/bluetooth
parent60df6170cc5d0e495fde9613c05c55b64189b425 (diff)
Fix up end of file and trailing whitespace.
This can be enforced by pre-commit, but correct it separately to make it easier to review.
Diffstat (limited to 'ports/nrf/bluetooth')
-rw-r--r--ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/doc/ble_api.dox23
-rw-r--r--ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble.h2
-rw-r--r--ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble_gap.h2
-rw-r--r--ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/doc/ble_api.dox39
-rw-r--r--ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/include/ble.h12
5 files changed, 38 insertions, 40 deletions
diff --git a/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/doc/ble_api.dox b/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/doc/ble_api.dox
index a444c5e4e..ecabf96aa 100644
--- a/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/doc/ble_api.dox
+++ b/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/doc/ble_api.dox
@@ -968,11 +968,11 @@
* |||;
* SD<-ADVERTISERS [label = "Scannable Advertisement (ADV_SCAN_IND)", textcolor="#000080", linecolor="#000080"];
* SD->ADVERTISERS [label = "Scan Request (SCAN_REQ)", textcolor="#000080", linecolor="#000080"];
- * SD<-ADVERTISERS [label = "Scan Response (SCAN_RSP)", textcolor="#000080", linecolor="#000080"];
+ * SD<-ADVERTISERS [label = "Scan Response (SCAN_RSP)", textcolor="#000080", linecolor="#000080"];
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {bdaddr, rssi, data}"];
- * ...;
- * APP<<=SD [label = "BLE_GAP_EVT_TIMEOUT {BLE_GAP_TIMEOUT_SRC_SCAN}"];
- * |||;
+ * ...;
+ * APP<<=SD [label = "BLE_GAP_EVT_TIMEOUT {BLE_GAP_TIMEOUT_SRC_SCAN}"];
+ * |||;
* @endmsc
* @defgroup BLE_GAP_SCAN_MSC_AE Scanning for advertisers performing legacy and extended advertising
* @msc
@@ -1011,7 +1011,7 @@
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {type : {extended_pdu = 1, scannable = 1, scan_response = 1}, data}"];
* APP=>SD [label = "sd_ble_gap_scan_start(params = NULL, adv_report_buffer)"];
* APP<<SD [label = "NRF_SUCCESS"];
- * SD<-ADVERTISERS [label = "Legacy Scannable Advertisement (ADV_SCAN_IND) with adv_data ", textcolor="#000080", linecolor="#000080"];
+ * SD<-ADVERTISERS [label = "Legacy Scannable Advertisement (ADV_SCAN_IND) with adv_data ", textcolor="#000080", linecolor="#000080"];
* SD->ADVERTISERS [label = "Legacy Scan Request (SCAN_REQ)", textcolor="#000080", linecolor="#000080"];
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {type : {extended_pdu = 0, scannable = 1, scan_response = 0}, adv_data}"];
* APP=>SD [label = "sd_ble_gap_scan_start(params = NULL, adv_report_buffer)"];
@@ -1030,8 +1030,8 @@
* --- [label = " Variant #2 Reporting incomplete advertising reports"];
* |||;
* APP=>SD [label = "sd_ble_gap_scan_start(params : {extended = 1, report_incomplete_evts = 1}, adv_report_buffer)"];
- * APP<<SD [label = "NRF_SUCCESS"];
- * |||;
+ * APP<<SD [label = "NRF_SUCCESS"];
+ * |||;
* SD<-ADVERTISERS [label = "Advertisement (ADV_*_IND)", textcolor="#000080", linecolor="#000080"];
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {type : status = BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA, aux_pointer}"];
* |||;
@@ -1052,7 +1052,7 @@
* @defgroup BLE_GAP_CENTRAL_CONN_MSC Central Connection Establishment and Termination
* @{
* @defgroup BLE_GAP_CENTRAL_CONN_MSC_LEGACY Connecting to legacy advertisers
-
+
* @msc
* hscale = "1.5";
* APP,SD,PERIPHERAL;
@@ -1114,9 +1114,9 @@
* SD rbox SD [label = "Connection timeout reached"];
* |||;
* APP<<=SD [label = "BLE_GAP_EVT_TIMEOUT {BLE_GAP_TIMEOUT_SRC_CONN}"];
- * @endmsc
+ * @endmsc
* @}
-
+
*
* @defgroup BLE_GAP_CENTRAL_CPU_MSC Central Connection Parameter Update
* @msc
@@ -1868,7 +1868,7 @@
* APP=>SD [label = "sd_ble_gap_privacy_set(params: {mode: DEVICE_PRIVACY, private_addr_type: RESOLVABLE } "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {{peer_addr1, peer_irk1}}, pp_local_irks: {local_irk1}) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -3894,4 +3894,3 @@
* @}
* @}
*/
-
diff --git a/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble.h b/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble.h
index da1a06bbc..e2abcd7ad 100644
--- a/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble.h
+++ b/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble.h
@@ -521,7 +521,7 @@ SVCALL(SD_BLE_UUID_VS_ADD, uint32_t, sd_ble_uuid_vs_add(ble_uuid128_t const *p_v
/**@brief Remove a Vendor Specific base UUID.
- *
+ *
* @details This call removes a Vendor Specific base UUID that has been added with @ref sd_ble_uuid_vs_add. This function allows
* the application to reuse memory allocated for Vendor Specific base UUIDs.
*
diff --git a/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble_gap.h b/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble_gap.h
index a130d7b51..6750e742f 100644
--- a/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble_gap.h
+++ b/ports/nrf/bluetooth/s140_nrf52_6.1.0/s140_nrf52_6.1.0_API/include/ble_gap.h
@@ -1664,7 +1664,7 @@ SVCALL(SD_BLE_GAP_ADDR_GET, uint32_t, sd_ble_gap_addr_get(ble_gap_addr_t *p_addr
*
* @retval ::NRF_SUCCESS Address successfully retrieved.
* @retval ::NRF_ERROR_INVALID_ADDR Invalid or NULL pointer supplied.
- * @retval ::BLE_ERROR_INVALID_ADV_HANDLE The provided advertising handle was not found.
+ * @retval ::BLE_ERROR_INVALID_ADV_HANDLE The provided advertising handle was not found.
* @retval ::NRF_ERROR_INVALID_STATE The advertising set is currently not advertising.
*/
SVCALL(SD_BLE_GAP_ADV_ADDR_GET, uint32_t, sd_ble_gap_adv_addr_get(uint8_t adv_handle, ble_gap_addr_t *p_addr));
diff --git a/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/doc/ble_api.dox b/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/doc/ble_api.dox
index 6cdfc8870..ceebf55a7 100644
--- a/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/doc/ble_api.dox
+++ b/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/doc/ble_api.dox
@@ -968,11 +968,11 @@
* |||;
* SD<-ADVERTISERS [label = "Scannable Advertisement (ADV_SCAN_IND)", textcolor="#000080", linecolor="#000080"];
* SD->ADVERTISERS [label = "Scan Request (SCAN_REQ)", textcolor="#000080", linecolor="#000080"];
- * SD<-ADVERTISERS [label = "Scan Response (SCAN_RSP)", textcolor="#000080", linecolor="#000080"];
+ * SD<-ADVERTISERS [label = "Scan Response (SCAN_RSP)", textcolor="#000080", linecolor="#000080"];
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {bdaddr, rssi, data}"];
- * ...;
- * APP<<=SD [label = "BLE_GAP_EVT_TIMEOUT {BLE_GAP_TIMEOUT_SRC_SCAN}"];
- * |||;
+ * ...;
+ * APP<<=SD [label = "BLE_GAP_EVT_TIMEOUT {BLE_GAP_TIMEOUT_SRC_SCAN}"];
+ * |||;
* @endmsc
* @defgroup BLE_GAP_SCAN_MSC_AE Scanning for advertisers performing legacy and extended advertising
* @msc
@@ -1011,7 +1011,7 @@
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {type : {extended_pdu = 1, scannable = 1, scan_response = 1}, data}"];
* APP=>SD [label = "sd_ble_gap_scan_start(params = NULL, adv_report_buffer)"];
* APP<<SD [label = "NRF_SUCCESS"];
- * SD<-ADVERTISERS [label = "Legacy Scannable Advertisement (ADV_SCAN_IND) with adv_data ", textcolor="#000080", linecolor="#000080"];
+ * SD<-ADVERTISERS [label = "Legacy Scannable Advertisement (ADV_SCAN_IND) with adv_data ", textcolor="#000080", linecolor="#000080"];
* SD->ADVERTISERS [label = "Legacy Scan Request (SCAN_REQ)", textcolor="#000080", linecolor="#000080"];
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {type : {extended_pdu = 0, scannable = 1, scan_response = 0}, adv_data}"];
* APP=>SD [label = "sd_ble_gap_scan_start(params = NULL, adv_report_buffer)"];
@@ -1030,8 +1030,8 @@
* --- [label = " Variant #2 Reporting incomplete advertising reports"];
* |||;
* APP=>SD [label = "sd_ble_gap_scan_start(params : {extended = 1, report_incomplete_evts = 1}, adv_report_buffer)"];
- * APP<<SD [label = "NRF_SUCCESS"];
- * |||;
+ * APP<<SD [label = "NRF_SUCCESS"];
+ * |||;
* SD<-ADVERTISERS [label = "Advertisement (ADV_*_IND)", textcolor="#000080", linecolor="#000080"];
* APP<<=SD [label = "BLE_GAP_EVT_ADV_REPORT {type : status = BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA, aux_pointer}"];
* |||;
@@ -1052,7 +1052,7 @@
* @defgroup BLE_GAP_CENTRAL_CONN_MSC Central Connection Establishment and Termination
* @{
* @defgroup BLE_GAP_CENTRAL_CONN_MSC_LEGACY Connecting to legacy advertisers
-
+
* @msc
* hscale = "1.5";
* APP,SD,PERIPHERAL;
@@ -1114,9 +1114,9 @@
* SD rbox SD [label = "Connection timeout reached"];
* |||;
* APP<<=SD [label = "BLE_GAP_EVT_TIMEOUT {BLE_GAP_TIMEOUT_SRC_CONN}"];
- * @endmsc
+ * @endmsc
* @}
-
+
*
* @defgroup BLE_GAP_CENTRAL_CPU_MSC Central Connection Parameter Update
* @msc
@@ -1868,7 +1868,7 @@
* APP=>SD [label = "sd_ble_gap_privacy_set(params: {mode: DEVICE_PRIVACY, private_addr_type: RESOLVABLE } "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: {local_irk1}) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -1970,7 +1970,7 @@
* hscale = "1.5";
* APP,SD,ADVERTISERS;
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: NULL) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2022,7 +2022,7 @@
* |||;
* --- [label = " Variant #4 Scan directed advertisers and resolve initiator address using local IRK in device identity list"];
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: local_irk1) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2054,7 +2054,7 @@
* |||;
* --- [label = " Variant #1 Advertise directed to private peer"];
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: NULL) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2070,7 +2070,7 @@
* |||;
* --- [label = " Variant #2 Private directed advertising to private peer using device IRK"];
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: NULL) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2089,7 +2089,7 @@
* |||;
* --- [label = " Variant #3 Private directed advertising to private peer using local IRK in device identity list"];
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: {local_irk1}) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2132,7 +2132,7 @@
* hscale = "1.5";
* APP,SD,CENTRAL;
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: NULL) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2157,7 +2157,7 @@
* hscale = "1.5";
* APP,SD,PERIPHERAL;
* |||;
-
+
* APP=>SD [label = "sd_ble_gap_device_identities_set(pp_id_keys: {peer_addr1, peer_irk1}, pp_local_irks: NULL) "];
* APP<<SD [label = "NRF_SUCCESS"];
* |||;
@@ -2346,7 +2346,7 @@
* APP<<SD [label = "NRF_SUCCESS"];
* SD:>PEER [label = "LL Length Request (LL_LENGTH_REQ) {tx=251, rx=251}", textcolor="#000080", linecolor="#000080"];
* SD<:PEER [label = "LL Length Response (LL_LENGTH_RSP) {tx=251, rx=251}", textcolor="#000080", linecolor="#000080"];
-
+
* APP<<=SD [label = "BLE_GAP_EVT_DATA_LENGTH_UPDATE {.effective_params={.max_tx_octets=251, .max_rx_octets=251, .max_tx_time_us=2120, .max_rx_time_us=2120}}"];
* |||;
* ...;
@@ -3927,4 +3927,3 @@
* @}
* @}
*/
-
diff --git a/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/include/ble.h b/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/include/ble.h
index 39944854c..d17ac9a59 100644
--- a/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/include/ble.h
+++ b/ports/nrf/bluetooth/s140_nrf52_7.0.1/s140_nrf52_7.0.1_API/include/ble.h
@@ -89,7 +89,7 @@ enum BLE_COMMON_SVCS
*/
enum BLE_COMMON_EVTS
{
- BLE_EVT_USER_MEM_REQUEST = BLE_EVT_BASE + 0, /**< User Memory request. See @ref ble_evt_user_mem_request_t
+ BLE_EVT_USER_MEM_REQUEST = BLE_EVT_BASE + 0, /**< User Memory request. See @ref ble_evt_user_mem_request_t
\n Reply with @ref sd_ble_user_mem_reply. */
BLE_EVT_USER_MEM_RELEASE = BLE_EVT_BASE + 1, /**< User Memory release. See @ref ble_evt_user_mem_release_t */
};
@@ -389,10 +389,10 @@ typedef union
* application RAM region (APP_RAM_BASE). On return, this will
* contain the minimum start address of the application RAM region
* required by the SoftDevice for this configuration.
- * @warning After this call, the SoftDevice may generate several events. The list of events provided
- * below require the application to initiate a SoftDevice API call. The corresponding API call
- * is referenced in the event documentation.
- * If the application fails to do so, the BLE connection may timeout, or the SoftDevice may stop
+ * @warning After this call, the SoftDevice may generate several events. The list of events provided
+ * below require the application to initiate a SoftDevice API call. The corresponding API call
+ * is referenced in the event documentation.
+ * If the application fails to do so, the BLE connection may timeout, or the SoftDevice may stop
* communicating with the peer device.
* - @ref BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST
* - @ref BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST
@@ -537,7 +537,7 @@ SVCALL(SD_BLE_UUID_VS_ADD, uint32_t, sd_ble_uuid_vs_add(ble_uuid128_t const *p_v
/**@brief Remove a Vendor Specific base UUID.
- *
+ *
* @details This call removes a Vendor Specific base UUID that has been added with @ref sd_ble_uuid_vs_add. This function allows
* the application to reuse memory allocated for Vendor Specific base UUIDs.
*