static volatile unsigned char PORTB @ 0x06;
This is a line of code in a picPIC microcontroller header file. The @
operator is used to store the PORTB value inside the address 0x060x06
, which is a register inside the PIC controller that represents PORTB. Up to this sidepoint, I hadhave a clear idea.
This line is declared as a global variable inside a header file (*.h.h
). So, from what I came to know inabout the C language, a "Static Global Variable" cannot be"static global variable" is not visible to any other file - or, simply "Static Global Variables, static global variables /functions" functions cannot be used outside of the current file.
Then, how can this keyword PORTB
isbe visible to my main source file and many other header files which I created manually?
On my main source file, I only addadded the header file #include pic.h
Does this have something to do with my question?