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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…