2011/4/19 mattschinkel <[email protected]> > I prefer to take the spi init procedure and split it into two. >
OK, do you want me to take care of this ? Cheers, Seb > > spi_master_hw_set_mode(byte in mode) > spi_master_hw_set_speed(byte in speed) > > The set speed procedure may not be used as often, however there are > some devices that require SPI commands to be slower then SPI data > transfers. For example, mp3 decoder vs1053b > > Then add another alias to the sample > > alias spi_master_set_mode is spi_master_hw_set_mode > > Matt. > > On Apr 19, 6:42 am, Sebastien Lelong <[email protected]> > wrote: > > OK, thanks for pointing this. How can we solve this in order sd_card.jal > to > > be fully generic ? I remember we have the exact same problem with > ethernet > > libs. > > > > Cheers, > > Seb > > > > 2011/4/19 mattschinkel <[email protected]> > > > > > > > > > Thanks. > > > > > You may also want to pay attention to these lines (if you are using > > > more then one SPI device that use different modes) > > > > > -- put spi into mode 11 > > > if SD_ALWAYS_SET_SPI_MODE == TRUE then > > > SSPCON_CKP = 1 > > > SSPSTAT_CKE = 0 > > > end if > > > > > All of my SPI libs use these lines so the devices can be used > > > together. > > > > > SD_ALWAYS_SET_SPI_MODE is defined in the sample. > > > > > Matt. > > > > > -- > > > 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. > > > > -- > > Sébastien Lelonghttp://www.sirloon.nethttp://sirbot.org > > -- 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.
