Download Salvo User Manual

Transcript
OSSET_LIMITS: Limit Number of Runtime Salvo Objects
Name:
Purpose:
Allowed Values:
Default Value:
Action:
Related:
Enables:
Memory Required:
Notes
OSSET_LIMITS
To limit the number of permissible Salvo
objects when using the freeware libraries.
FALSE: The numbers of Salvo objects are
limited only by their definitions in salvomem.c.
TRUE: Salvo services reject operations on
Salvo objects that are outside the limits
set by the configuration parameters.
FALSE
Adds run-time bounds-checking on pointer
arguments.
OSENABLE_BOUNDS_CHECKING
Bounds-checking code sections in various
Salvo services.
When TRUE, requires some ROM.
Services involving Salvo objects (e.g. events) normally accept
pointer arguments to any valid control blocks. However, when
OSSET_LIMITS is TRUE, OSENABLE_BOUNDS_CHECKING is set to
TRUE, and these services will only accept pointers that are within
the control blocks as specified by configuration parameters (e.g.
OSEVENTS) at compile time, and otherwise return an error code.
In other words, if OSSignalXyz() is compiled with OSSET_LIMITS
as TRUE and OSEVENTS as 4, passing it an event control block
pointer (ecbP) of OSECBP(5) or higher51 will result in OSSignalXyz() returning an error code of OSERR_BAD_P.
All users should leave this option at its default value.
51
174
ecbs are numbered from 1 to OSEVENTS.
Chapter 5 • Configuration
Salvo User Manual