mtkernel_3/config/config.h | bare source | permlink (0.01 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * micro T-Kernel 3.00.05 4: * 5: * Copyright (C) 2006-2021 by Ken Sakamura. 6: * This software is distributed under the T-License 2.2. 7: *---------------------------------------------------------------------- 8: * 9: * Released by TRON Forum(http://www.tron.org) at 2021/11. 10: * 11: *---------------------------------------------------------------------- 12: */ 13: 14: /* 15: * config.h 16: * User Configuration Definition 17: */ 18: 19: #ifndef __TK_CONFIG__ 20: #define __TK_CONFIG__ 21: 22: /*---------------------------------------------------------------------- */ 23: /* Target Name 24: Define the system target name. Alternatively, define the target name 25: in the development environment. 26: */ 27: //#define _IOTE_M367_ 28: //#define _IOTE_RX231_ 29: //#define _IOTE_STM32L4_ 30: //#define _IOTE_RZA2M_ 31: 32: /*---------------------------------------------------------------------- */ 33: /* SYSCONF : micro T-Kernel system configuration 34: */ 35: 36: #define CNF_SYSTEMAREA_TOP 0 /* 0: Use system default address */ 37: #define CNF_SYSTEMAREA_END 0 /* 0: Use system default address */ 38: 39: #define CNF_MAX_TSKPRI 32 /* Task Max priority */ 40: 41: #define CNF_TIMER_PERIOD 10 /* System timer period */ 42: 43: /* Maximum number of kernel objects */ 44: #define CNF_MAX_TSKID 32 /* Task */ 45: #define CNF_MAX_SEMID 16 /* Semaphore */ 46: #define CNF_MAX_FLGID 16 /* Event flag */ 47: #define CNF_MAX_MBXID 8 /* Mailbox*/ 48: #define CNF_MAX_MTXID 4 /* Mutex */ 49: #define CNF_MAX_MBFID 8 /* Message buffer */ 50: #define CNF_MAX_MPLID 4 /* Memory pool */ 51: #define CNF_MAX_MPFID 8 /* Fixed size memory pool */ 52: #define CNF_MAX_CYCID 4 /* Cyclic handler */ 53: #define CNF_MAX_ALMID 8 /* Alarm handler */ 54: 55: /* Device configuration */ 56: #define CNF_MAX_REGDEV (8) /* Max registered device */ 57: #define CNF_MAX_OPNDEV (16) /* Max open device */ 58: #define CNF_MAX_REQDEV (16) /* Max request device */ 59: #define CNF_DEVT_MBFSZ0 (-1) /* message buffer size for event notification */ 60: #define CNF_DEVT_MBFSZ1 (-1) /* message max size for event notification */ 61: 62: /* Version Number */ 63: #define CNF_VER_MAKER 0 64: #define CNF_VER_PRID 0 65: #define CNF_VER_PRVER 3 66: #define CNF_VER_PRNO1 0 67: #define CNF_VER_PRNO2 0 68: #define CNF_VER_PRNO3 0 69: #define CNF_VER_PRNO4 0 70: 71: 72: /*---------------------------------------------------------------------- */ 73: /* Backwards compatible api support 74: * micro T-Kernel2.0 API support (Rendezvous) 75: */ 76: #define USE_LEGACY_API (0) /* 1: Valid 0: Invalid */ 77: #define CNF_MAX_PORID (0) /* Maximum number of Rendezvous */ 78: 79: 80: /*---------------------------------------------------------------------- */ 81: /* Stack size definition 82: */ 83: #define CNF_EXC_STACK_SIZE (2048) /* Exception stack size */ 84: #define CNF_TMP_STACK_SIZE (256) /* Temporary stack size */ 85: 86: 87: /*---------------------------------------------------------------------- */ 88: /* System function selection 89: 1: Use function. 0: No use function. 90: */ 91: #define USE_NOINIT (0) /* Use zero-clear bss section */ 92: #define USE_IMALLOC (1) /* Use dynamic memory allocation */ 93: #define USE_SHUTDOWN (1) /* Use System shutdown */ 94: #define USE_STATIC_IVT (0) /* Use static interrupt vector table */ 95: 96: 97: /*---------------------------------------------------------------------- */ 98: /* Check API parameter 99: * 1: Check parameter 0: Do not check parameter 100: */ 101: #define CHK_NOSPT (1) /* Check unsupported function (E_NOSPT) */ 102: #define CHK_RSATR (1) /* Check reservation attribute error (E_RSATR) */ 103: #define CHK_PAR (1) /* Check parameter (E_PAR) */ 104: #define CHK_ID (1) /* Check object ID range (E_ID) */ 105: #define CHK_OACV (1) /* Check Object Access Violation (E_OACV) */ 106: #define CHK_CTX (1) /* Check whether task-independent part is running (E_CTX) */ 107: #define CHK_CTX1 (1) /* Check dispatch disable part */ 108: #define CHK_CTX2 (1) /* Check task independent part */ 109: #define CHK_SELF (1) /* Check if its own task is specified (E_OBJ) */ 110: 111: #define CHK_TKERNEL_CONST (1) /* Check const-type parameter */ 112: 113: /*---------------------------------------------------------------------- */ 114: /* User initialization program (UserInit) 115: * 116: */ 117: #define USE_USERINIT (0) /* 1: Use UserInit 0: Do not use UserInit */ 118: #define RI_USERINIT (0) /* UserInit start address */ 119: 120: 121: /*---------------------------------------------------------------------- */ 122: /* Debugger support function 123: * 1: Valid 0: Invalid 124: */ 125: #define USE_DBGSPT (0) /* Use mT-Kernel/DS */ 126: #define USE_OBJECT_NAME (0) /* Use DS object name */ 127: 128: #define OBJECT_NAME_LENGTH (8) /* DS Object name length */ 129: 130: /*---------------------------------------------------------------------- */ 131: /* Use T-Monitor Compatible API Library & Message to terminal. 132: * 1: Valid 0: Invalid 133: */ 134: #define USE_TMONITOR (1) /* T-Monitor API */ 135: #define USE_SYSTEM_MESSAGE (1) /* System Message */ 136: #define USE_EXCEPTION_DBG_MSG (1) /* Excepttion debug message */ 137: #define USE_TASK_DBG_MSG (0) /* Tsak debug message */ 138: 139: /*---------------------------------------------------------------------- */ 140: /* Use Co-Processor. 141: * 1: Valid 0: Invalid 142: */ 143: #define USE_FPU (0) /* Use FPU */ 144: #define USE_DSP (0) /* Use DSP */ 145: 146: /*---------------------------------------------------------------------- */ 147: /* Use Physical timer. 148: * 1: Valid 0: Invalid 149: */ 150: #define USE_PTMR (1) /* Use Physical timer */ 151: 152: /*---------------------------------------------------------------------- */ 153: /* Use Sample device driver. 154: * 1: Valid 0: Invalid 155: */ 156: #define USE_SDEV_DRV (1) /* Use Sample device driver */ 157: 158: /*---------------------------------------------------------------------- */ 159: /* 160: * Use function Definition 161: */ 162: #include "config_func.h" 163: 164: #endif /* __TK_CONFIG__ */