You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/23 18:51:41 UTC

[18/70] [abbrv] [partial] incubator-mynewt-core git commit: Remove non-Apache-compatible Nordic SDK files.

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_app.h
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_app.h b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_app.h
deleted file mode 100644
index cc42fba..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_app.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-#ifndef BLE_EVT_APP_H__
-#define BLE_EVT_APP_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @addtogroup ser_codecs Serialization codecs
- * @ingroup ble_sdk_lib_serialization
- */
-
-/**
- * @addtogroup ser_app_s130_codecs Application s130 codecs
- * @ingroup ser_codecs
- */
-
-/**@file
- *
- * @defgroup ble_evt_app Application event decoders
- * @{
- * @ingroup  ser_app_s130_codecs
- *
- * @brief    Application event decoders.
- */
-#include "ble.h"
-
-/**
- * @brief Decodes ble_evt_tx_complete event.
- *
- * @sa @ref nrf51_evt_tx_complete_encoding for packet format.
- *
- * If \p p_event is null, the required length of \p p_event is returned in \p p_event_len.
- *
- * @param[in] p_buf            Pointer to the beginning of an event packet.
- * @param[in] packet_len       Length (in bytes) of the event packet.
- * @param[in,out] p_event      Pointer to a \ref ble_evt_t buffer where the decoded event will be
- *                             stored. If NULL, required length will be returned in \p p_event_len.
- * @param[in,out] p_event_len  \c in: Size (in bytes) of \p p_event buffer.
- *                             \c out: Length of decoded contents of \p p_event.
- *
- * @retval NRF_SUCCESS               Decoding success.
- * @retval NRF_ERROR_NULL            Decoding failure. NULL pointer supplied.
- * @retval NRF_ERROR_INVALID_LENGTH  Decoding failure. Incorrect buffer length.
- * @retval NRF_ERROR_DATA_SIZE       Decoding failure. Length of \p p_event is too small to
- *                                   hold decoded event.
- */
-uint32_t ble_evt_tx_complete_dec(uint8_t const * const p_buf,
-                                 uint32_t              packet_len,
-                                 ble_evt_t * const     p_event,
-                                 uint32_t * const      p_event_len);
-
-/**
- * @brief Decodes ble_evt_user_mem_request event.
- *
- * @sa @ref nrf51_evt_user_mem_request_encoding for packet format.
- *
- * If \p p_event is null, the required length of \p p_event is returned in \p p_event_len.
- *
- * @param[in] p_buf            Pointer to the beginning of an event packet.
- * @param[in] packet_len       Length (in bytes) of the event packet.
- * @param[in,out] p_event      Pointer to a \ref ble_evt_t buffer where the decoded event will be
- *                             stored. If NULL, required length will be returned in \p p_event_len.
- * @param[in,out] p_event_len  \c in: Size (in bytes) of \p p_event buffer.
- *                             \c out: Length of decoded contents of \p p_event.
- *
- * @retval NRF_SUCCESS               Decoding success.
- * @retval NRF_ERROR_NULL            Decoding failure. NULL pointer supplied.
- * @retval NRF_ERROR_INVALID_LENGTH  Decoding failure. Incorrect buffer length.
- * @retval NRF_ERROR_DATA_SIZE       Decoding failure. Length of \p p_event is too small to
- *                                   hold decoded event.
- */
- uint32_t ble_evt_user_mem_request_dec(uint8_t const * const p_buf,
-                                       uint32_t              packet_len,
-                                       ble_evt_t * const     p_event,
-                                       uint32_t * const      p_event_len);
-
-/**
- * @brief Decodes ble_evt_user_mem_release event.
- *
- * @sa @ref nrf51_evt_user_mem_release_encoding for packet format.
- *
- * If \p p_event is null, the required length of \p p_event is returned in \p p_event_len.
- *
- * @param[in] p_buf            Pointer to the beginning of an event packet.
- * @param[in] packet_len       Length (in bytes) of the event packet.
- * @param[in,out] p_event      Pointer to a \ref ble_evt_t buffer where the decoded event will be
- *                             stored. If NULL, required length will be returned in \p p_event_len.
- * @param[in,out] p_event_len  \c in: Size (in bytes) of \p p_event buffer.
- *                             \c out: Length of decoded contents of \p p_event.
- *
- * @retval NRF_SUCCESS               Decoding success.
- * @retval NRF_ERROR_NULL            Decoding failure. NULL pointer supplied.
- * @retval NRF_ERROR_INVALID_LENGTH  Decoding failure. Incorrect buffer length.
- * @retval NRF_ERROR_DATA_SIZE       Decoding failure. Length of \p p_event is too small to
- *                                   hold decoded event.
- */
- uint32_t ble_evt_user_mem_release_dec(uint8_t const * const p_buf,
-                                       uint32_t              packet_len,
-                                       ble_evt_t * const     p_event,
-                                       uint32_t * const      p_event_len);
-
-/** @} */
-#ifdef __cplusplus
-}
-#endif
-
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_tx_complete.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_tx_complete.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_tx_complete.c
deleted file mode 100644
index 88216e7..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_tx_complete.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_evt_app.h"
-#include "ble_serialization.h"
-
-
-uint32_t ble_evt_tx_complete_dec(uint8_t const * const p_buf,
-                                 uint32_t              packet_len,
-                                 ble_evt_t * const     p_event,
-                                 uint32_t * const      p_event_len)
-{
-    uint32_t index = 0;
-
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_event_len);
-
-    SER_ASSERT_LENGTH_LEQ(SER_EVT_CONN_HANDLE_SIZE + 1, packet_len);
-
-    uint32_t event_len = SER_EVT_CONN_HANDLE_SIZE + sizeof (ble_evt_tx_complete_t);
-
-    if (p_event == NULL)
-    {
-        *p_event_len = event_len;
-        return NRF_SUCCESS;
-    }
-
-    SER_ASSERT(event_len <= *p_event_len, NRF_ERROR_DATA_SIZE);
-
-    p_event->header.evt_id  = BLE_EVT_TX_COMPLETE;
-    p_event->header.evt_len = event_len;
-
-    uint16_dec(p_buf, packet_len, &index, &p_event->evt.common_evt.conn_handle);
-    uint8_dec(p_buf, packet_len, &index, &p_event->evt.common_evt.params.tx_complete.count);
-
-    SER_ASSERT_LENGTH_EQ(index, packet_len);
-    *p_event_len = event_len;
-
-    return NRF_SUCCESS;
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_release.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_release.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_release.c
deleted file mode 100644
index 04c7728..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_release.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_serialization.h"
-#include "ble_struct_serialization.h"
-#include "cond_field_serialization.h"
-#include "app_util.h"
-#include "ble_evt_app.h"
-#include "app_ble_user_mem.h"
-
-extern ser_ble_user_mem_t m_app_user_mem_table[];
-
-uint32_t ble_evt_user_mem_release_dec(uint8_t const * const p_buf,
-                                      uint32_t              packet_len,
-                                      ble_evt_t * const     p_event,
-                                      uint32_t * const      p_event_len)
-{
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_event_len);
-
-    uint32_t index        = 0;
-    uint32_t err_code     = NRF_SUCCESS;
-
-    uint32_t event_len = (uint16_t) (offsetof(ble_evt_t, evt.common_evt.params.user_mem_release)) +
-                         sizeof (ble_evt_user_mem_release_t) -
-                         sizeof (ble_evt_hdr_t);
-
-    if (p_event == NULL)
-    {
-        *p_event_len = event_len;
-        return NRF_SUCCESS;
-    }
-
-    p_event->header.evt_id  = BLE_EVT_USER_MEM_RELEASE;
-    p_event->header.evt_len = event_len;
-    ble_evt_user_mem_release_t * p_user_mem_rel = &(p_event->evt.common_evt.params.user_mem_release);
-
-    err_code = uint16_t_dec(p_buf, packet_len, &index, &(p_event->evt.common_evt.conn_handle));
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    err_code = uint8_t_dec(p_buf, packet_len, &index, &(p_user_mem_rel->type));
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    // Decoding order of mem block is different than structure elements order - length is decoded first
-    err_code = uint16_t_dec(p_buf, packet_len, &index, &(p_user_mem_rel->mem_block.len));
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    if (p_buf[index++] == SER_FIELD_PRESENT)
-    {
-        // Using connection handle find which mem block to release in Application Processor
-        uint32_t user_mem_table_index;
-        err_code = app_ble_user_mem_context_find(p_event->evt.common_evt.conn_handle, &user_mem_table_index);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-        p_user_mem_rel->mem_block.p_mem = m_app_user_mem_table[user_mem_table_index].mem_block.p_mem;
-    }
-    else
-    {
-        p_user_mem_rel->mem_block.p_mem = NULL;
-    }
-
-    // Now user memory context can be released
-    err_code = app_ble_user_mem_context_destroy(p_event->evt.common_evt.conn_handle);
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    SER_ASSERT_LENGTH_EQ(index, packet_len);
-    *p_event_len = event_len;
-
-    return err_code;
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_request.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_request.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_request.c
deleted file mode 100644
index 65ffd9f..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_evt_user_mem_request.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_serialization.h"
-#include "ble_struct_serialization.h"
-#include "app_util.h"
-#include "ble_evt_app.h"
-
-uint32_t ble_evt_user_mem_request_dec(uint8_t const * const p_buf,
-                                      uint32_t              packet_len,
-                                      ble_evt_t * const     p_event,
-                                      uint32_t * const      p_event_len)
-{
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_event_len);
-
-    uint32_t index        = 0;
-    uint32_t err_code     = NRF_SUCCESS;
-
-    uint32_t event_len = (uint16_t) (offsetof(ble_evt_t, evt.common_evt.params.user_mem_request)) +
-                         sizeof (ble_evt_user_mem_request_t) -
-                         sizeof (ble_evt_hdr_t);
-
-    if (p_event == NULL)
-    {
-        *p_event_len = event_len;
-        return NRF_SUCCESS;
-    }
-
-    p_event->header.evt_id  = BLE_EVT_USER_MEM_REQUEST;
-    p_event->header.evt_len = event_len;
-
-    err_code = uint16_t_dec(p_buf, packet_len, &index, &(p_event->evt.common_evt.conn_handle));
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    err_code = uint8_t_dec(p_buf, packet_len, &index, &(p_event->evt.common_evt.params.user_mem_request.type));
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    SER_ASSERT_LENGTH_EQ(index, packet_len);
-    *p_event_len = event_len;
-
-    return err_code;
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_get.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_get.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_get.c
deleted file mode 100644
index 0cca923..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_get.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_gap_app.h"
-#include <stdlib.h>
-#include <string.h>
-#include "ble_serialization.h"
-#include "app_util.h"
-
-
-uint32_t ble_gap_address_get_req_enc(ble_gap_addr_t const * const p_address,
-                                     uint8_t * const              p_buf,
-                                     uint32_t * const             p_buf_len)
-{
-    uint32_t index = 0;
-
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_buf_len);
-
-    SER_ASSERT_LENGTH_LEQ(index + 1 + 1, *p_buf_len);
-
-    p_buf[index++] = SD_BLE_GAP_ADDRESS_GET;
-    p_buf[index++] = (p_address == NULL) ? SER_FIELD_NOT_PRESENT : SER_FIELD_PRESENT;
-
-    *p_buf_len = index;
-
-    return NRF_SUCCESS;
-}
-
-
-uint32_t ble_gap_address_get_rsp_dec(uint8_t const * const  p_buf,
-                                     uint32_t               packet_len,
-                                     ble_gap_addr_t * const p_address,
-                                     uint32_t * const       p_result_code)
-{
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_result_code);
-
-    uint32_t index         = 0;
-    uint32_t decode_result = ser_ble_cmd_rsp_result_code_dec(p_buf,
-                                                             &index,
-                                                             packet_len,
-                                                             SD_BLE_GAP_ADDRESS_GET,
-                                                             p_result_code);
-
-    if (decode_result != NRF_SUCCESS)
-    {
-        return decode_result;
-    }
-
-    if (*p_result_code != NRF_SUCCESS)
-    {
-        SER_ASSERT_LENGTH_EQ(index, packet_len);
-        return NRF_SUCCESS;
-    }
-
-    SER_ASSERT_LENGTH_LEQ(index + 1 + BLE_GAP_ADDR_LEN, packet_len);
-    SER_ASSERT_NOT_NULL(p_address);
-
-    p_address->addr_type = p_buf[index++];
-    memcpy(p_address->addr, &p_buf[index], BLE_GAP_ADDR_LEN);
-    index += BLE_GAP_ADDR_LEN;
-
-    SER_ASSERT_LENGTH_EQ(index, packet_len);
-    return NRF_SUCCESS;
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_set.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_set.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_set.c
deleted file mode 100644
index 7ccb2f2..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_address_set.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_gap_app.h"
-#include <stdlib.h>
-#include <string.h>
-#include "ble_serialization.h"
-#include "ble_gap.h"
-#include "app_util.h"
-
-
-uint32_t ble_gap_address_set_req_enc(uint8_t                      addr_cycle_mode,
-                                     ble_gap_addr_t const * const p_addr,
-                                     uint8_t * const              p_buf,
-                                     uint32_t * const             p_buf_len)
-{
-    uint32_t index = 0;
-    uint32_t err_code = NRF_SUCCESS;
-
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_buf_len);
-
-    SER_ASSERT_LENGTH_LEQ(index + 1 + 1 + 1, *p_buf_len);
-    
-    p_buf[index++] = SD_BLE_GAP_ADDRESS_SET;
-    
-    err_code = uint8_t_enc(&addr_cycle_mode, p_buf, *p_buf_len, &index);
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-    
-    p_buf[index++] = (p_addr == NULL) ? SER_FIELD_NOT_PRESENT : SER_FIELD_PRESENT;
-
-    if (p_addr != NULL)
-    {
-        SER_ASSERT_LENGTH_LEQ(index + 1 + BLE_GAP_ADDR_LEN, *p_buf_len);
-        p_buf[index++] = p_addr->addr_type;
-        memcpy(&p_buf[index], p_addr->addr, BLE_GAP_ADDR_LEN);
-        index += BLE_GAP_ADDR_LEN;
-    }
-
-    *p_buf_len = index;
-
-    return NRF_SUCCESS;
-}
-
-
-uint32_t ble_gap_address_set_rsp_dec(uint8_t const * const p_buf,
-                                     uint32_t              packet_len,
-                                     uint32_t * const      p_result_code)
-{
-    return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_ADDRESS_SET, p_result_code);
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_data_set.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_data_set.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_data_set.c
deleted file mode 100644
index 2180101..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_data_set.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_gap_app.h"
-#include <string.h>
-#include "ble_serialization.h"
-#include "nrf_error.h"
-
-
-uint32_t ble_gap_adv_data_set_req_enc(uint8_t const * const p_data,
-                                      uint8_t               dlen,
-                                      uint8_t const * const p_sr_data,
-                                      uint8_t               srdlen,
-                                      uint8_t * const       p_buf,
-                                      uint32_t * const      p_buf_len)
-{
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_buf_len);
-
-    uint32_t index  = 0;
-    uint8_t  opcode = SD_BLE_GAP_ADV_DATA_SET;
-    uint32_t err_code;
-    err_code = uint8_t_enc(&opcode, p_buf, *p_buf_len, &index);
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    err_code = len8data_enc(p_data, dlen, p_buf, *p_buf_len, &index);
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    err_code = len8data_enc(p_sr_data, srdlen, p_buf, *p_buf_len, &index);
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    *p_buf_len = index;
-
-    return err_code;
-}
-
-
-uint32_t ble_gap_adv_data_set_rsp_dec(uint8_t const * const p_buf,
-                                      uint32_t              packet_len,
-                                      uint32_t * const      p_result_code)
-{
-    return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_ADV_DATA_SET, p_result_code);
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_start.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_start.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_start.c
deleted file mode 100644
index dadb3a5..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_start.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_gap_app.h"
-#include <string.h>
-#include "ble_serialization.h"
-#include "ble_gap_struct_serialization.h"
-#include "cond_field_serialization.h"
-#include "ble_gap.h"
-#include "app_util.h"
-
-uint32_t ble_gap_adv_start_req_enc(ble_gap_adv_params_t const * const p_adv_params,
-                                   uint8_t * const                    p_buf,
-                                   uint32_t * const                   p_buf_len)
-{
-    uint32_t index    = 0;
-    uint32_t err_code = NRF_SUCCESS;
-
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_buf_len);
-
-    uint32_t total_len = *p_buf_len;
-
-    SER_ASSERT_LENGTH_LEQ(index + 2, total_len);
-    p_buf[index++] = SD_BLE_GAP_ADV_START;
-    p_buf[index++] = (p_adv_params == NULL) ? SER_FIELD_NOT_PRESENT : SER_FIELD_PRESENT;
-
-    if (p_adv_params != NULL)
-    {
-        err_code = uint8_t_enc(&(p_adv_params->type), p_buf, total_len, &index);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-        err_code = cond_field_enc(p_adv_params->p_peer_addr, p_buf, total_len, &index, ble_gap_addr_enc);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-        err_code = uint8_t_enc(&(p_adv_params->fp), p_buf, total_len, &index);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-        err_code = cond_field_enc(p_adv_params->p_whitelist, p_buf, total_len, &index, ble_gap_whitelist_t_enc);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-        err_code = uint16_t_enc(&(p_adv_params->interval), p_buf, total_len, &index);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-        
-        err_code = uint16_t_enc(&(p_adv_params->timeout), p_buf, total_len, &index);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-        err_code = ble_gap_adv_ch_mask_t_enc(&(p_adv_params->channel_mask), p_buf, total_len, &index);
-        SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-    }
-
-    *p_buf_len = index;
-
-    return err_code;
-}
-
-
-uint32_t ble_gap_adv_start_rsp_dec(uint8_t const * const p_buf,
-                                   uint32_t              packet_len,
-                                   uint32_t * const      p_result_code)
-{
-    return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_ADV_START, p_result_code);
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a1481cb2/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_stop.c
----------------------------------------------------------------------
diff --git a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_stop.c b/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_stop.c
deleted file mode 100644
index 61cd081..0000000
--- a/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/serialization/application/codecs/s130/serializers/ble_gap_adv_stop.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
- *
- * The information contained herein is property of Nordic Semiconductor ASA.
- * Terms and conditions of usage are described in detail in NORDIC
- * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
-#include "ble_gap_app.h"
-#include "ble_serialization.h"
-
-uint32_t ble_gap_adv_stop_req_enc(uint8_t * const  p_buf,
-                                  uint32_t * const p_buf_len)
-{
-    SER_ASSERT_NOT_NULL(p_buf);
-    SER_ASSERT_NOT_NULL(p_buf_len);
-
-    uint8_t  op_code  = SD_BLE_GAP_ADV_STOP;
-    uint32_t err_code = NRF_SUCCESS;
-    uint32_t buf_len  = *p_buf_len;
-    uint32_t index    = 0;
-
-    err_code = uint8_t_enc(&op_code, p_buf, buf_len, &index);
-    SER_ASSERT(err_code == NRF_SUCCESS, err_code);
-
-    *p_buf_len = index;
-
-    return err_code;
-}
-
-uint32_t ble_gap_adv_stop_rsp_dec(uint8_t const * const p_buf,
-                                  uint32_t              packet_len,
-                                  uint32_t * const      p_result_code)
-{
-    return ser_ble_cmd_rsp_dec(p_buf, packet_len, SD_BLE_GAP_ADV_STOP, p_result_code);
-}