Main Page   Modules   Data Structures   File List   Globals  

otos_def.h File Reference

Global otOS definitions, constants and macros. More...

Go to the source code of this file.

Defines

#define OTOS_VERSION   "0.9.0"
 otOS version

#define TRUE   1
#define FALSE   0
#define GET_SP()
#define ISR_ACTIVE()
#define ISR_NOT_ACTIVE()


Detailed Description

Global otOS definitions, constants and macros.

Definition in file otos_def.h.


Define Documentation

 
#define GET_SP  
 

Value:

({                 \
    uint16_t result;                \
     __asm__ volatile (             \
        "in %A0, %1"    "\n\t"      \
        "in %B0, %2"    "\n\t"      \
        : "=r" (result)             \
        : "I" (_SFR_IO_ADDR(SPL)),  \
          "I" (_SFR_IO_ADDR(SPH))   \
    );                              \
    result;                         \
})

Definition at line 53 of file otos_def.h.

 
#define ISR_ACTIVE  
 

Value:

({         \
    uint8_t t;                  \
    __asm__ volatile (          \
        "clr %0" "\n\t"         \
        "brie L_%=" "\n\t"      \
        "inc %0" "\n"           \
        "L_%=: " "\n\t"         \
        : "=r" (t)              \
        :                       \
    );                          \
    t;                          \
})

Definition at line 66 of file otos_def.h.

 
#define ISR_NOT_ACTIVE  
 

Value:

({     \
    uint8_t t;                  \
    __asm__ volatile (          \
        "clr %0" "\n\t"         \
        "brid L_%=" "\n\t"      \
        "inc %0" "\n"           \
        "L_%=: " "\n\t"         \
        : "=r" (t)              \
        :                       \
    );                          \
    t;                          \
})

Definition at line 80 of file otos_def.h.


Generated on Sat Jan 25 18:41:43 2003 for otOS by doxygen1.3-rc2