ChibiOS  21.6.0
Port Types
Collaboration diagram for Port Types:

Detailed Description

Macros

#define PORT_DOES_NOT_PROVIDE_TYPES
 This port does not define OS-related types. More...
 
#define ROMCONST   CC_ROMCONST
 ROM constant modifier. More...
 
#define NOINLINE   CC_NO_INLINE
 Makes functions not inlineable. More...
 
#define ALIGNED_VAR(n)   CC_ALIGN_DATA(n)
 Memory alignment enforcement for variables. More...
 
#define SIZEOF_PTR   PORT_ARCH_SIZEOF_DATA_PTR
 Size of a pointer. More...
 

Architecture data constraints

#define PORT_ARCH_SIZEOF_DATA_PTR   4
 
#define PORT_ARCH_SIZEOF_CODE_PTR   4
 
#define PORT_ARCH_REGISTERS_WIDTH   32
 
#define PORT_ARCH_REVERSE_ORDER   1
 

Port types

typedef uint32_t port_rtcnt_t
 Realtime counter. More...
 
typedef uint64_t port_rttime_t
 Realtime accumulator. More...
 
typedef uint32_t port_syssts_t
 System status word. More...
 
typedef uint64_t port_stkalign_t
 Type of stack and memory alignment enforcement. More...
 

Macro Definition Documentation

◆ PORT_DOES_NOT_PROVIDE_TYPES

#define PORT_DOES_NOT_PROVIDE_TYPES

This port does not define OS-related types.

Definition at line 78 of file chtypes.h.

◆ ROMCONST

#define ROMCONST   CC_ROMCONST

ROM constant modifier.

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

Definition at line 84 of file chtypes.h.

◆ NOINLINE

#define NOINLINE   CC_NO_INLINE

Makes functions not inlineable.

Note
If the compiler does not support such attribute then some time-dependent services could be degraded.

Definition at line 91 of file chtypes.h.

◆ ALIGNED_VAR

#define ALIGNED_VAR (   n)    CC_ALIGN_DATA(n)

Memory alignment enforcement for variables.

Definition at line 96 of file chtypes.h.

◆ SIZEOF_PTR

#define SIZEOF_PTR   PORT_ARCH_SIZEOF_DATA_PTR

Size of a pointer.

Note
To be used where the sizeof operator cannot be used, preprocessor expressions for example.

Definition at line 103 of file chtypes.h.

Typedef Documentation

◆ port_rtcnt_t

typedef uint32_t port_rtcnt_t

Realtime counter.

Definition at line 54 of file chtypes.h.

◆ port_rttime_t

typedef uint64_t port_rttime_t

Realtime accumulator.

Definition at line 59 of file chtypes.h.

◆ port_syssts_t

typedef uint32_t port_syssts_t

System status word.

Definition at line 64 of file chtypes.h.

◆ port_stkalign_t

typedef uint64_t port_stkalign_t

Type of stack and memory alignment enforcement.

Note
In this architecture the stack alignment is enforced to 64 bits, 32 bits alignment is supported by hardware but deprecated by ARM, the implementation choice is to not offer the option.

Definition at line 72 of file chtypes.h.