Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SDB - Self-describing Bus
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
SDB - Self-describing Bus
Commits
f56eab18
Commit
f56eab18
authored
Apr 13, 2011
by
Manohar Vanga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in fw generator
Signed-off-by:
Manohar Vanga
<
manohar.vanga@gmail.com
>
parent
4bd92d04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
firmware.c
fw/wb_addr/firmware.c
+1
-1
No files found.
fw/wb_addr/firmware.c
View file @
f56eab18
...
...
@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
sscanf
(
buf
,
"%d %d %d %d %d %d
\n
"
,
&
id
.
vendor
,
&
id
.
device
,
&
id
.
subdevice
,
&
priority
,
&
class
,
&
version
);
printf
(
"Device:
\n\t
Vendor: %d
\n\t
Device: %d
\n\t
Subdevice: %d
\n\t
Priority: %d
\n\t
Class: %d
\n\t
Version: %d
\n
"
,
id
.
vendor
,
id
.
device
,
id
.
subdevice
,
priority
&
0xf
,
class
&
0xfff
,
version
&
0xffff
);
wb
.
flags
=
((
priority
&
0xf
)
<<
28
)
|
((
class
&
0xfff
)
<<
16
)
|
(
version
&
0xffff
);
id
.
flags
=
((
priority
&
0xf
)
<<
28
)
|
((
class
&
0xfff
)
<<
16
)
|
(
version
&
0xffff
);
fwrite
((
void
*
)
&
id
,
sizeof
(
struct
wb_id
),
1
,
fout
);
num
++
;
}
...
...
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