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
45501230
Commit
45501230
authored
Dec 21, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start with qcom and no nethandler
parent
e2e81d94
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
22 deletions
+67
-22
src/changelog.txt
src/changelog.txt
+2
-1
src/lib/dtt/src/dtt_rttsys.c
src/lib/dtt/src/dtt_rttsys.c
+18
-11
src/lib/rt/src/rt_rtt_functions.h
src/lib/rt/src/rt_rtt_functions.h
+11
-10
src/lib/rt/src/rt_rtt_global.h
src/lib/rt/src/rt_rtt_global.h
+2
-0
src/lib/rt/src/rt_rtt_menu.c
src/lib/rt/src/rt_rtt_menu.c
+34
-0
No files found.
src/changelog.txt
View file @
45501230
...
...
@@ -126,3 +126,4 @@
091020 cs co wow_CreateList now with variable text size.
091111 cs gdh Bugfix in nethandler SetObjectInfo and GetObjectInfo.
091209 cs co Command line interpreter, command not converted to upper case any more.
091211 cs rtt rt_rtt runable on sev station to show qcom nodes and qcom applications.
\ No newline at end of file
src/lib/dtt/src/dtt_rttsys.c
View file @
45501230
...
...
@@ -93,6 +93,13 @@ rtt_message('E',"Rtt is not connected to nethandler");\
return RTT__NOPICTURE;\
}
#define IF_NOQCOM_RETURN \
if ( !(rtt_gdh_started || rtt_qcom_started)) \
{\
rtt_message('E',"Rtt is not connected to qcom or nethandler");\
return RTT__NOPICTURE;\
}
/* Type definitions */
/* RTTSYS_GRAFCET ***/
typedef
struct
{
...
...
@@ -11086,7 +11093,7 @@ int RTTSYS_QCOM_APPL( menu_ctx ctx,
pool_sQlink
*
al
;
qdb_sAppl
*
ap
;
IF_NO
GDH
_RETURN
;
IF_NO
QCOM
_RETURN
;
/**********************************************************
* The value of a parameter is changed.
...
...
@@ -11720,7 +11727,7 @@ int RTTSYS_QCOM_NODES( menu_ctx ctx,
qdb_sNode
*
np
;
char
timbuf
[
32
];
IF_NO
GDH
_RETURN
;
IF_NO
QCOM
_RETURN
;
/**********************************************************
* The value of a parameter is changed.
...
...
@@ -11735,7 +11742,7 @@ int RTTSYS_QCOM_NODES( menu_ctx ctx,
k
=
0
;
l
=
0
;
g
db_ScopeLock
{
q
db_ScopeLock
{
for
(
nl
=
pool_Qsucc
(
&
sts
,
&
qdb
->
pool
,
&
qdb
->
g
->
node_lh
);
nl
!=
&
qdb
->
g
->
node_lh
;
...
...
@@ -11814,7 +11821,7 @@ int RTTSYS_QCOM_NODES( menu_ctx ctx,
}
k
++
;
}
}
g
db_ScopeUnlock
;
}
q
db_ScopeUnlock
;
for
(
i
=
l
;
i
<
QCOM_NODES_PAGESIZE
;
i
++
)
{
...
...
@@ -11895,7 +11902,7 @@ int RTTSYS_QCOM_NODES( menu_ctx ctx,
k
=
0
;
l
=
0
;
g
db_ScopeLock
{
q
db_ScopeLock
{
for
(
nl
=
pool_Qsucc
(
&
sts
,
&
qdb
->
pool
,
&
qdb
->
g
->
node_lh
);
nl
!=
&
qdb
->
g
->
node_lh
;
...
...
@@ -11974,7 +11981,7 @@ int RTTSYS_QCOM_NODES( menu_ctx ctx,
}
k
++
;
}
}
g
db_ScopeUnlock
;
}
q
db_ScopeUnlock
;
for
(
i
=
l
;
i
<
QCOM_NODES_PAGESIZE
;
i
++
)
{
...
...
@@ -12690,7 +12697,7 @@ int RTTSYS_QCOM_NODE( menu_ctx ctx,
qdb_sNode
*
np
;
static
pwr_tNodeId
nid
;
IF_NO
GDH
_RETURN
;
IF_NO
QCOM
_RETURN
;
/**********************************************************
* The value of a parameter is changed.
...
...
@@ -12702,7 +12709,7 @@ int RTTSYS_QCOM_NODE( menu_ctx ctx,
menulist
=
(
rtt_t_menu_upd
*
)
ctx
->
menu
;
menu_ptr
=
menulist
;
g
db_ScopeLock
{
q
db_ScopeLock
{
for
(
nl
=
pool_Qsucc
(
&
sts
,
&
qdb
->
pool
,
&
qdb
->
g
->
node_lh
);
nl
!=
&
qdb
->
g
->
node_lh
;
...
...
@@ -12835,7 +12842,7 @@ int RTTSYS_QCOM_NODE( menu_ctx ctx,
break
;
}
}
}
g
db_ScopeUnlock
;
}
q
db_ScopeUnlock
;
return
RTT__SUCCESS
;
...
...
@@ -12873,7 +12880,7 @@ int RTTSYS_QCOM_NODE( menu_ctx ctx,
menulist
=
(
rtt_t_menu_upd
*
)
ctx
->
menu
;
menu_ptr
=
menulist
;
g
db_ScopeLock
{
q
db_ScopeLock
{
for
(
nl
=
pool_Qsucc
(
&
sts
,
&
qdb
->
pool
,
&
qdb
->
g
->
node_lh
);
nl
!=
&
qdb
->
g
->
node_lh
;
...
...
@@ -13006,7 +13013,7 @@ int RTTSYS_QCOM_NODE( menu_ctx ctx,
break
;
}
}
}
g
db_ScopeUnlock
;
}
q
db_ScopeUnlock
;
break
;
...
...
src/lib/rt/src/rt_rtt_functions.h
View file @
45501230
...
...
@@ -20,9 +20,10 @@
#ifndef rt_rtt_functions_h
#define rt_rtt_functions_h
/* Module r
s
_rtt_menu.c */
/* Module r
t
_rtt_menu.c */
int
rtt_gdh_init
(
void
);
int
rtt_qcom_init
(
void
);
int
rtt_initialize
(
char
*
username
,
char
*
password
,
char
*
commandfile
,
...
...
@@ -398,7 +399,7 @@ menu_ctx rtt_current_ctx();
int
rtt_logon_pict
(
unsigned
long
*
chn
,
unsigned
long
*
priv
);
/* Module r
s
_rtt_crr.c */
/* Module r
t
_rtt_crr.c */
int
rtt_crossref_signal
(
unsigned
long
ctx
,
...
...
@@ -432,7 +433,7 @@ int rtt_show_signals(
char
*
windowname
,
int
debug
);
/* Module r
s
_rtt_command.c */
/* Module r
t
_rtt_command.c */
int
rtt_get_do_test
(
pwr_tObjid
objid
,
int
*
on
);
...
...
@@ -619,7 +620,7 @@ int rttcmd_learn_func( menu_ctx ctx,
int
*
flag
);
int
rtt_remove_blank
(
char
*
out_str
,
char
*
in_str
);
/* Module r
s
_rtt_alarm.c */
/* Module r
t
_rtt_alarm.c */
int
rtt_alarm_send
(
char
*
alarm_text
,
...
...
@@ -647,7 +648,7 @@ int rtt_alarm_ack_last();
int
rtt_alarmlog_start
(
char
*
filename
);
int
rtt_alarmlog_stop
();
/* Module r
s
_rtt_logging.c */
/* Module r
t
_rtt_logging.c */
int
rtt_logging_create
(
menu_ctx
ctx
,
...
...
@@ -698,7 +699,7 @@ int rtt_logging_delete(
char
*
parameterstr
);
int
rtt_logging_close_files
();
/* Module r
s
_rtt_view.c */
/* Module r
t
_rtt_view.c */
int
rtt_view
(
menu_ctx
parent_ctx
,
char
*
filename
,
...
...
@@ -715,7 +716,7 @@ int rtt_view_buffer(
char
*
intitle
,
int
type
);
/* Module r
s
_rtt_os.c */
/* Module r
t
_rtt_os.c */
int
rtt_get_nodename
(
char
*
nodename
,
int
size
);
char
*
rtt_fgetname
(
FILE
*
fp
,
char
*
name
,
char
*
def_name
);
...
...
@@ -794,7 +795,7 @@ int rtt_replace_env( char *str, char *newstr);
int
rtt_get_platform
(
char
*
platform
);
int
rtt_get_hw
(
char
*
hw
);
/* Module r
s
_rtt_qiomod.c */
/* Module r
t
_rtt_qiomod.c */
int
qio_assign
(
char
*
s
,
int
*
chn
);
int
qio_set_attr
(
int
*
chn
);
...
...
@@ -806,7 +807,7 @@ int qio_write( int *chn, int tmo, char *buf, int len);
#endif
/* Module r
s
_rtt_cmdmode.c */
/* Module r
t
_rtt_cmdmode.c */
int
rtt_store_symbols
(
char
*
filename
);
int
rtt_show_symbols
(
menu_ctx
ctx
);
int
rtt_replace_symbol
(
char
*
command
,
char
*
newcommand
);
...
...
@@ -820,7 +821,7 @@ int rtt_attribute_func (
int
*
return_int
,
char
*
return_string
);
/* Module r
s
_rtt_rtc.c */
/* Module r
t
_rtt_rtc.c */
#ifdef OS_ELN
int
rtt_rtc
(
int
function
);
#endif
...
...
src/lib/rt/src/rt_rtt_global.h
View file @
45501230
...
...
@@ -60,6 +60,7 @@ extern unsigned char rtt_AlarmReturn;
extern
unsigned
char
rtt_AlarmAck
;
extern
rtt_t_loggtable
rtt_loggtable
[
RTT_LOGG_MAXENTRY
];
extern
int
rtt_gdh_started
;
extern
int
rtt_qcom_started
;
extern
char
rtt_AlarmLastMessage
[
80
];
extern
char
rtt_AlarmText1
[
80
];
extern
char
rtt_AlarmText2
[
80
];
...
...
@@ -115,6 +116,7 @@ unsigned char rtt_AlarmReturn = 0;
unsigned
char
rtt_AlarmAck
=
0
;
rtt_t_loggtable
rtt_loggtable
[
RTT_LOGG_MAXENTRY
];
int
rtt_gdh_started
=
0
;
int
rtt_qcom_started
=
0
;
char
rtt_AlarmLastMessage
[
80
]
=
""
;
char
rtt_AlarmText1
[
80
]
=
""
;
char
rtt_AlarmText2
[
80
]
=
""
;
...
...
src/lib/rt/src/rt_rtt_menu.c
View file @
45501230
...
...
@@ -340,6 +340,7 @@ int rtt_initialize( char *username,
{
int
sts
;
int
noneth
=
0
;
int
qcom_only
=
0
;
rtt_init_state_table
();
...
...
@@ -349,6 +350,11 @@ int rtt_initialize( char *username,
noneth
=
1
;
rtt_priv
=
RTT_PRV_SYS
;
}
else
if
(
strcmp
(
username
,
"QCOMONLY"
)
==
0
)
{
noneth
=
1
;
qcom_only
=
1
;
rtt_priv
=
RTT_PRV_SYS
;
}
if
(
!
noneth
)
{
sts
=
rtt_gdh_init
();
...
...
@@ -365,6 +371,9 @@ int rtt_initialize( char *username,
exit
(
-
1
);
}
}
else
if
(
qcom_only
)
{
sts
=
rtt_qcom_init
();
}
sts
=
rtt_recall_create
(
&
rtt_recallbuff
);
if
(
EVEN
(
sts
))
return
sts
;
...
...
@@ -440,6 +449,31 @@ int rtt_gdh_init()
return
RTT__SUCCESS
;
}
/*************************************************************************
*
* Name: rtt_gdh_init()
*
* Type int
*
* Type Parameter IOGF Description
*
* Description:
* This function initializes gdh for rtt.
*
**************************************************************************/
int
rtt_qcom_init
()
{
pwr_tStatus
sts
;
qcom_sAid
aid
;
qcom_Init
(
&
sts
,
&
aid
,
"rt_rtt"
);
if
(
EVEN
(
sts
))
return
sts
;
rtt_qcom_started
=
1
;
return
RTT__SUCCESS
;
}
/*************************************************************************
*
* Name: rtt_configure()
...
...
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