|
static
BOOL SetFrequencyControl1(
PDEVICE_INSTANCE DeviceInstance,
MASK *Mask
)
{
ULONG Tmp;
EnterCriticalSection(&DeviceInstance->ControlMutex);
Tmp = READ_REGISTER_ULONG((PULONG)&DeviceInstance->SysRegPtr->freqctrl1);
Tmp &= Mask->AndMask;
Tmp |= Mask->OrMask;
WRITE_REGISTER_ULONG((PULONG)&DeviceInstance->SysRegPtr->freqctrl1, Tmp);
DEBUGMSG(ZONE_CLOCKS,(L"GPIO:FreqControl2 = %08x (And=%08x, Or=%08x)\r\n", Tmp, Mask->AndMask, Mask->OrMask));
LeaveCriticalSection(&DeviceInstance->ControlMutex);
return TRUE;
}
一个小菜鸟想请教那个GPIO里面的上面那段程序中 DEBUGMSG(ZONE_CLOCKS,(L"GPIO:FreqControl2 = %08x (And=%08x, Or=%08x)\r\n", Tmp, Mask->AndMask, Mask->OrMask));高手们能否讲解下?
|
|