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_TESTSLEEP_H_
00026 #define CONFIG_TESTSLEEP_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 cfgTrue
00083
00084 #else
00085
00086 #define cfgCheckSystem cfgTrue
00087 #define cfgCheckReset cfgTrue
00088 #define cfgCheckTrace cfgFalse
00089 #define cfgCheckAlwaysFatal cfgFalse
00090 #define cfgCheckWatermarks cfgTrue
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 cfgTrue
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 cfgTrue
00119
00120 #ifdef devSigWatchdogTimeout
00121 #define cfgUseLowPowerOnDelay cfgTrue
00122 #else
00123 #define cfgUseLowPowerOnDelay cfgFalse
00124 #endif
00125
00126 #define cfgUseLowPowerDelayRelease cfgFalse
00127 #define cfgUseLoadMonitor cfgFalse
00128 #define cfgUseFileSystem cfgFalse
00129 #define cfgUseFileSystemConcurrentRead cfgFalse
00130 #define cfgUseFileSystemEconomyMode cfgFalse
00131 #define cfgUseFileSystemMaintainFAT cfgFalse
00132 #define cfgUseEvents cfgFalse
00133 #define cfgUseEventsOnVariables cfgFalse
00134
00135
00136
00137
00138
00139
00140 #define cfgNumWatchdogDiv 0
00141 #define cfgNumMonitorDiv 0
00142 #define cfgNumSleepPeriod 1000
00143 #define cfgNumSleepThreshold 2000
00144 #define cfgNumGlobWidth 0
00145 #define cfgNumSwitchWidth 0
00146 #define cfgNumTickWidth 0
00147
00148
00149
00150
00151
00152 #define callAppTick00 cfgFalse
00153 #define callAppTick08 cfgFalse
00154 #define callAppTick16 cfgFalse
00155 #define callAppTickSleep cfgTrue
00156 #define callAppEnterIdle cfgFalse
00157 #define callAppEnterSleep cfgTrue
00158 #define callAppExitSleep cfgTrue
00159 #define callAppBoot cfgTrue
00160 #define callAppInit cfgFalse
00161 #define callAppBark cfgFalse
00162
00163
00164
00165
00166
00167
00168
00169 #define includeTaskYield cfgFalse
00170 #define includeTaskDelayFromNow cfgTrue
00171 #define includeTaskDelayFromWake cfgFalse
00172 #define includeGenSuspend cfgFalse
00173 #define includeTaskSuspend cfgFalse
00174 #define includeGenResume cfgFalse
00175 #define includeTaskSleep cfgTrue
00176 #define includeTaskSleepAll cfgFalse
00177 #define includeGenSetPriority cfgFalse
00178 #define includeGenGetPriority cfgFalse
00179 #define includeGenGetTickCount cfgFalse
00180 #define includeGenAddtoTickCount cfgTrue
00181 #define includeGenGetLastWakeTime cfgFalse
00182 #define includeTaskFeedWatchdog cfgFalse
00183 #define includeTaskKillWatchdog cfgFalse
00184 #define includeGenGetTaskname cfgFalse
00185 #define includeTaskTerminate cfgFalse
00186 #define includeGenReboot cfgFalse
00187 #define includeTaskRecreate cfgFalse
00188 #define includeTaskRestart cfgFalse
00189 #define includeGenLogTask cfgFalse
00190 #define includeGenLogOs cfgFalse
00191 #define includeGenTrace cfgFalse
00192 #define includeGenPipeInt16 cfgFalse
00193 #define includeGenPassFlashString cfgFalse
00194
00195
00196 #define includeTaskWaitForEvents cfgFalse
00197 #define includeIsrFireEvent cfgFalse
00198 #define includeGenFireEvent cfgFalse
00199 #define includeGenFireEventSet cfgFalse
00200 #define includeGenCountEventBlocks cfgFalse
00201
00202
00203 #define includeTaskWaitForTasks cfgFalse
00204 #define includeGenWaitRelease cfgFalse
00205 #define includeTaskMutex cfgFalse
00206 #define includeTaskQueu cfgFalse
00207
00208
00209 #define includeGenQueuWrite cfgFalse
00210 #define includeGenQueuRead cfgFalse
00211 #define includeGenQueuClear cfgFalse
00212 #define includeGenQueuPeek cfgFalse
00213 #define includeGenQueuReadable cfgFalse
00214 #define includeGenQueuWriteable cfgFalse
00215 #define includeGenQueuFull cfgFalse
00216 #define includeGenQueuEmpty cfgFalse
00217
00218
00219 #define includeTaskFileAccess cfgFalse
00220 #define includeTaskFileFormat cfgFalse
00221 #define includeTaskFileGetSize cfgFalse
00222 #define includeTaskFileSetSize cfgFalse
00223 #define includeTaskFileReadByte cfgFalse
00224 #define includeTaskFileWriteByte cfgFalse
00225 #define includeTaskFileAppendByte cfgFalse
00226 #define includeTaskFileReadPipe cfgFalse
00227 #define includeTaskFileWritePipe cfgFalse
00228 #define includeTaskFileReadBuffer cfgFalse
00229 #define includeTaskFileWriteBuffer cfgFalse
00230
00231
00232 #define includeTaskProtectGlobalInterrupts cfgFalse
00233 #define includeTaskProtectSwitchTasks cfgFalse
00234 #define includeTaskProtectTickInterrupts cfgFalse
00235 #define includeTaskProtectGlobalCritical cfgFalse
00236 #define includeTaskProtectSwitchCritical cfgFalse
00237 #define includeTaskProtectTickCritical cfgFalse
00238
00239
00240 #define includeIsrEnter cfgFalse
00241 #define includeIsrExit cfgFalse
00242 #define includeIsrBegin cfgFalse
00243 #define includeIsrEndReturn cfgFalse
00244 #define includeIsrEndYield cfgFalse
00245 #define includeIsrStartLoad cfgFalse
00246 #define includeIsrStopLoad cfgFalse
00247
00248
00249 #define includeTaskStackCheck cfgFalse
00250 #define includeIsrStackCheck cfgFalse
00251
00252
00253
00254
00255
00256
00257 #define CN_00 LEDtask0
00258 #define CN_01 LEDtask1
00259 #define CN_02 LEDtask2
00260
00261
00262
00263
00264
00265
00266 #define TaskInclude_LEDtask0 cfgStartRunning
00267 #define TaskInclude_LEDtask1 cfgStartRunning
00268 #define TaskInclude_LEDtask2 cfgStartSleeping
00269
00270
00271
00272
00273
00274
00275 #define Capabilities_LEDtask0 cfgCapDelay
00276 #define Capabilities_LEDtask1 cfgCapDelay
00277 #define Capabilities_LEDtask2 cfgCapDelay
00278
00279
00280
00281
00282
00283
00284 #if (defSysOptimized == cfgTrue)
00285
00286 #define StackSafety 0
00287 #define StackSizeOS 12
00288 #define StackSizeISR 0
00289 #define StackSizeShared 0
00290 #define StackSize_LEDtask0 16
00291 #define StackSize_LEDtask1 16
00292 #define StackSize_LEDtask2 16
00293
00294 #else
00295
00296 #define StackSafety 0
00297 #define StackSizeOS 20
00298 #define StackSizeISR 0
00299 #define StackSizeShared 0
00300 #define StackSize_LEDtask0 30
00301 #define StackSize_LEDtask1 30
00302 #define StackSize_LEDtask2 30
00303
00304 #endif
00305
00306
00307
00308
00309
00310
00311 #define TimeSliceIdleTime cfgSysSubTicksPerFullTick
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323 #define Priority_LEDtask0 0
00324 #define Priority_LEDtask1 0
00325 #define Priority_LEDtask2 0
00326
00327
00328
00329
00330
00331
00332 #if (defSysOptimized == cfgTrue)
00333
00334 #define RegisterUse_LEDtask0 r16r17r18r19 | r24r25r26r27
00335 #define RegisterUse_LEDtask1 r16r17r18r19 | r24r25r26r27
00336 #define RegisterUse_LEDtask2 r16r17r18r19 | r24r25r26r27
00337
00338 #else
00339
00340 #define RegisterUse_LEDtask0 r16_upto_r31
00341 #define RegisterUse_LEDtask1 r16_upto_r31
00342 #define RegisterUse_LEDtask2 r16_upto_r31
00343
00344 #endif
00345
00346
00347
00348
00349
00350
00351 #define RegisterCheck_LEDtask0 registersAll
00352 #define RegisterCheck_LEDtask1 registersAll
00353 #define RegisterCheck_LEDtask2 registersAll
00354
00355
00356
00357
00358
00359
00360 #define InterruptStartOverride cfgGlobSet | cfgTickSet
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
00393
00394
00395
00396
00397 #define FileSpaceStandard 0
00398
00399
00400
00401 #endif