R
roaher
hi
I have some trouble reading this macro:
#define SMC_inl(r) (*((volatile dword *)(SMC_BASE_ADDRESS+(r))))
also consider that SMC_BASE_ADDRESS is address base of I/O mapped
peripherial registers, r is register offset.
Does that read: return 32bits of data stored in memory location
SMC_BASE_ADDRESS+r.
with this "(volatile dword *)" we are casting pointer to point to 32bit
wide address and first * means get the value stored at that address.
Am i reading this right ?
regards, himba
I have some trouble reading this macro:
#define SMC_inl(r) (*((volatile dword *)(SMC_BASE_ADDRESS+(r))))
also consider that SMC_BASE_ADDRESS is address base of I/O mapped
peripherial registers, r is register offset.
Does that read: return 32bits of data stored in memory location
SMC_BASE_ADDRESS+r.
with this "(volatile dword *)" we are casting pointer to point to 32bit
wide address and first * means get the value stored at that address.
Am i reading this right ?
regards, himba