Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
1c712c79
Unverified
Commit
1c712c79
authored
6 years ago
by
Cenk Gündoğan
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #10781 from miri64/nrfmin/cleanup/long-addr
nrfmin: remove long address support
parents
82f30fd8
bd08ea14
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpu/nrf5x_common/include/nrfmin.h
+0
-10
0 additions, 10 deletions
cpu/nrf5x_common/include/nrfmin.h
cpu/nrf5x_common/radio/nrfmin/nrfmin.c
+0
-11
0 additions, 11 deletions
cpu/nrf5x_common/radio/nrfmin/nrfmin.c
with
0 additions
and
21 deletions
cpu/nrf5x_common/include/nrfmin.h
+
0
−
10
View file @
1c712c79
...
...
@@ -162,16 +162,6 @@ uint16_t nrfmin_get_addr(void);
*/
void
nrfmin_set_addr
(
uint16_t
addr
);
/**
* @brief Get a pseudo 64-bit long address (needed by IPv6 and 6LoWPAN)
*
* As we do not support 64-bit addresses, we just make one up, for this we
* simply return 4 times concatenated the 16-bit address.
*
* @param[out] addr 64-bit pseudo long address, as array of 4 * 16-bit
*/
void
nrfmin_get_pseudo_long_addr
(
uint16_t
*
addr
);
/**
* @brief Get the IID build from the 16-bit node address
*
...
...
This diff is collapsed.
Click to expand it.
cpu/nrf5x_common/radio/nrfmin/nrfmin.c
+
0
−
11
View file @
1c712c79
...
...
@@ -188,13 +188,6 @@ uint16_t nrfmin_get_addr(void)
return
my_addr
;
}
void
nrfmin_get_pseudo_long_addr
(
uint16_t
*
addr
)
{
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
addr
[
i
]
=
my_addr
;
}
}
void
nrfmin_get_iid
(
uint16_t
*
iid
)
{
iid
[
0
]
=
0
;
...
...
@@ -487,10 +480,6 @@ static int nrfmin_get(netdev_t *dev, netopt_t opt, void *val, size_t max_len)
assert
(
max_len
>=
sizeof
(
uint16_t
));
*
((
uint16_t
*
)
val
)
=
NRFMIN_PAYLOAD_MAX
;
return
sizeof
(
uint16_t
);
case
NETOPT_ADDRESS_LONG
:
assert
(
max_len
>=
sizeof
(
uint64_t
));
nrfmin_get_pseudo_long_addr
((
uint16_t
*
)
val
);
return
sizeof
(
uint64_t
);
case
NETOPT_ADDR_LEN
:
assert
(
max_len
>=
sizeof
(
uint16_t
));
*
((
uint16_t
*
)
val
)
=
2
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment