From 5d84678f57e30b8ec6765a74eb05c89c9c651baa Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 1 Nov 2009 12:41:37 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1260 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/io/platforms/STM32/spi_lld.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'os/io/platforms/STM32/spi_lld.h') 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 /*===========================================================================*/ -- cgit v1.2.3