demos_headers/config_TestMinimal.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_TESTMINIMAL_H_
00026 #define CONFIG_TESTMINIMAL_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       cfgFalse
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                      cfgTrue
00045 #define  cfgSysClockDivider                      1
00046 #define  cfgSysSubTicksPerFullTick               32
00047 #define  cfgSysSubTickDivider                    256
00048 #define  cfgSysGCCstartup                        cfgOverride
00049 #define  cfgSysFsStorageSpace                    0
00050 
00051 
00052 /* ========================================================================= */
00053 /* INTERRUPT HANDLING ====================================================== */
00054 /* ========================================================================= */
00055 
00056 #define  cfgIntGlobalOnly                        cfgTrue
00057 #define  cfgIntUserDefined                       cfgFalse
00058 #define  cfgIntSwitchUsesOSstack                 cfgFalse
00059 #define  cfgIntOsProtected                       cfgTrue
00060 #define  cfgIntTickTrack                         cfgFalse
00061 #define  cfgIntManualTicks                       cfgFalse
00062 
00063 
00064 /* ========================================================================= */
00065 /* QUALITY ASSURANCE ======================================================= */
00066 /* ========================================================================= */
00067 
00068 #if (defSysOptimized == cfgTrue)
00069 
00070 #define  cfgCheckSystem                          cfgFalse
00071 #define  cfgCheckReset                           cfgFalse
00072 #define  cfgCheckTrace                           cfgFalse
00073 #define  cfgCheckAlwaysFatal                     cfgFalse
00074 #define  cfgCheckWatermarks                      cfgFalse
00075 #define  cfgCheckOsStack                         cfgFalse
00076 #define  cfgCheckTaskStack                       cfgFalse
00077 #define  cfgCheckIsrStack                        cfgFalse
00078 #define  cfgCheckRegisters                       cfgFalse
00079 #define  cfgCheckTiming                          cfgFalse
00080 #define  cfgCheckQueuFilling                     cfgFalse
00081 #define  cfgCheckMethodUse                       cfgFalse
00082 #define  cfgCheckApplication                     cfgFalse
00083 
00084 #else
00085 
00086 #define  cfgCheckSystem                          cfgTrue
00087 #define  cfgCheckReset                           cfgTrue
00088 #define  cfgCheckTrace                           cfgFalse
00089 #define  cfgCheckAlwaysFatal                     cfgFalse
00090 #define  cfgCheckWatermarks                      cfgFalse
00091 #define  cfgCheckOsStack                         cfgTrue
00092 #define  cfgCheckTaskStack                       cfgTrue
00093 #define  cfgCheckIsrStack                        cfgFalse
00094 #define  cfgCheckRegisters                       cfgTrue
00095 #define  cfgCheckTiming                          cfgTrue
00096 #define  cfgCheckQueuFilling                     cfgFalse
00097 #define  cfgCheckMethodUse                       cfgTrue
00098 #define  cfgCheckApplication                     cfgFalse
00099 
00100 
00101 #endif
00102 
00103 
00104 /* ========================================================================= */
00105 /* COMMON CAPABILITIES ===================================================== */
00106 /* ========================================================================= */
00107 
00108 #define  cfgUseEquidistantTicks                  cfgTrue
00109 #define  cfgUseDelay                             cfgFalse
00110 #define  cfgUseSynchronization                   cfgSyncNon
00111 #define  cfgUseHierarchicalRoundRobin            cfgFalse
00112 #define  cfgUseNestedCriticals                   cfgFalse
00113 #define  cfgUsePrioritizedRelease                cfgFalse
00114 #define  cfgUsePriorityLifting                   cfgFalse
00115 #define  cfgUseTaskWatchdog                      cfgFalse
00116 #define  cfgUseCorrectWakeupTimes                cfgFalse
00117 #define  cfgUseTimeout                           cfgFalse
00118 #define  cfgUseTasknames                         cfgFalse
00119 #define  cfgUseLowPowerSleep                     cfgFalse
00120 #define  cfgUseLowPowerOnDelay                   cfgFalse
00121 #define  cfgUseLowPowerDelayRelease              cfgFalse
00122 #define  cfgUseLoadMonitor                       cfgFalse
00123 #define  cfgUseFileSystem                        cfgFalse
00124 #define  cfgUseFileSystemConcurrentRead          cfgFalse
00125 #define  cfgUseFileSystemEconomyMode             cfgFalse
00126 #define  cfgUseFileSystemMaintainFAT             cfgFalse
00127 #define  cfgUseEvents                            cfgFalse
00128 #define  cfgUseEventsOnVariables                 cfgFalse
00129 
00130 
00131 /* ========================================================================= */
00132 /* CODE PARAMETERS ========================================================= */
00133 /* ========================================================================= */
00134 
00135 #define  cfgNumWatchdogDiv                       0
00136 #define  cfgNumMonitorDiv                        0
00137 #define  cfgNumSleepPeriod                       0
00138 #define  cfgNumSleepThreshold                    0
00139 #define  cfgNumGlobWidth                         0
00140 #define  cfgNumSwitchWidth                       0
00141 #define  cfgNumTickWidth                         0
00142 
00143 
00144 /* ========================================================================= */
00145 /* EXTERNAL CALLS ========================================================== */
00146 /* ========================================================================= */
00147 
00148 #define  callAppTick00                           cfgFalse
00149 #define  callAppTick08                           cfgFalse
00150 #define  callAppTick16                           cfgFalse
00151 #define  callAppTickSleep                        cfgFalse
00152 #define  callAppEnterIdle                        cfgFalse
00153 #define  callAppEnterSleep                       cfgFalse
00154 #define  callAppExitSleep                        cfgFalse
00155 #define  callAppBoot                             cfgFalse
00156 #define  callAppInit                             cfgFalse
00157 #define  callAppBark                             cfgFalse
00158 
00159 
00160 /* ========================================================================= */
00161 /* API INCLUSIONS ========================================================== */
00162 /* ========================================================================= */
00163 
00164 
00165 /* Standard functions ------------------------------------------------------ */
00166 #define  includeTaskYield                        cfgFalse
00167 #define  includeTaskDelayFromNow                 cfgFalse
00168 #define  includeTaskDelayFromWake                cfgFalse
00169 #define  includeGenSuspend                       cfgFalse
00170 #define  includeTaskSuspend                      cfgFalse
00171 #define  includeGenResume                        cfgFalse
00172 #define  includeTaskSleep                        cfgFalse
00173 #define  includeTaskSleepAll                     cfgFalse
00174 #define  includeGenSetPriority                   cfgFalse
00175 #define  includeGenGetPriority                   cfgFalse
00176 #define  includeGenGetTickCount                  cfgFalse
00177 #define  includeGenAddtoTickCount                cfgFalse
00178 #define  includeGenGetLastWakeTime               cfgFalse
00179 #define  includeTaskFeedWatchdog                 cfgFalse
00180 #define  includeTaskKillWatchdog                 cfgFalse
00181 #define  includeGenGetTaskname                   cfgFalse
00182 #define  includeTaskTerminate                    cfgFalse
00183 #define  includeGenReboot                        cfgFalse
00184 #define  includeTaskRecreate                     cfgFalse
00185 #define  includeTaskRestart                      cfgFalse
00186 #define  includeGenLogTask                       cfgFalse
00187 #define  includeGenLogOs                         cfgFalse
00188 #define  includeGenTrace                         cfgFalse
00189 #define  includeGenPipeInt16                     cfgFalse
00190 #define  includeGenPassFlashString               cfgFalse
00191 
00192 /* Event functions --------------------------------------------------------- */
00193 #define  includeTaskWaitForEvents                cfgFalse
00194 #define  includeIsrFireEvent                     cfgFalse
00195 #define  includeGenFireEvent                     cfgFalse
00196 #define  includeGenFireEventSet                  cfgFalse
00197 #define  includeGenCountEventBlocks              cfgFalse
00198 
00199 /* Synchronization functions ----------------------------------------------- */
00200 #define  includeTaskWaitForTasks                 cfgFalse
00201 #define  includeGenWaitRelease                   cfgFalse
00202 #define  includeTaskMutex                        cfgFalse
00203 #define  includeTaskQueu                         cfgFalse
00204 
00205 /* Queu functions --------------------------------------------------------- */
00206 #define  includeGenQueuWrite                     cfgFalse
00207 #define  includeGenQueuRead                      cfgFalse
00208 #define  includeGenQueuClear                     cfgFalse
00209 #define  includeGenQueuPeek                      cfgFalse
00210 #define  includeGenQueuReadable                  cfgFalse
00211 #define  includeGenQueuWriteable                 cfgFalse
00212 #define  includeGenQueuFull                      cfgFalse
00213 #define  includeGenQueuEmpty                     cfgFalse
00214 
00215 /* File System functions --------------------------------------------------- */
00216 #define  includeTaskFileAccess                   cfgFalse
00217 #define  includeTaskFileFormat                   cfgFalse
00218 #define  includeTaskFileGetSize                  cfgFalse
00219 #define  includeTaskFileSetSize                  cfgFalse
00220 #define  includeTaskFileReadByte                 cfgFalse
00221 #define  includeTaskFileWriteByte                cfgFalse
00222 #define  includeTaskFileAppendByte               cfgFalse
00223 #define  includeTaskFileReadPipe                 cfgFalse
00224 #define  includeTaskFileWritePipe                cfgFalse
00225 #define  includeTaskFileReadBuffer               cfgFalse
00226 #define  includeTaskFileWriteBuffer              cfgFalse
00227 
00228 /* Protection functions ---------------------------------------------------- */
00229 #define  includeTaskProtectGlobalInterrupts      cfgFalse
00230 #define  includeTaskProtectSwitchTasks           cfgFalse
00231 #define  includeTaskProtectTickInterrupts        cfgFalse
00232 #define  includeTaskProtectGlobalCritical        cfgFalse
00233 #define  includeTaskProtectSwitchCritical        cfgFalse
00234 #define  includeTaskProtectTickCritical          cfgFalse
00235 
00236 /* ISR header/footer functions --------------------------------------------- */
00237 #define  includeIsrEnter                         cfgFalse
00238 #define  includeIsrExit                          cfgFalse
00239 #define  includeIsrBegin                         cfgFalse
00240 #define  includeIsrEndReturn                     cfgFalse
00241 #define  includeIsrEndYield                      cfgFalse
00242 #define  includeIsrStartLoad                     cfgFalse
00243 #define  includeIsrStopLoad                      cfgFalse
00244 
00245 /* quality assurance functions --------------------------------------------- */
00246 #define  includeTaskStackCheck                   cfgFalse
00247 #define  includeIsrStackCheck                    cfgFalse
00248 
00249 
00250 /* ========================================================================= */
00251 /* TASK NAMES ============================================================== */
00252 /* ========================================================================= */
00253 
00254 #define  CN_00                                   LEDtask
00255 #define  CN_01                                   SWITCHtask
00256 
00257 
00258 /* ========================================================================= */
00259 /* INCLUDE TASKS =========================================================== */
00260 /* ========================================================================= */
00261 
00262 #define  TaskInclude_LEDtask                     cfgStartRunning
00263 #define  TaskInclude_SWITCHtask                  cfgStartRunning
00264 
00265 
00266 /* ========================================================================= */
00267 /* TASK CAPABILITIES ======================================================= */
00268 /* ========================================================================= */
00269 
00270 #define  Capabilities_LEDtask                    cfgCapNon
00271 #define  Capabilities_SWITCHtask                 cfgCapNon
00272 
00273 
00274 /* ========================================================================= */
00275 /* STACK SIZES ============================================================= */
00276 /* ========================================================================= */
00277 
00278 #if (defSysOptimized == cfgTrue)
00279 
00280 #define  StackSafety                             0
00281 #define  StackSizeOS                             7 + 8*defThreeByteStackAdd
00282 #define  StackSizeISR                            0
00283 #define  StackSizeShared                         0
00284 #define  StackSize_LEDtask                       7 + 2*defThreeByteStackAdd
00285 #define  StackSize_SWITCHtask                    7 + 2*defThreeByteStackAdd
00286 
00287 
00288 #else
00289 
00290 #define  StackSafety                             0
00291 #define  StackSizeOS                             20  + 8*defThreeByteStackAdd
00292 #define  StackSizeISR                            0
00293 #define  StackSizeShared                         0
00294 #define  StackSize_LEDtask                       24  + 2*defThreeByteStackAdd
00295 #define  StackSize_SWITCHtask                    24  + 2*defThreeByteStackAdd
00296 
00297 #endif
00298 
00299 
00300 /* ========================================================================= */
00301 /* TIMES SLICES ============================================================ */
00302 /* ========================================================================= */
00303 
00304 #define  TimeSliceIdleTime                       cfgSysSubTicksPerFullTick
00305 
00306 
00307 /* ========================================================================= */
00308 /* RUNTIME TASK NAMES ====================================================== */
00309 /* ========================================================================= */
00310 
00311 
00312 /* ========================================================================= */
00313 /* TASK PRIORITIES ========================================================= */
00314 /* ========================================================================= */
00315 
00316 #define  Priority_LEDtask                        0
00317 #define  Priority_SWITCHtask                     0
00318 
00319 
00320 /* ========================================================================= */
00321 /* REGISTER USE ============================================================ */
00322 /* ========================================================================= */
00323 
00324 #if (defSysOptimized == cfgTrue)
00325 
00326 #define  RegisterUse_LEDtask                     r24r25r26r27
00327 #define  RegisterUse_SWITCHtask                  r24r25r26r27
00328 
00329 #else
00330 
00331 #define  RegisterUse_LEDtask                     r16_upto_r31
00332 #define  RegisterUse_SWITCHtask                  r16_upto_r31
00333 
00334 #endif
00335 
00336 
00337 /* ========================================================================= */
00338 /* REGISTER CHECK ========================================================== */
00339 /* ========================================================================= */
00340 
00341 #define  RegisterCheck_LEDtask                   registersAll
00342 #define  RegisterCheck_SWITCHtask                registersAll
00343 
00344 
00345 /* ========================================================================= */
00346 /* INTERRUPT SETTING ======================================================= */
00347 /* ========================================================================= */
00348 
00349 #define  InterruptStartOverride                  cfgGlobSet | cfgTickSet
00350 
00351 
00352 /* ========================================================================= */
00353 /* EVENT NAMES ============================================================= */
00354 /* ========================================================================= */
00355 
00356 
00357 /* ========================================================================= */
00358 /* SLOT NAMES ============================================================== */
00359 /* ========================================================================= */
00360 
00361 
00362 /* ========================================================================= */
00363 /* SLOT SIZES ============================================================== */
00364 /* ========================================================================= */
00365 
00366 
00367 /* ========================================================================= */
00368 /* SLOT USAGE ============================================================== */
00369 /* ========================================================================= */
00370 
00371 
00372 /* ========================================================================= */
00373 /* QUEU SIZES ============================================================== */
00374 /* ========================================================================= */
00375 
00376 
00377 /* ========================================================================= */
00378 /* FILE NAMES ============================================================== */
00379 /* ========================================================================= */
00380 
00381 
00382 /* ========================================================================= */
00383 /* FILE SIZES ============================================================== */
00384 /* ========================================================================= */
00385 
00386 #define  FileSpaceStandard                       0
00387 
00388 
00389 
00390 #endif /*CONFIG_TESTMINIMAL_H_*/

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