diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-19 19:03:18 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-19 19:03:18 +0000 |
commit | 2ab27d3c01ce51a26587e6aaafcef23b2dda4afe (patch) | |
tree | a97665aa4e865b8156164478b77551aa34d281b9 /os/io/platforms/STM32/spi_lld.h | |
parent | a943eaecc7cd56c2a49521bf702b0524bb834aa1 (diff) | |
download | ChibiOS-2ab27d3c01ce51a26587e6aaafcef23b2dda4afe.tar.gz ChibiOS-2ab27d3c01ce51a26587e6aaafcef23b2dda4afe.tar.bz2 ChibiOS-2ab27d3c01ce51a26587e6aaafcef23b2dda4afe.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1315 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/platforms/STM32/spi_lld.h')
-rw-r--r-- | os/io/platforms/STM32/spi_lld.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/os/io/platforms/STM32/spi_lld.h b/os/io/platforms/STM32/spi_lld.h index 2918eaa6c..1cba01b42 100644 --- a/os/io/platforms/STM32/spi_lld.h +++ b/os/io/platforms/STM32/spi_lld.h @@ -93,6 +93,24 @@ #define STM32_SPI2_IRQ_PRIORITY 0x60
#endif
+/**
+ * @brief SPI1 DMA error hook.
+ * @note The default action for DMA errors is a system halt because DMA error
+ * can only happen because programming errors.
+ */
+#if !defined(STM32_SPI1_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
+#define STM32_SPI1_DMA_ERROR_HOOK() chSysHalt()
+#endif
+
+/**
+ * @brief SPI2 DMA error hook.
+ * @note The default action for DMA errors is a system halt because DMA error
+ * can only happen because programming errors.
+ */
+#if !defined(STM32_SPI2_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
+#define STM32_SPI2_DMA_ERROR_HOOK() chSysHalt()
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
@@ -158,10 +176,6 @@ typedef struct { * @brief DMA priority bit mask. */
uint32_t spd_dmaprio;
- /**
- * @brief DMA error event. - */
- EventSource spd_dmaerror;
} SPIDriver;
/*===========================================================================*/
|