17 #ifndef Q_USE_STDINT_H
18 #define Q_USE_STDINT_H ( 1 )
21 #if ( Q_USE_STDINT_H != 1 )
22 #warning Disposing standard types can cause portability issues and undefined behaviors. QuarkTS produce similar definitions based on the common sizes of native types, however, this sizes can vary because they are implementation-defined across different compilers and cores. Use this setting at your own risk.
26 #define NULL ( (void*)0 )
29 #define Q_UNUSED(arg) (void)(arg)
39 #if ( Q_USE_STDINT_H == 1 )
58 #define INT8_MIN ( -128 )
61 #define INT8_MAX ( 127 )
64 #define UINT8_MAX ( 255U )
67 #define INT16_MIN ( -32768 )
70 #define INT16_MAX ( 32767 )
73 #define UINT16_MAX ( 65535U )
76 #define INT32_MIN ( -2147483647-1 )
79 #define INT32_MAX ( 2147483647 )
82 #define UINT32_MAX ( 4294967295U )
157 #define qFalse ( (qBool_t)0x00U )
162 #define qTrue ( (qBool_t)0x01U )
167 #define qEnabled ( (qState_t)0x01U )
172 #define qDisabled ( (qState_t)0x00U )
177 #define qAwake ( 2U )
182 #define qAsleep ( 3U )
187 #define qLink ( qTrue )
192 #define qUnLink ( qFalse )
195 #define qIgnore ( (qBool_t)0xFEU )
196 #define qLINK ( qTrue )
197 #define qUNLINK ( qFalse )
198 #define qATTACH ( qTrue )
199 #define qDETACH ( qFalse )
200 #define qAttach ( qTrue )
201 #define qDetach ( qFalse )
207 #define qResponseTimeout ( (qBool_t)0x02U )
212 #define qRising ( (qBool_t)0x03U )
217 #define qFalling ( (qBool_t)0x04U )
222 #define qUnknown ( (qBool_t)0xFFU )
227 #define qRESPONSETIMEOUT ( qResponseTimeout )
228 #define qRISING ( qRising )
229 #define qFALLING ( qFalling )
230 #define qUNKNOWN ( qUnknown )
double qFloat64_t
A type to instantiate a double-precision variable of 64-bits IEEE 754.
Definition qtypes.h:117
qUINT32_t qCycles_t
A type to instantiate a variable that hold the number of task cycles.
Definition qtypes.h:152
qUINT8_t qBool_t
A type to instantiate an OS boolean variable.
Definition qtypes.h:139
int qBase_t
A type to instantiate a integer-base variable. This type is compiler implementation-defined.
Definition qtypes.h:105
uint8_t qUINT8_t
Unsigned integer type with width of exactly 8 bits respectively.
Definition qtypes.h:44
size_t qIndex_t
A type to instantiate an OS index variable. Can store the maximum size of a theoretically possible ob...
Definition qtypes.h:146
qUINT8_t qByte_t
A type to instantiate a byte variable.
Definition qtypes.h:99
qINT32_t qIteration_t
A type to instantiate a variable that hold the number of task iterations.
Definition qtypes.h:129
qUINT8_t qState_t
A type to instantiate an OS state value.
Definition qtypes.h:134
int16_t qINT16_t
Signed integer type with width of exactly 16 bits respectively.
Definition qtypes.h:53
uint32_t qUINT32_t
Unsigned integer type with width of exactly 32 bits respectively.
Definition qtypes.h:48
int32_t qINT32_t
Signed integer type with width of exactly 32 bits respectively.
Definition qtypes.h:55
uint16_t qUINT16_t
Unsigned integer type with width of exactly 16 bits respectively.
Definition qtypes.h:46
int8_t qINT8_t
Signed integer type with width of exactly 8 bits respectively.
Definition qtypes.h:51
qUINT8_t qPriority_t
A type to instantiate a variable to hold the priority value of a task.
Definition qtypes.h:123
float qFloat32_t
A type to instantiate a single-precision variable of 32-bits IEEE 754.
Definition qtypes.h:111