Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

reduce repeating codes

Status
Not open for further replies.
The preprocessor runs before the compiler and will effectively insert the code so that it is the same as your current code. The above is just a shortcut to save typing.

Mike.

I read the same. I will restructure my code may be I take some other approach. Thanks for helping me out.
 
I'm not up to speed on the AVRs but I suggest you define a SaveRAM section in the link file and place all your variables (that need saving) in that section. You can then save/restore with a simple for loop.

Mike.
 
Status
Not open for further replies.

Latest threads

Back
Top