diff options
Diffstat (limited to 'stmhal/can.c')
| -rw-r--r-- | stmhal/can.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/can.c b/stmhal/can.c index 82324a638..920a4ad0b 100644 --- a/stmhal/can.c +++ b/stmhal/can.c @@ -42,6 +42,8 @@ #include "can.h" #include "pybioctl.h" +#if MICROPY_HW_ENABLE_CAN + /// \moduleref pyb /// \class CAN - controller area network communication bus /// @@ -451,3 +453,5 @@ const mp_obj_type_t pyb_can_type = { .stream_p = &can_stream_p, .locals_dict = (mp_obj_t)&pyb_can_locals_dict, }; + +#endif // MICROPY_HW_ENABLE_CAN |
