precision-converters-firmware
app_config.h
Go to the documentation of this file.
1 /*************************************************************************/
14 #ifndef _APP_CONFIG_H_
15 #define _APP_CONFIG_H_
16 
17 #include <stdint.h>
18 #include <PinNames.h>
19 
28 //#define SDP_120
29 
30 #ifdef SDP_120
31 #define SPI_CSB SDP_SPI_CS_A
32 #define SPI_HOST_SDI SDP_SPI_MISO
33 #define SPI_HOST_SDO SDP_SPI_MOSI
34 #define SPI_SCK SDP_SPI_SCK
35 #else
36 #define SPI_CSB ARDUINO_UNO_D10
37 #define SPI_HOST_SDI ARDUINO_UNO_D12
38 #define SPI_HOST_SDO ARDUINO_UNO_D11
39 #define SPI_SCK ARDUINO_UNO_D13
40 #endif
41 
42 // Common pin mappings
43 #define LED_GREEN LED3 // PK_5
44 
45 #endif //_APP_CONFIG_H_