From 43d0ad4075d5616d5564b3934c2daad43f45d1b5 Mon Sep 17 00:00:00 2001 From: cinsights Date: Sat, 17 Apr 2021 07:59:41 +0000 Subject: [PATCH] Set STM32_HAS_SPIR FALSE in registry of MCUs using SPIv2 (except WLxx) git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14209 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32F37x/stm32_registry.h | 8 ++++++++ os/hal/ports/STM32/STM32F3xx/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32F7xx/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32G0xx/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32G4xx/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32L4xx+/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 3 +++ os/hal/ports/STM32/STM32WBxx/stm32_registry.h | 3 +++ 9 files changed, 32 insertions(+) diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h index f658daa30..50aa78d09 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h @@ -45,6 +45,9 @@ /* RNG attributes.*/ #define STM32_HAS_RNG1 FALSE +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32F030x4, STM32F030x6, STM32F030x8, STM32F030xC. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32F37x/stm32_registry.h b/os/hal/ports/STM32/STM32F37x/stm32_registry.h index 3a318fdf3..ff160db7e 100644 --- a/os/hal/ports/STM32/STM32F37x/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F37x/stm32_registry.h @@ -33,6 +33,14 @@ * @name STM32F37x capabilities * @{ */ + +/*===========================================================================*/ +/* Common. */ +/*===========================================================================*/ + +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32F373xC. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_registry.h b/os/hal/ports/STM32/STM32F3xx/stm32_registry.h index ecaa8cf09..2d4809ff9 100644 --- a/os/hal/ports/STM32/STM32F3xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F3xx/stm32_registry.h @@ -48,6 +48,9 @@ /* RNG attributes.*/ #define STM32_HAS_RNG1 TRUE +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32F303xC. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32F7xx/stm32_registry.h b/os/hal/ports/STM32/STM32F7xx/stm32_registry.h index 5a5e4b036..6580441b7 100644 --- a/os/hal/ports/STM32/STM32F7xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F7xx/stm32_registry.h @@ -78,6 +78,9 @@ #define STM32_HAS_CRYP1 FALSE #endif +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32F722xx, STM32F723xx, STM32F732xx, STM32F733xx. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32G0xx/stm32_registry.h b/os/hal/ports/STM32/STM32G0xx/stm32_registry.h index 0ba9e97df..b5b3e5812 100644 --- a/os/hal/ports/STM32/STM32G0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32G0xx/stm32_registry.h @@ -84,6 +84,9 @@ #define STM32_HAS_CRYP1 FALSE #endif +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32G070xx. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32G4xx/stm32_registry.h b/os/hal/ports/STM32/STM32G4xx/stm32_registry.h index fbfc6dbf2..f8b564f5e 100644 --- a/os/hal/ports/STM32/STM32G4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32G4xx/stm32_registry.h @@ -110,6 +110,9 @@ #define STM32_HAS_PLLSAI1 FALSE #define STM32_HAS_PLLSAI2 FALSE +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32G473xx, STM32G4843xx, STM32G474xx, STM32G484xx. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32L4xx+/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx+/stm32_registry.h index 88673699c..da4758686 100644 --- a/os/hal/ports/STM32/STM32L4xx+/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx+/stm32_registry.h @@ -74,6 +74,9 @@ /* I2C attributes.*/ #define STM32_I2C4_USE_BDMA FALSE +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32L4yyxx+. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index 4ead91155..47e447821 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -71,6 +71,9 @@ #define STM32_HAS_CRYP1 FALSE #endif +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32L432xx, STM32L433xx. */ /*===========================================================================*/ diff --git a/os/hal/ports/STM32/STM32WBxx/stm32_registry.h b/os/hal/ports/STM32/STM32WBxx/stm32_registry.h index ff6e3f163..c05590814 100644 --- a/os/hal/ports/STM32/STM32WBxx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32WBxx/stm32_registry.h @@ -68,6 +68,9 @@ #define STM32_HAS_HASH1 TRUE #define STM32_HAS_CRYP1 TRUE +/* SPI attributes. */ +#define STM32_HAS_SPIR FALSE + /*===========================================================================*/ /* STM32WB55xx. */ /*===========================================================================*/