There are no samples with the new 4 mode routines, I haven't gotten
around to it yet. However, there is already files using the new
spi_master_set_mode procedure. It is pretty much the same thing.

See any sd_card sample + the lib

I'll simply be replacing use of spi_master_set_mode(SPI_MODE_11) with
spi_master_set_mode_11 in sd card lib.

Actually sd card has been calling the registers directly for quite a
while now. It's good to stay away from calling registers directly. I
have always used "if SD_ALWAYS_SET_SPI_MODE == TRUE then"

Matt.

On May 9, 7:38 am, William <[email protected]> wrote:
> Hi Matt,
>
> On May 8, 9:31 pm, mattschinkel <[email protected]> wrote:
>
> > It's good, but seems to accomplish the same thing as the current
> > constant does, or am I missing something? The named constant seems
> > more clear. Both ways take up 1 line of code.
>
> Is there a specific sample I could review? I am probably confused by
> these small code fragments.
>
> I didn't realize you already had samples using the 4 new mode
> routines.
>
> 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