diff options
Diffstat (limited to 'os/io/include/can.h')
-rw-r--r-- | os/io/include/can.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/io/include/can.h b/os/io/include/can.h index 9d9462f86..2a8ffc7e0 100644 --- a/os/io/include/can.h +++ b/os/io/include/can.h @@ -27,6 +27,8 @@ #ifndef _CAN_H_
#define _CAN_H_
+#if CH_HAL_USE_CAN
+
/**
* @brief Driver state machine possible states.
*/
@@ -56,6 +58,8 @@ extern "C" { }
#endif
+#endif /* CH_HAL_USE_CAN */
+
#endif /* _CAN_H_ */
/** @} */
|