CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
context.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CR_CONTEXT_END(cntx)   }
#define CR_CONTEXT_ERROR(cr, error)
#define CR_CONTEXT_INIT_VALUE   0
#define CR_CONTEXT_RESET_AND_RETURN(cntx)
#define CR_CONTEXT_RESTORE(cntx)   switch(cntx) { case 0:
#define CR_CONTEXT_SAVE_AND_RETURN(cntx)
#define CR_ERROR(context)   (context < 0)
#define CR_EXECUTING(context)   (context > 0)
#define CR_EXITED(context)   (context == 0)
#define CR_WAIT(cr, condition)

Typedefs

typedef signed int cr_cntx_t

Macro Definition Documentation

#define CR_CONTEXT_END (   cntx)    }

Definition at line 219 of file context.h.

#define CR_CONTEXT_ERROR (   cr,
  error 
)
Value:
do {\
return (error);\
} while (0)

Definition at line 215 of file context.h.

#define CR_CONTEXT_INIT_VALUE   0

Definition at line 164 of file context.h.

#define CR_CONTEXT_RESET_AND_RETURN (   cntx)
Value:
do {\
return (cntx = (cr_cntx_t)CR_CONTEXT_INIT_VALUE);\
} while (0)

Definition at line 211 of file context.h.

#define CR_CONTEXT_RESTORE (   cntx)    switch(cntx) { case 0:

Definition at line 206 of file context.h.

#define CR_CONTEXT_SAVE_AND_RETURN (   cntx)
Value:
do {\
return (cntx = (cr_cntx_t)__LINE__);\
case __LINE__:;\
} while (0)

Definition at line 207 of file context.h.

#define CR_ERROR (   context)    (context < 0)

Definition at line 168 of file context.h.

#define CR_EXECUTING (   context)    (context > 0)

Definition at line 166 of file context.h.

#define CR_EXITED (   context)    (context == 0)

Definition at line 167 of file context.h.

#define CR_WAIT (   cr,
  condition 
)
Value:
do { \
if (!(condition)) { \
CR_CONTEXT_RETURN \
} \
\
} while (0)

Definition at line 223 of file context.h.

Typedef Documentation

typedef signed int cr_cntx_t

Definition at line 163 of file context.h.