]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/osal/test/src/OSAL_board.h
Add build support for awr294x
[processor-sdk/pdk.git] / packages / ti / osal / test / src / OSAL_board.h
1 /**
2  *  \file   OSAL_board.h
3  *
4  *  \brief  OSAL Board header file
5  *
6  */
8 /*
9  * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  *
18  * Redistributions in binary form must reproduce the above copyright
19  * notice, this list of conditions and the following disclaimer in the
20  * documentation and/or other materials provided with the
21  * distribution.
22  *
23  * Neither the name of Texas Instruments Incorporated nor the names of
24  * its contributors may be used to endorse or promote products derived
25  * from this software without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38  *
39  */
42 #ifndef OSAL_BOARD_H
43 #define OSAL_BOARD_H
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
49 /* Example/Board Header files */
50 #include <ti/board/board.h>
52 #undef OSAL_TEST_CPU_FREQ_KHZ
54 /* AM65XX Core CPU frequency */
55 #if defined (SOC_AM65XX) || defined (SOC_J721E)
56 #if defined (BUILD_MCU1_0) || defined(BUILD_MCU1_1)
57   #define OSAL_TEST_CPU_FREQ_KHZ   (400000)
58 #else
59   #define OSAL_TEST_CPU_FREQ_KHZ   (800000)
60 #endif
61 #endif
63 /* AM572x Core CPU frequency */
64 #if defined (SOC_AM572x)
65 #if defined (BUILD_A15_0) || defined(BUILD_IPU1_0)
66   #define OSAL_TEST_CPU_FREQ_KHZ   (960000)
67 #endif
68 #if defined (_TMS320C6X)
69   #define OSAL_TEST_CPU_FREQ_KHZ   (576000)
70 #endif
71 #endif
73 /* KeyStone parts Core CPU frequency */
74 #if defined (SOC_K2G) || defined(SOC_K2E)
75 #if defined (BUILD_A15_0)
76   #define OSAL_TEST_CPU_FREQ_KHZ   (800000)
77 #endif
78 #if defined (_TMS320C6X)
79   #define OSAL_TEST_CPU_FREQ_KHZ   (900000)
80 #endif
81 #endif
83 /* TPR Core CPU frequency */
84 #if defined (SOC_TPR12) || defined (SOC_AWR294X)
85 #if defined (_TMS320C6X)
86   #define OSAL_TEST_CPU_FREQ_KHZ   (450000)
87 #else
88   #define OSAL_TEST_CPU_FREQ_KHZ   (400000)
89 #endif
90 #endif
92 #ifdef __cplusplus
93 }
94 #endif
96 #endif /* OSAL_BOARD_H */