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

📄 dbgm.h

📁 使用在ti dm64xx 系列的realtime system
💻 H
字号:
/******************************************************************************
* FILENAME: REALTIME.H
*
* Real-time tutorial code 
******************************************************************************/

/*------------------------------------------------------------------------*/
/* Definitions required for manipulation of the DBGM bit on the target    */
/*------------------------------------------------------------------------*/

#define MF_REG0_ADDR       ((Uint32*)0x01BC0014) /* Address of MF_REG0 reg*/
#define MF0_DBGM_LD        ((Uint32)0x08000000)  /* Bit27 Enable load qual*/
#define MF0_DBGM           ((Uint32)0x04000000)  /* Bit26 Load DBGM       */ 

/*---- Typedefs used throughout tutorial ------------------------------------*/
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
    
#if defined (_TMS320C6X)
    /*------------------------------------------------------------------------
    * The following is true for TMS320C6x:
    *    signed short is 16-bits, 2s complement, -32768 to 32767
    *    unsigned short is 16-bits, binary, 0 to 65535
    *    signed int is 32-bits, 2s complement, -2147483648 to 2147483647
    *    unsigned int is 32-bits, binary, 0 to 4294967295
    *------------------------------------------------------------------------*/
    typedef short int16;
    typedef unsigned short uint16;
    typedef int int32;
    typedef unsigned int uint32;
#endif



/*---- Function prototypes --------------------------------------------------*/
int16 InputData(void);
void OutputData(int16 Data);
int32 Fir32(int16 x[], const int16 coeff[]); 
int16 PseudoRand16(int16 * Seed);
void PerformIsr1(void);
void PerformIsr2(void);
void PerformIsr3(void);
void TakeALongTime(void);

#define Interrupt0   1 << 0;
#define Interrupt1   1 << 1;
#define Interrupt2   1 << 2;
#define Interrupt3   1 << 3;
#define Interrupt4   1 << 4;
#define Interrupt5   1 << 5;
#define Interrupt6   1 << 6;
#define Interrupt7   1 << 7;
#define Interrupt8   1 << 8;
#define Interrupt9   1 << 9;
#define Interrupt10  1 << 10;
#define Interrupt11  1 << 11;
#define Interrupt12  1 << 12;
#define Interrupt13  1 << 13;
#define Interrupt14  1 << 14;
#define Interrupt15  1 << 15;

#define GIE          1<<0;

/* EOF */

⌨️ 快捷键说明

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