Page 1 of 1

How To Do Custom Init Without Affecting The Main Code Base

Posted: Thu Mar 24, 2011 11:03 am
by Fred

Code: Select all

        if(!PAInitialized){
                LT1PAInit();
                PAInitialized = 1;
        }
One of these things is a variable, the other is a custom init function. The first time the ISR fires, the init flag is zero and as such the init routine runs, and sets the flag. Subsequent times the init doesn't run!

So, if experimenting with a new setup before I get around to implementing the decoder init interface aspect, do this hack, it's clever, and works well, and is all SeanK's idea! Great work, Sean :-)

Fred.