From 16423f77811790eb11d089ed5ed45aa11abcb5af Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 23 Oct 2010 16:44:32 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2272 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/AT91SAM7/spi_lld.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal') 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 -- cgit v1.2.3