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

📄 target.h

📁 TMS320F2812的C++ examples 各个模块的程序
💻 H
字号:
/*************************************************************************
* $RCSFile: /db/sds/syseng/rtdx/target/examples/c28xx/target.h,v $
* $Revision: 1.6 $
* $Date: 2001/09/18 20:40:04 $
* Copyright (c) 2000 Texas Instruments Incorporated
*
* C55xx specific inititlaization details
*************************************************************************/
#ifndef __TARGET_H
#define __TARGET_H

/*  RTDX Init functions are called by C28x runtimes during PINIT.
    RTDX_Init_RT_Monitor will enable the DLOG interrupt.
    However, the user must enable the global interrupt flag.
*/
/* Enable global ints & disable WD Timer */
#define TARGET_INITIALIZE() \
	asm(" CLRC VMAP " ); \
    asm(" CLRC INTM " ); \
    asm(" EALLOW" ); \
    asm(" NOP"); \
    asm(" NOP"); \
    asm(" NOP"); \
    asm(" NOP"); \
    DISABLE_WD();	\
    asm(" EDIS");
	
	
/* Disable Watchdog Timer */
#define DISABLE_WD() \
    { \
        unsigned short* wdReg1 = (unsigned short*)0x7029; \
        unsigned short* wdReg2 = (unsigned short*)0x7025; \
        *wdReg1 |= 0x0068;               \
        *wdReg2  = 0x0055;               \
        *wdReg2  = 0x00AA;               \
    }

#endif /*__TARGET_H */

⌨️ 快捷键说明

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