What is meaning of preceding c line

ErnieM

Joined Apr 24, 2011
8,377
It is defining a variable at a known location to allow access to a mempry mapped register.

This way the compiler knows that VICIRQStatus lives at address 0xFFFFF000, it is an unsigned long quantity, and it can change at any time (volatile).
 

NorthGuy

Joined Jun 28, 2014
611
The meaning of this line is that all occurences of "VICIRQStatus" down the text should be replace with "(*((volatile unsigned long *) 0xFFFFF000))" before compiling.
 
Top