diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-17 22:09:04 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-17 22:09:04 +0000 |
commit | 1dd5442c8c6c3b7d77133825abf147501de36093 (patch) | |
tree | c09e96c7c821d8c6b48eea4e21b684709d6345b4 /os/io/platforms/STM32/adc_lld.h | |
parent | ea7ffbbbc0d052c5fe36014b9f18b47961c9e614 (diff) | |
download | ChibiOS-1dd5442c8c6c3b7d77133825abf147501de36093.tar.gz ChibiOS-1dd5442c8c6c3b7d77133825abf147501de36093.tar.bz2 ChibiOS-1dd5442c8c6c3b7d77133825abf147501de36093.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1313 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/platforms/STM32/adc_lld.h')
-rw-r--r-- | os/io/platforms/STM32/adc_lld.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/os/io/platforms/STM32/adc_lld.h b/os/io/platforms/STM32/adc_lld.h index 309981869..7c3249741 100644 --- a/os/io/platforms/STM32/adc_lld.h +++ b/os/io/platforms/STM32/adc_lld.h @@ -61,6 +61,13 @@ #define STM32_ADC1_IRQ_PRIORITY 0x70
#endif
+/**
+ * @brief ADC1 DMA error hook. + */
+#if !defined(STM32_ADC1_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
+#define STM32_ADC1_DMA_ERROR_HOOK() chSysHalt()
+#endif
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@@ -177,10 +184,6 @@ typedef struct { * @brief DMA priority bit mask.
*/
uint32_t ad_dmaprio;
- /**
- * @brief DMA error event.
- */
- EventSource ad_dmaerror;
} ADCDriver;
/*===========================================================================*/
|