attr.h File Reference

CPU-specific attributes. More...

#include "detect.h"
#include <cfg/compiler.h>
#include <cfg/arch_config.h>
#include "appconfig.h"

Go to the source code of this file.


Defines

#define CPU_HEADER(module)   PP_STRINGIZE(drv/PP_CAT3(module, _, CPU_ID).h)
 Macro to include cpu-specific versions of the headers.
#define CPU_CSOURCE(module)   PP_STRINGIZE(drv/PP_CAT3(module, _, CPU_ID).c)
 Macro to include cpu-specific versions of implementation files.
#define CPU_REG_INIT_VALUE(reg)   0
 Default for macro not defined in the right arch section.
#define CPU_IDLE   do { /* nothing */ } while (0)
 Invoked by the scheduler to stop the CPU when idle.
Macros for determining CPU endianness.
#define CPU_BIG_ENDIAN   0x1234
#define CPU_LITTLE_ENDIAN   0x3412

Detailed Description

CPU-specific attributes.

Author:
Giovanni Bajo <rasky@develer.com>

Bernardo Innocenti <bernie@develer.com>

Stefano Fedrigo <aleph@develer.com>

Francesco Sacchi <batt@develer.com>

Definition in file attr.h.


Define Documentation

#define CPU_CSOURCE ( module   )     PP_STRINGIZE(drv/PP_CAT3(module, _, CPU_ID).c)

Macro to include cpu-specific versions of implementation files.

Definition at line 62 of file attr.h.

#define CPU_HEADER ( module   )     PP_STRINGIZE(drv/PP_CAT3(module, _, CPU_ID).h)

Macro to include cpu-specific versions of the headers.

Definition at line 59 of file attr.h.

#define CPU_IDLE   do { /* nothing */ } while (0)

Invoked by the scheduler to stop the CPU when idle.

This hook can be redefined to put the CPU in low-power mode, or to profile system load with an external strobe, or to save CPU cycles in hosted environments such as emulators.

Definition at line 346 of file attr.h.