diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/AT91SAM7/spi_lld.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/platforms/AT91SAM7/spi_lld.h b/os/hal/platforms/AT91SAM7/spi_lld.h index db896fe18..d887ad04b 100644 --- a/os/hal/platforms/AT91SAM7/spi_lld.h +++ b/os/hal/platforms/AT91SAM7/spi_lld.h @@ -95,6 +95,10 @@ /* Derived constants and error checks. */
/*===========================================================================*/
+#if defined (AT91C_BASE_SPI) && AT91SAM7_SPI_USE_SPI1
+#error "SPI1 not present"
+#endif
+
#if !AT91SAM7_SPI_USE_SPI0 && !AT91SAM7_SPI_USE_SPI1
#error "SPI driver activated but no SPI peripheral assigned"
#endif
|