Example program for CN0535-FMCZ.
Dependencies: platform_drivers AD77681
Diff: app_config.h
- Revision:
- 1:f3b5e79a8488
- Child:
- 2:998f1de78dae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app_config.h Mon Mar 15 07:12:29 2021 +0000 @@ -0,0 +1,47 @@ +#ifndef _APP_CONFIG_H_ +#define _APP_CONFIG_H_ + +#include <stdint.h> +#include "platform_drivers.h" +#ifdef __cplusplus +extern "C" +{ +#endif +#ifdef __cplusplus +} +#endif + + +#define ARDUINO + + +/** + The ADI SDP_K1 can be used with both arduino headers + or the 120-pin SDP connector found on ADI evaluation + boards. The default is the SDP connector + + Uncomment the ARDUINO #define above to enable the ARDUINO connector + +*/ +//#warning check this +#ifdef ARDUINO + #define I2C_SCL D15 + #define I2C_SDA D14 + + #define SPI_CS D10 + #define SPI_MISO D12 + #define SPI_MOSI D11 + #define SPI_SCK D13 + +#else + #define I2C_SCL SDP_I2C_SCL + #define I2C_SDA SDP_I2C_SDA + + #define SPI_CS SDP_SPI_CS_A + #define SPI_MISO SDP_SPI_MISO + #define SPI_MOSI SDP_SPI_MOSI + #define SPI_SCK SDP_SPI_SCK + +#endif + +#endif //_APP_CONFIG_H_