aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/hal_can_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/hal_can_lld.h')
-rw-r--r--os/hal/templates/hal_can_lld.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/templates/hal_can_lld.h b/os/hal/templates/hal_can_lld.h
index e6a24478a..ae468e979 100644
--- a/os/hal/templates/hal_can_lld.h
+++ b/os/hal/templates/hal_can_lld.h
@@ -164,7 +164,7 @@ struct CANDriver {
* @brief Receive threads queue.
*/
threads_queue_t rxqueue;
-#if !defined(CAN_ENFORCE_USE_CALLBACKS)
+#if (CAN_ENFORCE_USE_CALLBACKS == FALSE) || defined (__DOXYGEN__)
/**
* @brief One or more frames become available.
* @note After broadcasting this event it will not be broadcasted again
@@ -200,7 +200,7 @@ struct CANDriver {
*/
event_source_t wakeup_event;
#endif
-#else /* defined(CAN_ENFORCE_USE_CALLBACKS) */
+#else /* CAN_ENFORCE_USE_CALLBACKS == TRUE */
/**
* @brief One or more frames become available.
* @note After calling this function it will not be called again