FreeCalypso > hg > fc-magnetite
comparison src/cs/riviera/rvt/rvt_def_i.h @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children | 6cea809631d7 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 /******************************************************************************* | |
2 * | |
3 * rvt_def_i.h | |
4 * | |
5 * (C) Texas Instruments, all rights reserved | |
6 * | |
7 * Version number : 0.1 | |
8 * | |
9 * History : 0.1 (7/5/2000) - Created | |
10 * | |
11 * Date : 7/5/2000 | |
12 * | |
13 * Author : Guido Pagana g-pagana@ti.com | |
14 * | |
15 ******************************************************************************/ | |
16 | |
17 #ifndef __RVT_DEF_I_H__ | |
18 #define __RVT_DEF_I_H__ | |
19 | |
20 #include "rvt/rvt_gen.h" | |
21 | |
22 #include "rvt/rvt_pool_size.h" /* Stack & Memory Bank sizes definitions */ | |
23 | |
24 /************************* Internal definitions **************************/ | |
25 | |
26 | |
27 /* Define the maximum number of msg lost before sending an alert */ | |
28 #define RVT_MAX_LOST_TRACE_MSG (1) | |
29 | |
30 /* Trace user database (must end using RVT_END_OF_TABLE) */ | |
31 #define RVT_END_OF_TABLE {"", RVT_INVALID_HEADER, NULL} | |
32 | |
33 #define RVT_USER_ID_MAPPING { \ | |
34 {"RV", RVT_RV_HEADER, NULL}, \ | |
35 {"L1", RVT_L1_HEADER, NULL}, \ | |
36 {"L23", RVT_L23_HEADER, NULL}, \ | |
37 {"TM", RVT_TM_HEADER, NULL}, \ | |
38 {"RNET", RVT_RNET_HEADER, NULL}, \ | |
39 {"PROF", RVT_PROF_HEADER, NULL}, \ | |
40 {"GTTBACK", RVT_GTTBACK_HEADER, NULL}, \ | |
41 {"OTHER", RVT_OTHER_HEADER, NULL}, \ | |
42 {"AT", RVT_AT_HEADER, NULL}, \ | |
43 {"EXTUI", RVT_EXTUI_HEADER, NULL}, \ | |
44 RVT_END_OF_TABLE \ | |
45 } | |
46 | |
47 | |
48 /* Trace task mailbox */ | |
49 #define RVT_TRACE_MAILBOX RVF_TASK_MBOX_0 | |
50 | |
51 typedef struct | |
52 { T_RVT_NAME user_name[RVT_NAME_MAX_LEN]; | |
53 T_RVT_USER_ID user_id; | |
54 RVT_CALLBACK_FUNC rx_callback_func; | |
55 } T_RVT_USER_DB; | |
56 | |
57 | |
58 /* Define the unique message type used in RVT */ | |
59 #define RVT_TRACE_RQST_ID ( (RVT_USE_ID & 0xFFFF0000) | ( 0x1) | 0x001) | |
60 | |
61 typedef struct | |
62 { T_RV_HDR header; | |
63 T_RVT_USER_ID user_id; | |
64 T_RVT_FORMAT format; | |
65 T_RVT_MSG_LG msg_length; | |
66 } T_RVT_TRACE_RQST; | |
67 | |
68 | |
69 /* Trace message header size */ | |
70 #define RVT_HEADER_SIZE (sizeof(T_RVT_TRACE_RQST) ) | |
71 | |
72 #define TRACE_TASK_STACK_SIZE TRACE_STACK_SIZE | |
73 | |
74 | |
75 #define TRACE_MB_SIZE (TRACE_MB1_SIZE) | |
76 #define TRACE_MB_WATERMARK (TRACE_MB_SIZE) | |
77 | |
78 /* Decimal to hexadecimal conversion table */ | |
79 static const char Num2Char[] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; | |
80 | |
81 /* | |
82 ** Number of messages lost. Causes: | |
83 ** | |
84 ** __ 'Format' differs from RVT_ASCII_FORMAT and RVT_BINARY_FORMAT. | |
85 ** | __ 'Message ID' differs from RVT_TRACE_RQST_ID. | |
86 ** | | __ rvf_read_mbox has returned NULL. | |
87 ** | | | __ Failed to send the message. | |
88 ** | | | | __ Insufficient resources. | |
89 ** | | | | | __ Trace Module not started. | |
90 ** |_|_|_|_|_|____________________________________________________ | |
91 ** | ¦ ¦ ¦ ¦ ¦ ¦ | | | | | |
92 ** | ¦ ¦ ¦ ¦ ¦ ¦ | | | | | |
93 ** |_¦_¦_¦_¦_¦_¦_._|_._._._._._._._|_._._._._._._._|_._._._._._._._| | |
94 */ | |
95 typedef union | |
96 { | |
97 struct | |
98 { | |
99 INT32 count : 26; | |
100 INT32 not_started : 1; | |
101 INT32 insufficient_resources : 1; | |
102 INT32 message_not_sent : 1; | |
103 INT32 message_empty : 1; | |
104 INT32 unknown_request : 1; | |
105 INT32 unknown_format : 1; | |
106 } bit_mask; | |
107 UINT32 overall_value; | |
108 } T_RVT_LOST_MSG; | |
109 | |
110 extern T_RVT_LOST_MSG rvt_lost_msg_cpt; | |
111 | |
112 /* Prototypes */ | |
113 BOOLEAN rvt_name_cmp( char * str1, char * str2); | |
114 void rvt_activate_RX_HISR (void); | |
115 void rvt_RX_process (void); | |
116 | |
117 #endif /* __RVT_DEF_I_H__ */ |