aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/platforms/STM32/spi_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-01 12:41:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-01 12:41:37 +0000
commit5d84678f57e30b8ec6765a74eb05c89c9c651baa (patch)
tree0f9d1ad7467a5661986a57c909b43599900eb3a0 /os/io/platforms/STM32/spi_lld.h
parenta95d728fc36f0d96c08a78b6af543a440217d3a4 (diff)
downloadChibiOS-5d84678f57e30b8ec6765a74eb05c89c9c651baa.tar.gz
ChibiOS-5d84678f57e30b8ec6765a74eb05c89c9c651baa.tar.bz2
ChibiOS-5d84678f57e30b8ec6765a74eb05c89c9c651baa.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1260 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/platforms/STM32/spi_lld.h')
-rw-r--r--os/io/platforms/STM32/spi_lld.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/os/io/platforms/STM32/spi_lld.h b/os/io/platforms/STM32/spi_lld.h
index 7348b72a6..671659d72 100644
--- a/os/io/platforms/STM32/spi_lld.h
+++ b/os/io/platforms/STM32/spi_lld.h
@@ -64,7 +64,7 @@
* over the TX channel.
*/
#if !defined(SPI1_DMA_PRIORITY) || defined(__DOXYGEN__)
-#define SPI1_DMA_PRIORITY 2
+#define STM32_SPI1_DMA_PRIORITY 2
#endif
/**
@@ -74,7 +74,23 @@
* over the TX channel.
*/
#if !defined(SPI2_DMA_PRIORITY) || defined(__DOXYGEN__)
-#define SPI2_DMA_PRIORITY 2
+#define STM32_SPI2_DMA_PRIORITY 2
+#endif
+
+/**
+ * @brief SPI1 interrupt priority level setting.
+ * @note @p BASEPRI_KERNEL >= @p STM32_SPI1_IRQ_PRIORITY > @p PRIORITY_PENDSV.
+ */
+#if !defined(STM32_SPI1_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_SPI1_IRQ_PRIORITY 0xB0
+#endif
+
+/**
+ * @brief SPI2 interrupt priority level setting.
+ * @note @p BASEPRI_KERNEL >= @p STM32_SPI2_IRQ_PRIORITY > @p PRIORITY_PENDSV.
+ */
+#if !defined(STM32_SPI2_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#define STM32_SPI2_IRQ_PRIORITY 0xB0
#endif
/*===========================================================================*/