summaryrefslogtreecommitdiffstats
path: root/doc/user/signal.t
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-05-29 21:53:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-05-29 21:53:58 +0000
commit61389eac9fc90cefeff329fa5e692616f22aa219 (patch)
tree67e9f20995d80ebd1912501286876f0405b1a4bb /doc/user/signal.t
parentupdated version number (diff)
downloadrtems-61389eac9fc90cefeff329fa5e692616f22aa219.tar.bz2
first cut at Ada bindings manual
Diffstat (limited to '')
-rw-r--r--doc/user/signal.t36
1 files changed, 35 insertions, 1 deletions
diff --git a/doc/user/signal.t b/doc/user/signal.t
index f6a53c1967..394ffc6032 100644
--- a/doc/user/signal.t
+++ b/doc/user/signal.t
@@ -231,13 +231,23 @@ software interrupts parallels that of hardware interrupts. As a
result, the differences between the formats of ASRs and ISRs is
limited to the meaning of the single argument passed to an ASR.
The ASR should have the following calling sequence and adhere to
-C calling conventions:
+@value{RTEMS-LANGUAGE} calling conventions:
+@ifset is-C
@example
rtems_asr user_routine(
rtems_signal_set signals
);
@end example
+@end ifset
+
+@ifset is-Ada
+@example
+procedure User_Routine (
+ Signals : in RTEMS.Signal_Set
+);
+@end example
+@end ifset
When the ASR returns to RTEMS the mode and execution
path of the interrupted task (or ASR) is restored to the context
@@ -267,12 +277,24 @@ and status codes.
@subheading CALLING SEQUENCE:
+@ifset is-C
@example
rtems_status_code rtems_signal_catch(
rtems_asr_entry asr_handler,
rtems_mode mode
);
@end example
+@end ifset
+
+@ifset is-Ada
+@example
+procedure Signal_Catch (
+ ASR_Handler : in RTEMS.ASR_Handler;
+ Mode_Set : in RTEMS.Mode;
+ Result : out RTEMS.Status_Codes
+);
+@end example
+@end ifset
@subheading DIRECTIVE STATUS CODES:
@code{SUCCESSFUL} - always successful
@@ -314,12 +336,24 @@ The following task mode constants are defined by RTEMS:
@subheading CALLING SEQUENCE:
+@ifset is-C
@example
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
);
@end example
+@end ifset
+
+@ifset is-Ada
+@example
+procedure Signal_Send (
+ ID : in RTEMS.ID;
+ Signal_Set : in RTEMS.Signal_Set;
+ Result : out RTEMS.Status_Codes
+);
+@end example
+@end ifset
@subheading DIRECTIVE STATUS CODES:
@code{SUCCESSFUL} - signal sent successfully@*