Part Number: TM4C123GE6PM
Hello,
I'm comparing the definitions of variable in both of these examples:
Section 15.3 of this document:
vs
lab 14 of this document
"software-dl.ti.com/.../TM4C123G_LaunchPad_Workshop_Workbook.pdf"
In the first example:
tI2CMInstance sI2CInst;
tMPU6050 sMPU6050;
Are declared locally inside a function.
In the second example - very similar variables exist:
tI2CMInstance g_sI2CInst;
tISL29023 g_sISL29023Inst;
But these are declared globally outside of main.
Why the difference ?