FreeCalypso > hg > fc-tourmaline
diff src/cs/services/buzm/buzm_env.h @ 297:8dfdf88d632f
BUZM SWE initial implementation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 29 Mar 2022 03:45:41 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cs/services/buzm/buzm_env.h Tue Mar 29 03:45:41 2022 +0000 @@ -0,0 +1,41 @@ +/* + * RiViera environment boilerplate header for BUZM SWE + */ + +#ifndef __BUZM_ENV_H__ +#define __BUZM_ENV_H__ + +#include "rvm/rvm_gen.h" +#include "buzm/buzm_struct_i.h" +#include "buzm/buzm_pool_size.h" + +#define BUZM_MAILBOX RVF_TASK_MBOX_0 +#define BUZM_TIMER RVF_TIMER_0 + +/* memory bank size and watermark */ +#define BUZM_MB_PRIM_SIZE BUZM_MB1_SIZE +#define BUZM_MB_PRIM_WATERMARK (BUZM_MB_PRIM_SIZE) + +#define BUZM_MB_PRIM_INC_SIZE 0 +#define BUZM_MB_PRIM_INC_WATERMARK 0 + +extern struct buzm_env *buzm_env; + +/* Prototypes */ + +T_RVM_RETURN buzm_get_info (T_RVM_INFO_SWE *infoSWE); + +T_RVM_RETURN buzm_set_info(T_RVF_ADDR_ID addr_id, + T_RV_RETURN return_path[], + T_RVF_MB_ID mbId[], + T_RVM_RETURN (*callBackFct) (T_RVM_NAME SWEntName, + T_RVM_RETURN errorCause, + T_RVM_ERROR_TYPE errorType, + T_RVM_STRING errorMsg)); + +T_RVM_RETURN buzm_init (void); +T_RVM_RETURN buzm_core (void); +T_RVM_RETURN buzm_stop (void); +T_RVM_RETURN buzm_kill (void); + +#endif /* include guard */