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
1042d823
Commit
1042d823
authored
Nov 14, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sound support for ge dynamic and alarms
parent
12f3e62b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15693 additions
and
6 deletions
+15693
-6
src/exe/rt_emon/src/rt_emon.c
src/exe/rt_emon/src/rt_emon.c
+10
-1
src/exp/rt/src/os_linux/hw_x86/makefile
src/exp/rt/src/os_linux/hw_x86/makefile
+19
-1
src/msg/rt/src/rt_xnav_msg.msg
src/msg/rt/src/rt_xnav_msg.msg
+5
-4
xtt/exp/ge/src/pwr_c_sound.pwg
xtt/exp/ge/src/pwr_c_sound.pwg
+15659
-0
No files found.
src/exe/rt_emon/src/rt_emon.c
View file @
1042d823
/*
* Proview $Id: rt_emon.c,v 1.1
0 2005-11-02 14:05:26
claes Exp $
* Proview $Id: rt_emon.c,v 1.1
1 2005-11-14 16:35:55
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -140,6 +140,7 @@ struct s_Active {
mh_mEventFlags
eventFlags
;
mh_uEventInfo
status
;
mh_eEvent
event
;
pwr_tAttrRef
eventSound
;
pwr_tBoolean
local
;
sEventTab
*
detect_etp
;
sEventTab
*
return_etp
;
...
...
@@ -237,6 +238,7 @@ struct s_Sup {
mh_eEvent
EventType
;
mh_eEventPrio
EventPriority
;
mh_mEventFlags
EventFlags
;
pwr_tAttrRef
Sound
;
/* Internal attributes */
pwr_sAttrRef
Attribute
;
mh_uEventInfo
AlarmStatus
;
...
...
@@ -907,6 +909,7 @@ applMessage (
cdh_ToUpper
(
aap
->
link
.
objName
,
NULL
);
strncpy
(
aap
->
link
.
eventName
,
ip
->
EventName
,
sizeof
(
aap
->
link
.
eventName
));
aap
->
link
.
eventFlags
=
ip
->
EventFlags
;
aap
->
link
.
eventSound
=
ip
->
EventSound
;
aap
->
link
.
event
=
ip
->
EventType
;
aap
->
message
=
*
ip
;
...
...
@@ -1494,6 +1497,7 @@ formatApplEvent (
strncpy
(
mp
->
EventText
,
aap
->
message
.
EventText
,
sizeof
(
mp
->
EventText
));
mp
->
SupInfo
.
SupType
=
aap
->
message
.
SupInfo
.
SupType
;
memcpy
(
&
mp
->
SupInfo
,
&
aap
->
message
.
SupInfo
,
sizeof
(
mh_uSupInfo
));
mp
->
EventSound
=
aap
->
link
.
eventSound
;
*
size
=
sizeof
(
mh_sMessage
);
break
;
case
mh_eEvent_Ack
:
...
...
@@ -1587,6 +1591,7 @@ formatSupEvent (
sp
->
supInfoSize
=
sizeof
(
mp
->
SupInfo
.
mh_uSupInfo_u
);
}
#endif
mp
->
EventSound
=
sp
->
link
.
eventSound
;
memcpy
(
&
mp
->
SupInfo
.
mh_uSupInfo_u
,
sp
->
supInfoP
,
sp
->
supInfoSize
);
*
size
=
sizeof
(
mh_sMessage
);
break
;
...
...
@@ -2583,6 +2588,7 @@ initSupActiveCB (
sp
->
supInfoSize
=
sizeof
(
mh_sASupInfo
);
sp
->
supInfoP
=
&
asp
->
Info
;
sp
->
attribute
=
asp
->
Sup
.
Attribute
;
sp
->
link
.
eventSound
=
asp
->
Sup
.
Sound
;
sp
->
timer
=
&
asp
->
Timer
;
sp
->
op
=
(
void
*
)
asp
;
sp
->
agent
=
getAgent
(
sp
);
...
...
@@ -2596,6 +2602,7 @@ initSupActiveCB (
sp
->
supInfoSize
=
sizeof
(
mh_sDSupInfo
);
sp
->
supInfoP
=
&
dsp
->
Info
;
sp
->
attribute
=
dsp
->
Sup
.
Attribute
;
sp
->
link
.
eventSound
=
dsp
->
Sup
.
Sound
;
sp
->
timer
=
&
dsp
->
Timer
;
sp
->
op
=
(
void
*
)
dsp
;
sp
->
agent
=
getAgent
(
sp
);
...
...
@@ -2608,6 +2615,7 @@ initSupActiveCB (
sp
->
sup
=
(
sSup
*
)
&
nlsp
->
ControlP
;
sp
->
supInfoSize
=
0
;
sp
->
supInfoP
=
NULL
;
sp
->
link
.
eventSound
=
nlsp
->
Sound
;
sp
->
attribute
.
Objid
=
Object
;
sp
->
attribute
.
Offset
=
pwr_Offset
(
nlsp
,
LinkUp
);
sp
->
attribute
.
Size
=
sizeof
(
nlsp
->
LinkUp
);
...
...
@@ -2623,6 +2631,7 @@ initSupActiveCB (
sp
->
sup
=
(
sSup
*
)
&
csp
->
ControlP
;
sp
->
supInfoSize
=
0
;
sp
->
supInfoP
=
NULL
;
sp
->
link
.
eventSound
=
csp
->
Sound
;
sp
->
attribute
.
Objid
=
Object
;
sp
->
attribute
.
Offset
=
pwr_Offset
(
csp
,
DelayLimit
);
sp
->
attribute
.
Size
=
sizeof
(
csp
->
DelayLimit
);
...
...
src/exp/rt/src/os_linux/hw_x86/makefile
View file @
1042d823
...
...
@@ -43,10 +43,22 @@ sources := $(sort \
gif_sources
:=
$(
filter
%.gif,
$(sources)
)
sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.wav
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
wav_sources
:=
$(
filter
%.wav,
$(sources)
)
export_obj
:=
$(
patsubst
%.c,
$(obj_dir)
/%.o,
$(c_sources)
)
clean_obj
:=
$(
patsubst
%.c,clean_%.o,
$(c_sources)
)
export_gif
:=
$(
patsubst
%.gif,
$(exe_dir)
/%.gif,
$(gif_sources)
)
export_gifdoc
:=
$(
patsubst
%.gif,
$(doc_dir)
/help/%.gif,
$(gif_sources)
)
export_wav
:=
$(
patsubst
%.wav,
$(exe_dir)
/%.wav,
$(wav_sources)
)
.PHONY
:
all init copy lib exe clean realclean
\
$(clean_c)
...
...
@@ -55,7 +67,7 @@ all : init copy lib
init
:
copy
:
$(exe_dir)/xtt_help.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/pwr_logga.gif $(export_gif) $(export_gifdoc)
copy
:
$(exe_dir)/xtt_help.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/pwr_logga.gif $(export_gif) $(export_gifdoc)
$(export_wav)
lib
:
$(export_obj)
...
...
@@ -65,6 +77,12 @@ clean :
realclean
:
clean $(clean_obj)
.SUFFIXES
:
$(exe_dir)/%.wav
:
../../%.wav
@
$(log_h_h)
@
$(cp)
$(cpflags)
$(source)
$(target)
$(exe_dir)/xtt_help.dat
:
xtt_help.dat
@
echo
"Copying xtt_help.dat"
@
$(cp)
$(cpflags)
$(source)
$(target)
...
...
src/msg/rt/src/rt_xnav_msg.msg
View file @
1042d823
!
! Proview $Id: rt_xnav_msg.msg,v 1.
4 2005-09-01 14:58:00
claes Exp $
! Proview $Id: rt_xnav_msg.msg,v 1.
5 2005-11-14 16:37:59
claes Exp $
! Copyright (C) 2005 SSAB Oxelsund AB.
!
! This program is free software; you can redistribute it and/or
...
...
@@ -49,9 +49,10 @@ objnotfound <Object is not found> /error
stringtolong <String is too long> /error
fastconfig <Error in fast configuration> /error
nochildren <Item has no children> /error
queued <Request queued> /info
queuefull <Queue is full> /error
waveformat <Unsupported wavefile format> /error
filecorrupt <File is corrupt> /error
...
...
xtt/exp/ge/src/pwr_c_sound.pwg
0 → 100644
View file @
1042d823
This diff is collapsed.
Click to expand it.
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