gonzui


Format: Advanced Search

mtkernel_3/include/sys/profile.hbare sourcepermlink (0.02 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    micro T-Kernel 3.00.00
    4:  *
    5:  *    Copyright (C) 2006-2019 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.1.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2019/12/11.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: /*
   15:  *      profile.h
   16:  *
   17:  *      Service Profile
   18:  */
   19: 
   20: #ifndef __SYS_PROFILE_H__
   21: #define __SYS_PROFILE_H__
   22: 
   23: #include <sys/machine.h>
   24: #include <sys/knldef.h>
   25: 
   26: /*
   27:  **** System-depeneded profile
   28:  */
   29: 
   30: /* System dependencies */
   31: #define PROF_PATH_(a)           #a
   32: #define PROF_PATH(a)            PROF_PATH_(a)
   33: #define PROF_SYSDEP()           PROF_PATH(sysdepend/TARGET_DIR/profile.h)
   34: #include PROF_SYSDEP()
   35: 
   36: 
   37: /* 
   38:  **** Common profile
   39:  */
   40: 
   41: /*
   42:  * OS type and version
   43:  */
   44: #define TK_SPECVER_MAGIC                6                                     /* micro T-Kernel magic number */
   45: #define TK_SPECVER_MAJOR                3                                     /* major version number */
   46: #define TK_SPECVER_MINOR                0                                     /* minor version number */
   47: #define TK_SPECVER                      ((TK_SPECVER_MAJOR << 8) | TK_SPECVER_MINOR)
   48: 
   49: /*
   50:  * Maximum task priority (>= 16)
   51:  */
   52: #define TK_MAX_TSKPRI                   (MAX_TSKPRI)            /* Maximum task priority */
   53: #define TK_WAKEUP_MAXCNT                (+2147483647L)                /* Maximum queuing number of the task wakeup requests. */
   54: #define TK_SEMAPHORE_MAXCNT             (+2147483647L)             /* Maximum semaphore count */
   55: /*
   56:  * Maximum queuing count of the forced wait of tasks.
   57:  */
   58: #define TK_SUSPEND_MAXCNT               (+2147483647L)
   59: 
   60: /*
   61:  * Device Driver
   62:  */
   63: #define TK_SUPPORT_TASKEVENT            FALSE                             /* Support of task event */
   64: #define TK_SUPPORT_DISWAI               FALSE                                /* Support of disabling wait (API: tk_dis_wai) */
   65: 
   66: /*
   67:  * Memory management
   68:  */
   69: #define TK_SUPPORT_USERBUF              TRUE                                /* Support of user-specified buffer (TA_USERBUF) */
   70: #define TK_SUPPORT_AUTOBUF              TRUE                                /* Support of automatic buffer allocation (No TA_USERBUF specification) */
   71: #define TK_SUPPORT_MEMLIB               (USE_IMALLOC)                        /* Support of memory allocation library */
   72: 
   73: /*
   74:  * Task exception
   75:  */
   76: #define TK_SUPPORT_TASKEXCEPTION        FALSE                          /* Support of task exception */
   77: 
   78: /*
   79:  * Subsystem
   80:  */
   81: #define TK_SUPPORT_SUBSYSTEM            FALSE                             /* Support of subsystem */
   82: #define TK_SUPPORT_SSYEVENT             FALSE                              /* Support of subsystem event processing */
   83: 
   84: /*
   85:  * System configuration information
   86:  */
   87: #define TK_SUPPORT_SYSCONF              FALSE                               /* Support of getting system configuration information */
   88: 
   89: /*
   90:  * Data types and size
   91:  */
   92: #define TK_HAS_DOUBLEWORD               TRUE                         /* Support of 64-bit data types (D, UD, VD) */
   93: #define TK_SUPPORT_USEC                 FALSE                         /* Support of microsecond */
   94: #define TK_SUPPORT_LARGEDEV             FALSE                              /* Support of Large Mass-storage Device (64-bit) */
   95: #define TK_SUPPORT_SERCD                FALSE                         /* Support of sub error code */
   96: 
   97: /*
   98:  * other function
   99:  */
  100: #define TK_TRAP_SVC                     FALSE                             /* Use CPU Trap instruction for system call entry */
  101: #define TK_HAS_SYSSTACK                 FALSE                         /* Task has a separate system stack. */
  102: #define TK_SUPPORT_UTC                  TRUE                           /* Support of UTC(Unix style) */
  103: #define TK_SUPPORT_TRONTIME             TRUE                               /* Support of TRON time */
  104: 
  105: /*
  106:  * Debug support
  107:  */
  108: #define TK_SUPPORT_DSNAME               (USE_OBJECT_NAME)    /* Support of DS object names */
  109: #define TK_SUPPORT_DBGSPT               (USE_DBGSPT)         /* Support of T-Kernel/DS */
  110: 
  111: 
  112: #endif /* __SYS_PROFILE_H__ */