Working version. ADXL355 data saved to microSD.

Revision:
0:e2579e8d9b13
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/define.h	Fri Sep 29 12:53:50 2017 +0000
@@ -0,0 +1,45 @@
+#ifndef __DEFINE_H
+#define __DEFINE_H
+
+/*
+    SEGNALI THREAD
+*/
+#define ADXL355_SIGNAL 0x01 //Nuovi dati pronti
+/* 
+    SD CARD READER 
+*/
+#define SDCARD_CS     PC_8
+#define SDCARD_SCK    PB_13
+#define SDCARD_MISO   PB_14
+#define SDCARD_MOSI   PB_15
+/*
+    PIN DEBUG
+*/
+#define DBG_PIN       PC_10 //VERDE
+#define DBG_PIN_2     PC_11 //BLU
+#define DBG_PIN_3     PC_12 //VIOLA
+#define DBG_PIN_4     PC_9  //GIALLO
+/* 
+    BUS SPI 
+*/
+#define SPI_MISO                    PA_6 
+#define SPI_MOSI                    PA_7
+#define SPI_SCK                     PA_5
+#define MAX_LENGTH_SPI_TRANSFER     50
+#define SPI_FREQUENCY_HZ            8000000 
+/* 
+    ADXL355 
+*/
+#define ADXL355_CS      SPI_CS               
+#define ADXL355_DRDY    PC_7  
+#define RECORD_NUMBER   30 //1 secondo @50Hz
+#define RECORD_SIZE     50
+/*
+    PULSANTE
+*/
+#define USER_KEY_PIN    PC_13   
+/*
+    LED
+*/
+#define STATUS_LED_PIN  PA_9  
+#endif
\ No newline at end of file