diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-10-05 18:05:26 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-10-05 18:05:26 +0100 |
| commit | 6dba992182af9b3a73711958de2eeeb33b7f69f6 (patch) | |
| tree | 301395cceb68123644bdbfe666d8ab9a69ab09d2 /stmhal/can.c | |
| parent | ba0383a8c7b2fb394a7d2bc7a67cab7fc3200263 (diff) | |
stmhal: Add config option to disable/enable CAN driver.
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 |
