1 /**
2 * @file device_dfe.c
3 *
4 * @brief
5 * The DFE Device specific code. The DFE LLD calls out
6 * this code to initialize the DFE IP block. The file is provided as
7 * a sample configuration and should be modified by customers for
8 * their own platforms and configurations.
9 *
10 * \par
11 * NOTE:
12 * (C) Copyright 2012-2013 Texas Instruments, Inc.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 *
18 * Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 *
21 * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the
24 * distribution.
25 *
26 * Neither the name of Texas Instruments Incorporated nor the names of
27 * its contributors may be used to endorse or promote products derived
28 * from this software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 * \par
43 */
45 /* DFE LLD Includes. */
46 #include <ti/drv/dfe/dfe_types.h>
47 #include <ti/drv/dfe/dfe_drv.h>
49 /* CSL DFE Functional Layer */
50 #include <ti/csl/csl_dfe.h>
52 /**********************************************************************
53 ************************* LOCAL Definitions **************************
54 **********************************************************************/
57 /**********************************************************************
58 ************************* Extern Definitions *************************
59 **********************************************************************/
62 /**********************************************************************
63 *********************** DEVICE DFE FUNCTIONS ***********************
64 **********************************************************************/
66 /** @addtogroup DFE_DEVICE_API
67 @{ */
69 /**
70 * @b Description
71 * @n
72 * The function provides the initialization sequence for the DFE IP
73 * block. This can be modified by customers for their application and
74 * configuration.
75 *
76 * @retval
77 * Success - 0
78 * @retval
79 * Error - <0
80 */
81 #pragma CODE_SECTION(Iqn2Device_init, ".text:Iqn2Device_init");
82 int32_t Iqn2Device_init (void)
83 {
84 CSL_Iqn2Handle hIqn2;
86 /* Get the CSL DFE Handle. */
87 hIqn2 = CSL_dfeOpen (0);
88 if (hIqn2 == NULL)
89 return -1;
91 /* Initialization has been completed. */
92 return 0;
93 }
95 /**
96 @}
97 */