SYS/BIOS
7.00
|
Minimal implementation of SystemSupport.h.
This implementation provides a fully functional implementation of all methods specified by SystemSupport.h
.
The module maintains an internal buffer (with a configurable size) that stores on the "output". When full, the data is over-written. When System_flush()
is called the characters in the internal buffer are "output" using the user configurable SysMin.outputFxn.
These functions are invoked by the System module. Application code does not directly call these functions.
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | SysMin_OutputFxn) (char *arg1, unsigned int arg2) |
Output characters in the specified buffer. More... | |
Variables | |
const size_t | SysMin_bufSize |
Size (in MAUs) of the output. More... | |
const bool | SysMin_flushAtExit |
Flush the internal buffer during System_exit() or System_abort(). More... | |
typedef void(* SysMin_OutputFxn) (char *arg1, unsigned int arg2) |
Output characters in the specified buffer.
The first parameter is a pointer to a buffer of characters to be output. The second parameter is the number of characters in the buffer to output.
This function may be called with 0 as the second parameter. In this case, the function should simply return.
const size_t SysMin_bufSize |
Size (in MAUs) of the output.
An internal buffer of this size is allocated. All output is stored in this internal buffer.
If 0 is specified for the size, no buffer is created, all output is dropped, and SysMin_ready always returns false
.
const bool SysMin_flushAtExit |
Flush the internal buffer during System_exit() or System_abort().
If the application's target is a TI target, the internal buffer is flushed via the HOSTwrite
function in the TI C Run Time Support (RTS) library.
If the application's target is not a TI target, the internal buffer is flushed to stdout
via fwrite(..., stdout)
.
Setting this parameter to false
reduces the footprint of the application at the expense of not getting output when the application ends via a System_exit()
, System_abort()
, exit()
or abort()
.