aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--os/hal/platforms/STM32F0xx/adc_lld.h15
-rw-r--r--readme.txt2
2 files changed, 16 insertions, 1 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
diff --git a/readme.txt b/readme.txt
index ad53b6919..75cc23fe0 100644
--- a/readme.txt
+++ b/readme.txt
@@ -137,7 +137,7 @@
- NEW: Updated vendor headers for LPC11xx and LPC13xx, the new headers
support several new devices.
- NEW: Demo for STM32F0-Discovery board.
-- NEW: Initial support for STM32F0xx devices.
+- NEW: Initial support for STM32F0xx devices, added a specific ADC driver.
- NEW: Added a common ancestor class to the SDC and MMC_SPI drivers. This
allows to share code and definitions.
- NEW: Modified the SDC driver to implement the new block devices abstract