From 7ab0cff418bf49fcf1671dd72667b81a85c1ac37 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 14 Nov 2010 13:29:09 +0000 Subject: Improved STM32 HAL support. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2363 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/spi_lld.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'os/hal/platforms/STM32/spi_lld.h') diff --git a/os/hal/platforms/STM32/spi_lld.h b/os/hal/platforms/STM32/spi_lld.h index 592a904f0..d46035ec0 100644 --- a/os/hal/platforms/STM32/spi_lld.h +++ b/os/hal/platforms/STM32/spi_lld.h @@ -147,9 +147,16 @@ /* Derived constants and error checks. */ /*===========================================================================*/ -#if STM32_SPI_USE_SPI3 && \ - !(defined(STM32F10X_HD) || defined(STM32F10X_CL)) -#error "SPI only present in HD and CL devices" +#if STM32_SPI_USE_SPI1 && !STM32_HAS_SPI1 +#error "SPI1 not present in the selected device" +#endif + +#if STM32_SPI_USE_SPI2 && !STM32_HAS_SPI2 +#error "SPI2 not present in the selected device" +#endif + +#if STM32_SPI_USE_SPI3 && !STM32_HAS_SPI3 +#error "SPI3 not present in the selected device" #endif #if !STM32_SPI_USE_SPI1 && !STM32_SPI_USE_SPI2 && !STM32_SPI_USE_SPI3 -- cgit v1.2.3