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
738dd2a2
Commit
738dd2a2
authored
15 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Set system time transmission delay during config.
parent
6b9434d5
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
master/fsm_slave_config.c
+3
-2
3 additions, 2 deletions
master/fsm_slave_config.c
with
3 additions
and
2 deletions
master/fsm_slave_config.c
+
3
−
2
View file @
738dd2a2
...
...
@@ -438,9 +438,10 @@ void ec_fsm_slave_config_state_dc_read_offset(
slave
->
ring_position
,
system_time
,
old_offset
,
slave
->
master
->
app_time
,
new_offset
);
// set DC system time offset
ec_datagram_fpwr
(
datagram
,
slave
->
station_address
,
0x0920
,
8
);
// set DC system time offset
and transmission delay
ec_datagram_fpwr
(
datagram
,
slave
->
station_address
,
0x0920
,
12
);
EC_WRITE_U64
(
datagram
->
data
,
new_offset
);
EC_WRITE_U32
(
datagram
->
data
+
8
,
slave
->
transmission_delay
);
fsm
->
retries
=
EC_FSM_RETRIES
;
fsm
->
state
=
ec_fsm_slave_config_state_dc_write_offset
;
}
...
...
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