aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/can_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-14 13:29:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-14 13:29:09 +0000
commit7ab0cff418bf49fcf1671dd72667b81a85c1ac37 (patch)
tree9527dc092b8fc59f733b2a0353d579ceec8a72ff /os/hal/platforms/STM32/can_lld.h
parentbf8592688860a61181b3f5a4c9b6d4d8856b8abb (diff)
downloadChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.tar.gz
ChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.tar.bz2
ChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.zip
Improved STM32 HAL support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2363 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/can_lld.h')
-rw-r--r--os/hal/platforms/STM32/can_lld.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/can_lld.h b/os/hal/platforms/STM32/can_lld.h
index 871ab7adf..0d4c9b615 100644
--- a/os/hal/platforms/STM32/can_lld.h
+++ b/os/hal/platforms/STM32/can_lld.h
@@ -93,14 +93,18 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if CAN_USE_SLEEP_MODE && !CAN_SUPPORTS_SLEEP
-#error "CAN sleep mode not supported in this architecture"
+#if STM32_CAN_USE_CAN1 && !STM32_HAS_CAN1
+#error "CAN1 not present in the selected device"
#endif
#if !STM32_CAN_USE_CAN1
#error "CAN driver activated but no CAN peripheral assigned"
#endif
+#if CAN_USE_SLEEP_MODE && !CAN_SUPPORTS_SLEEP
+#error "CAN sleep mode not supported in this architecture"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/