Hi Matt,

On May 9, 9:29 pm, mattschinkel <[email protected]> wrote:
>
> William, do you agree that if you are always using the same mode/
> speed, the mode/speed variables should indeed be constant? Although
> API would be affected, I wish for you to think about what is best in
> the long run.
>
> As previously mentioned, the init procedure currently takes "byte in
> mode", "byte in rate" (these variables take up space), but it could
> be:
>
> -- in sample
> const byte SPI_SET_RATE = SPI_RATE_FOSC_4
> const byte SPI_SET_MODE = SPI_MODE_11
> spi_init()
>

Maybe I am missing something important, but it seems to me that trying
to optimize such a really small routine which is typically called only
once is not worth the trouble.

William

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