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
e5c9babd
Commit
e5c9babd
authored
16 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Adapted minimal example to sync manager configuration interface.
parent
21236959
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
examples/mini/mini.c
+20
-10
20 additions, 10 deletions
examples/mini/mini.c
with
20 additions
and
10 deletions
examples/mini/mini.c
+
20
−
10
View file @
e5c9babd
...
...
@@ -102,9 +102,14 @@ static ec_pdo_entry_info_t el3162_channel2[] = {
};
static
ec_pdo_info_t
el3162_pdos
[]
=
{
{
EC_DIR_INPUT
,
0x1A00
,
2
,
el3162_channel1
},
{
EC_DIR_INPUT
,
0x1A01
,
2
,
el3162_channel2
},
{
EC_END
}
{
0x1A00
,
2
,
el3162_channel1
},
{
0x1A01
,
2
,
el3162_channel2
}
};
static
ec_sync_info_t
el3162_syncs
[]
=
{
{
2
,
EC_DIR_OUTPUT
},
{
3
,
EC_DIR_INPUT
,
2
,
el3162_pdos
},
{
0xff
}
};
static
ec_pdo_entry_info_t
el2004_channels
[]
=
{
...
...
@@ -115,11 +120,16 @@ static ec_pdo_entry_info_t el2004_channels[] = {
};
static
ec_pdo_info_t
el2004_pdos
[]
=
{
{
EC_DIR_OUTPUT
,
0x1600
,
1
,
&
el2004_channels
[
0
]},
{
EC_DIR_OUTPUT
,
0x1601
,
1
,
&
el2004_channels
[
1
]},
{
EC_DIR_OUTPUT
,
0x1602
,
1
,
&
el2004_channels
[
2
]},
{
EC_DIR_OUTPUT
,
0x1603
,
1
,
&
el2004_channels
[
3
]},
{
EC_END
}
{
0x1600
,
1
,
&
el2004_channels
[
0
]},
{
0x1601
,
1
,
&
el2004_channels
[
1
]},
{
0x1602
,
1
,
&
el2004_channels
[
2
]},
{
0x1603
,
1
,
&
el2004_channels
[
3
]}
};
static
ec_sync_info_t
el2004_syncs
[]
=
{
{
0
,
EC_DIR_OUTPUT
,
4
,
el2004_pdos
},
{
1
,
EC_DIR_INPUT
},
{
0xff
}
};
#endif
...
...
@@ -309,7 +319,7 @@ int __init init_mini_module(void)
#ifdef CONFIGURE_PDOS
printk
(
KERN_INFO
PFX
"Configuring Pdos...
\n
"
);
if
(
ecrt_slave_config_
pdo
s
(
sc_ana_in
,
EC_END
,
el3162_
pdo
s
))
{
if
(
ecrt_slave_config_
sync_manager
s
(
sc_ana_in
,
EC_END
,
el3162_
sync
s
))
{
printk
(
KERN_ERR
PFX
"Failed to configure Pdos.
\n
"
);
goto
out_release_master
;
}
...
...
@@ -319,7 +329,7 @@ int __init init_mini_module(void)
goto
out_release_master
;
}
if
(
ecrt_slave_config_
pdo
s
(
sc
,
EC_END
,
el2004_
pdo
s
))
{
if
(
ecrt_slave_config_
sync_manager
s
(
sc
,
EC_END
,
el2004_
sync
s
))
{
printk
(
KERN_ERR
PFX
"Failed to configure Pdos.
\n
"
);
goto
out_release_master
;
}
...
...
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