demos_headers/config_TestRemember.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_TESTFLASHNLEDS_H_
00026 #define CONFIG_TESTFLASHNLEDS_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                    512
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 #endif
00101 
00102 
00103 /* ========================================================================= */
00104 /* COMMON CAPABILITIES ===================================================== */
00105 /* ========================================================================= */
00106 
00107 #define  cfgUseEquidistantTicks                  cfgTrue
00108 #define  cfgUseDelay                             cfgTrue
00109 #define  cfgUseSynchronization                   cfgSyncNon
00110 #define  cfgUseHierarchicalRoundRobin            cfgFalse
00111 #define  cfgUseNestedCriticals                   cfgFalse
00112 #define  cfgUsePrioritizedRelease                cfgFalse
00113 #define  cfgUsePriorityLifting                   cfgFalse
00114 #define  cfgUseTaskWatchdog                      cfgFalse
00115 #define  cfgUseCorrectWakeupTimes                cfgFalse
00116 #define  cfgUseTimeout                           cfgFalse
00117 #define  cfgUseTasknames                         cfgFalse
00118 #define  cfgUseLowPowerSleep                     cfgFalse
00119 #define  cfgUseLowPowerOnDelay                   cfgFalse
00120 #define  cfgUseLowPowerDelayRelease              cfgFalse
00121 #define  cfgUseLoadMonitor                       cfgFalse
00122 #define  cfgUseFileSystem                        cfgTrue
00123 #define  cfgUseFileSystemConcurrentRead          cfgTrue
00124 #define  cfgUseFileSystemEconomyMode             cfgFalse
00125 #define  cfgUseFileSystemMaintainFAT             cfgTrue
00126 #define  cfgUseEvents                            cfgTrue
00127 #define  cfgUseEventsOnVariables                 cfgFalse
00128 
00129 
00130 /* ========================================================================= */
00131 /* CODE PARAMETERS ========================================================= */
00132 /* ========================================================================= */
00133 
00134 #define  cfgNumWatchdogDiv                       0
00135 #define  cfgNumMonitorDiv                        0
00136 #define  cfgNumSleepPeriod                       0
00137 #define  cfgNumSleepThreshold                    0
00138 #define  cfgNumGlobWidth                         0
00139 #define  cfgNumSwitchWidth                       0
00140 #define  cfgNumTickWidth                         0
00141 
00142 
00143 /* ========================================================================= */
00144 /* EXTERNAL CALLS ========================================================== */
00145 /* ========================================================================= */
00146 
00147 #define  callAppTick00                           cfgFalse
00148 #define  callAppTick08                           cfgFalse
00149 #define  callAppTick16                           cfgFalse
00150 #define  callAppTickSleep                        cfgFalse
00151 #define  callAppEnterIdle                        cfgFalse
00152 #define  callAppEnterSleep                       cfgFalse
00153 #define  callAppExitSleep                        cfgFalse
00154 #define  callAppBoot                             cfgTrue
00155 #define  callAppInit                             cfgFalse
00156 #define  callAppBark                             cfgFalse
00157 
00158 
00159 /* ========================================================================= */
00160 /* API INCLUSIONS ========================================================== */
00161 /* ========================================================================= */
00162 
00163 /* Standard functions ------------------------------------------------------ */
00164 #define  includeTaskYield                        cfgFalse
00165 #define  includeTaskDelayFromNow                 cfgTrue
00166 #define  includeTaskDelayFromWake                cfgFalse
00167 #define  includeGenSuspend                       cfgTrue
00168 #define  includeTaskSuspend                      cfgFalse
00169 #define  includeGenResume                        cfgTrue
00170 #define  includeTaskSleep                        cfgFalse
00171 #define  includeTaskSleepAll                     cfgFalse
00172 #define  includeGenSetPriority                   cfgFalse
00173 #define  includeGenGetPriority                   cfgFalse
00174 #define  includeGenGetTickCount                  cfgFalse
00175 #define  includeGenAddtoTickCount                cfgFalse
00176 #define  includeGenGetLastWakeTime               cfgFalse
00177 #define  includeTaskFeedWatchdog                 cfgFalse
00178 #define  includeTaskKillWatchdog                 cfgFalse
00179 #define  includeGenGetTaskname                   cfgFalse
00180 #define  includeTaskTerminate                    cfgFalse
00181 #define  includeGenReboot                        cfgFalse
00182 #define  includeTaskRecreate                     cfgFalse
00183 #define  includeTaskRestart                      cfgFalse
00184 #define  includeGenLogTask                       cfgFalse
00185 #define  includeGenLogOs                         cfgFalse
00186 #define  includeGenTrace                         cfgTrue
00187 #define  includeGenPipeInt16                     cfgFalse
00188 #define  includeGenPassFlashString               cfgFalse
00189 
00190 /* Event functions --------------------------------------------------------- */
00191 #define  includeTaskWaitForEvents                cfgTrue
00192 #define  includeIsrFireEvent                     cfgFalse
00193 #define  includeGenFireEvent                     cfgTrue
00194 #define  includeGenFireEventSet                  cfgFalse
00195 #define  includeGenCountEventBlocks              cfgTrue
00196 
00197 /* Synchronization functions ----------------------------------------------- */
00198 #define  includeTaskWaitForTasks                 cfgFalse
00199 #define  includeGenWaitRelease                   cfgFalse
00200 #define  includeTaskMutex                        cfgFalse
00201 #define  includeTaskQueu                         cfgFalse
00202 
00203 /* Queu functions --------------------------------------------------------- */
00204 #define  includeGenQueuWrite                     cfgFalse
00205 #define  includeGenQueuRead                      cfgFalse
00206 #define  includeGenQueuClear                     cfgFalse
00207 #define  includeGenQueuPeek                      cfgFalse
00208 #define  includeGenQueuReadable                  cfgFalse
00209 #define  includeGenQueuWriteable                 cfgFalse
00210 #define  includeGenQueuFull                      cfgFalse
00211 #define  includeGenQueuEmpty                     cfgFalse
00212 
00213 /* File System functions --------------------------------------------------- */
00214 #define  includeTaskFileAccess                   cfgTrue
00215 #define  includeTaskFileFormat                   cfgTrue
00216 #define  includeTaskFileGetSize                  cfgFalse
00217 #define  includeTaskFileSetSize                  cfgTrue
00218 #define  includeTaskFileReadByte                 cfgTrue
00219 #define  includeTaskFileWriteByte                cfgTrue
00220 #define  includeTaskFileAppendByte               cfgTrue
00221 #define  includeTaskFileReadPipe                 cfgFalse
00222 #define  includeTaskFileWritePipe                cfgFalse
00223 #define  includeTaskFileReadBuffer               cfgTrue
00224 #define  includeTaskFileWriteBuffer              cfgTrue
00225 
00226 /* Protection functions ---------------------------------------------------- */
00227 #define  includeTaskProtectGlobalInterrupts      cfgFalse
00228 #define  includeTaskProtectSwitchTasks           cfgFalse
00229 #define  includeTaskProtectTickInterrupts        cfgFalse
00230 #define  includeTaskProtectGlobalCritical        cfgFalse
00231 #define  includeTaskProtectSwitchCritical        cfgTrue
00232 #define  includeTaskProtectTickCritical          cfgFalse
00233 
00234 /* ISR header/footer functions --------------------------------------------- */
00235 #define  includeIsrEnter                         cfgFalse
00236 #define  includeIsrExit                          cfgFalse
00237 #define  includeIsrBegin                         cfgFalse
00238 #define  includeIsrEndReturn                     cfgFalse
00239 #define  includeIsrEndYield                      cfgFalse
00240 #define  includeIsrStartLoad                     cfgFalse
00241 #define  includeIsrStopLoad                      cfgFalse
00242 
00243 /* Quality assurance functions --------------------------------------------- */
00244 #define  includeTaskStackCheck                   cfgFalse
00245 #define  includeIsrStackCheck                    cfgFalse
00246 
00247 
00248 /* ========================================================================= */
00249 /* TASK NAMES ============================================================== */
00250 /* ========================================================================= */
00251 
00252 #define  CN_00                                   Worker0Task
00253 #define  CN_01                                   Worker1Task
00254 #define  CN_02                                   Worker2Task
00255 #define  CN_03                                   SupervisorTask
00256 #define  CN_04                                   SleepTask
00257 
00258 
00259 /* ========================================================================= */
00260 /* INCLUDE TASKS =========================================================== */
00261 /* ========================================================================= */
00262 
00263 #define  TaskInclude_Worker0Task                 cfgStartRunning
00264 #define  TaskInclude_Worker1Task                 cfgStartRunning
00265 #define  TaskInclude_Worker2Task                 cfgStartRunning
00266 #define  TaskInclude_SupervisorTask              cfgStartRunning
00267 #define  TaskInclude_SleepTask                   cfgExclude
00268 
00269 
00270 /* ========================================================================= */
00271 /* TASK CAPABILITIES ======================================================= */
00272 /* ========================================================================= */
00273 
00274 #define  Capabilities_Worker0Task                cfgCapFileSystem | cfgCapEvent
00275 #define  Capabilities_Worker1Task                cfgCapFileSystem | cfgCapEvent
00276 #define  Capabilities_Worker2Task                cfgCapFileSystem | cfgCapEvent
00277 #define  Capabilities_SupervisorTask             cfgCapFileSystem | cfgCapDelay | cfgCapEvent
00278 #define  Capabilities_SleepTask                  cfgCapDelay
00279 
00280 
00281 /* ========================================================================= */
00282 /* STACK SIZES ============================================================= */
00283 /* ========================================================================= */
00284 
00285 #if (defSysOptimized == cfgTrue)
00286 
00287 #define  StackSafety                             0
00288 #define  StackSizeOS                             20
00289 #define  StackSizeISR                            0
00290 #define  StackSizeShared                         0
00291 #define  StackSize_Worker0Task                   80
00292 #define  StackSize_Worker1Task                   80
00293 #define  StackSize_Worker2Task                   80
00294 #define  StackSize_SupervisorTask                80
00295 #define  StackSize_SleepTask                     80
00296 
00297 #else
00298 
00299 #define  StackSafety                             0
00300 #define  StackSizeOS                             20
00301 #define  StackSizeISR                            0
00302 #define  StackSizeShared                         0
00303 #define  StackSize_Worker0Task                   110
00304 #define  StackSize_Worker1Task                   110
00305 #define  StackSize_Worker2Task                   110
00306 #define  StackSize_SupervisorTask                110
00307 #define  StackSize_SleepTask                     110
00308 
00309 #endif
00310 
00311 
00312 /* ========================================================================= */
00313 /* TIMES SLICES ============================================================ */
00314 /* ========================================================================= */
00315 
00316 #define  TimeSliceIdleTime                       cfgSysSubTicksPerFullTick
00317 
00318 
00319 /* ========================================================================= */
00320 /* RUNTIME TASK NAMES ====================================================== */
00321 /* ========================================================================= */
00322 
00323 
00324 /* ========================================================================= */
00325 /* TASK PRIORITIES ========================================================= */
00326 /* ========================================================================= */
00327 
00328 #define  Priority_Worker0Task                    0
00329 #define  Priority_Worker1Task                    0
00330 #define  Priority_Worker2Task                    0
00331 #define  Priority_SupervisorTask                 1
00332 #define  Priority_SleepTask                      1
00333 
00334 
00335 /* ========================================================================= */
00336 /* REGISTER USE ============================================================ */
00337 /* ========================================================================= */
00338 
00339 #define  RegisterUse_Worker0Task                 registersAll
00340 #define  RegisterUse_Worker1Task                 registersAll
00341 #define  RegisterUse_Worker2Task                 registersAll
00342 #define  RegisterUse_SupervisorTask              registersAll
00343 #define  RegisterUse_SleepTask                   registersAll
00344 
00345 
00346 /* ========================================================================= */
00347 /* REGISTER CHECK ========================================================== */
00348 /* ========================================================================= */
00349 
00350 #define  RegisterCheck_Worker0Task               registersAll
00351 #define  RegisterCheck_Worker1Task               registersAll
00352 #define  RegisterCheck_Worker2Task               registersAll
00353 #define  RegisterCheck_SupervisorTask            registersAll
00354 #define  RegisterCheck_SleepTask                 registersAll
00355 
00356 
00357 /* ========================================================================= */
00358 /* INTERRUPT SETTING ======================================================= */
00359 /* ========================================================================= */
00360 
00361 #define  InterruptStartOverride                  cfgGlobSet | cfgTickSet
00362 
00363 
00364 /* ========================================================================= */
00365 /* EVENT NAMES ============================================================= */
00366 /* ========================================================================= */
00367 
00368 #define  EN_00                                   ProceedTo1
00369 #define  EN_01                                   ProceedTo2
00370 #define  EN_02                                   ProceedTo3
00371 #define  EN_03                                   ProceedTo4
00372 #define  EN_04                                   ProceedTo5
00373 
00374 
00375 /* ========================================================================= */
00376 /* SLOT NAMES ============================================================== */
00377 /* ========================================================================= */
00378 
00379 
00380 /* ========================================================================= */
00381 /* SLOT SIZES ============================================================== */
00382 /* ========================================================================= */
00383 
00384 
00385 /* ========================================================================= */
00386 /* SLOT USAGE ============================================================== */
00387 /* ========================================================================= */
00388 
00389 
00390 /* ========================================================================= */
00391 /* QUEU SIZES ============================================================== */
00392 /* ========================================================================= */
00393 
00394 
00395 /* ========================================================================= */
00396 /* FILE NAMES ============================================================== */
00397 /* ========================================================================= */
00398 
00399 #define  FN_00                                   LayerInfo
00400 #define  FN_01                                   Status
00401 
00402 /* ========================================================================= */
00403 /* FILE SIZES ============================================================== */
00404 /* ========================================================================= */
00405 
00406 #define  FileSpaceStandard                       8
00407 #define  FileSpace_LayerInfo                     6
00408 #define  FileSpace_Status                        4
00409 
00410 #endif /*CONFIG_TESTFLASHNLEDS_H_*/

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