/** @file sys_selftest.h * @brief System Memory Header File * @date 11-Dec-2018 * @version 04.07.01 * * This file contains: * - Efuse Self Test Functions * . * which are relevant for the System driver. */ /* * Copyright (C) 2009-2018 Texas Instruments Incorporated - 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. * */ #ifndef __sys_selftest_H__ #define __sys_selftest_H__ #include "reg_pbist.h" #include "reg_stc.h" #include "reg_efc.h" #include "sys_core.h" #include "system.h" #include "sys_vim.h" #include "adc.h" #include "can.h" #include "mibspi.h" #include "het.h" #include "htu.h" #include "esm.h" /* USER CODE BEGIN (0) */ /* USER CODE END */ #define flash1bitError (*(volatile uint32 *)(0xF00803F0U)) #define flash2bitError (*(volatile uint32 *)(0xF00803F8U)) #define tcramA1bitError (*(volatile uint32 *)(0x08400000U)) #define tcramA2bitError (*(volatile uint32 *)(0x08400010U)) #define tcramB1bitError (*(volatile uint32 *)(0x08400008U)) #define tcramB2bitError (*(volatile uint32 *)(0x08400018U)) #define tcramA1bit (*(volatile uint64 *)(0x08000000U)) #define tcramA2bit (*(volatile uint64 *)(0x08000010U)) #define tcramB1bit (*(volatile uint64 *)(0x08000008U)) #define tcramB2bit (*(volatile uint64 *)(0x08000018U)) #define flashBadECC1 (*(volatile uint32 *)(0x20000000U)) #define flashBadECC2 (*(volatile uint32 *)(0x20000010U)) #define CCMSR (*(volatile uint32 *)(0xFFFFF600U)) #define CCMKEYR (*(volatile uint32 *)(0xFFFFF604U)) #define DMA_PARCR (*(volatile uint32 *)(0xFFFFF1A8U)) #define DMA_PARADDR (*(volatile uint32 *)(0xFFFFF1ACU)) #define DMARAMLOC (*(volatile uint32 *)(0xFFF80000U)) #define DMARAMPARLOC (*(volatile uint32 *)(0xFFF80A00U)) #define MIBSPI1RAMLOC (*(volatile uint32 *)(0xFF0E0000U)) #define MIBSPI3RAMLOC (*(volatile uint32 *)(0xFF0C0000U)) #define MIBSPI5RAMLOC (*(volatile uint32 *)(0xFF0A0000U)) #ifndef __PBIST_H__ #define __PBIST_H__ /** @enum pbistPort * @brief Alias names for pbist Port number * * This enumeration is used to provide alias names for the pbist Port number * - PBIST_PORT0 * - PBIST_PORT1 * * @note Check the datasheet for the port avaiability */ enum pbistPort { PBIST_PORT0 = 0U, /**< Alias for PBIST Port 0 */ PBIST_PORT1 = 1U /**< Alias for PBIST Port 1 < Check datasheet for Port 1 availability > */ }; /** @enum pbistAlgo * @brief Alias names for pbist Algorithm * * This enumeration is used to provide alias names for the pbist Algorithm */ enum pbistAlgo { PBIST_TripleReadSlow = 0x00000001U, /**