aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/templates/can_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/templates/can_lld.c')
-rw-r--r--os/io/templates/can_lld.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/os/io/templates/can_lld.c b/os/io/templates/can_lld.c
index e1c4243b0..7c56acad1 100644
--- a/os/io/templates/can_lld.c
+++ b/os/io/templates/can_lld.c
@@ -24,8 +24,10 @@
* @{
*/
-#include <ch.h>
-#include <can.h>
+#include "ch.h"
+#include "hal.h"
+
+#if CH_HAL_USE_CAN
/*===========================================================================*/
/* Low Level Driver exported variables. */
@@ -87,7 +89,7 @@ void can_lld_stop(CANDriver *canp) {
*/
bool_t can_lld_can_transmit(CANDriver *canp) {
- return false;
+ return FALSE;
}
/**
@@ -115,7 +117,7 @@ msg_t can_lld_transmit(CANDriver *canp, const CANFrame *cfp) {
*/
bool_t can_lld_can_receive(CANDriver *canp) {
- return false;
+ return FALSE;
}
/**
@@ -152,4 +154,6 @@ void can_lld_wakeup(CANDriver *canp) {
}
#endif /* CAN_USE_SLEEP_MODE */
+#endif /* CH_HAL_USE_CAN */
+
/** @} */