From 6f7ae6af72328f41ed3156206a7af738719fe9c8 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 26 May 2016 12:57:35 +0000 Subject: QUADSPI settings in all registries and platform.mk. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9535 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F4xx/platform.mk | 5 +++++ os/hal/ports/STM32/STM32F4xx/stm32_registry.h | 29 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) (limited to 'os/hal/ports/STM32/STM32F4xx') diff --git a/os/hal/ports/STM32/STM32F4xx/platform.mk b/os/hal/ports/STM32/STM32F4xx/platform.mk index 055657d8d..ced19b83e 100644 --- a/os/hal/ports/STM32/STM32F4xx/platform.mk +++ b/os/hal/ports/STM32/STM32F4xx/platform.mk @@ -31,6 +31,9 @@ endif ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),) PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c endif +ifneq ($(findstring HAL_USE_QSPI TRUE,$(HALCONF)),) +PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.c +endif ifneq ($(findstring HAL_USE_RTC TRUE,$(HALCONF)),) PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c endif @@ -74,6 +77,7 @@ PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/MACv1/hal_mac_lld.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c \ + $(CHIBIOS)/os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1/hal_i2s_lld.c \ @@ -99,6 +103,7 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \ $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1 \ $(CHIBIOS)/os/hal/ports/STM32/LLD/MACv1 \ $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1 \ + $(CHIBIOS)/os/hal/ports/STM32/LLD/QUADSPIv1 \ $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2 \ $(CHIBIOS)/os/hal/ports/STM32/LLD/SDIOv1 \ $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \ diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h index eb9ce86a5..c48f815a7 100644 --- a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h @@ -217,6 +217,13 @@ #define STM32_HAS_I2C4 FALSE +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 TRUE +#define STM32_QUADSPI1_HANDLER Vector1AC +#define STM32_QUADSPI1_NUMBER 91 +#define STM32_QUADSPI1_DMA_MSK STM32_DMA_STREAM_ID_MSK(2, 7) +#define STM32_QUADSPI1_DMA_CHN 0x30000000 + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #define STM32_RTC_HAS_SUBSECONDS TRUE @@ -571,6 +578,13 @@ #define STM32_HAS_I2C4 FALSE +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 TRUE +#define STM32_QUADSPI1_HANDLER Vector1AC +#define STM32_QUADSPI1_NUMBER 91 +#define STM32_QUADSPI1_DMA_MSK STM32_DMA_STREAM_ID_MSK(2, 7) +#define STM32_QUADSPI1_DMA_CHN 0x30000000 + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #define STM32_RTC_HAS_SUBSECONDS TRUE @@ -906,6 +920,9 @@ #define STM32_HAS_I2C4 FALSE +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 FALSE + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #define STM32_RTC_HAS_SUBSECONDS TRUE @@ -1268,6 +1285,9 @@ #define STM32_HAS_I2C4 FALSE +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 FALSE + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #if !defined(STM32F2XX) @@ -1584,6 +1604,9 @@ #define STM32_HAS_I2C4 FALSE +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 FALSE + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #define STM32_RTC_HAS_SUBSECONDS TRUE @@ -1865,6 +1888,9 @@ STM32_DMA_STREAM_ID_MSK(1, 1)) #define STM32_I2C4_TX_DMA_CHN 0x00040020 +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 FALSE + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #define STM32_RTC_HAS_SUBSECONDS TRUE @@ -2123,6 +2149,9 @@ #define STM32_HAS_I2C4 FALSE +/* QUADSPI attributes.*/ +#define STM32_HAS_QUADSPI1 FALSE + /* RTC attributes.*/ #define STM32_HAS_RTC TRUE #define STM32_RTC_HAS_SUBSECONDS TRUE -- cgit v1.2.3