BuffaloEngineer
Member
When I was learning to code in C on microcontrollers, we used tons of global variables - quite the opposite of how we learned to code in higher level languages. I find myself in every project trying to weigh whether to use global or local variables depending on what I'm doing.
I'm just wondering, what factors do you consider in your project when making a variable global vs. local for microcontrollers?
I usually use 16bit MSP430 MCUs from TI.
I'm just wondering, what factors do you consider in your project when making a variable global vs. local for microcontrollers?
I usually use 16bit MSP430 MCUs from TI.