The types defined in this file may change depending on the target architecture. You may also try to optimize the size of the various types in order to privilege size or performance, be careful in doing so.
◆ ROMCONST
ROM constant modifier.
- Note
- It is set to use the "const" keyword in this port.
Definition at line 63 of file chtypes.h.
◆ NOINLINE
#define NOINLINE __attribute__((noinline)) |
Makes functions not inlineable.
- Note
- If the compiler does not support such attribute then the realtime counter precision could be degraded.
Definition at line 70 of file chtypes.h.
◆ PORT_THD_FUNCTION
#define PORT_THD_FUNCTION |
( |
|
tname, |
|
|
|
arg |
|
) |
| void tname(void *arg) |
Optimized thread function declaration macro.
Definition at line 75 of file chtypes.h.
◆ PACKED_VAR
#define PACKED_VAR __attribute__((packed)) |
Packed variable specifier.
Definition at line 80 of file chtypes.h.
◆ ALIGNED_VAR
#define ALIGNED_VAR |
( |
|
n | ) |
__attribute__((aligned(n))) |
Memory alignment enforcement for variables.
Definition at line 85 of file chtypes.h.
◆ SIZEOF_PTR
Size of a pointer.
- Note
- To be used where the sizeof operator cannot be used, preprocessor expressions for example.
Definition at line 92 of file chtypes.h.
◆ REVERSE_ORDER
True if alignment is low-high in current architecture.
Definition at line 97 of file chtypes.h.
◆ rtcnt_t
Realtime counter.
Definition at line 43 of file chtypes.h.
◆ rttime_t
Realtime accumulator.
Definition at line 44 of file chtypes.h.
◆ syssts_t
System status word.
Definition at line 45 of file chtypes.h.
◆ tmode_t
◆ tstate_t
◆ trefs_t
Thread references counter.
Definition at line 48 of file chtypes.h.
◆ tslices_t
Thread time slices counter.
Definition at line 49 of file chtypes.h.
◆ tprio_t
Thread priority.
Definition at line 50 of file chtypes.h.
◆ msg_t
Inter-thread message.
Definition at line 51 of file chtypes.h.
◆ eventid_t
Numeric event identifier.
Definition at line 52 of file chtypes.h.
◆ eventmask_t
Mask of event identifiers.
Definition at line 53 of file chtypes.h.
◆ eventflags_t
Mask of event flags.
Definition at line 54 of file chtypes.h.
◆ cnt_t
Generic signed counter.
Definition at line 55 of file chtypes.h.
◆ ucnt_t
Generic unsigned counter.
Definition at line 56 of file chtypes.h.