Hi Joep,

Joep Suijs wrote:

> The basic idea of board/test files is:
> - A board file defines the chip, oscillator and pins used for specific
> tasks (like pwm, lcd in 4 and/or 8 bit mode etc). It assigns the
> logical name to a pin and defines a logical name for the corresponding
> direction pin (if required).
> - A test file uses there defines and of cource the registers for the
> functionality.
> 
> If for a specific board (chip)/test combination is lacking certain
> settings (like 16F88 to run i2c_hw_master), then compilation will fail
> and the sample will be removed.
> So the result is that only compilable samples will be generated.

Thanks for the explanation. I've also looked in the existing board files 
and maybe I still don't understand! Take for example a testboard for 
40-pins PICS. For a single PIC there are for the lcd_hd44780-4 and -8 
libs alone 4 (or 5) possible variants. Would that mean 4 board files? 
And for every other PIC on the same test board another set of 4 board 
files? That would become a lot of board files...

>> But the variations are bigger
>> than for the blink-an-LED samples. I think a properties-table is needed
>> to obtain a workable script. If you have suggestions: welcome!
> After the above, my question is what would that table do beyond the
> described above?

I thought of a table which would take the place of the board files to 
define the pins and other parms for every PIC to be tested (with a 
specific library). A script would take the table and generate the 
desired sample programs (large parts of the board files are redundant). 
This would allow me with a single script to generate sample programs for 
different test boards. I would need a (slightly different) script and 
table for every library (although lcd-hd44780-4 and -8 can be combined). 
  But there are fewer libraries than PICs!

If something similar is possible with a limited set of board files then 
I might give up the table..  But I think then I need Jallib.py to 
generate the sample programs, wouldn't I?  But I have a problem with 
that as I reported some days ago and I don't know what to do about it.

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]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to