Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ICS Control System Infrastructure
etherlabmaster
Commits
d87a04e0
Commit
d87a04e0
authored
16 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused domain state.
parent
5ef1ffe4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
master/domain.c
+0
-5
0 additions, 5 deletions
master/domain.c
master/domain.h
+0
-1
0 additions, 1 deletion
master/domain.h
with
0 additions
and
6 deletions
master/domain.c
+
0
−
5
View file @
d87a04e0
...
@@ -104,7 +104,6 @@ int ec_domain_init(
...
@@ -104,7 +104,6 @@ int ec_domain_init(
domain
->
data_origin
=
EC_ORIG_INTERNAL
;
domain
->
data_origin
=
EC_ORIG_INTERNAL
;
domain
->
logical_base_address
=
0L
;
domain
->
logical_base_address
=
0L
;
domain
->
working_counter
=
0xFFFFFFFF
;
domain
->
working_counter
=
0xFFFFFFFF
;
domain
->
state
=
0
;
domain
->
working_counter_changes
=
0
;
domain
->
working_counter_changes
=
0
;
domain
->
notify_jiffies
=
0
;
domain
->
notify_jiffies
=
0
;
...
@@ -424,15 +423,11 @@ void ecrt_domain_process(ec_domain_t *domain)
...
@@ -424,15 +423,11 @@ void ecrt_domain_process(ec_domain_t *domain)
ec_datagram_t
*
datagram
;
ec_datagram_t
*
datagram
;
working_counter_sum
=
0
;
working_counter_sum
=
0
;
domain
->
state
=
0
;
list_for_each_entry
(
datagram
,
&
domain
->
datagrams
,
list
)
{
list_for_each_entry
(
datagram
,
&
domain
->
datagrams
,
list
)
{
ec_datagram_output_stats
(
datagram
);
ec_datagram_output_stats
(
datagram
);
if
(
datagram
->
state
==
EC_DATAGRAM_RECEIVED
)
{
if
(
datagram
->
state
==
EC_DATAGRAM_RECEIVED
)
{
working_counter_sum
+=
datagram
->
working_counter
;
working_counter_sum
+=
datagram
->
working_counter
;
}
}
else
{
domain
->
state
=
-
1
;
}
}
}
if
(
working_counter_sum
!=
domain
->
working_counter
)
{
if
(
working_counter_sum
!=
domain
->
working_counter
)
{
...
...
This diff is collapsed.
Click to expand it.
master/domain.h
+
0
−
1
View file @
d87a04e0
...
@@ -71,7 +71,6 @@ struct ec_domain
...
@@ -71,7 +71,6 @@ struct ec_domain
uint32_t
logical_base_address
;
/**< Logical offset address of the
uint32_t
logical_base_address
;
/**< Logical offset address of the
process data. */
process data. */
unsigned
int
working_counter
;
/**< Last working counter value. */
unsigned
int
working_counter
;
/**< Last working counter value. */
unsigned
int
state
;
/**< Error state. */
unsigned
int
working_counter_changes
;
/**< Working counter changes
unsigned
int
working_counter_changes
;
/**< Working counter changes
since last notification. */
since last notification. */
unsigned
long
notify_jiffies
;
/**< Time of last notification. */
unsigned
long
notify_jiffies
;
/**< Time of last notification. */
...
...
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