typedef SysCallback_AbortFxn |
|
Abort function signature
typedef Void (*SysCallback_AbortFxn)(Void);
typedef SysCallback_AtExitFxn |
|
Function called as part of normal application exit
typedef Int (*SysCallback_AtExitFxn)(Void(*)(Void));
typedef SysCallback_ExitFxn |
|
Exit function signature
typedef Void (*SysCallback_ExitFxn)(Int);
typedef SysCallback_InitFxn |
|
Init function signature
typedef Void (*SysCallback_InitFxn)(Void);
typedef SysCallback_PutCharFxn |
|
Putchar function signature
typedef Void (*SysCallback_PutCharFxn)(Char);
config SysCallback_abortFxn // module-wide |
|
User supplied abort function
DETAILS
This function is called when abort() is called. If it returns to
the caller, abort() will enter into a self loop to prevent futher
execution.
If this function is set to null, abort() will enter into a self
loop to prevent futher execution.
config SysCallback_atExitFxn // module-wide |
|
User supplied atexit function to be called when atexit() is called
DETAILS
This function is called when the application calls atexit() and its
argument is passed to this function.
If this function is set to null, the function passed to atexit()
is ignored and atexit() will return 0.
config SysCallback_exitFxn // module-wide |
|
User supplied exit function
DETAILS
This function is called when exit() is called. If it returns to
the caller, exit() will enter into a self loop to prevent futher
execution.
If this function is set to null, exit() will enter into a self
loop to prevent futher execution.
config SysCallback_initFxn // module-wide |
|
User supplied initialization function
DETAILS
If this function is set to non-null value, it is called prior to
main() during this module's startup function.
config SysCallback_putCharFxn // module-wide |
|
User suplied character output function
DETAILS
This function is called whenever the System module needs to output
a character; e.g., during System_printf() or System_putch().
If this function is set to null, output characters are simply
ignored (i.e., they are not output).
SysCallback_abort() // module-wide |
|
Backend for System.abort()
Void SysCallback_abort(String str);
ARGUMENTS
str
message to output just prior to aborting
If non-NULL, this string should be output just prior to
terminating.
DETAILS
This function is called by
System.abort() prior to calling
the ANSI C Standard library function
abort(). So, to ensure the
abort processing of the system's ANSI C Standard library completes,
this function should return to its caller.
SysCallback_exit() // module-wide |
|
Backend for System.exit()
Void SysCallback_exit(Int stat);
ARGUMENTS
stat
status value passed to all "atexit" handlers
This value is passed to all "atexit" handles bound via
System.atexit(). If the application exits via the
ANSI C Standard
exit() function rather than via System_exit(),
stat will be equal to
System.STATUS_UNKNOWN.
DETAILS
This function is called as part the normal "atexit" processing
performed by the ANSI C Standard Library's
exit() function;
System.exit() directly calls ANSI
exit().
This function is called after all "atexit" handlers bound via
System.atexit() are run and it
is always called while "inside" the the
System gate.
To ensure that all exit processing of the system's ANSI C
Standard Library completes, this function should return to its caller.
Exit handlers bound using the ANSI C Standard Library atexit()
function may run before or after this function.
SEE
SysCallback_flush() // module-wide |
|
Backend for System.flush()
Void SysCallback_flush();
DETAILS
This function is simply called by
System_flush
to output any characters buffered by the underlying
SystemSupport
module to an output device.
SysCallback_putch() // module-wide |
|
Backend for System.printf() and System.putch()
Void SysCallback_putch(Char ch);
ARGUMENTS
ch
character to output
DETAILS
Output a single character. This function is called by
System_printf() to write each character
of formated output specified by its arguments.
SysCallback_ready() // module-wide |
|
Test if character output can proceed
Bool SysCallback_ready();
DETAILS
This function is called by
System prior to performing
any character output. If this function returns
FALSE, the
System
functions that would normally call
putch() simply return
(with an appropriate error status) without ever calling
putch.
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool SysCallback_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool SysCallback_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 SysCallback_Module_getMask();
// Returns the diagnostics mask for this module
Void SysCallback_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
config SysCallback.abortFxn // module-wide |
|
User supplied abort function
XDCscript usage |
meta-domain |
SysCallback.abortFxn = Void(*)(Void) null;
DETAILS
This function is called when abort() is called. If it returns to
the caller, abort() will enter into a self loop to prevent futher
execution.
If this function is set to null, abort() will enter into a self
loop to prevent futher execution.
C SYNOPSIS
config SysCallback.atExitFxn // module-wide |
|
User supplied atexit function to be called when atexit() is called
XDCscript usage |
meta-domain |
SysCallback.atExitFxn = Int(*)(Void(*)(Void)) null;
DETAILS
This function is called when the application calls atexit() and its
argument is passed to this function.
If this function is set to null, the function passed to atexit()
is ignored and atexit() will return 0.
C SYNOPSIS
config SysCallback.exitFxn // module-wide |
|
User supplied exit function
XDCscript usage |
meta-domain |
SysCallback.exitFxn = Void(*)(Int) null;
DETAILS
This function is called when exit() is called. If it returns to
the caller, exit() will enter into a self loop to prevent futher
execution.
If this function is set to null, exit() will enter into a self
loop to prevent futher execution.
C SYNOPSIS
config SysCallback.initFxn // module-wide |
|
User supplied initialization function
XDCscript usage |
meta-domain |
SysCallback.initFxn = Void(*)(Void) null;
DETAILS
If this function is set to non-null value, it is called prior to
main() during this module's startup function.
C SYNOPSIS
config SysCallback.putCharFxn // module-wide |
|
User suplied character output function
XDCscript usage |
meta-domain |
SysCallback.putCharFxn = Void(*)(Char) null;
DETAILS
This function is called whenever the System module needs to output
a character; e.g., during System_printf() or System_putch().
If this function is set to null, output characters are simply
ignored (i.e., they are not output).
C SYNOPSIS
metaonly config SysCallback.common$ // module-wide |
|
Common module configuration parameters
XDCscript usage |
meta-domain |
DETAILS
All modules have this configuration parameter. Its name
contains the '$' character to ensure it does not conflict with
configuration parameters declared by the module. This allows
new configuration parameters to be added in the future without
any chance of breaking existing modules.