I still don't get it. How will the SD card device know what mode to
use? Don't you need to configure the sd card to use a different mode
such as mode 00?

Matt.

On May 9, 11:03 am, William <[email protected]> wrote:
> Hi Matt,
>
> On May 9, 9:23 am, mattschinkel <[email protected]> wrote:
>
>
>
> > Yes, I would like to allow the user to choose a mode.
>
> Everywhere in sd_card, replace your lines like this:
>
> if SD_ALWAYS_SET_SPI_MODE == TRUE then
>       spi_master_set_mode(SPI_MODE_11)
> end if
>
> with this:
>
> if defined(SD_FORCE_SPI_MODE_FUNCTION) == true then
>    SD_FORCE_SPI_MODE_FUNCTION()
> endif
>
> Also, do this in your sd_init()  -- don't assume that the mode needs
> to be set in your sd_init() routine -- allow for the user to have
> already done so, especially in the case where all of the devices are
> of the same mode.
>
> 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