Example program for EVAL-ADMX2001

Dependencies:   ADMX2001

Committer:
nsheth
Date:
Thu Oct 07 09:37:15 2021 +0000
Revision:
4:e7e194f58f65
Child:
5:746e78113d7d
Adding platform drivers and appropriate mbed-os version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nsheth 4:e7e194f58f65 1 /******************************************************************************
nsheth 4:e7e194f58f65 2 Copyright (c) 2020 - 2021 Analog Devices Inc. All Rights Reserved.
nsheth 4:e7e194f58f65 3 This software is proprietary & confidential to Analog Devices, Inc.
nsheth 4:e7e194f58f65 4 and its licensors.
nsheth 4:e7e194f58f65 5 ******************************************************************************/
nsheth 4:e7e194f58f65 6
nsheth 4:e7e194f58f65 7 /**
nsheth 4:e7e194f58f65 8 * @file: app_config.h
nsheth 4:e7e194f58f65 9 * @brief: This file contains pin mappings for SDP_K1 board
nsheth 4:e7e194f58f65 10 * @details: Pin names for SDP_K1
nsheth 4:e7e194f58f65 11 */
nsheth 4:e7e194f58f65 12 #ifndef _APP_CONFIG_H_
nsheth 4:e7e194f58f65 13 #define _APP_CONFIG_H_
nsheth 4:e7e194f58f65 14
nsheth 4:e7e194f58f65 15 /******************************************************************************/
nsheth 4:e7e194f58f65 16 /***************************** Include Files **********************************/
nsheth 4:e7e194f58f65 17 /******************************************************************************/
nsheth 4:e7e194f58f65 18 #include <PinNames.h>
nsheth 4:e7e194f58f65 19 #include <stdint.h>
nsheth 4:e7e194f58f65 20
nsheth 4:e7e194f58f65 21 /******************************************************************************/
nsheth 4:e7e194f58f65 22 /********************** Macros and Constants Definitions **********************/
nsheth 4:e7e194f58f65 23 /******************************************************************************/
nsheth 4:e7e194f58f65 24
nsheth 4:e7e194f58f65 25 // **** Note for User: ACTIVE_DEVICE selection ****//
nsheth 4:e7e194f58f65 26 /* Define the device type here from the list of below device type defines
nsheth 4:e7e194f58f65 27 * (one at a time. Defining more than one device can result into compile error).
nsheth 4:e7e194f58f65 28 * e.g. #define DEV_AD4111 -> This will make AD4111 as an ACTIVE_DEVICE.
nsheth 4:e7e194f58f65 29 * The ACTIVE_DEVICE is default set to AD4111, if device type is not defined.
nsheth 4:e7e194f58f65 30 * */
nsheth 4:e7e194f58f65 31 //#define DEV_AD4111
nsheth 4:e7e194f58f65 32
nsheth 4:e7e194f58f65 33 // **** Note for User: Interface type selection (SDP-120/Arduino) ****//
nsheth 4:e7e194f58f65 34 /* The ADI SDP_K1 can be used with both arduino headers or the 120-pin SDP
nsheth 4:e7e194f58f65 35 * connector found on ADI evaluation boards. The default is the SDP connector.
nsheth 4:e7e194f58f65 36 * */
nsheth 4:e7e194f58f65 37
nsheth 4:e7e194f58f65 38 // FIXME: Enable pin mapping according to host header type
nsheth 4:e7e194f58f65 39
nsheth 4:e7e194f58f65 40 #ifdef ARDUINO
nsheth 4:e7e194f58f65 41 #define I2C_SCL D15 // I2C_SCL
nsheth 4:e7e194f58f65 42 #define I2C_SDA D14 // I2C_SDA
nsheth 4:e7e194f58f65 43
nsheth 4:e7e194f58f65 44 #define SPI_SS D10 // SPI_CS
nsheth 4:e7e194f58f65 45 #define SPI_MISO D12 // SPI_MISO
nsheth 4:e7e194f58f65 46 #define SPI_MOSI D11 // SPI_MOSI
nsheth 4:e7e194f58f65 47 #define SPI_SCK D13 // SPI_SCK
nsheth 4:e7e194f58f65 48
nsheth 4:e7e194f58f65 49 #else
nsheth 4:e7e194f58f65 50 #define I2C_SCL SDP_I2C_SCL // PH_7
nsheth 4:e7e194f58f65 51 #define I2C_SDA SDP_I2C_SDA // PC_9
nsheth 4:e7e194f58f65 52
nsheth 4:e7e194f58f65 53 #define SPI_SS SDP_SPI_CS_A // PB_9
nsheth 4:e7e194f58f65 54 #define SPI_MISO SDP_SPI_MISO // PF_8
nsheth 4:e7e194f58f65 55 #define SPI_MOSI SDP_SPI_MOSI // PF_9
nsheth 4:e7e194f58f65 56 #define SPI_SCK SDP_SPI_SCK // PH_6
nsheth 4:e7e194f58f65 57 #endif
nsheth 4:e7e194f58f65 58
nsheth 4:e7e194f58f65 59 /** Common pin mappings */
nsheth 4:e7e194f58f65 60 #define LED_GREEN LED3
nsheth 4:e7e194f58f65 61
nsheth 4:e7e194f58f65 62 #define TRIGGER_OUT A0 // Trig_in of ADMX2001 EVM
nsheth 4:e7e194f58f65 63 #define TRIGGER_IN A1 // Trig_out of ADMX2001 EVM
nsheth 4:e7e194f58f65 64
nsheth 4:e7e194f58f65 65 #endif //_APP_CONFIG_H_