]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pasdk/common/pfp_app.h
PASDK-376:Rename DH linker command files
[processor-sdk/performance-audio-sr.git] / pasdk / common / pfp_app.h
1 /*
2  * pfp_app.h
3  *
4  *  PFP application definitions, including:
5  *      - PFP IDs
6  *      - PFP default exponential time constant
7  */
9 #ifndef _PFP_APP_H
10 #define _PFP_APP_H
12 #include "pfp/pfp.h"
14 /* PFP latch macros */
15 #define PFP_FINISH_MEAS     ( 0 )
16 #define PFP_LATCH_MEAS      ( 1 )
18 #ifdef _TMS320C6X
19 #define PFP_MAX_ASP         ( 4 )
21 /* Define all PFP ID's */
22 #define PFP_ID_MAIN         0
23 #define PFP_ID_ASIT_0       1
24 #define PFP_ID_ASIT_1       2   /* ASIT, auto processing */
25 #define PFP_ID_ASIT_2       3   /* ASIT, decode processing */
26 #define PFP_ID_ASOT_0       8   
27 #define PFP_ID_ASOT_1       9   /* ASOT, output processing */
28 #define PFP_ID_ASOT_ASP_0   16  /* ASP 0 */
29 #define PFP_ID_ASOT_ASP_1   17  /* ASP 1 */
30 #define PFP_ID_ASOT_ASP_2   18  /* ASP 2 */
31 #define PFP_ID_ASOT_ASP_3   19  /* ASP 3 */
32 #define PFP_ID_LAST PFP_ID_ASOT_ASP_3
34 #if PFP_ID_LAST >= PFP_PPCNT_MAX
35 #error too many PP IDs
36 #endif
38 /* PFP default exponential averaging time constant */
39 #define PFP_DEF_TAU_MS      (500.0)
40 #define PFP_DEF_PERIOD_MS   (100.0)
41 #define PFP_DEF_ALPHA       (PFP_DEF_PERIOD_MS/PFP_DEF_TAU_MS)
43 // disable all PFP's
44 #define PFP_ENABLE_MASK ( 0 )
46 // enable all PFP's
47 /*
48 #define PFP_ENABLE_MASK ( (1<<PFP_ID_ASIT_0) | \
49                           (1<<PFP_ID_ASIT_1) | \
50                           (1<<PFP_ID_ASIT_2) | \
51                           (1<<PFP_ID_ASOT_0) | \
52                           (1<<PFP_ID_ASOT_1) | \
53                           (1<<PFP_ID_ASOT_ASP_0) | \
54                           (1<<PFP_ID_ASOT_ASP_1) | \
55                           (1<<PFP_ID_ASOT_ASP_2) | \
56                           (1<<PFP_ID_ASOT_ASP_3) )
57 */
59 #else /* _TMS320C6X */
61 /* Define all PFP ID's */
62 #define PFP_ID_MAIN         0
63 #define PFP_ID_ASDT_0       1
64 #define PFP_ID_ASDT_1       2   /* INFO */
65 #define PFP_ID_ASDT_2       3   /* DECODE */
66 #define PFP_ID_LAST PFP_ID_ASDT_2
68 #if PFP_ID_LAST >= PFP_PPCNT_MAX
69 #error too many PP IDs
70 #endif
72 /* PFP default exponential averaging time constant */
73 #define PFP_DEF_TAU_MS      (500.0)
74 #define PFP_DEF_PERIOD_MS   (100.0)
75 #define PFP_DEF_ALPHA       (PFP_DEF_PERIOD_MS/PFP_DEF_TAU_MS)
77 //
78 // NOTE: currently ARM PFP's are enabled in main().
79 // These masks can be considered a placeholder.
81 //
82 // disable all PFP's
83 #define PFP_ENABLE_MASK ( 0 )
85 // enable INFO and DECODE PFP's
86 /*
87 #define PFP_ENABLE_MASK ( (1<<PFP_ID_ASDT_0) | \
88                           (1<<PFP_ID_ASDT_1) | \
89                           (1<<PFP_ID_ASDT_2) )
90 */
92 #endif /* _TMS320C6X */
94 #endif /* _PFP_APP_H */
95 /* nothing past this point */