Thanks westfw I will definitly try this!
EDIT: Where do I see which Port I use while bit-banding? I only see the word PIO BANDED BITS in the sentence so when trying to access different ports where do I declear this?
So yesterday I was reading through the SPI part on the SAM3x datasheet. Is it possible to do some port manipulation with SPI?
Something like:
SPI0 ->SPI_CR = SPI_CR_SPIEN ;
SPI0 -> SPI_MR = SPI_MR_MSTR
and so on? Becasue I have seen on page 703 that I can select how many Bits I want to transfer this would definitly make things easier if I could do SPI_CSR1 = SPI_CSR_BITS_12_BIT.
When trying to compile this code it doens't work so how do I program it the right way?