CMSIS2000
0.0.7
|
Используйте данный файл как шаблон для других файлов. Подробнее...
#include "context.h"
Макросы | |
#define | CO_ROUTINE(name_and_args) cr_cntx_t name_and_args |
#define | CR_ABORT(cr, error) CR_CONTEXT_ERROR(cr,error) |
ABORT CR EXECUTION with negative return value next CR call will start execution from CR_BEGIN() point. | |
#define | CR_BEGIN(cr) CR_CONTEXT_RESTORE(cr) |
begin execution of CR here at first call time | |
#define | CR_END(cr) CR_CONTEXT_END(cr); CR_CONTEXT_RESET_AND_RETURN(cr) |
end of CR next CR call will start execution from CR_BEGIN() point | |
#define | CR_EXIT(cr) CR_CONTEXT_RESET_AND_RETURN(cr) |
return from CR next CR call will start execution from CR_BEGIN() point | |
#define | CR_RETURN(cr) CR_CONTEXT_SAVE_AND_RETURN(cr) |
return from CR next CR call will start execution here | |
#define | CR_RETURN_WHILE(condition, cr) |
return from CR while condition is true *next CR call will start execution from CR_BEGIN() point | |
#define | CR_WAIT_CR(run_cr, cr) CR_RETURN_WHILE (CR_EXECUTING(run_cr),(cr)) |
return from cr while run_cr is executing | |
#define | THIS_IS_STATIC_CR(cr) static cr_cntx_t cr = CR_CONTEXT_INIT_VALUE |
#define CR_ABORT | ( | cr, | |
error | |||
) | CR_CONTEXT_ERROR(cr,error) |
ABORT CR EXECUTION with negative return value next CR call will start execution from CR_BEGIN() point.
#define CR_BEGIN | ( | cr | ) | CR_CONTEXT_RESTORE(cr) |
#define CR_END | ( | cr | ) | CR_CONTEXT_END(cr); CR_CONTEXT_RESET_AND_RETURN(cr) |
end of CR next CR call will start execution from CR_BEGIN() point
#define CR_EXIT | ( | cr | ) | CR_CONTEXT_RESET_AND_RETURN(cr) |
return from CR next CR call will start execution from CR_BEGIN() point
#define CR_RETURN | ( | cr | ) | CR_CONTEXT_SAVE_AND_RETURN(cr) |
#define CR_RETURN_WHILE | ( | condition, | |
cr | |||
) |
return from CR while condition is true *next CR call will start execution from CR_BEGIN() point
#define CR_WAIT_CR | ( | run_cr, | |
cr | |||
) | CR_RETURN_WHILE (CR_EXECUTING(run_cr),(cr)) |
#define THIS_IS_STATIC_CR | ( | cr | ) | static cr_cntx_t cr = CR_CONTEXT_INIT_VALUE |