📄 hdvo.c
字号:
/*
* 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 : hdvo.c 1.3
*
* Last update : 18:43:41 - 00/11/09
*/
#include <tmlib/tmtypes.h>
#include <tm1/tmLibdevErr.h>
#include <tm1/tmHDVOboard.h>
#include <tm1/tsaComponent.h>
#include <tm1/tmGPIOpins.h>
static boardHDVOConfig_t boardConfig1 =
{
"HDVO1",
Null,
Null,
Null,
vasGeneric,
vaaGeneric,
intHDVO,
GPIO_HDVO_CLK, /* gpio first pin */
GPIO_HDVO_D29 /* gpio last pin */
};
static Bool hdvo_activate(pcomponent_t comp)
{
pprocCapabilities_t procCaps;
/*
* probe the hardware
*/
procGetCapabilities(&procCaps);
switch(procCaps->deviceID) {
case PROC_DEVICE_TM2500:
case PROC_DEVICE_TM2600:
case PROC_DEVICE_TM2700:
case PROC_DEVICE_TM2800:
break;
default:
return False;
}
/*
* do the initialization
*/
/*
* nothing to be done right now
*/
/*
* register the interface
*/
err = tsaBoardRegisterHDVO(0, &boardConfig1);
if (err != TMLIBDEV_OK)
return False;
else
return True;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -