comparison src/cs/services/vibr/vibr_env.h @ 294:e17bdedfbf2b

VIBR SWE initial implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Mar 2022 08:46:10 +0000
parents
children
comparison
equal deleted inserted replaced
293:2d7d95e7f9c2 294:e17bdedfbf2b
1 /*
2 * RiViera environment boilerplate header for VIBR SWE
3 */
4
5 #ifndef __VIBR_ENV_H__
6 #define __VIBR_ENV_H__
7
8 #include "rvm/rvm_gen.h"
9 #include "vibr/vibr_struct_i.h"
10 #include "vibr/vibr_pool_size.h"
11
12 #define VIBR_MAILBOX RVF_TASK_MBOX_0
13 #define VIBR_TIMER RVF_TIMER_0
14
15 /* memory bank size and watermark */
16 #define VIBR_MB_PRIM_SIZE VIBR_MB1_SIZE
17 #define VIBR_MB_PRIM_WATERMARK (VIBR_MB_PRIM_SIZE)
18
19 #define VIBR_MB_PRIM_INC_SIZE 0
20 #define VIBR_MB_PRIM_INC_WATERMARK 0
21
22 extern struct vibr_env *vibr_env;
23
24 /* Prototypes */
25
26 T_RVM_RETURN vibr_get_info (T_RVM_INFO_SWE *infoSWE);
27
28 T_RVM_RETURN vibr_set_info(T_RVF_ADDR_ID addr_id,
29 T_RV_RETURN return_path[],
30 T_RVF_MB_ID mbId[],
31 T_RVM_RETURN (*callBackFct) (T_RVM_NAME SWEntName,
32 T_RVM_RETURN errorCause,
33 T_RVM_ERROR_TYPE errorType,
34 T_RVM_STRING errorMsg));
35
36 T_RVM_RETURN vibr_init (void);
37 T_RVM_RETURN vibr_core (void);
38 T_RVM_RETURN vibr_stop (void);
39 T_RVM_RETURN vibr_kill (void);
40
41 #endif /* include guard */