home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / DOOG / CTASK.ZIP / TSKCONF.H < prev    next >
Text File  |  1989-12-20  |  4KB  |  151 lines

  1. /*
  2.     --- Version 2.0 89-12-13 17:45 ---
  3.  
  4.    TSKCONF.H - CTask - Configuration definitions 
  5.  
  6.    Public Domain Software written by
  7.       Thomas Wagner
  8.       Patschkauer Weg 31
  9.       D-1000 Berlin 33
  10.       West Germany
  11.  
  12.    This file is new with Version 1.1
  13. */
  14.  
  15. /*
  16.    TSK_DYNAMIC    if 1, creating dynamic control blocks is allowed.
  17.  
  18.    CAUTION:    Changing this define requires changing the corresponding
  19.                definition in TSK.MAC and recompilation/assembly of *all*
  20.                sources. 
  21. */
  22.  
  23. #define  TSK_DYNAMIC    1
  24.  
  25.  
  26. /*
  27.    IBM            if 1, routines specific to the IBM family of PCs
  28.                   (and clones) are installed.
  29.  
  30.    DOS            if 1, routines specific to PC/MS-DOS are installed.
  31.  
  32.       NOTE:         If you disable IBM, you have to provide timer and keyboard
  33.                     hardware support yourself. Check the areas in "tskmain.c" 
  34.                     that are affected by this define.
  35.                         If you disable DOS, the resulting version can not be
  36.                         used under DOS without significant changes.
  37.  
  38.        CAUTION:      Changing this define requires changing the corresponding
  39.                    definition in TSK.MAC and recompilation/assembly of *all*
  40.                    sources.
  41. */
  42.  
  43. #define  IBM   1
  44. #define  DOS   1
  45.  
  46.  
  47. /*
  48.    TSK_NAMEPAR    if 1, the create_xxx routines accept a name parameter.
  49.  
  50.    TSK_NAMED      if 1, control block names are processed.
  51.  
  52.                    TSK_NAMED may only be enabled (1) if TSK_NAMEPAR is also 
  53.                    enabled.
  54.  
  55.    GROUPS         if 1, multiple task groups are supported.
  56.                   For this option to work, TSK_NAMEPAR and TSK_NAMED must
  57.                   be enabled.
  58.  
  59.        CAUTION:      Changing this define requires changing the corresponding
  60.                    definition in TSK.MAC and recompilation/assembly of *all*
  61.                    sources.
  62.  
  63.     If DOS is nonzero, TSK_NAMEPAR, TSK_NAMED, and GROUPS must also be set.
  64. */
  65.  
  66.  
  67. #if (!DOS)
  68.  
  69. #define  TSK_NAMEPAR    1     /* This may be set to 0 if desired */
  70.  
  71. #if (TSK_NAMEPAR)
  72.  
  73. #define  TSK_NAMED      1     /* This may be set to 0 if desired */
  74.  
  75. #else
  76. #define  TSK_NAMED      0     /* Do not change this */
  77. #endif
  78.  
  79. #if (TSK_NAMED && TSK_NAMEPAR)
  80. #define  GROUPS         1     /* This may be set to 0 if desired */
  81. #else
  82. #define  GROUPS         1     /* Do not change this */
  83. #endif
  84.  
  85. #else
  86. #define  TSK_NAMEPAR    1     /* Do not change this */
  87. #define  TSK_NAMED      1     /* Do not change this */
  88. #define  GROUPS         1     /* Do not change this */
  89. #endif
  90.  
  91.  
  92. /*
  93.    CLOCK_MSEC     if 1, all timeouts are specified in milliseconds.
  94.                   Requires floating point library.
  95.                   Changing requires recompile of tskmain.c and tsksub.c.
  96. */
  97.  
  98. #define CLOCK_MSEC      0
  99.  
  100. /*
  101.    PRI_TIMER      Priority of the timer task. Normally higher than any
  102.                   other task in the system.
  103.                   Changing requires recompile of tskmain.c.
  104. */
  105.  
  106. #define  PRI_TIMER   0xf000
  107.  
  108. /*
  109.    PRI_STD        standard priority of user tasks (arbitrary), for use
  110.                   in user programs.
  111.                   Changing requires recompile of tskmain.c.
  112. */
  113.  
  114. #define  PRI_STD     100
  115.  
  116. /*
  117.    PRI_INT8       priority of the int8 task. Normally lower than or equal to
  118.                   user defined tasks, but may be adjusted to tune responses
  119.                   of TSR's. If there are busy waiting tasks in the system,
  120.                         the priority should be equal to or higher than that of the
  121.                         task that does the busy waiting.
  122.  
  123.                   Changing requires recompile of tskmain.c.
  124. */
  125.  
  126. #define  PRI_INT8    (PRI_STD)
  127.  
  128. /*
  129.    AT_BIOS        if 1, the AT BIOS wait/post handler is installed.
  130.                         This can normally be left on even for XT type machines.
  131.                   Changing requires recompile of tskmain.c.
  132. */
  133.  
  134. #define  AT_BIOS  1
  135.  
  136. /*
  137.    SINGLE_DATA    if 1, only a single global data block is used.
  138.                   This speeds up processing, but prohibits linkage
  139.                   of multiple groups. Useful for dedicated systems,
  140.                   and also if your program is known to never interact
  141.                   with another copy of CTask. Should be left 0 if you're
  142.                   not so sure, must be 0 if GROUPS is enabled.
  143. */
  144.  
  145. #if (!GROUPS)
  146. #define  SINGLE_DATA  0          /* May be set to 1 if desired */
  147. #else
  148. #define  SINGLE_DATA  0          /* Do not change this */
  149. #endif
  150.  
  151.