e054f7686bc7f344e551c508d48f3dcffe02936e
1 /**
2 * \file UART_board.h
3 *
4 * \brief UART Board header file
5 *
6 */
8 /*
9 * Copyright (C) 2015 - 2017 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 _UART_BOARD_H
43 #define _UART_BOARD_H
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
49 /* Example/Board Header files */
50 #include <ti/board/board.h>
52 #ifdef UART_DMA_ENABLE
53 #if defined (SOC_AM65XX) || defined(SOC_J721E) || defined(SOC_J7200) || defined(SOC_AM64X)
54 #include <ti/drv/udma/udma.h>
55 #else
56 /* EDMA3 Header files */
57 #include <ti/sdo/edma3/drv/edma3_drv.h>
58 #include <ti/sdo/edma3/rm/edma3_rm.h>
59 #include <ti/sdo/edma3/rm/sample/bios6_edma3_rm_sample.h>
61 static EDMA3_RM_Handle UartApp_edmaInit(void);
63 extern EDMA3_RM_InstanceInitConfig sampleInstInitConfig[][EDMA3_MAX_REGIONS];
64 extern EDMA3_RM_GblConfigParams sampleEdma3GblCfgParams[];
65 #endif
66 #endif
69 #if defined(idkAM574x) || defined (idkAM572x) || defined (idkAM571x)
70 #define UART_INSTANCE (2U)
71 #else
72 #define UART_INSTANCE (BOARD_UART_INSTANCE)
73 #endif
75 #ifdef __cplusplus
76 }
77 #endif
79 #endif /* _UART_BOARD_H */