Skip to content

Instantly share code, notes, and snippets.

@jadonk
Created September 23, 2019 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadonk/96b86b9c604df5b9382032ff47c7099f to your computer and use it in GitHub Desktop.
Save jadonk/96b86b9c604df5b9382032ff47c7099f to your computer and use it in GitHub Desktop.
/**
* Note: This file was auto-generated by TI PinMux on 9/23/2019 at 9:37:58 AM.
*
* \file boardPadDelayInit.c
*
* \brief This file contain manual/vritual iodelay mode definitions
*
* \copyright Copyright (CU) 2015-2018 Texas Instruments Incorporated -
* http://www.ti.com/
*/
/**
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include <stdint.h>
#include "boardPadDelay.h"
#include "boardPadDelayTune.h"
#if defined(_TMS320C6X) || defined(__TI_ARM_V7M4__)
#ifndef __cplusplus
#pragma DATA_SECTION (pad, "BOARD_IO_DELAY_DATA");
#else
#pragma DATA_SECTION ("BOARD_IO_DELAY_DATA");
#endif
const boardPadDelayCfg_t pad[] = {
#else
const boardPadDelayCfg_t pad[] __attribute__((section("BOARD_IO_DELAY_DATA"))) = {
#endif
/** {PADCONF_REG_OFFSET, PADCONF_VALUE, {CFG_X_IN offset, aDelay, gDelay}, {CFG_X_OEN offset, aDelay, gDelay}, {CFG_X_OUT offset, aDelay, gDelay}} **/
/* SPI4 - spi4_sclk on N7 - MySPI1 */
{0x1460, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI4 - spi4_d0 on N9 - MySPI1 */
{0x1468, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI4 - spi4_d1 on R4 - MySPI1 */
{0x1464, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI4 - spi4_cs0 on P9 - MySPI1 */
{0x146C, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI4 - spi4_cs1 on P4 - MySPI1 */
{0x1470, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI4 - spi4_cs2 on R3 - MySPI1 */
{0x1474, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI4 - spi4_cs3 on T2 - MySPI1 */
{0x1478, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_sclk on E11 - MySPI2 */
{0x15D8, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_d0 on C11 - MySPI2 */
{0x15D4, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_d1 on B10 - MySPI2 */
{0x15CC, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_cs0 on D11 - MySPI2 */
{0x15C8, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_cs1 on B11 - MySPI2 */
{0x15D0, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_cs2 on F11 - MySPI2 */
{0x15DC, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI3 - spi3_cs3 on A10 - MySPI2 */
{0x1638, 0x10008, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_sclk on A26 - MySPI3 */
{0x17C0, 0x10000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_d0 on G17 - MySPI3 */
{0x17C8, 0x90000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_d1 on B22 - MySPI3 */
{0x17C4, 0x90000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_cs0 on B24 - MySPI3 */
{0x17CC, 0x90000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_cs1 on A22 - MySPI3 */
{0x17B4, 0x10003, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_cs2 on B21 - MySPI3 */
{0x17B8, 0x90003, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI2 - spi2_cs3 on B20 - MySPI3 */
{0x17BC, 0x90003, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI1 - spi1_sclk on A25 - MySPI4 */
{0x17A4, 0x10000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI1 - spi1_d0 on B25 - MySPI4 */
{0x17AC, 0x10000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI1 - spi1_d1 on F16 - MySPI4 */
{0x17A8, 0x10000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
/* SPI1 - spi1_cs0 on A24 - MySPI4 */
{0x17B0, 0x10000, {0x0, 0, 0}, {0x0, 0, 0}, {0x0, 0, 0}},
};
#ifdef __cplusplus
#if defined(_TMS320C6X) || defined(__TI_ARM_V7M4__)
#pragma CODE_SECTION ("BOARD_IO_DELAY_CODE");
#endif
#endif
uint32_t boardPadGetSize()
{
return (sizeof(pad) / sizeof(boardPadDelayCfg_t));
}
#ifdef BOARD_PAD_DELAY_ALT_GRP_ENABLE
#ifdef __cplusplus
#if defined(_TMS320C6X) || defined(__TI_ARM_V7M4__)
#pragma CODE_SECTION ("BOARD_IO_DELAY_CODE");
#endif
#endif
uint32_t boardAltPadGetSize()
{
return (sizeof(altPad) / sizeof(boardPadDelayAltGpCfg_t));
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment