Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PHASE
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
PHASE
Commits
dff463fd
Commit
dff463fd
authored
Oct 17, 2011
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug helpers
parent
8fe0b307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
rawrabbit.cpp
src/components/rawrabbit/rawrabbit.cpp
+10
-0
No files found.
src/components/rawrabbit/rawrabbit.cpp
View file @
dff463fd
...
...
@@ -8,6 +8,10 @@
#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>
// #define DEBUG_RAWRABBIT
struct
rr_iocmd
{
uint32_t
address
;
uint32_t
datasize
;
...
...
@@ -77,9 +81,15 @@ void RawRabbit::execute() {
iocmd
.
data32
=
o
.
data
;
if
(
o
.
write
)
{
#ifdef DEBUG_RAWRABBIT
fprintf
(
stderr
,
"Send: %d, %x
\n
"
,
iocmd
.
data32
&
3
,
iocmd
.
data32
>>
3
);
#endif
ioctl
(
fd
,
RR_WRITE
,
&
iocmd
);
}
else
{
ioctl
(
fd
,
RR_READ
,
&
iocmd
);
#ifdef DEBUG_RAWRABBIT
fprintf
(
stderr
,
"Recv: %d, %x
\n
"
,
iocmd
.
data32
&
3
,
iocmd
.
data32
>>
3
);
#endif
}
o
.
data
=
iocmd
.
data32
;
...
...
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