Hi Seb,
On 2011/04/15 14:39, Sebastien Lelong wrote:
I have a working sample running EUSART2 module (via Peripheral Pin Select feature so RX2/TX2 remapped on pins of my choice, woohoo) on PIC18F27J53. As Matt mentioned, current serial_hardware.jal and usart_common.jal libraries don't support EUSART2, only the first module. How can we make progress on this ? I had suggested to use a template to generate 2 different sets for these, does that sound ok to you ?This would involves: - serial_hardware.jal and serial_hardware2.jal (first lib remains unchanged for backward compatibilities) - same for each "public" procedures and functions, only the second version will have names including "2" (eg. serial_hw2_init, serial_hw2_read, etc...)
At first sight it seems good to have two (independent) libraries. By choosing the library you choose the USART (or vice versa). With independent I man that it should also be possible to use both USARTs simultaneously.
I don't see the usefulness of a template. I don't expect significant changes in the current library and the second will be almost identical except for a suffix '2' at a number of places.
A template seems only useful when you expect more USARTs to appear. Regards, Rob. -- R. Hamerling, Netherlands --- 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.
