Isn't the solution to that problem simply including spi.h in the sketch as well!?
> --
> You received this message because you are subscribed to the Google Groups "Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
I figured the developer list would be a good place to ask. Anyone working with the DUE or an alternative platform should be familiar with the problem.
Since SPI and similar libraries are a communication protocol I usually encapsulate the protocol and expose specific features to the user. Including it in the main sketch breaks that encapsulation.
--Rick
I figured the developer list would be a good place to ask. Anyone working with the DUE or an alternative platform should be familiar with the problem.
Since SPI and similar libraries are a communication protocol I usually encapsulate the protocol and expose specific features to the user. Including it in the main sketch breaks that encapsulation.
This whole mess is why UHS 3.0 code just inlines in header files. By doing this ugly hack, compile-time options become possible, but it is at the expense of readability.