00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef CONFIG_TESTDOORLIGHT_H_
00026 #define CONFIG_TESTDOORLIGHT_H_
00027
00028
00029
00030
00031
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
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
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
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 cfgFalse
00123 #define cfgUseFileSystemConcurrentRead cfgFalse
00124 #define cfgUseFileSystemEconomyMode cfgFalse
00125 #define cfgUseFileSystemMaintainFAT cfgFalse
00126 #define cfgUseEvents cfgFalse
00127 #define cfgUseEventsOnVariables cfgFalse
00128
00129
00130
00131
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
00145
00146
00147 #define callAppTick00 cfgFalse
00148 #define callAppTick08 cfgFalse
00149 #define callAppTick16 cfgTrue
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
00161
00162
00163
00164 #define includeTaskYield cfgFalse
00165 #define includeTaskDelayFromNow cfgTrue
00166 #define includeTaskDelayFromWake cfgFalse
00167 #define includeGenSuspend cfgFalse
00168 #define includeTaskSuspend cfgFalse
00169 #define includeGenResume cfgFalse
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 cfgFalse
00187 #define includeGenPipeInt16 cfgFalse
00188 #define includeGenPassFlashString cfgFalse
00189
00190
00191 #define includeTaskWaitForEvents cfgFalse
00192 #define includeIsrFireEvent cfgFalse
00193 #define includeGenFireEvent cfgFalse
00194 #define includeGenFireEventSet cfgFalse
00195 #define includeGenCountEventBlocks cfgFalse
00196
00197
00198 #define includeTaskWaitForTasks cfgFalse
00199 #define includeGenWaitRelease cfgFalse
00200 #define includeTaskMutex cfgFalse
00201 #define includeTaskQueu cfgFalse
00202
00203
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
00214 #define includeTaskFileAccess cfgFalse
00215 #define includeTaskFileFormat cfgFalse
00216 #define includeTaskFileGetSize cfgFalse
00217 #define includeTaskFileSetSize cfgFalse
00218 #define includeTaskFileReadByte cfgFalse
00219 #define includeTaskFileWriteByte cfgFalse
00220 #define includeTaskFileAppendByte cfgFalse
00221 #define includeTaskFileReadPipe cfgFalse
00222 #define includeTaskFileWritePipe cfgFalse
00223 #define includeTaskFileReadBuffer cfgFalse
00224 #define includeTaskFileWriteBuffer cfgFalse
00225
00226
00227 #define includeTaskProtectGlobalInterrupts cfgFalse
00228 #define includeTaskProtectSwitchTasks cfgFalse
00229 #define includeTaskProtectTickInterrupts cfgFalse
00230 #define includeTaskProtectGlobalCritical cfgFalse
00231 #define includeTaskProtectSwitchCritical cfgFalse
00232 #define includeTaskProtectTickCritical cfgFalse
00233
00234
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
00244 #define includeTaskStackCheck cfgFalse
00245 #define includeIsrStackCheck cfgFalse
00246
00247
00248
00249
00250
00251
00252 #define CN_00 ReadSwitch
00253 #define CN_01 DriveLed
00254 #define CN_02 DriveLamp
00255
00256
00257
00258
00259
00260
00261 #define TaskInclude_ReadSwitch cfgStartRunning
00262 #define TaskInclude_DriveLed cfgStartRunning
00263 #define TaskInclude_DriveLamp cfgStartRunning
00264
00265
00266
00267
00268
00269
00270 #define Capabilities_ReadSwitch cfgCapAll
00271 #define Capabilities_DriveLed cfgCapAll
00272 #define Capabilities_DriveLamp cfgCapAll
00273
00274
00275
00276
00277
00278
00279 #if (defSysOptimized == cfgTrue)
00280
00281 #define StackSafety 0
00282 #define StackSizeOS 10
00283 #define StackSizeISR 0
00284 #define StackSizeShared 0
00285 #define StackSize_ReadSwitch 14
00286 #define StackSize_DriveLed 14
00287 #define StackSize_DriveLamp 10
00288
00289 #else
00290
00291 #define StackSafety 0
00292 #define StackSizeOS 16
00293 #define StackSizeISR 0
00294 #define StackSizeShared 0
00295 #define StackSize_ReadSwitch 50
00296 #define StackSize_DriveLed 50
00297 #define StackSize_DriveLamp 50
00298
00299 #endif
00300
00301
00302
00303
00304
00305
00306 #define TimeSliceIdleTime cfgSysSubTicksPerFullTick
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318 #define Priority_ReadSwitch 0
00319 #define Priority_DriveLed 0
00320 #define Priority_DriveLamp 0
00321
00322
00323
00324
00325
00326
00327 #if (defSysOptimized == cfgTrue)
00328
00329 #define RegisterUse_ReadSwitch r24r25r26r27 | r16r17r18r19
00330 #define RegisterUse_DriveLed r24r25r26r27 | r16r17r18r19
00331 #define RegisterUse_DriveLamp r24r25r26r27
00332
00333 #else
00334
00335 #define RegisterUse_ReadSwitch registersAll
00336 #define RegisterUse_DriveLed registersAll
00337 #define RegisterUse_DriveLamp registersAll
00338
00339 #endif
00340
00341
00342
00343
00344
00345
00346 #define RegisterCheck_ReadSwitch registersAll
00347 #define RegisterCheck_DriveLed registersAll
00348 #define RegisterCheck_DriveLamp registersAll
00349
00350
00351
00352
00353
00354
00355 #define InterruptStartOverride cfgGlobSet | cfgTickSet
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392 #define FileSpaceStandard 0
00393
00394
00395 #endif