This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | defUseIsrStack cfgTrue |
#define | defUseDelay cfgTrue |
#define | defReUseTaskInit cfgTrue |
#define | defUseFsField cfgTrue |
#define | defUseTaskMonitor cfgTrue |
#define | defUseTaskSlot cfgFalse |
#define | defUseTaskLevels cfgTrue |
#define | defUseQueus cfgTrue |
#define | defUseMutexes cfgTrue |
#define | defUseWaits cfgTrue |
#define | defNonSwitchingCallPresent cfgTrue |
defNonSwitchingCallPresent indicates if any call is used which does not switch to OS. | |
#define | defNumberOfTasksWithSlot 0 |
#define | defNumberOfTasks 0 |
#define | LN_01 SN_01 |
#define | LN_02 SN_02 |
#define | defNumberQueuEnd 3 |
#define | defNumberQueuBegin 1 |
#define | defNumberOfQueus (defNumberQueuEnd - defNumberQueuBegin) |
#define | LN_03 SN_01 |
#define | LN_04 SN_02 |
#define | LN_05 SN_03 |
#define | LN_06 SN_04 |
#define | LN_07 SN_05 |
#define | LN_08 SN_06 |
#define | LN_09 SN_07 |
#define | LN_10 SN_08 |
#define | LN_11 SN_09 |
#define | LN_12 SN_10 |
#define | LN_13 SN_11 |
#define | LN_14 SN_12 |
#define | LN_15 SN_13 |
#define | defNumberMutexEnd 16 |
#define | defNumberMutexBegin defNumberQueuEnd |
#define | defNumberOfMutexes (defNumberMutexEnd - defNumberMutexBegin) |
#define | defNumberWaitEnd 16 |
#define | defNumberWaitBegin defNumberMutexEnd |
#define | defNumberOfWaits (defNumberWaitEnd - defNumberWaitBegin) |
#define | preEqualMacros(A, B) (strcmp(DefToString(A),DefToString(B))==0) |
Use to check if two macro's are equal. | |
#define | defNumberOfSlots (defNumberWaitEnd - defNumberQueuBegin) |
The maximum number of slots. | |
#define | preTaskDefined(TaskName) ( (TaskInclude(TaskName) != cfgExclude) ) |
Use to see if a task is defined and included in the source. | |
#define | preSlotDefined(SlotName) ( (SlotUse(SlotName) != cfgUseAsNon) ) |
Use to see if a slot is in use. | |
#define | preQueuDefined(SlotName) ( (SlotUse(SlotName) == cfgUseAsQueu) ) |
Use to see if a queu is defined on a slot name. | |
#define | preMutexDefined(SlotName) ( (SlotUse(SlotName) == cfgUseAsMutex) ) |
Use to see if a mutex is defined on a slot name. | |
#define | preWaitDefined(SlotName) ( (SlotUse(SlotName) == cfgUseAsWait) ) |
Use this function to see if a wait is defined on a slot name. | |
#define | preFileDefined(FileName) ( (FileSpace(FileName) > 0 ) ) |
Use this function to see if a file is defined on a file name. | |
#define | preBitSet |
Use this function as general bit setter. | |
#define | preBitSet1(p, n0) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF))) ) ) |
#define | preBitSet2(p, n0, n1) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF))) ) ) |
#define | preBitSet3(p, n0, n1, n2) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF))) ) ) |
#define | preBitSet4(p, n0, n1, n2, n3) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF))) ) ) |
#define | preBitSet5(p, n0, n1, n2, n3, n4) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF))) ) ) |
#define | preBitSet6(p, n0, n1, n2, n3, n4, n5) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF))) ) ) |
#define | preBitSet7(p, n0, n1, n2, n3, n4, n5, n6) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF))) ) ) |
#define | preBitSet8(p, n0, n1, n2, n3, n4, n5, n6, n7) ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF)) | ((Tuint16)1<<((n7) & 0xFF))) ) ) |
#define | preBitClr |
Use this function as general method to clear bits. | |
#define | preBitClr1(p, n0) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF))) ) ) |
#define | preBitClr2(p, n0, n1) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF))) ) ) |
#define | preBitClr3(p, n0, n1, n2) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF))) ) ) |
#define | preBitClr4(p, n0, n1, n2, n3) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF))) ) ) |
#define | preBitClr5(p, n0, n1, n2, n3, n4) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF))) ) ) |
#define | preBitClr6(p, n0, n1, n2, n3, n4, n5) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF))) ) ) |
#define | preBitClr7(p, n0, n1, n2, n3, n4, n5, n6) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF))) ) ) |
#define | preBitClr8(p, n0, n1, n2, n3, n4, n5, n6, n7) ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF)) | ((Tuint16)1<<((n7) & 0xFF))) ) ) |
#define | preBitIsSet(p, q) ( (p & (1<<q)) == (1<<q) ) |
Test if a bit on a particular place is set. | |
#define | preBitIsClr(p, q) ( (p & (1<<q)) == 0 ) |
Test if a bit on a particular place is cleared. | |
#define | preTaskNumberOf(TaskName) ( (strcmp(DefToString(defCurrentTaskName),#TaskName)==0) ? defCurrentTaskNumber : (strcmp(DefToString(TN_00),#TaskName)==0) ? 0 : (strcmp(DefToString(TN_01),#TaskName)==0) ? 1 : (strcmp(DefToString(TN_02),#TaskName)==0) ? 2 : (strcmp(DefToString(TN_03),#TaskName)==0) ? 3 : (strcmp(DefToString(TN_04),#TaskName)==0) ? 4 : (strcmp(DefToString(TN_05),#TaskName)==0) ? 5 : (strcmp(DefToString(TN_06),#TaskName)==0) ? 6 : (strcmp(DefToString(TN_07),#TaskName)==0) ? 7 : (strcmp(DefToString(TN_08),#TaskName)==0) ? 8 : (strcmp(DefToString(TN_09),#TaskName)==0) ? 9 : (strcmp(DefToString(TN_10),#TaskName)==0) ? 10 : (strcmp(DefToString(TN_11),#TaskName)==0) ? 11 : (strcmp(DefToString(TN_12),#TaskName)==0) ? 12 : (strcmp(DefToString(TN_13),#TaskName)==0) ? 13 : (strcmp(DefToString(TN_14),#TaskName)==0) ? 14 : (strcmp(DefToString(TN_15),#TaskName)==0) ? 15 : -1 ) |
Returns the task number of a task with the name "TaskName". | |
#define | preSlotNumberOf(SlotName) ( (strcmp(DefToString(LN_01),#SlotName)==0) ? 1 : (strcmp(DefToString(LN_02),#SlotName)==0) ? 2 : (strcmp(DefToString(LN_03),#SlotName)==0) ? 3 : (strcmp(DefToString(LN_04),#SlotName)==0) ? 4 : (strcmp(DefToString(LN_05),#SlotName)==0) ? 5 : (strcmp(DefToString(LN_06),#SlotName)==0) ? 6 : (strcmp(DefToString(LN_07),#SlotName)==0) ? 7 : (strcmp(DefToString(LN_08),#SlotName)==0) ? 8 : (strcmp(DefToString(LN_09),#SlotName)==0) ? 9 : (strcmp(DefToString(LN_10),#SlotName)==0) ? 10 : (strcmp(DefToString(LN_11),#SlotName)==0) ? 11 : (strcmp(DefToString(LN_12),#SlotName)==0) ? 12 : (strcmp(DefToString(LN_13),#SlotName)==0) ? 13 : (strcmp(DefToString(LN_14),#SlotName)==0) ? 14 : (strcmp(DefToString(LN_15),#SlotName)==0) ? 15 : -1 ) |
Returns the slot number of a slot with the name "SlotName". | |
#define | preFileNumberOf(FileName) ( (strcmp(DefToString(VN_00),#FileName)==0) ? 0 : (strcmp(DefToString(VN_01),#FileName)==0) ? 1 : (strcmp(DefToString(VN_02),#FileName)==0) ? 2 : (strcmp(DefToString(VN_03),#FileName)==0) ? 3 : (strcmp(DefToString(VN_04),#FileName)==0) ? 4 : (strcmp(DefToString(VN_05),#FileName)==0) ? 5 : (strcmp(DefToString(VN_06),#FileName)==0) ? 6 : (strcmp(DefToString(VN_07),#FileName)==0) ? 7 : (strcmp(DefToString(VN_08),#FileName)==0) ? 8 : (strcmp(DefToString(VN_09),#FileName)==0) ? 9 : (strcmp(DefToString(VN_10),#FileName)==0) ? 10 : (strcmp(DefToString(VN_11),#FileName)==0) ? 11 : (strcmp(DefToString(VN_12),#FileName)==0) ? 12 : (strcmp(DefToString(VN_13),#FileName)==0) ? 13 : (strcmp(DefToString(VN_14),#FileName)==0) ? 14 : (strcmp(DefToString(VN_15),#FileName)==0) ? 15 : -1 ) |
Returns the file number of a file with the name "FileName". | |
#define | preEventNumberOf(EventName) ( (strcmp(DefToString(EN_00),#EventName)==0) ? 0 : (strcmp(DefToString(EN_01),#EventName)==0) ? 1 : (strcmp(DefToString(EN_02),#EventName)==0) ? 2 : (strcmp(DefToString(EN_03),#EventName)==0) ? 3 : (strcmp(DefToString(EN_04),#EventName)==0) ? 4 : (strcmp(DefToString(EN_05),#EventName)==0) ? 5 : (strcmp(DefToString(EN_06),#EventName)==0) ? 6 : (strcmp(DefToString(EN_07),#EventName)==0) ? 7 : -1 ) |
Returns the number of an event named "EventName". | |
#define | preEventLocationOf(EventName) ( (strcmp(DefToString(EN_00),#EventName)==0) ? 0x01 : (strcmp(DefToString(EN_01),#EventName)==0) ? 0x02 : (strcmp(DefToString(EN_02),#EventName)==0) ? 0x04 : (strcmp(DefToString(EN_03),#EventName)==0) ? 0x08 : (strcmp(DefToString(EN_04),#EventName)==0) ? 0x10 : (strcmp(DefToString(EN_05),#EventName)==0) ? 0x20 : (strcmp(DefToString(EN_06),#EventName)==0) ? 0x40 : (strcmp(DefToString(EN_07),#EventName)==0) ? 0x80 : -1 ) |
Use this to directly transform the name of an Event to the correct bit location. | |
#define | CheckEventNumber(Event) ( ((Event < defNumberEventBegin) || (Event >= defNumberEventEnd)) ? (-1) : (defEqualAuxiliaryRegisters) ? (((Event) == devAuxSysRegBit) ? (-1) : (Event)) : (Event) ) |
Functions to check the use of the parameters inside macro's. | |
#define | PassIfSlotIsWait(SlotNumber) ( (((SlotNumber)>=defNumberWaitBegin) && ((SlotNumber)<defNumberWaitEnd)) ? (SlotNumber) : defCheckSlotTypeError ) |
Functions which check if a slot has been properly used. | |
#define | PassIfSlotIsMutex(SlotNumber) ( (((SlotNumber)>=defNumberMutexBegin) && ((SlotNumber)<defNumberMutexEnd)) ? (SlotNumber) : defCheckSlotTypeError ) |
#define | PassIfSlotIsQueu(SlotNumber) ( (((SlotNumber)>=defNumberQueuBegin) && ((SlotNumber)<defNumberQueuEnd)) ? (SlotNumber) : defCheckSlotTypeError ) |
#define | defTNSC00 1 |
#define | defTNSC01 1 |
#define | defTNSC02 1 |
#define | defTNSC03 1 |
#define | defTNSC04 1 |
#define | defTNSC05 1 |
#define | defTNSC06 1 |
#define | defTNSC07 1 |
#define | defTNSC08 1 |
#define | defTNSC09 1 |
#define | defTNSC10 1 |
#define | defTNSC11 1 |
#define | defTNSC12 1 |
#define | defTNSC13 1 |
#define | defTNSC14 1 |
#define | defTNSC15 1 |
#define | defNumberOfSharedTasks (defTNSC00 + defTNSC01 + defTNSC02 + defTNSC03 + defTNSC04 + defTNSC05 + defTNSC06 + defTNSC07 + defTNSC08 + defTNSC09 + defTNSC10 + defTNSC11 + defTNSC12 + defTNSC13 + defTNSC14 + defTNSC15) |
#define | defTaskNumberSharedBegin 0 |
#define | defTaskNumberSharedEnd 16 |
#define | defUseSharedStack cfgTrue |
#define | defAllSharedStack cfgFalse |
#define | defDenseSharedStack cfgTrue |
#define | defSharesConstant cfgFalse |
#define | defInitialSharedFixed defInitialSharePresent |
#define | defRegisterUseCollect ( 0x00 ) |
#define | defRegisterUseFixed ( 0x00 ) |
#define | defRegisterUseTest ( 1 == 1 ) |
#define | defPriorityFixed ( 0x00 ) |
#define | defPriorityTest ( 1 == 1 ) |
#define | defStackSizeFixed ( 0x00 ) |
#define | defStackSizeTest ( 1 == 1 ) |
#define | defStackSizeHuge ( 1 == 0 ) |
#define | defStackSpaceTasks ( 0 ) |
#define | defTaskIncludeFixed ( 0x00 ) |
#define | defTaskIncludeTest ( 1 == 1 ) |
#define | defCapabilitiesTest ( 1 == 1 ) |
#define | defInterruptStartFixed ( 0x00 ) |
#define | defInterruptStartTest ( 1 == 1 ) |
#define | defTimeSliceFixed ( 0x00 ) |
#define | defTimeSliceTest ( 1 == 1 ) |
#define | defRegisterUseVariable (defRegisterUseCollect & (~defRegisterUseFixed)) |
#define | defStackSpaceTotal ( (defStackSpaceTasks) + (StackSizeOS) + (StackSizeISR) + (StackSizeShared)) |
#define | defStackSpaceExceedsOneByte cfgFalse |
#define | defRegisterUseConstant cfgTrue |
#define | defRegisterCount (((defRegisterUseCollect & 0x80) >> 5) + ((defRegisterUseCollect & 0x40) >> 4) + ((defRegisterUseCollect & 0x20) >> 3) + ((defRegisterUseCollect & 0x10) >> 2) + ((defRegisterUseCollect & 0x08) >> 1) + ((defRegisterUseCollect & 0x04)) + ((defRegisterUseCollect & 0x02) << 1) + ((defRegisterUseCollect & 0x01) << 2)) |
#define | defPriorityConstant cfgTrue |
#define | defStackSizeConstant cfgTrue |
#define | defTaskIncludeConstant cfgTrue |
#define | defInterruptStartConstant cfgTrue |
#define | defTimeSliceConstant cfgTrue |
#define | InitialStartModifier(I, S) ( ( ((I)|(S)) == (defRestartRunning | defInitialSharePresent)) ? (defRestartShared | defInitialSharePresent) : ((I)|(S)) ) |
#define | InitialShared(X) ((StackIsShared(X)) ? (defInitialSharePresent) : (defInitialShareAbsent)) |
#define | defInitialStatusConstant cfgTrue |
#define | defInitialStatusFixed ( InitialStartModifier(((defTaskIncludeFixed) & (defInitialStartGetMask)),defInitialSharedFixed) | ((defInterruptStartFixed) & (defInitialInterruptGetMask)) | (((defPriorityFixed) << defBasePrioShift) & defInitialPriorityGetMask) ) |
#define | defCapabilitiesFull cfgTrue |
#define | Tstack Tuint08 |
#define | defStackSizeExceedsOneByte cfgFalse |
#define | RegisterCheckReduced(X) (RegisterCheck(X)) |
#define | defRegisterCheckCollect ( 0x00 ) |
#define | defRegisterCheckTest ( 1 == 1 ) |
#define | defRegisterCheckConstant cfgTrue |
#define | defSlotDepthCollect ( 0x00 ) |
#define | defSlotDepthConstant cfgTrue |
#define | defSlotOneOnly cfgFalse |
#define | defSlotTwoOnly cfgFalse |
#define | defSlotsMore cfgFalse |
#define | VN_00 FN_00 |
#define | VN_01 FN_01 |
#define | defFsNumberOfPreFiles 2 |
#define | defTotalPreFileSpace ( (Tuint16) FileSpace(VN_00) + FileSpace(VN_01) ) |
#define | defFilePreSpaceFixed ( FileSpace(VN_00) ) |
#define | defFilePreSpaceTest ( ( (defFilePreSpaceFixed) == (FileSpace(VN_01)) ) ) |
#define | defFsNumberOfAllFiles ( defFsNumberOfPreFiles ) |
#define | defFsNumberOfDefFiles 0 |
#define | defTotalFatFileSpace 0 |
#define | defTotalDefFileSpace 0 |
#define | defTotalAllFileSpace ( defTotalPreFileSpace ) |
#define | defFileSpaceFreeTotal ( cfgSysFsStorageSpace - defTotalAllFileSpace) |
#define | defFileSpaceFreeStart ( defTotalAllFileSpace ) |
#define | defFilePreSpaceConstant cfgFalse |
#define | defTaskNumberWatchdogBegin 0 |
#define | BN_00 TN_00 |
#define | BN_01 TN_01 |
#define | BN_02 TN_02 |
#define | BN_03 TN_03 |
#define | BN_04 TN_04 |
#define | BN_05 TN_05 |
#define | BN_06 TN_06 |
#define | BN_07 TN_07 |
#define | BN_08 TN_08 |
#define | BN_09 TN_09 |
#define | BN_10 TN_10 |
#define | BN_11 TN_11 |
#define | BN_12 TN_12 |
#define | BN_13 TN_13 |
#define | BN_14 TN_14 |
#define | BN_15 TN_15 |
#define | defTaskNumberWatchdogEnd 16 |
#define | defNumberOfWatchdogTasks (defTaskNumberWatchdogEnd - defTaskNumberWatchdogBegin) |
#define | defTaskNumberDelayBegin 0 |
#define | defTaskNumberDelayEnd 16 |
#define | defNumberOfDelayTasks (defTaskNumberDelayEnd - defTaskNumberDelayBegin) |
#define | defTaskNumberSynchronizationBegin 0 |
#define | defTaskNumberSynchronizationEnd defNumberOfTasksWithSlot |
#define | defNumberOfSynchronizationTasks defNumberOfTasksWithSlot |
#define | defTaskNumberFileSystemBegin 0 |
#define | defTaskNumberFileSystemEnd 16 |
#define | defNumberOfFileSystemTasks (defTaskNumberFileSystemEnd - defTaskNumberFileSystemBegin) |
#define | defUseFsOnMultipleTasks cfgTrue |
#define | defTaskNumberEventBegin 0 |
#define | defTaskNumberEventEnd 16 |
#define | defNumberOfEventTasks (defTaskNumberEventEnd - defTaskNumberEventBegin) |
#define | defNumberEventBegin 0 |
#define | defNumberEventEnd 8 |
#define BN_00 TN_00 |
Definition at line 4611 of file femtoos_order.h.
#define BN_01 TN_01 |
Definition at line 4612 of file femtoos_order.h.
#define BN_02 TN_02 |
Definition at line 4613 of file femtoos_order.h.
#define BN_03 TN_03 |
Definition at line 4614 of file femtoos_order.h.
#define BN_04 TN_04 |
Definition at line 4615 of file femtoos_order.h.
#define BN_05 TN_05 |
Definition at line 4616 of file femtoos_order.h.
#define BN_06 TN_06 |
Definition at line 4617 of file femtoos_order.h.
#define BN_07 TN_07 |
Definition at line 4618 of file femtoos_order.h.
#define BN_08 TN_08 |
Definition at line 4619 of file femtoos_order.h.
#define BN_09 TN_09 |
Definition at line 4620 of file femtoos_order.h.
#define BN_10 TN_10 |
Definition at line 4621 of file femtoos_order.h.
#define BN_11 TN_11 |
Definition at line 4622 of file femtoos_order.h.
#define BN_12 TN_12 |
Definition at line 4623 of file femtoos_order.h.
#define BN_13 TN_13 |
Definition at line 4624 of file femtoos_order.h.
#define BN_14 TN_14 |
Definition at line 4625 of file femtoos_order.h.
#define BN_15 TN_15 |
Definition at line 4626 of file femtoos_order.h.
#define CheckEventNumber | ( | Event | ) | ( ((Event < defNumberEventBegin) || (Event >= defNumberEventEnd)) ? (-1) : (defEqualAuxiliaryRegisters) ? (((Event) == devAuxSysRegBit) ? (-1) : (Event)) : (Event) ) |
Functions to check the use of the parameters inside macro's.
It generates the value -1 if the event number is illegal. If you this will issue a warning at compile time (do not ignore it!) and an fatIllegalEvent at runtime.
Definition at line 3233 of file femtoos_order.h.
#define defAllSharedStack cfgFalse |
Definition at line 3434 of file femtoos_order.h.
#define defCapabilitiesFull cfgTrue |
Definition at line 3842 of file femtoos_order.h.
#define defCapabilitiesTest ( 1 == 1 ) |
Definition at line 3471 of file femtoos_order.h.
#define defDenseSharedStack cfgTrue |
#define defFilePreSpaceConstant cfgFalse |
Definition at line 4593 of file femtoos_order.h.
#define defFilePreSpaceFixed ( FileSpace(VN_00) ) |
Definition at line 4507 of file femtoos_order.h.
Referenced by privFileLocation(), and privFileSpace().
#define defFilePreSpaceTest ( ( (defFilePreSpaceFixed) == (FileSpace(VN_01)) ) ) |
Definition at line 4508 of file femtoos_order.h.
#define defFileSpaceFreeStart ( defTotalAllFileSpace ) |
Definition at line 4588 of file femtoos_order.h.
#define defFileSpaceFreeTotal ( cfgSysFsStorageSpace - defTotalAllFileSpace) |
Definition at line 4587 of file femtoos_order.h.
#define defFsNumberOfAllFiles ( defFsNumberOfPreFiles ) |
Definition at line 4580 of file femtoos_order.h.
Referenced by ExeLedLoad(), ExeLedSave(), HandleRecall(), HandleStore(), privCheckFileSpecsReading(), privCheckFileSpecsWriting(), and privFileLocation().
#define defFsNumberOfDefFiles 0 |
Definition at line 4581 of file femtoos_order.h.
#define defFsNumberOfPreFiles 2 |
Definition at line 4466 of file femtoos_order.h.
Referenced by privFileLocation(), and privFileSpace().
#define defInitialSharedFixed defInitialSharePresent |
Definition at line 3452 of file femtoos_order.h.
#define defInitialStatusConstant cfgTrue |
Definition at line 3835 of file femtoos_order.h.
#define defInitialStatusFixed ( InitialStartModifier(((defTaskIncludeFixed) & (defInitialStartGetMask)),defInitialSharedFixed) | ((defInterruptStartFixed) & (defInitialInterruptGetMask)) | (((defPriorityFixed) << defBasePrioShift) & defInitialPriorityGetMask) ) |
#define defInterruptStartConstant cfgTrue |
Definition at line 3800 of file femtoos_order.h.
#define defInterruptStartFixed ( 0x00 ) |
Definition at line 3472 of file femtoos_order.h.
#define defInterruptStartTest ( 1 == 1 ) |
Definition at line 3473 of file femtoos_order.h.
#define defNonSwitchingCallPresent cfgTrue |
defNonSwitchingCallPresent indicates if any call is used which does not switch to OS.
If so, we must include some code to enter/exit system critical regions. If you add a function to the Femto OS api, make sure you include it in the conditionals. Usually these routines contain privEnterGlobalCritical() or privEnterSysCritical() TODO: This seems not the most maintainable way to solve this
Definition at line 137 of file femtoos_order.h.
#define defNumberEventBegin 0 |
#define defNumberEventEnd 8 |
#define defNumberMutexBegin defNumberQueuEnd |
Definition at line 2446 of file femtoos_order.h.
#define defNumberMutexEnd 16 |
#define defNumberOfDelayTasks (defTaskNumberDelayEnd - defTaskNumberDelayBegin) |
Definition at line 4905 of file femtoos_order.h.
#define defNumberOfEventTasks (defTaskNumberEventEnd - defTaskNumberEventBegin) |
Definition at line 5095 of file femtoos_order.h.
#define defNumberOfFileSystemTasks (defTaskNumberFileSystemEnd - defTaskNumberFileSystemBegin) |
Definition at line 5001 of file femtoos_order.h.
#define defNumberOfMutexes (defNumberMutexEnd - defNumberMutexBegin) |
Definition at line 2447 of file femtoos_order.h.
#define defNumberOfQueus (defNumberQueuEnd - defNumberQueuBegin) |
Definition at line 1863 of file femtoos_order.h.
#define defNumberOfSharedTasks (defTNSC00 + defTNSC01 + defTNSC02 + defTNSC03 + defTNSC04 + defTNSC05 + defTNSC06 + defTNSC07 + defTNSC08 + defTNSC09 + defTNSC10 + defTNSC11 + defTNSC12 + defTNSC13 + defTNSC14 + defTNSC15) |
Definition at line 3350 of file femtoos_order.h.
#define defNumberOfSlots (defNumberWaitEnd - defNumberQueuBegin) |
The maximum number of slots.
The slots range is 1..15. Slot 0 is used to indicate a particular slot is free. This number gives the number of queus, mutexes and waits.
Definition at line 3050 of file femtoos_order.h.
#define defNumberOfSynchronizationTasks defNumberOfTasksWithSlot |
Definition at line 4921 of file femtoos_order.h.
#define defNumberOfTasks 0 |
Definition at line 1486 of file femtoos_order.h.
Referenced by appLoop_LEDtask0(), appLoop_LEDtask1(), appLoop_LEDtask2(), appLoop_LEDtask3(), appLoop_LEDtask4(), appLoop_LEDtask5(), appLoop_LEDtask6(), appLoop_LEDtask7(), genAddtoTickCount(), genGetLastWakeTime(), genGetPriority(), genGetTaskname(), genLogTask(), genResume(), genSetPriority(), genSuspend(), HandleCommand(), HandlePriority(), HandleRecreate(), main(), privCopyLoad(), privPutAllTasksToSleep(), privRecreateBody(), privSwitchContext(), privTerminateBody(), privTraceWatermarks(), privWakeupFromLowPower(), and SendProcessList().
#define defNumberOfTasksWithSlot 0 |
#define defNumberOfWaits (defNumberWaitEnd - defNumberWaitBegin) |
Definition at line 3031 of file femtoos_order.h.
#define defNumberOfWatchdogTasks (defTaskNumberWatchdogEnd - defTaskNumberWatchdogBegin) |
Definition at line 4818 of file femtoos_order.h.
#define defNumberQueuBegin 1 |
#define defNumberQueuEnd 3 |
Definition at line 1831 of file femtoos_order.h.
#define defNumberWaitBegin defNumberMutexEnd |
Definition at line 3030 of file femtoos_order.h.
#define defNumberWaitEnd 16 |
Definition at line 3025 of file femtoos_order.h.
#define defPriorityConstant cfgTrue |
Definition at line 3782 of file femtoos_order.h.
#define defPriorityFixed ( 0x00 ) |
Definition at line 3463 of file femtoos_order.h.
#define defPriorityTest ( 1 == 1 ) |
Definition at line 3464 of file femtoos_order.h.
#define defRegisterCheckCollect ( 0x00 ) |
Definition at line 3867 of file femtoos_order.h.
#define defRegisterCheckConstant cfgTrue |
Definition at line 3920 of file femtoos_order.h.
#define defRegisterCheckTest ( 1 == 1 ) |
Definition at line 3868 of file femtoos_order.h.
#define defRegisterCount (((defRegisterUseCollect & 0x80) >> 5) + ((defRegisterUseCollect & 0x40) >> 4) + ((defRegisterUseCollect & 0x20) >> 3) + ((defRegisterUseCollect & 0x10) >> 2) + ((defRegisterUseCollect & 0x08) >> 1) + ((defRegisterUseCollect & 0x04)) + ((defRegisterUseCollect & 0x02) << 1) + ((defRegisterUseCollect & 0x01) << 2)) |
#define defRegisterUseCollect ( 0x00 ) |
Definition at line 3460 of file femtoos_order.h.
#define defRegisterUseConstant cfgTrue |
Definition at line 3772 of file femtoos_order.h.
#define defRegisterUseFixed ( 0x00 ) |
Definition at line 3461 of file femtoos_order.h.
#define defRegisterUseTest ( 1 == 1 ) |
Definition at line 3462 of file femtoos_order.h.
#define defRegisterUseVariable (defRegisterUseCollect & (~defRegisterUseFixed)) |
Definition at line 3750 of file femtoos_order.h.
#define defReUseTaskInit cfgTrue |
Definition at line 44 of file femtoos_order.h.
#define defSharesConstant cfgFalse |
Definition at line 3445 of file femtoos_order.h.
#define defSlotDepthCollect ( 0x00 ) |
#define defSlotDepthConstant cfgTrue |
Definition at line 4054 of file femtoos_order.h.
#define defSlotOneOnly cfgFalse |
Definition at line 4055 of file femtoos_order.h.
#define defSlotsMore cfgFalse |
Definition at line 4057 of file femtoos_order.h.
#define defSlotTwoOnly cfgFalse |
Definition at line 4056 of file femtoos_order.h.
#define defStackSizeConstant cfgTrue |
Definition at line 3788 of file femtoos_order.h.
#define defStackSizeExceedsOneByte cfgFalse |
Definition at line 3852 of file femtoos_order.h.
#define defStackSizeFixed ( 0x00 ) |
#define defStackSizeHuge ( 1 == 0 ) |
Definition at line 3467 of file femtoos_order.h.
#define defStackSizeTest ( 1 == 1 ) |
Definition at line 3466 of file femtoos_order.h.
#define defStackSpaceExceedsOneByte cfgFalse |
Definition at line 3766 of file femtoos_order.h.
#define defStackSpaceTasks ( 0 ) |
Definition at line 3468 of file femtoos_order.h.
#define defStackSpaceTotal ( (defStackSpaceTasks) + (StackSizeOS) + (StackSizeISR) + (StackSizeShared)) |
Definition at line 3753 of file femtoos_order.h.
#define defTaskIncludeConstant cfgTrue |
Definition at line 3794 of file femtoos_order.h.
#define defTaskIncludeFixed ( 0x00 ) |
Definition at line 3469 of file femtoos_order.h.
#define defTaskIncludeTest ( 1 == 1 ) |
Definition at line 3470 of file femtoos_order.h.
#define defTaskNumberDelayBegin 0 |
Definition at line 4833 of file femtoos_order.h.
#define defTaskNumberDelayEnd 16 |
Definition at line 4869 of file femtoos_order.h.
#define defTaskNumberEventBegin 0 |
Definition at line 5023 of file femtoos_order.h.
Referenced by genCountEventBlocks(), and privEnterOS().
#define defTaskNumberEventEnd 16 |
Definition at line 5059 of file femtoos_order.h.
Referenced by genCountEventBlocks(), and privEnterOS().
#define defTaskNumberFileSystemBegin 0 |
#define defTaskNumberFileSystemEnd 16 |
#define defTaskNumberSharedBegin 0 |
#define defTaskNumberSharedEnd 16 |
#define defTaskNumberSynchronizationBegin 0 |
Definition at line 4919 of file femtoos_order.h.
#define defTaskNumberSynchronizationEnd defNumberOfTasksWithSlot |
Definition at line 4920 of file femtoos_order.h.
#define defTaskNumberWatchdogBegin 0 |
Definition at line 4610 of file femtoos_order.h.
Referenced by privIncrementTick(), and privSwitchContext().
#define defTaskNumberWatchdogEnd 16 |
#define defTimeSliceConstant cfgTrue |
Definition at line 3806 of file femtoos_order.h.
#define defTimeSliceFixed ( 0x00 ) |
Definition at line 3474 of file femtoos_order.h.
#define defTimeSliceTest ( 1 == 1 ) |
Definition at line 3475 of file femtoos_order.h.
#define defTNSC00 1 |
Definition at line 3255 of file femtoos_order.h.
#define defTNSC01 1 |
Definition at line 3261 of file femtoos_order.h.
#define defTNSC02 1 |
Definition at line 3267 of file femtoos_order.h.
#define defTNSC03 1 |
Definition at line 3273 of file femtoos_order.h.
#define defTNSC04 1 |
Definition at line 3279 of file femtoos_order.h.
#define defTNSC05 1 |
Definition at line 3285 of file femtoos_order.h.
#define defTNSC06 1 |
Definition at line 3291 of file femtoos_order.h.
#define defTNSC07 1 |
Definition at line 3297 of file femtoos_order.h.
#define defTNSC08 1 |
Definition at line 3303 of file femtoos_order.h.
#define defTNSC09 1 |
Definition at line 3309 of file femtoos_order.h.
#define defTNSC10 1 |
Definition at line 3315 of file femtoos_order.h.
#define defTNSC11 1 |
Definition at line 3321 of file femtoos_order.h.
#define defTNSC12 1 |
Definition at line 3327 of file femtoos_order.h.
#define defTNSC13 1 |
Definition at line 3333 of file femtoos_order.h.
#define defTNSC14 1 |
Definition at line 3339 of file femtoos_order.h.
#define defTNSC15 1 |
Definition at line 3345 of file femtoos_order.h.
#define defTotalAllFileSpace ( defTotalPreFileSpace ) |
#define defTotalDefFileSpace 0 |
Definition at line 4583 of file femtoos_order.h.
#define defTotalFatFileSpace 0 |
Definition at line 4582 of file femtoos_order.h.
#define defTotalPreFileSpace ( (Tuint16) FileSpace(VN_00) + FileSpace(VN_01) ) |
#define defUseDelay cfgTrue |
Definition at line 38 of file femtoos_order.h.
#define defUseFsField cfgTrue |
Definition at line 50 of file femtoos_order.h.
#define defUseFsOnMultipleTasks cfgTrue |
Definition at line 5010 of file femtoos_order.h.
#define defUseIsrStack cfgTrue |
Definition at line 32 of file femtoos_order.h.
#define defUseMutexes cfgTrue |
Definition at line 80 of file femtoos_order.h.
#define defUseQueus cfgTrue |
Definition at line 74 of file femtoos_order.h.
#define defUseSharedStack cfgTrue |
Definition at line 3426 of file femtoos_order.h.
Referenced by privSwitchContext(), and privWakeupFromLowPower().
#define defUseTaskLevels cfgTrue |
Definition at line 68 of file femtoos_order.h.
#define defUseTaskMonitor cfgTrue |
Definition at line 56 of file femtoos_order.h.
#define defUseTaskSlot cfgFalse |
Definition at line 64 of file femtoos_order.h.
#define defUseWaits cfgTrue |
Definition at line 86 of file femtoos_order.h.
#define InitialShared | ( | X | ) | ((StackIsShared(X)) ? (defInitialSharePresent) : (defInitialShareAbsent)) |
Definition at line 3832 of file femtoos_order.h.
#define InitialStartModifier | ( | I, | |||
S | ) | ( ( ((I)|(S)) == (defRestartRunning | defInitialSharePresent)) ? (defRestartShared | defInitialSharePresent) : ((I)|(S)) ) |
Definition at line 3830 of file femtoos_order.h.
#define LN_01 SN_01 |
Definition at line 1527 of file femtoos_order.h.
#define LN_02 SN_02 |
Definition at line 1534 of file femtoos_order.h.
#define LN_03 SN_01 |
Definition at line 1875 of file femtoos_order.h.
#define LN_04 SN_02 |
Definition at line 1913 of file femtoos_order.h.
#define LN_05 SN_03 |
Definition at line 1951 of file femtoos_order.h.
#define LN_06 SN_04 |
Definition at line 1989 of file femtoos_order.h.
#define LN_07 SN_05 |
Definition at line 2027 of file femtoos_order.h.
#define LN_08 SN_06 |
Definition at line 2065 of file femtoos_order.h.
#define LN_09 SN_07 |
Definition at line 2103 of file femtoos_order.h.
#define LN_10 SN_08 |
Definition at line 2141 of file femtoos_order.h.
#define LN_11 SN_09 |
Definition at line 2179 of file femtoos_order.h.
#define LN_12 SN_10 |
Definition at line 2217 of file femtoos_order.h.
#define LN_13 SN_11 |
Definition at line 2255 of file femtoos_order.h.
#define LN_14 SN_12 |
Definition at line 2293 of file femtoos_order.h.
#define LN_15 SN_13 |
Definition at line 2331 of file femtoos_order.h.
#define PassIfSlotIsMutex | ( | SlotNumber | ) | ( (((SlotNumber)>=defNumberMutexBegin) && ((SlotNumber)<defNumberMutexEnd)) ? (SlotNumber) : defCheckSlotTypeError ) |
Definition at line 3245 of file femtoos_order.h.
#define PassIfSlotIsQueu | ( | SlotNumber | ) | ( (((SlotNumber)>=defNumberQueuBegin) && ((SlotNumber)<defNumberQueuEnd)) ? (SlotNumber) : defCheckSlotTypeError ) |
Definition at line 3246 of file femtoos_order.h.
#define PassIfSlotIsWait | ( | SlotNumber | ) | ( (((SlotNumber)>=defNumberWaitBegin) && ((SlotNumber)<defNumberWaitEnd)) ? (SlotNumber) : defCheckSlotTypeError ) |
Functions which check if a slot has been properly used.
Definition at line 3244 of file femtoos_order.h.
#define preBitClr |
Use this function as general method to clear bits.
Use this function to clear a one or more bits on a variable, or to modify one or more bits on a variable. For the AVR, if you use something like PORTA = preBitClr1(PORTA,3), it is compiled to an atomic instruction. The method is used internally since it can also deal with the cfgUndefined constant (which is ignored).
Note: n0 .. n7 should be constants and not variables.
Definition at line 3132 of file femtoos_order.h.
#define preBitClr1 | ( | p, | |||
n0 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF))) ) ) |
Definition at line 3133 of file femtoos_order.h.
Referenced by genFireEventSet(), portDisableTickInterrupts(), portEnterTickInterrupts(), portFSWriteByte(), portRestoreContext(), portSaveContext(), portSetupTimerInterrupt(), portShortDelay(), portSleep(), and portTrace().
#define preBitClr2 | ( | p, | |||
n0, | |||||
n1 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF))) ) ) |
Definition at line 3134 of file femtoos_order.h.
Referenced by portRestoreContext(), portShortDelay(), and portSleep().
#define preBitClr3 | ( | p, | |||
n0, | |||||
n1, | |||||
n2 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF))) ) ) |
#define preBitClr4 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF))) ) ) |
#define preBitClr5 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF))) ) ) |
#define preBitClr6 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4, | |||||
n5 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF))) ) ) |
Definition at line 3138 of file femtoos_order.h.
#define preBitClr7 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4, | |||||
n5, | |||||
n6 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF))) ) ) |
Definition at line 3139 of file femtoos_order.h.
#define preBitClr8 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4, | |||||
n5, | |||||
n6, | |||||
n7 | ) | ( p & (Tuint08)(0xFF & ~( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF)) | ((Tuint16)1<<((n7) & 0xFF))) ) ) |
Definition at line 3140 of file femtoos_order.h.
#define preBitIsClr | ( | p, | |||
q | ) | ( (p & (1<<q)) == 0 ) |
Test if a bit on a particular place is cleared.
Use this to quickly test if a bit is cleared on a location (0..7). On the AVR this is compiled to a atomic test if possible.
Definition at line 3156 of file femtoos_order.h.
Referenced by portShortDelay(), and portTrace().
#define preBitIsSet | ( | p, | |||
q | ) | ( (p & (1<<q)) == (1<<q) ) |
Test if a bit on a particular place is set.
Use this to quickly test if a bit is set on a location (0..7). On the AVR this is compiled to a atomic test if possible.
Definition at line 3148 of file femtoos_order.h.
Referenced by devSigExternalInt(), portCheckTimer(), portReadTimer(), portSleep(), and portTrace().
#define preBitSet |
Use this function as general bit setter.
Use this function to set a one or more bits on a variable, or to modify one or more bits on a variable. For the AVR, if you use something like PORTA = preBitSet1(PORTA,3), it is compiled to an atomic instruction. The method is used internally since it can also deal with the cfgUndefined constant (which is ignored).
Note: n0 .. n7 should be constants and not variables.
Definition at line 3111 of file femtoos_order.h.
#define preBitSet1 | ( | p, | |||
n0 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF))) ) ) |
Definition at line 3112 of file femtoos_order.h.
Referenced by appBoot(), portCheckTimer(), portEnableTickInterrupts(), portExitTickInterrupts(), portIdle(), portReadAndResetTimer(), portReboot(), portRestoreContext(), portSaveContext(), portSetupTimerInterrupt(), portShortDelay(), portSleep(), and portTrace().
#define preBitSet2 | ( | p, | |||
n0, | |||||
n1 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF))) ) ) |
#define preBitSet3 | ( | p, | |||
n0, | |||||
n1, | |||||
n2 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF))) ) ) |
#define preBitSet4 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF))) ) ) |
#define preBitSet5 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF))) ) ) |
Definition at line 3116 of file femtoos_order.h.
#define preBitSet6 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4, | |||||
n5 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF))) ) ) |
Definition at line 3117 of file femtoos_order.h.
#define preBitSet7 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4, | |||||
n5, | |||||
n6 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF))) ) ) |
Definition at line 3118 of file femtoos_order.h.
#define preBitSet8 | ( | p, | |||
n0, | |||||
n1, | |||||
n2, | |||||
n3, | |||||
n4, | |||||
n5, | |||||
n6, | |||||
n7 | ) | ( p | (Tuint08)(0xFF & ( ((Tuint16)1<<((n0) & 0xFF)) | ((Tuint16)1<<((n1) & 0xFF)) | ((Tuint16)1<<((n2) & 0xFF)) | ((Tuint16)1<<((n3) & 0xFF)) | ((Tuint16)1<<((n4) & 0xFF)) | ((Tuint16)1<<((n5) & 0xFF)) | ((Tuint16)1<<((n6) & 0xFF)) | ((Tuint16)1<<((n7) & 0xFF))) ) ) |
Definition at line 3119 of file femtoos_order.h.
#define preEqualMacros | ( | A, | |||
B | ) | (strcmp(DefToString(A),DefToString(B))==0) |
Use to check if two macro's are equal.
This is a handy function to test if two macros are equal if they do not expand down to a number. Note it can only be used in c-like if statements (not in preprocessor code) but that does not matter since the compiler optimizer sees that the argument can be fully evaluated at compile time.
Definition at line 3043 of file femtoos_order.h.
Referenced by portSetupTimerInterrupt(), and portShortDelay().
#define preEventLocationOf | ( | EventName | ) | ( (strcmp(DefToString(EN_00),#EventName)==0) ? 0x01 : (strcmp(DefToString(EN_01),#EventName)==0) ? 0x02 : (strcmp(DefToString(EN_02),#EventName)==0) ? 0x04 : (strcmp(DefToString(EN_03),#EventName)==0) ? 0x08 : (strcmp(DefToString(EN_04),#EventName)==0) ? 0x10 : (strcmp(DefToString(EN_05),#EventName)==0) ? 0x20 : (strcmp(DefToString(EN_06),#EventName)==0) ? 0x40 : (strcmp(DefToString(EN_07),#EventName)==0) ? 0x80 : -1 ) |
Use this to directly transform the name of an Event to the correct bit location.
Equivalent with (1 << preEventNumberOf(EventName)) except for non existent names.
Definition at line 3224 of file femtoos_order.h.
#define preEventNumberOf | ( | EventName | ) | ( (strcmp(DefToString(EN_00),#EventName)==0) ? 0 : (strcmp(DefToString(EN_01),#EventName)==0) ? 1 : (strcmp(DefToString(EN_02),#EventName)==0) ? 2 : (strcmp(DefToString(EN_03),#EventName)==0) ? 3 : (strcmp(DefToString(EN_04),#EventName)==0) ? 4 : (strcmp(DefToString(EN_05),#EventName)==0) ? 5 : (strcmp(DefToString(EN_06),#EventName)==0) ? 6 : (strcmp(DefToString(EN_07),#EventName)==0) ? 7 : -1 ) |
Returns the number of an event named "EventName".
Using this function it is possible to use static names for the event instead of numbers. It returns the event number of an event with the compile time name "EventName". This function is implicitly called in all 'OnName' variants of the API calls. Make sure you correctly spell the name, since that is not checked here (and will give rise to a compile time warning only) Preferably uses names instead of numbers in your code since the numbering depends an the inclusions and may differ at different compiles. Substitution of the numbers is done at compile time and does not require code. Cannot be used in preprocessor statements.
Definition at line 3217 of file femtoos_order.h.
#define preFileDefined | ( | FileName | ) | ( (FileSpace(FileName) > 0 ) ) |
Use this function to see if a file is defined on a file name.
Use this function to see if a file is defined on a file name. Can be used in preproccessor statements
Definition at line 3098 of file femtoos_order.h.
#define preFileNumberOf | ( | FileName | ) | ( (strcmp(DefToString(VN_00),#FileName)==0) ? 0 : (strcmp(DefToString(VN_01),#FileName)==0) ? 1 : (strcmp(DefToString(VN_02),#FileName)==0) ? 2 : (strcmp(DefToString(VN_03),#FileName)==0) ? 3 : (strcmp(DefToString(VN_04),#FileName)==0) ? 4 : (strcmp(DefToString(VN_05),#FileName)==0) ? 5 : (strcmp(DefToString(VN_06),#FileName)==0) ? 6 : (strcmp(DefToString(VN_07),#FileName)==0) ? 7 : (strcmp(DefToString(VN_08),#FileName)==0) ? 8 : (strcmp(DefToString(VN_09),#FileName)==0) ? 9 : (strcmp(DefToString(VN_10),#FileName)==0) ? 10 : (strcmp(DefToString(VN_11),#FileName)==0) ? 11 : (strcmp(DefToString(VN_12),#FileName)==0) ? 12 : (strcmp(DefToString(VN_13),#FileName)==0) ? 13 : (strcmp(DefToString(VN_14),#FileName)==0) ? 14 : (strcmp(DefToString(VN_15),#FileName)==0) ? 15 : -1 ) |
Returns the file number of a file with the name "FileName".
Using this function it is possible to use static names for the files instead of numbers. It returns the file number of a file with the compile time name "FileName". This function is implicitly called in all 'OnName' variants of the API calls. Make sure you correctly spell the name, since that is not checked here (and will give rise to a compile time warning only). Preferably uses names instead of numbers in your code since the numbering depends an the inclusions and may differ at different compiles. Substitution of the numbers is done at compile time and does not require code. Cannot be used in preprocessor statements.
Definition at line 3202 of file femtoos_order.h.
#define preMutexDefined | ( | SlotName | ) | ( (SlotUse(SlotName) == cfgUseAsMutex) ) |
Use to see if a mutex is defined on a slot name.
Use this function to see if a mutex is defined on a slot name. Can be used in preproccessor statements
Definition at line 3082 of file femtoos_order.h.
#define preQueuDefined | ( | SlotName | ) | ( (SlotUse(SlotName) == cfgUseAsQueu) ) |
Use to see if a queu is defined on a slot name.
Use this function to see if a queu is defined on a slot name. Can be used in preproccessor statements
Definition at line 3074 of file femtoos_order.h.
#define preSlotDefined | ( | SlotName | ) | ( (SlotUse(SlotName) != cfgUseAsNon) ) |
Use to see if a slot is in use.
Use this function to see if a slot is in use. Can be used in preproccessor statements
Definition at line 3066 of file femtoos_order.h.
#define preSlotNumberOf | ( | SlotName | ) | ( (strcmp(DefToString(LN_01),#SlotName)==0) ? 1 : (strcmp(DefToString(LN_02),#SlotName)==0) ? 2 : (strcmp(DefToString(LN_03),#SlotName)==0) ? 3 : (strcmp(DefToString(LN_04),#SlotName)==0) ? 4 : (strcmp(DefToString(LN_05),#SlotName)==0) ? 5 : (strcmp(DefToString(LN_06),#SlotName)==0) ? 6 : (strcmp(DefToString(LN_07),#SlotName)==0) ? 7 : (strcmp(DefToString(LN_08),#SlotName)==0) ? 8 : (strcmp(DefToString(LN_09),#SlotName)==0) ? 9 : (strcmp(DefToString(LN_10),#SlotName)==0) ? 10 : (strcmp(DefToString(LN_11),#SlotName)==0) ? 11 : (strcmp(DefToString(LN_12),#SlotName)==0) ? 12 : (strcmp(DefToString(LN_13),#SlotName)==0) ? 13 : (strcmp(DefToString(LN_14),#SlotName)==0) ? 14 : (strcmp(DefToString(LN_15),#SlotName)==0) ? 15 : -1 ) |
Returns the slot number of a slot with the name "SlotName".
Using this function it is possible to use static names for the slots instead of numbers. It returns the slot number of a slot with the compile time name "SlotName". This function is implicitly called in all 'OnName' variants of the API calls. Make sure you correctly spell the name, since that is not checked here (and will give rise to a compile time warning only). Preferably uses names instead of numbers in your code since the numbering depends an the inclusions and may differ at different compiles. Substitution of the numbers is done at compile time and does not require code. Cannot be used in preprocessor statements.
Definition at line 3187 of file femtoos_order.h.
#define preTaskDefined | ( | TaskName | ) | ( (TaskInclude(TaskName) != cfgExclude) ) |
Use to see if a task is defined and included in the source.
Use this function to see if a task is defined and included in the source Can be used in preproccessor statements
Definition at line 3058 of file femtoos_order.h.
#define preTaskNumberOf | ( | TaskName | ) | ( (strcmp(DefToString(defCurrentTaskName),#TaskName)==0) ? defCurrentTaskNumber : (strcmp(DefToString(TN_00),#TaskName)==0) ? 0 : (strcmp(DefToString(TN_01),#TaskName)==0) ? 1 : (strcmp(DefToString(TN_02),#TaskName)==0) ? 2 : (strcmp(DefToString(TN_03),#TaskName)==0) ? 3 : (strcmp(DefToString(TN_04),#TaskName)==0) ? 4 : (strcmp(DefToString(TN_05),#TaskName)==0) ? 5 : (strcmp(DefToString(TN_06),#TaskName)==0) ? 6 : (strcmp(DefToString(TN_07),#TaskName)==0) ? 7 : (strcmp(DefToString(TN_08),#TaskName)==0) ? 8 : (strcmp(DefToString(TN_09),#TaskName)==0) ? 9 : (strcmp(DefToString(TN_10),#TaskName)==0) ? 10 : (strcmp(DefToString(TN_11),#TaskName)==0) ? 11 : (strcmp(DefToString(TN_12),#TaskName)==0) ? 12 : (strcmp(DefToString(TN_13),#TaskName)==0) ? 13 : (strcmp(DefToString(TN_14),#TaskName)==0) ? 14 : (strcmp(DefToString(TN_15),#TaskName)==0) ? 15 : -1 ) |
Returns the task number of a task with the name "TaskName".
Using this function it is possible to use static names for the tasks instead of numbers. It returns the task number of a task with the compile time name "TaskName". This does not equal the task name that is embedded in the code, that may be different or even absent). This function is implicitly called in all 'OnName' variants of the API calls. Make sure you correctly spell the name, since that is not checked here (and will give rise to a compile time warning only). Preferably uses names instead of numbers in your code since the numbering depends an the inclusions and may differ at different compiles. Substitution of the numbers is done at compile time and does not require code. Cannot be used in preprocessor statements.
Definition at line 3172 of file femtoos_order.h.
#define preWaitDefined | ( | SlotName | ) | ( (SlotUse(SlotName) == cfgUseAsWait) ) |
Use this function to see if a wait is defined on a slot name.
Use this function to see if a wait is defined on a slot name. Can be used in preproccessor statements
Definition at line 3090 of file femtoos_order.h.
#define RegisterCheckReduced | ( | X | ) | (RegisterCheck(X)) |
Definition at line 3864 of file femtoos_order.h.
#define Tstack Tuint08 |
#define VN_00 FN_00 |
Definition at line 4126 of file femtoos_order.h.
#define VN_01 FN_01 |
Definition at line 4133 of file femtoos_order.h.