Hi Rob,

PICs can share the same datasheet, but can have different number of pins. So
I need to "if" within a datasheet. Take added 18f4525, DS 39626. Its sister
18f2525 has less pins. Searching these twos and you'll see different they
are dealt with in different "if", so I can setup appropriate number of ADC
channels.

Hope this is almost clear...

Cheers,
Seb

2010/4/4 Rob Hamerling <[email protected]>

>
> Hi Seb,
>
>
> On 04/04/10 11:19 am, Sebastien Lelong wrote:
>
>>
>> I've committed a new revision of adc_channels.jal lib, with support for
>> several more PICs, including 18f4525.
>>
>
> I see in adc_channels.jal many if-statements with tests for multiple
> target-chips, preceeded by a comment with datasheet number.
> Every device file contains a constant declaration:
>  "const  byte[] DATASHEET = "<number>".
> I don't know if this is possible, but it seems to me that a test on
> datasheet number in stead of a test on every individual PIC_type is more
> generic (and maybe less error prone).
>
> Regards, Rob.
>
> --
> Rob Hamerling, Vianen, NL (http://www.robh.nl/)
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<jallib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jallib?hl=en.
>
>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to