Re: Re: Specifying which device to program
Scott Henion <[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
On 10/15/2013 6:47 PM, jima wrote:
>
> Let us combine Scott's suggestion with the question.
> Using Scott's suggestion of configuring a DigIn either high or low to
> indicate which SBC you have, then combine both codes into one and in
> YOUR CODE have the code configure the functions to be executed based
> on this DigIn level.
>
> Now that I think of it I have done this so much I did not see the
> solution until Scott mentioned it, WOW!
> I need to step back out of the forest so I can see the trees again!
>
> Good answer Scott.
It also works to allow your code to adapt to different revisions of
boards. If I change the hardware put something in to allow the code to
"see" that it is a new revision board.
--
------------------------------------------
Scott G. Henion, Consultant
Web site: http://SHDesigns.org
------------------------------------------