> Sorry I am not better at communicating... So far I know, devices that > support different SPI modes figure it out automatically. It purpose > of spi_init() is to set registers inside the picmicro.
I didn't know that. Actually vs1053b does not detect it. You have to start with the default mode, then send a command, then switch to another mode. Init procedure would require a mode change at some point. > In my case, where all devices use the same mode, I would just call > spi_init() once at the beginning of the program, and I would not > define SD_FORCE_SPI_MODE_FUNCTION, and so when I included sd_card, > your library will not mess with the mode at all. True, but with current implementation, if SD_ALWAYS_SET_SPI_MODE = FALSE, it will also not mess with the mode in your case (except for init proc). 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.
