cpu/board: updated  spi driver for arduino-due

This PR should replace PR #1544 from @blanloem because his internship ended. It contains an updated and adapted version of the SPI low-level driver for arduino-due boards.
length is unsigned, i is signed. Also, scope of i can be reduced.