#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)))
如果对linux,Android,wince 等嵌入式底层有兴趣的,请加这个QQ群吧,群号:27100460