home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / ct22d / tskdeb.h < prev    next >
Encoding:
Text File  |  1993-03-09  |  3.0 KB  |  103 lines

  1. ;/* --- Version 2.2 93-03-09 12:10 ---
  2.    COMMENT  ^
  3.  
  4.    TSKDEB.H - CTask - Debug definitions 
  5.  
  6.    Public Domain Software written by
  7.       Thomas Wagner
  8.       Ferrari electronic Gmbh
  9.       Beusselstrasse 27
  10.       D-1000 Berlin 21
  11.       Germany
  12.  
  13.    This file is new with version 2.1.
  14.  
  15.    DEBUG          Enables debugging output.
  16.                   Use the following flags:
  17.  
  18.                   DEB_SECOND     Display debug output on secondary monitor
  19.  
  20.                   DEB_TSKDIS     Display current,previous,eligible tasks
  21.                                  when in scheduler
  22.  
  23.                   DEB_FLASHERS   Display counters for scheduler, ticker,
  24.                                  keyboard ints
  25.  
  26.                   DEB_DOSTRACE   Output DOS trace on serial port
  27.                   DEB_DOSTRBUF   Buffer DOS trace in memory
  28.  
  29.    Sample definition:
  30.  
  31.          #define DEBUG     (DEB_TSKDIS | DEB_FLASHERS)
  32.          DEBUG          =  DEB_TSKDIS OR DEB_FLASHERS
  33.  
  34. */
  35.  
  36. #define  DEB_TSKDIS        0x0001
  37. #define  DEB_FLASHERS      0x0002
  38. #define  DEB_DOSTRACE      0x0004
  39. #define  DEB_DOSTRBUF      0x0008
  40. #define  DEB_SECOND        0x8000
  41.  
  42. /* #define DEBUG     (DEB_TSKDIS | DEB_FLASHERS | DEB_SECOND) */
  43. #define DEBUG              0
  44.  
  45.          /*^
  46.  
  47.          DEB_TSKDIS     =  0001h
  48.          DEB_FLASHERS   =  0002h
  49.          DEB_DOSTRACE   =  0004h
  50.          DEB_DOSTRBUF   =  0008h
  51.          DEB_SECOND     =  8000h
  52.  
  53.        ;  DEBUG          =  DEB_TSKDIS OR DEB_FLASHERS OR DEB_SECOND
  54.          DEBUG          =  0
  55.  
  56. COMMENT ^
  57. */
  58.  
  59. /* ----------------------------------------------------------------------- */
  60.  
  61. /*
  62. Task display:
  63.           1         2         3         4         5         6         7
  64. 01234567890123456789012345678901234567890123456789012345678901234567890123456789
  65.  Current   Previous  Eligible  Next el.  Sched Idle  Ticki Tickc Keybi StOfl S
  66. *<name..>  <name..>  <name..>  <name..>  <cnt> <cnt> <cnt> <cnt> <cnt> <cnt> n
  67. */
  68.  
  69. #define DEBLINTD " Current   Previous  Eligible  Next el."
  70. #define DEBLINFL "Sched Idle  Ticki Tickc Keybi StOfl S"
  71. #define DEBINIFL "00000 00000 00000 00000 00000 00000 0"
  72.  
  73. #define  DEBFLASH_NDIGS    5
  74.  
  75. #define  DEBP_CURRTSK      (1*2)
  76. #define  DEBP_PREVTSK      (11*2)
  77. #define  DEBP_ELIGTSK      (21*2)
  78. #define  DEBP_NEXTELIG     (31*2)
  79. #define  DEBP_CNTSCHED     (41*2)
  80. #define  DEBP_CNTIDLE      (47*2)
  81. #define  DEBP_CNTTICK      (53*2)
  82. #define  DEBP_CNTTCHAIN    (59*2)
  83. #define  DEBP_CNTKEYBD     (65*2)
  84. #define  DEBP_CNTSTOFL     (71*2)
  85. #define  DEBP_STACKNUM     (77*2)  /*^
  86.  
  87.          DEBFLASH_NDIGS =  5
  88.  
  89.          DEBP_CURRTSK   =  (1*2)
  90.          DEBP_PREVTSK   =  (11*2)
  91.          DEBP_ELIGTSK   =  (21*2)
  92.          DEBP_NEXTELIG  =  (31*2)
  93.          DEBP_CNTSCHED  =  (41*2)
  94.          DEBP_CNTIDLE   =  (47*2)
  95.          DEBP_CNTTICK   =  (53*2)
  96.          DEBP_CNTTCHAIN =  (59*2)
  97.          DEBP_CNTKEYBD  =  (65*2)
  98.          DEBP_CNTSTOFL  =  (71*2)
  99.          DEBP_STACKNUM  =  (77*2)
  100.  
  101. ;*/
  102.  
  103.