I'm trying to use the Adafruit MCP23017 library with the Arduino Due (IDE 1.5.2)
Here's the problem, the IDE automatically switches configs/backend between AVR and ARM during board select.
Select the Arduino Mega2560 for example and the library works just fine. (As advertised.)
However if you select the Arduino Due as the target device the back-end changes and the library no longer works.
So my noob question question is; can I copy the headers from the AVR toolchain into a sketch sub-folder labeled "avr" and have it work safely?
It does compile this way, but when it got around to calling for the fuse.h file I got concerned, stopped short of uploading it, and clicked by here for some skilled advice.
The library calls for avr/pgmspace.h...
pgmspace.h calls for:
avr/common.h
avr/fuse.h
avr/io.h
avr/lock.h
avr/portpins.h
avr/sfr_defs.h
avr/version.h
Surely, such a mediation is not going to be that simple.
Any advice?

