Platform-independent access to architecture

details More...

Detailed Description

details

This module provides architecture-independent access to architecture details.

Files

file  architecture.h
 Platform-independent access to architecture details.
 

Macros

#define ARCHITECTURE_WORD_BITS   <NUM>
 Size of a word in bits. More...
 
#define ARCHITECTURE_WORD_BYTES   <NUM>
 Size of a word in bytes. More...
 
#define WORD_ALIGNED   __attribute__((aligned(ARCHITECTURE_WORD_BYTES)))
 Type qualifier to use to align data on word boundaries. More...
 

Typedefs

typedef uint< num > _t uword_t
 Word sized unsigned integer. More...
 
typedef int< num > _t sword_t
 Word sized signed integer. More...
 

Macro Definition Documentation

◆ ARCHITECTURE_WORD_BITS

#define ARCHITECTURE_WORD_BITS   <NUM>

Size of a word in bits.

Depending on architecture, this can have a value of 8, 16, or 32

Definition at line 42 of file architecture.h.

◆ ARCHITECTURE_WORD_BYTES

#define ARCHITECTURE_WORD_BYTES   <NUM>

Size of a word in bytes.

Depending on architecture, this can have a value or 1, 2, or 4.

Definition at line 48 of file architecture.h.

◆ WORD_ALIGNED

#define WORD_ALIGNED   __attribute__((aligned(ARCHITECTURE_WORD_BYTES)))

Type qualifier to use to align data on word boundaries.

Use like this:

Definition at line 88 of file architecture.h.

Typedef Documentation

◆ sword_t

typedef int<num> _t sword_t

Word sized signed integer.

Synonym to int8_t, int16_t or int32_t depending on architecture

Definition at line 62 of file architecture.h.

◆ uword_t

typedef uint<num> _t uword_t

Word sized unsigned integer.

Synonym to uint8_t, uint16_t or uint32_t depending on architecture

Definition at line 55 of file architecture.h.

THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT
A reasonable default stack size that will suffice most smaller tasks.
Definition: thread.h:211
WORD_ALIGNED
#define WORD_ALIGNED
Type qualifier to use to align data on word boundaries.
Definition: architecture.h:88