I want to build a communication based on 4 wire spi between my MSP430F5438A and accelerator ADXL345.
I want to get the informations of the axes.
For this purposes I wrote a code based in some parts on the Arduino example Code of Sparkfun, but I am not exactly sure in some parts of it.
May somebody take a look on the code and give me some advices.
I plna one change:The varible settings should be putted as preprocessor definitions, but I hink it should for the start be also ok like this.
My concerns are the structure of the interupt routine and the structure of the main.
Thanks and Greetings