comparison src/cs/drivers/drv_app/lcc/lcc_env.h @ 0:b6a5e36de839

src/cs: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:39:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b6a5e36de839
1 /*******************************************************************************
2 *
3 * PWR_ENV.H
4 *
5 *
6 * (C) Texas Instruments 2001
7 *
8 ******************************************************************************/
9
10 #ifndef __LCC_ENV_H__
11 #define __LCC_ENV_H__
12
13 #include "rvm/rvm_gen.h"
14 #include "lcc/lcc_api.h"
15
16 #include "rvf/rvf_pool_size.h" /* Stack & Memory Bank sizes definitions */
17
18 #define LCC_TASK_VERSION 0x0001
19
20 #define LCC_MAILBOX_USED RVF_TASK_MBOX_1
21
22 /* memory bank size and watermark */
23 #define LCC_MB_PRIM_SIZE LCC_MB1_SIZE
24
25 #define LCC_MB_PRIM_WATERMARK (LCC_MB_PRIM_SIZE)
26
27 #define LCC_MB_PRIM_INC_SIZE 0
28 #define LCC_MB_PRIM_INC_WATERMARK 0
29
30 extern T_PWR_CTRL_BLOCK *pwr_ctrl;
31 extern T_PWR_CFG_BLOCK *pwr_cfg;
32
33 /* Prototypes */
34
35 T_RVM_RETURN lcc_get_info (T_RVM_INFO_SWE *infoSWE);
36
37 T_RVM_RETURN pwr_set_info( T_RVF_ADDR_ID addr_id,
38 T_RV_RETURN return_path[],
39 T_RVF_MB_ID mbId[],
40 T_RVM_RETURN (*callBackFct) (T_RVM_NAME SWEntName,
41 T_RVM_RETURN errorCause,
42 T_RVM_ERROR_TYPE errorType,
43 T_RVM_STRING errorMsg));
44
45 T_RVM_RETURN pwr_init (void);
46 T_RVM_RETURN pwr_start (void);
47 T_RVM_RETURN pwr_stop (T_RV_HDR *msg);
48 T_RVM_RETURN pwr_kill (void);
49
50
51 #endif /* __LCC_ENV_H__ */