Hi!
Firstly I would like to say that I am constantly amazed how much is possible to do with a Teensy and how lovely community and development it has.
For a project I am currently working on I would like to ideally work with one project that can be compiled on both Teensy 3.2 and 3.6. The main project is based around using CAN0 and CAN1 on the Teensy 3.6, but I would like to run a limited version also on a Teensy 3.2 that somehow would limit the functionality to using only CAN0.
What would be the best theoretical approach to this?
Changing include files based on which platform it is compiled on? Or is there a more elegant way?
I tried googling and searching, but didn't find anything promising on this topic. It could be I missed something.
Thank you for help!
Firstly I would like to say that I am constantly amazed how much is possible to do with a Teensy and how lovely community and development it has.
For a project I am currently working on I would like to ideally work with one project that can be compiled on both Teensy 3.2 and 3.6. The main project is based around using CAN0 and CAN1 on the Teensy 3.6, but I would like to run a limited version also on a Teensy 3.2 that somehow would limit the functionality to using only CAN0.
What would be the best theoretical approach to this?
Changing include files based on which platform it is compiled on? Or is there a more elegant way?
I tried googling and searching, but didn't find anything promising on this topic. It could be I missed something.
Thank you for help!