diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-04-10 16:45:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-04-10 16:45:41 +0000 |
commit | 618a978da8f1b570236914e034fb91aa980b9ffc (patch) | |
tree | 24b33523e131edabbdd64f7e0898b9bfcb5619ee /os/hal/platforms/STM32/adc_lld.h | |
parent | 8bfbb8d4d9943609a396273813d3063ede47d202 (diff) | |
download | ChibiOS-618a978da8f1b570236914e034fb91aa980b9ffc.tar.gz ChibiOS-618a978da8f1b570236914e034fb91aa980b9ffc.tar.bz2 ChibiOS-618a978da8f1b570236914e034fb91aa980b9ffc.zip |
Added DMA sharing in the STM32 HAL.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2874 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/adc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/adc_lld.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/adc_lld.h b/os/hal/platforms/STM32/adc_lld.h index 6f93170ed..3cc34735f 100644 --- a/os/hal/platforms/STM32/adc_lld.h +++ b/os/hal/platforms/STM32/adc_lld.h @@ -94,12 +94,12 @@ #endif
/**
- * @brief ADC1 DMA error hook.
+ * @brief ADC 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_ADC1_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
-#define STM32_ADC1_DMA_ERROR_HOOK() chSysHalt()
+#if !defined(STM32_ADC_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
+#define STM32_ADC_DMA_ERROR_HOOK(adcp) chSysHalt()
#endif
/*===========================================================================*/
@@ -114,6 +114,10 @@ #error "ADC driver activated but no ADC peripheral assigned"
#endif
+#if !defined(STM32_DMA_REQUIRED)
+#define STM32_DMA_REQUIRED
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
|