Page 1 of 1

[DONE] MMC_SPI driver won't compile when SPI_USE_WAIT=FALSE

Posted: Fri Mar 01, 2013 3:44 pm
by nosense
Hello,

when I tried to use MMC_SPI driver with option "#define SPI_USE_WAIT FALSE" in halconf I got compile error:

/./os/hal/src/mmc_spi.c:147: undefined reference to `spiReceive'

and few similar errors.

Is that a bug or feature ? In any case it would be great to add some checks to code and note to documentation. It took me a while to find solution to this compile problem.

When I set "#define SPI_USE_WAIT TRUE" everything works. I am using version 2.4.3.

Re: MMC_SPI driver won't compile when SPI_USE_WAIT=FALSE

Posted: Fri Mar 01, 2013 4:04 pm
by Giovanni
Hi,

It is a required option when using the MMC_SPI driver, I will add a compile time check and error about that, thanks.

Giovanni