aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F0xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-26 12:56:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-26 12:56:08 +0000
commit58f95054b30907efe3135cbe5022c24c31efbe2d (patch)
treeb9de3d214d526c1541ced54eb538e0b07ca236c9 /os/hal/platforms/STM32F0xx
parent5c1a0c2b8a9b4164b52cf5d33fca16fd9c61c462 (diff)
downloadChibiOS-58f95054b30907efe3135cbe5022c24c31efbe2d.tar.gz
ChibiOS-58f95054b30907efe3135cbe5022c24c31efbe2d.tar.bz2
ChibiOS-58f95054b30907efe3135cbe5022c24c31efbe2d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4237 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F0xx')
-rw-r--r--os/hal/platforms/STM32F0xx/adc_lld.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F0xx/adc_lld.h b/os/hal/platforms/STM32F0xx/adc_lld.h
index 31029f31c..eeeda1979 100644
--- a/os/hal/platforms/STM32F0xx/adc_lld.h
+++ b/os/hal/platforms/STM32F0xx/adc_lld.h
@@ -101,6 +101,21 @@
#error "ADC driver activated but no ADC peripheral assigned"
#endif
+#if STM32_ADC_USE_ADC1 && \
+ !CORTEX_IS_VALID_KERNEL_PRIORITY(STM32_ADC_IRQ_PRIORITY)
+#error "Invalid IRQ priority assigned to ADC1"
+#endif
+
+#if STM32_ADC_USE_ADC1 && \
+ !CORTEX_IS_VALID_KERNEL_PRIORITY(STM32_ADC_ADC1_DMA_IRQ_PRIORITY)
+#error "Invalid IRQ priority assigned to ADC1 DMA"
+#endif
+
+#if STM32_ADC_USE_ADC1 && \
+ !STM32_DMA_IS_VALID_PRIORITY(STM32_ADC_ADC1_DMA_PRIORITY)
+#error "Invalid DMA priority assigned to ADC1"
+#endif
+
#if !defined(STM32_DMA_REQUIRED)
#define STM32_DMA_REQUIRED
#endif