I am using a Seeduino Mega 2560 mega. Very similar to Arduino mega 2560, except it has accessible headers for some of the pins that are not accessible on the Arduino mega. I am able to run the 1st serial port(Serial) in SPI mode, but I am having trouble running the 2nd serial port(Serial1) in SPI. I suspect it has to do with the missing port mappings when IDE compiles the code, but I am not sure how to fix. Can somebody give me a hint or lead on how to fix problem?
For example, I don't believe that XCK0_DDR. XCK1_DDR, etc are actually defined symbols, despite the datasheet. That should be just "the DDRx register that matches up with the pin that will be used for SCK of that USART."
Hmm. Apparently, exactly ONE part (atmega644pa) has XCK1_DDR defined: