diff options
Diffstat (limited to 'os/hal/include/can.h')
| -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. */
/*===========================================================================*/
|
