demos_headers/config_TestShell.h

Go to the documentation of this file.
00001 /*
00002  * Femto OS v 0.91 - Copyright (C) 2008-2009 Ruud Vlaming
00003  *
00004  * This file is part of the Femto OS distribution.
00005  *
00006  * This program is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, version 3 of the License.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  *
00018  * Please note that, due to the GPLv3 license, for application of this
00019  * work and/or combined work in embedded systems special obligations apply.
00020  * If these are not to you liking, please know the Femto OS is dual
00021  * licensed. A commercial license and support are available.
00022  * See http://www.femtoos.org/ for details.
00023  */
00024 
00025 #ifndef CONFIG_SHELL_H_
00026 #define CONFIG_SHELL_H_
00027 
00028 /* Comments are in the config default file */
00029 
00030 /* ========================================================================= */
00031 /* SYSTEM CONFIGURATION ==================================================== */
00032 /* ========================================================================= */
00033 
00034 #define  cfgSysOptimized                         cfgFalse
00035 #define  cfgSysDebug                             cfgFalse
00036 #define  cfgSysInline                            cfgFalse
00037 #define  cfgSysFramePointerCounterMeasures       cfgTrue
00038 #define  cfgSysReduceProEpilogue                 cfgBikini
00039 #define  cfgSysRegisterCheckByte                 0xA5
00040 #define  cfgSysStackGrowthUp                     cfgFalse
00041 #define  cfgSysZeroPageStack                     cfgFalse
00042 #define  cfgSysClearUnusedR1                     cfgTrue
00043 #define  cfgSysSqueezeState                      defSysOptimized
00044 #define  cfgSysReuseOsStack                      cfgFalse
00045 #define  cfgSysClockDivider                      1
00046 #define  cfgSysSubTicksPerFullTick               32
00047 #define  cfgSysSubTickDivider                    256
00048 #define  cfgSysGCCstartup                        cfgOverride
00049 #define  cfgSysFsStorageSpace                    512
00050 
00051 
00052 /* ========================================================================= */
00053 /* INTERRUPT HANDLING ====================================================== */
00054 /* ========================================================================= */
00055 
00056 #define  cfgIntGlobalOnly                        cfgTrue
00057 #define  cfgIntUserDefined                       cfgTrue
00058 #define  cfgIntSwitchUsesOSstack                 cfgTrue
00059 #define  cfgIntOsProtected                       cfgTrue
00060 #define  cfgIntTickTrack                         cfgFalse
00061 #define  cfgIntManualTicks                       cfgFalse
00062 
00063 
00064 /* ========================================================================= */
00065 /* QUALITY ASSURANCE ======================================================= */
00066 /* ========================================================================= */
00067 
00068 #define  cfgCheckSystem                          cfgFalse
00069 #define  cfgCheckReset                           cfgTrue
00070 #define  cfgCheckTrace                           cfgFalse
00071 #define  cfgCheckAlwaysFatal                     cfgFalse
00072 #define  cfgCheckWatermarks                      cfgTrue
00073 #define  cfgCheckOsStack                         cfgTrue
00074 #define  cfgCheckTaskStack                       cfgTrue
00075 #define  cfgCheckIsrStack                        cfgFalse
00076 #define  cfgCheckRegisters                       cfgTrue
00077 #define  cfgCheckTiming                          cfgFalse
00078 #define  cfgCheckQueuFilling                     cfgTrue
00079 #define  cfgCheckMethodUse                       cfgFalse
00080 #define  cfgCheckApplication                     cfgFalse
00081 
00082 
00083 /* ========================================================================= */
00084 /* COMMON CAPABILITIES ===================================================== */
00085 /* ========================================================================= */
00086 
00087 #define  cfgUseEquidistantTicks                  cfgTrue
00088 #define  cfgUseDelay                             cfgTrue
00089 #define  cfgUseSynchronization                   cfgSyncSingleSlot
00090 #define  cfgUseHierarchicalRoundRobin            cfgFalse
00091 #define  cfgUseNestedCriticals                   cfgFalse
00092 #define  cfgUsePrioritizedRelease                cfgFalse
00093 #define  cfgUsePriorityLifting                   cfgFalse
00094 #define  cfgUseTaskWatchdog                      cfgTrue
00095 #define  cfgUseCorrectWakeupTimes                cfgFalse
00096 #define  cfgUseTimeout                           cfgFalse
00097 #define  cfgUseTasknames                         cfgTrue
00098 #define  cfgUseLowPowerSleep                     cfgFalse
00099 #define  cfgUseLowPowerOnDelay                   cfgFalse
00100 #define  cfgUseLowPowerDelayRelease              cfgFalse
00101 #define  cfgUseLoadMonitor                       cfgTrue
00102 #define  cfgUseFileSystem                        cfgTrue
00103 #define  cfgUseFileSystemConcurrentRead          cfgFalse
00104 #define  cfgUseFileSystemEconomyMode             cfgFalse
00105 #define  cfgUseFileSystemMaintainFAT             cfgTrue
00106 #define  cfgUseEvents                            cfgFalse
00107 #define  cfgUseEventsOnVariables                 cfgFalse
00108 
00109 
00110 /* ========================================================================= */
00111 /* CODE PARAMETERS ========================================================= */
00112 /* ========================================================================= */
00113 
00114 #define  cfgNumWatchdogDiv                       3
00115 #define  cfgNumMonitorDiv                        3
00116 #define  cfgNumSleepPeriod                       0
00117 #define  cfgNumSleepThreshold                    0
00118 #define  cfgNumGlobWidth                         2
00119 #define  cfgNumSwitchWidth                       0
00120 #define  cfgNumTickWidth                         0
00121 
00122 
00123 /* ========================================================================= */
00124 /* EXTERNAL CALLS ========================================================== */
00125 /* ========================================================================= */
00126 
00127 #define  callAppTick00                           cfgFalse
00128 #define  callAppTick08                           cfgFalse
00129 #define  callAppTick16                           cfgTrue
00130 #define  callAppTickSleep                        cfgFalse
00131 #define  callAppEnterIdle                        cfgFalse
00132 #define  callAppEnterSleep                       cfgFalse
00133 #define  callAppExitSleep                        cfgFalse
00134 #define  callAppBoot                             cfgTrue
00135 #define  callAppInit                             cfgFalse
00136 #define  callAppBark                             cfgFalse
00137 
00138 
00139 /* ========================================================================= */
00140 /* API INCLUSIONS ========================================================== */
00141 /* ========================================================================= */
00142 
00143 /* Standard functions ------------------------------------------------------ */
00144 #define  includeTaskYield                        cfgFalse
00145 #define  includeTaskDelayFromNow                 cfgTrue
00146 #define  includeTaskDelayFromWake                cfgFalse
00147 #define  includeGenSuspend                       cfgTrue
00148 #define  includeTaskSuspend                      cfgTrue
00149 #define  includeGenResume                        cfgTrue
00150 #define  includeTaskSleep                        cfgFalse
00151 #define  includeTaskSleepAll                     cfgFalse
00152 #define  includeGenSetPriority                   cfgTrue
00153 #define  includeGenGetPriority                   cfgFalse
00154 #define  includeGenGetTickCount                  cfgTrue
00155 #define  includeGenAddtoTickCount                cfgFalse
00156 #define  includeGenGetLastWakeTime               cfgFalse
00157 #define  includeTaskFeedWatchdog                 cfgTrue
00158 #define  includeTaskKillWatchdog                 cfgFalse
00159 #define  includeGenGetTaskname                   cfgFalse
00160 #define  includeTaskTerminate                    cfgTrue
00161 #define  includeGenReboot                        cfgTrue
00162 #define  includeTaskRecreate                     cfgTrue
00163 #define  includeTaskRestart                      cfgTrue
00164 #define  includeGenLogTask                       cfgTrue
00165 #define  includeGenLogOs                         cfgTrue
00166 #define  includeGenTrace                         cfgFalse
00167 #define  includeGenPipeInt16                     cfgTrue
00168 #define  includeGenPassFlashString               cfgTrue
00169 
00170 /* Event functions --------------------------------------------------------- */
00171 #define  includeTaskWaitForEvents                cfgFalse
00172 #define  includeIsrFireEvent                     cfgFalse
00173 #define  includeGenFireEvent                     cfgFalse
00174 #define  includeGenFireEventSet                  cfgFalse
00175 #define  includeGenCountEventBlocks              cfgFalse
00176 
00177 /* Synchronization functions ----------------------------------------------- */
00178 #define  includeTaskWaitForTasks                 cfgFalse
00179 #define  includeGenWaitRelease                   cfgFalse
00180 #define  includeTaskMutex                        cfgFalse
00181 #define  includeTaskQueu                         cfgTrue
00182 
00183 /* Queu functions --------------------------------------------------------- */
00184 #define  includeGenQueuWrite                     cfgTrue
00185 #define  includeGenQueuRead                      cfgTrue
00186 #define  includeGenQueuClear                     cfgTrue
00187 #define  includeGenQueuPeek                      cfgFalse
00188 #define  includeGenQueuReadable                  cfgTrue
00189 #define  includeGenQueuWriteable                 cfgFalse
00190 #define  includeGenQueuFull                      cfgFalse
00191 #define  includeGenQueuEmpty                     cfgTrue
00192 
00193 /* File System functions --------------------------------------------------- */
00194 #define  includeTaskFileAccess                   cfgTrue
00195 #define  includeTaskFileFormat                   cfgFalse
00196 #define  includeTaskFileGetSize                  cfgTrue
00197 #define  includeTaskFileSetSize                  cfgFalse
00198 #define  includeTaskFileReadByte                 cfgFalse
00199 #define  includeTaskFileWriteByte                cfgFalse
00200 #define  includeTaskFileAppendByte               cfgFalse
00201 #define  includeTaskFileReadPipe                 cfgTrue
00202 #define  includeTaskFileWritePipe                cfgTrue
00203 #define  includeTaskFileReadBuffer               cfgTrue
00204 #define  includeTaskFileWriteBuffer              cfgTrue
00205 
00206 /* Protection functions ---------------------------------------------------- */
00207 #define  includeTaskProtectGlobalInterrupts      cfgFalse
00208 #define  includeTaskProtectSwitchTasks           cfgFalse
00209 #define  includeTaskProtectTickInterrupts        cfgFalse
00210 #define  includeTaskProtectGlobalCritical        cfgTrue
00211 #define  includeTaskProtectSwitchCritical        cfgFalse
00212 #define  includeTaskProtectTickCritical          cfgFalse
00213 
00214 /* ISR header/footer functions --------------------------------------------- */
00215 #define  includeIsrEnter                         cfgTrue
00216 #define  includeIsrExit                          cfgTrue
00217 #define  includeIsrBegin                         cfgFalse
00218 #define  includeIsrEndReturn                     cfgFalse
00219 #define  includeIsrEndYield                      cfgFalse
00220 #define  includeIsrStartLoad                     cfgFalse
00221 #define  includeIsrStopLoad                      cfgFalse
00222 
00223 /* Quality assurance functions --------------------------------------------- */
00224 #define  includeTaskStackCheck                   cfgTrue
00225 #define  includeIsrStackCheck                    cfgFalse
00226 
00227 
00228 /* ========================================================================= */
00229 /* TASK NAMES ============================================================== */
00230 /* ========================================================================= */
00231 
00232 #define  CN_00                                   LEDtask0
00233 #define  CN_01                                   LEDtask1
00234 #define  CN_02                                   LEDtask2
00235 #define  CN_03                                   LEDtask3
00236 #define  CN_04                                   LEDtask4
00237 #define  CN_05                                   LEDtask5
00238 #define  CN_06                                   LEDtask6
00239 #define  CN_07                                   LEDtask7
00240 #define  CN_08                                   T4Bus
00241 #define  CN_09                                   Shell
00242 
00243 
00244 /* ========================================================================= */
00245 /* INCLUDE TASKS =========================================================== */
00246 /* ========================================================================= */
00247 
00248 #define  TaskInclude_LEDtask0                    cfgStartRunning
00249 #define  TaskInclude_LEDtask1                    cfgStartRunning
00250 #define  TaskInclude_LEDtask2                    cfgStartRunning
00251 #define  TaskInclude_LEDtask3                    cfgStartRunning
00252 #define  TaskInclude_LEDtask4                    cfgStartRunning
00253 #define  TaskInclude_LEDtask5                    cfgStartRunning
00254 #define  TaskInclude_LEDtask6                    cfgStartRunning
00255 #define  TaskInclude_LEDtask7                    cfgStartRunning
00256 #define  TaskInclude_T4Bus                       cfgStartRunning
00257 #define  TaskInclude_Shell                       cfgStartRunning
00258 
00259 
00260 /* ========================================================================= */
00261 /* TASK CAPABILITIES ======================================================= */
00262 /* ========================================================================= */
00263 
00264 #define  Capabilities_LEDtask0                   cfgCapDelay | cfgCapCritical
00265 #define  Capabilities_LEDtask1                   cfgCapDelay | cfgCapCritical
00266 #define  Capabilities_LEDtask2                   cfgCapDelay | cfgCapCritical
00267 #define  Capabilities_LEDtask3                   cfgCapDelay | cfgCapCritical
00268 #define  Capabilities_LEDtask4                   cfgCapDelay | cfgCapCritical
00269 #define  Capabilities_LEDtask5                   cfgCapDelay | cfgCapCritical
00270 #define  Capabilities_LEDtask6                   cfgCapDelay | cfgCapCritical
00271 #define  Capabilities_LEDtask7                   cfgCapDelay | cfgCapCritical
00272 #define  Capabilities_T4Bus                      cfgCapDelay | cfgCapWatchdog | cfgCapSynchronization
00273 #define  Capabilities_Shell                      cfgCapDelay | cfgCapSynchronization | cfgCapFileSystem
00274 
00275 
00276 /* ========================================================================= */
00277 /* STACK SIZES ============================================================= */
00278 /* ========================================================================= */
00279 
00280 #define  StackSafety                             0
00281 #define  StackSizeOS                             32
00282 #define  StackSizeISR                            0
00283 #define  StackSizeShared                         21
00284 #define  StackSize_LEDtask0                      21
00285 #define  StackSize_LEDtask1                      cfgShared
00286 #define  StackSize_LEDtask2                      cfgShared
00287 #define  StackSize_LEDtask3                      cfgShared
00288 #define  StackSize_LEDtask4                      cfgShared
00289 #define  StackSize_LEDtask5                      cfgShared
00290 #define  StackSize_LEDtask6                      cfgShared
00291 #define  StackSize_LEDtask7                      cfgShared
00292 #define  StackSize_T4Bus                         32
00293 #define  StackSize_Shell                         70
00294 
00295 
00296 /* ========================================================================= */
00297 /* TIMES SLICES ============================================================ */
00298 /* ========================================================================= */
00299 
00300 #define  TimeSliceIdleTime                       cfgSysSubTicksPerFullTick
00301 #define  TimeSliceOverride                       cfgSysSubTicksPerFullTick
00302 
00303 
00304 /* ========================================================================= */
00305 /* RUNTIME TASK NAMES ====================================================== */
00306 /* ========================================================================= */
00307 
00308 #define  TaskName_LEDtask0                       "LED 0"
00309 #define  TaskName_LEDtask1                       "LED 1"
00310 #define  TaskName_LEDtask2                       "LED 2"
00311 #define  TaskName_LEDtask3                       "LED 3"
00312 #define  TaskName_LEDtask4                       "LED 4"
00313 #define  TaskName_LEDtask5                       "LED 5"
00314 #define  TaskName_LEDtask6                       "LED 6"
00315 #define  TaskName_LEDtask7                       "LED 7"
00316 #define  TaskName_T4Bus                          "T4 Bus"
00317 #define  TaskName_Shell                          "Shell"
00318 
00319 
00320 /* ========================================================================= */
00321 /* TASK PRIORITIES ========================================================= */
00322 /* ========================================================================= */
00323 
00324 #define  Priority_LEDtask0                       4
00325 #define  Priority_LEDtask1                       2
00326 #define  Priority_LEDtask2                       2
00327 #define  Priority_LEDtask3                       2
00328 #define  Priority_LEDtask4                       2
00329 #define  Priority_LEDtask5                       2
00330 #define  Priority_LEDtask6                       2
00331 #define  Priority_LEDtask7                       2
00332 #define  Priority_T4Bus                          3
00333 #define  Priority_Shell                          3
00334 
00335 
00336 /* ========================================================================= */
00337 /* REGISTER USE ============================================================ */
00338 /* ========================================================================= */
00339 
00340 #define  RegisterUse_LEDtask0                    r16_upto_r31
00341 #define  RegisterUse_LEDtask1                    r16_upto_r31
00342 #define  RegisterUse_LEDtask2                    r16_upto_r31
00343 #define  RegisterUse_LEDtask3                    r16_upto_r31
00344 #define  RegisterUse_LEDtask4                    r16_upto_r31
00345 #define  RegisterUse_LEDtask5                    r16_upto_r31
00346 #define  RegisterUse_LEDtask6                    r16_upto_r31
00347 #define  RegisterUse_LEDtask7                    r16_upto_r31
00348 #define  RegisterUse_T4Bus                       r16_upto_r31
00349 #define  RegisterUse_Shell                       registersAll
00350 
00351 
00352 /* ========================================================================= */
00353 /* REGISTER CHECK ========================================================== */
00354 /* ========================================================================= */
00355 
00356 #define  RegisterCheck_LEDtask0                  registersAll
00357 #define  RegisterCheck_LEDtask1                  registersAll
00358 #define  RegisterCheck_LEDtask2                  registersAll
00359 #define  RegisterCheck_LEDtask3                  registersAll
00360 #define  RegisterCheck_LEDtask4                  registersAll
00361 #define  RegisterCheck_LEDtask5                  registersAll
00362 #define  RegisterCheck_LEDtask6                  registersAll
00363 #define  RegisterCheck_LEDtask7                  registersAll
00364 #define  RegisterCheck_T4Bus                     registersAll & (~r12r13r14r15)
00365 #define  RegisterCheck_Shell                     registersAll
00366 
00367 
00368 /* ========================================================================= */
00369 /* INTERRUPT SETTING ======================================================= */
00370 /* ========================================================================= */
00371 
00372 #define  InterruptStartOverride                  cfgGlobSet | cfgTickSet
00373 #define  InterruptStart_LEDtask0                 cfgGlobSet | cfgTickSet
00374 #define  InterruptStart_LEDtask1                 cfgGlobSet | cfgTickClear
00375 #define  InterruptStart_LEDtask2                 cfgGlobSet | cfgTickClear
00376 #define  InterruptStart_LEDtask3                 cfgGlobSet | cfgTickClear
00377 #define  InterruptStart_LEDtask4                 cfgGlobSet | cfgTickClear
00378 #define  InterruptStart_LEDtask5                 cfgGlobSet | cfgTickClear
00379 #define  InterruptStart_LEDtask6                 cfgGlobSet | cfgTickClear
00380 #define  InterruptStart_LEDtask7                 cfgGlobSet | cfgTickClear
00381 #define  InterruptStart_T4Bus                    cfgGlobSet | cfgTickSet
00382 #define  InterruptStart_Shell                    cfgGlobSet | cfgTickSet
00383 
00384 
00385 /* ========================================================================= */
00386 /* EVENT NAMES ============================================================= */
00387 /* ========================================================================= */
00388 
00389 
00390 /* ========================================================================= */
00391 /* SLOT NAMES ============================================================== */
00392 /* ========================================================================= */
00393 
00394 #define  SN_01                                   WriteQueuT4
00395 #define  SN_02                                   ReadQueuT4
00396 
00397 
00398 /* ========================================================================= */
00399 /* SLOT SIZES ============================================================== */
00400 /* ========================================================================= */
00401 
00402 #define  SlotSize_LEDtask0                       0
00403 #define  SlotSize_LEDtask1                       0
00404 #define  SlotSize_LEDtask2                       0
00405 #define  SlotSize_LEDtask3                       0
00406 #define  SlotSize_LEDtask4                       0
00407 #define  SlotSize_LEDtask5                       0
00408 #define  SlotSize_LEDtask6                       0
00409 #define  SlotSize_LEDtask7                       0
00410 #define  SlotSize_T4Bus                          1
00411 #define  SlotSize_Shell                          1
00412 
00413 
00414 /* ========================================================================= */
00415 /* SLOT USAGE ============================================================== */
00416 /* ========================================================================= */
00417 
00418 #define  SlotUse_WriteQueuT4                     cfgUseAsQueu
00419 #define  SlotUse_ReadQueuT4                      cfgUseAsQueu
00420 
00421 
00422 /* ========================================================================= */
00423 /* QUEU SIZES ============================================================== */
00424 /* ========================================================================= */
00425 
00426 #define  QueuSize_WriteQueuT4                    24
00427 #define  QueuSize_ReadQueuT4                     20
00428 
00429 
00430 /* ========================================================================= */
00431 /* FILE NAMES ============================================================== */
00432 /* ========================================================================= */
00433 
00434 #define  FN_00                                   state0
00435 #define  FN_01                                   state1
00436 #define  FN_02                                   state2
00437 #define  FN_03                                   state3
00438 
00439 
00440 /* ========================================================================= */
00441 /* FILE SIZES ============================================================== */
00442 /* ========================================================================= */
00443 
00444 #define  FileSpaceStandard                       16
00445 #define  FileSpace_state0                        24
00446 #define  FileSpace_state1                        24
00447 #define  FileSpace_state2                        24
00448 #define  FileSpace_state3                        24
00449 
00450 #endif /*CONFIG_SHELL_H_*/

Generated on Fri Oct 16 00:05:21 2009 for FemtoOS by  doxygen 1.5.2