I have the following problem:
I'm trying to use the Pi in combination with the PiFace Digital extension board (to run some servos and let some LEDs blink),
and i just can't get the freakin' SPI-communication between the two up and running.
Programming in C on bare-metal makes this a lot more complicated than i had hoped it would be.
I found exactly TWO code-examples on the internet, both of which i can't decrypt...
https://bitbucket.org/ggkinuthia/bare-metal-spi/src
https://github.com/dwelch67/raspberrypi ... ster/spi01
I took the spi-functions from the first repository and tried to fit them into my code: as a result, the PiFace does absolutely nothing (I have a couple of LEDs hooked onto it).
I have (partially) read the data sheets for the MCP23S17 and the BCM2835, but I must have overlooked something.
I am not even sure that the way I communicate to the PiFace [opcode-byte (0100 0000), adress-byte, data-byte, opcode, AB, DB,...] is correct.
Maybe some of you have some constructive input for me, I am officially stuck.

My main problem is that i just can't find any decent documentation regarding this issue....
Thanx!