aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-23 16:44:32 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-23 16:44:32 +0000
commit16423f77811790eb11d089ed5ed45aa11abcb5af (patch)
treed3789719c2eedc236f553c23c2e53c9717e5b17f /os
parent341a89dfd55141c458b8a73b44b4188554208e46 (diff)
downloadChibiOS-16423f77811790eb11d089ed5ed45aa11abcb5af.tar.gz
ChibiOS-16423f77811790eb11d089ed5ed45aa11abcb5af.tar.bz2
ChibiOS-16423f77811790eb11d089ed5ed45aa11abcb5af.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2272 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/AT91SAM7/spi_lld.h4
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