Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d5f6bd1c
Commit
d5f6bd1c
authored
Feb 07, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Powerlink servers, added option -m to show methods
parent
74b52cc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
otherio/exe/rt_powerlink/src/rt_powerlink.c
otherio/exe/rt_powerlink/src/rt_powerlink.c
+20
-1
otherio/exe/rt_powerlink_cn/src/rt_powerlink_cn.c
otherio/exe/rt_powerlink_cn/src/rt_powerlink_cn.c
+21
-2
No files found.
otherio/exe/rt_powerlink/src/rt_powerlink.c
View file @
d5f6bd1c
...
...
@@ -66,7 +66,16 @@ pwr_tStatus io_get_plhandler_object (
}
int
main
()
static
void
usage
()
{
printf
(
"\
rt_powerlink I/O Powerlink Managing node server
\n
\
\n
\
-m Print loaded I/O methods
\n
\
\n
"
);
}
int
main
(
int
argc
,
char
**
argv
)
{
pwr_tStatus
sts
;
io_tCtx
io_ctx
;
...
...
@@ -77,6 +86,16 @@ int main()
struct
timespec
tim1
,
tim2
;
if
(
argc
>
1
)
{
if
(
strcmp
(
argv
[
1
],
"-m"
)
==
0
)
{
io_methods_print
();
exit
(
0
);
}
if
(
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
{
usage
();
exit
(
0
);
}
}
// Make connection to error handler
errh_Init
(
"pwr_powerlink"
,
errh_eAnix_powerlink
);
...
...
otherio/exe/rt_powerlink_cn/src/rt_powerlink_cn.c
View file @
d5f6bd1c
...
...
@@ -73,8 +73,16 @@ pwr_tStatus io_get_plhandler_object (
return
IO__SUCCESS
;
}
static
void
usage
()
{
printf
(
"\
rt_powerlink_cn I/O Powerlink Controlled node server
\n
\
\n
\
-m Print loaded I/O methods
\n
\
\n
"
);
}
int
main
()
int
main
(
int
argc
,
char
**
argv
)
{
pwr_tStatus
sts
;
io_tCtx
io_ctx
;
...
...
@@ -85,6 +93,16 @@ int main()
struct
timespec
tim1
,
tim2
;
if
(
argc
>
1
)
{
if
(
strcmp
(
argv
[
1
],
"-m"
)
==
0
)
{
io_methods_print
();
exit
(
0
);
}
if
(
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
{
usage
();
exit
(
0
);
}
}
// Make connection to error handler
errh_Init
(
"pwr_powerlink"
,
errh_eAnix_powerlink
);
...
...
@@ -137,9 +155,10 @@ int main()
#include <stdio.h>
int
main
()
int
main
(
int
argc
,
char
**
argv
)
{
printf
(
"** Not built with Powerlink
\n
"
);
return
0
;
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment