EVAL-AD7124 Mbed Example Program.

Dependencies:   adi_console_menu platform_drivers

Committer:
mahphalke
Date:
Mon Mar 02 17:04:20 2020 +0000
Revision:
3:779bb1e55f1a
Child:
5:ca3854efb1e9
Updated firmware with more functionality, latest console menu structure and latest platform drivers.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mahphalke 3:779bb1e55f1a 1 /*************************************************************************//**
mahphalke 3:779bb1e55f1a 2 * @file app_config.h
mahphalke 3:779bb1e55f1a 3 * @brief Configuration file of AD7124 firmware example program
mahphalke 3:779bb1e55f1a 4 ******************************************************************************
mahphalke 3:779bb1e55f1a 5 * Copyright (c) 2020 Analog Devices, Inc.
mahphalke 3:779bb1e55f1a 6 *
mahphalke 3:779bb1e55f1a 7 * All rights reserved.
mahphalke 3:779bb1e55f1a 8 *
mahphalke 3:779bb1e55f1a 9 * This software is proprietary to Analog Devices, Inc. and its licensors.
mahphalke 3:779bb1e55f1a 10 * By using this software you agree to the terms of the associated
mahphalke 3:779bb1e55f1a 11 * Analog Devices Software License Agreement.
mahphalke 3:779bb1e55f1a 12 *****************************************************************************/
mahphalke 3:779bb1e55f1a 13
mahphalke 3:779bb1e55f1a 14 #ifndef _APP_CONFIG_H_
mahphalke 3:779bb1e55f1a 15 #define _APP_CONFIG_H_
mahphalke 3:779bb1e55f1a 16
mahphalke 3:779bb1e55f1a 17 #include <stdint.h>
mahphalke 3:779bb1e55f1a 18
mahphalke 3:779bb1e55f1a 19 //#define ARDUINO
mahphalke 3:779bb1e55f1a 20
mahphalke 3:779bb1e55f1a 21 /**
mahphalke 3:779bb1e55f1a 22 The ADI SDP_K1 can be used with both arduino headers
mahphalke 3:779bb1e55f1a 23 or the 120-pin SDP connector found on ADI evaluation
mahphalke 3:779bb1e55f1a 24 boards. The default is the SDP connector.
mahphalke 3:779bb1e55f1a 25
mahphalke 3:779bb1e55f1a 26 Uncomment the ARDUINO #define above to enable the ARDUINO connector
mahphalke 3:779bb1e55f1a 27 */
mahphalke 3:779bb1e55f1a 28
mahphalke 3:779bb1e55f1a 29 // Pin mapping of AD7124 with SDP-K1/Arduino (reference: PinNames.h)
mahphalke 3:779bb1e55f1a 30 #ifdef ARDUINO
mahphalke 3:779bb1e55f1a 31 #define I2C_SCL 0x17 // I2C_SCL (D14)
mahphalke 3:779bb1e55f1a 32 #define I2C_SDA 0x18 // I2C_SDA (D15)
mahphalke 3:779bb1e55f1a 33
mahphalke 3:779bb1e55f1a 34 #define SPI_SS 0x0F // SPI_CS (D10)
mahphalke 3:779bb1e55f1a 35 #define SPI_MISO 0x07 // SPI_MOSI (D11)
mahphalke 3:779bb1e55f1a 36 #define SPI_MOSI 0x14 // SPI_MISO (D12)
mahphalke 3:779bb1e55f1a 37 #define SPI_SCK 0x13 // SPI_SCK (D13)
mahphalke 3:779bb1e55f1a 38 #else
mahphalke 3:779bb1e55f1a 39 #define I2C_SCL 0x77 // SDP_I2C_SCL (PH_7)
mahphalke 3:779bb1e55f1a 40 #define I2C_SDA 0x29 // SDP_I2C_SDA (PC_9)
mahphalke 3:779bb1e55f1a 41
mahphalke 3:779bb1e55f1a 42 #define SPI_SS_A 0x19 // SDP_SPI_CS_A (PB_9)
mahphalke 3:779bb1e55f1a 43 #define SPI_SS_B 0x26 // SDP_SPI_CS_B (PC_6)
mahphalke 3:779bb1e55f1a 44 #define SPI_SS_C 0x27 // SDP_SPI_CS_C (PC_7)
mahphalke 3:779bb1e55f1a 45 #define SPI_MISO 0x58 // SDP_SPI_MOSI (PF_9)
mahphalke 3:779bb1e55f1a 46 #define SPI_MOSI 0x59 // SDP_SPI_MISO (PF_8)
mahphalke 3:779bb1e55f1a 47 #define SPI_SCK 0x76 // SDP_SPI_SCK (PH_6)
mahphalke 3:779bb1e55f1a 48 #endif
mahphalke 3:779bb1e55f1a 49
mahphalke 3:779bb1e55f1a 50 // Common pin mappings
mahphalke 3:779bb1e55f1a 51 #define LED_GREEN 0xA5 // LED3 (PK_5)
mahphalke 3:779bb1e55f1a 52
mahphalke 3:779bb1e55f1a 53
mahphalke 3:779bb1e55f1a 54 #endif //_APP_CONFIG_H_