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
7e943fe1
Commit
7e943fe1
authored
Feb 17, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take care of blocing callbacks in mh
parent
8736d13c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
4 deletions
+62
-4
src/lib/rt/src/rt_rtt_alarm.c
src/lib/rt/src/rt_rtt_alarm.c
+62
-4
No files found.
src/lib/rt/src/rt_rtt_alarm.c
View file @
7e943fe1
...
...
@@ -91,6 +91,10 @@ static pwr_tStatus rtt_mh_info_bc( mh_sMessage *MsgP);
static
pwr_tStatus
rtt_mh_alarm_bc
(
mh_sMessage
*
MsgP
);
static
pwr_tStatus
rtt_mh_ack_bc
(
mh_sAck
*
MsgP
);
static
pwr_tStatus
rtt_mh_return_bc
(
mh_sReturn
*
MsgP
);
static
pwr_tStatus
rtt_mh_block_bc
(
mh_sBlock
*
MsgP
);
static
pwr_tStatus
rtt_mh_cancel_bc
(
mh_sReturn
*
MsgP
);
static
pwr_tStatus
rtt_mh_clear_alarmlist_bc
(
pwr_tNodeIndex
nix
);
static
pwr_tStatus
rtt_mh_clear_blocklist_bc
(
pwr_tNodeIndex
nix
);
static
int
rtt_appl_connect_alarm
();
static
int
rtt_menu_alarm_configure
(
menu_ctx
ctx
,
...
...
@@ -514,6 +518,60 @@ static pwr_tStatus rtt_mh_return_bc( mh_sReturn *MsgP)
return
RTT__SUCCESS
;
}
/****************************************************************************
* Name: rtt_mh_cancel_bc()
*
* Type int
*
* Type Parameter IOGF Description
*
* Description:
* Backcall from mh.
*
**************************************************************************/
static
pwr_tStatus
rtt_mh_cancel_bc
(
mh_sReturn
*
MsgP
)
{
int
sts
;
ala_uEvent
*
EventP
;
int
alarm_item
;
rtt_t_menu_alarm
*
menu_ptr
;
EventP
=
(
ala_uEvent
*
)
MsgP
;
sts
=
rtt_alarm_get_index
(
&
MsgP
->
TargetId
,
&
alarm_item
);
if
(
ODD
(
sts
))
{
menu_ptr
=
(
rtt_t_menu_alarm
*
)
rtt_alarm_ctx
->
menu
;
menu_ptr
+=
alarm_item
;
sts
=
rtt_menu_item_alarm_delete
(
(
rtt_t_menu_alarm
*
)
rtt_alarm_ctx
->
menu
,
alarm_item
,
&
rtt_alarmlist_index
);
if
(
rtt_alarm_ctx
!=
0
)
rtt_alarm_ctx
->
update_init
=
1
;
}
rtt_alarm_last_message
();
return
RTT__SUCCESS
;
}
static
pwr_tStatus
rtt_mh_block_bc
(
mh_sBlock
*
MsgP
)
{
/* NYI */
return
RTT__SUCCESS
;
}
static
pwr_tStatus
rtt_mh_clear_alarmlist_bc
(
pwr_tNodeIndex
nix
)
{
/* NYI */
return
1
;
}
static
pwr_tStatus
rtt_mh_clear_blocklist_bc
(
pwr_tNodeIndex
nix
)
{
/* NYI */
return
1
;
}
/****************************************************************************
* Name: rtt_alarm_connect()
...
...
@@ -612,10 +670,10 @@ int rtt_alarm_connect (
0
,
rtt_mh_ack_bc
,
rtt_mh_alarm_bc
,
NULL
,
NULL
,
NULL
,
NULL
,
rtt_mh_block_bc
,
rtt_mh_cancel_bc
,
rtt_mh_clear_alarmlist_bc
,
rtt_mh_clear_blocklist_bc
,
rtt_mh_info_bc
,
rtt_mh_return_bc
);
...
...
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