Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
3ca47332
Commit
3ca47332
authored
May 09, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev_io/dev_io_core.c: use new for_each_smio () macro
parent
357c4669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
dev_io_core.c
src/dev_io/dev_io_core.c
+3
-8
No files found.
src/dev_io/dev_io_core.c
View file @
3ca47332
...
...
@@ -474,14 +474,9 @@ static volatile const smio_mod_dispatch_t *_devio_search_sm_by_id (devio_t *self
{
(
void
)
self
;
volatile
const
smio_mod_dispatch_t
*
smio_mod_dispatch_start
=
&
_smio_mod_dispatch
;
volatile
const
smio_mod_dispatch_t
*
smio_mod_dispatch_end
=
&
_esmio_mod_dispatch
;
smio_mod_dispatch_t
*
smio_mod_handler
=
(
smio_mod_dispatch_t
*
)
smio_mod_dispatch_start
;
/* For now, just do a simple linear search. We can afford this, as
* we don't expect to insert new sm_io modules often */
uint32_t
i
;
for
(
i
=
0
;
smio_mod_handler
<
smio_mod_dispatch_end
;
++
i
,
++
smio_mod_handler
)
{
const
smio_mod_dispatch_t
*
smio_mod_handler
;
for_each_smio
(
smio_mod_handler
)
{
if
(
smio_mod_handler
->
id
==
smio_id
)
{
return
smio_mod_handler
;
}
...
...
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