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
acf7a104
Unverified
Commit
acf7a104
authored
6 years ago
by
Koen Zandberg
Browse files
Options
Downloads
Patches
Plain Diff
emb6: explicitly configure RX complete interrupt
parent
2df6da25
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/emb6/contrib/netdev/emb6_netdev.c
+11
-0
11 additions, 0 deletions
pkg/emb6/contrib/netdev/emb6_netdev.c
with
11 additions
and
0 deletions
pkg/emb6/contrib/netdev/emb6_netdev.c
+
11
−
0
View file @
acf7a104
...
@@ -108,6 +108,16 @@ static void _emb6_netdev_callback(c_event_t c_event, p_data_t p_data)
...
@@ -108,6 +108,16 @@ static void _emb6_netdev_callback(c_event_t c_event, p_data_t p_data)
}
}
}
}
static
void
_configure_netdev
(
void
)
{
/* Enable RX-complete interrupts */
static
const
netopt_enable_t
enable
=
NETOPT_ENABLE
;
int
res
=
_dev
->
driver
->
set
(
_dev
,
NETOPT_RX_END_IRQ
,
&
enable
,
sizeof
(
enable
));
if
(
res
<
0
)
{
DEBUG
(
"emb6: enable NETOPT_RX_END_IRQ failed: %d
\n
"
,
res
);
}
}
int
emb6_netdev_setup
(
netdev_t
*
dev
)
int
emb6_netdev_setup
(
netdev_t
*
dev
)
{
{
if
(
_dev
==
NULL
)
{
if
(
_dev
==
NULL
)
{
...
@@ -127,6 +137,7 @@ static int8_t _netdev_init(s_ns_t *p_ns)
...
@@ -127,6 +137,7 @@ static int8_t _netdev_init(s_ns_t *p_ns)
sizeof
(
mac_phy_config
.
mac_address
));
sizeof
(
mac_phy_config
.
mac_address
));
_dev
->
driver
->
get
(
_dev
,
NETOPT_NID
,
&
mac_phy_config
.
pan_id
,
_dev
->
driver
->
get
(
_dev
,
NETOPT_NID
,
&
mac_phy_config
.
pan_id
,
sizeof
(
mac_phy_config
.
pan_id
));
sizeof
(
mac_phy_config
.
pan_id
));
_configure_netdev
();
linkaddr_set_node_addr
((
linkaddr_t
*
)
&
uip_lladdr
);
linkaddr_set_node_addr
((
linkaddr_t
*
)
&
uip_lladdr
);
_lowmac
=
p_ns
->
lmac
;
_lowmac
=
p_ns
->
lmac
;
evproc_regCallback
(
EVENT_TYPE_PCK_LL
,
_emb6_netdev_callback
);
evproc_regCallback
(
EVENT_TYPE_PCK_LL
,
_emb6_netdev_callback
);
...
...
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