107-systems / 107-Arduino-MCP2515

Arduino library for controlling the MCP2515 in order to receive/transmit CAN frames.
https://107-systems.org
MIT License
90 stars 14 forks source link

Restrict list of supported architectures to samd #11

Closed aentinger closed 4 years ago

aentinger commented 4 years ago

Since 107-Arduino-MCP2515 uses advanced C++ features such as <functional> it can not be compiled for AVR boards. Therefore it is a good idea to specify the supported architectures which is currently samd only.

This PR fixes #10 since it gives users a warning when compiling for a different architecture then samd.

elasticdotventures commented 4 years ago

This issue bit me! will need to use another library for testing CAN on my nano.

aentinger commented 4 years ago

Hi @elasticdotventures :wave: What kind of "nano" do you have? If it's a Nano 33 BLE (mbed architecture) this would still work. If it's a Nano with either ATMEGA328P or ATMEGA4809 then it won't work unless you provide the STL via another way.