?? test.cpp
字號(hào):
#include <vxworks.h>
#include<syslib.h>
#include<iostream.h>
#include<stdlib.h>
#include<stdio.h>
#include"w99200.h"
#include"pciini.h"
#include"xdefine.h"
#include"video.h"
//unsigned long _IOBase = 0; // I/O base for video
#define DeviceID 0x9921 // no use
#define VendorID 0x1050 // no use
#define TESTITEMS //no use
extern int UTL_LVE(char *szFileName,int dwLimit,int iUseMaster);
extern WORD PCI_GetIOBase ( DWORD * pdwWord );
extern unsigned long _IOBase; //declaring in the head.h
void pci(void)
{
//if(pciFindDevice(0x1050,0x9921,0,0,0,0)==OK)
//printf("ok");
//else
//printf("err");
int ulTmp;
if ( PCI_GetIOBase(&ulTmp)==FALSE)
printf ( "\nGetIOBase Error,,;");
_IOBase = ulTmp;
printf("%x",ulTmp);
if(W99200WriteReg( PCR,0x60 )==FALSE){
printf("pcr eer");
return;}
if(W99200WriteReg(Vint_enable, 0x00)==FALSE){
printf("int eer");
return;}
printf("init begin\n");
if(UTL_LVE("1.mpg",5,1)==TRUE)
printf("ok11");
else
printf("eeee");
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -