My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
asm-offsets.c File Reference
#include <sw_common_types.h>
#include <sw_types.h>
#include <cpu_task.h>
#include <cpu_data.h>

Macros

#define offsetof(TYPE, MEMBER)   ((size_t) &((TYPE *)0)->MEMBER)
 
#define DEFINE(sym, val)   __asm volatile("\n->" #sym " %0 " #val : : "i" (val))
 

Functions

int main (void)
 

Macro Definition Documentation

#define DEFINE (   sym,
  val 
)    __asm volatile("\n->" #sym " %0 " #val : : "i" (val))
#define offsetof (   TYPE,
  MEMBER 
)    ((size_t) &((TYPE *)0)->MEMBER)

Function Documentation

int main ( void  )
Returns