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

📄 target.h2

📁 在CCS环境下的一个视频采集源代码
💻 H2
字号:
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DSP/BIOS 4.90.270 01-13-05 (barracuda-o07)" */
#ifndef __TARGET_H
#define __TARGET_H

#ifdef _62_
extern cregister volatile unsigned int IER;
extern cregister volatile unsigned int ISR;
extern cregister volatile unsigned int CSR;

#define NMIE_BIT    0x00000002
#define TARGET_INITIALIZE() \
    IER |= 0x00000001 | NMIE_BIT; \
    CSR |= 0x00000001;
#endif // _62_

#ifdef _64_
#define IER_NMIE	0x00000002
#define CSR_GIE     0x00000001
#define TARGET_INITIALIZE() \
	IER |= 0x00000001 | IER_NMIE; \
	CSR |= CSR_GIE;
#endif // _64_

#ifdef _67_
extern cregister volatile unsigned int IER;
extern cregister volatile unsigned int ISR;
extern cregister volatile unsigned int CSR;

#define NMIE_BIT    0x00000002
#define TARGET_INITIALIZE() \
    IER |= 0x00000001 | NMIE_BIT; \
    CSR |= 0x00000001;
#endif // _67_


#ifdef _54_
#define TARGET_INITIALIZE()
#endif // _54_

#ifdef _55_
#define TARGET_INITIALIZE() \
    asm("    .if(.MNEMONIC)"); \
    asm("        BCLR   ST1_INTM,ST1_55"); \
    asm("    .else"); \
    asm("        BIT (ST1, #ST1_INTM) = #0"); \
    asm("    .endif"); 
#endif // _55_


#ifdef _28_
#define TARGET_INITIALIZE() \
    asm("     clrc intm,dbgm");
#endif // _28_

#endif // __TARGET_H

⌨️ 快捷键说明

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