![]() |
#2
天使梦魔2014-10-08 10:53
|
ULONG DeviceNum=0;//表示设备号
LONG DriverHandle;//返回设备句柄,指向要操作的设备
PT_DioReadBit ptDioReadBit;
DRV_DeviceOpen(DeviceNum,&DriverHandle);
ptDioReadBit.port=0;
ptDioReadBit.bit=0;
ptDioReadBit.state=0;
DRV_DioReadBit(DriverHandle,&ptDioReadBit);
DRV_DeviceClose(&DriverHandle);
为什么一运行就出现内存不能被written,谢了!