> Why not allow the user to choose the mode? Yes, I would like to allow the user to choose a mode. maybe we can create a procedure for sd_select_spi_mode(). This procedure would configure the SD cards mode.
Please provide some example code if my suggestion isn't what you are looking for. Matt. On May 9, 9:52 am, Sebastien Lelong <[email protected]> wrote: > Hi guys, > > 2011/5/9 William <[email protected]> > > > > > I prefer mode 00 for SD cards - works fine here with a picmicro albeit > > running a C library not JAL. > > > Why not allow the user to choose the mode? > > I agree with that, since user has to define an alias in any case, he could > choose which mode to use. It adds flexibility for the exact same effort from > user's /API point of view. Internally, it really just means alias name > musn't contain a mode. Like spi_...force_mode() as you suggested William. > > Cheers, > Seb -- 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.
