May I open a new project in the project dir on SVN for this? Where can
we store our files so we can both edit them?
I would like to edit your lib, make an example file and show you the
result so you can edit or give your feedback.

> I look forward to working with you to make this library better.
great!

>
> And I may be off in the weeds, but the file I checked in, was intended
> to be for picmicros that have a built-in SPI controller, and further,
> for use in Master mode. So, the register definitions are defined by
> the chip, for example 16f819.jal.

Yes, this should be for only pics with built-in SPI, and only for
master mode, later on we can make a seperate spi_master_sw lib

> Now, if you are considering other flavors of picmicro, which have
> built-in SPI hardware, but have different register definitions, then
> we need to deal with that somehow.  I'd rather have separate SPI
> Master library files, than a single file that is complicated and hard
> to understand and maintain.

I have tested it on 16F877, but I would also like it to work on 18F452
as well as others in the future. What chips did you test on?
I think we could have only one lib file with many example files for
each chip, like there are with other libs/examples. I have an idea for
this using ALIAS

> My thought was that SPI is (potentially) complicated, and that end-
> users would need to provide their own 'init' routine. I didn't have
> the time or resources to fully test all of the various ways that SPI
> can be used in Master mode, so I wrote a 'quick and dirty' 'init'
> routine (note the leading underscore in the name).

The user can define those registers without an init routine, since the
user MUST define them, they should go in the example file. I think we
can test different master modes and note which ones have been tested
within the lib or example file, what do you think? Also, each chip may
have different types of "master modes".


Matt.
--~--~---------~--~----~------------~-------~--~----~
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