[processor-sdk/pdk.git] / packages / ti / board / diag / mcspi / build / am65xx_idk / GPIO_SPI_config.c
1 /**
2 * \file SPI_idkAM65xx_board.c
3 *
4 * \brief AM65xx IDK Board specific GPIO parameters.
5 *
6 * This file contains the GPIO hardware parameters specific to board.
7 */
9 /*
10 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 *
16 * Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 *
19 * Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the
22 * distribution.
23 *
24 * Neither the name of Texas Instruments Incorporated nor the names of
25 * its contributors may be used to endorse or promote products derived
26 * from this software without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 *
40 */
42 #include <stdlib.h>
43 #include <ti/drv/gpio/GPIO.h>
44 #include <ti/csl/soc.h>
45 #include <ti/drv/gpio/soc/GPIO_soc.h>
47 /* Port and pin number mask for GPIO Load pin.
48 Bits 7-0: Pin number and Bits 15-8: Port number */
49 #define AM65XX_IDK_GPIO_LD_PIN (0x0041)
52 /* GPIO Driver board specific pin configuration structure */
53 GPIO_PinConfig gpioPinConfigs[] = {
54 /* Output pin : AM65XX_IDK */
55 AM65XX_IDK_GPIO_LD_PIN | GPIO_CFG_OUTPUT
56 };
58 /* GPIO Driver call back functions */
59 GPIO_CallbackFxn gpioCallbackFunctions[] = {
60 NULL
61 };
63 /* GPIO Driver configuration structure */
64 GPIO_v0_Config GPIO_v0_config = {
65 gpioPinConfigs,
66 gpioCallbackFunctions,
67 sizeof(gpioPinConfigs) / sizeof(GPIO_PinConfig),
68 sizeof(gpioCallbackFunctions) / sizeof(GPIO_CallbackFxn),
69 0,
70 };