Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
mbe-tools
TTool
Commits
19122a1c
Commit
19122a1c
authored
7 years ago
by
Dominique Blouin
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git@gitlab.enst.fr:mbe-tools/TTool.git
parents
d729cce6
c11c26ad
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
MPSoC/src/asyncchannel.c
+5
-5
5 additions, 5 deletions
MPSoC/src/asyncchannel.c
with
5 additions
and
5 deletions
MPSoC/src/asyncchannel.c
+
5
−
5
View file @
19122a1c
...
@@ -98,7 +98,7 @@ void destroyAsyncchannel(asyncchannel *asyncch) {
...
@@ -98,7 +98,7 @@ void destroyAsyncchannel(asyncchannel *asyncch) {
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
debugInt
(
"asyncchannel msg size
\n
"
,
sizeof
(
*
msg
));
debugInt
(
"asyncchannel msg size
\n
"
,
sizeof
(
*
msg
));
// async_read(channel->mwmr_fifo, &msg, 1);
// async_read(channel->mwmr_fifo, &msg, 1);
async_read
(
channel
->
mwmr_fifo
,
&
msg
,
sizeof
(
*
msg
)
);
async_read
(
channel
->
mwmr_fifo
,
&
msg
,
channel
->
mwmr_fifo
->
width
);
return
msg
;
return
msg
;
}
}
...
@@ -115,8 +115,8 @@ void destroyAsyncchannel(asyncchannel *asyncch) {
...
@@ -115,8 +115,8 @@ void destroyAsyncchannel(asyncchannel *asyncch) {
debugInt
(
"asyncchannel address
\n
"
,
channel
->
mwmr_fifo
);
debugInt
(
"asyncchannel address
\n
"
,
channel
->
mwmr_fifo
);
debugInt
(
"asyncchannel fifo->depth
\n
"
,
channel
->
mwmr_fifo
->
depth
);
debugInt
(
"asyncchannel fifo->depth
\n
"
,
channel
->
mwmr_fifo
->
depth
);
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
debugInt
(
"asyncchannel msg size
\n
"
,
sizeof
(
*
msg
)
);
debugInt
(
"asyncchannel msg size
\n
"
,
channel
->
mwmr_fifo
->
width
);
async_read
(
channel
->
mwmr_fifo
,
&
msg
,
sizeof
(
*
msg
)
);
async_read
(
channel
->
mwmr_fifo
,
&
msg
,
channel
->
mwmr_fifo
->
width
);
return
msg
;
return
msg
;
}
}
...
@@ -136,6 +136,6 @@ void addMessageToAsyncChannel(asyncchannel *channel, message *msg) {
...
@@ -136,6 +136,6 @@ void addMessageToAsyncChannel(asyncchannel *channel, message *msg) {
debugInt
(
"asyncchannel->fifo rptr
\n
"
,
channel
->
mwmr_fifo
->
status
->
rptr
);
debugInt
(
"asyncchannel->fifo rptr
\n
"
,
channel
->
mwmr_fifo
->
status
->
rptr
);
debugInt
(
"asyncchannel->fifo wptr
\n
"
,
channel
->
mwmr_fifo
->
status
->
wptr
);
debugInt
(
"asyncchannel->fifo wptr
\n
"
,
channel
->
mwmr_fifo
->
status
->
wptr
);
//async_write(channel->mwmr_fifo, &msg, 1 );
//async_write(channel->mwmr_fifo, &msg, 1 );
debugInt
(
"asyncchannel msg size
\n
"
,
sizeof
(
*
msg
)
);
debugInt
(
"asyncchannel msg size
\n
"
,
channel
->
mwmr_fifo
->
width
);
async_write
(
channel
->
mwmr_fifo
,
&
msg
,
sizeof
(
*
msg
)
);
//DG 13.6. *msg au lieu de msg
async_write
(
channel
->
mwmr_fifo
,
&
msg
,
channel
->
mwmr_fifo
->
width
);
//DG 13.6. *msg au lieu de msg
//DG 18.07. fifo width
}
}
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