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
6a9acb0b
Commit
6a9acb0b
authored
Feb 11, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
3646bea8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1189 additions
and
239 deletions
+1189
-239
src/lib/dtt/src/dtt_appl_rttsys_m.dtt_m
src/lib/dtt/src/dtt_appl_rttsys_m.dtt_m
+6
-1
src/lib/dtt/src/dtt_appl_rttsys_p37.dtt
src/lib/dtt/src/dtt_appl_rttsys_p37.dtt
+584
-224
src/lib/dtt/src/dtt_appl_rttsys_p50.dtt
src/lib/dtt/src/dtt_appl_rttsys_p50.dtt
+434
-0
src/lib/dtt/src/dtt_rttsys.c
src/lib/dtt/src/dtt_rttsys.c
+165
-14
No files found.
src/lib/dtt/src/dtt_appl_rttsys_m.dtt_m
View file @
6a9acb0b
5
0
5
1
0
/
SYSTEM PICTURES
...
...
@@ -25,6 +25,11 @@ SHOW SUBSRV
26
RTTSYS_SHOW_SUBSRV
next
CACHE
7
50
RTTSYS_CACHE
next
GRAFCET
7
11
...
...
src/lib/dtt/src/dtt_appl_rttsys_p37.dtt
View file @
6a9acb0b
This diff is collapsed.
Click to expand it.
src/lib/dtt/src/dtt_appl_rttsys_p50.dtt
0 → 100644
View file @
6a9acb0b
This diff is collapsed.
Click to expand it.
src/lib/dtt/src/dtt_rttsys.c
View file @
6a9acb0b
...
...
@@ -377,14 +377,12 @@ static int rttsys_runningtimelist_add( pwr_tObjid runningtime_objid,
int
*
objectlist_count
,
int
*
alloc
);
#if 0
static
int
rttsys_node_start
(
menu_ctx
ctx
,
pwr_tObjid
objid
,
void
*
arg1
,
void
*
arg2
,
void
*
arg3
,
void
*
arg4
);
#endif
int
RTTSYS_REMTRANS
(
menu_ctx
ctx
,
int
event
,
...
...
@@ -1049,7 +1047,10 @@ int RTTSYS_SHOW_NODES( menu_ctx ctx,
/* Name */
menu_ptr
->
value_ptr
=
(
char
*
)
&
np
->
name
;
menu_ptr
->
func
=
&
rttsys_node_start
;
menu_ptr
->
arg1
=
(
void
*
)
np
;
menu_ptr
++
;
/* Os */
switch
(
np
->
os
)
{
case
co_eOS_Lynx
:
strcpy
(
menu_ptr
->
value_ptr
,
"Lynx"
);
break
;
...
...
@@ -1210,7 +1211,10 @@ int RTTSYS_SHOW_NODES( menu_ctx ctx,
/* Name */
menu_ptr
->
value_ptr
=
(
char
*
)
&
np
->
name
;
menu_ptr
->
func
=
&
rttsys_node_start
;
menu_ptr
->
arg1
=
(
void
*
)
np
;
menu_ptr
++
;
/* Os */
switch
(
np
->
os
)
{
case
co_eOS_Lynx
:
strcpy
(
menu_ptr
->
value_ptr
,
"Lynx"
);
break
;
...
...
@@ -1346,7 +1350,7 @@ int RTTSYS_SHOW_NODES( menu_ctx ctx,
* Show node info.
*
**************************************************************************/
#if 0
static
int
rttsys_node_start
(
menu_ctx
ctx
,
pwr_tObjid
objid
,
void
*
arg1
,
...
...
@@ -1361,19 +1365,17 @@ static int rttsys_node_start( menu_ctx ctx,
0
,
&
RTTSYS_NODE
);
return
sts
;
}
#endif
int
RTTSYS_NODE
(
menu_ctx
ctx
,
int
event
,
char
*
parameter_ptr
,
char
*
objectname
,
char
**
picture
)
{
#if 0
int sts;
{
rtt_t_menu_upd
*
menu_ptr
;
rtt_t_menu_upd
*
menulist
;
NODE_STRUCT *nodep = (NODE_STRUCT *) objectname;
gdb_sNode
*
nodep
=
(
gdb_sNode
*
)
objectname
;
int
i
;
IF_NOGDH_RETURN
;
...
...
@@ -1410,16 +1412,160 @@ int RTTSYS_NODE( menu_ctx ctx,
menu_ptr
=
menulist
;
/* Name */
menu_ptr->value_ptr = (char *) &nodep->nodename;
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
name
;
menu_ptr
++
;
/* CacheNode */
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
cacheNode
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
cacheNode
.
lc_min
;
menu_ptr
++
;
/* CF_Name receive*/
menu_ptr->value_ptr = (char *) &nodep->rxmsg[NETH_TYPE_CFNAME];
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
cacheNode
.
lc_max
;
menu_ptr
++
;
/* C
F_Name transmit
*/
menu_ptr->value_ptr = (char *) &nodep->
txmsg[NETH_TYPE_CFNAME]
;
/* C
ounters
*/
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
subc_lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
sansAct_lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
sancAct_lc
;
menu_ptr
++
;
/* rxmsg */
for
(
i
=
net_eMsg_error
;
i
<
net_eMsg_
;
i
++
)
{
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
rxmsg
[
i
];
menu_ptr
++
;
}
/* txmsg */
for
(
i
=
net_eMsg_error
;
i
<
net_eMsg_
;
i
++
)
{
menu_ptr
->
value_ptr
=
(
char
*
)
&
nodep
->
txmsg
[
i
];
menu_ptr
++
;
}
break
;
/**********************************************************
* Exit of the picture
***********************************************************/
case
RTT_APPL_EXIT
:
break
;
}
return
RTT__SUCCESS
;
}
/*************************************************************************
*
* Name: RTTSYS_CACHE()
*
* Type int
*
* Type Parameter IOGF Description
* menu_ctx ctx I context of the picture.
* int event I type of event.
* char *parameter_ptr I pointer to the parameter which value
* has been changed.
*
* Description:
* Show cache info.
*
**************************************************************************/
int
RTTSYS_CACHE
(
menu_ctx
ctx
,
int
event
,
char
*
parameter_ptr
,
char
*
objectname
,
char
**
picture
)
{
rtt_t_menu_upd
*
menu_ptr
;
rtt_t_menu_upd
*
menulist
;
IF_NOGDH_RETURN
;
/**********************************************************
* The value of a parameter is changed.
***********************************************************/
switch
(
event
)
{
case
RTT_APPL_UPDATE
:
return
RTT__SUCCESS
;
/**********************************************************
* Return address of menu
***********************************************************/
case
RTT_APPL_PICTURE
:
*
picture
=
(
char
*
)
&
dtt_systempicture_p50_bg
;
return
RTT__SUCCESS
;
/**********************************************************
* Previous page
***********************************************************/
case
RTT_APPL_MENU
:
*
picture
=
(
char
*
)
&
dtt_systempicture_p50_eu
;
return
RTT__SUCCESS
;
/**********************************************************
* Initialization of the picture
***********************************************************/
case
RTT_APPL_INIT
:
menulist
=
(
rtt_t_menu_upd
*
)
ctx
->
menu
;
menu_ptr
=
menulist
;
/* cacheNew */
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheNew
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheNew
.
lc_min
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheNew
.
lc_max
;
menu_ptr
++
;
/* cacheCom */
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheCom
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheCom
.
lc_min
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheCom
.
lc_max
;
menu_ptr
++
;
/* cacheOld */
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheOld
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheOld
.
lc_min
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheOld
.
lc_max
;
menu_ptr
++
;
/* cachePend */
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cachePend
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cachePend
.
lc_min
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cachePend
.
lc_max
;
menu_ptr
++
;
/* cacheCom */
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheFree
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheFree
.
lc_min
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheFree
.
lc_max
;
menu_ptr
++
;
/* cacheCom */
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheCclass
.
lc
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheCclass
.
lc_min
;
menu_ptr
++
;
menu_ptr
->
value_ptr
=
(
char
*
)
&
gdbroot
->
db
->
cacheCclass
.
lc_max
;
menu_ptr
++
;
break
;
/**********************************************************
...
...
@@ -1429,7 +1575,6 @@ int RTTSYS_NODE( menu_ctx ctx,
break
;
}
#endif
return
RTT__SUCCESS
;
}
...
...
@@ -5386,6 +5531,12 @@ int rttsys_start_system_picture(
"POOLS"
,
0
,
&
RTTSYS_POOLS
);
return
sts
;
}
else
if
(
strncmp
(
picture_name
,
"CACHE"
,
strlen
(
picture_name
))
==
0
)
{
sts
=
rtt_menu_new_sysedit
(
ctx
,
pwr_cNObjid
,
"CACHE"
,
"CACHE"
,
0
,
&
RTTSYS_CACHE
);
return
sts
;
}
else
if
(
strncmp
(
picture_name
,
"ERROR"
,
strlen
(
picture_name
))
==
0
)
{
rtt_message
(
'I'
,
"Obsolete command, use
\"
show device
\"
"
);
...
...
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