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

📄 iocomponents.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的设备库的源码
💻 H
字号:
/*
 * Copyright (c) 1999 by TriMedia Technologies. 
 *
 * +------------------------------------------------------------------+
 * | This software is furnished under a license and may only be used  |
 * | and copied in accordance with the terms and conditions of  such  |
 * | a license and with the inclusion of this copyright notice. This  |
 * | software or any other copies of this software may not be provided|
 * | or otherwise made available to any other person.  The ownership  |
 * | and title of this software is not transferred.                   |
 * |                                                                  |
 * | The information in this software is subject  to change without   |
 * | any  prior notice and should not be construed as a commitment by |
 * | TriMedia Technologies.                                           |
 * |                                                                  |
 * | this code and information is provided "as is" without any        |
 * | warranty of any kind, either expressed or implied, including but |
 * | not limited to the implied warranties of merchantability and/or  |
 * | fitness for any particular purpose.                              |
 * +------------------------------------------------------------------+
 *
 *  Module name              : IOComponents.h    1.3
 *
 *
 *  Last update              : 08:15:09 - 99/04/16
 *
 *  Description              :
 *
 *      Component set defined:
 * 
 *              FlashFS                  
 *              HostIODriver                 
 *              HostStdio                    
 *              SerialConsoleStdio   
 *              SerialConsoleDriver   
 *              SerialRPC             
 */

#include <tm1/tmLibdevErr.h>

#ifndef _IOCOMPONENTS_H_
#define _IOCOMPONENTS_H_

#define TRY(x) \
do { \
tmLibdevErr_t _err = (x); \
if (_err != TMLIBDEV_OK) { \
    return _err; \
} } while (0)



#define IOBASE  "libio/"
#define CONSOLE "/dev/console"


#define ID(component)        IOBASE #component
#define IDENTIFY(component)  TRY(tsaRegAddDirectory(ID(component)))
#define PULLIN(component)    Int component=1;

#endif /* _IOCOMPONENTS_H_ */


⌨️ 快捷键说明

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