Example program for EVAL-ADMX2001

Dependencies:   ADMX2001

app_config.h

Committer:
nsheth
Date:
2021-10-27
Revision:
5:746e78113d7d
Parent:
4:e7e194f58f65
Child:
8:bd0b93e35392

File content as of revision 5:746e78113d7d:

/******************************************************************************
 Copyright (c) 2020 - 2021  Analog Devices Inc. All Rights Reserved.
 This software is proprietary & confidential to Analog Devices, Inc.
 and its licensors.
******************************************************************************/

/**
 * @file:    app_config.h
 * @brief:   This file contains  pin mappings for SDP_K1 board
 * @details: Pin names for SDP_K1
 */
#ifndef _APP_CONFIG_H_
#define _APP_CONFIG_H_

/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include <PinNames.h>
#include <stdint.h>

/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
/******************************************************************************/

// **** Note for User: ACTIVE_DEVICE selection ****//
/* Define the device type here from the list of below device type defines
 * (one at a time. Defining more than one device can result into compile error).
 * e.g. #define DEV_AD4111 -> This will make AD4111 as an ACTIVE_DEVICE.
 * The ACTIVE_DEVICE is default set to AD4111, if device type is not defined.
 * */
//#define   DEV_AD4111

// **** Note for User: Interface type selection (SDP-120/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.
 * */

// FIXME: Enable pin mapping according to host header type
#define ARDUINO
#ifdef ARDUINO
#define I2C_SCL D15 // I2C_SCL
#define I2C_SDA D14 // I2C_SDA

#define SPI_SS   D10 // SPI_CS
#define SPI_MISO D12 // SPI_MISO
#define SPI_MOSI D11 // SPI_MOSI
#define SPI_SCK  D13 // SPI_SCK

#else
#define I2C_SCL SDP_I2C_SCL // PH_7
#define I2C_SDA SDP_I2C_SDA // PC_9

#define SPI_SS   SDP_SPI_CS_A // PB_9
#define SPI_MISO SDP_SPI_MISO // PF_8
#define SPI_MOSI SDP_SPI_MOSI // PF_9
#define SPI_SCK  SDP_SPI_SCK  // PH_6
#endif

/** Common pin mappings */
#define LED_GREEN LED3

#define TRIGGER_OUT A0 // Trig_in of ADMX2001 EVM
#define TRIGGER_IN  A1 // Trig_out of ADMX2001 EVM

#endif //_APP_CONFIG_H_