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
b965b47d
Commit
b965b47d
authored
6 years ago
by
Jose Alamos
Browse files
Options
Downloads
Patches
Plain Diff
drivers/cc2420: move flush sequence to inline function
parent
22d59cbb
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
drivers/cc2420/cc2420.c
+7
-2
7 additions, 2 deletions
drivers/cc2420/cc2420.c
with
7 additions
and
2 deletions
drivers/cc2420/cc2420.c
+
7
−
2
View file @
b965b47d
...
@@ -158,6 +158,12 @@ void cc2420_tx_exec(cc2420_t *dev)
...
@@ -158,6 +158,12 @@ void cc2420_tx_exec(cc2420_t *dev)
}
}
}
}
static
inline
void
_flush_rx_fifo
(
cc2420_t
*
dev
)
{
cc2420_strobe
(
dev
,
CC2420_STROBE_FLUSHRX
);
cc2420_strobe
(
dev
,
CC2420_STROBE_FLUSHRX
);
}
int
cc2420_rx
(
cc2420_t
*
dev
,
uint8_t
*
buf
,
size_t
max_len
,
void
*
info
)
int
cc2420_rx
(
cc2420_t
*
dev
,
uint8_t
*
buf
,
size_t
max_len
,
void
*
info
)
{
{
(
void
)
info
;
(
void
)
info
;
...
@@ -202,8 +208,7 @@ int cc2420_rx(cc2420_t *dev, uint8_t *buf, size_t max_len, void *info)
...
@@ -202,8 +208,7 @@ int cc2420_rx(cc2420_t *dev, uint8_t *buf, size_t max_len, void *info)
}
}
/* finally flush the FIFO */
/* finally flush the FIFO */
cc2420_strobe
(
dev
,
CC2420_STROBE_FLUSHRX
);
_flush_rx_fifo
(
dev
);
cc2420_strobe
(
dev
,
CC2420_STROBE_FLUSHRX
);
}
}
return
(
int
)
len
;
return
(
int
)
len
;
...
...
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