⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.h

📁 IT projecotr reference design.
💻 H
字号:
/****************************************************************************/
/*             TEXAS INSTRUMENTS PROPRIETARY INFORMATION                    */
/*                                                                          */
/*  (c) Copyright, Texas Instruments Incorporated, 2006.                    */
/*      All Rights Reserved.                                                */
/*                                                                          */
/*  Property of Texas Instruments Incorporated. Restricted Rights -         */
/*  Use, duplication, or disclosure is subject to restrictions set          */
/*  forth in TI's program license agreement and associated documentation.   */
/****************************************************************************/

/****************************************************************************/
/* main.h                                                                   */
/*                                                                          */
/* System startup declarations.                                             */
/****************************************************************************/

#ifndef __MAIN_H
#define __MAIN_H



/****************************************************************************/
/* Low-level fault reporting.                                               */
/*                                                                          */
/* Low-level faults which may prevent the application from reporting them   */
/* via the normal debug channel may call this function with a fatal error   */
/* code. The function will attempt to inform the user via blinking of an    */
/* LED.                                                                     */
/****************************************************************************/

void llFault( uint08 faultType, BOOL isLowPower );    /* display error code */


                        /****************************************************/
                        /* Location of low-level fault GPIO LED (LAMP HOT)  */
                        /****************************************************/

#define LLFAULT_GPIO    GPIO_PIN19

                        /****************************************************/
                        /* Errors reported from main().                     */
                        /****************************************************/

#define LLFAULT_MAIN_FLASHTABLE 0x11       /* missing flash table signature */
#define LLFAULT_MAIN_MEMINIT    0x12             /* can't initialize memory */
#define LLFAULT_MAIN_ARMINIT    0x13          /* can't init ARM peripherals */
#define LLFAULT_MAIN_MEMPOOL    0x14          /* can't allocate memory pool */

#define LLFAULT_MAIN_INITTASK   0x21     /* can't start initialization task */
#define LLFAULT_MAIN_ASICCFG    0x22  /* mismatched ASIC SW config versions */
#define LLFAULT_MAIN_SEQCFG     0x23/* mismatched sequencer config versions */

                        /****************************************************/
                        /* Errors reported from sysmon().                   */
                        /****************************************************/

#define LLFAULT_SYS_FATAL_INIT  0x31         /* module initialization fault */
#define LLFAULT_SYS_INIT        0x32 /* system monitor initialization fault */
#define LLFAULT_SYS_ASIC        0x33        /* DDPInit of DDP_FN_ASIC fault */
#define LLFAULT_SYS_I2C         0x34           /*error in first init of i2c */
#define LLFAULT_SYS_CONFIG      0x35     /* error setting app configuration */

                        /****************************************************/
                        /* ARM exeptions.                                   */
                        /****************************************************/

#define LLFAULT_EX_DATA         0x41                         /* data access */
#define LLFAULT_EX_PREFETCH     0x42                     /* prefetch access */
#define LLFAULT_EX_INSTRUCT     0x43                 /* unknown instruction */

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -