diff options
author | Uladzimir Pylinski <barthess@yandex.ru> | 2016-05-01 12:54:03 +0300 |
---|---|---|
committer | Uladzimir Pylinski <barthess@yandex.ru> | 2016-05-01 12:54:03 +0300 |
commit | 05a8a76ea0153fb1dded1a92ffc411002c11f612 (patch) | |
tree | 4c582c3a8e2cdb35c33d4c1bc45c6fa5c2655ce7 /demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h | |
parent | ecab016be95ecfc51d0e0708d473eaf60f5f0ac7 (diff) | |
parent | 09a35652f719e7c21fea4063484625edc4091fe6 (diff) | |
download | ChibiOS-Contrib-05a8a76ea0153fb1dded1a92ffc411002c11f612.tar.gz ChibiOS-Contrib-05a8a76ea0153fb1dded1a92ffc411002c11f612.tar.bz2 ChibiOS-Contrib-05a8a76ea0153fb1dded1a92ffc411002c11f612.zip |
Merge pull request #66 from pl4nkton/stm32_fixes
Stm32 fixes
Diffstat (limited to 'demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h')
-rw-r--r-- | demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h b/demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h index 7aab0c4..817ed59 100644 --- a/demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h +++ b/demos/STM32/RT-STM32F429-DISCOVERY-DMA2D/mcuconf.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@ limitations under the License.
*/
-#ifndef _MCUCONF_H_
-#define _MCUCONF_H_
+#ifndef MCUCONF_H
+#define MCUCONF_H
/*
* STM32F4xx drivers configuration.
@@ -176,6 +176,21 @@ #define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
/*
+ * I2S driver system settings.
+ */
+#define STM32_I2S_USE_SPI2 FALSE
+#define STM32_I2S_USE_SPI3 FALSE
+#define STM32_I2S_SPI2_IRQ_PRIORITY 10
+#define STM32_I2S_SPI3_IRQ_PRIORITY 10
+#define STM32_I2S_SPI2_DMA_PRIORITY 1
+#define STM32_I2S_SPI3_DMA_PRIORITY 1
+#define STM32_I2S_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
+#define STM32_I2S_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
+#define STM32_I2S_SPI3_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 0)
+#define STM32_I2S_SPI3_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
+#define STM32_I2S_DMA_ERROR_HOOK(i2sp) osalSysHalt("DMA failure")
+
+/*
* ICU driver system settings.
*/
#define STM32_ICU_USE_TIM1 FALSE
@@ -340,6 +355,11 @@ #define STM32_USB_OTGFIFO_FILL_BASEPRI 0
/*
+ * WDG driver system settings.
+ */
+#define STM32_WDG_USE_IWDG FALSE
+
+/*
* LTDC driver system settings.
*/
#define STM32_LTDC_USE_LTDC TRUE
@@ -357,4 +377,4 @@ */
#include "mcuconf_community.h"
-#endif /* _MCUCONF_H_ */
+#endif /* MCUCONF_H */
|