wince 下 S5pv210 的一些IO 读写更方便操作
[复制链接]
#define Set_PinData(BaseAddr, Attribute, val) { \
DWORD Confirm; \
(sgipDatRegAddr(BaseAddr, Attribute)) = \
(sgipDatRegAddr(BaseAddr, Attribute)) & \
~(MASK_1 << (sgipGetPinIdx(Attribute))) | \
((val) << (sgipGetPinIdx(Attribute))); \
Confirm = (sgipDatRegAddr(BaseAddr, Attribute)); \
} while(0)
#if (S5PV210_EVT==0)
#pragma optimize ("",on)
#endif
#define Get_PinData(BaseAddr, Attribute) (((sgipDatRegAddr(BaseAddr, Attribute)) & (MASK_1 << (sgipGetPinIdx(Attribute)))) >> (sgipGetPinIdx(Attribute)))
|