Comment #6 on issue 158 by robhamerling: Serial hardware init() should include pin direction settings
http://code.google.com/p/jallib/issues/detail?id=158

Seb, I'm afraid I don't understand what you want to say with comment 5!
According to JSG: libraries don't explicitly set pin directions (activating a peripheral module may include pin direction setting, but that is beyond software control). The serial_software library requires the user program to select the pins for transmit and receive, as well as setting their directions. With the serial_hardware libraries the TX and RX pins are used implicitly (not selectable by the user program), but the direction needs be set by the user program (this appears not to be needed for all PICs, but it won't harm). A user program may rely on the power-on-reset settings, but in my opinion for educational purposes Jallib sample programs should not rely on defaults.

Now what do you think is so 'weird' about this?

Rob.




--
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