str75x.h

来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 29 行

H
29
字号
/*************************************************************************
 *
 *    Used with ICCARM and AARM.
 *
 *    (c) Copyright IAR Systems 2005
 *
 *    File name   : STR75x.h
 *    Description : STR75x specific definitions
 *
 *    History :
 *    1. Date        : September 22, 2006
 *       Author      : Stanimir Bonev
 *       Description : Create
 *
 *    $Revision: 15135 $
 **************************************************************************/
#include <includes.h>

#ifndef __STR75X_H
#define __STR75X_H

#define EIC_IRQGetCmd() ((EIC->ICR&1)?ENABLE:DISABLE)

#define EIC_IRQDisCmd(state) state = (EIC->ICR&1)?ENABLE:DISABLE;EIC_IRQCmd(DISABLE)

#define EIC_IRQRestoreCmd(state) EIC_IRQCmd(state)

#endif //__STR75X_H

⌨️ 快捷键说明

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