demos_headers/config_TestInterrupt.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_TESTINTERRUPT_H_
00026 #define CONFIG_TESTINTERRUPT_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                        cfgFalse
00057 #define  cfgIntUserDefined                       cfgTrue
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 #define  cfgCheckSystem                          cfgFalse
00069 #define  cfgCheckReset                           cfgTrue
00070 #define  cfgCheckTrace                           cfgFalse
00071 #define  cfgCheckAlwaysFatal                     cfgFalse
00072 #define  cfgCheckWatermarks                      cfgFalse
00073 #define  cfgCheckOsStack                         cfgTrue
00074 #define  cfgCheckTaskStack                       cfgTrue
00075 #define  cfgCheckIsrStack                        cfgTrue
00076 #define  cfgCheckRegisters                       cfgTrue
00077 #define  cfgCheckTiming                          cfgIntOsProtected
00078 #define  cfgCheckQueuFilling                     cfgTrue
00079 #define  cfgCheckMethodUse                       cfgTrue
00080 #define  cfgCheckApplication                     cfgFalse
00081 
00082 
00083 /* ========================================================================= */
00084 /* COMMON CAPABILITIES ===================================================== */
00085 /* ========================================================================= */
00086 
00087 #define  cfgUseEquidistantTicks                  cfgTrue
00088 #define  cfgUseDelay                             cfgTrue
00089 #define  cfgUseSynchronization                   cfgSyncNon
00090 #define  cfgUseHierarchicalRoundRobin            cfgFalse
00091 #define  cfgUseNestedCriticals                   cfgFalse
00092 #define  cfgUsePrioritizedRelease                cfgFalse
00093 #define  cfgUsePriorityLifting                   cfgFalse
00094 #define  cfgUseTaskWatchdog                      cfgFalse
00095 #define  cfgUseCorrectWakeupTimes                cfgFalse
00096 #define  cfgUseTimeout                           cfgFalse
00097 #define  cfgUseTasknames                         cfgFalse
00098 #define  cfgUseLowPowerSleep                     cfgFalse
00099 #define  cfgUseLowPowerOnDelay                   cfgFalse
00100 #define  cfgUseLowPowerDelayRelease              cfgFalse
00101 #define  cfgUseLoadMonitor                       cfgFalse
00102 #define  cfgUseFileSystem                        cfgFalse
00103 #define  cfgUseFileSystemConcurrentRead          cfgFalse
00104 #define  cfgUseFileSystemEconomyMode             cfgFalse
00105 #define  cfgUseFileSystemMaintainFAT             cfgFalse
00106 #define  cfgUseEvents                            cfgFalse
00107 #define  cfgUseEventsOnVariables                 cfgFalse
00108 
00109 
00110 /* ========================================================================= */
00111 /* CODE PARAMETERS ========================================================= */
00112 /* ========================================================================= */
00113 
00114 #define  cfgNumWatchdogDiv                       0
00115 #define  cfgNumMonitorDiv                        0
00116 #define  cfgNumSleepPeriod                       0
00117 #define  cfgNumSleepThreshold                    0
00118 #define  cfgNumGlobWidth                         0
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                           cfgFalse
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                        cfgTrue
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                   cfgFalse
00153 #define  includeGenGetPriority                   cfgFalse
00154 #define  includeGenGetTickCount                  cfgFalse
00155 #define  includeGenAddtoTickCount                cfgFalse
00156 #define  includeGenGetLastWakeTime               cfgFalse
00157 #define  includeTaskFeedWatchdog                 cfgFalse
00158 #define  includeTaskKillWatchdog                 cfgFalse
00159 #define  includeGenGetTaskname                   cfgFalse
00160 #define  includeTaskTerminate                    cfgFalse
00161 #define  includeGenReboot                        cfgFalse
00162 #define  includeTaskRecreate                     cfgFalse
00163 #define  includeTaskRestart                      cfgFalse
00164 #define  includeGenLogTask                       cfgFalse
00165 #define  includeGenLogOs                         cfgFalse
00166 #define  includeGenTrace                         cfgFalse
00167 #define  includeGenPipeInt16                     cfgFalse
00168 #define  includeGenPassFlashString               cfgFalse
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                         cfgFalse
00182 
00183 /* Queu functions --------------------------------------------------------- */
00184 #define  includeGenQueuWrite                     cfgFalse
00185 #define  includeGenQueuRead                      cfgFalse
00186 #define  includeGenQueuClear                     cfgFalse
00187 #define  includeGenQueuPeek                      cfgFalse
00188 #define  includeGenQueuReadable                  cfgFalse
00189 #define  includeGenQueuWriteable                 cfgFalse
00190 #define  includeGenQueuFull                      cfgFalse
00191 #define  includeGenQueuEmpty                     cfgFalse
00192 
00193 /* File System functions --------------------------------------------------- */
00194 #define  includeTaskFileAccess                   cfgFalse
00195 #define  includeTaskFileFormat                   cfgFalse
00196 #define  includeTaskFileGetSize                  cfgFalse
00197 #define  includeTaskFileSetSize                  cfgFalse
00198 #define  includeTaskFileReadByte                 cfgFalse
00199 #define  includeTaskFileWriteByte                cfgFalse
00200 #define  includeTaskFileAppendByte               cfgFalse
00201 #define  includeTaskFileReadPipe                 cfgFalse
00202 #define  includeTaskFileWritePipe                cfgFalse
00203 #define  includeTaskFileReadBuffer               cfgFalse
00204 #define  includeTaskFileWriteBuffer              cfgFalse
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                         cfgTrue
00218 #define  includeIsrEndReturn                     cfgTrue
00219 #define  includeIsrEndYield                      cfgTrue
00220 #define  includeIsrStartLoad                     cfgFalse
00221 #define  includeIsrStopLoad                      cfgFalse
00222 
00223 /* Quality assurance functions --------------------------------------------- */
00224 #define  includeTaskStackCheck                   cfgFalse
00225 #define  includeIsrStackCheck                    cfgTrue
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 
00237 
00238 /* ========================================================================= */
00239 /* INCLUDE TASKS =========================================================== */
00240 /* ========================================================================= */
00241 
00242 #define  TaskInclude_LEDtask0                    cfgStartRunning
00243 #define  TaskInclude_LEDtask1                    cfgStartRunning
00244 #define  TaskInclude_LEDtask2                    cfgStartRunning
00245 #define  TaskInclude_LEDtask3                    cfgStartRunning
00246 
00247 
00248 /* ========================================================================= */
00249 /* TASK CAPABILITIES ======================================================= */
00250 /* ========================================================================= */
00251 
00252 #define  Capabilities_LEDtask0                   cfgCapDelay
00253 #define  Capabilities_LEDtask1                   cfgCapDelay
00254 #define  Capabilities_LEDtask2                   cfgCapDelay
00255 #define  Capabilities_LEDtask3                   cfgCapDelay
00256 
00257 
00258 /* ========================================================================= */
00259 /* STACK SIZES ============================================================= */
00260 /* ========================================================================= */
00261 
00262 #define  StackSafety                             0
00263 #define  StackSizeOS                             30
00264 #define  StackSizeISR                            50
00265 #define  StackSizeShared                         0
00266 #define  StackSize_LEDtask0                      40
00267 #define  StackSize_LEDtask1                      40
00268 #define  StackSize_LEDtask2                      40
00269 #define  StackSize_LEDtask3                      40
00270 
00271 
00272 /* ========================================================================= */
00273 /* TIMES SLICES ============================================================ */
00274 /* ========================================================================= */
00275 
00276 #define  TimeSliceIdleTime                       cfgSysSubTicksPerFullTick
00277 
00278 
00279 /* ========================================================================= */
00280 /* RUNTIME TASK NAMES ====================================================== */
00281 /* ========================================================================= */
00282 
00283 
00284 /* ========================================================================= */
00285 /* TASK PRIORITIES ========================================================= */
00286 /* ========================================================================= */
00287 
00288 #define  Priority_LEDtask0                       0
00289 #define  Priority_LEDtask1                       0
00290 #define  Priority_LEDtask2                       0
00291 #define  Priority_LEDtask3                       0
00292 
00293 
00294 /* ========================================================================= */
00295 /* REGISTER USE ============================================================ */
00296 /* ========================================================================= */
00297 
00298 #define  RegisterUse_LEDtask0                    r16_upto_r31
00299 #define  RegisterUse_LEDtask1                    r16_upto_r31
00300 #define  RegisterUse_LEDtask2                    r16_upto_r31
00301 #define  RegisterUse_LEDtask3                    r16_upto_r31
00302 
00303 
00304 /* ========================================================================= */
00305 /* REGISTER CHECK ========================================================== */
00306 /* ========================================================================= */
00307 
00308 #define  RegisterCheck_LEDtask0                  registersAll
00309 #define  RegisterCheck_LEDtask1                  registersAll
00310 #define  RegisterCheck_LEDtask2                  registersAll
00311 #define  RegisterCheck_LEDtask3                  registersAll
00312 
00313 
00314 /* ========================================================================= */
00315 /* INTERRUPT SETTING ======================================================= */
00316 /* ========================================================================= */
00317 
00318 #define  InterruptStartOverride                  cfgGlobSet | cfgTickSet
00319 
00320 
00321 /* ========================================================================= */
00322 /* EVENT NAMES ============================================================= */
00323 /* ========================================================================= */
00324 
00325 
00326 /* ========================================================================= */
00327 /* SLOT NAMES ============================================================== */
00328 /* ========================================================================= */
00329 
00330 
00331 /* ========================================================================= */
00332 /* SLOT SIZES ============================================================== */
00333 /* ========================================================================= */
00334 
00335 
00336 /* ========================================================================= */
00337 /* SLOT USAGE ============================================================== */
00338 /* ========================================================================= */
00339 
00340 
00341 /* ========================================================================= */
00342 /* QUEU SIZES ============================================================== */
00343 /* ========================================================================= */
00344 
00345 
00346 /* ========================================================================= */
00347 /* FILE NAMES ============================================================== */
00348 /* ========================================================================= */
00349 
00350 
00351 /* ========================================================================= */
00352 /* FILE SIZES ============================================================== */
00353 /* ========================================================================= */
00354 
00355 #define  FileSpaceStandard                       0
00356 
00357 
00358 
00359 #endif /*CONFIG_TESTINTERRUPT_H_*/

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