if the new driver is used without enabling SPI_USE_SYNCHRONIZATION, compilation fails due to wrong number of arguments in the define __spi_wakeup_isr() (which does nothing else then hiding/erasing the code). the following diff patches the relevant code line:
Code: Select all
$ svn diff
Index: os/hal/include/hal_spi_v2.h
===================================================================
--- os/hal/include/hal_spi_v2.h (revision 15244)
+++ os/hal/include/hal_spi_v2.h (working copy)
@@ -382,7 +382,7 @@
osalSysUnlockFromISR(); \
}
#else /* !SPI_USE_SYNCHRONIZATION */
-#define __spi_wakeup_isr(spip)
+#define __spi_wakeup_isr(spip, msg)
#endif /* !SPI_USE_SYNCHRONIZATION */
/**