pragma Preelaborate (VxWorks);
|
Here is a complete example that shows how to handle the Interrupt 18
in Ada using this package:
|
Type Summary
Exception_Vector derived from Address |
| Inherited Operations: |
"<",
"<=",
"=",
">",
">="
|
Interrupt_Vector derived from Address |
| New Operations: |
intConnect,
INUM_TO_IVEC,
sysBusIntGen
|
| Inherited Operations: |
"<",
"<=",
"=",
">",
">="
|
STATUS derived from int |
VOIDFUNCPTR |
|
Constants and Named Numbers
|
Other Items:
|
|
|
type STATUS is new int;
|
|
Equivalent of the C type STATUS
|
|
|
|
|
|
function INUM_TO_IVEC (intNum : int) return Interrupt_Vector;
|
|
Equivalent to the C macro INUM_TO_IVEC used to convert an interrupt
number to an interrupt vector
|
|
|
|
|
|
procedure logMsg
(fmt : String; arg1, arg2, arg3, arg4, arg5, arg6 : int := 0);
|
|
Binding to the C routine logMsg. Note that it is the caller
responsibility to ensure that fmt is a null terminated string
(e.g logMsg ("Interrupt" & ASCII.Nul))
|
|
|
private
|