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

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
nosense
Posts: 22
Joined: Mon Oct 08, 2012 7:15 pm

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

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post 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
Post Reply