Can anyone please help me in understanding the following code:
UD1RX is referred to in the application code (foreg: RX = UD1RX) and i have found the following defines for the same, but
couldnt quite understand why they mean.
I understand it is being casted as a pointer to a pointer. But it is confusing. I appreciate if any one could explain it.
UD1RX is referred to in the application code (foreg: RX = UD1RX) and i have found the following defines for the same, but
couldnt quite understand why they mean.
I understand it is being casted as a pointer to a pointer. But it is confusing. I appreciate if any one could explain it.
Code:
#define UD1RX CAST_UC(0xfffffa16UL) #ifdef __LANGUAGE_ASM__ #define CAST_UC(x) x #else typedef volatile unsigned char* pU08necDevFile; #define CAST_UC(x) ( *(pU08necDevFile)(x) )
Comment