demos_headers/config_TestFlashLeds.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 #define demoUseShared cfgTrue
00031 
00032 /* ========================================================================= */
00033 /* SYSTEM CONFIGURATION ==================================================== */
00034 /* ========================================================================= */
00035 
00036 #define  cfgSysOptimized                         cfgFalse
00037 #define  cfgSysDebug                             cfgFalse
00038 #define  cfgSysInline                            cfgFalse
00039 #define  cfgSysFramePointerCounterMeasures       cfgFalse
00040 #define  cfgSysReduceProEpilogue                 cfgBikini
00041 #define  cfgSysRegisterCheckByte                 0xA5
00042 #define  cfgSysStackGrowthUp                     cfgFalse
00043 #define  cfgSysZeroPageStack                     cfgFalse
00044 #define  cfgSysClearUnusedR1                     cfgTrue
00045 #define  cfgSysSqueezeState                      defSysOptimized
00046 #define  cfgSysReuseOsStack                      cfgTrue
00047 #define  cfgSysClockDivider                      1
00048 #define  cfgSysSubTicksPerFullTick               32
00049 #define  cfgSysSubTickDivider                    256
00050 #define  cfgSysGCCstartup                        cfgOverride
00051 #define  cfgSysFsStorageSpace                    0
00052 
00053 
00054 /* ========================================================================= */
00055 /* INTERRUPT HANDLING ====================================================== */
00056 /* ========================================================================= */
00057 
00058 #define  cfgIntGlobalOnly                        cfgTrue
00059 #define  cfgIntUserDefined                       cfgFalse
00060 #define  cfgIntSwitchUsesOSstack                 cfgFalse
00061 #define  cfgIntOsProtected                       cfgTrue
00062 #define  cfgIntTickTrack                         cfgFalse
00063 #define  cfgIntManualTicks                       cfgFalse
00064 
00065 
00066 /* ========================================================================= */
00067 /* QUALITY ASSURANCE ======================================================= */
00068 /* ========================================================================= */
00069 
00070 #if (defSysOptimized == cfgTrue)
00071 
00072 #define  cfgCheckSystem                          cfgFalse
00073 #define  cfgCheckReset                           cfgFalse
00074 #define  cfgCheckTrace                           cfgFalse
00075 #define  cfgCheckAlwaysFatal                     cfgFalse
00076 #define  cfgCheckWatermarks                      cfgFalse
00077 #define  cfgCheckOsStack                         cfgFalse
00078 #define  cfgCheckTaskStack                       cfgFalse
00079 #define  cfgCheckIsrStack                        cfgFalse
00080 #define  cfgCheckRegisters                       cfgFalse
00081 #define  cfgCheckTiming                          cfgFalse
00082 #define  cfgCheckQueuFilling                     cfgFalse
00083 #define  cfgCheckMethodUse                       cfgFalse
00084 #define  cfgCheckApplication                     cfgFalse
00085 
00086 #else
00087 
00088 #define  cfgCheckSystem                          cfgTrue
00089 #define  cfgCheckReset                           cfgTrue
00090 #define  cfgCheckTrace                           cfgFalse
00091 #define  cfgCheckAlwaysFatal                     cfgFalse
00092 #define  cfgCheckWatermarks                      cfgFalse
00093 #define  cfgCheckOsStack                         cfgTrue
00094 #define  cfgCheckTaskStack                       cfgTrue
00095 #define  cfgCheckIsrStack                        cfgFalse
00096 #define  cfgCheckRegisters                       cfgTrue
00097 #define  cfgCheckTiming                          cfgTrue
00098 #define  cfgCheckQueuFilling                     cfgFalse
00099 #define  cfgCheckMethodUse                       cfgTrue
00100 #define  cfgCheckApplication                     cfgFalse
00101 
00102 #endif
00103 
00104 
00105 /* ========================================================================= */
00106 /* COMMON CAPABILITIES ===================================================== */
00107 /* ========================================================================= */
00108 
00109 #define  cfgUseEquidistantTicks                  cfgTrue
00110 #define  cfgUseDelay                             cfgTrue
00111 #define  cfgUseSynchronization                   cfgSyncNon
00112 #define  cfgUseHierarchicalRoundRobin            cfgFalse
00113 #define  cfgUseNestedCriticals                   cfgFalse
00114 #define  cfgUsePrioritizedRelease                cfgFalse
00115 #define  cfgUsePriorityLifting                   cfgFalse
00116 #define  cfgUseTaskWatchdog                      cfgFalse
00117 #define  cfgUseCorrectWakeupTimes                cfgFalse
00118 #define  cfgUseTimeout                           cfgFalse
00119 #define  cfgUseTasknames                         cfgFalse
00120 #define  cfgUseLowPowerSleep                     cfgFalse
00121 #define  cfgUseLowPowerOnDelay                   cfgFalse
00122 #define  cfgUseLowPowerDelayRelease              cfgFalse
00123 #define  cfgUseLoadMonitor                       cfgFalse
00124 #define  cfgUseFileSystem                        cfgFalse
00125 #define  cfgUseFileSystemConcurrentRead          cfgFalse
00126 #define  cfgUseFileSystemEconomyMode             cfgFalse
00127 #define  cfgUseFileSystemMaintainFAT             cfgFalse
00128 #define  cfgUseEvents                            cfgFalse
00129 #define  cfgUseEventsOnVariables                 cfgFalse
00130 
00131 
00132 /* ========================================================================= */
00133 /* CODE PARAMETERS ========================================================= */
00134 /* ========================================================================= */
00135 
00136 #define  cfgNumWatchdogDiv                       0
00137 #define  cfgNumMonitorDiv                        0
00138 #define  cfgNumSleepPeriod                       0
00139 #define  cfgNumSleepThreshold                    0
00140 #define  cfgNumGlobWidth                         0
00141 #define  cfgNumSwitchWidth                       0
00142 #define  cfgNumTickWidth                         0
00143 
00144 
00145 /* ========================================================================= */
00146 /* EXTERNAL CALLS ========================================================== */
00147 /* ========================================================================= */
00148 
00149 #define  callAppTick00                           cfgFalse
00150 #define  callAppTick08                           cfgFalse
00151 #define  callAppTick16                           cfgFalse
00152 #define  callAppTickSleep                        cfgFalse
00153 #define  callAppEnterIdle                        cfgFalse
00154 #define  callAppEnterSleep                       cfgFalse
00155 #define  callAppExitSleep                        cfgFalse
00156 #define  callAppBoot                             cfgTrue
00157 #define  callAppInit                             cfgFalse
00158 #define  callAppBark                             cfgFalse
00159 
00160 
00161 /* ========================================================================= */
00162 /* API INCLUSIONS ========================================================== */
00163 /* ========================================================================= */
00164 
00165 /* Standard functions ------------------------------------------------------ */
00166 #define  includeTaskYield                        cfgFalse
00167 #define  includeTaskDelayFromNow                 cfgTrue
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                      demoUseShared
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                                   LEDtask0
00255 #define  CN_01                                   LEDtask1
00256 #define  CN_02                                   LEDtask2
00257 #define  CN_03                                   LEDtask3
00258 #define  CN_04                                   LEDtask4
00259 #define  CN_05                                   LEDtask5
00260 #define  CN_06                                   LEDtask6
00261 #define  CN_07                                   LEDtask7
00262 
00263 
00264 /* ========================================================================= */
00265 /* INCLUDE TASKS =========================================================== */
00266 /* ========================================================================= */
00267 
00268 #define  TaskIncludeOverride                     cfgStartRunning
00269 
00270 
00271 /* ========================================================================= */
00272 /* TASK CAPABILITIES ======================================================= */
00273 /* ========================================================================= */
00274 
00275 #define  CapabilitiesOverride                    cfgCapDelay
00276 
00277 
00278 /* ========================================================================= */
00279 /* STACK SIZES ============================================================= */
00280 /* ========================================================================= */
00281 
00282 #if (defSysOptimized == cfgTrue)
00283 
00284 #define  StackSafety                             0
00285 #define  StackSizeOS                             8 + 4*defThreeByteStackAdd
00286 #define  StackSizeISR                            0
00287 #if (demoUseShared == cfgTrue)
00288   #define  StackSizeShared                       4 + 2*defThreeByteStackAdd
00289   #define  StackSizeOverride                     cfgShared
00290 #else
00291   #define  StackSizeShared                       0
00292   #define  StackSizeOverride                     4 + 2*defThreeByteStackAdd
00293 #endif
00294 
00295 #else
00296 
00297 #define  StackSafety                             2
00298 #define  StackSizeOS                             32 + 8*defThreeByteStackAdd
00299 #define  StackSizeISR                            0
00300 #if (demoUseShared == cfgTrue)
00301   #define  StackSizeShared                       6 + 2*defThreeByteStackAdd
00302   #define  StackSizeOverride                     cfgShared
00303 #else
00304   #define  StackSizeShared                       0
00305   #define  StackSizeOverride                     6 + 2*defThreeByteStackAdd
00306 #endif
00307 
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  PriorityOverride                        0
00329 
00330 
00331 /* ========================================================================= */
00332 /* REGISTER USE ============================================================ */
00333 /* ========================================================================= */
00334 
00335 #define  RegisterUseOverride                     registersNon
00336 
00337 
00338 /* ========================================================================= */
00339 /* REGISTER CHECK ========================================================== */
00340 /* ========================================================================= */
00341 
00342 #define  RegisterCheckOverride                   registersNon
00343 
00344 
00345 /* ========================================================================= */
00346 /* INTERRUPT SETTING ======================================================= */
00347 /* ========================================================================= */
00348 
00349 #define  InterruptStartOverride                  cfgGlobClear | cfgTickClear
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 #endif /*CONFIG_TESTFLASHNLEDS_H_*/

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