ChibiOS  0.0.0
Port Types
Collaboration diagram for Port Types:

Detailed Description

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.

Macros

#define ROMCONST   const
 ROM constant modifier. More...
 
#define NOINLINE   __attribute__((noinline))
 Makes functions not inlineable. More...
 
#define PORT_THD_FUNCTION(tname, arg)   void tname(void *arg)
 Optimized thread function declaration macro. More...
 
#define PACKED_VAR   __attribute__((packed))
 Packed variable specifier. More...
 
#define ALIGNED_VAR(n)   __attribute__((aligned(n)))
 Memory alignment enforcement for variables. More...
 
#define SIZEOF_PTR   4
 Size of a pointer. More...
 
#define REVERSE_ORDER   1
 True if alignment is low-high in current architecture. More...
 

Kernel types

typedef uint32_t rtcnt_t
 
typedef uint64_t rttime_t
 
typedef uint32_t syssts_t
 
typedef uint8_t tmode_t
 
typedef uint8_t tstate_t
 
typedef uint8_t trefs_t
 
typedef uint8_t tslices_t
 
typedef uint32_t tprio_t
 
typedef int32_t msg_t
 
typedef int32_t eventid_t
 
typedef uint32_t eventmask_t
 
typedef uint32_t eventflags_t
 
typedef int32_t cnt_t
 
typedef uint32_t ucnt_t
 

Macro Definition Documentation

#define ROMCONST   const

ROM constant modifier.

Note
It is set to use the "const" keyword in this port.

Definition at line 63 of file chtypes.h.

#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.

#define PORT_THD_FUNCTION (   tname,
  arg 
)    void tname(void *arg)

Optimized thread function declaration macro.

Definition at line 75 of file chtypes.h.

#define PACKED_VAR   __attribute__((packed))

Packed variable specifier.

Definition at line 80 of file chtypes.h.

#define ALIGNED_VAR (   n)    __attribute__((aligned(n)))

Memory alignment enforcement for variables.

Definition at line 85 of file chtypes.h.

#define SIZEOF_PTR   4

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.

#define REVERSE_ORDER   1

True if alignment is low-high in current architecture.

Definition at line 97 of file chtypes.h.

Typedef Documentation

typedef uint32_t rtcnt_t

Realtime counter.

Definition at line 43 of file chtypes.h.

typedef uint64_t rttime_t

Realtime accumulator.

Definition at line 44 of file chtypes.h.

typedef uint32_t syssts_t

System status word.

Definition at line 45 of file chtypes.h.

typedef uint8_t tmode_t

Thread flags.

Definition at line 46 of file chtypes.h.

typedef uint8_t tstate_t

Thread state.

Definition at line 47 of file chtypes.h.

typedef uint8_t trefs_t

Thread references counter.

Definition at line 48 of file chtypes.h.

typedef uint8_t tslices_t

Thread time slices counter.

Definition at line 49 of file chtypes.h.

typedef uint32_t tprio_t

Thread priority.

Definition at line 50 of file chtypes.h.

typedef int32_t msg_t

Inter-thread message.

Definition at line 51 of file chtypes.h.

typedef int32_t eventid_t

Numeric event identifier.

Definition at line 52 of file chtypes.h.

typedef uint32_t eventmask_t

Mask of event identifiers.

Definition at line 53 of file chtypes.h.

typedef uint32_t eventflags_t

Mask of event flags.

Definition at line 54 of file chtypes.h.

typedef int32_t cnt_t

Generic signed counter.

Definition at line 55 of file chtypes.h.

typedef uint32_t ucnt_t

Generic unsigned counter.

Definition at line 56 of file chtypes.h.