I have an Artemis ATP and need to know how to access the IOMs on it. My project needs at least two each SPI and I2C channels, and I'm looking for the proper way to set them up. For this application I need to use hardware SPI/I2C for performance reasons. I have searched the forums and looked at the example programs, but haven't found the answer.
I read SPI.h and I2C.h and see references to VARIANT_SPI_INTFCS and VARIANT_WIRE_INTFCS which appear to determine how many of these interfaces are created. Where does VARIANT_SPI_INTFCS and VARIANT_WIRE_INTFCS come from, and how do I set them?
Is there another method for creating hardware SPI/I2C channels this that is preferred over this?