]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - psdk_cust/pdk_k2g_1_0_1_1_eng/packages/ti/board/diag/rs485_uart/src/test_pruss_intc_mapping.h
PASDK-319:Update PDK eng to 1.0.1.2.
[processor-sdk/performance-audio-sr.git] / psdk_cust / pdk_k2g_1_0_1_1_eng / packages / ti / board / diag / rs485_uart / src / test_pruss_intc_mapping.h
1 /*
2  * test_pruss_intc_mapping.h
3  *
4  * PRUICSS INTC mapping for UIO sample application
5  *
6  * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
7  *
8  *
9  *  Redistribution and use in source and binary forms, with or without
10  *  modification, are permitted provided that the following conditions
11  *  are met:
12  *
13  *    Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  *
16  *    Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the
19  *    distribution.
20  *
21  *    Neither the name of Texas Instruments Incorporated nor the names of
22  *    its contributors may be used to endorse or promote products derived
23  *    from this software without specific prior written permission.
24  *
25  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37 */
39 /*
40  * ============================================================================
41  * Copyright (c) Texas Instruments Inc 2015
42  *
43  * Use of this software is controlled by the terms and conditions found in the
44  * license agreement under which this software has been supplied or provided.
45  * ============================================================================
46 */
47 //SYS_EVT_16-31 can be used for generating interrupts for IPC with hosts/prus etc
50 #define ARM_PRU0_EVENT       16
51 #define PRU0_ARM_EVENT       17
52 #define ARM_PRU1_EVENT       18
53 #define PRU1_ARM_EVENT       19
54 /*#else
55 #define ARM_PRU0_EVENT       32
56 #define PRU0_ARM_EVENT       33
57 #define ARM_PRU1_EVENT       34
58 #define PRU1_ARM_EVENT       35
59 #endif
60 */
61 #define CHANNEL0                0
62 #define CHANNEL1                1
63 #define CHANNEL2                2
64 #define CHANNEL3                3
65 #define CHANNEL4                4
66 #define CHANNEL5                5
67 #define CHANNEL6                6
68 #define CHANNEL7                7
69 #define CHANNEL8                8
70 #define CHANNEL9                9
72 #define PRU0                    0
73 #define PRU1                    1
74 #define PRU_EVTOUT0             2
75 #define PRU_EVTOUT1             3
76 #define PRU_EVTOUT2             4
77 #define PRU_EVTOUT3             5
78 #define PRU_EVTOUT4             6
79 #define PRU_EVTOUT5             7
80 #define PRU_EVTOUT6             8
81 #define PRU_EVTOUT7             9
83 #define PRU0_HOSTEN_MASK            0x0001
84 #define PRU1_HOSTEN_MASK            0x0002
85 #define PRU_EVTOUT0_HOSTEN_MASK     0x0004
86 #define PRU_EVTOUT1_HOSTEN_MASK     0x0008
87 #define PRU_EVTOUT2_HOSTEN_MASK     0x0010
88 #define PRU_EVTOUT3_HOSTEN_MASK     0x0020
89 #define PRU_EVTOUT4_HOSTEN_MASK     0x0040
90 #define PRU_EVTOUT5_HOSTEN_MASK     0x0080
91 #define PRU_EVTOUT6_HOSTEN_MASK     0x0100
92 #define PRU_EVTOUT7_HOSTEN_MASK     0x0200
93 #define SYS_EVT_POLARITY_LOW        0
94 #define SYS_EVT_POLARITY_HIGH       1
96 #define SYS_EVT_TYPE_PULSE          0
97 #define SYS_EVT_TYPE_EDGE           1
99 #define PRUICSS_INTC_INITDATA {   \
100 { ARM_PRU0_EVENT, PRU0_ARM_EVENT, ARM_PRU1_EVENT, PRU1_ARM_EVENT,0xFF  },  \
101 { {ARM_PRU0_EVENT,CHANNEL0, SYS_EVT_POLARITY_HIGH ,SYS_EVT_TYPE_PULSE}, {PRU0_ARM_EVENT, CHANNEL2,SYS_EVT_POLARITY_HIGH ,SYS_EVT_TYPE_PULSE}, {ARM_PRU1_EVENT,CHANNEL1,SYS_EVT_POLARITY_HIGH ,SYS_EVT_TYPE_PULSE}, {PRU1_ARM_EVENT, CHANNEL3,SYS_EVT_POLARITY_HIGH ,SYS_EVT_TYPE_PULSE}, {0xFF,0xFF,0xFF,0xFF}},  \
102  {  {CHANNEL0,PRU0}, {CHANNEL1, PRU1}, {CHANNEL2, PRU_EVTOUT0}, {CHANNEL3, PRU_EVTOUT1}, {CHANNEL4, PRU_EVTOUT2}, {0xFF,0xFF} },  \
103  (PRU0_HOSTEN_MASK | PRU1_HOSTEN_MASK | PRU_EVTOUT0_HOSTEN_MASK | PRU_EVTOUT1_HOSTEN_MASK) /*Enable PRU0/1, PRU_EVTOUT0/1*/ \