Pratyush Mallick
/
nano_dac
this is testing
app/app_config.h@0:e8a1ba50c46b, 2021-01-14 (annotated)
- Committer:
- pmallick
- Date:
- Thu Jan 14 19:12:57 2021 +0530
- Revision:
- 0:e8a1ba50c46b
this is testing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pmallick | 0:e8a1ba50c46b | 1 | /*************************************************************************//** |
pmallick | 0:e8a1ba50c46b | 2 | * @file app_config.h |
pmallick | 0:e8a1ba50c46b | 3 | * @brief Configuration file of nanodac firmware example program |
pmallick | 0:e8a1ba50c46b | 4 | ****************************************************************************** |
pmallick | 0:e8a1ba50c46b | 5 | * Copyright (c) 2020 Analog Devices, Inc. |
pmallick | 0:e8a1ba50c46b | 6 | * |
pmallick | 0:e8a1ba50c46b | 7 | * All rights reserved. |
pmallick | 0:e8a1ba50c46b | 8 | * |
pmallick | 0:e8a1ba50c46b | 9 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
pmallick | 0:e8a1ba50c46b | 10 | * By using this software you agree to the terms of the associated |
pmallick | 0:e8a1ba50c46b | 11 | * Analog Devices Software License Agreement. |
pmallick | 0:e8a1ba50c46b | 12 | *****************************************************************************/ |
pmallick | 0:e8a1ba50c46b | 13 | |
pmallick | 0:e8a1ba50c46b | 14 | #ifndef _APP_CONFIG_H_ |
pmallick | 0:e8a1ba50c46b | 15 | #define _APP_CONFIG_H_ |
pmallick | 0:e8a1ba50c46b | 16 | |
pmallick | 0:e8a1ba50c46b | 17 | /******************************************************************************/ |
pmallick | 0:e8a1ba50c46b | 18 | /***************************** Include Files **********************************/ |
pmallick | 0:e8a1ba50c46b | 19 | /******************************************************************************/ |
pmallick | 0:e8a1ba50c46b | 20 | |
pmallick | 0:e8a1ba50c46b | 21 | #include <stdint.h> |
pmallick | 0:e8a1ba50c46b | 22 | #include <PinNames.h> |
pmallick | 0:e8a1ba50c46b | 23 | |
pmallick | 0:e8a1ba50c46b | 24 | /******************************************************************************/ |
pmallick | 0:e8a1ba50c46b | 25 | /********************** Macros and Constants Definitions **********************/ |
pmallick | 0:e8a1ba50c46b | 26 | /******************************************************************************/ |
pmallick | 0:e8a1ba50c46b | 27 | |
pmallick | 0:e8a1ba50c46b | 28 | // **** Note for User: ACTIVE_DEVICE selection **** |
pmallick | 0:e8a1ba50c46b | 29 | // Define the device type here from the list of below device type defines |
pmallick | 0:e8a1ba50c46b | 30 | // e.g. #define DEV_AD5677R -> This will make AD5677R as an ACTIVE_DEVICE. |
pmallick | 0:e8a1ba50c46b | 31 | // The ACTIVE_DEVICE is default set to AD5686, if device type is not defined. |
pmallick | 0:e8a1ba50c46b | 32 | |
pmallick | 0:e8a1ba50c46b | 33 | //#define DEV_AD5677R |
pmallick | 0:e8a1ba50c46b | 34 | |
pmallick | 0:e8a1ba50c46b | 35 | /** |
pmallick | 0:e8a1ba50c46b | 36 | The ADI SDP_K1 can be used with both arduino headers |
pmallick | 0:e8a1ba50c46b | 37 | or the 120-pin SDP connector found on ADI evaluation |
pmallick | 0:e8a1ba50c46b | 38 | boards. The default is the SDP connector. |
pmallick | 0:e8a1ba50c46b | 39 | |
pmallick | 0:e8a1ba50c46b | 40 | Uncomment the ARDUINO #define below to enable the ARDUINO connector |
pmallick | 0:e8a1ba50c46b | 41 | */ |
pmallick | 0:e8a1ba50c46b | 42 | |
pmallick | 0:e8a1ba50c46b | 43 | //#define ARDUINO |
pmallick | 0:e8a1ba50c46b | 44 | |
pmallick | 0:e8a1ba50c46b | 45 | |
pmallick | 0:e8a1ba50c46b | 46 | #if defined(DEV_AD5671R) |
pmallick | 0:e8a1ba50c46b | 47 | #define ACTIVE_DEVICE ID_AD5671R |
pmallick | 0:e8a1ba50c46b | 48 | #define ACTIVE_DEVICE_NAME "AD5671R" |
pmallick | 0:e8a1ba50c46b | 49 | #elif defined(DEV_AD5672R) |
pmallick | 0:e8a1ba50c46b | 50 | #define ACTIVE_DEVICE ID_AD5672R |
pmallick | 0:e8a1ba50c46b | 51 | #define ACTIVE_DEVICE_NAME "AD5672R" |
pmallick | 0:e8a1ba50c46b | 52 | #elif defined(DEV_AD5673R) |
pmallick | 0:e8a1ba50c46b | 53 | #define ACTIVE_DEVICE ID_AD5673R |
pmallick | 0:e8a1ba50c46b | 54 | #define ACTIVE_DEVICE_NAME "AD5673R" |
pmallick | 0:e8a1ba50c46b | 55 | #elif defined(DEV_AD5674) |
pmallick | 0:e8a1ba50c46b | 56 | #define ACTIVE_DEVICE ID_AD5674 |
pmallick | 0:e8a1ba50c46b | 57 | #define ACTIVE_DEVICE_NAME "AD5674" |
pmallick | 0:e8a1ba50c46b | 58 | #elif defined(DEV_AD5674R) |
pmallick | 0:e8a1ba50c46b | 59 | #define ACTIVE_DEVICE ID_AD5674R |
pmallick | 0:e8a1ba50c46b | 60 | #define ACTIVE_DEVICE_NAME "AD5674R" |
pmallick | 0:e8a1ba50c46b | 61 | #elif defined(DEV_AD5675R) |
pmallick | 0:e8a1ba50c46b | 62 | #define ACTIVE_DEVICE ID_AD5675R |
pmallick | 0:e8a1ba50c46b | 63 | #define ACTIVE_DEVICE_NAME "AD5675R" |
pmallick | 0:e8a1ba50c46b | 64 | #elif defined(DEV_AD5676) |
pmallick | 0:e8a1ba50c46b | 65 | #define ACTIVE_DEVICE ID_AD5676 |
pmallick | 0:e8a1ba50c46b | 66 | #define ACTIVE_DEVICE_NAME "AD5676" |
pmallick | 0:e8a1ba50c46b | 67 | #elif defined(DEV_AD5676R) |
pmallick | 0:e8a1ba50c46b | 68 | #define ACTIVE_DEVICE ID_AD5676R |
pmallick | 0:e8a1ba50c46b | 69 | #define ACTIVE_DEVICE_NAME "AD5676R" |
pmallick | 0:e8a1ba50c46b | 70 | #elif defined(DEV_AD5677R) |
pmallick | 0:e8a1ba50c46b | 71 | #define ACTIVE_DEVICE ID_AD5677R |
pmallick | 0:e8a1ba50c46b | 72 | #define ACTIVE_DEVICE_NAME "AD5677R" |
pmallick | 0:e8a1ba50c46b | 73 | #elif defined(DEV_AD5679) |
pmallick | 0:e8a1ba50c46b | 74 | #define ACTIVE_DEVICE ID_AD5679 |
pmallick | 0:e8a1ba50c46b | 75 | #define ACTIVE_DEVICE_NAME "AD5679" |
pmallick | 0:e8a1ba50c46b | 76 | #elif defined(DEV_AD5679R) |
pmallick | 0:e8a1ba50c46b | 77 | #define ACTIVE_DEVICE ID_AD5679R |
pmallick | 0:e8a1ba50c46b | 78 | #define ACTIVE_DEVICE_NAME "AD5679R" |
pmallick | 0:e8a1ba50c46b | 79 | #elif defined(DEV_AD5686) |
pmallick | 0:e8a1ba50c46b | 80 | #define ACTIVE_DEVICE ID_AD5686 |
pmallick | 0:e8a1ba50c46b | 81 | #define ACTIVE_DEVICE_NAME "AD5686" |
pmallick | 0:e8a1ba50c46b | 82 | #elif defined(DEV_AD5684R) |
pmallick | 0:e8a1ba50c46b | 83 | #define ACTIVE_DEVICE ID_AD5684R |
pmallick | 0:e8a1ba50c46b | 84 | #define ACTIVE_DEVICE_NAME "AD5684R" |
pmallick | 0:e8a1ba50c46b | 85 | #elif defined(DEV_AD5685R) |
pmallick | 0:e8a1ba50c46b | 86 | #define ACTIVE_DEVICE ID_AD5685R |
pmallick | 0:e8a1ba50c46b | 87 | #define ACTIVE_DEVICE_NAME "AD5685R" |
pmallick | 0:e8a1ba50c46b | 88 | #elif defined(DEV_AD5686R) |
pmallick | 0:e8a1ba50c46b | 89 | #define ACTIVE_DEVICE ID_AD5686R |
pmallick | 0:e8a1ba50c46b | 90 | #define ACTIVE_DEVICE_NAME "AD5686R" |
pmallick | 0:e8a1ba50c46b | 91 | #elif defined(DEV_AD5687) |
pmallick | 0:e8a1ba50c46b | 92 | #define ACTIVE_DEVICE ID_AD5687 |
pmallick | 0:e8a1ba50c46b | 93 | #define ACTIVE_DEVICE_NAME "AD5687" |
pmallick | 0:e8a1ba50c46b | 94 | #elif defined(DEV_AD5687R) |
pmallick | 0:e8a1ba50c46b | 95 | #define ACTIVE_DEVICE ID_AD5687R |
pmallick | 0:e8a1ba50c46b | 96 | #define ACTIVE_DEVICE_NAME "AD5687R" |
pmallick | 0:e8a1ba50c46b | 97 | #elif defined(DEV_AD5689) |
pmallick | 0:e8a1ba50c46b | 98 | #define ACTIVE_DEVICE ID_AD5689 |
pmallick | 0:e8a1ba50c46b | 99 | #define ACTIVE_DEVICE_NAME "AD5689" |
pmallick | 0:e8a1ba50c46b | 100 | #elif defined(DEV_AD5689R) |
pmallick | 0:e8a1ba50c46b | 101 | #define ACTIVE_DEVICE ID_AD5689R |
pmallick | 0:e8a1ba50c46b | 102 | #define ACTIVE_DEVICE_NAME "AD5689R" |
pmallick | 0:e8a1ba50c46b | 103 | #elif defined(DEV_AD5697R) |
pmallick | 0:e8a1ba50c46b | 104 | #define ACTIVE_DEVICE ID_AD5697R |
pmallick | 0:e8a1ba50c46b | 105 | #define ACTIVE_DEVICE_NAME "AD5697R" |
pmallick | 0:e8a1ba50c46b | 106 | #elif defined(DEV_AD5694) |
pmallick | 0:e8a1ba50c46b | 107 | #define ACTIVE_DEVICE ID_AD5694 |
pmallick | 0:e8a1ba50c46b | 108 | #define ACTIVE_DEVICE_NAME "AD5694" |
pmallick | 0:e8a1ba50c46b | 109 | #elif defined(DEV_AD5694R) |
pmallick | 0:e8a1ba50c46b | 110 | #define ACTIVE_DEVICE ID_AD5694R |
pmallick | 0:e8a1ba50c46b | 111 | #define ACTIVE_DEVICE_NAME "AD5694R" |
pmallick | 0:e8a1ba50c46b | 112 | #elif defined(DEV_AD5695R) |
pmallick | 0:e8a1ba50c46b | 113 | #define ACTIVE_DEVICE ID_AD5695R |
pmallick | 0:e8a1ba50c46b | 114 | #define ACTIVE_DEVICE_NAME "AD5695R" |
pmallick | 0:e8a1ba50c46b | 115 | #elif defined(DEV_AD5696) |
pmallick | 0:e8a1ba50c46b | 116 | #define ACTIVE_DEVICE ID_AD5696 |
pmallick | 0:e8a1ba50c46b | 117 | #define ACTIVE_DEVICE_NAME "AD5696" |
pmallick | 0:e8a1ba50c46b | 118 | #elif defined(DEV_AD5696R) |
pmallick | 0:e8a1ba50c46b | 119 | #define ACTIVE_DEVICE ID_AD5696R |
pmallick | 0:e8a1ba50c46b | 120 | #define ACTIVE_DEVICE_NAME "AD5696R" |
pmallick | 0:e8a1ba50c46b | 121 | #elif defined(DEV_AD5681R) |
pmallick | 0:e8a1ba50c46b | 122 | #define ACTIVE_DEVICE ID_AD5681R |
pmallick | 0:e8a1ba50c46b | 123 | #define ACTIVE_DEVICE_NAME "AD5681R" |
pmallick | 0:e8a1ba50c46b | 124 | #elif defined(DEV_AD5682R) |
pmallick | 0:e8a1ba50c46b | 125 | #define ACTIVE_DEVICE ID_AD5682R |
pmallick | 0:e8a1ba50c46b | 126 | #define ACTIVE_DEVICE_NAME "AD5682R" |
pmallick | 0:e8a1ba50c46b | 127 | #elif defined(DEV_AD5683R) |
pmallick | 0:e8a1ba50c46b | 128 | #define ACTIVE_DEVICE ID_AD5683R |
pmallick | 0:e8a1ba50c46b | 129 | #define ACTIVE_DEVICE_NAME "AD5683R" |
pmallick | 0:e8a1ba50c46b | 130 | #elif defined(DEV_AD5683) |
pmallick | 0:e8a1ba50c46b | 131 | #define ACTIVE_DEVICE ID_AD5683 |
pmallick | 0:e8a1ba50c46b | 132 | #define ACTIVE_DEVICE_NAME "AD5683" |
pmallick | 0:e8a1ba50c46b | 133 | #elif defined(DEV_AD5691R) |
pmallick | 0:e8a1ba50c46b | 134 | #define ACTIVE_DEVICE ID_AD5691R |
pmallick | 0:e8a1ba50c46b | 135 | #define ACTIVE_DEVICE_NAME "AD5691R" |
pmallick | 0:e8a1ba50c46b | 136 | #elif defined(DEV_AD5692R) |
pmallick | 0:e8a1ba50c46b | 137 | #define ACTIVE_DEVICE ID_AD5692R |
pmallick | 0:e8a1ba50c46b | 138 | #define ACTIVE_DEVICE_NAME "AD5692R" |
pmallick | 0:e8a1ba50c46b | 139 | #elif defined(DEV_AD5693R) |
pmallick | 0:e8a1ba50c46b | 140 | #define ACTIVE_DEVICE ID_AD5693R |
pmallick | 0:e8a1ba50c46b | 141 | #define ACTIVE_DEVICE_NAME "AD5693R" |
pmallick | 0:e8a1ba50c46b | 142 | #elif defined(DEV_AD5693) |
pmallick | 0:e8a1ba50c46b | 143 | #define ACTIVE_DEVICE ID_AD5693 |
pmallick | 0:e8a1ba50c46b | 144 | #define ACTIVE_DEVICE_NAME "AD5693" |
pmallick | 0:e8a1ba50c46b | 145 | #else |
pmallick | 0:e8a1ba50c46b | 146 | #warning No/Unsupported ADxxxxy symbol defined. AD5686R defined |
pmallick | 0:e8a1ba50c46b | 147 | #define DEV_AD5686R |
pmallick | 0:e8a1ba50c46b | 148 | #define ACTIVE_DEVICE ID_AD5686R |
pmallick | 0:e8a1ba50c46b | 149 | #define ACTIVE_DEVICE_NAME "AD5686R" |
pmallick | 0:e8a1ba50c46b | 150 | #endif |
pmallick | 0:e8a1ba50c46b | 151 | |
pmallick | 0:e8a1ba50c46b | 152 | |
pmallick | 0:e8a1ba50c46b | 153 | // Pin mapping of AD7124 with SDP-K1/Arduino (reference: PinNames.h) |
pmallick | 0:e8a1ba50c46b | 154 | #ifdef ARDUINO |
pmallick | 0:e8a1ba50c46b | 155 | #define I2C_SCL D15 // I2C_SCL |
pmallick | 0:e8a1ba50c46b | 156 | #define I2C_SDA D14 // I2C_SDA |
pmallick | 0:e8a1ba50c46b | 157 | |
pmallick | 0:e8a1ba50c46b | 158 | #define SPI_SS D10 // SPI_CS |
pmallick | 0:e8a1ba50c46b | 159 | #define SPI_MOSI D11 // SPI_MOSI |
pmallick | 0:e8a1ba50c46b | 160 | #define SPI_MISO D12 // SPI_MISO |
pmallick | 0:e8a1ba50c46b | 161 | #define SPI_SCK D13 // SPI_SCK |
pmallick | 0:e8a1ba50c46b | 162 | |
pmallick | 0:e8a1ba50c46b | 163 | #define GAIN_PIN D8 |
pmallick | 0:e8a1ba50c46b | 164 | #define RESET_PIN D9 |
pmallick | 0:e8a1ba50c46b | 165 | #define LDAC_PIN D7 |
pmallick | 0:e8a1ba50c46b | 166 | #define ADDR0_PIN D6 |
pmallick | 0:e8a1ba50c46b | 167 | #else |
pmallick | 0:e8a1ba50c46b | 168 | #define I2C_SCL SDP_I2C_SCL // PH_7 |
pmallick | 0:e8a1ba50c46b | 169 | #define I2C_SDA SDP_I2C_SDA // PC_9 |
pmallick | 0:e8a1ba50c46b | 170 | |
pmallick | 0:e8a1ba50c46b | 171 | #define SPI_SS SDP_SPI_CS_A // PB_9 |
pmallick | 0:e8a1ba50c46b | 172 | #define SPI_MISO SDP_SPI_MISO // PF_8 |
pmallick | 0:e8a1ba50c46b | 173 | #define SPI_MOSI SDP_SPI_MOSI // PF_9 |
pmallick | 0:e8a1ba50c46b | 174 | #define SPI_SCK SDP_SPI_SCK // PH_6 |
pmallick | 0:e8a1ba50c46b | 175 | #endif |
pmallick | 0:e8a1ba50c46b | 176 | |
pmallick | 0:e8a1ba50c46b | 177 | // Define the other GPIO mapping based on the compatible EVAL board |
pmallick | 0:e8a1ba50c46b | 178 | // *Note: The 7-bit I2C slave address mentioned below is the default address for the |
pmallick | 0:e8a1ba50c46b | 179 | // device, set by combination of slave address bits (7:3) from the device |
pmallick | 0:e8a1ba50c46b | 180 | // datasheet and default logic level of A1 and A0 pins (bits 2:1) on the |
pmallick | 0:e8a1ba50c46b | 181 | // respective device EVAL board. For more information, refer the device |
pmallick | 0:e8a1ba50c46b | 182 | // datasheet and EVAL board manual. |
pmallick | 0:e8a1ba50c46b | 183 | |
pmallick | 0:e8a1ba50c46b | 184 | #if defined(DEV_AD5686R) || defined(DEV_AD5686) || \ |
pmallick | 0:e8a1ba50c46b | 185 | defined(DEV_AD5684R) || defined(DEV_AD5684) || \ |
pmallick | 0:e8a1ba50c46b | 186 | defined(DEV_AD5685R) |
pmallick | 0:e8a1ba50c46b | 187 | // These devices support EVAL-AD5686RSDZ board |
pmallick | 0:e8a1ba50c46b | 188 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 189 | #define GAIN_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 190 | #define RESET_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 191 | #define LDAC_PIN SDP_GPIO_3 |
pmallick | 0:e8a1ba50c46b | 192 | #endif |
pmallick | 0:e8a1ba50c46b | 193 | #elif defined(DEV_AD5696R) || defined(DEV_AD5696) || \ |
pmallick | 0:e8a1ba50c46b | 194 | defined(DEV_AD5694R) || defined(DEV_AD5694) || \ |
pmallick | 0:e8a1ba50c46b | 195 | defined(DEV_AD5695R) || defined(DEV_AD5697R) |
pmallick | 0:e8a1ba50c46b | 196 | // These devices support EVAL-AD5696RSDZ board |
pmallick | 0:e8a1ba50c46b | 197 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 198 | #define GAIN_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 199 | #define RESET_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 200 | #define LDAC_PIN SDP_GPIO_3 |
pmallick | 0:e8a1ba50c46b | 201 | #endif |
pmallick | 0:e8a1ba50c46b | 202 | #define I2C_SLAVE_ADDRESS 0x18 |
pmallick | 0:e8a1ba50c46b | 203 | #elif defined(DEV_AD5683) || defined(DEV_AD5683R) || defined(DEV_AD5682R) || \ |
pmallick | 0:e8a1ba50c46b | 204 | defined(DEV_AD5681R) |
pmallick | 0:e8a1ba50c46b | 205 | // These devices uses EVAL-AD5683R board |
pmallick | 0:e8a1ba50c46b | 206 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 207 | #define GAIN_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 208 | #define RESET_PIN SDP_GPIO_1 |
pmallick | 0:e8a1ba50c46b | 209 | #define LDAC_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 210 | #endif |
pmallick | 0:e8a1ba50c46b | 211 | #elif defined(DEV_AD5693) || defined(DEV_AD5693R) || defined(DEV_AD5692R) || \ |
pmallick | 0:e8a1ba50c46b | 212 | defined(DEV_AD5691R) |
pmallick | 0:e8a1ba50c46b | 213 | // These devices uses EVAL-AD5693R board |
pmallick | 0:e8a1ba50c46b | 214 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 215 | #define GAIN_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 216 | #define RESET_PIN SDP_GPIO_1 |
pmallick | 0:e8a1ba50c46b | 217 | #define LDAC_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 218 | #endif |
pmallick | 0:e8a1ba50c46b | 219 | #define I2C_SLAVE_ADDRESS 0x98 |
pmallick | 0:e8a1ba50c46b | 220 | #elif defined (DEV_AD5674R) || defined (DEV_AD5674) || \ |
pmallick | 0:e8a1ba50c46b | 221 | defined (DEV_AD5679R) || defined (DEV_AD5679) || \ |
pmallick | 0:e8a1ba50c46b | 222 | defined (DEV_AD5677R) || defined (DEV_AD5673R) |
pmallick | 0:e8a1ba50c46b | 223 | // These devices uses EVAL-AD5679RSDZ/EVAL-AD567xRSDZ board |
pmallick | 0:e8a1ba50c46b | 224 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 225 | #define GAIN_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 226 | #define RESET_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 227 | #define LDAC_PIN SDP_GPIO_1 |
pmallick | 0:e8a1ba50c46b | 228 | #endif |
pmallick | 0:e8a1ba50c46b | 229 | #define I2C_SLAVE_ADDRESS 0x1E |
pmallick | 0:e8a1ba50c46b | 230 | #elif defined (DEV_AD5676R) || defined (DEV_AD5676) || \ |
pmallick | 0:e8a1ba50c46b | 231 | defined (DEV_AD5672R) |
pmallick | 0:e8a1ba50c46b | 232 | // These devices uses EVAL-AD5676RSDZ board |
pmallick | 0:e8a1ba50c46b | 233 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 234 | #define GAIN_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 235 | #define RESET_PIN SDP_GPIO_1 |
pmallick | 0:e8a1ba50c46b | 236 | #define LDAC_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 237 | #endif |
pmallick | 0:e8a1ba50c46b | 238 | #elif defined (DEV_AD5671R) || defined (DEV_AD5675R) |
pmallick | 0:e8a1ba50c46b | 239 | // These devices uses EVAL-AD5675RSDZ board |
pmallick | 0:e8a1ba50c46b | 240 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 241 | #define GAIN_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 242 | #define RESET_PIN SDP_GPIO_1 |
pmallick | 0:e8a1ba50c46b | 243 | #define LDAC_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 244 | #endif |
pmallick | 0:e8a1ba50c46b | 245 | #define I2C_SLAVE_ADDRESS 0x18 |
pmallick | 0:e8a1ba50c46b | 246 | #else |
pmallick | 0:e8a1ba50c46b | 247 | #warning No/Unsupported EVAL board found. Using EVAL-AD5686R as default. |
pmallick | 0:e8a1ba50c46b | 248 | #if !defined ARDUINO |
pmallick | 0:e8a1ba50c46b | 249 | #define GAIN_PIN SDP_GPIO_0 |
pmallick | 0:e8a1ba50c46b | 250 | #define RESET_PIN SDP_GPIO_2 |
pmallick | 0:e8a1ba50c46b | 251 | #define LDAC_PIN SDP_GPIO_3 |
pmallick | 0:e8a1ba50c46b | 252 | #endif |
pmallick | 0:e8a1ba50c46b | 253 | #endif |
pmallick | 0:e8a1ba50c46b | 254 | |
pmallick | 0:e8a1ba50c46b | 255 | |
pmallick | 0:e8a1ba50c46b | 256 | // Common pin mappings |
pmallick | 0:e8a1ba50c46b | 257 | #define LED_GREEN LED3 // PK_5 |
pmallick | 0:e8a1ba50c46b | 258 | |
pmallick | 0:e8a1ba50c46b | 259 | #endif //_APP_CONFIG_H_ |