I'm building a Project which is been developed @ the StartPic18 Board, and some Hardware functions can only be tested @a prototype Borad, a mixture of breadbord and PCB . I want only one Code to maintain. My Idea is using something like
#define StartP '#define Proto ' in Progran #ifdef StartP #config MCLRE=off #endif #ifdef StartP #define Potentiometer PORTC.5 #endif #ifdef Proto #define Potentiometer PORTC.4 #endif
Or is there another Method not blowing the source such much? Maybe Scripts? That I do not understand correctly, I fear.
The easy way... create you own header and use the #include directive in your solution.
Yes indeed! why did not I get it myself? Once again a huge thanx from the stormy Germany
:-)
Log in to post a comment.
I'm building a Project which is been developed @ the StartPic18 Board, and some Hardware functions can only be tested @a prototype Borad, a mixture of breadbord and PCB .
I want only one Code to maintain.
My Idea is using something like
Or is there another Method not blowing the source such much?
Maybe Scripts? That I do not understand correctly, I fear.
The easy way... create you own header and use the #include directive in your solution.
Yes indeed! why did not I get it myself?
Once again a huge thanx from the stormy Germany
:-)