FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/lcc/lcc_trace.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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 /****************************************************************************** | |
2 * PWR task (pwr) | |
3 * Adapted from FFS by Svend Kristian Lindholm, skl@ti.com | |
4 * Idea, design and coding by Mads Meisner-Jensen, mmj@ti.com | |
5 * | |
6 * pwr tracing | |
7 * | |
8 * $Id: pwr_trace.h 1.1 Wed, 20 Aug 2003 10:22:37 +0200 skl $ | |
9 * | |
10 ******************************************************************************/ | |
11 | |
12 | |
13 #ifndef __LCC_TRACE_H__ | |
14 #define __LCC_TRACE_H__ | |
15 | |
16 #include "lcc_cfg.h" | |
17 | |
18 /****************************************************************************** | |
19 ** Common Tracing and logging | |
20 *****************************************************************************/ | |
21 | |
22 int pwr_tr_query(int mask); | |
23 | |
24 | |
25 /****************************************************************************** | |
26 ** Target Tracing | |
27 ******************************************************************************/ | |
28 | |
29 #define tw(contents) | |
30 | |
31 #if TRACE_WANTED | |
32 #define ttw(contents) contents | |
33 // To distinguish from FFS trace system rename to pwr_ttr and pwr_str | |
34 #define ttr pwr_ttr | |
35 #define str pwr_str | |
36 #else | |
37 #define ttw(contents) | |
38 #endif | |
39 | |
40 #define tlw(contents) | |
41 #define NL | |
42 void pwr_ttr_init(unsigned int mask); | |
43 void pwr_ttr(unsigned trmask, char *format, ...); | |
44 void pwr_str(unsigned mask, char *string); | |
45 | |
46 enum TargetTraceMask { | |
47 TTrMem = 0x00000001, | |
48 TTrMemLow = 0x00000002, | |
49 | |
50 TTrApi = 0x00000010, | |
51 TTrTimer = 0x00000020, | |
52 TTrTimerLow = 0x00000040, | |
53 | |
54 TTrInit = 0x00000100, | |
55 TTrInitLow = 0x00000200, | |
56 | |
57 TTrCharge = 0x00000400, | |
58 TTrChargeLow = 0x00000800, | |
59 | |
60 TTrEvent = 0x00001000, | |
61 TTrEventLow = 0x00002000, | |
62 | |
63 TTrEnv = 0x00020000, | |
64 TTrEnvLow = 0x00040000, | |
65 | |
66 TTrTask = 0x00100000, | |
67 TTrTaskLow = 0x00200000, | |
68 | |
69 TTrTmpwr = 0x08000000, | |
70 | |
71 TTrTaskDelays = 0x10000000, | |
72 TTrWarning = 0x40000000, | |
73 TTrFatal = 0x80000000, | |
74 | |
75 TTrAll = 0xFFFFFFFF | |
76 }; | |
77 | |
78 | |
79 #endif |