Commit ec145244 authored by Chun Fan's avatar Chun Fan
Browse files

Refactor reset function for v2

parent f302feaf
......@@ -35,10 +35,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "ble_app.h"
#include "ble_serialization.h"
#include "conn_systemreset.h"
uint32_t conn_systemreset_enc(uint8_t * const p_buf,
uint32_t conn_systemreset(uint8_t * const p_buf,
uint32_t * const p_buf_len)
{
uint32_t index = 0;
......
......@@ -42,6 +42,11 @@
extern "C" {
#endif
enum CONN_SVCS
{
CONN_SYSTEMRESET = 0,
};
/**
* @addtogroup ser_codecs Serialization codecs
* @ingroup ble_sdk_lib_serialization
......@@ -67,6 +72,8 @@ extern "C" {
* @retval NRF_ERROR_INTERNAL Encoding failure. Transport error.
*/
// uint32_t conn_systemreset(void);
uint32_t conn_systemreset(uint8_t * const p_buf,
uint32_t * const p_buf_len);
/** @} */
#ifdef __cplusplus
......
......@@ -473,10 +473,6 @@ uint32_t ble_event_dec(uint8_t const * const p_buf,
ble_evt_t * const p_event,
uint32_t * const p_event_len);
uint32_t conn_systemreset_enc(uint8_t * const p_buf,
uint32_t * const p_buf_len);
/** @} */
#ifdef __cplusplus
}
......
......@@ -78,7 +78,6 @@ enum BLE_COMMON_SVCS
SD_BLE_USER_MEM_REPLY, /**< User Memory Reply. */
SD_BLE_OPT_SET, /**< Set a BLE option. */
SD_BLE_OPT_GET, /**< Get a BLE option. */
CONN_SYSTEMRESET,
};
/**
......@@ -622,10 +621,6 @@ SD_RPC_API uint32_t sd_ble_opt_set(adapter_t *adapter, uint32_t opt_id, ble_opt_
*/
SD_RPC_API uint32_t sd_ble_opt_get(adapter_t *adapter, uint32_t opt_id, ble_opt_t *p_opt);
// TODO: Relocate conn_systemrest to a better place.
// TODO: Add comments for conn_systemreset function, both here and enc header.
SD_RPC_API uint32_t conn_systemreset(adapter_t *adapter);
/** @} */
#ifdef __cplusplus
}
......
......@@ -43,10 +43,12 @@
#ifdef __cplusplus
extern "C" {
#endif
enum CONN_SVCS
{
CONN_SYSTEMRESET = 0,
};
/**
* @addtogroup ser_codecs Serialization codecs
* @ingroup ble_sdk_lib_serialization
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment