diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-02 10:59:48 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-02 10:59:48 +0000 |
commit | 6825084461c6ffe5234a64ca32af48b915136968 (patch) | |
tree | dd4f6ffb82bd73cd73d31bcbc3ce1b8742c6a93e /os/hal/include | |
parent | 7d7af240fb9c9f22fc5f2359752385faba4f94c1 (diff) | |
download | ChibiOS-6825084461c6ffe5234a64ca32af48b915136968.tar.gz ChibiOS-6825084461c6ffe5234a64ca32af48b915136968.tar.bz2 ChibiOS-6825084461c6ffe5234a64ca32af48b915136968.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1488 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/can.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/os/hal/include/can.h b/os/hal/include/can.h index d49f5ee18..4dad345d8 100644 --- a/os/hal/include/can.h +++ b/os/hal/include/can.h @@ -58,6 +58,19 @@ /* Driver pre-compile time settings. */
/*===========================================================================*/
+/**
+ * @brief Sleep mode related APIs inclusion switch.
+ * @note This switch is enforced to @p FALSE if the driver implementation
+ * does not support the sleep mode.
+ */
+#if CAN_SUPPORTS_SLEEP || defined(__DOXYGEN__)
+#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
+#define CAN_USE_SLEEP_MODE TRUE
+#endif
+#else /* !CAN_SUPPORTS_SLEEP */
+#define CAN_USE_SLEEP_MODE FALSE
+#endif /* !CAN_SUPPORTS_SLEEP */
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
|