Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
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
Projects
EtherBone Core
Commits
54a2d532
Commit
54a2d532
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Check for cycle end in one place => more consistent.
parent
47182a94
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/format/master.c
+5
-4
5 additions, 4 deletions
api/format/master.c
with
5 additions
and
4 deletions
api/format/master.c
+
5
−
4
View file @
54a2d532
...
...
@@ -115,7 +115,7 @@ void eb_device_flush(eb_device_t devicep) {
struct
eb_operation
*
scan
;
eb_operation_t
operationp
;
eb_operation_t
scanp
;
int
needs_check
;
int
needs_check
,
cycle_end
;
unsigned
int
ops
,
maxops
;
cycle
=
EB_CYCLE
(
cyclep
);
...
...
@@ -168,8 +168,9 @@ void eb_device_flush(eb_device_t devicep) {
/* Begin formatting the packet into records */
ops
=
0
;
readback
=
0
;
while
(
operationp
!=
EB_NULL
||
(
needs_check
&&
ops
>
0
))
{
int
wcount
,
rcount
,
rxcount
,
total
,
length
,
fifo
,
cycle_end
;
cycle_end
=
0
;
while
(
!
cycle_end
)
{
int
wcount
,
rcount
,
rxcount
,
total
,
length
,
fifo
;
eb_address_t
bwa
;
eb_operation_flags_t
rcfg
,
wcfg
;
...
...
@@ -384,7 +385,7 @@ void eb_device_flush(eb_device_t devicep) {
}
/* Did we finish the while loop? */
if
(
operationp
==
EB_NULL
&&
(
!
needs_check
||
ops
==
0
)
)
{
if
(
cycle_end
)
{
if
(
readback
==
0
)
{
/* No response will arrive, so call callback now */
if
(
cycle
->
callback
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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