Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
b513b9e0
Commit
b513b9e0
authored
Nov 28, 2017
by
Chun Fan
Browse files
Clean code
parent
87e857ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/sd_api_v2/sdk/components/serialization/application/codecs/common/conn_systemreset.c
View file @
b513b9e0
...
...
@@ -39,16 +39,14 @@
#include "conn_systemreset.h"
uint32_t
conn_systemreset
(
uint8_t
*
const
p_buf
,
uint32_t
*
const
p_buf_len
)
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
+
2
,
*
p_buf_len
);
SER_ASSERT_LENGTH_LEQ
(
2
,
*
p_buf_len
);
p_buf
[
index
++
]
=
CONN_SYSTEMRESET
;
*
p_buf_len
=
index
;
*
p_buf
=
CONN_SYSTEMRESET
;
*
p_buf_len
=
1
;
return
NRF_SUCCESS
;
}
src/sd_api_v2/sdk/components/serialization/application/codecs/common/conn_systemreset.h
View file @
b513b9e0
...
...
@@ -44,7 +44,7 @@ extern "C" {
enum
CONN_SVCS
{
CONN_SYSTEMRESET
=
0
,
CONN_SYSTEMRESET
=
0
,
};
/**
...
...
@@ -71,7 +71,6 @@ enum CONN_SVCS
* @retval NRF_SUCCESS Encoding success.
* @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
);
...
...
src/sd_api_v5/sdk/components/serialization/application/codecs/common/conn_systemreset.h
View file @
b513b9e0
...
...
@@ -46,7 +46,7 @@ extern "C" {
enum
CONN_SVCS
{
CONN_SYSTEMRESET
=
0
,
CONN_SYSTEMRESET
=
0
,
};
/**
...
...
@@ -73,7 +73,6 @@ enum CONN_SVCS
* @retval NRF_SUCCESS Encoding success.
* @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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment