#include <windows.h>
#include <ceddk.h>
#include <nkintr.h>
#include <oalintr.h>
#include <pm.h>
#include "pmplatform.h"
#include "Pkfuncs.h"
#include "s2440.h"
#pragma comment(lib,"ceddk.lib")
PHYSICAL_ADDRESS pha = {0x08000014,0};
ULONG * ptr=(ULONG*) MmMapIoSpace(pha,4,FALSE);
WRITE_PORT_ULONG(ptr,7);
MmUnmapIoSpace(ptr,1);
编译时出错了,不知何解,请高人指点,谢谢了。
1 LEDDriver.obj : error LNK2019: unresolved external symbol MmUnmapIoSpace referenced in function "unsigned long __cdecl LED_Write(unsigned long,void const *,unsigned long)" (?LED_Write@@YAKKPBXK@Z)
2 LEDDriver.obj : error LNK2019: unresolved external symbol WRITE_PORT_ULONG referenced in function "unsigned long __cdecl LED_Write(unsigned long,void const *,unsigned long)" (?LED_Write@@YAKKPBXK@Z)
3 LEDDriver.obj : error LNK2019: unresolved external symbol MmMapIoSpace referenced in function "unsigned long __cdecl LED_Write(unsigned long,void const *,unsigned long)" (?LED_Write@@YAKKPBXK@Z)