aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2017-02-07 16:08:08 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2017-02-07 16:08:08 +0100
commitfd89254b0db6333decd010ac9b6a81b9cca76200 (patch)
tree2be7074d29ee8cec34bd2e6f29d5a7603f25f4e0
parent8b7e318d784ff0c724c3564dc4313ba14061223e (diff)
downloadChibiOS-Contrib-fd89254b0db6333decd010ac9b6a81b9cca76200.tar.gz
ChibiOS-Contrib-fd89254b0db6333decd010ac9b6a81b9cca76200.tar.bz2
ChibiOS-Contrib-fd89254b0db6333decd010ac9b6a81b9cca76200.zip
[Comp] Adding support for STM32F0.
-rw-r--r--os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h b/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h
index 68c6bd0..f6a55e5 100644
--- a/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h
+++ b/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h
@@ -201,7 +201,9 @@
#define STM32_HAS_COMP6 TRUE
#define STM32_HAS_COMP7 TRUE
-#elif defined(STM32F373xx) || defined(STM32F378xx) || defined(STM32L0XX) || defined(STM32L1XX)
+#elif defined(STM32F373xx) || defined(STM32F378xx) || defined(STM32L0XX) || defined(STM32L1XX) \
+ || defined(STM32F051x8) || defined(STM32F048xx) || defined(STM32F058xx) || defined(STM32F078xx) \
+ || defined(STM32F072xb) || defined(STM32F071xb)
#define STM32_HAS_COMP1 TRUE
#define STM32_HAS_COMP2 TRUE
#define STM32_HAS_COMP3 FALSE
@@ -308,6 +310,10 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if STM32_COMP_USE_INTERRUPTS && defined(STM32F0XX)
+#error "Interrupts are shared with EXTI on F0s (lines 21-22)"
+#endif
+
#if STM32_COMP_USE_INTERRUPTS
#if !defined(STM32_DISABLE_EXTI21_22_29_HANDLER) || !defined(STM32_DISABLE_EXTI30_32_HANDLER) || !defined(STM32_DISABLE_EXTI33_HANDLER)
#error "COMP needs these defines in mcuconf to use interrupts: STM32_DISABLE_EXTI21_22_29_HANDLER STM32_DISABLE_EXTI30_32_HANDLER STM32_DISABLE_EXTI33_HANDLER"